@openedx/frontend-base 1.0.0-alpha.0 → 1.0.0-alpha.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 (159) hide show
  1. package/config/webpack/plugins/html-webpack-new-relic-plugin/test/HtmlWebpackNewRelicPlugin.test.js +66 -0
  2. package/package.json +8 -1
  3. package/runtime/__mocks__/file.js +1 -0
  4. package/runtime/__mocks__/svg.js +1 -0
  5. package/runtime/__mocks__/universal-cookie.js +6 -0
  6. package/runtime/analytics/interface.test.js +242 -0
  7. package/runtime/auth/AxiosJwtAuthService.test.jsx +1076 -0
  8. package/runtime/auth/interceptors/createRetryInterceptor.test.js +23 -0
  9. package/runtime/config/getExternalLinkUrl.test.js +76 -0
  10. package/runtime/i18n/lib.test.js +230 -0
  11. package/runtime/initialize.async.function.config.test.js +43 -0
  12. package/runtime/initialize.const.config.test.js +41 -0
  13. package/runtime/initialize.function.config.test.js +41 -0
  14. package/runtime/initialize.test.js +356 -0
  15. package/runtime/logging/NewRelicLoggingService.test.js +214 -0
  16. package/runtime/react/AuthenticatedPageRoute.test.jsx +135 -0
  17. package/runtime/react/ErrorBoundary.test.jsx +83 -0
  18. package/runtime/react/SiteProvider.test.jsx +66 -0
  19. package/runtime/react/hooks.test.jsx +104 -0
  20. package/runtime/routing/utils.test.ts +7 -0
  21. package/runtime/scripts/GoogleAnalyticsLoader.test.ts +77 -0
  22. package/runtime/site.config.test.tsx +33 -0
  23. package/runtime/slots/Slot.test.tsx +40 -0
  24. package/runtime/slots/layout/DefaultSlotLayout.test.tsx +31 -0
  25. package/runtime/slots/layout/hooks.test.tsx +178 -0
  26. package/runtime/slots/layout/utils.test.ts +67 -0
  27. package/runtime/slots/types.ts +1 -0
  28. package/runtime/slots/utils.test.ts +64 -0
  29. package/runtime/slots/utils.ts +28 -9
  30. package/runtime/testing/initializeMockApp.test.ts +66 -0
  31. package/runtime/utils.test.js +116 -0
  32. package/shell/Logo.test.tsx +32 -0
  33. package/shell/__mocks__/file.js +1 -0
  34. package/shell/__mocks__/svg.js +1 -0
  35. package/shell/__mocks__/universal-cookie.js +6 -0
  36. package/shell/app.ts +14 -0
  37. package/shell/dev/devHome/app.ts +2 -2
  38. package/shell/dev/slotShowcase/app.tsx +9 -9
  39. package/shell/header/app.tsx +3 -3
  40. package/shell/router/createRouter.test.tsx +50 -0
  41. package/shell/router/getAppRoutes.test.tsx +59 -0
  42. package/shell/site.config.dev.tsx +3 -3
  43. package/shell/site.config.test.tsx +16 -0
  44. package/tools/dist/cli/commands/release.js +3 -3
  45. package/tools/dist/cli/intl-imports.test.js +146 -0
  46. package/tools/dist/webpack/plugins/html-webpack-new-relic-plugin/test/HtmlWebpackNewRelicPlugin.test.js +66 -0
  47. package/types.ts +1 -1
  48. package/eslint.config.js +0 -18
  49. package/frontend-base.d.ts +0 -8
  50. package/jest.config.js +0 -7
  51. package/openedx-frontend-base.tgz +0 -0
  52. package/test-site/app.d.ts +0 -15
  53. package/test-site/dist/176.436443549ebb858db483.js +0 -2
  54. package/test-site/dist/176.436443549ebb858db483.js.map +0 -1
  55. package/test-site/dist/362.536eff787d2380fe246c.js +0 -2
  56. package/test-site/dist/362.536eff787d2380fe246c.js.map +0 -1
  57. package/test-site/dist/653.486966b108d224551296.js +0 -2
  58. package/test-site/dist/653.486966b108d224551296.js.map +0 -1
  59. package/test-site/dist/74e025d3fe9a7b7f8503054e2563b353.jpg +0 -0
  60. package/test-site/dist/806.323cf6496ad0a7fe73a7.js +0 -3
  61. package/test-site/dist/806.323cf6496ad0a7fe73a7.js.LICENSE.txt +0 -106
  62. package/test-site/dist/806.323cf6496ad0a7fe73a7.js.map +0 -1
  63. package/test-site/dist/95ec738c0b7faac5b5c9126794446bbd.svg +0 -4
  64. package/test-site/dist/app.612058b36c74787759ac.css +0 -61
  65. package/test-site/dist/app.612058b36c74787759ac.css.map +0 -1
  66. package/test-site/dist/app.612058b36c74787759ac.js +0 -2
  67. package/test-site/dist/app.612058b36c74787759ac.js.map +0 -1
  68. package/test-site/dist/cb28cdb1468c915e27e5cec9af64f22f.svg +0 -1
  69. package/test-site/dist/index.html +0 -1
  70. package/test-site/dist/report.html +0 -39
  71. package/test-site/dist/runtime.c7aeaf7b967496cb076f.js +0 -2
  72. package/test-site/dist/runtime.c7aeaf7b967496cb076f.js.map +0 -1
  73. package/test-site/eslint.config.js +0 -12
  74. package/test-site/package-lock.json +0 -19226
  75. package/test-site/package.json +0 -29
  76. package/test-site/public/index.html +0 -10
  77. package/test-site/site.config.build.tsx +0 -27
  78. package/test-site/site.config.dev.tsx +0 -27
  79. package/test-site/src/authenticated-page/AuthenticatedPage.tsx +0 -18
  80. package/test-site/src/authenticated-page/i18n/index.ts +0 -27
  81. package/test-site/src/authenticated-page/index.tsx +0 -28
  82. package/test-site/src/example-page/ExamplePage.tsx +0 -79
  83. package/test-site/src/example-page/Image.tsx +0 -11
  84. package/test-site/src/example-page/ParagonPreview.jsx +0 -66
  85. package/test-site/src/example-page/apple.jpg +0 -0
  86. package/test-site/src/example-page/apple.svg +0 -1
  87. package/test-site/src/example-page/index.ts +0 -16
  88. package/test-site/src/i18n/README.md +0 -3
  89. package/test-site/src/i18n/messages/frontend-app-sample/ar.json +0 -4
  90. package/test-site/src/i18n/messages/frontend-app-sample/eo.json +0 -1
  91. package/test-site/src/i18n/messages/frontend-app-sample/es_419.json +0 -4
  92. package/test-site/src/i18n/messages/frontend-component-emptylangs/ar.json +0 -1
  93. package/test-site/src/i18n/messages/frontend-component-singlelang/ar.json +0 -3
  94. package/test-site/src/iframe-widget/IframeWidget.tsx +0 -14
  95. package/test-site/src/iframe-widget/index.ts +0 -16
  96. package/test-site/src/index.tsx +0 -3
  97. package/test-site/src/messages.js +0 -11
  98. package/test-site/src/site.scss +0 -11
  99. package/test-site/tsconfig.json +0 -14
  100. package/tools/babel/babel.config.js +0 -27
  101. package/tools/babel.config.js +0 -3
  102. package/tools/cli/README.md +0 -29
  103. package/tools/cli/commands/pack.ts +0 -9
  104. package/tools/cli/commands/release.ts +0 -27
  105. package/tools/cli/commands/serve.ts +0 -43
  106. package/tools/cli/intl-imports.ts +0 -274
  107. package/tools/cli/openedx.ts +0 -101
  108. package/tools/cli/transifex-utils.ts +0 -75
  109. package/tools/cli/utils/ensureConfigFilenameOption.ts +0 -40
  110. package/tools/cli/utils/formatter.ts +0 -10
  111. package/tools/cli/utils/getResolvedConfigPath.ts +0 -23
  112. package/tools/cli/utils/prettyPrintTitle.ts +0 -15
  113. package/tools/cli/utils/printUsage.ts +0 -53
  114. package/tools/config-helpers/createConfig.ts +0 -8
  115. package/tools/config-helpers/createLintConfig.ts +0 -14
  116. package/tools/config-helpers/getBaseConfig.ts +0 -11
  117. package/tools/defaultConfigPaths.ts +0 -30
  118. package/tools/eslint/base.eslint.config.js +0 -124
  119. package/tools/eslint/modules.d.ts +0 -5
  120. package/tools/eslint.config.js +0 -15
  121. package/tools/index.ts +0 -3
  122. package/tools/jest/jest.config.js +0 -30
  123. package/tools/jest.config.js +0 -19
  124. package/tools/tsconfig.json +0 -24
  125. package/tools/types.ts +0 -21
  126. package/tools/typescript/tsconfig.json +0 -32
  127. package/tools/webpack/common-config/README.md +0 -15
  128. package/tools/webpack/common-config/all/getCodeRules.ts +0 -51
  129. package/tools/webpack/common-config/all/getFileLoaderRules.ts +0 -23
  130. package/tools/webpack/common-config/all/getIgnoreWarnings.ts +0 -13
  131. package/tools/webpack/common-config/all/getImageMinimizer.ts +0 -26
  132. package/tools/webpack/common-config/all/getStylesheetRule.ts +0 -111
  133. package/tools/webpack/common-config/dev/getDevServer.ts +0 -35
  134. package/tools/webpack/common-config/index.ts +0 -6
  135. package/tools/webpack/common-config/site/getHtmlWebpackPlugin.ts +0 -11
  136. package/tools/webpack/modules.d.ts +0 -6
  137. package/tools/webpack/plugins/html-webpack-new-relic-plugin/HtmlWebpackNewRelicPlugin.ts +0 -102
  138. package/tools/webpack/plugins/html-webpack-new-relic-plugin/LICENSE +0 -21
  139. package/tools/webpack/plugins/html-webpack-new-relic-plugin/README.md +0 -7
  140. package/tools/webpack/plugins/html-webpack-new-relic-plugin/index.js +0 -3
  141. package/tools/webpack/plugins/html-webpack-new-relic-plugin/test/fixtures/entry.js +0 -1
  142. package/tools/webpack/plugins/paragon-webpack-plugin/ParagonWebpackPlugin.ts +0 -134
  143. package/tools/webpack/plugins/paragon-webpack-plugin/index.ts +0 -3
  144. package/tools/webpack/plugins/paragon-webpack-plugin/utils/assetUtils.ts +0 -71
  145. package/tools/webpack/plugins/paragon-webpack-plugin/utils/htmlUtils.ts +0 -72
  146. package/tools/webpack/plugins/paragon-webpack-plugin/utils/index.ts +0 -6
  147. package/tools/webpack/plugins/paragon-webpack-plugin/utils/paragonStylesheetUtils.ts +0 -131
  148. package/tools/webpack/plugins/paragon-webpack-plugin/utils/scriptUtils.ts +0 -144
  149. package/tools/webpack/plugins/paragon-webpack-plugin/utils/stylesheetUtils.ts +0 -106
  150. package/tools/webpack/plugins/paragon-webpack-plugin/utils/tagUtils.ts +0 -54
  151. package/tools/webpack/types.ts +0 -69
  152. package/tools/webpack/utils/getLocalAliases.ts +0 -65
  153. package/tools/webpack/utils/getPublicPath.ts +0 -3
  154. package/tools/webpack/utils/getResolvedSiteConfigPath.ts +0 -28
  155. package/tools/webpack/utils/paragonUtils.ts +0 -152
  156. package/tools/webpack/webpack.config.build.ts +0 -93
  157. package/tools/webpack/webpack.config.dev.shell.ts +0 -122
  158. package/tools/webpack/webpack.config.dev.ts +0 -90
  159. package/tsconfig.json +0 -23
@@ -1,3 +0,0 @@
1
- /*! For license information please see 806.323cf6496ad0a7fe73a7.js.LICENSE.txt */
2
- "use strict";(self.webpackChunktest_site=self.webpackChunktest_site||[]).push([[806],{211:(e,t,n)=>{n.d(t,{A:()=>E});var r=n(7517),o=n(6349),i=n(7284),a=n(816),s=n(5142),l=n(5029),u=n(1736),c=n(9198);function f(){const e=(0,u.XB)(),t=(0,c.Km)();return 0===e.length?null:(0,r.jsxs)("div",{className:"d-flex flex-grow-1 flex-column gap-2 small",children:["string"==typeof t.label&&(0,r.jsx)("div",{className:"mb-1 font-weight-bold",children:t.label}),e]})}var d=n(1739),h=n(8313),p=n(5545),m=n(1897),v=n(5601),g=n(2800),y=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function b({language:e}){const t=(0,h.useCallback)((()=>{!function(e){y(this,void 0,void 0,(function*(){if(null!==(0,v.vD)()){const{username:t}=(0,v.vD)();yield function(e,t){return y(this,void 0,void 0,(function*(){yield(0,v.bv)().patch(`${(0,g.Q2)().lmsBaseUrl}/api/user/v1/preferences/${e}`,{"pref-lang":t},{headers:{"Content-Type":"application/merge-patch+json"}})}))}(t,e)}yield function(e){return y(this,void 0,void 0,(function*(){const t=new FormData;t.append("language",e),yield(0,v.bv)().post(`${(0,g.Q2)().lmsBaseUrl}/i18n/setlang/`,t,{headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest"}})}))}(e),(0,m.cu)()}))}(e.code)}),[e.code]);return(0,r.jsx)(d.Ay.Item,{onClick:t,children:e.name},e.code)}const w={appId:"org.openedx.frontend.app.footer",slots:[{slotId:"org.openedx.frontend.slot.footer.desktopCenterLinks.v1",id:"org.openedx.frontend.widget.footer.desktopCenterLink1.v1",op:o.z.APPEND,element:(0,r.jsx)(i.A,{id:"org.openedx.frontend.slot.footer.desktopCenterLink1.v1",layout:f})},{slotId:"org.openedx.frontend.slot.footer.desktopCenterLinks.v1",id:"org.openedx.frontend.widget.footer.desktopCenterLink2.v1",op:o.z.APPEND,element:(0,r.jsx)(i.A,{id:"org.openedx.frontend.slot.footer.desktopCenterLink2.v1",layout:f})},{slotId:"org.openedx.frontend.slot.footer.desktopCenterLinks.v1",id:"org.openedx.frontend.widget.footer.desktopCenterLink3.v1",op:o.z.APPEND,element:(0,r.jsx)(i.A,{id:"org.openedx.frontend.slot.footer.desktopCenterLink3.v1",layout:f})},{slotId:"org.openedx.frontend.slot.footer.desktopCenterLinks.v1",id:"org.openedx.frontend.widget.footer.desktopCenterLink4.v1",op:o.z.APPEND,element:(0,r.jsx)(i.A,{id:"org.openedx.frontend.slot.footer.desktopCenterLink4.v1",layout:f})},{slotId:"org.openedx.frontend.slot.footer.desktopLeftLinks.v1",id:"org.openedx.frontend.widget.footer.desktopLeftLinksLogo.v1",op:o.z.APPEND,element:(0,r.jsx)(a.A,{})},{slotId:"org.openedx.frontend.slot.footer.desktopRightLinks.v1",id:"org.openedx.frontend.widget.footer.desktopRightLinksLanguageMenu.v1",op:o.z.APPEND,component:function(){const{locale:e}=(0,h.useContext)(p.A),t=(0,m.xk)(),n=(0,m.xK)(e);return 1===t.length?null:(0,r.jsxs)(d.Ay,{children:[(0,r.jsx)(d.Ay.Toggle,{id:"language-menu-dropdown-trigger",variant:"outline-primary",size:"sm",children:n}),(0,r.jsx)(d.Ay.Menu,{className:"overflow-auto",style:{maxHeight:"320px"},children:t.map((e=>(0,r.jsx)(b,{language:e},e.code)))})]})}},{slotId:"org.openedx.frontend.slot.footer.desktopLegalNotices.v1",id:"org.openedx.frontend.widget.footer.desktopCopyrightNotice.v1",op:o.z.APPEND,element:(0,r.jsx)((function({title:e,destination:t}){const n=(0,l.zn)(),o=null!=e?e:n.siteName;return(0,r.jsxs)("div",{className:"text-center x-small",children:[(0,r.jsxs)("span",{children:["© ",(new Date).getFullYear()," "]}),void 0!==t?(0,r.jsx)(s.A,{destination:t,target:"_blank",children:o}):(0,r.jsx)("span",{children:o}),(0,r.jsx)("span",{children:"."})]})}),{})}]},E=w},235:(e,t,n)=>{n.d(t,{A:()=>M});var r,o=n(9511),i=n(1550),a=n(7141),s=n.n(a),l=n(8313),u=n(9328),c=n(2707),f=n(2907),d=n.n(f),h=n(4082),p=n(2771),m=n(6545);var v=n(4245),g=n(7155),y=n(2476),b={children:d().node,drop:d().oneOf(["up","left","right","down"]),focusFirstItemOnShow:d().oneOf([!1,!0,"keyboard"]),itemSelector:d().string,alignEnd:d().bool,show:d().bool,defaultShow:d().bool,onToggle:d().func};function w(){var e=(0,p.A)(),t=(0,l.useRef)(null),n=(0,l.useCallback)((function(n){t.current=n,e()}),[e]);return[t,n]}function E(e){var t=e.drop,n=e.alignEnd,o=e.defaultShow,i=e.show,a=e.onToggle,s=e.itemSelector,f=void 0===s?"* > *":s,d=e.focusFirstItemOnShow,p=e.children,g=(0,h.iC)(i,o,a),y=g[0],b=g[1],E=w(),x=E[0],S=E[1],O=x.current,A=w(),C=A[0],k=A[1],T=C.current,P=function(e){const t=(0,l.useRef)(null);return(0,l.useEffect)((()=>{t.current=e})),t.current}(y),N=(0,l.useRef)(null),_=(0,l.useRef)(!1),R=(0,l.useCallback)((function(e,t){b(e,t)}),[b]),I=(0,l.useMemo)((function(){return{toggle:R,drop:t,show:y,alignEnd:n,menuElement:O,toggleElement:T,setMenu:S,setToggle:k}}),[R,t,y,n,O,T,S,k]);O&&P&&!y&&(_.current=O.contains(document.activeElement));var L=(0,m.A)((function(){T&&T.focus&&T.focus()})),j=(0,m.A)((function(){var e=N.current,t=d;if(null==t&&(t=!(!x.current||!function(e){if(!r){var t=document.body,n=t.matches||t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;r=function(e,t){return n.call(e,t)}}return r(e,"[role=menu]")}(x.current))&&"keyboard"),!1!==t&&("keyboard"!==t||/^key.+$/.test(e))){var n=(0,u.A)(x.current,f)[0];n&&n.focus&&n.focus()}}));(0,l.useEffect)((function(){y?j():_.current&&(_.current=!1,L())}),[y,_,L,j]),(0,l.useEffect)((function(){N.current=null}));var M=function(e,t){if(!x.current)return null;var n=(0,u.A)(x.current,f),r=n.indexOf(e)+t;return n[r=Math.max(0,Math.min(r,n.length))]};return function(e,t,n=!1){(function(e,t,n,r=!1){const o=(0,m.A)(n);(0,l.useEffect)((()=>{const n="function"==typeof e?e():e;return n.addEventListener(t,o,r),()=>n.removeEventListener(t,o,r)}),[e])})((0,l.useCallback)((()=>document),[]),e,t,n)}("keydown",(function(e){var t,n,r=e.key,o=e.target,i=null==(t=x.current)?void 0:t.contains(o),a=null==(n=C.current)?void 0:n.contains(o);if((!/input|textarea/i.test(o.tagName)||!(" "===r||"Escape"!==r&&i))&&(i||a)&&(x.current||"Tab"!==r))switch(N.current=e.type,r){case"ArrowUp":var s=M(o,-1);return s&&s.focus&&s.focus(),void e.preventDefault();case"ArrowDown":if(e.preventDefault(),y){var l=M(o,1);l&&l.focus&&l.focus()}else b(!0,e);return;case"Tab":(0,c.Ay)(document,"keyup",(function(t){var n;("Tab"!==t.key||t.target)&&null!=(n=x.current)&&n.contains(t.target)||b(!1,e)}),{once:!0});break;case"Escape":e.preventDefault(),e.stopPropagation(),b(!1,e)}})),l.createElement(v.A.Provider,{value:I},p)}E.displayName="ReactOverlaysDropdown",E.propTypes=b,E.Menu=g.A,E.Toggle=y.A;const x=E;var S=n(8850),O=n(1534),A=n(2213),C=n(4041),k=n(2402),T=/-(.)/g,P=["className","bsPrefix","as"];function N(e,t){var n,r,a=void 0===t?{}:t,u=a.displayName,c=void 0===u?(n=e)[0].toUpperCase()+(r=n,r.replace(T,(function(e,t){return t.toUpperCase()}))).slice(1):u,f=a.Component,d=a.defaultProps,h=l.forwardRef((function(t,n){var r=t.className,a=t.bsPrefix,u=t.as,c=void 0===u?f||"div":u,d=(0,i.A)(t,P),h=(0,k.oU)(a,e);return l.createElement(c,(0,o.A)({ref:n,className:s()(r,h)},d))}));return h.defaultProps=d,h.displayName=c,h}var _=["bsPrefix","drop","show","className","alignRight","onSelect","onToggle","focusFirstItemOnShow","as","navbar"],R=N("dropdown-header",{defaultProps:{role:"heading"}}),I=N("dropdown-divider",{defaultProps:{role:"separator"}}),L=N("dropdown-item-text",{Component:"span"}),j=l.forwardRef((function(e,t){var n=(0,h.Zw)(e,{show:"onToggle"}),r=n.bsPrefix,a=n.drop,u=n.show,c=n.className,f=n.alignRight,d=n.onSelect,p=n.onToggle,v=n.focusFirstItemOnShow,g=n.as,y=void 0===g?"div":g,b=(n.navbar,(0,i.A)(n,_)),w=(0,l.useContext)(C.A),E=(0,k.oU)(r,"dropdown"),S=(0,m.A)((function(e,t,n){void 0===n&&(n=t.type),t.currentTarget!==document||"keydown"===n&&"Escape"!==t.key||(n="rootClose"),p&&p(e,t,{source:n})})),O=(0,m.A)((function(e,t){w&&w(e,t),d&&d(e,t),S(!1,t,"select")}));return l.createElement(C.A.Provider,{value:O},l.createElement(x,{drop:a,show:u,alignEnd:f,onToggle:S,focusFirstItemOnShow:v,itemSelector:"."+E+"-item:not(.disabled):not(:disabled)"},l.createElement(y,(0,o.A)({},b,{ref:t,className:s()(c,u&&"show",(!a||"down"===a)&&E,"up"===a&&"dropup","right"===a&&"dropright","left"===a&&"dropleft")}))))}));j.displayName="Dropdown",j.defaultProps={navbar:!1},j.Divider=I,j.Header=R,j.Item=S.A,j.ItemText=L,j.Menu=O.A,j.Toggle=A.A;const M=j},292:(e,t,n)=>{n.d(t,{_K:()=>d,ns:()=>f,kp:()=>c,ze:()=>h,Ay:()=>v});var r=n(1550),o=n(3574),i=n(8313),a=n(5784);var s=n(3420),l=n(2318),u="unmounted",c="exited",f="entering",d="entered",h="exiting",p=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=c,r.appearStatus=f):o=d:o=t.unmountOnExit||t.mountOnEnter?u:c,r.state={status:o},r.nextCallback=null,r}(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:c}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==f&&n!==d&&(t=f):n!==f&&n!==d||(t=h)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&(0,l.F)(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:u})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[a.findDOMNode(this),r],i=o[0],s=o[1],l=this.getTimeouts(),u=r?l.appear:l.enter;e||n?(this.props.onEnter(i,s),this.safeSetState({status:f},(function(){t.props.onEntering(i,s),t.onTransitionEnd(u,(function(){t.safeSetState({status:d},(function(){t.props.onEntered(i,s)}))}))}))):this.safeSetState({status:d},(function(){t.props.onEntered(i)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:h},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:c},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:c},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(s.A.Provider,{value:null},"function"==typeof n?n(e,o):i.cloneElement(i.Children.only(n),o))},t}(i.Component);function m(){}p.contextType=s.A,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},p.UNMOUNTED=u,p.EXITED=c,p.ENTERING=f,p.ENTERED=d,p.EXITING=h;const v=p},419:(e,t,n)=>{var r,o=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a="\\ud800-\\udfff",s="\\u0300-\\u036f\\ufe20-\\ufe23",l="\\u20d0-\\u20f0",u="\\u2700-\\u27bf",c="a-z\\xdf-\\xf6\\xf8-\\xff",f="A-Z\\xc0-\\xd6\\xd8-\\xde",d="\\ufe0e\\ufe0f",h="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",p="["+a+"]",m="["+h+"]",v="["+s+l+"]",g="\\d+",y="["+u+"]",b="["+c+"]",w="[^"+a+h+g+u+c+f+"]",E="\\ud83c[\\udffb-\\udfff]",x="[^"+a+"]",S="(?:\\ud83c[\\udde6-\\uddff]){2}",O="[\\ud800-\\udbff][\\udc00-\\udfff]",A="["+f+"]",C="\\u200d",k="(?:"+b+"|"+w+")",T="(?:"+A+"|"+w+")",P="(?:['’](?:d|ll|m|re|s|t|ve))?",N="(?:['’](?:D|LL|M|RE|S|T|VE))?",_="(?:"+v+"|"+E+")?",R="["+d+"]?",I=R+_+"(?:"+C+"(?:"+[x,S,O].join("|")+")"+R+_+")*",L="(?:"+[y,S,O].join("|")+")"+I,j="(?:"+[x+v+"?",v,S,O,p].join("|")+")",M=RegExp("['’]","g"),D=RegExp(v,"g"),B=RegExp(E+"(?="+E+")|"+j+I,"g"),H=RegExp([A+"?"+b+"+"+P+"(?="+[m,A,"$"].join("|")+")",T+"+"+N+"(?="+[m,A+k,"$"].join("|")+")",A+"?"+k+"+"+P,A+"+"+N,g,L].join("|"),"g"),F=RegExp("["+C+a+s+l+d+"]"),U=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,z="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,G="object"==typeof self&&self&&self.Object===Object&&self,W=z||G||Function("return this")(),q=(r={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==r?void 0:r[e]});function V(e){return F.test(e)}var $=Object.prototype.toString,K=W.Symbol,X=K?K.prototype:void 0,Q=X?X.toString:void 0;function Y(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==$.call(e)}(e))return Q?Q.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}var Z,J=(Z=function(e,t,n){return t=t.toLowerCase(),e+(n?ee(Y(t).toLowerCase()):t)},function(e){return function(e,t,n){for(var r=-1,o=e?e.length:0;++r<o;)n=t(n,e[r],r,e);return n}(function(e,t){return e=Y(e),void 0===t?function(e){return U.test(e)}(e)?function(e){return e.match(H)||[]}(e):function(e){return e.match(o)||[]}(e):e.match(t)||[]}(function(e){return(e=Y(e))&&e.replace(i,q).replace(D,"")}(e).replace(M,"")),Z,"")}),ee=function(e){var t,n,r,o,i=V(e=Y(e))?function(e){return V(e)?function(e){return e.match(B)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,a=i?i[0]:e.charAt(0),s=i?(t=i,n=1,o=t.length,r=void 0===r?o:r,!n&&r>=o?t:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(t,n,r)).join(""):e.slice(1);return a.toUpperCase()+s};e.exports=J},491:(e,t,n)=>{var r=n(8256).Y,o="undefined"!=typeof window?window.matchMedia:null;function i(e,t,n){var i,a=this;function s(e){a.matches=e.matches,a.media=e.media}o&&!n&&(i=o.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(s)):(this.matches=r(e,t),this.media=e),this.addListener=function(e){i&&i.addListener(e)},this.removeListener=function(e){i&&i.removeListener(e)},this.dispose=function(){i&&i.removeListener(s)}}e.exports=function(e,t,n){return new i(e,t,n)}},535:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(3410),o=n(8209);function i(e,t,n,i){var a,s,l;null==n&&(a=e,l=-1===(s=(0,r.A)(a,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(s)*l||0);var u=function(e,t,n){void 0===n&&(n=5);var r=!1,i=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent("transitionend",n,r),e.dispatchEvent(o)}}(e,0,!0)}),t+n),a=(0,o.A)(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(i),a()}}(e,n,i),c=(0,o.A)(e,"transitionend",t);return function(){u(),c()}}function a(e,t){var n=(0,r.A)(e,t)||"",o=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*o}function s(e,t){var n=a(e,"transitionDuration"),r=a(e,"transitionDelay"),o=i(e,(function(n){n.target===e&&(o(),t(n))}),n+r)}},551:(e,t,n)=>{n.d(t,{B1:()=>o,al:()=>a,mk:()=>i});let r={};function o(e,t){void 0===r[e]&&(r[e]=[]),r[e].push(t)}function i(e,t){void 0===r[e]&&(r[e]=[]),r[e].forEach((n=>{t?n(e,t):n(e)}))}function a(e,t){void 0===r[e]&&(r[e]=[]),r[e]=r[e].filter((e=>e!==t))}},553:(e,t,n)=>{n.d(t,{Kq:()=>i,ob:()=>a}),n(6273);var r=n(8313),o="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?r.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=r.createContext(null)),i=(o.Consumer,o.Provider),a=o},574:(e,t,n)=>{n.d(t,{Pe:()=>f,fH:()=>u,vV:()=>c,yM:()=>l});var r=n(2907),o=n.n(r);const i={config:o().object.isRequired},a={logInfo:o().func.isRequired,logError:o().func.isRequired};let s=null;function l(e,t){return o().checkPropTypes(i,t,"property","Logging"),s=new e(t),o().checkPropTypes(a,s,"property","LoggingService"),s}function u(e,t){return s.logInfo(e,t)}function c(e,t){return s.logError(e,t)}function f(){if(!s)throw Error("You must first configure the logging service.");return s}},816:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(7517),o=n(3091),i=n(5647),a=n(5142);function s({imageUrl:e="https://edx-cdn.org/v3/default/logo.svg",destinationUrl:t}){const n=(0,r.jsx)(i.A,{src:e,style:{maxHeight:"2rem"}});return void 0===t?n:(0,r.jsx)(o.A,{locale:"en",children:(0,r.jsx)(a.A,{destination:t,className:"p-0",children:n})})}},1145:(e,t,n)=>{n.d(t,{A:()=>s});var r,o={},i=function(){if(r)return o;r=1,Object.defineProperty(o,"__esModule",{value:!0}),o.parse=function(e,t){const n=new s,r=e.length;if(r<2)return n;const o=t?.decode||c;let i=0;do{const t=e.indexOf("=",i);if(-1===t)break;const a=e.indexOf(";",i),s=-1===a?r:a;if(t>s){i=e.lastIndexOf(";",t-1)+1;continue}const c=l(e,i,t),f=u(e,t,c),d=e.slice(c,f);if(void 0===n[d]){let r=l(e,t+1,s),i=u(e,s,r);const a=o(e.slice(r,i));n[d]=a}i=s+1}while(i<r);return n},o.serialize=function(r,o,s){const l=s?.encode||encodeURIComponent;if(!e.test(r))throw new TypeError(`argument name is invalid: ${r}`);const u=l(o);if(!t.test(u))throw new TypeError(`argument val is invalid: ${o}`);let c=r+"="+u;if(!s)return c;if(void 0!==s.maxAge){if(!Number.isInteger(s.maxAge))throw new TypeError(`option maxAge is invalid: ${s.maxAge}`);c+="; Max-Age="+s.maxAge}if(s.domain){if(!n.test(s.domain))throw new TypeError(`option domain is invalid: ${s.domain}`);c+="; Domain="+s.domain}if(s.path){if(!i.test(s.path))throw new TypeError(`option path is invalid: ${s.path}`);c+="; Path="+s.path}if(s.expires){if(!function(e){return"[object Date]"===a.call(e)}(s.expires)||!Number.isFinite(s.expires.valueOf()))throw new TypeError(`option expires is invalid: ${s.expires}`);c+="; Expires="+s.expires.toUTCString()}if(s.httpOnly&&(c+="; HttpOnly"),s.secure&&(c+="; Secure"),s.partitioned&&(c+="; Partitioned"),s.priority)switch("string"==typeof s.priority?s.priority.toLowerCase():void 0){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${s.priority}`)}if(s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${s.sameSite}`)}return c};const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,s=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function l(e,t,n){do{const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<n);return n}function u(e,t,n){for(;t>n;){const n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return n}function c(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}return o}();function a(e,t={}){const n=function(e){return e&&"j"===e[0]&&":"===e[1]?e.substr(2):e}(e);if(!t.doNotParse)try{return JSON.parse(n)}catch(e){}return e}class s{constructor(e,t={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const e=this.cookies;this.cookies=i.parse(document.cookie),this._checkChanges(e)};const n="undefined"==typeof document?"":document.cookie;this.cookies=function(e){return"string"==typeof e?i.parse(e):"object"==typeof e&&null!==e?e:{}}(e||n),this.defaultSetOptions=t,this.HAS_DOCUMENT_COOKIE=function(){const e="undefined"==typeof global?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return"boolean"==typeof e?e:"object"==typeof document&&"string"==typeof document.cookie}()}_emitChange(e){for(let t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)}_checkChanges(e){new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach((t=>{e[t]!==this.cookies[t]&&this._emitChange({name:t,value:a(this.cookies[t])})}))}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(e,t={}){return t.doNotUpdate||this.update(),a(this.cookies[e],t)}getAll(e={}){e.doNotUpdate||this.update();const t={};for(let n in this.cookies)t[n]=a(this.cookies[n],e);return t}set(e,t,n){n=n?Object.assign(Object.assign({},this.defaultSetOptions),n):this.defaultSetOptions;const r="string"==typeof t?t:JSON.stringify(t);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:r}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=i.serialize(e,r,n)),this._emitChange({name:e,value:t,options:n})}remove(e,t){const n=t=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=i.serialize(e,"",n)),this._emitChange({name:e,value:void 0,options:t})}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&1===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(e){const t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1),this.HAS_DOCUMENT_COOKIE&&0===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}removeAllChangeListeners(){for(;this.changeListeners.length>0;)this.removeChangeListener(this.changeListeners[0])}}},1282:(e,t,n)=>{n.d(t,{CR:()=>L,uF:()=>G,Xf:()=>C,al:()=>A,Y0:()=>k});var r=n(7517),o=n(8906),i=n(8313),a=n(2907),s=n.n(a),l=n(7141),u=n.n(l),c=n(9511),f=n(1550),d=n(2402),h=["bsPrefix","variant","animation","size","children","as","className"],p=i.forwardRef((function(e,t){var n=e.bsPrefix,r=e.variant,o=e.animation,a=e.size,s=e.children,l=e.as,p=void 0===l?"div":l,m=e.className,v=(0,f.A)(e,h),g=(n=(0,d.oU)(n,"spinner"))+"-"+o;return i.createElement(p,(0,c.A)({ref:t},v,{className:u()(m,g,a&&g+"-"+a,r&&"text-"+r)}),s)}));p.displayName="Spinner";const m=p;const v=i.forwardRef(((e,t)=>{let{className:n,screenReaderText:r}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","screenReaderText"]);const a=Object.assign(Object.assign({},o),{className:u()("pgn__spinner",n),role:r?"status":void 0});return i.createElement(m,Object.assign(Object.assign({},a),{ref:t}),r&&i.createElement("span",{className:"sr-only"},r))}));v.propTypes={className:s().string,screenReaderText:s().node},v.defaultProps={className:void 0,screenReaderText:void 0};const g=v;var y=n(7409),b=n(2880);function w({url:e,title:t}){const[n,o]=(0,i.useState)(!1),[a,s]=(0,i.useState)(!1),{ref:l,element:c,width:f,height:d}=(0,y.Lh)();(0,i.useEffect)((()=>{n&&(0,y.ox)(c,{type:b.GV,payload:{width:f,height:d}},e)}),[c,n,f,d,e]),(0,y.XL)(c,b.u3,(()=>{o(!0)})),(0,y.XL)(c,b.RK,(()=>{s(!0)}));const h=(0,r.jsx)(g,{animation:"border",variant:"light",screenReaderText:"Loading"});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("iframe",{ref:l,title:t,src:e,allow:b.vg,referrerPolicy:"origin",className:u()("border border-0 w-100",{"d-none":!a})}),!a&&h]})}var E=n(6349),x=n(2800);const S=(0,i.createContext)({slotId:"",widgetId:"",role:void 0});function O({children:e,slotId:t,widgetId:n,role:o}){return(0,i.useEffect)((()=>(void 0!==o&&(0,x.Is)(o),()=>{void 0!==o&&(0,x.JD)(o)})),[o]),(0,r.jsx)(S.Provider,{value:{slotId:t,widgetId:n,role:o},children:e})}function A(e){return Object.values(E.z).includes(e.op)}function C(e){return e.op===E.z.APPEND||e.op===E.z.PREPEND}function k(e){return e.op===E.z.INSERT_AFTER||e.op===E.z.INSERT_BEFORE}function T(e){return A(e)&&e.op===E.z.APPEND}function P(e){return A(e)&&e.op===E.z.INSERT_AFTER}function N(e){return A(e)&&e.op===E.z.INSERT_BEFORE}function _(e){return A(e)&&e.op===E.z.PREPEND}function R(e){return A(e)&&e.op===E.z.REMOVE}function I(e){return A(e)&&e.op===E.z.REPLACE}function L(e,t,n){let r;return n&&(r={slotId:t,id:e,op:E.z.APPEND,element:n}),r}function j(e,t){let n=null;const{id:o}=e;return function(e){return A(e)&&"component"in e}(e)?n=(0,r.jsx)(e.component,Object.assign({},t)):function(e){return A(e)&&"element"in e}(e)?n=e.element:function(e){return A(e)&&"url"in e&&"title"in e}(e)&&(n=(0,r.jsx)(w,{url:e.url,title:e.title})),{id:o,node:(0,r.jsx)(O,{slotId:e.slotId,widgetId:e.id,role:e.role,children:n},o)}}function M(e,t){for(const n of t)if(n.id===e)return t.indexOf(n);return null}function D(e,t,n){const r=j(e,n);t.push(r)}function B(e,t,n){const r=j(e,n);t.unshift(r)}function H(e,t,n){const r=j(e,n),o=M(e.relatedId,t);null!==o&&t.splice(o+1,0,r)}function F(e,t,n){const r=j(e,n),o=M(e.relatedId,t);null!==o&&t.splice(o,0,r)}function U(e,t,n){const r=j(e,n),o=M(e.relatedId,t);null!==o&&t.splice(o,1,r)}function z(e,t){const n=M(e.relatedId,t);null!==n&&t.splice(n,1)}function G(e,t){const n=[];for(const r of e)(0,o.X)(r)&&(T(r)?D(r,n,t):_(r)?B(r,n,t):P(r)?H(r,n,t):N(r)?F(r,n,t):I(r)?U(r,n,t):R(r)&&z(r,n));return n.map((e=>e.node))}},1453:(e,t,n)=>{n.d(t,{S:()=>v});var r=n(1635);function o(e,t){var n=t&&t.cache?t.cache:f,r=t&&t.serializer?t.serializer:u;return(t&&t.strategy?t.strategy:l)(e,{cache:n,serializer:r})}function i(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function a(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function s(e,t,n,r,o){return n.bind(t,e,r,o)}function l(e,t){return s(e,this,1===e.length?i:a,t.cache.create(),t.serializer)}var u=function(){return JSON.stringify(arguments)};function c(){this.cache=Object.create(null)}c.prototype.get=function(e){return this.cache[e]},c.prototype.set=function(e,t){this.cache[e]=t};var f={create:function(){return new c}},d={variadic:function(e,t){return s(e,this,a,t.cache.create(),t.serializer)},monadic:function(e,t){return s(e,this,i,t.cache.create(),t.serializer)}},h=n(9263),p=n(7270);function m(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}var v=function(){function e(t,n,i,a){void 0===n&&(n=e.defaultLocale);var s,l,u,c=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=c.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===p.TT.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return(0,p.hN)(c.ast,c.locales,c.formatters,c.formats,e,void 0,c.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=c.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(c.locales)[0]}},this.getAst=function(){return c.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var f=a||{},h=(f.formatters,(0,r.Tt)(f,["formatters"]));this.ast=e.__parse(t,(0,r.Cl)((0,r.Cl)({},h),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(l=e.formats,(u=i)?Object.keys(l).reduce((function(e,t){var n,o;return e[t]=(n=l[t],(o=u[t])?(0,r.Cl)((0,r.Cl)((0,r.Cl)({},n||{}),o||{}),Object.keys(n).reduce((function(e,t){return e[t]=(0,r.Cl)((0,r.Cl)({},n[t]),o[t]||{}),e}),{})):n),e}),(0,r.Cl)({},l)):l),this.formatters=a&&a.formatters||(void 0===(s=this.formatterCache)&&(s={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:o((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{cache:m(s.number),strategy:d.variadic}),getDateTimeFormat:o((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{cache:m(s.dateTime),strategy:d.variadic}),getPluralRules:o((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{cache:m(s.pluralRules),strategy:d.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=h.qg,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}()},1495:(e,t,n)=>{n.d(t,{Ho:()=>c,OC:()=>a,hr:()=>l,pg:()=>u,sb:()=>f,uo:()=>s});var r,o=n(1635);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(r||(r={}));var i=function(e){function t(n,r,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return(i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return(0,o.C6)(t,e),t}(Error),a=function(e){function t(t,n){return e.call(this,r.UNSUPPORTED_FORMATTER,t,n)||this}return(0,o.C6)(t,e),t}(i),s=function(e){function t(t,n){return e.call(this,r.INVALID_CONFIG,t,n)||this}return(0,o.C6)(t,e),t}(i),l=function(e){function t(t,n){return e.call(this,r.MISSING_DATA,t,n)||this}return(0,o.C6)(t,e),t}(i),u=function(e){function t(t,n,o){var i=e.call(this,r.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),o)||this;return i.locale=n,i}return(0,o.C6)(t,e),t}(i),c=function(e){function t(t,n,r,o){var i=e.call(this,"".concat(t,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,o)||this;return i.descriptor=r,i.locale=n,i}return(0,o.C6)(t,e),t}(u),f=function(e){function t(t,n){var o=e.call(this,r.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return o.descriptor=t,o}return(0,o.C6)(t,e),t}(i)},1534:(e,t,n)=>{n.d(t,{A:()=>w,v:()=>y});var r=n(9511),o=n(1550),i=n(7141),a=n.n(i),s=n(2907),l=n.n(s),u=n(8313),c=n(7155),f=n(7355),d=(n(7730),n(5991)),h=n(2402),p=n(1607),m=n(4263),v=["bsPrefix","className","align","alignRight","rootCloseEvent","flip","show","renderOnMount","as","popperConfig"],g=l().oneOf(["left","right"]),y=l().oneOfType([g,l().shape({sm:g}),l().shape({md:g}),l().shape({lg:g}),l().shape({xl:g})]),b=u.forwardRef((function(e,t){var n=e.bsPrefix,i=e.className,s=e.align,l=e.alignRight,g=e.rootCloseEvent,y=e.flip,b=e.show,w=e.renderOnMount,E=e.as,x=void 0===E?"div":E,S=e.popperConfig,O=(0,o.A)(e,v),A=(0,u.useContext)(d.A),C=(0,h.oU)(n,"dropdown-menu"),k=(0,m.A)(),T=k[0],P=k[1],N=[];if(s)if("object"==typeof s){var _=Object.keys(s);if(_.length){var R=_[0],I=s[R];l="left"===I,N.push(C+"-"+R+"-"+I)}}else"right"===s&&(l=!0);var L=(0,c.G)({flip:y,rootCloseEvent:g,show:b,alignEnd:l,usePopper:!A&&0===N.length,popperConfig:(0,r.A)({},S,{modifiers:P.concat((null==S?void 0:S.modifiers)||[])})}),j=L[0],M=L[1],D=M.hasShown,B=M.popper,H=M.show,F=M.alignEnd,U=M.toggle;if(j.ref=(0,f.A)(T,(0,f.A)((0,p.A)(t,"DropdownMenu"),j.ref)),!D&&!w)return null;"string"!=typeof x&&(j.show=H,j.close=function(){return null==U?void 0:U(!1)},j.alignRight=F);var z=O.style;return null!=B&&B.placement&&(z=(0,r.A)({},O.style,j.style),O["x-placement"]=B.placement),u.createElement(x,(0,r.A)({},O,j,{style:z,className:a().apply(void 0,[i,C,H&&"show",F&&C+"-right"].concat(N))}))}));b.displayName="DropdownMenu",b.defaultProps={align:"left",alignRight:!1,flip:!0};const w=b},1550:(e,t,n)=>{function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},1607:(e,t,n)=>{function r(e,t){return e}n.d(t,{A:()=>r}),n(4334),n(8313),n(7355)},1635:(e,t,n)=>{n.d(t,{C6:()=>o,Cl:()=>i,Tt:()=>a,aN:()=>s,fX:()=>l});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function l(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},1736:(e,t,n)=>{n.d(t,{XB:()=>l});var r=n(8313),o=n(3919),i=n(8906),a=n(1282),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function l(){const e=(0,o.x)(),{id:t}=e,n=s(e,["id"]);return delete n.children,function(e,t){const n=function(e){const t=function(e){const t=(0,o.g)(e),[n,s]=(0,r.useState)([]);return(0,r.useEffect)((()=>{const e=t.filter((e=>(0,a.al)(e)&&(0,i.X)(e)));s(e)}),[t]),n}(e),[n,s]=(0,r.useState)([]);return(0,r.useEffect)((()=>{const e=t.sort(((e,t)=>{const n=(0,a.Xf)(e),r=(0,a.Xf)(t);if(n&&r)return 0;if(n)return-1;if(r)return 1;if((0,a.Y0)(e)&&(0,a.Y0)(t)){if(e.id===t.relatedId)return-1;if(t.id===e.relatedId)return 1}return 0}));s(e)}),[t]),n}(e);return(0,a.uF)(n,t)}(t,n)}},1739:(e,t,n)=>{n.d(t,{Ay:()=>to});var r=n(8313),o=n(7141),i=n.n(o),a=n(2907),s=n.n(a),l=n(235),u=n(1534),c=n(8850),f=n(2213);function d(e){let{children:t,className:n}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className"]);return r.createElement(w,null,(e=>{let{buttonRef:a,isOpen:s,toggle:l,triggerId:u}=e;return r.createElement("button",Object.assign(Object.assign({},o),{id:i()(u,o.id),"aria-expanded":s,"aria-haspopup":!0,type:"button",ref:a,className:i()("dropdown-toggle","btn",n),onClick:e=>{l(e),o.onClick&&o.onClick(e)}}),t)}))}d.propTypes={children:s().node,className:s().string},d.defaultProps={children:void 0,className:"btn-light"};const h=d;function p(e){let{children:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children"]);return r.createElement(w,null,(e=>{let{handleMenuKeyDown:o,isOpen:a,menuRef:s,triggerId:l}=e;return r.createElement("div",Object.assign(Object.assign({},n),{"aria-labelledby":l,"aria-hidden":!a,ref:s,role:"menu",className:i()("dropdown-menu",{show:a},n.className),onKeyDown:e=>{o(e),n.onKeyDown&&n.onKeyDown(e)}}),t)}))}p.propTypes={children:s().node},p.defaultProps={children:void 0};const m=p;function v(e){const{type:t,children:n,className:o}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["type","children","className"]);return r.createElement(t,Object.assign(Object.assign({},a),{className:i()("dropdown-item",o)}),n)}v.propTypes={type:s().string,children:s().node,className:s().string},v.defaultProps={type:"a",children:void 0,className:null};const g=v;var y=n(6084);const{Provider:b,Consumer:w}=r.createContext();class E extends r.Component{constructor(e){super(e),this.handleDocumentClick=e=>{this.containerRef.current.contains(e.target)&&this.containerRef.current!==e.target||this.state.open&&this.close()},this.handleMenuKeyDown=e=>{switch(e.key){case"ArrowUp":e.preventDefault(),this.focusPrevious();break;case"ArrowDown":e.preventDefault(),this.focusNext();break;case"Tab":e.preventDefault(),e.shiftKey?this.focusPrevious():this.focusNext();break;case"Escape":e.stopPropagation(),this.close()}},this.toggle=()=>{this.state.open?this.close():this.open()},this.state={open:!1},this.uniqueId=E.idCounter,E.idCounter+=1,this.triggerId=`pgn__dropdown-trigger-${this.uniqueId}`,this.containerRef=r.createRef(),this.menuRef=r.createRef(),this.buttonRef=r.createRef()}componentDidUpdate(e,t){t.open!==this.state.open&&(this.state.open?this.focusFirst():this.buttonRef.current.focus())}componentWillUnmount(){document.removeEventListener("click",this.handleDocumentClick,!0)}getFocusableElements(){return Array.from(this.menuRef.current.querySelectorAll('button:not([disabled]), [href]:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])'))}close(){document.removeEventListener("click",this.handleDocumentClick,!0),this.setState({open:!1})}open(){document.addEventListener("click",this.handleDocumentClick,!0),this.setState({open:!0})}focusFirst(){const e=this.getFocusableElements();e.length&&e[0].focus()}focusNext(){const e=this.getFocusableElements();if(0===e.length)return;const t=e.indexOf(document.activeElement);e[(t+1)%e.length].focus()}focusPrevious(){const e=this.getFocusableElements();if(0===e.length)return;const t=e.indexOf(document.activeElement);e[(t-1+e.length)%e.length].focus()}render(){const e=this.props,{children:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children"]);return r.createElement("div",Object.assign(Object.assign({},n),{className:i()("dropdown",{show:this.state.open},n.className),ref:this.containerRef}),r.createElement(b,{value:{buttonRef:this.buttonRef,handleMenuKeyDown:this.handleMenuKeyDown,isOpen:this.state.open,menuRef:this.menuRef,toggle:this.toggle,triggerId:this.triggerId}},t))}}E.idCounter=0,E.propTypes={children:s().node},E.Item=g,E.Button=h,E.Menu=m;const x=(0,y.A)(E,"Dropdown",{menuItems:{deprType:y.J.MOVED_AND_FORMAT,message:"They should be components sent as children.",newName:"children",transform:(e,t)=>Array.isArray(e)?r.createElement(r.Fragment,null,r.createElement(h,null,r.isValidElement(t.iconElement)?t.iconElement:null,t.title),r.createElement(m,null,e.map(((e,t)=>r.isValidElement(e)?r.cloneElement(e,{className:"dropdown-item",key:t}):r.createElement(g,{key:t,href:e.href},e.label))))):null},title:{deprType:y.J.REMOVED,message:"It should be specified inside the Dropdown.Button component"},buttonType:{deprType:y.J.REMOVED,message:"It should be specified as a className prop"},iconElement:{deprType:y.J.REMOVED,message:"It should be specified inside the buttonContent prop."}});x.propTypes=E.propTypes,x.defaultProps=E.defaultProps,x.Item=E.Item,x.Button=E.Button,x.Menu=E.Menu;const S=x;var O=n(4152);function A(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const T=()=>{};let P={},N={},_=null,R={mark:T,measure:T};try{"undefined"!=typeof window&&(P=window),"undefined"!=typeof document&&(N=document),"undefined"!=typeof MutationObserver&&(_=MutationObserver),"undefined"!=typeof performance&&(R=performance)}catch(e){}const{userAgent:I=""}=P.navigator||{},L=P,j=N,M=_,D=R,B=(L.document,!!j.documentElement&&!!j.head&&"function"==typeof j.addEventListener&&"function"==typeof j.createElement),H=~I.indexOf("MSIE")||~I.indexOf("Trident/");var F={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},U=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],z="classic",G="duotone",W=[z,G,"sharp","sharp-duotone"],q=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),V=["fak","fa-kit","fakd","fa-kit-duotone"],$=["fak","fakd"],K={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},X=["fak","fa-kit","fakd","fa-kit-duotone"],Q={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},Y=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],Z=[1,2,3,4,5,6,7,8,9,10],J=Z.concat([11,12,13,14,15,16,17,18,19,20]),ee=[...Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",K.GROUP,K.SWAP_OPACITY,K.PRIMARY,K.SECONDARY].concat(Z.map((e=>"".concat(e,"x")))).concat(J.map((e=>"w-".concat(e))));const te="___FONT_AWESOME___",ne=16,re="svg-inline--fa",oe="data-fa-i2svg",ie="data-fa-pseudo-element",ae="data-prefix",se="data-icon",le="fontawesome-i2svg",ue=["HTML","HEAD","STYLE","SCRIPT"],ce=(()=>{try{return!0}catch(e){return!1}})();function fe(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[z]})}const de=k({},F);de[z]=k(k(k(k({},{"fa-duotone":"duotone"}),F[z]),{fak:"kit","fa-kit":"kit"}),{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"});const he=fe(de),pe=k({},{classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}});pe[z]=k(k(k(k({},{duotone:"fad"}),pe[z]),{kit:"fak"}),{"kit-duotone":"fakd"});const me=fe(pe),ve=k({},Q);ve[z]=k(k({},ve[z]),{fak:"fa-kit"});const ge=fe(ve),ye=k({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}});ye[z]=k(k({},ye[z]),{"fa-kit":"fak"}),fe(ye);const be=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,we="fa-layers-text",Ee=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,xe=(fe(k({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}})),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),Se="duotone-group",Oe="primary",Ae="secondary",Ce=["kit",...ee],ke=L.FontAwesomeConfig||{};j&&"function"==typeof j.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((e=>{let[t,n]=e;const r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=j.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=r&&(ke[n]=r)}));const Te={styleDefault:"solid",familyDefault:z,cssPrefix:"fa",replacementClass:re,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ke.familyPrefix&&(ke.cssPrefix=ke.familyPrefix);const Pe=k(k({},Te),ke);Pe.autoReplaceSvg||(Pe.observeMutations=!1);const Ne={};Object.keys(Te).forEach((e=>{Object.defineProperty(Ne,e,{enumerable:!0,set:function(t){Pe[e]=t,_e.forEach((e=>e(Ne)))},get:function(){return Pe[e]}})})),Object.defineProperty(Ne,"familyPrefix",{enumerable:!0,set:function(e){Pe.cssPrefix=e,_e.forEach((e=>e(Ne)))},get:function(){return Pe.cssPrefix}}),L.FontAwesomeConfig=Ne;const _e=[],Re=ne,Ie={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Le(){let e=12,t="";for(;e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function je(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Me(e){return e.classList?je(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function De(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Be(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";")),"")}function He(e){return e.size!==Ie.size||e.x!==Ie.x||e.y!==Ie.y||e.rotate!==Ie.rotate||e.flipX||e.flipY}function Fe(){const e="fa",t=re,n=Ne.cssPrefix,r=Ne.replacementClass;let o=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}';if(n!==e||r!==t){const i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return o}let Ue=!1;function ze(){Ne.autoAddCss&&!Ue&&(function(e){if(!e||!B)return;const t=j.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=j.head.childNodes;let r=null;for(let e=n.length-1;e>-1;e--){const t=n[e],o=(t.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=t)}j.head.insertBefore(t,r)}(Fe()),Ue=!0)}var Ge={mixout:()=>({dom:{css:Fe,insertCss:ze}}),hooks:()=>({beforeDOMElementCreation(){ze()},beforeI2svg(){ze()}})};const We=L||{};We[te]||(We[te]={}),We[te].styles||(We[te].styles={}),We[te].hooks||(We[te].hooks={}),We[te].shims||(We[te].shims=[]);var qe=We[te];const Ve=[],$e=function(){j.removeEventListener("DOMContentLoaded",$e),Ke=1,Ve.map((e=>e()))};let Ke=!1;function Xe(e){const{tag:t,attributes:n={},children:r=[]}=e;return"string"==typeof e?De(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,'="').concat(De(e[n]),'" ')),"").trim()}(n),">").concat(r.map(Xe).join(""),"</").concat(t,">")}function Qe(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}B&&(Ke=(j.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(j.readyState),Ke||j.addEventListener("DOMContentLoaded",$e));var Ye=function(e,t,n,r){var o,i,a,s=Object.keys(e),l=s.length,u=void 0!==r?function(e,t){return function(n,r,o,i){return e.call(t,n,r,o,i)}}(t,r):t;for(void 0===n?(o=1,a=e[s[0]]):(o=0,a=n);o<l;o++)a=u(a,e[i=s[o]],i,e);return a};function Ze(e){const t=function(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t}(e);return 1===t.length?t[0].toString(16):null}function Je(e){return Object.keys(e).reduce(((t,n)=>{const r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function et(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:r=!1}=n,o=Je(t);"function"!=typeof qe.hooks.addPack||r?qe.styles[e]=k(k({},qe.styles[e]||{}),o):qe.hooks.addPack(e,Je(t)),"fas"===e&&et("fa",t)}const{styles:tt,shims:nt}=qe,rt=Object.keys(ge),ot=rt.reduce(((e,t)=>(e[t]=Object.keys(ge[t]),e)),{});let it=null,at={},st={},lt={},ut={},ct={};const ft=()=>{const e=e=>Ye(tt,((t,n,r)=>(t[r]=Ye(n,e,{}),t)),{});at=e(((e,t,n)=>(t[3]&&(e[t[3]]=n),t[2]&&t[2].filter((e=>"number"==typeof e)).forEach((t=>{e[t.toString(16)]=n})),e))),st=e(((e,t,n)=>(e[n]=n,t[2]&&t[2].filter((e=>"string"==typeof e)).forEach((t=>{e[t]=n})),e))),ct=e(((e,t,n)=>{const r=t[2];return e[n]=n,r.forEach((t=>{e[t]=n})),e}));const t="far"in tt||Ne.autoFetchSvg,n=Ye(nt,((e,n)=>{const r=n[0];let o=n[1];const i=n[2];return"far"!==o||t||(o="fas"),"string"==typeof r&&(e.names[r]={prefix:o,iconName:i}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:o,iconName:i}),e}),{names:{},unicodes:{}});lt=n.names,ut=n.unicodes,it=gt(Ne.styleDefault,{family:Ne.familyDefault})};var dt;function ht(e,t){return(at[e]||{})[t]}function pt(e,t){return(ct[e]||{})[t]}function mt(e){return lt[e]||{prefix:null,iconName:null}}function vt(){return it}function gt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=z}=t,r=he[n][e];if(n===G&&!e)return"fad";const o=me[n][e]||me[n][r],i=e in qe.styles?e:null;return o||i||null}function yt(e){return e.sort().filter(((e,t,n)=>n.indexOf(e)===t))}function bt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const o=Y.concat(X),i=yt(e.filter((e=>o.includes(e)))),a=yt(e.filter((e=>!Y.includes(e)))),s=i.filter((e=>(r=e,!U.includes(e)))),[l=null]=s,u=function(e){let t=z;const n=rt.reduce(((e,t)=>(e[t]="".concat(Ne.cssPrefix,"-").concat(t),e)),{});return W.forEach((r=>{(e.includes(n[r])||e.some((e=>ot[r].includes(e))))&&(t=r)})),t}(i),c=k(k({},function(e){let t=[],n=null;return e.forEach((e=>{const r=function(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r!==e||""===o||(i=o,~Ce.indexOf(i))?null:o;var i}(Ne.cssPrefix,e);r?n=r:e&&t.push(e)})),{iconName:n,rest:t}}(a)),{},{prefix:gt(l,{family:u})});return k(k(k({},c),function(e){const{values:t,family:n,canonical:r,givenPrefix:o="",styles:i={},config:a={}}=e,s=n===G,l=t.includes("fa-duotone")||t.includes("fad"),u="duotone"===a.familyDefault,c="fad"===r.prefix||"fa-duotone"===r.prefix;if(!s&&(l||u||c)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&wt.includes(n)&&(Object.keys(i).find((e=>Et.includes(e)))||a.autoFetchSvg)){const e=q.get(n).defaultShortPrefixId;r.prefix=e,r.iconName=pt(r.prefix,r.iconName)||r.iconName}return"fa"!==r.prefix&&"fa"!==o||(r.prefix=vt()||"fas"),r}({values:e,family:u,styles:tt,config:Ne,canonical:c,givenPrefix:r})),function(e,t,n){let{prefix:r,iconName:o}=n;if(e||!r||!o)return{prefix:r,iconName:o};const i="fa"===t?mt(o):{},a=pt(r,o);return o=i.iconName||a||o,r=i.prefix||r,"far"!==r||tt.far||!tt.fas||Ne.autoFetchSvg||(r="fas"),{prefix:r,iconName:o}}(n,r,c))}dt=e=>{it=gt(e.styleDefault,{family:Ne.familyDefault})},_e.push(dt),ft();const wt=W.filter((e=>e!==z||e!==G)),Et=Object.keys(Q).filter((e=>e!==z)).map((e=>Object.keys(Q[e]))).flat();let xt=[],St={};const Ot={},At=Object.keys(Ot);function Ct(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return(St[e]||[]).forEach((e=>{t=e.apply(null,[t,...r])})),t}function kt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(St[e]||[]).forEach((e=>{e.apply(null,n)}))}function Tt(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Ot[e]?Ot[e].apply(null,t):void 0}function Pt(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||vt();if(t)return t=pt(n,t)||t,Qe(Nt.definitions,n,t)||Qe(qe.styles,n,t)}const Nt=new class{constructor(){this.definitions={}}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(this._pullDefinitions,{});Object.keys(r).forEach((e=>{this.definitions[e]=k(k({},this.definitions[e]||{}),r[e]),et(e,r[e]);const t=ge[z][e];t&&et(t,r[e]),ft()}))}reset(){this.definitions={}}_pullDefinitions(e,t){const n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((t=>{const{prefix:r,iconName:o,icon:i}=n[t],a=i[2];e[r]||(e[r]={}),a.length>0&&a.forEach((t=>{"string"==typeof t&&(e[r][t]=i)})),e[r][o]=i})),e}},_t={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return B?(kt("beforeI2svg",e),Tt("pseudoElements2svg",e),Tt("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;var n;!1===Ne.autoReplaceSvg&&(Ne.autoReplaceSvg=!0),Ne.observeMutations=!0,n=()=>{Lt({autoReplaceSvgRoot:t}),kt("watch",e)},B&&(Ke?setTimeout(n,0):Ve.push(n))}},Rt={icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:pt(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){const t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=gt(e[0]);return{prefix:n,iconName:pt(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(Ne.cssPrefix,"-"))>-1||e.match(be))){const t=bt(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||vt(),iconName:pt(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=vt();return{prefix:t,iconName:pt(t,e)||e}}}},It={noAuto:()=>{Ne.autoReplaceSvg=!1,Ne.observeMutations=!1,kt("noAuto")},config:Ne,dom:_t,parse:Rt,library:Nt,findIconDefinition:Pt,toHtml:Xe},Lt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=j}=e;(Object.keys(qe.styles).length>0||Ne.autoFetchSvg)&&B&&Ne.autoReplaceSvg&&It.dom.i2svg({node:t})};function jt(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>Xe(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!B)return;const t=j.createElement("div");return t.innerHTML=e.html,t.children}}),e}function Mt(e){const{icons:{main:t,mask:n},prefix:r,iconName:o,transform:i,symbol:a,title:s,maskId:l,titleId:u,extra:c,watchable:f=!1}=e,{width:d,height:h}=n.found?n:t,p=$.includes(r),m=[Ne.replacementClass,o?"".concat(Ne.cssPrefix,"-").concat(o):""].filter((e=>-1===c.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(c.classes).join(" ");let v={children:[],attributes:k(k({},c.attributes),{},{"data-prefix":r,"data-icon":o,class:m,role:c.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(h)})};const g=p&&!~c.classes.indexOf("fa-fw")?{width:"".concat(d/h*16*.0625,"em")}:{};f&&(v.attributes[oe]=""),s&&(v.children.push({tag:"title",attributes:{id:v.attributes["aria-labelledby"]||"title-".concat(u||Le())},children:[s]}),delete v.attributes.title);const y=k(k({},v),{},{prefix:r,iconName:o,main:t,mask:n,maskId:l,transform:i,symbol:a,styles:k(k({},g),c.styles)}),{children:b,attributes:w}=n.found&&t.found?Tt("generateAbstractMask",y)||{children:[],attributes:{}}:Tt("generateAbstractIcon",y)||{children:[],attributes:{}};return y.children=b,y.attributes=w,a?function(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;const a=!0===i?"".concat(t,"-").concat(Ne.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:k(k({},o),{},{id:a}),children:r}]}]}(y):function(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:a}=e;if(He(a)&&n.found&&!r.found){const{width:e,height:t}=n,r={x:e/t/2,y:.5};o.style=Be(k(k({},i),{},{"transform-origin":"".concat(r.x+a.x/16,"em ").concat(r.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(y)}function Dt(e){const{content:t,width:n,height:r,transform:o,title:i,extra:a,watchable:s=!1}=e,l=k(k(k({},a.attributes),i?{title:i}:{}),{},{class:a.classes.join(" ")});s&&(l[oe]="");const u=k({},a.styles);He(o)&&(u.transform=function(e){let{transform:t,width:n=ne,height:r=ne,startCentered:o=!1}=e,i="";return i+=o&&H?"translate(".concat(t.x/Re-n/2,"em, ").concat(t.y/Re-r/2,"em) "):o?"translate(calc(-50% + ".concat(t.x/Re,"em), calc(-50% + ").concat(t.y/Re,"em)) "):"translate(".concat(t.x/Re,"em, ").concat(t.y/Re,"em) "),i+="scale(".concat(t.size/Re*(t.flipX?-1:1),", ").concat(t.size/Re*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}({transform:o,startCentered:!0,width:n,height:r}),u["-webkit-transform"]=u.transform);const c=Be(u);c.length>0&&(l.style=c);const f=[];return f.push({tag:"span",attributes:l,children:[t]}),i&&f.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),f}const{styles:Bt}=qe;function Ht(e){const t=e[0],n=e[1],[r]=e.slice(4);let o=null;return o=Array.isArray(r)?{tag:"g",attributes:{class:"".concat(Ne.cssPrefix,"-").concat(Se)},children:[{tag:"path",attributes:{class:"".concat(Ne.cssPrefix,"-").concat(Ae),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Ne.cssPrefix,"-").concat(Oe),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const Ft={found:!1,width:512,height:512};function Ut(e,t){let n=t;return"fa"===t&&null!==Ne.styleDefault&&(t=vt()),new Promise(((r,o)=>{if("fa"===n){const n=mt(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&Bt[t]&&Bt[t][e])return r(Ht(Bt[t][e]));!function(e,t){ce||Ne.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(k(k({},Ft),{},{icon:Ne.showMissingIcons&&e&&Tt("missingIconAbstract")||{}}))}))}const zt=()=>{},Gt=Ne.measurePerformance&&D&&D.mark&&D.measure?D:{mark:zt,measure:zt},Wt='FA "6.7.2"';var qt=e=>(Gt.mark("".concat(Wt," ").concat(e," begins")),()=>(e=>{Gt.mark("".concat(Wt," ").concat(e," ends")),Gt.measure("".concat(Wt," ").concat(e),"".concat(Wt," ").concat(e," begins"),"".concat(Wt," ").concat(e," ends"))})(e));const Vt=()=>{};function $t(e){return"string"==typeof(e.getAttribute?e.getAttribute(oe):null)}function Kt(e){return j.createElementNS("http://www.w3.org/2000/svg",e)}function Xt(e){return j.createElement(e)}function Qt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?Kt:Xt)}=t;if("string"==typeof e)return j.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){r.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){r.appendChild(Qt(e,{ceFn:n}))})),r}const Yt={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(Qt(e),t)})),null===t.getAttribute(oe)&&Ne.keepOriginalSource){let e=j.createComment(function(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}(t));t.parentNode.replaceChild(e,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Me(t).indexOf(Ne.replacementClass))return Yt.replace(e);const r=new RegExp("".concat(Ne.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce(((e,t)=>(t===Ne.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e)),{toNode:[],toSvg:[]});n[0].attributes.class=e.toSvg.join(" "),0===e.toNode.length?t.removeAttribute("class"):t.setAttribute("class",e.toNode.join(" "))}const o=n.map((e=>Xe(e))).join("\n");t.setAttribute(oe,""),t.innerHTML=o}};function Zt(e){e()}function Jt(e,t){const n="function"==typeof t?t:Vt;if(0===e.length)n();else{let t=Zt;"async"===Ne.mutateApproach&&(t=L.requestAnimationFrame||Zt),t((()=>{const t=!0===Ne.autoReplaceSvg?Yt.replace:Yt[Ne.autoReplaceSvg]||Yt.replace,r=qt("mutate");e.map(t),r(),n()}))}}let en=!1;function tn(){en=!0}function nn(){en=!1}let rn=null;function on(e){if(!M)return;if(!Ne.observeMutations)return;const{treeCallback:t=Vt,nodeCallback:n=Vt,pseudoElementsCallback:r=Vt,observeMutationsRoot:o=j}=e;rn=new M((e=>{if(en)return;const o=vt();je(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!$t(e.addedNodes[0])&&(Ne.searchPseudoElements&&r(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&Ne.searchPseudoElements&&r(e.target.parentNode),"attributes"===e.type&&$t(e.target)&&~xe.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(ae):null,n=e.getAttribute?e.getAttribute(se):null;return t&&n}(e.target)){const{prefix:t,iconName:n}=bt(Me(e.target));e.target.setAttribute(ae,t||o),n&&e.target.setAttribute(se,n)}else(i=e.target)&&i.classList&&i.classList.contains&&i.classList.contains(Ne.replacementClass)&&n(e.target);var i}))})),B&&rn.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function an(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=function(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"";let o=bt(Me(e));return o.prefix||(o.prefix=vt()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=(i=o.prefix,a=e.innerText,(st[i]||{})[a]||ht(o.prefix,Ze(e.innerText)))),!o.iconName&&Ne.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o;var i,a}(e),i=function(e){const t=je(e.attributes).reduce(((e,t)=>("class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e)),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Ne.autoA11y&&(n?t["aria-labelledby"]="".concat(Ne.replacementClass,"-title-").concat(r||Le()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),a=Ct("parseNodeAttributes",{},e);let s=t.styleParser?function(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce(((e,t)=>{const n=t.split(":"),r=n[0],o=n.slice(1);return r&&o.length>0&&(e[r]=o.join(":").trim()),e}),{})),n}(e):[];return k({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Ie,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:s,attributes:i}},a)}const{styles:sn}=qe;function ln(e){const t="nest"===Ne.autoReplaceSvg?an(e,{styleParser:!1}):an(e);return~t.extra.classes.indexOf(we)?Tt("generateLayersText",e,t):Tt("generateSvgReplacementMutation",e,t)}function un(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!B)return Promise.resolve();const n=j.documentElement.classList,r=e=>n.add("".concat(le,"-").concat(e)),o=e=>n.remove("".concat(le,"-").concat(e)),i=Ne.autoFetchSvg?[...V,...Y]:U.concat(Object.keys(sn));i.includes("fa")||i.push("fa");const a=[".".concat(we,":not([").concat(oe,"])")].concat(i.map((e=>".".concat(e,":not([").concat(oe,"])")))).join(", ");if(0===a.length)return Promise.resolve();let s=[];try{s=je(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),o("complete");const l=qt("onTree"),u=s.reduce(((e,t)=>{try{const n=ln(t);n&&e.push(n)}catch(e){ce||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise(((e,n)=>{Promise.all(u).then((n=>{Jt(n,(()=>{r("active"),r("complete"),o("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((e=>{l(),n(e)}))}))}function cn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ln(e).then((e=>{e&&Jt([e],t)}))}const fn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Ie,symbol:r=!1,mask:o=null,maskId:i=null,title:a=null,titleId:s=null,classes:l=[],attributes:u={},styles:c={}}=t;if(!e)return;const{prefix:f,iconName:d,icon:h}=e;return jt(k({type:"icon"},e),(()=>(kt("beforeDOMElementCreation",{iconDefinition:e,params:t}),Ne.autoA11y&&(a?u["aria-labelledby"]="".concat(Ne.replacementClass,"-title-").concat(s||Le()):(u["aria-hidden"]="true",u.focusable="false")),Mt({icons:{main:Ht(h),mask:o?Ht(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:f,iconName:d,transform:k(k({},Ie),n),symbol:r,title:a,maskId:i,titleId:s,extra:{attributes:u,styles:c,classes:l}}))))};var dn={mixout(){return{icon:(e=fn,function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(t||{}).icon?t:Pt(t||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:Pt(o||{})),e(r,k(k({},n),{},{mask:o}))})};var e},hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=un,e.nodeCallback=cn,e)}),provides(e){e.i2svg=function(e){const{node:t=j,callback:n=()=>{}}=e;return un(t,n)},e.generateSvgReplacementMutation=function(e,t){const{iconName:n,title:r,titleId:o,prefix:i,transform:a,symbol:s,mask:l,maskId:u,extra:c}=t;return new Promise(((t,f)=>{Promise.all([Ut(n,i),l.iconName?Ut(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[f,d]=l;t([e,Mt({icons:{main:f,mask:d},prefix:i,iconName:n,transform:a,symbol:s,maskId:u,title:r,titleId:o,extra:c,watchable:!0})])})).catch(f)}))},e.generateAbstractIcon=function(e){let{children:t,attributes:n,main:r,transform:o,styles:i}=e;const a=Be(i);let s;return a.length>0&&(n.style=a),He(o)&&(s=Tt("generateAbstractTransformGrouping",{main:r,transform:o,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},hn={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return jt({type:"layer"},(()=>{kt("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e((e=>{Array.isArray(e)?e.map((e=>{r=r.concat(e.abstract)})):r=r.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(Ne.cssPrefix,"-layers"),...n].join(" ")},children:r}]}))}})},pn={mixout:()=>({counter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:n=null,classes:r=[],attributes:o={},styles:i={}}=t;return jt({type:"counter",content:e},(()=>(kt("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:n,extra:r}=e,o=k(k(k({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=Be(r.styles);i.length>0&&(o.style=i);const a=[];return a.push({tag:"span",attributes:o,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}({content:e.toString(),title:n,extra:{attributes:o,styles:i,classes:["".concat(Ne.cssPrefix,"-layers-counter"),...r]}}))))}})},mn={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Ie,title:r=null,classes:o=[],attributes:i={},styles:a={}}=t;return jt({type:"text",content:e},(()=>(kt("beforeDOMElementCreation",{content:e,params:t}),Dt({content:e,transform:k(k({},Ie),n),title:r,extra:{attributes:i,styles:a,classes:["".concat(Ne.cssPrefix,"-layers-text"),...o]}}))))}}),provides(e){e.generateLayersText=function(e,t){const{title:n,transform:r,extra:o}=t;let i=null,a=null;if(H){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();i=n.width/t,a=n.height/t}return Ne.autoA11y&&!n&&(o.attributes["aria-hidden"]="true"),Promise.resolve([e,Dt({content:e.innerHTML,width:i,height:a,transform:r,title:n,extra:o,watchable:!0})])}}};const vn=new RegExp('"',"ug"),gn=[1105920,1112319],yn=k(k(k(k({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),bn=Object.keys(yn).reduce(((e,t)=>(e[t.toLowerCase()]=yn[t],e)),{}),wn=Object.keys(bn).reduce(((e,t)=>{const n=bn[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function En(e,t){const n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(((r,o)=>{if(null!==e.getAttribute(n))return r();const i=je(e.children).filter((e=>e.getAttribute(ie)===t))[0],a=L.getComputedStyle(e,t),s=a.getPropertyValue("font-family"),l=s.match(Ee),u=a.getPropertyValue("font-weight"),c=a.getPropertyValue("content");if(i&&!l)return e.removeChild(i),r();if(l&&"none"!==c&&""!==c){const c=a.getPropertyValue("content");let f=function(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(bn[n]||{})[o]||wn[n]}(s,u);const{value:d,isSecondary:h}=function(e){const t=e.replace(vn,""),n=function(e){const t=e.length;let n,r=e.charCodeAt(0);return r>=55296&&r<=56319&&t>1&&(n=e.charCodeAt(1),n>=56320&&n<=57343)?1024*(r-55296)+n-56320+65536:r}(t),r=n>=gn[0]&&n<=gn[1],o=2===t.length&&t[0]===t[1];return{value:Ze(o?t[0]:t),isSecondary:r||o}}(c),p=l[0].startsWith("FontAwesome");let m=ht(f,d),v=m;if(p){const e=function(e){const t=ut[e],n=ht("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(d);e.iconName&&e.prefix&&(m=e.iconName,f=e.prefix)}if(!m||h||i&&i.getAttribute(ae)===f&&i.getAttribute(se)===v)r();else{e.setAttribute(n,v),i&&e.removeChild(i);const a={iconName:null,title:null,titleId:null,prefix:null,transform:Ie,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:s}=a;s.attributes[ie]=t,Ut(m,f).then((o=>{const i=Mt(k(k({},a),{},{icons:{main:o,mask:{prefix:null,iconName:null,rest:[]}},prefix:f,iconName:v,extra:s,watchable:!0})),l=j.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=i.map((e=>Xe(e))).join("\n"),e.removeAttribute(n),r()})).catch(o)}}else r()}))}function xn(e){return Promise.all([En(e,"::before"),En(e,"::after")])}function Sn(e){return!(e.parentNode===document.head||~ue.indexOf(e.tagName.toUpperCase())||e.getAttribute(ie)||e.parentNode&&"svg"===e.parentNode.tagName)}function On(e){if(B)return new Promise(((t,n)=>{const r=je(e.querySelectorAll("*")).filter(Sn).map(xn),o=qt("searchPseudoElements");tn(),Promise.all(r).then((()=>{o(),nn(),t()})).catch((()=>{o(),nn(),n()}))}))}var An={hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=On,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=j}=e;Ne.searchPseudoElements&&On(t)}}};let Cn=!1;var kn={mixout:()=>({dom:{unwatch(){tn(),Cn=!0}}}),hooks:()=>({bootstrap(){on(Ct("mutationObserverCallbacks",{}))},noAuto(){rn&&rn.disconnect()},watch(e){const{observeMutationsRoot:t}=e;Cn?nn():on(Ct("mutationObserverCallbacks",{observeMutationsRoot:t}))}})};const Tn=e=>e.toLowerCase().split(" ").reduce(((e,t)=>{const n=t.toLowerCase().split("-"),r=n[0];let o=n.slice(1).join("-");if(r&&"h"===o)return e.flipX=!0,e;if(r&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(r){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0});var Pn={mixout:()=>({parse:{transform:e=>Tn(e)}}),hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Tn(n)),e}}),provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:n,containerWidth:r,iconWidth:o}=e;const i={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),u={outer:i,inner:{transform:"".concat(a," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(o/2*-1," -256)")}};return{tag:"g",attributes:k({},u.outer),children:[{tag:"g",attributes:k({},u.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:k(k({},t.icon.attributes),u.path)}]}]}}}};const Nn={x:0,y:0,width:"100%",height:"100%"};function _n(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var Rn={hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?bt(n.split(" ").map((e=>e.trim()))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=vt()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}),provides(e){e.generateAbstractMask=function(e){let{children:t,attributes:n,main:r,mask:o,maskId:i,transform:a}=e;const{width:s,icon:l}=r,{width:u,icon:c}=o,f=function(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:a,containerWidth:u,iconWidth:s}),d={tag:"rect",attributes:k(k({},Nn),{},{fill:"white"})},h=l.children?{children:l.children.map(_n)}:{},p={tag:"g",attributes:k({},f.inner),children:[_n(k({tag:l.tag,attributes:k(k({},l.attributes),f.path)},h))]},m={tag:"g",attributes:k({},f.outer),children:[p]},v="mask-".concat(i||Le()),g="clip-".concat(i||Le()),y={tag:"mask",attributes:k(k({},Nn),{},{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[d,m]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:g},children:(w=c,"g"===w.tag?w.children:[w])},y]};var w;return t.push(b,{tag:"rect",attributes:k({fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(v,")")},Nn)}),{children:t,attributes:n}}}},In={provides(e){let t=!1;L.matchMedia&&(t=L.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:k(k({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const o=k(k({},r),{},{attributeName:"opacity"}),i={tag:"circle",attributes:k(k({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||i.children.push({tag:"animate",attributes:k(k({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:k(k({},o),{},{values:"1;0;1;1;0;1;"})}),e.push(i),e.push({tag:"path",attributes:k(k({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:k(k({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:k(k({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:k(k({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){let{mixoutsTo:n}=t;xt=e,St={},Object.keys(Ot).forEach((e=>{-1===At.indexOf(e)&&delete Ot[e]})),xt.forEach((e=>{const t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((e=>{"function"==typeof t[e]&&(n[e]=t[e]),"object"==typeof t[e]&&Object.keys(t[e]).forEach((r=>{n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){const t=e.hooks();Object.keys(t).forEach((e=>{St[e]||(St[e]=[]),St[e].push(t[e])}))}e.provides&&e.provides(Ot)}))}([Ge,dn,hn,pn,mn,An,kn,Pn,Rn,In,{hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}})}],{mixoutsTo:It});const Ln=It.parse,jn=It.icon;function Mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(n),!0).forEach((function(t){Hn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bn(e){return Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bn(e)}function Hn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Un(e){return function(e){if(Array.isArray(e))return zn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return zn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gn(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var Wn=["style"],qn=!1;try{qn=!0}catch(e){}function Vn(e){return e&&"object"===Bn(e)&&e.prefix&&e.iconName&&e.icon?e:Ln.icon?Ln.icon(e):null===e?null:e&&"object"===Bn(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function $n(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Hn({},e,t):{}}var Kn=["forwardedRef"];function Xn(e){var t=e.forwardedRef,n=Fn(e,Kn),r=n.icon,o=n.mask,i=n.symbol,a=n.className,s=n.title,l=n.titleId,u=n.maskId,c=Vn(r),f=$n("classes",[].concat(Un(function(e){var t,n=e.beat,r=e.fade,o=e.beatFade,i=e.bounce,a=e.shake,s=e.flash,l=e.spin,u=e.spinPulse,c=e.spinReverse,f=e.pulse,d=e.fixedWidth,h=e.inverse,p=e.border,m=e.listItem,v=e.flip,g=e.size,y=e.rotation,b=e.pull,w=(Hn(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":o,"fa-bounce":i,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":c,"fa-spin-pulse":u,"fa-pulse":f,"fa-fw":d,"fa-inverse":h,"fa-border":p,"fa-li":m,"fa-flip":!0===v,"fa-flip-horizontal":"horizontal"===v||"both"===v,"fa-flip-vertical":"vertical"===v||"both"===v},"fa-".concat(g),null!=g),Hn(t,"fa-rotate-".concat(y),null!=y&&0!==y),Hn(t,"fa-pull-".concat(b),null!=b),Hn(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(w).map((function(e){return w[e]?e:null})).filter((function(e){return e}))}(n)),Un(a.split(" ")))),d=$n("transform","string"==typeof n.transform?Ln.transform(n.transform):n.transform),h=$n("mask",Vn(o)),p=jn(c,Dn(Dn(Dn(Dn({},f),d),h),{},{symbol:i,title:s,titleId:l,maskId:u}));if(!p)return function(){var e;!qn&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",c),null;var m=p.abstract,v={ref:t};return Object.keys(n).forEach((function(e){Xn.defaultProps.hasOwnProperty(e)||(v[e]=n[e])})),Qn(m[0],v)}Xn.displayName="FontAwesomeIcon",Xn.propTypes={beat:s().bool,border:s().bool,beatFade:s().bool,bounce:s().bool,className:s().string,fade:s().bool,flash:s().bool,mask:s().oneOfType([s().object,s().array,s().string]),maskId:s().string,fixedWidth:s().bool,inverse:s().bool,flip:s().oneOf([!0,!1,"horizontal","vertical","both"]),icon:s().oneOfType([s().object,s().array,s().string]),listItem:s().bool,pull:s().oneOf(["right","left"]),pulse:s().bool,rotation:s().oneOf([0,90,180,270]),shake:s().bool,size:s().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:s().bool,spinPulse:s().bool,spinReverse:s().bool,symbol:s().oneOfType([s().bool,s().string]),title:s().string,titleId:s().string,transform:s().oneOfType([s().string,s().object]),swapOpacity:s().bool},Xn.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var Qn=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var o=(n.children||[]).map((function(n){return e(t,n)})),i=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),o=Gn(t.slice(0,r)),i=t.slice(r+1).trim();return o.startsWith("webkit")?e[(n=o,n.charAt(0).toUpperCase()+n.slice(1))]=i:e[o]=i,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[Gn(t)]=r}return e}),{attrs:{}}),a=r.style,s=void 0===a?{}:a,l=Fn(r,Wn);return i.attrs.style=Dn(Dn({},i.attrs.style),s),t.apply(void 0,[n.tag,Dn(Dn({},i.attrs),l)].concat(Un(o)))}.bind(null,r.createElement),Yn=n(9511),Zn=n(1550),Jn=n(5784),er=n(4065),tr=n(7355),nr=n(6741),rr=n(2181),or=n(6299),ir=n(9792),ar=function(e){var t;return"undefined"==typeof document?null:null==e?(0,ir.A)().body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),null!=(t=e)&&t.nodeType&&e||null)};function sr(e,t){var n=(0,r.useState)((function(){return ar(e)})),o=n[0],i=n[1];if(!o){var a=ar(e);a&&i(a)}return(0,r.useEffect)((function(){t&&o&&t(o)}),[t,o]),(0,r.useEffect)((function(){var t=ar(e);t!==o&&i(t)}),[e,o]),o}var lr=n(3947),ur=r.forwardRef((function(e,t){var n=e.flip,o=e.offset,i=e.placement,a=e.containerPadding,s=void 0===a?5:a,l=e.popperConfig,u=void 0===l?{}:l,c=e.transition,f=(0,er.A)(),d=f[0],h=f[1],p=(0,er.A)(),m=p[0],v=p[1],g=(0,tr.A)(h,t),y=sr(e.container),b=sr(e.target),w=(0,r.useState)(!e.show),E=w[0],x=w[1],S=(0,rr.A)(b,d,(0,lr.Ay)({placement:i,enableEvents:!!e.show,containerPadding:s||5,flip:n,offset:o,arrowElement:m,popperConfig:u})),O=S.styles,A=S.attributes,C=(0,Zn.A)(S,["styles","attributes"]);e.show?E&&x(!1):e.transition||E||x(!0);var k=e.show||c&&!E;if((0,or.A)(d,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!k)return null;var T=e.children((0,Yn.A)({},C,{show:!!e.show,props:(0,Yn.A)({},A.popper,{style:O.popper,ref:g}),arrowProps:(0,Yn.A)({},A.arrow,{style:O.arrow,ref:v})}));if(c){var P=e.onExit,N=e.onExiting,_=e.onEnter,R=e.onEntering,I=e.onEntered;T=r.createElement(c,{in:e.show,appear:!0,onExit:P,onExiting:N,onExited:function(){x(!0),e.onExited&&e.onExited.apply(e,arguments)},onEnter:_,onEntering:R,onEntered:I},T)}return y?Jn.createPortal(T,y):null}));ur.displayName="Overlay",ur.propTypes={show:s().bool,placement:s().oneOf(nr.DD),target:s().any,container:s().any,flip:s().bool,children:s().func.isRequired,containerPadding:s().number,popperConfig:s().object,rootClose:s().bool,rootCloseEvent:s().oneOf(["click","mousedown"]),rootCloseDisabled:s().bool,onHide:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;return e.rootClose?(o=s().func).isRequired.apply(o,[e].concat(n)):s().func.apply(s(),[e].concat(n))},transition:s().elementType,onEnter:s().func,onEntering:s().func,onEntered:s().func,onExit:s().func,onExiting:s().func,onExited:s().func};const cr=ur;var fr,dr=n(2451),hr=n(4263),pr=n(292),mr=n(535),vr=n(8981),gr=["className","children"],yr=((fr={})[pr.ns]="show",fr[pr._K]="show",fr),br=r.forwardRef((function(e,t){var n=e.className,o=e.children,a=(0,Zn.A)(e,gr),s=(0,r.useCallback)((function(e){(0,vr.A)(e),a.onEnter&&a.onEnter(e)}),[a]);return r.createElement(pr.Ay,(0,Yn.A)({ref:t,addEndListener:mr.A},a,{onEnter:s}),(function(e,t){return r.cloneElement(o,(0,Yn.A)({},t,{className:i()("fade",n,o.props.className,yr[e])}))}))}));br.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},br.displayName="Fade";const wr=br;var Er=["children","transition","popperConfig"],xr=["props","arrowProps","show","update","forceUpdate","placement","state"],Sr={transition:wr,rootClose:!1,show:!1,placement:"top"};function Or(e){var t=e.children,n=e.transition,o=e.popperConfig,a=void 0===o?{}:o,s=(0,Zn.A)(e,Er),l=(0,r.useRef)({}),u=(0,hr.A)(),c=u[0],f=u[1],d=!0===n?wr:n||null;return r.createElement(cr,(0,Yn.A)({},s,{ref:c,popperConfig:(0,Yn.A)({},a,{modifiers:f.concat(a.modifiers||[])}),transition:d}),(function(e){var o,a=e.props,s=e.arrowProps,u=e.show,c=e.update,f=(e.forceUpdate,e.placement),d=e.state,h=(0,Zn.A)(e,xr);!function(e,t){var n=e.ref,r=t.ref;e.ref=n.__wrapped||(n.__wrapped=function(e){return n((0,dr.A)(e))}),t.ref=r.__wrapped||(r.__wrapped=function(e){return r((0,dr.A)(e))})}(a,s);var p=Object.assign(l.current,{state:d,scheduleUpdate:c,placement:f,outOfBoundaries:(null==d||null==(o=d.modifiersData.hide)?void 0:o.isReferenceHidden)||!1});return"function"==typeof t?t((0,Yn.A)({},h,a,{placement:f,show:u},!n&&u&&{className:"show"},{popper:p,arrowProps:s})):r.cloneElement(t,(0,Yn.A)({},h,a,{placement:f,arrowProps:s,popper:p,className:i()(t.props.className,!n&&u&&"show"),style:(0,Yn.A)({},t.props.style,a.style)}))}))}Or.defaultProps=Sr;const Ar=Or;var Cr=n(3574),kr=n(1901),Tr=n(3057);const Pr=Math.pow(2,31)-1;function Nr(e,t,n){const r=n-Date.now();e.current=r<=Pr?setTimeout(t,r):setTimeout((()=>Nr(e,t,n)),Pr)}function _r(){const e=(0,Tr.A)(),t=(0,r.useRef)();return function(e){const t=function(e){const t=(0,r.useRef)(e);return t.current=e,t}(e);(0,r.useEffect)((()=>()=>t.current()),[])}((()=>clearTimeout(t.current))),(0,r.useMemo)((()=>{const n=()=>clearTimeout(t.current);return{set:function(r,o=0){e()&&(n(),o<=Pr?t.current=setTimeout(r,o):Nr(t,r,Date.now()+o))},clear:n,handleRef:t}}),[])}n(7730);var Rr=n(4082),Ir=["trigger","overlay","children","popperConfig","show","defaultShow","onToggle","delay","placement","flip"],Lr=function(e){function t(){return e.apply(this,arguments)||this}return(0,Cr.A)(t,e),t.prototype.render=function(){return this.props.children},t}(r.Component);function jr(e,t,n){var r=t[0],o=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];i&&i===o||(0,kr.A)(o,i)||e.apply(void 0,t)}function Mr(e){var t=e.trigger,n=e.overlay,o=e.children,i=e.popperConfig,a=void 0===i?{}:i,s=e.show,l=e.defaultShow,u=void 0!==l&&l,c=e.onToggle,f=e.delay,d=e.placement,h=e.flip,p=void 0===h?d&&-1!==d.indexOf("auto"):h,m=(0,Zn.A)(e,Ir),v=(0,r.useRef)(null),g=_r(),y=(0,r.useRef)(""),b=(0,Rr.iC)(s,u,c),w=b[0],E=b[1],x=function(e){return e&&"object"==typeof e?e:{show:e,hide:e}}(f),S="function"!=typeof o?r.Children.only(o).props:{},O=S.onFocus,A=S.onBlur,C=S.onClick,k=(0,r.useCallback)((function(){return(0,dr.A)(v.current)}),[]),T=(0,r.useCallback)((function(){g.clear(),y.current="show",x.show?g.set((function(){"show"===y.current&&E(!0)}),x.show):E(!0)}),[x.show,E,g]),P=(0,r.useCallback)((function(){g.clear(),y.current="hide",x.hide?g.set((function(){"hide"===y.current&&E(!1)}),x.hide):E(!1)}),[x.hide,E,g]),N=(0,r.useCallback)((function(){T();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==O||O.apply(void 0,t)}),[T,O]),_=(0,r.useCallback)((function(){P();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==A||A.apply(void 0,t)}),[P,A]),R=(0,r.useCallback)((function(){E(!w),C&&C.apply(void 0,arguments)}),[C,E,w]),I=(0,r.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];jr(T,t,"fromElement")}),[T]),L=(0,r.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];jr(P,t,"toElement")}),[P]),j=null==t?[]:[].concat(t),M={};return-1!==j.indexOf("click")&&(M.onClick=R),-1!==j.indexOf("focus")&&(M.onFocus=N,M.onBlur=_),-1!==j.indexOf("hover")&&(M.onMouseOver=I,M.onMouseOut=L),r.createElement(r.Fragment,null,"function"==typeof o?o((0,Yn.A)({},M,{ref:v})):r.createElement(Lr,{ref:v},(0,r.cloneElement)(o,M)),r.createElement(Ar,(0,Yn.A)({},m,{show:w,onHide:P,flip:p,placement:d,popperConfig:a,target:k}),n))}Mr.defaultProps={defaultShow:!1,trigger:["hover","focus"]};const Dr=Mr,Br=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"];function Hr(e){return r.createElement(Ar,Object.assign({},e))}function Fr(e){return r.createElement(Dr,Object.assign({},e),e.children)}const Ur=s().oneOf(["hover","click","focus"]);Hr.propTypes={children:s().node.isRequired,container:s().oneOfType([s().elementType,s().func]),onEnter:s().func,onEntered:s().func,onEntering:s().func,onExit:s().func,onExited:s().func,onExiting:s().func,onHide:s().func,placement:s().oneOf(Br),popperConfig:s().shape({}),rootClose:s().bool,rootCloseEvent:s().oneOf(["click","mousedown"]),show:s().bool,target:s().oneOfType([s().elementType,s().func]),transition:s().oneOfType([s().object,s().bool])},Fr.propTypes={children:s().oneOfType([s().element,s().func]).isRequired,overlay:s().oneOfType([s().element,s().func]).isRequired,defaultShow:s().bool,delay:s().oneOfType([s().number,s().shape({})]),flip:s().bool,onHide:s().func,onToggle:s().func,placement:s().oneOf(Br),popperConfig:s().shape({}),show:s().bool,target:s().instanceOf(EventTarget),trigger:s().oneOfType([Ur,s().arrayOf(Ur)])},Hr.defaultProps={container:void 0,onEnter:void 0,onEntered:void 0,onEntering:void 0,onExit:void 0,onExited:void 0,onExiting:void 0,onHide:void 0,placement:"top",popperConfig:{},rootClose:!1,rootCloseEvent:void 0,show:!1,target:void 0,transition:wr},Fr.defaultProps={defaultShow:!1,delay:void 0,flip:void 0,onHide:void 0,onToggle:void 0,placement:void 0,popperConfig:{},show:void 0,target:void 0,trigger:["hover","focus"]},n(3040);var zr=n(2402),Gr=["bsPrefix","placement","className","style","children","arrowProps","popper","show"],Wr=r.forwardRef((function(e,t){var n=e.bsPrefix,o=e.placement,a=e.className,s=e.style,l=e.children,u=e.arrowProps,c=(e.popper,e.show,(0,Zn.A)(e,Gr));n=(0,zr.oU)(n,"tooltip");var f=((null==o?void 0:o.split("-"))||[])[0];return r.createElement("div",(0,Yn.A)({ref:t,style:s,role:"tooltip","x-placement":f,className:i()(a,n,"bs-tooltip-"+f)},c),r.createElement("div",(0,Yn.A)({className:"arrow"},u)),r.createElement("div",{className:n+"-inner"},l))}));Wr.defaultProps={placement:"right"},Wr.displayName="Tooltip";const qr=Wr;const Vr=r.forwardRef(((e,t)=>{let{children:n,variant:o}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","variant"]);return r.createElement(qr,Object.assign(Object.assign({},a),{className:i()({"tooltip-light":"light"===o},a.className),ref:t}),n)}));Vr.propTypes=Object.assign(Object.assign({},qr.propTypes),{id:s().string.isRequired,placement:s().oneOf(["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"]),arrowProps:s().shape({ref:s().oneOfType([s().func,s().shape({current:s().element})]),style:s().shape({})}),show:s().bool,popper:s().shape({}),bsPrefix:s().string,children:s().node,className:s().string,variant:s().string}),Vr.defaultProps=Object.assign(Object.assign({},Vr.defaultProps),{id:void 0,placement:"right",arrowProps:void 0,show:void 0,popper:void 0,children:void 0,className:void 0,variant:void 0,bsPrefix:"tooltip"});const $r=Vr;var Kr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Xr=r.forwardRef(((e,t)=>{let{className:n,alt:o,invertColors:a,icon:s,src:l,iconClassNames:u,onClick:c,size:f,variant:d,iconAs:h,isActive:p,children:m}=e,v=Kr(e,["className","alt","invertColors","icon","src","iconClassNames","onClick","size","variant","iconAs","isActive","children"]);const g=a?"inverse-":"",y=p?`${d}-`:"",b=h||Xn;return r.createElement("button",Object.assign({"aria-label":o,className:i()("btn-icon",`btn-icon-${g}${d}`,`btn-icon-${f}`,{[`btn-icon-${g}${y}active`]:p},n),onClick:c,type:"button",ref:t},v),r.createElement("span",{className:"btn-icon__icon-container"},r.createElement(b,{className:i()("btn-icon__icon",u),icon:s,src:l})))}));function Qr(e){let{tooltipPlacement:t,tooltipContent:n}=e,o=Kr(e,["tooltipPlacement","tooltipContent"]);const i=o.invertColors?"inverse-":"";return r.createElement(Fr,{placement:t,overlay:r.createElement($r,{id:`iconbutton-tooltip-${t}`,variant:i?"light":void 0},n)},r.createElement(Xr,Object.assign({},o)))}Xr.defaultProps={iconAs:void 0,src:void 0,icon:void 0,iconClassNames:void 0,className:void 0,invertColors:!1,variant:"primary",size:"md",onClick:()=>{},isActive:!1,value:void 0,children:void 0},Xr.propTypes={className:s().string,iconAs:s().elementType,src:s().elementType,alt:s().string.isRequired,invertColors:s().bool,icon:s().shape({prefix:s().string,iconName:s().string,icon:s().array}),iconClassNames:s().string,onClick:s().func,variant:s().oneOf(["primary","secondary","success","warning","danger","light","dark","black","brand"]),size:s().oneOf(["sm","md","inline"]),isActive:s().bool,value:s().string},Qr.defaultProps=Object.assign(Object.assign({},Xr.defaultProps),{tooltipPlacement:"top"}),Qr.propTypes={tooltipPlacement:s().string,tooltipContent:s().node.isRequired,variant:s().oneOf(["primary","secondary","success","warning","danger","light","dark","black","brand"]),invertColors:s().bool},Xr.IconButtonWithTooltip=Qr;const Yr=Xr;var Zr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Jr=r.forwardRef((function(e,t){let{show:n,autoClose:o,onToggle:a,variant:s,className:u}=e,c=Zr(e,["show","autoClose","onToggle","variant","className"]);const[f,d]=r.useState(n);return r.createElement(l.A,Object.assign({className:i()("pgn__dropdown",`pgn__dropdown-${s}`,u),"data-testid":"dropdown",onToggle:(e,t,n)=>{if(e)return d(!0),void(null==a||a(e,t,n));let{source:r}=Object.assign({},n);t.currentTarget!==document||"keydown"===r&&"Escape"!==t.key||(r="rootClose"),(e=>!1===o?"click"===e:"inside"===o?"rootClose"!==e:"outside"!==o||"select"!==e)(r)&&(d(!1),null==a||a(e,t,n))},ref:t,show:f},c))}));Jr.propTypes={autoClose:s().oneOfType([s().string,s().bool]),className:s().string,onToggle:s().func,show:s().bool,variant:s().oneOf(["light","dark"])},Jr.defaultProps={autoClose:!0,className:"",onToggle:void 0,show:!1,variant:"light"};const eo=r.forwardRef((function(e,t){let{as:n,bsPrefix:o}=e,i=Zr(e,["as","bsPrefix"]);const a=n===Yr?"pgn__dropdown-toggle-iconbutton":o;return r.createElement(f.A,Object.assign(Object.assign({},i),{as:n,bsPrefix:a,ref:t}))}));eo.propTypes={as:s().elementType,bsPrefix:s().string,id:s().oneOfType([s().string,s().number]).isRequired},eo.defaultProps={as:O.Ay,bsPrefix:"dropdown-toggle"},Jr.Item=r.forwardRef((function(e,t){let{className:n}=e,o=Zr(e,["className"]);return r.createElement(c.A,Object.assign({className:i()(n,"pgn__dropdown-item"),ref:t},o))})),Jr.Item.propTypes={className:s().string},Jr.Item.defaultProps={className:void 0},Jr.Deprecated=S,Jr.Toggle=eo,Jr.Menu=u.A,Jr.Header=l.A.Header,Jr.Divider=l.A.Divider;const to=Jr},1897:(e,t,n)=>{n.d(t,{Di:()=>x,JK:()=>v,VL:()=>w,VZ:()=>S,cu:()=>b,gT:()=>h,xK:()=>g,xk:()=>y});var r=n(7849),o=n.n(r),i=n(2907),a=n.n(i),s=n(1145),l=n(2800),u=n(551);const c=new s.A,f=["ar","ar-ae","ar-bh","ar-dj","ar-dz","ar-eg","ar-iq","ar-jo","ar-kw","ar-lb","ar-ly","ar-ma","ar-om","ar-qa","ar-sa","ar-sd","ar-sy","ar-tn","ar-ye","fa","fa-af","fa-ir","he","he-il","iw","kd","pk-pk","ps","ug","ur","ur-in","ur-pk","yi","yi-us"];let d;a().object;const h="LOCALE.CHANGED";function p(e){return e.split("-")[0]}function m(e){if(void 0===d)throw new Error("findSupportedLocale called before configuring i18n. Call configureI18n with messages first.");return void 0!==d[e]?e:void 0!==d[p(e)]?p(e):"en"}function v(e){if(null===d)throw new Error("getLocale called before configuring i18n. Call configureI18n with messages first.");if(void 0!==e)return m(e);const{languagePreferenceCookieName:t}=(0,l.Q2)();if(t){const e=c.get(t);if(e)return m(e.toLowerCase())}return m(globalThis.navigator.language.toLowerCase())}function g(e){const t=new Intl.DisplayNames([e],{type:"language"}).of(e);if(void 0===t)throw new Error(`Unsupported locale: ${e}`);return`${t.charAt(0).toLocaleUpperCase(e)}${t.slice(1)}`}function y(){const e=Object.keys(d);return e.push("en"),e.sort(),e.map((e=>({code:e,name:g(e)})))}function b(){E(),(0,u.mk)(h)}function w(e=v()){if(void 0===d)throw new Error("getMessages called before configuring i18n. Call configureI18n with messages first.");return d[e]}function E(){var e;e=v(),f.includes(e)?globalThis.document.getElementsByTagName("html")[0].setAttribute("dir","rtl"):globalThis.document.getElementsByTagName("html")[0].setAttribute("dir","ltr")}function x(){const{apps:e}=(0,l.Q2)();e&&e.forEach((e=>{!function(e={}){const t=Array.isArray(e)?o()({},...e):e;d=o()(d,t)}(e.messages)}))}function S(e){d=Array.isArray(e.messages)?o()({},...e.messages):e.messages,E()}},1901:(e,t,n)=>{function r(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}n.d(t,{A:()=>r})},1914:(e,t,n)=>{n.d(t,{A:()=>ve});var r=n(6349),o=n(7517),i=n(7284),a=n(1736);function s(){const e=(0,a.XB)();return(0,o.jsx)("div",{className:"d-flex flex-wrap column-gap-6 row-gap-4",children:e})}function l(){const e=(0,a.XB)();return(0,o.jsx)("div",{className:"d-flex flex-column",children:e})}var u=n(8083),c=n(7679);function f(){const e=(0,u.A)(),t=(0,a.XB)();return(0,o.jsxs)("div",{className:"d-flex flex-column justify-content-center mb-3",children:[t,(0,o.jsx)("div",{className:"text-center x-small",children:e.formatMessage(c.A.footerTrademarkNotice)})]})}var d=n(5142),h=n(5647);function p(){const e=(0,u.A)();return(0,o.jsx)(d.A,{destination:"https://openedx.org",children:(0,o.jsx)(h.A,{width:"120px",alt:e.formatMessage(c.A.footerPoweredBy),src:"https://logos.openedx.org/open-edx-logo-tag.png"})})}var m=n(8313),v=n(7141),g=n.n(v),y=n(2907),b=n.n(y);const w=e=>m.createElement("svg",Object.assign({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),m.createElement("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41Z",fill:"currentColor"})),E=e=>m.createElement("svg",Object.assign({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),m.createElement("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6Z",fill:"currentColor"}));const x=m.createContext();class S extends m.Component{static getDerivedStateFromProps(e){return void 0!==e.open?{isOpen:e.open}:null}constructor(e){super(e),this.open=()=>{this.setState({isOpen:!0}),this.props.onOpen&&this.props.onOpen(),this.props.onToggle&&this.props.onToggle(!0)},this.close=()=>{this.setState({isOpen:!1}),this.props.onClose&&this.props.onClose(),this.props.onToggle&&this.props.onToggle(!1)},this.toggle=()=>{this.state.isOpen?this.close():this.open()},this.state={isOpen:void 0!==e.open?e.open:e.defaultOpen}}render(){const e=this.props,{children:t,className:n,unmountOnExit:r}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","unmountOnExit"]);return delete o.defaultOpen,delete o.onToggle,delete o.onOpen,delete o.onClose,m.createElement("div",Object.assign(Object.assign({},o),{className:g()("pgn_collapsible",n,{"is-open":this.state.isOpen})}),m.createElement(x.Provider,{value:{isOpen:this.state.isOpen,open:this.open,close:this.close,toggle:this.toggle,unmountOnExit:r}},t))}}S.propTypes={children:b().node,className:b().string,defaultOpen:b().bool,open:b().bool,onToggle:b().func,onOpen:b().func,onClose:b().func,unmountOnExit:b().bool},S.defaultProps={children:void 0,className:void 0,defaultOpen:!1,open:void 0,onToggle:void 0,onOpen:void 0,onClose:void 0,unmountOnExit:!0};const O=S;var A,C=n(9511),k=n(1550),T=n(3410),P=n(292),N=n(535),_=n(9006),R=n(8981),I=["onEnter","onEntering","onEntered","onExit","onExiting","className","children","dimension","getDimensionValue"],L={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function j(e,t){var n=t["offset"+e[0].toUpperCase()+e.slice(1)],r=L[e];return n+parseInt((0,T.A)(t,r[0]),10)+parseInt((0,T.A)(t,r[1]),10)}var M=((A={})[P.kp]="collapse",A[P.ze]="collapsing",A[P.ns]="collapsing",A[P._K]="collapse show",A),D={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,getDimensionValue:j},B=m.forwardRef((function(e,t){var n=e.onEnter,r=e.onEntering,o=e.onEntered,i=e.onExit,a=e.onExiting,s=e.className,l=e.children,u=e.dimension,c=void 0===u?"height":u,f=e.getDimensionValue,d=void 0===f?j:f,h=(0,k.A)(e,I),p="function"==typeof c?c():c,v=(0,m.useMemo)((function(){return(0,_.A)((function(e){e.style[p]="0"}),n)}),[p,n]),y=(0,m.useMemo)((function(){return(0,_.A)((function(e){var t="scroll"+p[0].toUpperCase()+p.slice(1);e.style[p]=e[t]+"px"}),r)}),[p,r]),b=(0,m.useMemo)((function(){return(0,_.A)((function(e){e.style[p]=null}),o)}),[p,o]),w=(0,m.useMemo)((function(){return(0,_.A)((function(e){e.style[p]=d(p,e)+"px",(0,R.A)(e)}),i)}),[i,d,p]),E=(0,m.useMemo)((function(){return(0,_.A)((function(e){e.style[p]=null}),a)}),[p,a]);return m.createElement(P.Ay,(0,C.A)({ref:t,addEndListener:N.A},h,{"aria-expanded":h.role?h.in:null,onEnter:v,onEntering:y,onEntered:b,onExit:w,onExiting:E}),(function(e,t){return m.cloneElement(l,(0,C.A)({},t,{className:g()(s,l.props.className,M[e],"width"===p&&"width")}))}))}));B.defaultProps=D;const H=B;var F=n(3574),U=n(6336);function z(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var G=n(2318),W=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=z(n.className,r):n.setAttribute("class",z(n.className&&n.className.baseVal||"",r)));var n,r}))},q=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}(0,F.A)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&(0,G.F)(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):(0,U.A)(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&W(e,r),o&&W(e,o),i&&W(e,i)},n.render=function(){var e=this.props,t=(e.classNames,(0,k.A)(e,["classNames"]));return m.createElement(P.Ay,(0,C.A)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(m.Component);q.defaultProps={classNames:""},q.propTypes={};const V=q;var $=n(3420);function K(e,t){var n=Object.create(null);return e&&m.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,m.isValidElement)(e)?t(e):e}(e)})),n}function X(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Q(e,t,n){var r=K(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if((0,m.isValidElement)(a)){var s=i in t,l=i in r,u=t[i],c=(0,m.isValidElement)(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&(0,m.isValidElement)(u)&&(o[i]=(0,m.cloneElement)(a,{onExited:n.bind(null,a),in:u.props.in,exit:X(a,"exit",e),enter:X(a,"enter",e)})):o[i]=(0,m.cloneElement)(a,{in:!1}):o[i]=(0,m.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:X(a,"exit",e),enter:X(a,"enter",e)})}})),o}var Y=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Z=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,F.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,K(n.children,(function(e){return(0,m.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:X(e,"appear",n),enter:X(e,"enter",n),exit:X(e,"exit",n)})}))):Q(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=K(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,C.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,k.A)(e,["component","childFactory"]),o=this.state.contextValue,i=Y(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?m.createElement($.A.Provider,{value:o},i):m.createElement($.A.Provider,{value:o},m.createElement(t,r,i))},t}(m.Component);Z.propTypes={},Z.defaultProps={component:"div",childFactory:function(e){return e}};const J=Z;class ee extends m.Component{constructor(e){super(e),this.state={height:null},this.onChildEnter=this.onChildEnter.bind(this),this.onChildEntering=this.onChildEntering.bind(this),this.onChildEntered=this.onChildEntered.bind(this),this.onChildExit=this.onChildExit.bind(this),this.onChildExiting=this.onChildExiting.bind(this),this.onChildExited=this.onChildExited.bind(this)}onChildEnter(e){this.props.onChildEnter&&this.props.onChildEnter(e)}onChildEntering(e){this.setState({height:e.offsetHeight}),this.props.onChildEntering&&this.props.onChildEntering(e)}onChildEntered(e){this.setState({height:null}),this.props.onChildEntered&&this.props.onChildEntered(e)}onChildExit(e){this.setState({height:e.offsetHeight}),this.props.onChildExit&&this.props.onChildExit(e)}onChildExiting(e){this.props.onChildExiting&&this.props.onChildExiting(e)}onChildExited(e){this.setState({height:null}),this.props.onChildExited&&this.props.onChildExited(e)}renderChildTransition(e){e.key;const t={padding:".1px 0"},n={entering:{},entered:{},exiting:{position:"absolute",top:0,left:0,right:0,pointerEvents:"none"},exited:{}};return m.createElement(V,{timeout:{enter:this.props.enterDuration,exit:this.props.exitDuration},unmountOnExit:!0,mountOnEnter:!0,onEnter:this.onChildEnter,onEntering:this.onChildEntering,onEntered:this.onChildEntered,onExit:this.onChildExit,onExiting:this.onChildExiting,onExited:this.onChildExited,classNames:this.props.transitionClassNames},(r=>m.createElement("div",{style:Object.assign(Object.assign(Object.assign({},t),n[r]),this.props.transitionStyles[r])},e)))}render(){return m.createElement(J,{className:g()("pgn-transition-replace-group","position-relative",{"overflow-hidden":null!==this.state.height},this.props.className),style:{height:this.state.height}},m.Children.map(this.props.children,this.renderChildTransition,this))}}ee.propTypes={children:b().element,enterDuration:b().number,exitDuration:b().number,className:b().string,onChildEnter:b().func,onChildEntering:b().func,onChildEntered:b().func,onChildExit:b().func,onChildExiting:b().func,onChildExited:b().func,transitionStyles:b().shape({entering:b().shape({}),entered:b().shape({}),exiting:b().shape({}),exited:b().shape({})}),transitionClassNames:b().string},ee.defaultProps={children:void 0,enterDuration:300,exitDuration:300,className:void 0,onChildEnter:void 0,onChildEntering:void 0,onChildEntered:void 0,onChildExit:void 0,onChildExiting:void 0,onChildExited:void 0,transitionStyles:{},transitionClassNames:"pgn__transition-replace"};const te=ee;function ne(e){let{children:t,transitionWrapper:n,tag:r}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","transitionWrapper","tag"]);const{isOpen:i,unmountOnExit:a}=(0,m.useContext)(x),s=m.createElement(r,Object.assign({key:"body"},o),t),l=i?s:m.createElement("div",{key:"empty"});return n?m.cloneElement(n,{},l):a?m.createElement(te,null,l):m.createElement(H,{in:i},s)}ne.propTypes={children:b().node,tag:b().string,transitionWrapper:b().element},ne.defaultProps={children:void 0,tag:"div",transitionWrapper:void 0};const re=ne;function oe(e){let{tag:t,children:n,openOnly:r,closeOnly:o,onClick:i,onKeyDown:a}=e,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["tag","children","openOnly","closeOnly","onClick","onKeyDown"]);const{isOpen:l,open:u,close:c,toggle:f}=(0,m.useContext)(x),d=(0,m.useCallback)((e=>{r?u(e):o?c(e):f(e)}),[r,u,o,c,f]),h=(0,m.useCallback)((e=>{i&&i(e),d(e)}),[i,d]),p=(0,m.useCallback)((e=>{a&&a(e),"Enter"===e.key&&d(e)}),[a,d]);return m.createElement(t,Object.assign(Object.assign({},s),{onClick:h,onKeyDown:p,role:"button",tabIndex:0,"aria-expanded":l}),n)}oe.propTypes={children:b().node,tag:b().oneOfType([b().string,b().elementType]),openOnly:b().bool,closeOnly:b().bool,onClick:b().func,onKeyDown:b().func},oe.defaultProps={children:void 0,tag:"div",openOnly:!1,closeOnly:!1,onClick:void 0,onKeyDown:void 0};const ie=oe;function ae(e){let{children:t,whenOpen:n,whenClosed:r}=e;const{isOpen:o}=(0,m.useContext)(x);return o&&n||!o&&r?m.createElement(m.Fragment,null,t):null}ae.propTypes={children:b().node,whenOpen:b().bool,whenClosed:b().bool},ae.defaultProps={children:void 0,whenOpen:!1,whenClosed:!1};const se=ae;var le=n(9561);const ue={basic:{iconWhenClosed:m.createElement(le.A,{src:w}),iconWhenOpen:m.createElement(le.A,{src:E})}},ce=m.forwardRef(((e,t)=>{const{children:n,className:r,title:o,styling:i,iconWhenClosed:a,iconWhenOpen:s}=e,l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","title","styling","iconWhenClosed","iconWhenOpen"]),u=Object.assign({iconWhenClosed:a,iconWhenOpen:s},ue[i]),c=m.isValidElement(o)?o:m.createElement("span",null,o);return m.createElement(ce.Advanced,Object.assign(Object.assign({},l),{className:g()(r,`collapsible-${i}`),ref:t}),m.createElement(ce.Trigger,{className:"collapsible-trigger"},c,m.createElement("span",{className:"collapsible-icon"},m.createElement(ce.Visible,{whenClosed:!0},u.iconWhenClosed),m.createElement(ce.Visible,{whenOpen:!0},u.iconWhenOpen))),m.createElement(ce.Body,{className:"collapsible-body"},n))}));ce.propTypes={children:b().node.isRequired,className:b().string,defaultOpen:b().bool,iconWhenClosed:b().element,iconWhenOpen:b().element,onClose:b().func,onOpen:b().func,onToggle:b().func,open:b().bool,styling:b().oneOf(["basic","card","card-lg"]),title:b().node.isRequired,unmountOnExit:b().bool},ce.defaultProps={className:void 0,defaultOpen:!1,iconWhenClosed:m.createElement(le.A,{src:w}),iconWhenOpen:m.createElement(le.A,{src:E}),onClose:void 0,onOpen:void 0,onToggle:void 0,open:void 0,styling:"card",unmountOnExit:!0},ce.Advanced=O,ce.Body=re,ce.Trigger=ie,ce.Visible=se,ce.Context=x;const fe=ce;var de=n(4152),he=n(9198);function pe(){var e;const t=(0,a.XB)(),n=null!==(e=(0,he.Km)().label)&&void 0!==e?e:c.A["footer.revealLinks.more"];return 0===t.length?(0,o.jsx)("div",{className:"border-top"}):(0,o.jsxs)(fe.Advanced,{children:[(0,o.jsxs)("div",{className:"d-flex align-items-center",children:[(0,o.jsx)("div",{className:"border-top mr-2 flex-grow-1"}),(0,o.jsx)(fe.Trigger,{children:(0,o.jsxs)(de.Ay,{"data-testid":"helpToggleButton",variant:"outline-primary",size:"sm",children:[(0,o.jsx)("span",{className:"pr-1",children:n}),(0,o.jsx)(fe.Visible,{whenClosed:!0,children:(0,o.jsx)(w,{})}),(0,o.jsx)(fe.Visible,{whenOpen:!0,children:(0,o.jsx)(E,{})})]})}),(0,o.jsx)("div",{className:"border-top ml-2 flex-grow-1"})]}),(0,o.jsx)(fe.Body,{children:(0,o.jsx)("div",{className:"d-flex justify-content-center gap-3 align-items-center my-3",children:t})})]})}function me(){const e=(0,a.XB)();return(0,o.jsx)("div",{className:"d-flex flex-column gap-3 align-items-end flex-grow-1 justify-content-between",children:e})}const ve={appId:"org.openedx.frontend.app.shell",slots:[{slotId:"org.openedx.frontend.slot.header.main.v1",id:"org.openedx.frontend.widget.header.main.v1",op:r.z.APPEND,component:function(){const e=(0,u.A)();return(0,o.jsx)("header",{className:"border-bottom py-2",children:(0,o.jsxs)("nav",{className:"py-2",children:[(0,o.jsx)("a",{className:"sr-only sr-only-focusable",href:"#main-content",children:e.formatMessage(c.A.skipNavLink)}),(0,o.jsx)(i.A,{id:"org.openedx.frontend.slot.header.desktop.v1"}),(0,o.jsx)(i.A,{id:"org.openedx.frontend.slot.header.mobile.v1"})]})})}},{slotId:"org.openedx.frontend.slot.footer.main.v1",id:"org.openedx.frontend.widget.footer.main.v1",op:r.z.APPEND,component:function(){return(0,o.jsxs)("footer",{className:"d-flex flex-column align-items-stretch",children:[(0,o.jsx)(i.A,{id:"org.openedx.frontend.slot.footer.desktopTop.v1",layout:pe}),(0,o.jsxs)("div",{className:"py-3 px-3 d-flex gap-5 justify-content-between align-items-stretch",children:[(0,o.jsx)("div",{className:"flex-basis-0 d-flex align-items-start",children:(0,o.jsx)("div",{className:"d-flex gap-3 align-items-center",children:(0,o.jsx)(i.A,{id:"org.openedx.frontend.slot.footer.desktopLeftLinks.v1",layout:l})})}),(0,o.jsx)("div",{className:"flex-grow-1 flex-basis-0 d-flex justify-content-center",children:(0,o.jsxs)("div",{className:"d-flex flex-column justify-content-between gap-5",children:[(0,o.jsx)(i.A,{id:"org.openedx.frontend.slot.footer.desktopCenterLinks.v1",layout:s}),(0,o.jsx)(i.A,{id:"org.openedx.frontend.slot.footer.desktopLegalNotices.v1",layout:f})]})}),(0,o.jsx)("div",{className:"flex-basis-0 d-flex justify-content-end",children:(0,o.jsxs)("div",{className:"d-flex flex-column justify-content-between",children:[(0,o.jsx)(i.A,{id:"org.openedx.frontend.slot.footer.desktopRightLinks.v1",layout:me}),(0,o.jsx)(p,{})]})})]})]})}}]}},2035:(e,t,n)=>{n.d(t,{$x:()=>a,Ei:()=>l,IF:()=>i,O4:()=>r,Zo:()=>s});var r,o=n(1635);!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(r||(r={}));var i=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return(0,o.C6)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),a=function(e){function t(t,n,o,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),r.INVALID_VALUE,i)||this}return(0,o.C6)(t,e),t}(i),s=function(e){function t(t,n,o){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),r.INVALID_VALUE,o)||this}return(0,o.C6)(t,e),t}(i),l=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),r.MISSING_VALUE,n)||this}return(0,o.C6)(t,e),t}(i)},2036:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(9511),o=n(1550),i=n(8313),a=n(9006),s=["as","disabled","onKeyDown"];function l(e){return!e||"#"===e.trim()}var u=i.forwardRef((function(e,t){var n=e.as,u=void 0===n?"a":n,c=e.disabled,f=e.onKeyDown,d=(0,o.A)(e,s),h=function(e){var t=d.href,n=d.onClick;(c||l(t))&&e.preventDefault(),c?e.stopPropagation():n&&n(e)};return l(d.href)&&(d.role=d.role||"button",d.href=d.href||"#"),c&&(d.tabIndex=-1,d["aria-disabled"]=!0),i.createElement(u,(0,r.A)({ref:t},d,{onClick:h,onKeyDown:(0,a.A)((function(e){" "===e.key&&(e.preventDefault(),h(e))}),f)}))}));u.displayName="SafeAnchor";const c=u},2166:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(7517),o=n(5142),i=n(3483),a=n(1739),s=n(8083),l=n(8613),u=n(8313);function c({label:e,role:t,url:n,variant:c="hyperlink"}){const f=function(e,t){return"string"==typeof e||(0,u.isValidElement)(e)?e:t.formatMessage(e)}(e,(0,s.A)());let d;return void 0!==t?d=(0,l.c)(t):void 0!==n&&(d=n),d?"hyperlink"===c?(0,r.jsx)(o.A,{destination:d,children:f}):"navLink"===c?(0,r.jsx)(i.k2,{href:d,children:f}):"navDropdownItem"===c?(0,r.jsx)(i.N7.Item,{href:d,children:f}):"dropdownItem"===c?(0,r.jsx)(a.Ay.Item,{href:d,children:f}):null:null}},2181:(e,t,n)=>{n.d(t,{A:()=>ae});var r=n(9511),o=n(1550),i=n(8313),a=n(3057);function s(e){return e.split("-")[0]}function l(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function u(e){return e instanceof l(e).Element||e instanceof Element}function c(e){return e instanceof l(e).HTMLElement||e instanceof HTMLElement}function f(e){return"undefined"!=typeof ShadowRoot&&(e instanceof l(e).ShadowRoot||e instanceof ShadowRoot)}var d=Math.max,h=Math.min,p=Math.round;function m(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function v(){return!/^((?!chrome|android).)*safari/i.test(m())}function g(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&c(e)&&(o=e.offsetWidth>0&&p(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&p(r.height)/e.offsetHeight||1);var a=(u(e)?l(e):window).visualViewport,s=!v()&&n,f=(r.left+(s&&a?a.offsetLeft:0))/o,d=(r.top+(s&&a?a.offsetTop:0))/i,h=r.width/o,m=r.height/i;return{width:h,height:m,top:d,right:f+h,bottom:d+m,left:f,x:f,y:d}}function y(e){var t=g(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function b(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&f(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function w(e){return e?(e.nodeName||"").toLowerCase():null}function E(e){return l(e).getComputedStyle(e)}function x(e){return["table","td","th"].indexOf(w(e))>=0}function S(e){return((u(e)?e.ownerDocument:e.document)||window.document).documentElement}function O(e){return"html"===w(e)?e:e.assignedSlot||e.parentNode||(f(e)?e.host:null)||S(e)}function A(e){return c(e)&&"fixed"!==E(e).position?e.offsetParent:null}function C(e){for(var t=l(e),n=A(e);n&&x(n)&&"static"===E(n).position;)n=A(n);return n&&("html"===w(n)||"body"===w(n)&&"static"===E(n).position)?t:n||function(e){var t=/firefox/i.test(m());if(/Trident/i.test(m())&&c(e)&&"fixed"===E(e).position)return null;var n=O(e);for(f(n)&&(n=n.host);c(n)&&["html","body"].indexOf(w(n))<0;){var r=E(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function k(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function T(e,t,n){return d(e,h(t,n))}function P(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function N(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var _=n(6741);function R(e){return e.split("-")[1]}var I={top:"auto",right:"auto",bottom:"auto",left:"auto"};function L(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,d=e.isFixed,h=a.x,m=void 0===h?0:h,v=a.y,g=void 0===v?0:v,y="function"==typeof f?f({x:m,y:g}):{x:m,y:g};m=y.x,g=y.y;var b=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),x=_.kb,O=_.Mn,A=window;if(c){var k=C(n),T="clientHeight",P="clientWidth";k===l(n)&&"static"!==E(k=S(n)).position&&"absolute"===s&&(T="scrollHeight",P="scrollWidth"),(o===_.Mn||(o===_.kb||o===_.pG)&&i===_._N)&&(O=_.sQ,g-=(d&&k===A&&A.visualViewport?A.visualViewport.height:k[T])-r.height,g*=u?1:-1),o!==_.kb&&(o!==_.Mn&&o!==_.sQ||i!==_._N)||(x=_.pG,m-=(d&&k===A&&A.visualViewport?A.visualViewport.width:k[P])-r.width,m*=u?1:-1)}var N,R=Object.assign({position:s},c&&I),L=!0===f?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:p(n*o)/o||0,y:p(r*o)/o||0}}({x:m,y:g},l(n)):{x:m,y:g};return m=L.x,g=L.y,u?Object.assign({},R,((N={})[O]=w?"0":"",N[x]=b?"0":"",N.transform=(A.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",N)):Object.assign({},R,((t={})[O]=w?g+"px":"",t[x]=b?m+"px":"",t.transform="",t))}var j={passive:!0},M={left:"right",right:"left",bottom:"top",top:"bottom"};function D(e){return e.replace(/left|right|bottom|top/g,(function(e){return M[e]}))}var B={start:"end",end:"start"};function H(e){return e.replace(/start|end/g,(function(e){return B[e]}))}function F(e){var t=l(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function U(e){return g(S(e)).left+F(e).scrollLeft}function z(e){var t=E(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function G(e){return["html","body","#document"].indexOf(w(e))>=0?e.ownerDocument.body:c(e)&&z(e)?e:G(O(e))}function W(e,t){var n;void 0===t&&(t=[]);var r=G(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=l(r),a=o?[i].concat(i.visualViewport||[],z(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(W(O(a)))}function q(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function V(e,t,n){return t===_.R9?q(function(e,t){var n=l(e),r=S(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;var c=v();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:s+U(e),y:u}}(e,n)):u(t)?function(e,t){var n=g(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):q(function(e){var t,n=S(e),r=F(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=d(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=d(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+U(e),l=-r.scrollTop;return"rtl"===E(o||n).direction&&(s+=d(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(S(e)))}function $(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?s(o):null,a=o?R(o):null,l=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case _.Mn:t={x:l,y:n.y-r.height};break;case _.sQ:t={x:l,y:n.y+n.height};break;case _.pG:t={x:n.x+n.width,y:u};break;case _.kb:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=i?k(i):null;if(null!=c){var f="y"===c?"height":"width";switch(a){case _.ni:t[c]=t[c]-(n[f]/2-r[f]/2);break;case _._N:t[c]=t[c]+(n[f]/2-r[f]/2)}}return t}function K(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?_.WY:s,f=n.rootBoundary,p=void 0===f?_.R9:f,m=n.elementContext,v=void 0===m?_.xf:m,y=n.altBoundary,x=void 0!==y&&y,A=n.padding,k=void 0===A?0:A,T=P("number"!=typeof k?k:N(k,_.OM)),R=v===_.xf?_.ir:_.xf,I=e.rects.popper,L=e.elements[x?R:v],j=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=W(O(e)),n=["absolute","fixed"].indexOf(E(e).position)>=0&&c(e)?C(e):e;return u(n)?t.filter((function(e){return u(e)&&b(e,n)&&"body"!==w(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=V(e,n,r);return t.top=d(o.top,t.top),t.right=h(o.right,t.right),t.bottom=h(o.bottom,t.bottom),t.left=d(o.left,t.left),t}),V(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(u(L)?L:L.contextElement||S(e.elements.popper),l,p,a),M=g(e.elements.reference),D=$({reference:M,element:I,strategy:"absolute",placement:o}),B=q(Object.assign({},I,D)),H=v===_.xf?B:M,F={top:j.top-H.top+T.top,bottom:H.bottom-j.bottom+T.bottom,left:j.left-H.left+T.left,right:H.right-j.right+T.right},U=e.modifiersData.offset;if(v===_.xf&&U){var z=U[o];Object.keys(F).forEach((function(e){var t=[_.pG,_.sQ].indexOf(e)>=0?1:-1,n=[_.Mn,_.sQ].indexOf(e)>=0?"y":"x";F[e]+=z[n]*t}))}return F}function X(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Q(e){return[_.Mn,_.pG,_.sQ,_.kb].some((function(t){return e[t]>=0}))}function Y(e,t,n){void 0===n&&(n=!1);var r,o,i=c(t),a=c(t)&&function(e){var t=e.getBoundingClientRect(),n=p(t.width)/e.offsetWidth||1,r=p(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=S(t),u=g(e,a,n),f={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!n)&&(("body"!==w(t)||z(s))&&(f=(r=t)!==l(r)&&c(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:F(r)),c(t)?((d=g(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=U(s))),{x:u.left+f.scrollLeft-d.x,y:u.top+f.scrollTop-d.y,width:u.width,height:u.height}}function Z(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var J={placement:"bottom",modifiers:[],strategy:"absolute"};function ee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}var te=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?J:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},J,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,f={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:u(e)?W(e):e.contextElement?W(e.contextElement):[],popper:W(t)};var a,c,h=function(e){var t=Z(e);return _.GM.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,s.options.modifiers),c=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return s.orderedModifiers=h.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:f,options:r});l.push(i||function(){})}})),f.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(ee(t,n)){s.rects={reference:Y(t,C(n),"fixed"===s.options.strategy),popper:y(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,l=void 0===a?{}:a,u=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:u,instance:f})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){f.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),c=!0}};if(!ee(e,t))return f;function d(){l.forEach((function(e){return e()})),l=[]}return f.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),f}}({defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=K(t,{elementContext:"reference"}),s=K(t,{altBoundary:!0}),l=X(a,r),u=X(s,o,i),c=Q(l),f=Q(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,u=void 0===l||l,c={placement:s(t.placement),variation:R(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,L(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,L(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,u=l(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,j)})),s&&u.addEventListener("resize",n.update,j),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,j)})),s&&u.removeEventListener("resize",n.update,j)}},data:{}},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=_.DD.reduce((function(e,n){return e[n]=function(e,t,n){var r=s(e),o=[_.kb,_.Mn].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[_.kb,_.pG].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],u=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,u=n.fallbackPlacements,c=n.padding,f=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=void 0===p||p,v=n.allowedAutoPlacements,g=t.options.placement,y=s(g),b=u||(y!==g&&m?function(e){if(s(e)===_.qZ)return[];var t=D(e);return[H(e),t,H(t)]}(g):[D(g)]),w=[g].concat(b).reduce((function(e,n){return e.concat(s(n)===_.qZ?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?_.DD:u,f=R(r),d=f?l?_.Ol:_.Ol.filter((function(e){return R(e)===f})):_.OM,h=d.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=d);var p=h.reduce((function(t,n){return t[n]=K(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[s(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:f,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:v}):n)}),[]),E=t.rects.reference,x=t.rects.popper,S=new Map,O=!0,A=w[0],C=0;C<w.length;C++){var k=w[C],T=s(k),P=R(k)===_.ni,N=[_.Mn,_.sQ].indexOf(T)>=0,I=N?"width":"height",L=K(t,{placement:k,boundary:f,rootBoundary:d,altBoundary:h,padding:c}),j=N?P?_.pG:_.kb:P?_.sQ:_.Mn;E[I]>x[I]&&(j=D(j));var M=D(j),B=[];if(i&&B.push(L[T]<=0),l&&B.push(L[j]<=0,L[M]<=0),B.every((function(e){return e}))){A=k,O=!1;break}S.set(k,B)}if(O)for(var F=function(e){var t=w.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return A=t,"break"},U=m?3:1;U>0&&"break"!==F(U);U--);t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,u=n.boundary,c=n.rootBoundary,f=n.altBoundary,p=n.padding,m=n.tether,v=void 0===m||m,g=n.tetherOffset,b=void 0===g?0:g,w=K(t,{boundary:u,rootBoundary:c,padding:p,altBoundary:f}),E=s(t.placement),x=R(t.placement),S=!x,O=k(E),A="x"===O?"y":"x",P=t.modifiersData.popperOffsets,N=t.rects.reference,I=t.rects.popper,L="function"==typeof b?b(Object.assign({},t.rects,{placement:t.placement})):b,j="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(P){if(i){var B,H="y"===O?_.Mn:_.kb,F="y"===O?_.sQ:_.pG,U="y"===O?"height":"width",z=P[O],G=z+w[H],W=z-w[F],q=v?-I[U]/2:0,V=x===_.ni?N[U]:I[U],$=x===_.ni?-I[U]:-N[U],X=t.elements.arrow,Q=v&&X?y(X):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Z=Y[H],J=Y[F],ee=T(0,N[U],Q[U]),te=S?N[U]/2-q-ee-Z-j.mainAxis:V-ee-Z-j.mainAxis,ne=S?-N[U]/2+q+ee+J+j.mainAxis:$+ee+J+j.mainAxis,re=t.elements.arrow&&C(t.elements.arrow),oe=re?"y"===O?re.clientTop||0:re.clientLeft||0:0,ie=null!=(B=null==M?void 0:M[O])?B:0,ae=z+ne-ie,se=T(v?h(G,z+te-ie-oe):G,z,v?d(W,ae):W);P[O]=se,D[O]=se-z}if(l){var le,ue="x"===O?_.Mn:_.kb,ce="x"===O?_.sQ:_.pG,fe=P[A],de="y"===A?"height":"width",he=fe+w[ue],pe=fe-w[ce],me=-1!==[_.Mn,_.kb].indexOf(E),ve=null!=(le=null==M?void 0:M[A])?le:0,ge=me?he:fe-N[de]-I[de]-ve+j.altAxis,ye=me?fe+N[de]+I[de]-ve-j.altAxis:pe,be=v&&me?function(e,t,n){var r=T(e,t,n);return r>n?n:r}(ge,fe,ye):T(v?ge:he,fe,v?ye:pe);P[A]=be,D[A]=be-fe}t.modifiersData[r]=D}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=s(n.placement),u=k(l),c=[_.kb,_.pG].indexOf(l)>=0?"height":"width";if(i&&a){var f=function(e,t){return P("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:N(e,_.OM))}(o.padding,n),d=y(i),h="y"===u?_.Mn:_.kb,p="y"===u?_.sQ:_.pG,m=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],v=a[u]-n.rects.reference[u],g=C(i),b=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,w=m/2-v/2,E=f[h],x=b-d[c]-f[p],S=b/2-d[c]/2+w,O=T(E,S,x),A=u;n.modifiersData[r]=((t={})[A]=O,t.centerOffset=O-S,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&b(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}]}),ne=function(e){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}},re={name:"applyStyles",enabled:!1},oe={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:function(e){var t=e.state;return function(){var e=t.elements,n=e.reference,r=e.popper;if("removeAttribute"in n){var o=(n.getAttribute("aria-describedby")||"").split(",").filter((function(e){return e.trim()!==r.id}));o.length?n.setAttribute("aria-describedby",o.join(",")):n.removeAttribute("aria-describedby")}}},fn:function(e){var t,n=e.state.elements,r=n.popper,o=n.reference,i=null==(t=r.getAttribute("role"))?void 0:t.toLowerCase();if(r.id&&"tooltip"===i&&"setAttribute"in o){var a=o.getAttribute("aria-describedby");if(a&&-1!==a.split(",").indexOf(r.id))return;o.setAttribute("aria-describedby",a?a+","+r.id:r.id)}}},ie=[];const ae=function(e,t,n){var s=void 0===n?{}:n,l=s.enabled,u=void 0===l||l,c=s.placement,f=void 0===c?"bottom":c,d=s.strategy,h=void 0===d?"absolute":d,p=s.modifiers,m=void 0===p?ie:p,v=(0,o.A)(s,["enabled","placement","strategy","modifiers"]),g=(0,i.useRef)(),y=(0,i.useCallback)((function(){var e;null==(e=g.current)||e.update()}),[]),b=(0,i.useCallback)((function(){var e;null==(e=g.current)||e.forceUpdate()}),[]),w=function(e){const t=(0,a.A)();return[e[0],(0,i.useCallback)((n=>{if(t())return e[1](n)}),[t,e[1]])]}((0,i.useState)({placement:f,update:y,forceUpdate:b,attributes:{},styles:{popper:ne(h),arrow:{}}})),E=w[0],x=w[1],S=(0,i.useMemo)((function(){return{name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:function(e){var t=e.state,n={},r={};Object.keys(t.elements).forEach((function(e){n[e]=t.styles[e],r[e]=t.attributes[e]})),x({state:t,styles:n,attributes:r,update:y,forceUpdate:b,placement:t.placement})}}}),[y,b,x]);return(0,i.useEffect)((function(){g.current&&u&&g.current.setOptions({placement:f,strategy:h,modifiers:[].concat(m,[S,re])})}),[h,f,S,u]),(0,i.useEffect)((function(){if(u&&null!=e&&null!=t)return g.current=te(e,t,(0,r.A)({},v,{placement:f,strategy:h,modifiers:[].concat(m,[oe,S])})),function(){null!=g.current&&(g.current.destroy(),g.current=void 0,x((function(e){return(0,r.A)({},e,{attributes:{},styles:{popper:ne(h)}})})))}}),[u,e,t]),E}},2187:(e,t,n)=>{n.d(t,{JF:()=>v,yU:()=>g,HM:()=>m,bN:()=>y});var r=n(1635),o=n(8313);function i(e,t){var n=t&&t.cache?t.cache:d,r=t&&t.serializer?t.serializer:c;return(t&&t.strategy?t.strategy:u)(e,{cache:n,serializer:r})}function a(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function s(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function l(e,t,n,r,o){return n.bind(t,e,r,o)}function u(e,t){return l(e,this,1===e.length?a:s,t.cache.create(),t.serializer)}var c=function(){return JSON.stringify(arguments)};function f(){this.cache=Object.create(null)}f.prototype.get=function(e){return this.cache[e]},f.prototype.set=function(e,t){this.cache[e]=t};var d={create:function(){return new f}},h={variadic:function(e,t){return l(e,this,s,t.cache.create(),t.serializer)},monadic:function(e,t){return l(e,this,a,t.cache.create(),t.serializer)}};i((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{strategy:h.variadic}),i((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{strategy:h.variadic}),i((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{strategy:h.variadic}),i((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.Locale).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{strategy:h.variadic}),i((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.ListFormat).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{strategy:h.variadic});var p=n(3816);function m(e){!function(e,t,n){if(void 0===n&&(n=Error),!e)throw new n("[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}(e)}var v=(0,r.Cl)((0,r.Cl)({},p.JF),{textComponent:o.Fragment});function g(e){return function(t){return e(o.Children.toArray(t))}}function y(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i<o;i++){var a=n[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}},2213:(e,t,n)=>{n.d(t,{A:()=>m});var r=n(9511),o=n(1550),i=n(7141),a=n.n(i),s=(n(3040),n(8313)),l=n(2476),u=n(7355),c=n(4400),f=n(2402),d=n(1607),h=["bsPrefix","split","className","childBsPrefix","as"],p=s.forwardRef((function(e,t){var n=e.bsPrefix,i=e.split,p=e.className,m=e.childBsPrefix,v=e.as,g=void 0===v?c.A:v,y=(0,o.A)(e,h),b=(0,f.oU)(n,"dropdown-toggle");void 0!==m&&(y.bsPrefix=m);var w=(0,l.B)()[0];return w.ref=(0,u.A)(w.ref,(0,d.A)(t,"DropdownToggle")),s.createElement(g,(0,r.A)({className:a()(p,b,i&&b+"-split")},w,y))}));p.displayName="DropdownToggle";const m=p},2264:(e,t,n)=>{var r=n(8313),o=n(9087);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!f.call(p,e)||!f.call(h,e)&&(d.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),k=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function j(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var M,D=Object.assign;function B(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var H=!1;function F(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?B(e):""}function U(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return F(e.type,!1);case 11:return F(e.type.render,!1);case 1:return F(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case x:return"Portal";case A:return"Profiler";case O:return"StrictMode";case P:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case k:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return z(e(t))}catch(e){}}return null}function G(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===O?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function X(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Z(e,t){Y(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ie(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ge=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Se=null,Oe=null;function Ae(e){if(e=wo(e)){if("function"!=typeof xe)throw Error(i(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Ce(e){Se?Oe?Oe.push(e):Oe=[e]:Se=e}function ke(){if(Se){var e=Se,t=Oe;if(Oe=Se=null,Ae(e),t)for(e=0;e<t.length;e++)Ae(t[e])}}function Te(e,t){return e(t)}function Pe(){}var Ne=!1;function _e(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return Te(e,t,n)}finally{Ne=!1,(null!==Se||null!==Oe)&&(Pe(),ke())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Ie=!1;if(c)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ce){Ie=!1}function je(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Me=!1,De=null,Be=!1,He=null,Fe={onError:function(e){Me=!0,De=e}};function Ue(e,t,n,r,o,i,a,s,l){Me=!1,De=null,je.apply(Fe,arguments)}function ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ge(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function We(e){if(ze(e)!==e)throw Error(i(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return We(o),e;if(a===r)return We(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var $e=o.unstable_scheduleCallback,Ke=o.unstable_cancelCallback,Xe=o.unstable_shouldYield,Qe=o.unstable_requestPaint,Ye=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ut=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=ft(s):0!==(i&=a)&&(r=ft(i))}else 0!==(a=n&~o)?r=ft(a):0!==i&&(r=ft(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Et,xt,St,Ot,At,Ct=!1,kt=[],Tt=null,Pt=null,Nt=null,_t=new Map,Rt=new Map,It=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":_t.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&xt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Dt(e){var t=bo(e.target);if(null!==t){var n=ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ge(n)))return e.blockedOn=t,void At(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ht(e,t,n){Bt(e)&&n.delete(t)}function Ft(){Ct=!1,null!==Tt&&Bt(Tt)&&(Tt=null),null!==Pt&&Bt(Pt)&&(Pt=null),null!==Nt&&Bt(Nt)&&(Nt=null),_t.forEach(Ht),Rt.forEach(Ht)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ft)))}function zt(e){function t(t){return Ut(t,e)}if(0<kt.length){Ut(kt[0],e);for(var n=1;n<kt.length;n++){var r=kt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Ut(Tt,e),null!==Pt&&Ut(Pt,e),null!==Nt&&Ut(Nt,e),_t.forEach(t),Rt.forEach(t),n=0;n<It.length;n++)(r=It[n]).blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&null===(n=It[0]).blockedOn;)Dt(n),null===n.blockedOn&&It.shift()}var Gt=w.ReactCurrentBatchConfig,Wt=!0;function qt(e,t,n,r){var o=bt,i=Gt.transition;Gt.transition=null;try{bt=1,$t(e,t,n,r)}finally{bt=o,Gt.transition=i}}function Vt(e,t,n,r){var o=bt,i=Gt.transition;Gt.transition=null;try{bt=4,$t(e,t,n,r)}finally{bt=o,Gt.transition=i}}function $t(e,t,n,r){if(Wt){var o=Xt(e,t,n,r);if(null===o)Wr(e,t,r,Kt,n),jt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=Mt(Tt,e,t,n,r,o),!0;case"dragenter":return Pt=Mt(Pt,e,t,n,r,o),!0;case"mouseover":return Nt=Mt(Nt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return _t.set(i,Mt(_t.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Rt.set(i,Mt(Rt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(jt(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&Et(i),null===(i=Xt(e,t,n,r))&&Wr(e,t,r,Kt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Kt=null;function Xt(e,t,n,r){if(Kt=null,null!==(e=bo(e=Ee(r))))if(null===(t=ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ge(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,o="value"in Yt?Yt.value:Yt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),fn=D({},un,{view:0,detail:0}),dn=on(fn),hn=D({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:An,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(hn),mn=on(D({},hn,{dataTransfer:0})),vn=on(D({},fn,{relatedTarget:0})),gn=on(D({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=D({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(D({},un,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function On(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function An(){return On}var Cn=D({},fn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:An,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),kn=on(Cn),Tn=on(D({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=on(D({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:An})),Nn=on(D({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),_n=D({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=on(_n),In=[9,13,27,32],Ln=c&&"CompositionEvent"in window,jn=null;c&&"documentMode"in document&&(jn=document.documentMode);var Mn=c&&"TextEvent"in window&&!jn,Dn=c&&(!Ln||jn&&8<jn&&11>=jn),Bn=String.fromCharCode(32),Hn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1,Gn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Gn[e.type]:"textarea"===t}function qn(e,t,n,r){Ce(r),0<(t=Vr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,$n=null;function Kn(e){Br(e,0)}function Xn(e){if($(Eo(e)))return e}function Qn(e,t){if("change"===e)return t}var Yn=!1;if(c){var Zn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Zn=Jn}else Zn=!1;Yn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),$n=Vn=null)}function nr(e){if("value"===e.propertyName&&Xn($n)){var t=[];qn(t,$n,e,Ee(e)),_e(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),$n=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn($n)}function ir(e,t){if("click"===e)return Xn(t)}function ar(e,t){if("input"===e||"change"===e)return Xn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!f.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==K(r)||(r="selectionStart"in(r=vr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Vr(gr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},Sr={},Or={};function Ar(e){if(Sr[e])return Sr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Or)return Sr[e]=n[t];return e}c&&(Or=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Cr=Ar("animationend"),kr=Ar("animationiteration"),Tr=Ar("animationstart"),Pr=Ar("transitionend"),Nr=new Map,_r="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Nr.set(e,t),l(t,[e])}for(var Ir=0;Ir<_r.length;Ir++){var Lr=_r[Ir];Rr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Rr(Cr,"onAnimationEnd"),Rr(kr,"onAnimationIteration"),Rr(Tr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Pr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,u){if(Ue.apply(this,arguments),Me){if(!Me)throw Error(i(198));var c=De;Me=!1,De=null,Be||(Be=!0,He=c)}}(r,t,void 0,e),e.currentTarget=null}function Br(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Dr(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Dr(o,s,u),i=l}}}if(Be)throw e=He,Be=!1,He=null,e}function Hr(e,t){var n=t[vo];void 0===n&&(n=t[vo]=new Set);var r=e+"__bubble";n.has(r)||(Gr(t,e,2,!1),n.add(r))}function Fr(e,t,n){var r=0;t&&(r|=4),Gr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Fr(t,!1,e),Fr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Fr("selectionchange",!1,t))}}function Gr(e,t,n,r){switch(Qt(t)){case 1:var o=qt;break;case 4:o=Vt;break;default:o=$t}n=o.bind(null,t,n,e),o=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}_e((function(){var r=i,o=Ee(n),a=[];e:{var s=Nr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=kn;break;case"focusin":u="focus",l=vn;break;case"focusout":u="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case Cr:case kr:case Tr:l=gn;break;case Pr:l=Nn;break;case"scroll":l=dn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var c=!!(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==d&&null!=(m=Re(p,d))&&c.push(qr(p,m,h))),f)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(f=ze(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=pn,m="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==l?s:Eo(l),h=null==u?s:Eo(u),(s=new c(m,p+"leave",l,n,o)).target=f,s.relatedTarget=h,m=null,bo(o)===r&&((c=new c(d,p+"enter",u,n,o)).target=h,c.relatedTarget=f,m=c),f=m,l&&u)e:{for(d=u,p=0,h=c=l;h;h=$r(h))p++;for(h=0,m=d;m;m=$r(m))h++;for(;0<p-h;)c=$r(c),p--;for(;0<h-p;)d=$r(d),h--;for(;p--;){if(c===d||null!==d&&c===d.alternate)break e;c=$r(c),d=$r(d)}c=null}else c=null;null!==l&&Kr(a,s,l,c,!1),null!==u&&null!==f&&Kr(a,f,u,c,!0)}if("select"===(l=(s=r?Eo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Qn;else if(Wn(s))if(Yn)v=ar;else{v=or;var g=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=ir);switch(v&&(v=v(e,r))?qn(a,v,n,o):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=r?Eo(r):window,e){case"focusin":(Wn(g)||"true"===g.contentEditable)&&(vr=g,gr=r,yr=null);break;case"focusout":yr=gr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,o)}var y;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else zn?Fn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(zn||"onCompositionStart"!==b?"onCompositionEnd"===b&&zn&&(y=en()):(Zt="value"in(Yt=o)?Yt.value:Yt.textContent,zn=!0)),0<(g=Vr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:g}),(y||null!==(y=Un(n)))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Hn=!0,Bn);case"textInput":return(e=t.data)===Bn&&Hn?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Ln&&Fn(e,t)?(e=en(),Jt=Zt=Yt=null,zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Vr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y)}Br(a,t)}))}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Re(e,n))&&r.unshift(qr(e,i,o)),null!=(i=Re(e,t))&&r.push(qr(e,i,o))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Re(n,i))&&a.unshift(qr(n,l,s)):o||null!=(l=Re(n,i))&&a.push(qr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Xr=/\r\n?/g,Qr=/\u0000|\uFFFD/g;function Yr(e){return("string"==typeof e?e:""+e).replace(Xr,"\n").replace(Qr,"")}function Zr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void zt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);zt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),ho="__reactFiber$"+fo,po="__reactProps$"+fo,mo="__reactContainer$"+fo,vo="__reactEvents$"+fo,go="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[ho])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[ho]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Eo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function xo(e){return e[po]||null}var So=[],Oo=-1;function Ao(e){return{current:e}}function Co(e){0>Oo||(e.current=So[Oo],So[Oo]=null,Oo--)}function ko(e,t){Oo++,So[Oo]=e.current,e.current=t}var To={},Po=Ao(To),No=Ao(!1),_o=To;function Ro(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Io(e){return null!=e.childContextTypes}function Lo(){Co(No),Co(Po)}function jo(e,t,n){if(Po.current!==To)throw Error(i(168));ko(Po,t),ko(No,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,G(e)||"Unknown",o));return D({},n,r)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,_o=Po.current,ko(Po,e),ko(No,No.current),!0}function Bo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Mo(e,t,_o),r.__reactInternalMemoizedMergedChildContext=e,Co(No),Co(Po),ko(Po,e)):Co(No),ko(No,n)}var Ho=null,Fo=!1,Uo=!1;function zo(e){null===Ho?Ho=[e]:Ho.push(e)}function Go(){if(!Uo&&null!==Ho){Uo=!0;var e=0,t=bt;try{var n=Ho;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ho=null,Fo=!1}catch(t){throw null!==Ho&&(Ho=Ho.slice(e+1)),$e(Je,Go),t}finally{bt=t,Uo=!1}}return null}var Wo=[],qo=0,Vo=null,$o=0,Ko=[],Xo=0,Qo=null,Yo=1,Zo="";function Jo(e,t){Wo[qo++]=$o,Wo[qo++]=Vo,Vo=e,$o=t}function ei(e,t,n){Ko[Xo++]=Yo,Ko[Xo++]=Zo,Ko[Xo++]=Qo,Qo=e;var r=Yo;e=Zo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Yo=1<<32-at(t)+o|n<<o|r,Zo=i+e}else Yo=1<<i|n<<o|r,Zo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===Vo;)Vo=Wo[--qo],Wo[qo]=null,$o=Wo[--qo],Wo[qo]=null;for(;e===Qo;)Qo=Ko[--Xo],Ko[Xo]=null,Zo=Ko[--Xo],Ko[Xo]=null,Yo=Ko[--Xo],Ko[Xo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=_u(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qo?{id:Yo,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=_u(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=uo(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function di(e){if(e!==ri)return!1;if(!ii)return fi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw hi(),Error(i(418));for(;t;)si(e,t),t=uo(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=oi;e;)e=uo(e.nextSibling)}function pi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var vi=w.ReactCurrentBatchConfig;function gi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Iu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Du(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===S?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===R&&bi(i)===t.type)?((r=o(t,n.props)).ref=gi(e,t,n),r.return=e,r):((r=Lu(n.type,n.key,n.props,null,e.mode,r)).ref=gi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Bu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=ju(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Du(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Lu(t.type,t.key,t.props,null,e.mode,n)).ref=gi(e,null,t),n.return=e,n;case x:return(t=Bu(t,e.mode,n)).return=e,t;case R:return d(e,(0,t._init)(t._payload),n)}if(te(t)||j(t))return(t=ju(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?u(e,t,n,r):null;case x:return n.key===o?c(e,t,n,r):null;case R:return h(e,t,(o=n._init)(n._payload),r)}if(te(n)||j(n))return null!==o?null:f(e,t,n,r,null);yi(e,n)}return null}function p(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return p(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||j(r))return f(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function m(o,i,s,l){for(var u=null,c=null,f=i,m=i=0,v=null;null!==f&&m<s.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=h(o,f,s[m],l);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(o,f),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g,f=v}if(m===s.length)return n(o,f),ii&&Jo(o,m),u;if(null===f){for(;m<s.length;m++)null!==(f=d(o,s[m],l))&&(i=a(f,i,m),null===c?u=f:c.sibling=f,c=f);return ii&&Jo(o,m),u}for(f=r(o,f);m<s.length;m++)null!==(v=p(f,o,m,s[m],l))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(o,e)})),ii&&Jo(o,m),u}function v(o,s,l,u){var c=j(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var f=c=null,m=s,v=s=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=h(o,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),s=a(b,s,v),null===f?c=b:f.sibling=b,f=b,m=g}if(y.done)return n(o,m),ii&&Jo(o,v),c;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=d(o,y.value,u))&&(s=a(y,s,v),null===f?c=y:f.sibling=y,f=y);return ii&&Jo(o,v),c}for(m=r(o,m);!y.done;v++,y=l.next())null!==(y=p(m,o,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=a(y,s,v),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(o,e)})),ii&&Jo(o,v),c}return function e(r,i,a,l){if("object"==typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case E:e:{for(var u=a.key,c=i;null!==c;){if(c.key===u){if((u=a.type)===S){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===R&&bi(u)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=gi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===S?((i=ju(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Lu(a.type,a.key,a.props,null,r.mode,l)).ref=gi(r,i,a),l.return=r,r=l)}return s(r);case x:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Bu(a,r.mode,l)).return=r,r=i}return s(r);case R:return e(r,i,(c=a._init)(a._payload),l)}if(te(a))return m(r,i,a,l);if(j(a))return v(r,i,a,l);yi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Du(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var Ei=wi(!0),xi=wi(!1),Si=Ao(null),Oi=null,Ai=null,Ci=null;function ki(){Ci=Ai=Oi=null}function Ti(e){var t=Si.current;Co(Si),e._currentValue=t}function Pi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ni(e,t){Oi=e,Ci=Ai=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function _i(e){var t=e._currentValue;if(Ci!==e)if(e={context:e,memoizedValue:t,next:null},null===Ai){if(null===Oi)throw Error(i(308));Ai=e,Oi.dependencies={lanes:0,firstContext:e}}else Ai=Ai.next=e;return t}var Ri=null;function Ii(e){null===Ri?Ri=[e]:Ri.push(e)}function Li(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ii(t)):(n.next=o.next,o.next=n),t.interleaved=n,ji(e,r)}function ji(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mi=!1;function Di(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Hi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Tl){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ji(e,n)}return null===(o=r.interleaved)?(t.next=t,Ii(r)):(t.next=o.next,o.next=t),r.interleaved=t,ji(e,n)}function Ui(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function zi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Gi(e,t,n,r){var o=e.updateQueue;Mi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==i){var f=o.baseState;for(a=0,c=u=l=null,s=i;;){var d=s.lane,h=s.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(d=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){f=p.call(h,f,d);break e}f=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(d="function"==typeof(p=m.payload)?p.call(h,f,d):p))break e;f=D({},f,d);break e;case 2:Mi=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=f):c=c.next=h,a|=d;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(d=s).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ml|=a,e.lanes=a,e.memoizedState=f}}function Wi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var qi={},Vi=Ao(qi),$i=Ao(qi),Ki=Ao(qi);function Xi(e){if(e===qi)throw Error(i(174));return e}function Qi(e,t){switch(ko(Ki,t),ko($i,e),ko(Vi,qi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Co(Vi),ko(Vi,t)}function Yi(){Co(Vi),Co($i),Co(Ki)}function Zi(e){Xi(Ki.current);var t=Xi(Vi.current),n=le(t,e.type);t!==n&&(ko($i,e),ko(Vi,n))}function Ji(e){$i.current===e&&(Co(Vi),Co($i))}var ea=Ao(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,fa=!1,da=0,ha=0;function pa(){throw Error(i(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function va(e,t,n,r,o,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:es,e=n(r,o),fa){a=0;do{if(fa=!1,da=0,25<=a)throw Error(i(301));a+=1,ua=la=null,t.updateQueue=null,oa.current=ts,e=n(r,o)}while(fa)}if(oa.current=Za,t=null!==la&&null!==la.next,aa=0,ua=la=sa=null,ca=!1,t)throw Error(i(300));return e}function ga(){var e=0!==da;return da=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,la=e;else{if(null===e)throw Error(i(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function wa(e,t){return"function"==typeof t?t(e):t}function Ea(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=la,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,u=null,c=a;do{var f=c.lane;if((aa&f)===f)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,s=r):u=u.next=d,sa.lanes|=f,Ml|=f}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,sa.lanes|=a,Ml|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xa(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Sa(){}function Oa(e,t){var n=sa,r=ba(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,bs=!0),r=r.queue,Ma(ka.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(n.flags|=2048,_a(9,Ca.bind(null,n,r,o,t),void 0,null),null===Pl)throw Error(i(349));30&aa||Aa(n,t,o)}return o}function Aa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ca(e,t,n,r){t.value=n,t.getSnapshot=r,Ta(t)&&Pa(e)}function ka(e,t,n){return n((function(){Ta(t)&&Pa(e)}))}function Ta(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Pa(e){var t=ji(e,1);null!==t&&nu(t,e,1,-1)}function Na(e){var t=ya();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ka.bind(null,sa,e),[t.memoizedState,e]}function _a(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ra(){return ba().memoizedState}function Ia(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=_a(1|t,n,void 0,void 0===r?null:r)}function La(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=_a(t,n,i,r))}sa.flags|=e,o.memoizedState=_a(1|t,n,i,r)}function ja(e,t){return Ia(8390656,8,e,t)}function Ma(e,t){return La(2048,8,e,t)}function Da(e,t){return La(4,2,e,t)}function Ba(e,t){return La(4,4,e,t)}function Ha(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Fa(e,t,n){return n=null!=n?n.concat([e]):null,La(4,4,Ha.bind(null,t,e),n)}function Ua(){}function za(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ga(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wa(e,t,n){return 21&aa?(sr(n,t)||(n=mt(),sa.lanes|=n,Ml|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function qa(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Va(){return ba().memoizedState}function $a(e,t,n){var r=tu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xa(e)?Qa(t,n):null!==(n=Li(e,t,n,r))&&(nu(n,e,r,eu()),Ya(n,t,r))}function Ka(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xa(e))Qa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Ii(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Li(e,t,o,r))&&(nu(n,e,r,o=eu()),Ya(n,t,r))}}function Xa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Qa(e,t){fa=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ya(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Za={readContext:_i,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Ja={readContext:_i,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:_i,useEffect:ja,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ia(4194308,4,Ha.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ia(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ia(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$a.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Na,useDebugValue:Ua,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Na(!1),t=e[0];return e=qa.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,o=ya();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Pl)throw Error(i(349));30&aa||Aa(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,ja(ka.bind(null,r,a,e),[e]),r.flags|=2048,_a(9,Ca.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Pl.identifierPrefix;if(ii){var n=Zo;t=":"+t+"R"+(n=(Yo&~(1<<32-at(Yo)-1)).toString(32)+n),0<(n=da++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:_i,useCallback:za,useContext:_i,useEffect:Ma,useImperativeHandle:Fa,useInsertionEffect:Da,useLayoutEffect:Ba,useMemo:Ga,useReducer:Ea,useRef:Ra,useState:function(){return Ea(wa)},useDebugValue:Ua,useDeferredValue:function(e){return Wa(ba(),la.memoizedState,e)},useTransition:function(){return[Ea(wa)[0],ba().memoizedState]},useMutableSource:Sa,useSyncExternalStore:Oa,useId:Va,unstable_isNewReconciler:!1},ts={readContext:_i,useCallback:za,useContext:_i,useEffect:Ma,useImperativeHandle:Fa,useInsertionEffect:Da,useLayoutEffect:Ba,useMemo:Ga,useReducer:xa,useRef:Ra,useState:function(){return xa(wa)},useDebugValue:Ua,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Wa(t,la.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ba().memoizedState]},useMutableSource:Sa,useSyncExternalStore:Oa,useId:Va,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Hi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Fi(e,i,o))&&(nu(t,e,o,r),Ui(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Hi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Fi(e,i,o))&&(nu(t,e,o,r),Ui(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Hi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Fi(e,o,r))&&(nu(t,e,r,n),Ui(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(o,i))}function as(e,t,n){var r=!1,o=To,i=t.contextType;return"object"==typeof i&&null!==i?i=_i(i):(o=Io(t)?_o:Po.current,i=(r=null!=(r=t.contextTypes))?Ro(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Di(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=_i(i):(i=Io(t)?_o:Po.current,o.context=Ro(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),Gi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ds="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Hi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wl||(Wl=!0,ql=r),fs(0,t)},n}function ps(e,t,n){(n=Hi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fs(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ds;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Au.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Hi(-1,1)).tag=2,Fi(n,t,1))),n.lanes|=1),e)}var ys=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?xi(t,null,n,r):Ei(t,e.child,n,r)}function Es(e,t,n,r,o){n=n.render;var i=t.ref;return Ni(t,o),r=va(e,t,n,r,i,o),n=ga(),null===e||bs?(ii&&n&&ti(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ws(e,t,o))}function xs(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ru(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ss(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Ws(e,t,o)}return t.flags|=1,(e=Iu(i,r)).ref=t.ref,e.return=t,t.child=e}function Ss(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Ws(e,t,o);131072&e.flags&&(bs=!0)}}return Cs(e,t,n,r,o)}function Os(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ko(Il,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,ko(Il,Rl),Rl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ko(Il,Rl),Rl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,ko(Il,Rl),Rl|=r;return ws(e,t,o,n),t.child}function As(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,o){var i=Io(n)?_o:Po.current;return i=Ro(t,i),Ni(t,o),n=va(e,t,n,r,i,o),r=ga(),null===e||bs?(ii&&r&&ti(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ws(e,t,o))}function ks(e,t,n,r,o){if(Io(n)){var i=!0;Do(t)}else i=!1;if(Ni(t,o),null===t.stateNode)Gs(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?_i(u):Ro(t,u=Io(n)?_o:Po.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ss(t,a,r,u),Mi=!1;var d=t.memoizedState;a.state=d,Gi(t,r,a,o),l=t.memoizedState,s!==r||d!==l||No.current||Mi?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=Mi||is(t,n,s,r,d,l,u))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Bi(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ns(t.type,s),a.props=u,f=t.pendingProps,d=a.context,l="object"==typeof(l=n.contextType)&&null!==l?_i(l):Ro(t,l=Io(n)?_o:Po.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==f||d!==l)&&ss(t,a,r,l),Mi=!1,d=t.memoizedState,a.state=d,Gi(t,r,a,o);var p=t.memoizedState;s!==f||d!==p||No.current||Mi?("function"==typeof h&&(rs(t,n,h,r),p=t.memoizedState),(u=Mi||is(t,n,u,r,d,p,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ts(e,t,n,r,i,o)}function Ts(e,t,n,r,o,i){As(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Bo(t,n,!1),Ws(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ei(t,e.child,null,i),t.child=Ei(t,null,s,i)):ws(e,t,s,i),t.memoizedState=r.state,o&&Bo(t,n,!0),t.child}function Ps(e){var t=e.stateNode;t.pendingContext?jo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&jo(0,t.context,!1),Qi(e,t.containerInfo)}function Ns(e,t,n,r,o){return pi(),mi(o),t.flags|=256,ws(e,t,n,r),t.child}var _s,Rs,Is,Ls,js={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ds(e,t,n){var r,o=t.pendingProps,a=ea.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ko(ea,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=Mu(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=ju(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(n),t.memoizedState=js,e):Bs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Hs(e,t,s,r=cs(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Mu({mode:"visible",children:r.children},o,0,null),(a=ju(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&Ei(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=js,a);if(!(1&t.mode))return Hs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Hs(e,t,s,r=cs(a=Error(i(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Pl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,ji(e,o),nu(r,e,o,-1))}return mu(),Hs(e,t,s,r=cs(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=ku.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=uo(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Ko[Xo++]=Yo,Ko[Xo++]=Zo,Ko[Xo++]=Qo,Yo=e.id,Zo=e.overflow,Qo=t),(t=Bs(t,r.children)).flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&l||t.child===a?(o=Iu(a,u)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==r?s=Iu(r,s):(s=ju(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Ms(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=js,o}return e=(s=e.child).sibling,o=Iu(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Bs(e,t){return(t=Mu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Hs(e,t,n,r){return null!==r&&mi(r),Ei(t,e.child,null,n),(e=Bs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Pi(e.return,t,n)}function Us(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function zs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ws(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fs(e,n,t);else if(19===e.tag)Fs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ko(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Us(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Us(t,!0,n,null,i);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Gs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ws(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ml|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Iu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Iu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function qs(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $s(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:case 17:return Io(t.type)&&Lo(),Vs(t),null;case 3:return r=t.stateNode,Yi(),Co(No),Co(Po),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(au(ai),ai=null))),Rs(e,t),Vs(t),null;case 5:Ji(t);var o=Xi(Ki.current);if(n=t.type,null!==e&&null!=t.stateNode)Is(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Vs(t),null}if(e=Xi(Vi.current),di(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[ho]=t,r[po]=a,e=!!(1&t.mode),n){case"dialog":Hr("cancel",r),Hr("close",r);break;case"iframe":case"object":case"embed":Hr("load",r);break;case"video":case"audio":for(o=0;o<jr.length;o++)Hr(jr[o],r);break;case"source":Hr("error",r);break;case"img":case"image":case"link":Hr("error",r),Hr("load",r);break;case"details":Hr("toggle",r);break;case"input":Q(r,a),Hr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Hr("invalid",r);break;case"textarea":oe(r,a),Hr("invalid",r)}for(var l in ye(n,a),o=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,u,e),o=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Hr("scroll",r)}switch(n){case"input":V(r),J(r,a,!0);break;case"textarea":V(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ho]=t,e[po]=r,_s(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Hr("cancel",e),Hr("close",e),o=r;break;case"iframe":case"object":case"embed":Hr("load",e),o=r;break;case"video":case"audio":for(o=0;o<jr.length;o++)Hr(jr[o],e);o=r;break;case"source":Hr("error",e),o=r;break;case"img":case"image":case"link":Hr("error",e),Hr("load",e),o=r;break;case"details":Hr("toggle",e),o=r;break;case"input":Q(e,r),o=X(e,r),Hr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=D({},r,{value:void 0}),Hr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Hr("invalid",e)}for(a in ye(n,o),u=o)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ve(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Hr("scroll",e):null!=c&&b(e,a,c,l))}switch(n){case"input":V(e),J(e,r,!1);break;case"textarea":V(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vs(t),null;case 6:if(e&&null!=t.stateNode)Ls(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Xi(Ki.current),Xi(Vi.current),di(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Zr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return Vs(t),null;case 13:if(Co(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))hi(),pi(),t.flags|=98560,a=!1;else if(a=di(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[ho]=t}else pi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vs(t),a=!1}else null!==ai&&(au(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Ll&&(Ll=3):mu())),null!==t.updateQueue&&(t.flags|=4),Vs(t),null);case 4:return Yi(),Rs(e,t),null===e&&zr(t.stateNode.containerInfo),Vs(t),null;case 10:return Ti(t.type._context),Vs(t),null;case 19:if(Co(ea),null===(a=t.memoizedState))return Vs(t),null;if(r=!!(128&t.flags),null===(l=a.rendering))if(r)qs(a,!1);else{if(0!==Ll||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,qs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ko(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Ye()>zl&&(t.flags|=128,r=!0,qs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Vs(t),null}else 2*Ye()-a.renderingStartTime>zl&&1073741824!==n&&(t.flags|=128,r=!0,qs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ye(),t.sibling=null,n=ea.current,ko(ea,r?1&n|2:1&n),t):(Vs(t),null);case 22:case 23:return fu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Rl)&&(Vs(t),6&t.subtreeFlags&&(t.flags|=8192)):Vs(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Ks(e,t){switch(ni(t),t.tag){case 1:return Io(t.type)&&Lo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Yi(),Co(No),Co(Po),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ji(t),null;case 13:if(Co(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));pi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Co(ea),null;case 4:return Yi(),null;case 10:return Ti(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}_s=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rs=function(){},Is=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Xi(Vi.current);var i,a=null;switch(n){case"input":o=X(e,o),r=X(e,r),a=[];break;case"select":o=D({},o,{value:void 0}),r=D({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(c in ye(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Hr("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ls=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xs=!1,Qs=!1,Ys="function"==typeof WeakSet?WeakSet:Set,Zs=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Ou(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Ou(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ho],delete t[po],delete t[vo],delete t[go],delete t[yo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,fl=!1;function dl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Qs||Js(n,t);case 6:var r=cl,o=fl;cl=null,dl(e,t,n),fl=o,null!==(cl=r)&&(fl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(fl?(e=cl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),zt(e)):lo(cl,n.stateNode));break;case 4:r=cl,o=fl,cl=n.stateNode.containerInfo,fl=!0,dl(e,t,n),cl=r,fl=o;break;case 0:case 11:case 14:case 15:if(!Qs&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&el(n,t,a),o=o.next}while(o!==r)}dl(e,t,n);break;case 1:if(!Qs&&(Js(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Ou(n,t,e)}dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:1&n.mode?(Qs=(r=Qs)||null!==n.memoizedState,dl(e,t,n),Qs=r):dl(e,t,n);break;default:dl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ys),t.forEach((function(t){var r=Tu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,fl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,fl=!0;break e}l=l.return}if(null===cl)throw Error(i(160));hl(a,s,o),cl=null,fl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Ou(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),gl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(t){Ou(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Ou(e,e.return,t)}}break;case 1:ml(t,e),gl(e),512&r&&null!==n&&Js(n,n.return);break;case 5:if(ml(t,e),gl(e),512&r&&null!==n&&Js(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){Ou(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&Y(o,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var f=u[s],d=u[s+1];"style"===f?ve(o,d):"dangerouslySetInnerHTML"===f?fe(o,d):"children"===f?de(o,d):b(o,f,d,c)}switch(l){case"input":Z(o,a);break;case"textarea":ie(o,a);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(o,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[po]=a}catch(t){Ou(e,e.return,t)}}break;case 6:if(ml(t,e),gl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Ou(e,e.return,t)}}break;case 3:if(ml(t,e),gl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(t){Ou(e,e.return,t)}break;case 4:default:ml(t,e),gl(e);break;case 13:ml(t,e),gl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Ul=Ye())),4&r&&pl(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Qs=(c=Qs)||f,ml(t,e),Qs=c):ml(t,e),gl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&1&e.mode)for(Zs=e,f=e.child;null!==f;){for(d=Zs=f;null!==Zs;){switch(p=(h=Zs).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:Js(h,h.return);var m=h.stateNode;if("function"==typeof m.componentWillUnmount){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Ou(r,n,e)}}break;case 5:Js(h,h.return);break;case 22:if(null!==h.memoizedState){El(d);continue}}null!==p?(p.return=h,Zs=p):El(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{o=d.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=d.stateNode,s=null!=(u=d.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){Ou(e,e.return,t)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){Ou(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:ml(t,e),gl(e),4&r&&pl(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),ul(e,sl(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(i(161))}}catch(t){Ou(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Zs=e,bl(e,t,n)}function bl(e,t,n){for(var r=!!(1&e.mode);null!==Zs;){var o=Zs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Xs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Qs;s=Xs;var u=Qs;if(Xs=a,(Qs=l)&&!u)for(Zs=o;null!==Zs;)l=(a=Zs).child,22===a.tag&&null!==a.memoizedState?xl(o):null!==l?(l.return=a,Zs=l):xl(o);for(;null!==i;)Zs=i,bl(i,t,n),i=i.sibling;Zs=o,Xs=s,Qs=u}wl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Zs=i):wl(e)}}function wl(e){for(;null!==Zs;){var t=Zs;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Qs||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Qs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wi(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Wi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&zt(d)}}}break;default:throw Error(i(163))}Qs||512&t.flags&&ol(t)}catch(e){Ou(t,t.return,e)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function El(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function xl(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Ou(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Ou(t,o,e)}}var i=t.return;try{ol(t)}catch(e){Ou(t,i,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){Ou(t,a,e)}}}catch(e){Ou(t,t.return,e)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var Sl,Ol=Math.ceil,Al=w.ReactCurrentDispatcher,Cl=w.ReactCurrentOwner,kl=w.ReactCurrentBatchConfig,Tl=0,Pl=null,Nl=null,_l=0,Rl=0,Il=Ao(0),Ll=0,jl=null,Ml=0,Dl=0,Bl=0,Hl=null,Fl=null,Ul=0,zl=1/0,Gl=null,Wl=!1,ql=null,Vl=null,$l=!1,Kl=null,Xl=0,Ql=0,Yl=null,Zl=-1,Jl=0;function eu(){return 6&Tl?Ye():-1!==Zl?Zl:Zl=Ye()}function tu(e){return 1&e.mode?2&Tl&&0!==_l?_l&-_l:null!==vi.transition?(0===Jl&&(Jl=mt()),Jl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Qt(e.type):1}function nu(e,t,n,r){if(50<Ql)throw Ql=0,Yl=null,Error(i(185));gt(e,n,r),2&Tl&&e===Pl||(e===Pl&&(!(2&Tl)&&(Dl|=n),4===Ll&&su(e,_l)),ru(e,r),1===n&&0===Tl&&!(1&t.mode)&&(zl=Ye()+500,Fo&&Go()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=ht(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=dt(e,e===Pl?_l:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){Fo=!0,zo(e)}(lu.bind(null,e)):zo(lu.bind(null,e)),ao((function(){!(6&Tl)&&Go()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Pu(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Zl=-1,Jl=0,6&Tl)throw Error(i(327));var n=e.callbackNode;if(xu()&&e.callbackNode!==n)return null;var r=dt(e,e===Pl?_l:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=vu(e,r);else{t=r;var o=Tl;Tl|=2;var a=pu();for(Pl===e&&_l===t||(Gl=null,zl=Ye()+500,du(e,t));;)try{yu();break}catch(t){hu(e,t)}ki(),Al.current=a,Tl=o,null!==Nl?t=0:(Pl=null,_l=0,t=Ll)}if(0!==t){if(2===t&&0!==(o=pt(e))&&(r=o,t=iu(e,o)),1===t)throw n=jl,du(e,0),su(e,r),ru(e,Ye()),n;if(6===t)su(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=vu(e,r),2===t&&(a=pt(e),0!==a&&(r=a,t=iu(e,a))),1!==t)))throw n=jl,du(e,0),su(e,r),ru(e,Ye()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Eu(e,Fl,Gl);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=Ul+500-Ye())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Eu.bind(null,e,Fl,Gl),t);break}Eu(e,Fl,Gl);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ol(r/1960))-r)){e.timeoutHandle=ro(Eu.bind(null,e,Fl,Gl),r);break}Eu(e,Fl,Gl);break;default:throw Error(i(329))}}}return ru(e,Ye()),e.callbackNode===n?ou.bind(null,e):null}function iu(e,t){var n=Hl;return e.current.memoizedState.isDehydrated&&(du(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Fl,Fl=n,null!==t&&au(t)),e}function au(e){null===Fl?Fl=e:Fl.push.apply(Fl,e)}function su(e,t){for(t&=~Bl,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(6&Tl)throw Error(i(327));xu();var t=dt(e,0);if(!(1&t))return ru(e,Ye()),null;var n=vu(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=iu(e,r))}if(1===n)throw n=jl,du(e,0),su(e,t),ru(e,Ye()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Eu(e,Fl,Gl),ru(e,Ye()),null}function uu(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(zl=Ye()+500,Fo&&Go())}}function cu(e){null!==Kl&&0===Kl.tag&&!(6&Tl)&&xu();var t=Tl;Tl|=1;var n=kl.transition,r=bt;try{if(kl.transition=null,bt=1,e)return e()}finally{bt=r,kl.transition=n,!(6&(Tl=t))&&Go()}}function fu(){Rl=Il.current,Co(Il)}function du(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Nl)for(n=Nl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Lo();break;case 3:Yi(),Co(No),Co(Po),ra();break;case 5:Ji(r);break;case 4:Yi();break;case 13:case 19:Co(ea);break;case 10:Ti(r.type._context);break;case 22:case 23:fu()}n=n.return}if(Pl=e,Nl=e=Iu(e.current,null),_l=Rl=t,Ll=0,jl=null,Bl=Dl=Ml=0,Fl=Hl=null,null!==Ri){for(t=0;t<Ri.length;t++)if(null!==(r=(n=Ri[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ri=null}return e}function hu(e,t){for(;;){var n=Nl;try{if(ki(),oa.current=Za,ca){for(var r=sa.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ca=!1}if(aa=0,ua=la=sa=null,fa=!1,da=0,Cl.current=null,null===n||null===n.return){Ll=1,jl=t,Nl=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=_l,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,f=l,d=f.tag;if(!(1&f.mode||0!==d&&11!==d&&15!==d)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=vs(s);if(null!==p){p.flags&=-257,gs(p,s,l,0,t),1&p.mode&&ms(a,c,t),u=c;var m=(t=p).updateQueue;if(null===m){var v=new Set;v.add(u),t.updateQueue=v}else m.add(u);break e}if(!(1&t)){ms(a,c,t),mu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var g=vs(s);if(null!==g){!(65536&g.flags)&&(g.flags|=256),gs(g,s,l,0,t),mi(us(u,l));break e}}a=u=us(u,l),4!==Ll&&(Ll=2),null===Hl?Hl=[a]:Hl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,zi(a,hs(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Vl&&Vl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,zi(a,ps(a,l,t));break e}}a=a.return}while(null!==a)}wu(n)}catch(e){t=e,Nl===n&&null!==n&&(Nl=n=n.return);continue}break}}function pu(){var e=Al.current;return Al.current=Za,null===e?Za:e}function mu(){0!==Ll&&3!==Ll&&2!==Ll||(Ll=4),null===Pl||!(268435455&Ml)&&!(268435455&Dl)||su(Pl,_l)}function vu(e,t){var n=Tl;Tl|=2;var r=pu();for(Pl===e&&_l===t||(Gl=null,du(e,t));;)try{gu();break}catch(t){hu(e,t)}if(ki(),Tl=n,Al.current=r,null!==Nl)throw Error(i(261));return Pl=null,_l=0,Ll}function gu(){for(;null!==Nl;)bu(Nl)}function yu(){for(;null!==Nl&&!Xe();)bu(Nl)}function bu(e){var t=Sl(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?wu(e):Nl=t,Cl.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Ks(n,t)))return n.flags&=32767,void(Nl=n);if(null===e)return Ll=6,void(Nl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=$s(n,t,Rl)))return void(Nl=n);if(null!==(t=t.sibling))return void(Nl=t);Nl=t=e}while(null!==t);0===Ll&&(Ll=5)}function Eu(e,t,n){var r=bt,o=kl.transition;try{kl.transition=null,bt=1,function(e,t,n,r){do{xu()}while(null!==Kl);if(6&Tl)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Pl&&(Nl=Pl=null,_l=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||$l||($l=!0,Pu(tt,(function(){return xu(),null}))),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=kl.transition,kl.transition=null;var s=bt;bt=1;var l=Tl;Tl|=4,Cl.current=null,function(e,t){if(eo=Wt,hr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,f=0,d=e,h=null;t:for(;;){for(var p;d!==n||0!==o&&3!==d.nodeType||(l=s+o),d!==a||0!==r&&3!==d.nodeType||(u=s+r),3===d.nodeType&&(s+=d.nodeValue.length),null!==(p=d.firstChild);)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++c===o&&(l=s),h===a&&++f===r&&(u=s),null!==(p=d.nextSibling))break;h=(d=h).parentNode}d=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Wt=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,g=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:ns(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){Ou(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}m=tl,tl=!1}(e,n),vl(n,e),pr(to),Wt=!!eo,to=eo=null,e.current=n,yl(n,e,o),Qe(),Tl=l,bt=s,kl.transition=a}else e.current=n;if($l&&($l=!1,Kl=e,Xl=o),0===(a=e.pendingLanes)&&(Vl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ru(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Wl)throw Wl=!1,e=ql,ql=null,e;!!(1&Xl)&&0!==e.tag&&xu(),1&(a=e.pendingLanes)?e===Yl?Ql++:(Ql=0,Yl=e):Ql=0,Go()}(e,t,n,r)}finally{kl.transition=o,bt=r}return null}function xu(){if(null!==Kl){var e=wt(Xl),t=kl.transition,n=bt;try{if(kl.transition=null,bt=16>e?16:e,null===Kl)var r=!1;else{if(e=Kl,Kl=null,Xl=0,6&Tl)throw Error(i(331));var o=Tl;for(Tl|=4,Zs=e.current;null!==Zs;){var a=Zs,s=a.child;if(16&Zs.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Zs=c;null!==Zs;){var f=Zs;switch(f.tag){case 0:case 11:case 15:nl(8,f,a)}var d=f.child;if(null!==d)d.return=f,Zs=d;else for(;null!==Zs;){var h=(f=Zs).sibling,p=f.return;if(il(f),f===c){Zs=null;break}if(null!==h){h.return=p,Zs=h;break}Zs=p}}}var m=a.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Zs=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Zs=s;else e:for(;null!==Zs;){if(2048&(a=Zs).flags)switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Zs=y;break e}Zs=a.return}}var b=e.current;for(Zs=b;null!==Zs;){var w=(s=Zs).child;if(2064&s.subtreeFlags&&null!==w)w.return=s,Zs=w;else e:for(s=b;null!==Zs;){if(2048&(l=Zs).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Ou(l,l.return,e)}if(l===s){Zs=null;break e}var E=l.sibling;if(null!==E){E.return=l.return,Zs=E;break e}Zs=l.return}}if(Tl=o,Go(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,kl.transition=t}}return!1}function Su(e,t,n){e=Fi(e,t=hs(0,t=us(n,t),1),1),t=eu(),null!==e&&(gt(e,1,t),ru(e,t))}function Ou(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){t=Fi(t,e=ps(t,e=us(n,e),1),1),e=eu(),null!==t&&(gt(t,1,e),ru(t,e));break}}t=t.return}}function Au(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Pl===e&&(_l&n)===n&&(4===Ll||3===Ll&&(130023424&_l)===_l&&500>Ye()-Ul?du(e,0):Bl|=n),ru(e,t)}function Cu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=eu();null!==(e=ji(e,t))&&(gt(e,t,n),ru(e,n))}function ku(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cu(e,n)}function Tu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Cu(e,n)}function Pu(e,t){return $e(e,t)}function Nu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _u(e,t,n,r){return new Nu(e,t,n,r)}function Ru(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Iu(e,t){var n=e.alternate;return null===n?((n=_u(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lu(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)Ru(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return ju(n.children,o,a,t);case O:s=8,o|=8;break;case A:return(e=_u(12,n,t,2|o)).elementType=A,e.lanes=a,e;case P:return(e=_u(13,n,t,o)).elementType=P,e.lanes=a,e;case N:return(e=_u(19,n,t,o)).elementType=N,e.lanes=a,e;case I:return Mu(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case k:s=9;break e;case T:s=11;break e;case _:s=14;break e;case R:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=_u(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function ju(e,t,n,r){return(e=_u(7,e,r,t)).lanes=n,e}function Mu(e,t,n,r){return(e=_u(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function Du(e,t,n){return(e=_u(6,e,null,t)).lanes=n,e}function Bu(e,t,n){return(t=_u(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fu(e,t,n,r,o,i,a,s,l){return e=new Hu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=_u(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Di(i),e}function Uu(e){if(!e)return To;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Io(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Io(n))return Mo(e,n,t)}return t}function zu(e,t,n,r,o,i,a,s,l){return(e=Fu(n,r,!0,e,0,i,0,s,l)).context=Uu(null),n=e.current,(i=Hi(r=eu(),o=tu(n))).callback=null!=t?t:null,Fi(n,i,o),e.current.lanes=o,gt(e,o,r),ru(e,r),e}function Gu(e,t,n,r){var o=t.current,i=eu(),a=tu(o);return n=Uu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Hi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Fi(o,t,a))&&(nu(e,o,a,i),Ui(e,o,a)),a}function Wu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vu(e,t){qu(e,t),(e=e.alternate)&&qu(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||No.current)bs=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ps(t),pi();break;case 5:Zi(t);break;case 1:Io(t.type)&&Do(t);break;case 4:Qi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ko(Si,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ko(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ds(e,t,n):(ko(ea,1&ea.current),null!==(e=Ws(e,t,n))?e.sibling:null);ko(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return zs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),ko(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Os(e,t,n)}return Ws(e,t,n)}(e,t,n);bs=!!(131072&e.flags)}else bs=!1,ii&&1048576&t.flags&&ei(t,$o,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gs(e,t),e=t.pendingProps;var o=Ro(t,Po.current);Ni(t,n),o=va(null,t,r,e,o,n);var a=ga();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Io(r)?(a=!0,Do(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Di(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,r,e,n),t=Ts(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),ws(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Ru(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===_)return 14}return 2}(r),e=ns(r,e),o){case 0:t=Cs(null,t,r,e,n);break e;case 1:t=ks(null,t,r,e,n);break e;case 11:t=Es(null,t,r,e,n);break e;case 14:t=xs(null,t,r,ns(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Cs(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 1:return r=t.type,o=t.pendingProps,ks(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 3:e:{if(Ps(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Bi(e,t),Gi(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ns(e,t,r,n,o=us(Error(i(423)),t));break e}if(r!==o){t=Ns(e,t,r,n,o=us(Error(i(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=xi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pi(),r===o){t=Ws(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Zi(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),As(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Ds(e,t,n);case 4:return Qi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ei(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Es(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,ko(Si,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!No.current){t=Ws(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=Hi(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),Pi(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Pi(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ni(t,n),r=r(o=_i(o)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return o=ns(r=t.type,t.pendingProps),xs(e,t,r,o=ns(r.type,o),n);case 15:return Ss(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ns(r,o),Gs(e,t),t.tag=1,Io(r)?(e=!0,Do(t)):e=!1,Ni(t,n),as(t,r,o),ls(t,r,o,n),Ts(null,t,r,!0,e,n);case 19:return zs(e,t,n);case 22:return Os(e,t,n)}throw Error(i(156,t.tag))};var $u="function"==typeof reportError?reportError:function(e){console.error(e)};function Ku(e){this._internalRoot=e}function Xu(e){this._internalRoot=e}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(){}function Ju(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Wu(a);s.call(e)}}Gu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Wu(a);i.call(e)}}var a=zu(t,r,e,0,null,!1,0,"",Zu);return e._reactRootContainer=a,e[mo]=a.current,zr(8===e.nodeType?e.parentNode:e),cu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Wu(l);s.call(e)}}var l=Fu(e,0,!1,null,0,!1,0,"",Zu);return e._reactRootContainer=l,e[mo]=l.current,zr(8===e.nodeType?e.parentNode:e),cu((function(){Gu(t,l,n,r)})),l}(n,t,e,o,r);return Wu(a)}Xu.prototype.render=Ku.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Gu(e,t,null,null)},Xu.prototype.unmount=Ku.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Gu(null,e,null,null)})),t[mo]=null}},Xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ot();e={blockedOn:null,target:e,priority:t};for(var n=0;n<It.length&&0!==t&&t<It[n].priority;n++);It.splice(n,0,e),0===n&&Dt(e)}},Et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(yt(t,1|n),ru(t,Ye()),!(6&Tl)&&(zl=Ye()+500,Go()))}break;case 13:cu((function(){var t=ji(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),Vu(e,1)}},xt=function(e){if(13===e.tag){var t=ji(e,134217728);null!==t&&nu(t,e,134217728,eu()),Vu(e,134217728)}},St=function(e){if(13===e.tag){var t=tu(e),n=ji(e,t);null!==n&&nu(n,e,t,eu()),Vu(e,t)}},Ot=function(){return bt},At=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=xo(r);if(!o)throw Error(i(90));$(r),Z(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=uu,Pe=cu;var ec={usingClientEntryPoint:!1,Events:[wo,Eo,xo,Ce,ke,uu]},tc={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),it=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qu(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Qu(e))throw Error(i(299));var n=!1,r="",o=$u;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Fu(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,zr(8===e.nodeType?e.parentNode:e),new Ku(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=qe(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Yu(t))throw Error(i(200));return Ju(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qu(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=$u;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=zu(t,null,e,1,null!=n?n:null,o,0,a,s),e[mo]=t.current,zr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Xu(t)},t.render=function(e,t,n){if(!Yu(t))throw Error(i(200));return Ju(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Yu(e))throw Error(i(40));return!!e._reactRootContainer&&(cu((function(){Ju(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Yu(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Ju(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},2318:(e,t,n)=>{n.d(t,{F:()=>r});var r=function(e){return e.scrollTop}},2402:(e,t,n)=>{n.d(t,{oU:()=>i});var r=n(8313),o=r.createContext({});function i(e,t){var n=(0,r.useContext)(o);return e||n[t]||t}o.Consumer,o.Provider},2431:(e,t,n)=>{var r;n.d(t,{t:()=>r}),function(e){e.PRODUCTION="production",e.DEVELOPMENT="development",e.TEST="test"}(r||(r={}))},2451:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(5784);function o(e){return e&&"setState"in e?r.findDOMNode(e):null!=e?e:null}},2476:(e,t,n)=>{n.d(t,{A:()=>f,B:()=>l});var r=n(2907),o=n.n(r),i=n(8313),a=n(4245),s=function(){};function l(){var e=(0,i.useContext)(a.A)||{},t=e.show,n=void 0!==t&&t,r=e.toggle,o=void 0===r?s:r,l=e.setToggle,u=(0,i.useCallback)((function(e){o(!n,e)}),[n,o]);return[{ref:l||s,onClick:u,"aria-haspopup":!0,"aria-expanded":!!n},{show:n,toggle:o}]}var u={children:o().func.isRequired};function c(e){var t=e.children,n=l(),r=n[0],o=n[1];return i.createElement(i.Fragment,null,t(r,o))}c.displayName="ReactOverlaysDropdownToggle",c.propTypes=u;const f=c},2707:(e,t,n)=>{n.d(t,{Ay:()=>s});const r=!("undefined"==typeof window||!window.document||!window.document.createElement);var o=!1,i=!1;try{var a={get passive(){return o=!0},get once(){return i=o=!0}};r&&(window.addEventListener("test",a,a),window.removeEventListener("test",a,!0))}catch(e){}const s=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!i){var a=r.once,s=r.capture,l=n;!i&&a&&(l=n.__once||function e(r){this.removeEventListener(t,e,s),n.call(this,r)},n.__once=l),e.addEventListener(t,l,o?r:s)}e.addEventListener(t,n,r)}},2771:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(8313);function o(){const[,e]=(0,r.useReducer)((e=>!e),!1);return e}},2800:(e,t,n)=>{n.d(t,{Gr:()=>d,Is:()=>v,JD:()=>g,On:()=>y,Q2:()=>u,pP:()=>p,sY:()=>c});var r=n(7849),o=n.n(r),i=n(2431),a=n(9116),s=n(551);let l={siteId:"",baseUrl:"",siteName:"",loginUrl:"",logoutUrl:"",lmsBaseUrl:"",environment:i.t.PRODUCTION,apps:[],externalRoutes:[],externalLinkUrlOverrides:[],mfeConfigApiUrl:null,accessTokenCookieName:"edx-jwt-cookie-header-payload",csrfTokenApiPath:"/csrf/api/v1/token",ignoredErrorRegex:null,languagePreferenceCookieName:"openedx-language-preference",refreshAccessTokenApiPath:"/login_refresh",userInfoCookieName:"edx-user-info",segmentKey:null};function u(){return l}function c(e){l=o()(l,e),(0,s.mk)(a.Ah)}const f={};function d(){const{apps:e}=u();if(e){for(const t of e){const{appId:e,config:n}=t;void 0!==n&&(f[e]=n)}(0,s.mk)(a.Ah)}}let h=[];function p(e){h=e,(0,s.mk)(a.k8)}const m={};function v(e){void 0===m[e]&&(m[e]=0),m[e]+=1,(0,s.mk)(a.k8)}function g(e){void 0!==m[e]&&(m[e]-=1),m[e]<1&&delete m[e],(0,s.mk)(a.k8)}function y(){return[...h,...Object.entries(m).filter((([,e])=>void 0!==e&&e>0)).map((([e])=>e))]}},2824:(e,t)=>{function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],f=1,d=null,h=3,p=!1,m=!1,v=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function E(e){if(v=!1,w(e),!m)if(null!==r(u))m=!0,I(x);else{var t=r(c);null!==t&&L(E,t.startTime-e)}}function x(e,n){m=!1,v&&(v=!1,y(C),C=-1),p=!0;var i=h;try{for(w(n),d=r(u);null!==d&&(!(d.expirationTime>n)||e&&!P());){var a=d.callback;if("function"==typeof a){d.callback=null,h=d.priorityLevel;var s=a(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?d.callback=s:d===r(u)&&o(u),w(n)}else o(u);d=r(u)}if(null!==d)var l=!0;else{var f=r(c);null!==f&&L(E,f.startTime-n),l=!1}return l}finally{d=null,h=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,O=!1,A=null,C=-1,k=5,T=-1;function P(){return!(t.unstable_now()-T<k)}function N(){if(null!==A){var e=t.unstable_now();T=e;var n=!0;try{n=A(!0,e)}finally{n?S():(O=!1,A=null)}}else O=!1}if("function"==typeof b)S=function(){b(N)};else if("undefined"!=typeof MessageChannel){var _=new MessageChannel,R=_.port2;_.port1.onmessage=N,S=function(){R.postMessage(null)}}else S=function(){g(N,0)};function I(e){A=e,O||(O=!0,S())}function L(e,n){C=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,I(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(v?(y(C),C=-1):v=!0,L(E,i-a))):(e.sortIndex=s,n(u,e),m||p||(m=!0,I(x))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},2880:(e,t,n)=>{n.d(t,{GV:()=>a,H6:()=>o,RK:()=>i,u3:()=>r,vg:()=>s});const r="IFRAME_MOUNTED",o="IFRAME_UNMOUNTED",i="IFRAME_READY",a="IFRAME_RESIZE",s="fullscreen; microphone *; camera *; midi *; geolocation *; encrypted-media *"},2907:(e,t,n)=>{e.exports=n(3783)()},3040:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n,r,o,i){var a=r||"<<anonymous>>",s=i||n;if(null==t[n])return new Error("The "+o+" `"+s+"` is required to make `"+a+"` accessible for users of assistive technologies such as screen readers.");for(var l=arguments.length,u=Array(l>5?l-5:0),c=5;c<l;c++)u[c-5]=arguments[c];return e.apply(void 0,[t,n,r,o,i].concat(u))}},e.exports=t.default},3057:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(8313);function o(){const e=(0,r.useRef)(!0),t=(0,r.useRef)((()=>e.current));return(0,r.useEffect)((()=>(e.current=!0,()=>{e.current=!1})),[]),t.current}},3091:(e,t,n)=>{n.d(t,{A:()=>Re});var r=n(1635),o=n(3816),i=n(8313),a=n(2187),s=n(553),l=n(7794);(0,l.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{strategy:l.W.variadic}),(0,l.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{strategy:l.W.variadic}),(0,l.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{strategy:l.W.variadic}),(0,l.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.Locale).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{strategy:l.W.variadic}),(0,l.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.ListFormat).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{strategy:l.W.variadic});var u,c,f,d,h=n(1453),p=n(1495);(d=u||(u={}))[d.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",d[d.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",d[d.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",d[d.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",d[d.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",d[d.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",d[d.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",d[d.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",d[d.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",d[d.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",d[d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",d[d.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",d[d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",d[d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",d[d.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",d[d.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",d[d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",d[d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",d[d.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",d[d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",d[d.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",d[d.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",d[d.INVALID_TAG=23]="INVALID_TAG",d[d.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",d[d.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",d[d.UNCLOSED_TAG=27]="UNCLOSED_TAG",function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(c||(c={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(f||(f={}));var m=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,v=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function g(e){var t={};return e.replace(v,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var y=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,b=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,w=/^(@+)?(\+|#+)?[rs]?$/g,E=/(\*)(0+)|(#+)(0+)|(0+)/g,x=/^(0+)$/;function S(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(w,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function O(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function A(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!x.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function C(e){return O(e)||{}}function k(e){for(var t={},n=0,o=e;n<o.length;n++){var i=o[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=(0,r.Cl)((0,r.Cl)((0,r.Cl)({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return(0,r.Cl)((0,r.Cl)({},e),C(t))}),{}));continue;case"engineering":t=(0,r.Cl)((0,r.Cl)((0,r.Cl)({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return(0,r.Cl)((0,r.Cl)({},e),C(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(E,(function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(x.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(b.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(b,(function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var a=i.options[0];"w"===a?t=(0,r.Cl)((0,r.Cl)({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=(0,r.Cl)((0,r.Cl)({},t),S(a)))}else if(w.test(i.stem))t=(0,r.Cl)((0,r.Cl)({},t),S(i.stem));else{var s=O(i.stem);s&&(t=(0,r.Cl)((0,r.Cl)({},t),s));var l=A(i.stem);l&&(t=(0,r.Cl)((0,r.Cl)({},t),l))}}return t}var T,P={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function N(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(P[n||""]||P[r||""]||P["".concat(r,"-001")]||P["001"])[0]}var _=new RegExp("^".concat(m.source,"*")),R=new RegExp("".concat(m.source,"*$"));function I(e,t){return{start:e,end:t}}var L=!!String.prototype.startsWith&&"_a".startsWith("a",1),j=!!String.fromCodePoint,M=!!Object.fromEntries,D=!!String.prototype.codePointAt,B=!!String.prototype.trimStart,H=!!String.prototype.trimEnd,F=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},U=!0;try{U="a"===(null===(T=X("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===T?void 0:T[0])}catch(e){U=!1}var z,G=L?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},W=j?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;o>i;){if((n=e[i++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},q=M?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a}return t},V=D?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},$=B?function(e){return e.trimStart()}:function(e){return e.replace(_,"")},K=H?function(e){return e.trimEnd()}:function(e){return e.replace(R,"")};function X(e,t){return new RegExp(e,t)}if(U){var Q=X("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");z=function(e,t){var n;return Q.lastIndex=t,null!==(n=Q.exec(e)[1])&&void 0!==n?n:""}}else z=function(e,t){for(var n=[];;){var r=V(e,t);if(void 0===r||Z(r)||J(r))break;n.push(r),t+=r>=65536?2:1}return W.apply(void 0,n)};function Y(e){return e>=97&&e<=122||e>=65&&e<=90}function Z(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function J(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function ee(e,t){return Object.keys(e).reduce((function(n,o){return n[o]=(0,r.Cl)({timeZone:t},e[o]),n}),{})}function te(e,t){return Object.keys((0,r.Cl)((0,r.Cl)({},e),t)).reduce((function(n,o){return n[o]=(0,r.Cl)((0,r.Cl)({},e[o]||{}),t[o]||{}),n}),{})}function ne(e,t){if(!t)return e;var n=h.S.formats;return(0,r.Cl)((0,r.Cl)((0,r.Cl)({},n),e),{date:te(ee(n.date,t),ee(e.date||{},t)),time:te(ee(n.time,t),ee(e.time||{},t))})}!function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(u.UNMATCHED_CLOSING_TAG,I(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Y(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:c.pound,location:I(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:c.literal,value:"<".concat(r,"/>"),location:I(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Y(this.char()))return this.error(u.INVALID_TAG,I(a,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(u.UNMATCHED_CLOSING_TAG,I(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:c.tag,value:r,children:i,location:I(n,this.clonePosition())},err:null}:this.error(u.INVALID_TAG,I(a,this.clonePosition())))}return this.error(u.UNCLOSED_TAG,I(n,this.clonePosition()))}return this.error(u.INVALID_TAG,I(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var i=this.tryParseUnquoted(e,t);if(i)r+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var s=I(n,this.clonePosition());return{val:{type:c.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Y(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return W.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),W(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,I(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(u.EMPTY_ARGUMENT,I(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(u.MALFORMED_ARGUMENT,I(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,I(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:c.argument,value:r,location:I(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,I(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(u.MALFORMED_ARGUMENT,I(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=z(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:I(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,o){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(u.EXPECT_ARGUMENT_TYPE,I(a,l));case"number":case"date":case"time":this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((x=this.parseSimpleArgStyleIfPossible()).err)return x;if(0===(y=K(x.val)).length)return this.error(u.EXPECT_ARGUMENT_STYLE,I(this.clonePosition(),this.clonePosition()));d={style:y,styleLocation:I(h,this.clonePosition())}}if((S=this.tryParseArgumentClose(o)).err)return S;var p=I(o,this.clonePosition());if(d&&G(null==d?void 0:d.style,"::",0)){var m=$(d.style.slice(2));if("number"===s)return(x=this.parseNumberSkeletonFromString(m,d.styleLocation)).err?x:{val:{type:c.number,value:n,location:p,style:x.val},err:null};if(0===m.length)return this.error(u.EXPECT_DATE_TIME_SKELETON,p);var v=m;this.locale&&(v=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var a=1+(1&i),s=i<2?1:3+(i>>1),l=N(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)n+="a";for(;a-- >0;)n=l+n}else n+="J"===o?"H":o}return n}(m,this.locale));var y={type:f.dateTime,pattern:v,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?g(v):{}};return{val:{type:"date"===s?c.date:c.time,value:n,location:p,style:y},err:null}}return{val:{type:"number"===s?c.number:"date"===s?c.date:c.time,value:n,location:p,style:null!==(i=null==d?void 0:d.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(u.EXPECT_SELECT_ARGUMENT_OPTIONS,I(b,(0,r.Cl)({},b)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),E=0;if("select"!==s&&"offset"===w.value){if(!this.bumpIf(":"))return this.error(u.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,I(this.clonePosition(),this.clonePosition()));var x;if(this.bumpSpace(),(x=this.tryParseDecimalInteger(u.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,u.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return x;this.bumpSpace(),w=this.parseIdentifierIfPossible(),E=x.val}var S,O=this.tryParsePluralOrSelectOptions(e,s,t,w);if(O.err)return O;if((S=this.tryParseArgumentClose(o)).err)return S;var A=I(o,this.clonePosition());return"select"===s?{val:{type:c.select,value:n,options:q(O.val),location:A},err:null}:{val:{type:c.plural,value:n,options:q(O.val),offset:E,pluralType:"plural"===s?"cardinal":"ordinal",location:A},err:null};default:return this.error(u.INVALID_ARGUMENT_TYPE,I(a,l))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,I(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(u.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,I(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(y).filter((function(e){return e.length>0}));n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],a=o.slice(1),s=0,l=a;s<l.length;s++)if(0===l[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:a})}return t}(e)}catch(e){return this.error(u.INVALID_NUMBER_SKELETON,t)}return{val:{type:f.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?k(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o,i=!1,a=[],s=new Set,l=r.value,c=r.location;;){if(0===l.length){var f=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(u.EXPECT_PLURAL_ARGUMENT_SELECTOR,u.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=I(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}if(s.has(l))return this.error("select"===t?u.DUPLICATE_SELECT_ARGUMENT_SELECTOR:u.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(i=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?u.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:u.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,I(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var m=this.tryParseArgumentClose(h);if(m.err)return m;a.push([l,{value:p.val,location:I(h,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===a.length?this.error("select"===t?u.EXPECT_SELECT_ARGUMENT_SELECTOR:u.EXPECT_PLURAL_ARGUMENT_SELECTOR,I(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(u.MISSING_OTHER_CLAUSE,I(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=I(r,this.clonePosition());return o?F(i*=n)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=V(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(G(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Z(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null}}();var re=function(e,t,n,o,i){var a=e.locale,s=e.formats,l=e.messages,u=e.defaultLocale,f=e.defaultFormats,d=e.fallbackOnEmptyString,h=e.onError,m=e.timeZone,v=e.defaultRichTextElements;void 0===n&&(n={id:""});var g=n.id,y=n.defaultMessage;!function(e,t,n){if(void 0===n&&(n=Error),!e)throw new n("[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue")}(!!g);var b=String(g),w=l&&Object.prototype.hasOwnProperty.call(l,b)&&l[b];if(Array.isArray(w)&&1===w.length&&w[0].type===c.literal)return w[0].value;if(!o&&w&&"string"==typeof w&&!v)return w.replace(/'\{(.*?)\}'/gi,"{$1}");if(o=(0,r.Cl)((0,r.Cl)({},v),o||{}),s=ne(s,m),f=ne(f,m),!w){if(!1===d&&""===w)return w;if((!y||a&&a.toLowerCase()!==u.toLowerCase())&&h(new p.sb(n,a)),y)try{return t.getMessageFormat(y,u,f,i).format(o)}catch(e){return h(new p.Ho('Error formatting default message for: "'.concat(b,'", rendering default message verbatim'),a,n,e)),"string"==typeof y?y:b}return b}try{return t.getMessageFormat(w,a,s,(0,r.Cl)({formatters:t},i||{})).format(o)}catch(e){h(new p.Ho('Error formatting message: "'.concat(b,'", using ').concat(y?"default message":"id"," as fallback."),a,n,e))}if(y)try{return t.getMessageFormat(y,u,f,i).format(o)}catch(e){h(new p.Ho('Error formatting the default message for: "'.concat(b,'", rendering message verbatim'),a,n,e))}return"string"==typeof w?w:"string"==typeof y?y:b},oe=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function ie(e,t,n){var r=e.locale,i=e.formats,a=e.onError;void 0===n&&(n={});var s=n.format,l=s&&(0,o.F3)(i,"number",s,a)||{};return t(r,(0,o.J9)(n,oe,l))}function ae(e,t,n,r){void 0===r&&(r={});try{return ie(e,t,r).format(n)}catch(t){e.onError(new p.pg("Error formatting number.",e.locale,t))}return String(n)}function se(e,t,n,r){void 0===r&&(r={});try{return ie(e,t,r).formatToParts(n)}catch(t){e.onError(new p.pg("Error formatting number.",e.locale,t))}return[]}var le=n(2035),ue=["numeric","style"];function ce(e,t,n,r,i){void 0===i&&(i={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new le.IF('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',le.O4.MISSING_INTL_API));try{return function(e,t,n){var r=e.locale,i=e.formats,a=e.onError;void 0===n&&(n={});var s=n.format,l=!!s&&(0,o.F3)(i,"relative",s,a)||{};return t(r,(0,o.J9)(n,ue,l))}(e,t,i).format(n,r)}catch(t){e.onError(new p.pg("Error formatting relative time.",e.locale,t))}return String(n)}var fe=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function de(e,t,n,i){var a=e.locale,s=e.formats,l=e.onError,u=e.timeZone;void 0===i&&(i={});var c=i.format,f=(0,r.Cl)((0,r.Cl)({},u&&{timeZone:u}),c&&(0,o.F3)(s,t,c,l)),d=(0,o.J9)(i,fe,f);return"time"!==t||d.hour||d.minute||d.second||d.timeStyle||d.dateStyle||(d=(0,r.Cl)((0,r.Cl)({},d),{hour:"numeric",minute:"numeric"})),n(a,d)}function he(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return de(e,"date",t,a).format(s)}catch(t){e.onError(new p.pg("Error formatting date.",e.locale,t))}return String(s)}function pe(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return de(e,"time",t,a).format(s)}catch(t){e.onError(new p.pg("Error formatting time.",e.locale,t))}return String(s)}function me(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],s=n[2],l=void 0===s?{}:s,u=e.timeZone,c=e.locale,f=e.onError,d=(0,o.J9)(l,fe,u?{timeZone:u}:{});try{return t(c,d).formatRange(i,a)}catch(t){f(new p.pg("Error formatting date time range.",e.locale,t))}return String(i)}function ve(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return de(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new p.pg("Error formatting date.",e.locale,t))}return[]}function ge(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return de(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new p.pg("Error formatting time.",e.locale,t))}return[]}var ye=["type"];function be(e,t,n,r){var i=e.locale,a=e.onError;void 0===r&&(r={}),Intl.PluralRules||a(new le.IF('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',le.O4.MISSING_INTL_API));var s=(0,o.J9)(r,ye);try{return t(i,s).select(n)}catch(e){a(new p.pg("Error formatting plural.",i,e))}return"other"}var we=["type","style"],Ee=Date.now();function xe(e,t,n,r){void 0===r&&(r={});var o=Se(e,t,n,r).reduce((function(e,t){var n=t.value;return"string"!=typeof n?e.push(n):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e}),[]);return 1===o.length?o[0]:0===o.length?"":o}function Se(e,t,n,i){var a=e.locale,s=e.onError;void 0===i&&(i={}),Intl.ListFormat||s(new le.IF('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',le.O4.MISSING_INTL_API));var l=(0,o.J9)(i,we);try{var u={},c=n.map((function(e,t){if("object"==typeof e){var n=function(e){return"".concat(Ee,"_").concat(e,"_").concat(Ee)}(t);return u[n]=e,n}return String(e)}));return t(a,l).formatToParts(c).map((function(e){return"literal"===e.type?e:(0,r.Cl)((0,r.Cl)({},e),{value:u[e.value]||e.value})}))}catch(e){s(new p.pg("Error formatting list.",a,e))}return n}var Oe=["style","type","fallback","languageDisplay"];function Ae(e,t,n,r){var i=e.locale,a=e.onError;Intl.DisplayNames||a(new le.IF('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',le.O4.MISSING_INTL_API));var s=(0,o.J9)(r,Oe);try{return t(i,s).of(n)}catch(e){a(new p.pg("Error formatting display name.",i,e))}}var Ce=n(7270);function ke(e){return e?Object.keys(e).reduce((function(t,n){var r=e[n];return t[n]=(0,Ce.RK)(r)?(0,a.yU)(r):r,t}),{}):e}var Te=function(e,t,n,o){for(var a=[],s=4;s<arguments.length;s++)a[s-4]=arguments[s];var l=ke(o),u=re.apply(void 0,(0,r.fX)([e,t,n,l],a,!1));return Array.isArray(u)?i.Children.toArray(u):u},Pe=function(e,t){var n=e.defaultRichTextElements,i=(0,r.Tt)(e,["defaultRichTextElements"]),s=ke(n),l=function(e,t){var n=(0,o.GT)(t),i=(0,r.Cl)((0,r.Cl)({},o.JF),e),a=i.locale,s=i.defaultLocale,l=i.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&l?l(new p.hr('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(s,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&l&&l(new p.hr('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(s,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(l&&l(new p.uo('"locale" was not configured, using "'.concat(s,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),i.locale=i.defaultLocale||"en"),function(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}(i),(0,r.Cl)((0,r.Cl)({},i),{formatters:n,formatNumber:ae.bind(null,i,n.getNumberFormat),formatNumberToParts:se.bind(null,i,n.getNumberFormat),formatRelativeTime:ce.bind(null,i,n.getRelativeTimeFormat),formatDate:he.bind(null,i,n.getDateTimeFormat),formatDateToParts:ve.bind(null,i,n.getDateTimeFormat),formatTime:pe.bind(null,i,n.getDateTimeFormat),formatDateTimeRange:me.bind(null,i,n.getDateTimeFormat),formatTimeToParts:ge.bind(null,i,n.getDateTimeFormat),formatPlural:be.bind(null,i,n.getPluralRules),formatMessage:re.bind(null,i,n),$t:re.bind(null,i,n),formatList:xe.bind(null,i,n.getListFormat),formatListToParts:Se.bind(null,i,n.getListFormat),formatDisplayName:Ae.bind(null,i,n.getDisplayNames)})}((0,r.Cl)((0,r.Cl)((0,r.Cl)({},a.JF),i),{defaultRichTextElements:s}),t),u={locale:l.locale,timeZone:l.timeZone,fallbackOnEmptyString:l.fallbackOnEmptyString,formats:l.formats,defaultLocale:l.defaultLocale,defaultFormats:l.defaultFormats,messages:l.messages,onError:l.onError,defaultRichTextElements:s};return(0,r.Cl)((0,r.Cl)({},l),{formatMessage:Te.bind(null,u,l.formatters),$t:Te.bind(null,u,l.formatters)})};function Ne(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var _e=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=(0,o.MT)(),t.state={cache:t.cache,intl:Pe(Ne(t.props),t.cache),prevConfig:Ne(t.props)},t}return(0,r.C6)(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,o=Ne(e);return(0,a.bN)(n,o)?null:{intl:Pe(o,r),prevConfig:o}},t.prototype.render=function(){return(0,a.HM)(this.state.intl),i.createElement(s.Kq,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=a.JF,t}(i.PureComponent);const Re=_e},3273:(e,t,n)=>{var r,o;n.d(t,{N_:()=>C,Ys:()=>d,pg:()=>E});var i=n(8313),a=n(5784),s=n(5106),l=n(5437),u=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const f=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function d(e,t){return(0,l.aE)({basename:null==t?void 0:t.basename,future:c({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,l.zR)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||h(),routes:e,mapRouteProperties:s.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function h(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=c({},t,{errors:p(t.errors)})),t}function p(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new l.VV(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}const m=i.createContext({isTransitioning:!1}),v=i.createContext(new Map),g=(r||(r=n.t(i,2))).startTransition,y=(o||(o=n.t(a,2))).flushSync;function b(e){y?y(e):e()}(r||(r=n.t(i,2))).useId;class w{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}}function E(e){let{fallbackElement:t,router:n,future:r}=e,[o,a]=i.useState(n.state),[l,c]=i.useState(),[f,d]=i.useState({isTransitioning:!1}),[h,p]=i.useState(),[y,E]=i.useState(),[S,O]=i.useState(),A=i.useRef(new Map),{v7_startTransition:C}=r||{},k=i.useCallback((e=>{C?function(e){g?g(e):e()}(e):e()}),[C]),T=i.useCallback(((e,t)=>{let{deletedFetchers:r,flushSync:o,viewTransitionOpts:i}=t;e.fetchers.forEach(((e,t)=>{void 0!==e.data&&A.current.set(t,e.data)})),r.forEach((e=>A.current.delete(e)));let s=null==n.window||null==n.window.document||"function"!=typeof n.window.document.startViewTransition;if(i&&!s){if(o){b((()=>{y&&(h&&h.resolve(),y.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})}));let t=n.window.document.startViewTransition((()=>{b((()=>a(e)))}));return t.finished.finally((()=>{b((()=>{p(void 0),E(void 0),c(void 0),d({isTransitioning:!1})}))})),void b((()=>E(t)))}y?(h&&h.resolve(),y.skipTransition(),O({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(c(e),d({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))}else o?b((()=>a(e))):k((()=>a(e)))}),[n.window,y,h,A,k]);i.useLayoutEffect((()=>n.subscribe(T)),[n,T]),i.useEffect((()=>{f.isTransitioning&&!f.flushSync&&p(new w)}),[f]),i.useEffect((()=>{if(h&&l&&n.window){let e=l,t=h.promise,r=n.window.document.startViewTransition((()=>u(this,void 0,void 0,(function*(){k((()=>a(e))),yield t}))));r.finished.finally((()=>{p(void 0),E(void 0),c(void 0),d({isTransitioning:!1})})),E(r)}}),[k,l,h,n.window]),i.useEffect((()=>{h&&l&&o.location.key===l.location.key&&h.resolve()}),[h,y,o.location,l]),i.useEffect((()=>{!f.isTransitioning&&S&&(c(S.state),d({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),O(void 0))}),[f.isTransitioning,S]),i.useEffect((()=>{}),[]);let P=i.useMemo((()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})})),[n]),N=n.basename||"/",_=i.useMemo((()=>({router:n,navigator:P,static:!1,basename:N})),[n,P,N]),R=i.useMemo((()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath})),[n.future.v7_relativeSplatPath]);return i.useEffect((()=>(0,s.V8)(r,n.future)),[r,n.future]),i.createElement(i.Fragment,null,i.createElement(s.sp.Provider,{value:_},i.createElement(s.Rq.Provider,{value:o},i.createElement(v.Provider,{value:A.current},i.createElement(m.Provider,{value:f},i.createElement(s.Ix,{basename:N,location:o.location,navigationType:o.historyAction,navigator:P,future:R},o.initialized||n.future.v7_partialHydration?i.createElement(x,{routes:n.routes,future:n.future,state:o}):t))))),null)}const x=i.memo(S);function S(e){let{routes:t,future:n,state:r}=e;return(0,s.ph)(t,void 0,r,n)}const O="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,A=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,C=i.forwardRef((function(e,t){let n,{onClick:r,relative:o,reloadDocument:a,replace:u,state:d,target:h,to:p,preventScrollReset:m,viewTransition:v}=e,g=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,f),{basename:y}=i.useContext(s.jb),b=!1;if("string"==typeof p&&A.test(p)&&(n=p,O))try{let e=new URL(window.location.href),t=p.startsWith("//")?new URL(e.protocol+p):new URL(p),n=(0,l.pb)(t.pathname,y);t.origin===e.origin&&null!=n?p=n+t.search+t.hash:b=!0}catch(e){}let w=(0,s.$P)(p,{relative:o}),E=function(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:u,viewTransition:c}=void 0===t?{}:t,f=(0,s.Zp)(),d=(0,s.zy)(),h=(0,s.x$)(e,{relative:u});return i.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:(0,l.AO)(d)===(0,l.AO)(h);f(e,{replace:n,state:o,preventScrollReset:a,relative:u,viewTransition:c})}}),[d,f,h,r,o,n,e,a,u,c])}(p,{replace:u,state:d,target:h,preventScrollReset:m,relative:o,viewTransition:v});return i.createElement("a",c({},g,{href:n||w,onClick:b||a?r:function(e){r&&r(e),e.defaultPrevented||E(e)},ref:t,target:h}))}));var k,T;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(k||(k={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(T||(T={}))},3410:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(9792);var o=/([A-Z])/g,i=/^ms-/;function a(e){return function(e){return e.replace(o,"-$1").toLowerCase()}(e).replace(i,"-ms-")}var s=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const l=function(e,t){var n="",o="";if("string"==typeof t)return e.style.getPropertyValue(a(t))||function(e,t){return function(e){var t=(0,r.A)(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue(a(t));Object.keys(t).forEach((function(r){var i=t[r];i||0===i?function(e){return!(!e||!s.test(e))}(r)?o+=r+"("+i+") ":n+=a(r)+": "+i+";":e.style.removeProperty(a(r))})),o&&(n+="transform: "+o+";"),e.style.cssText+=";"+n}},3420:(e,t,n)=>{n.d(t,{A:()=>r});const r=n(8313).createContext(null)},3440:(e,t,n)=>{n.d(t,{A:()=>v});var r=n(8313),o=n(7141),i=n.n(o),a=n(2907),s=n.n(a),l=n(9511),u=n(1550),c=n(2402),f=["bsPrefix","fluid","as","className"],d=r.forwardRef((function(e,t){var n=e.bsPrefix,o=e.fluid,a=e.as,s=void 0===a?"div":a,d=e.className,h=(0,u.A)(e,f),p=(0,c.oU)(n,"container"),m="string"==typeof o?"-"+o:"-fluid";return r.createElement(s,(0,l.A)({ref:t},h,{className:i()(d,o?""+p+m:p)}))}));d.displayName="Container",d.defaultProps={fluid:!1};const h=d;var p=function(e){return e.xs="container-mw-xs",e.sm="container-mw-sm",e.md="container-mw-md",e.lg="container-mw-lg",e.xl="container-mw-xl",e}(p||{});const m=r.forwardRef(((e,t)=>{let{size:n,children:o}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["size","children"]);return r.createElement(h,Object.assign(Object.assign({},a),{ref:t,className:i()(a.className,n&&p[n])}),o)}));m.propTypes=Object.assign(Object.assign({},h.propTypes),{as:s().elementType,children:s().node,fluid:s().bool,size:s().oneOf(["xs","sm","md","lg","xl"]),bsPrefix:s().string}),m.defaultProps={as:"div",children:void 0,fluid:!0,size:void 0,bsPrefix:"container"};const v=m},3483:(e,t,n)=>{n.d(t,{N7:()=>V,k2:()=>q,Ay:()=>$});var r=n(8313),o=n(9511),i=n(1550),a=n(7141),s=n.n(a),l=(n(8523),n(4082)),u=n(2402),c=n(5991),f=r.createContext(null);f.displayName="CardContext";const d=f;var h=n(9328),p=n(2771),m=n(7355),v=n(9148),g=n(4041);const y=r.createContext(null);var b=["as","onSelect","activeKey","role","onKeyDown"],w=function(){};const E=r.forwardRef((function(e,t){var n,a,s=e.as,l=void 0===s?"ul":s,u=e.onSelect,c=e.activeKey,f=e.role,d=e.onKeyDown,E=(0,i.A)(e,b),x=(0,p.A)(),S=(0,r.useRef)(!1),O=(0,r.useContext)(g.A),A=(0,r.useContext)(y);A&&(f=f||"tablist",c=A.activeKey,n=A.getControlledId,a=A.getControllerId);var C=(0,r.useRef)(null),k=function(e){var t=C.current;if(!t)return null;var n=(0,h.A)(t,"[data-rb-event-key]:not(.disabled)"),r=t.querySelector(".active");if(!r)return null;var o=n.indexOf(r);if(-1===o)return null;var i=o+e;return i>=n.length&&(i=0),i<0&&(i=n.length-1),n[i]},T=function(e,t){null!=e&&(u&&u(e,t),O&&O(e,t))};(0,r.useEffect)((function(){if(C.current&&S.current){var e=C.current.querySelector("[data-rb-event-key].active");e&&e.focus()}S.current=!1}));var P=(0,m.A)(t,C);return r.createElement(g.A.Provider,{value:T},r.createElement(v.A.Provider,{value:{role:f,activeKey:(0,g.u)(c),getControlledId:n||w,getControllerId:a||w}},r.createElement(l,(0,o.A)({},E,{onKeyDown:function(e){var t;switch(d&&d(e),e.key){case"ArrowLeft":case"ArrowUp":t=k(-1);break;case"ArrowRight":case"ArrowDown":t=k(1);break;default:return}t&&(e.preventDefault(),T(t.dataset.rbEventKey,e),S.current=!0,x())},ref:P,role:f}))))}));var x=["bsPrefix","className","children","as"],S=r.forwardRef((function(e,t){var n=e.bsPrefix,a=e.className,l=e.children,c=e.as,f=void 0===c?"div":c,d=(0,i.A)(e,x);return n=(0,u.oU)(n,"nav-item"),r.createElement(f,(0,o.A)({},d,{ref:t,className:s()(a,n)}),l)}));S.displayName="NavItem";const O=S;var A=n(2036),C=n(6545),k=(n(7730),["active","className","eventKey","onSelect","onClick","as"]),T=r.forwardRef((function(e,t){var n=e.active,a=e.className,l=e.eventKey,u=e.onSelect,c=e.onClick,f=e.as,d=(0,i.A)(e,k),h=(0,g.u)(l,d.href),p=(0,r.useContext)(g.A),m=(0,r.useContext)(v.A),y=n;if(m){d.role||"tablist"!==m.role||(d.role="tab");var b=m.getControllerId(h),w=m.getControlledId(h);d["data-rb-event-key"]=h,d.id=b||d.id,d["aria-controls"]=w||d["aria-controls"],y=null==n&&null!=h?m.activeKey===h:n}"tab"===d.role&&(d.disabled&&(d.tabIndex=-1,d["aria-disabled"]=!0),d["aria-selected"]=y);var E=(0,C.A)((function(e){c&&c(e),null!=h&&(u&&u(h,e),p&&p(h,e))}));return r.createElement(f,(0,o.A)({},d,{ref:t,onClick:E,className:s()(a,y&&"active")}))}));T.defaultProps={disabled:!1};const P=T;var N=["bsPrefix","disabled","className","href","eventKey","onSelect","as"],_={disabled:!1,as:A.A},R=r.forwardRef((function(e,t){var n=e.bsPrefix,a=e.disabled,l=e.className,c=e.href,f=e.eventKey,d=e.onSelect,h=e.as,p=(0,i.A)(e,N);return n=(0,u.oU)(n,"nav-link"),r.createElement(P,(0,o.A)({},p,{href:c,ref:t,eventKey:f,as:h,disabled:a,onSelect:d,className:s()(l,n,a&&"disabled")}))}));R.displayName="NavLink",R.defaultProps=_;const I=R;var L=["as","bsPrefix","variant","fill","justify","navbar","navbarScroll","className","children","activeKey"],j=r.forwardRef((function(e,t){var n,a,f,h=(0,l.Zw)(e,{activeKey:"onSelect"}),p=h.as,m=void 0===p?"div":p,v=h.bsPrefix,g=h.variant,y=h.fill,b=h.justify,w=h.navbar,x=h.navbarScroll,S=h.className,O=h.children,A=h.activeKey,C=(0,i.A)(h,L),k=(0,u.oU)(v,"nav"),T=!1,P=(0,r.useContext)(c.A),N=(0,r.useContext)(d);return P?(a=P.bsPrefix,T=null==w||w):N&&(f=N.cardHeaderBsPrefix),r.createElement(E,(0,o.A)({as:m,ref:t,activeKey:A,className:s()(S,(n={},n[k]=!T,n[a+"-nav"]=T,n[a+"-nav-scroll"]=T&&x,n[f+"-"+g]=!!f,n[k+"-"+g]=!!g,n[k+"-fill"]=y,n[k+"-justified"]=b,n))},C),O)}));j.displayName="Nav",j.defaultProps={justify:!1,fill:!1},j.Item=O,j.Link=I;const M=j;var D=n(235),B=["id","title","children","bsPrefix","className","rootCloseEvent","menuRole","disabled","active","renderMenuOnMount"],H=r.forwardRef((function(e,t){var n=e.id,a=e.title,l=e.children,c=e.bsPrefix,f=e.className,d=e.rootCloseEvent,h=e.menuRole,p=e.disabled,m=e.active,v=e.renderMenuOnMount,g=(0,i.A)(e,B),y=(0,u.oU)(void 0,"nav-item");return r.createElement(D.A,(0,o.A)({ref:t},g,{className:s()(f,y)}),r.createElement(D.A.Toggle,{id:n,eventKey:null,active:m,disabled:p,childBsPrefix:c,as:I},a),r.createElement(D.A.Menu,{role:h,renderOnMount:v,rootCloseEvent:d},l))}));H.displayName="NavDropdown",H.Item=D.A.Item,H.ItemText=D.A.ItemText,H.Divider=D.A.Divider,H.Header=D.A.Header;const F=H;var U=n(2907),z=n.n(U);function G(e){return r.createElement(M,Object.assign({},e))}function W(e){return r.createElement(O,Object.assign({},e))}function q(e){return r.createElement(I,Object.assign({},e))}function V(e){return r.createElement(F,Object.assign({},e))}G.propTypes={cardHeaderBsPrefix:z().string,defaultActiveKey:z().oneOfType([z().string,z().number]),activeKey:z().oneOfType([z().string,z().number]),as:z().elementType,fill:z().bool,justify:z().bool,navbar:z().bool,onKeyDown:z().func,onSelect:z().func,role:z().string,variant:z().oneOf(["tabs","pills"]),bsPrefix:z().string},W.propTypes={role:z().string,as:z().elementType,bsPrefix:z().string},q.propTypes={onSelect:z().string,active:z().bool,as:z().elementType,disabled:z().bool,eventKey:z().oneOfType([z().string,z().number]),href:z().string,role:z().string,bsPrefix:z().string},V.propTypes={id:z().string.isRequired,title:z().node.isRequired,active:z().bool,disabled:z().bool,menuRole:z().string,menuVariant:z().oneOf(["dark"]),onClick:z().func,renderMenuOnMount:z().bool,rootCloseEvent:z().string,bsPrefix:z().string},G.defaultProps=Object.assign({},M.defaultProps),V.defaultProps=Object.assign({},F.defaultProps),W.defaultProps=Object.assign({},O.defaultProps),q.defaultProps=Object.assign({},I.defaultProps),G.Item=W,G.Link=q,V.Item=function(e){return r.createElement(F.Item,Object.assign({},e))},V.Divider=function(e){return r.createElement(F.Divider,Object.assign({},e))};const $=G},3574:(e,t,n)=>{function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{A:()=>o})},3783:(e,t,n)=>{var r=n(4384);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},3816:(e,t,n)=>{n.d(t,{F3:()=>d,GT:()=>f,J9:()=>s,JF:()=>l,MT:()=>u});var r=n(1635),o=n(1453),i=n(7794),a=n(1495);function s(e,t,n){return void 0===n&&(n={}),t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}var l={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function u(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function c(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function f(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,a=Intl.DisplayNames,s=(0,i.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{cache:c(e.dateTime),strategy:i.W.variadic}),l=(0,i.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{cache:c(e.number),strategy:i.W.variadic}),u=(0,i.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{cache:c(e.pluralRules),strategy:i.W.variadic});return{getDateTimeFormat:s,getNumberFormat:l,getMessageFormat:(0,i.B)((function(e,t,n,i){return new o.S(e,t,n,(0,r.Cl)({formatters:{getNumberFormat:l,getDateTimeFormat:s,getPluralRules:u}},i||{}))}),{cache:c(e.message),strategy:i.W.variadic}),getRelativeTimeFormat:(0,i.B)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,(0,r.fX)([void 0],e,!1)))}),{cache:c(e.relativeTime),strategy:i.W.variadic}),getPluralRules:u,getListFormat:(0,i.B)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,(0,r.fX)([void 0],e,!1)))}),{cache:c(e.list),strategy:i.W.variadic}),getDisplayNames:(0,i.B)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(a.bind.apply(a,(0,r.fX)([void 0],e,!1)))}),{cache:c(e.displayNames),strategy:i.W.variadic})}}function d(e,t,n,r){var o,i=e&&e[t];if(i&&(o=i[n]),o)return o;r(new a.OC("No ".concat(t," format named: ").concat(n)))}},3875:(e,t,n)=>{n.d(t,{A:()=>kn});var r=n(7517),o=n(6349),i=n(816),a=n(2166),s=n(5029),l=n(8613),u=n(7141),c=n.n(u),f=n(7284);function d({className:e}){return(0,r.jsx)("div",{className:c()("d-flex flex-nowrap align-items-center flex-shrink-0 gap-3",e),children:(0,r.jsx)(f.A,{id:"org.openedx.frontend.slot.header.anonymousMenu.v1"})})}var h=n(9511),p=n(1550),m=n(8313),v=n(2907),g=n.n(v),y=n(235),b=n(2213),w=n(1534),E=["title","children","bsPrefix","rootCloseEvent","variant","size","menuAlign","menuRole","renderMenuOnMount","disabled","href","id"],x={id:g().any,href:g().string,onClick:g().func,title:g().node.isRequired,disabled:g().bool,menuAlign:w.v,menuRole:g().string,renderMenuOnMount:g().bool,rootCloseEvent:g().string,bsPrefix:g().string,variant:g().string,size:g().string},S=m.forwardRef((function(e,t){var n=e.title,r=e.children,o=e.bsPrefix,i=e.rootCloseEvent,a=e.variant,s=e.size,l=e.menuAlign,u=e.menuRole,c=e.renderMenuOnMount,f=e.disabled,d=e.href,v=e.id,g=(0,p.A)(e,E);return m.createElement(y.A,(0,h.A)({ref:t},g),m.createElement(b.A,{id:v,href:d,size:s,variant:a,disabled:f,childBsPrefix:o},n),m.createElement(w.A,{align:l,role:u,renderOnMount:c,rootCloseEvent:i},r))}));S.displayName="DropdownButton",S.propTypes=x;const O=S,A=e=>m.createElement("svg",Object.assign({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),m.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4Zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4Z",fill:"currentColor"}));function C({className:e}){const t=(0,s.QR)(),n=(null==t?void 0:t.name)||(null==t?void 0:t.username),o=(0,r.jsxs)("div",{className:"d-flex mr-2 align-items-center gap-2",children:[(0,r.jsx)(A,{}),n]});return(0,r.jsx)(O,{size:"sm",id:"user-nav-dropdown",title:o,variant:"outline-primary",className:e,children:(0,r.jsx)(f.A,{id:"org.openedx.frontend.slot.header.authenticatedMenu.v1"})})}var k=n(491),T=n.n(k),P=/[A-Z]/g,N=/^ms-/,_={};function R(e){return"-"+e.toLowerCase()}const I=function(e){if(_.hasOwnProperty(e))return _[e];var t=e.replace(P,R);return _[e]=N.test(t)?"-"+t:t};const L=g().oneOfType([g().string,g().number]),j={all:g().bool,grid:g().bool,aural:g().bool,braille:g().bool,handheld:g().bool,print:g().bool,projection:g().bool,screen:g().bool,tty:g().bool,tv:g().bool,embossed:g().bool},M={orientation:g().oneOf(["portrait","landscape"]),scan:g().oneOf(["progressive","interlace"]),aspectRatio:g().string,deviceAspectRatio:g().string,height:L,deviceHeight:L,width:L,deviceWidth:L,color:g().bool,colorIndex:g().bool,monochrome:g().bool,resolution:L,type:Object.keys(j)},{type:D}=M,B=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(M,["type"]),H=Object.assign({minAspectRatio:g().string,maxAspectRatio:g().string,minDeviceAspectRatio:g().string,maxDeviceAspectRatio:g().string,minHeight:L,maxHeight:L,minDeviceHeight:L,maxDeviceHeight:L,minWidth:L,maxWidth:L,minDeviceWidth:L,maxDeviceWidth:L,minColor:g().number,maxColor:g().number,minColorIndex:g().number,maxColorIndex:g().number,minMonochrome:g().number,maxMonochrome:g().number,minResolution:L,maxResolution:L},B);var F={all:Object.assign(Object.assign({},j),H),types:j,matchers:M,features:H};const U=(0,m.createContext)(void 0),z=e=>{if(e)return Object.keys(e).reduce(((t,n)=>(t[I(n)]=e[n],t)),{})},G=()=>{const e=(0,m.useRef)(!1);return(0,m.useEffect)((()=>{e.current=!0}),[]),e.current},W=e=>{const t=()=>(e=>e.query||(e=>{const t=[];return Object.keys(F.all).forEach((n=>{const r=e[n];null!=r&&t.push(((e,t)=>{const n=I(e);return"number"==typeof t&&(t=`${t}px`),!0===t?n:!1===t?`not ${n}`:`(${n}: ${t})`})(n,r))})),t.join(" and ")})(e))(e),[n,r]=(0,m.useState)(t);return(0,m.useEffect)((()=>{const e=t();n!==e&&r(e)}),[e]),n},q=(e,t,n)=>{const r=(e=>{const t=(0,m.useContext)(U),n=()=>z(e)||z(t),[r,o]=(0,m.useState)(n);return(0,m.useEffect)((()=>{const e=n();(function(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(let r=0;r<o;r++){const o=n[r];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0})(r,e)||o(e)}),[e,t]),r})(t),o=W(e);if(!o)throw new Error("Invalid or missing MediaQuery!");const i=((e,t)=>{const n=()=>T()(e,t||{},!!t),[r,o]=(0,m.useState)(n),i=G();return(0,m.useEffect)((()=>{if(i){const e=n();return o(e),()=>{e&&e.dispose()}}}),[e,t]),r})(o,r),a=(e=>{const[t,n]=(0,m.useState)(e.matches);return(0,m.useEffect)((()=>{const t=e=>{n(e.matches)};return e.addListener(t),n(e.matches),()=>{e.removeListener(t)}}),[e]),t})(i),s=G();return(0,m.useEffect)((()=>{s&&n&&n(a)}),[a]),(0,m.useEffect)((()=>()=>{i&&i.dispose()}),[]),a};var V=n(3483),$=n(4152);const K=e=>m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},e),m.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z",fill:"currentColor"}));var X=n(1635),Q="right-scroll-bar-position",Y="width-before-scroll-bar";function Z(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var J="undefined"!=typeof window?m.useLayoutEffect:m.useEffect,ee=new WeakMap;function te(e,t){var n,r,o,i=(n=t||null,r=function(t){return e.forEach((function(e){return Z(e,t)}))},(o=(0,m.useState)((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade);return J((function(){var t=ee.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach((function(e){r.has(e)||Z(e,null)})),r.forEach((function(e){n.has(e)||Z(e,o)}))}ee.set(i,e)}),[e]),i}function ne(e){return e}function re(e,t){void 0===t&&(t=ne);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function oe(e,t){return void 0===t&&(t=ne),re(e,t)}function ie(e){void 0===e&&(e={});var t=re(null);return t.options=(0,X.Cl)({async:!0,ssr:!1},e),t}var ae=ie(),se=function(){},le=m.forwardRef((function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:se,onWheelCapture:se,onTouchMoveCapture:se}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,h=e.noRelative,p=e.noIsolation,v=e.inert,g=e.allowPinchZoom,y=e.as,b=void 0===y?"div":y,w=e.gapMode,E=(0,X.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=d,S=te([n,t]),O=(0,X.Cl)((0,X.Cl)({},E),o);return m.createElement(m.Fragment,null,c&&m.createElement(x,{sideCar:ae,removeScrollBar:u,shards:f,noRelative:h,noIsolation:p,inert:v,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:w}),a?m.cloneElement(m.Children.only(s),(0,X.Cl)((0,X.Cl)({},O),{ref:S})):m.createElement(b,(0,X.Cl)({},O,{className:l,ref:S}),s))}));le.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},le.classNames={fullWidth:Y,zeroRight:Q};var ue="data-focus-lock",ce="data-focus-lock-disabled",fe={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},de=oe({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),he=oe(),pe=oe(),me=ie({async:!0,ssr:"undefined"!=typeof document}),ve=(0,m.createContext)(void 0),ge=[],ye=(0,m.forwardRef)((function(e,t){var n,r=(0,m.useState)(),o=r[0],i=r[1],a=(0,m.useRef)(),s=(0,m.useRef)(!1),l=(0,m.useRef)(null),u=(0,m.useState)({})[1],c=e.children,f=e.disabled,d=void 0!==f&&f,p=e.noFocusGuards,v=void 0!==p&&p,g=e.persistentFocus,y=void 0!==g&&g,b=e.crossFrame,w=void 0===b||b,E=e.autoFocus,x=void 0===E||E,S=(e.allowTextSelection,e.group),O=e.className,A=e.whiteList,C=e.hasPositiveIndices,k=e.shards,T=void 0===k?ge:k,P=e.as,N=void 0===P?"div":P,_=e.lockProps,R=void 0===_?{}:_,I=e.sideCar,L=e.returnFocus,j=void 0!==L&&L,M=e.focusOptions,D=e.onActivation,B=e.onDeactivation,H=(0,m.useState)({})[0],F=(0,m.useCallback)((function(e){var t=e.captureFocusRestore;if(!l.current){var n,r=null==(n=document)?void 0:n.activeElement;l.current=r,r!==document.body&&(l.current=t(r))}a.current&&D&&D(a.current),s.current=!0,u()}),[D]),U=(0,m.useCallback)((function(){s.current=!1,B&&B(a.current),u()}),[B]),z=(0,m.useCallback)((function(e){var t=l.current;if(t){var n=("function"==typeof t?t():t)||document.body,r="function"==typeof j?j(n):j;if(r){var o="object"==typeof r?r:void 0;l.current=null,e?Promise.resolve().then((function(){return n.focus(o)})):n.focus(o)}}}),[j]),G=(0,m.useCallback)((function(e){s.current&&de.useMedium(e)}),[]),W=he.useMedium,q=(0,m.useCallback)((function(e){a.current!==e&&(a.current=e,i(e))}),[]),V=(0,h.A)(((n={})[ce]=d&&"disabled",n[ue]=S,n),R),$=!0!==v,K=$&&"tail"!==v,X=te([t,q]),Q=(0,m.useMemo)((function(){return{observed:a,shards:T,enabled:!d,active:s.current}}),[d,s.current,T,o]);return m.createElement(m.Fragment,null,$&&[m.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:d?-1:0,style:fe}),C?m.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:d?-1:1,style:fe}):null],!d&&m.createElement(I,{id:H,sideCar:me,observed:o,disabled:d,persistentFocus:y,crossFrame:w,autoFocus:x,whiteList:A,shards:T,onActivation:F,onDeactivation:U,returnFocus:z,focusOptions:M,noFocusGuards:v}),m.createElement(N,(0,h.A)({ref:X},V,{className:O,onBlur:W,onFocus:G}),m.createElement(ve.Provider,{value:Q},c)),K&&m.createElement("div",{"data-focus-guard":!0,tabIndex:d?-1:0,style:fe}))}));ye.propTypes={};const be=ye;var we=ie(),Ee="data-focus-on-hidden",xe={preventScroll:!0},Se=m.forwardRef((function(e,t){var n=m.useState(!1),r=n[0],o=n[1],i=e.children,a=e.autoFocus,s=e.shards,l=e.crossFrame,u=e.enabled,c=void 0===u||u,f=e.scrollLock,d=void 0===f||f,h=e.focusLock,p=void 0===h||h,v=e.returnFocus,g=void 0===v||v,y=e.inert,b=e.allowPinchZoom,w=e.sideCar,E=e.className,x=e.shouldIgnore,S=e.preventScrollOnFocus,O=e.style,A=e.as,C=e.gapMode,k=(0,X.Tt)(e,["children","autoFocus","shards","crossFrame","enabled","scrollLock","focusLock","returnFocus","inert","allowPinchZoom","sideCar","className","shouldIgnore","preventScrollOnFocus","style","as","gapMode"]),T=w,P=r.onActivation,N=r.onDeactivation,_=(0,X.Tt)(r,["onActivation","onDeactivation"]),R=(0,X.Cl)((0,X.Cl)({},_),{as:A,style:O,sideCar:w,shards:s,allowPinchZoom:b,gapMode:C,inert:y,enabled:c&&d});return m.createElement(m.Fragment,null,m.createElement(be,{ref:t,sideCar:w,disabled:!(r&&c&&p),returnFocus:g,autoFocus:a,shards:s,crossFrame:l,onActivation:P,onDeactivation:N,className:E,whiteList:x,lockProps:R,focusOptions:S?xe:void 0,as:le},i),c&&m.createElement(T,(0,X.Cl)({},k,{sideCar:we,setLockProps:o,shards:s})))})),Oe=function(e){var t=e.sideCar,n=(0,X.Tt)(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return m.createElement(r,(0,X.Cl)({},n))};function Ae(e,t){return e.useMedium(t),Oe}Oe.isSideCarExport=!0;var Ce=n(3574);function ke(e){return ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ke(e)}var Te=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},Pe=function(e){return Array.isArray(e)?e:[e]},Ne=function(e){return Array.isArray(e)?e[0]:e},_e=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},Re=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Ie=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=function(e,t){return!e||Re(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&!function(e){return e.hasAttribute("inert")}(e)&&t(_e(e))}(t,Ie.bind(void 0,e));return e.set(t,r),r},Le=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=function(e,t){return!(e&&!Re(e))||!!Be(e)&&t(_e(e))}(t,Le.bind(void 0,e));return e.set(t,r),r},je=function(e){return e.dataset},Me=function(e){return"INPUT"===e.tagName},De=function(e){return Me(e)&&"radio"===e.type},Be=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},He=function(e){var t;return Boolean(e&&(null===(t=je(e))||void 0===t?void 0:t.focusGuard))},Fe=function(e){return!He(e)},Ue=function(e){return Boolean(e)},ze=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),o=n-r,i=e.index-t.index;if(o){if(!n)return 1;if(!r)return-1}return o||i},Ge=function(e,t,n){return Te(e).map((function(e,t){var r=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex}(e);return{node:e,index:t,tabIndex:n&&-1===r?(e.dataset||{}).focusGuard?0:-1:r}})).filter((function(e){return!t||e.tabIndex>=0})).sort(ze)},We=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),qe="".concat(We,", [data-focus-guard]"),Ve=function(e,t){return Te((e.shadowRoot||e).children).reduce((function(e,n){return e.concat(n.matches(t?qe:We)?[n]:[],Ve(n))}),[])},$e=function(e,t){return e.reduce((function(e,n){var r,o=Ve(n,t),i=(r=[]).concat.apply(r,o.map((function(e){return function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?$e([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(i,n.parentNode?Te(n.parentNode.querySelectorAll(We)).filter((function(e){return e===n})):[])}),[])},Ke=function(e,t){return Te(e).filter((function(e){return Ie(t,e)})).filter((function(e){return function(e){return!((Me(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},Xe=function(e,t){return void 0===t&&(t=new Map),Te(e).filter((function(e){return Le(t,e)}))},Qe=function(e,t,n){return Ge(Ke($e(e,n),t),!0,n)},Ye=function(e,t){return Ge(Ke($e(e),t),!1)},Ze=function(e,t){return e.shadowRoot?Ze(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||Te(e.children).some((function(e){var n;if(e instanceof HTMLIFrameElement){var r=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!r&&Ze(r,t)}return Ze(e,t)}))},Je=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?Je(t.shadowRoot):t instanceof HTMLIFrameElement&&function(){try{return t.contentWindow.document}catch(e){return}}()?Je(t.contentWindow.document):t}},et=function(e){return e.parentNode?et(e.parentNode):e},tt=function(e){return Pe(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(ue);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var i=e[r].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(Te(et(t).querySelectorAll("[".concat(ue,'="').concat(n,'"]:not([').concat(ce,'="disabled"])')))):[t]),e}),[])},nt=function(e,t){return void 0===t&&(t=Je(Ne(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&tt(e).some((function(e){return Ze(e,t)||function(e,t){return Boolean(Te(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},rt=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},ot=function(e,t){return De(e)&&e.name?function(e,t){return t.filter(De).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},it=function(e){return e[0]&&e.length>1?ot(e[0],e):e[0]},at=function(e,t){return e.indexOf(ot(t,e))},st="NEW_FOCUS",lt=function(e,t,n){var r,o=e.map((function(e){return e.node})),i=Xe(o.filter((r=n,function(e){var t,n=null===(t=je(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0})));return i&&i.length?it(i):it(Xe(t))},ut=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&ut(e.parentNode.host||e.parentNode,t),t},ct=function(e,t){for(var n=ut(e),r=ut(t),o=0;o<n.length;o+=1){var i=n[o];if(r.indexOf(i)>=0)return i}return!1},ft=function(e,t,n){var r=Pe(e),o=Pe(t),i=r[0],a=!1;return o.filter(Boolean).forEach((function(e){a=ct(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=ct(i,e);t&&(a=!a||Ze(t,a)?t:ct(t,a))}))})),a},dt=function(e,t){return e.reduce((function(e,n){return e.concat(function(e,t){return Ke((n=e.querySelectorAll("[".concat("data-autofocus-inside","]")),Te(n).map((function(e){return $e([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var n}(n,t))}),[])},ht=function(e,t){var n=Je(Pe(e).length>0?document:Ne(e).ownerDocument),r=tt(e).filter(Fe),o=ft(n||e,e,r),i=new Map,a=Ye(r,i),s=a.filter((function(e){var t=e.node;return Fe(t)}));if(s[0]){var l,u,c,f=Ye([o],i).map((function(e){return e.node})),d=(l=f,u=s,c=new Map,u.forEach((function(e){return c.set(e.node,e)})),l.map((function(e){return c.get(e)})).filter(Ue)),h=d.map((function(e){return e.node})),p=d.filter((function(e){return e.tabIndex>=0})).map((function(e){return e.node})),m=function(e,t,n,r,o){var i=e.length,a=e[0],s=e[i-1],l=He(r);if(!(r&&e.indexOf(r)>=0)){var u=void 0!==r?n.indexOf(r):-1,c=o?n.indexOf(o):u,f=o?e.indexOf(o):-1;if(-1===u)return-1!==f?f:st;if(-1===f)return st;var d,h,p=u-c,m=n.indexOf(a),v=n.indexOf(s),g=(d=n,h=new Set,d.forEach((function(e){return h.add(ot(e,d))})),d.filter((function(e){return h.has(e)}))),y=void 0!==r?g.indexOf(r):-1,b=o?g.indexOf(o):y,w=g.filter((function(e){return e.tabIndex>=0})),E=void 0!==r?w.indexOf(r):-1,x=o?w.indexOf(o):E,S=E>=0&&x>=0?x-E:b-y;if(!p&&f>=0)return f;if(0===t.length)return f;var O=at(e,t[0]),A=at(e,t[t.length-1]);return u<=m&&l&&Math.abs(p)>1?A:u>=v&&l&&Math.abs(p)>1?O:p&&Math.abs(S)>1?f:u<=m?A:u>v?O:p?Math.abs(p)>1?f:(i+f+p)%i:void 0}}(h,p,f,n,t);if(m===st){var v=lt(a,p,dt(r,i))||lt(a,h,dt(r,i));return v?{node:v}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===m?m:d[m]}},pt=0,mt=!1,vt=function(e,t,n){void 0===n&&(n={});var r=ht(e,t);if(!mt&&r){if(pt>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),mt=!0,void setTimeout((function(){mt=!1}),1);pt++,rt(r.node,n.focusOptions),pt--}};function gt(e){if(!e)return null;if("undefined"==typeof WeakRef)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}var yt=function(e){var t=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:gt(n),parent:gt(n.parentElement),left:gt(n.previousElementSibling),right:gt(n.nextElementSibling)}),n=n.parentElement;return{element:gt(e),stack:t,ownerDocument:e.ownerDocument}}(e);return function(){return function(e){var t,n,r,o,i;if(e)for(var a=e.stack,s=e.ownerDocument,l=new Map,u=0,c=a;u<c.length;u++){var f=c[u],d=null===(t=f.parent)||void 0===t?void 0:t.call(f);if(d&&s.contains(d)){for(var h=null===(n=f.left)||void 0===n?void 0:n.call(f),p=f.current(),m=d.contains(p)?p:void 0,v=null===(r=f.right)||void 0===r?void 0:r.call(f),g=Qe([d],l),y=null!==(i=null!==(o=null!=m?m:null==h?void 0:h.nextElementSibling)&&void 0!==o?o:v)&&void 0!==i?i:h;y;){for(var b=0,w=g;b<w.length;b++){var E=w[b];if(null==y?void 0:y.contains(E.node))return E.node}y=y.nextElementSibling}if(g.length)return g[0].node}}}(t)}},bt=function(e,t,n){void 0===t&&(t={});var r=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)}(t),o=function(e,t,n){if(!e||!t)return console.error("no element or scope given"),{};var r=Pe(t);if(r.every((function(t){return!Ze(t,e)})))return console.error("Active element is not contained in the scope"),{};var o=n?Qe(r,new Map):Ye(r,new Map),i=o.findIndex((function(t){return t.node===e}));return-1!==i?{prev:o[i-1],next:o[i+1],first:o[0],last:o[o.length-1]}:void 0}(e,r.scope,r.onlyTabbable);if(o){var i=n(o,r.cycle);i&&rt(i.node,r.focusOptions)}},wt=function(e,t,n){var r,o,i,a,s=(o=e,i=null===(r=t.onlyTabbable)||void 0===r||r,{first:(a=i?Qe(Pe(o),new Map):Ye(Pe(o),new Map))[0],last:a[a.length-1]})[n];s&&rt(s.node,t.focusOptions)};function Et(e){setTimeout(e,1)}var xt=function(e){return e&&"current"in e?e.current:e},St=function(){return document&&document.activeElement===document.body},Ot=null,At=null,Ct=function(){return null},kt=null,Tt=!1,Pt=!1,Nt=function(){return!0};function _t(e,t,n,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var Rt=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},It=function(e){return Ye(e,new Map)},Lt=function(){var e,t,n,r,o,i,a,s=!1;if(Ot){var l=Ot,u=l.observed,c=l.persistentFocus,f=l.autoFocus,d=l.shards,h=l.crossFrame,p=l.focusOptions,m=l.noFocusGuards,v=u||kt&&kt.portaledElement;if(St()&&At&&At!==document.body&&(!document.body.contains(At)||!It([(a=At).parentNode]).some((function(e){return e.node===a})))){var g=Ct();g&&g.focus()}var y=document&&document.activeElement;if(v){var b=[v].concat(d.map(xt).filter(Boolean));if(y&&!function(e){return(Ot.whiteList||Nt)(e)}(y)||(c||function(){if(!(h?Boolean(Tt):"meanwhile"===Tt)||!m||!At||Pt)return!1;var e=It(b),t=e.findIndex((function(e){return e.node===At}));return 0===t||t===e.length-1}()||!(St()||function(e){void 0===e&&(e=document);var t=Je(e);return!!t&&Te(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return Ze(e,t)}))}())||!At&&f)&&(v&&!(nt(b)||y&&function(e,t){return t.some((function(t){return Rt(e,t,t)}))}(y,b)||(i=y,kt&&kt.portaledElement===i))&&(document&&!At&&y&&!f?(y.blur&&y.blur(),document.body.focus()):(s=vt(b,At,{focusOptions:p}),kt={})),(At=document&&document.activeElement)!==document.body&&(Ct=yt(At)),Tt=!1),document&&y!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var w=document&&document.activeElement,E=(t=tt(e=b).filter(Fe),n=ft(e,e,t),r=Ge($e([n],!0),!0,!0),o=$e(t,!1),r.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:He(t)}}))),x=E.map((function(e){return e.node})).indexOf(w);x>-1&&(E.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),_t(x,E.length,1,E),_t(x,-1,-1,E))}}}return s},jt=function(e){Lt()&&e&&(e.stopPropagation(),e.preventDefault())},Mt=function(){return Et(Lt)},Dt=function(){Pt=!0},Bt=function(){Pt=!1,Tt="just",Et((function(){Tt="meanwhile"}))},Ht={moveFocusInside:vt,focusInside:nt,focusNextElement:function(e,t){void 0===t&&(t={}),bt(e,t,(function(e,t){var n=e.next,r=e.first;return n||t&&r}))},focusPrevElement:function(e,t){void 0===t&&(t={}),bt(e,t,(function(e,t){var n=e.prev,r=e.last;return n||t&&r}))},focusFirstElement:function(e,t){void 0===t&&(t={}),wt(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),wt(e,t,"last")},captureFocusRestore:yt};de.assignSyncMedium((function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(kt={observerNode:n,portaledElement:t})})),he.assignMedium(Mt),pe.assignMedium((function(e){return e(Ht)}));const Ft=(Ut=function(e){return e.filter((function(e){return!e.disabled}))},zt=function(e){var t=e.slice(-1)[0];t&&!Ot&&(document.addEventListener("focusin",jt),document.addEventListener("focusout",Mt),window.addEventListener("focus",Dt),window.addEventListener("blur",Bt));var n=Ot,r=n&&t&&t.id===n.id;Ot=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(At=null,r&&n.observed===t.observed||t.onActivation(Ht),Lt(),Et(Lt)):(document.removeEventListener("focusin",jt),document.removeEventListener("focusout",Mt),window.removeEventListener("focus",Dt),window.removeEventListener("blur",Bt),At=null)},function(e){var t,n=[];function r(){t=Ut(n.map((function(e){return e.props}))),zt(t)}var o,i,a,s=function(o){function i(){return o.apply(this,arguments)||this}(0,Ce.A)(i,o),i.peek=function(){return t};var a=i.prototype;return a.componentDidMount=function(){n.push(this),r()},a.componentDidUpdate=function(){r()},a.componentWillUnmount=function(){var e=n.indexOf(this);n.splice(e,1),r()},a.render=function(){return m.createElement(e,this.props)},i}(m.PureComponent);return o=s,i="displayName",a="SideEffect("+function(e){return e.displayName||e.name||"Component"}(e)+")",(i=function(e){var t=function(e){if("object"!=ke(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ke(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ke(t)?t:t+""}(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,s})((function(){return null}));var Ut,zt;Ae(me,Ft);var Gt=function(){var e=0,t=null;return{add:function(r){var o,i;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n.nc;return t&&e.setAttribute("nonce",t),e}())&&(i=r,(o=t).styleSheet?o.styleSheet.cssText=i:o.appendChild(document.createTextNode(i)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Wt=function(){var e,t=(e=Gt(),function(t,n){m.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},qt={left:0,top:0,right:0,gap:0},Vt=function(e){return parseInt(e||"",10)||0},$t=Wt(),Kt="data-scroll-locked",Xt=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(Kt,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Q," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Y," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Q," .").concat(Q," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Y," .").concat(Y," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Kt,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Qt=function(){var e=parseInt(document.body.getAttribute(Kt)||"0",10);return isFinite(e)?e:0},Yt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;m.useEffect((function(){return document.body.setAttribute(Kt,(Qt()+1).toString()),function(){var e=Qt()-1;e<=0?document.body.removeAttribute(Kt):document.body.setAttribute(Kt,e.toString())}}),[]);var i=m.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return qt;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Vt(n),Vt(r),Vt(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}}(o)}),[o]);return m.createElement($t,{styles:Xt(i,!t,o,n?"":"!important")})},Zt=!1;if("undefined"!=typeof window)try{var Jt=Object.defineProperty({},"passive",{get:function(){return Zt=!0,!0}});window.addEventListener("test",Jt,Jt),window.removeEventListener("test",Jt,Jt)}catch(e){Zt=!1}var en=!!Zt&&{passive:!1},tn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},nn=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),rn(e,r)){var o=on(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},rn=function(e,t){return"v"===e?function(e){return tn(e,"overflowY")}(t):function(e){return tn(e,"overflowX")}(t)},on=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},an=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sn=function(e){return[e.deltaX,e.deltaY]},ln=function(e){return e&&"current"in e?e.current:e},un=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},cn=0,fn=[];function dn(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}Ae(ae,(function(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(cn++)[0],i=m.useState(Wt)[0],a=m.useRef(e);m.useEffect((function(){a.current=e}),[e]),m.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,X.fX)([e.lockRef.current],(e.shards||[]).map(ln),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=m.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=an(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],u="deltaY"in e?e.deltaY:s[1]-i[1],c=e.target,f=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===f&&"range"===c.type)return!1;var d=nn(f,c);if(!d)return!0;if(d?o=f:(o="v"===f?"h":"v",d=nn(f,c)),!d)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var h=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,s=t.contains(a),l=!1,u=i>0,c=0,f=0;do{if(!a)break;var d=on(e,a),h=d[0],p=d[1]-d[2]-o*h;(h||p)&&rn(e,a)&&(c+=p,f+=h);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(u&&(Math.abs(c)<1||!1)||!u&&(Math.abs(f)<1||!1))&&(l=!0),l}(h,t,e,"h"===h?l:u)}),[]),l=m.useCallback((function(e){var n=e;if(fn.length&&fn[fn.length-1]===i){var r="deltaY"in n?sn(n):an(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(a.current.shards||[]).map(ln).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=m.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:dn(r)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),c=m.useCallback((function(e){n.current=an(e),r.current=void 0}),[]),f=m.useCallback((function(t){u(t.type,sn(t),t.target,s(t,e.lockRef.current))}),[]),d=m.useCallback((function(t){u(t.type,an(t),t.target,s(t,e.lockRef.current))}),[]);m.useEffect((function(){return fn.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,en),document.addEventListener("touchmove",l,en),document.addEventListener("touchstart",c,en),function(){fn=fn.filter((function(e){return e!==i})),document.removeEventListener("wheel",l,en),document.removeEventListener("touchmove",l,en),document.removeEventListener("touchstart",c,en)}}),[]);var h=e.removeScrollBar,p=e.inert;return m.createElement(m.Fragment,null,p?m.createElement(i,{styles:un(o)}):null,h?m.createElement(Yt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}));var hn=new WeakMap,pn=new WeakMap,mn={},vn=0,gn=function(e){return e&&(e.host||gn(e.parentNode))},yn=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=gn(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);mn[n]||(mn[n]=new WeakMap);var i=mn[n],a=[],s=new Set,l=new Set(o),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(hn.get(e)||0)+1,u=(i.get(e)||0)+1;hn.set(e,l),i.set(e,u),a.push(e),1===l&&o&&pn.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return c(t),s.clear(),vn++,function(){a.forEach((function(e){var t=hn.get(e)-1,o=i.get(e)-1;hn.set(e,t),i.set(e,o),t||(pn.has(e)||e.removeAttribute(r),pn.delete(e)),o||e.removeAttribute(n)})),--vn||(hn=new WeakMap,hn=new WeakMap,pn=new WeakMap,mn={})}}(r,o,n,"aria-hidden")):function(){return null}},bn=Wt(),wn="\n ["+Ee+"] {\n pointer-events: none !important;\n }\n",En=function(){return m.createElement(bn,{styles:wn})},xn=function(e){return"current"in e?e.current:e};const Sn=Ae(we,(function(e){var t=e.setLockProps,n=e.onEscapeKey,r=e.onClickOutside,o=e.shards,i=e.onActivation,a=e.onDeactivation,s=e.noIsolation,l=(0,m.useState)(void 0),u=l[0],c=l[1],f=(0,m.useRef)(null),d=(0,m.useRef)(0);return m.useEffect((function(){var e=function(e){e.defaultPrevented||"Escape"!==e.code&&"Escape"!==e.key&&27!==e.keyCode||!n||n(e)},t=function(e){e.defaultPrevented||e.target===f.current||e instanceof MouseEvent&&0!==e.button||o&&o.map(xn).some((function(t){return t&&t.contains(e.target)||t===e.target}))||r&&r(e)},i=function(e){t(e),d.current=e.touches.length},a=function(e){d.current=e.touches.length};if(u)return u.ownerDocument.addEventListener("keydown",e),u.ownerDocument.addEventListener("mousedown",t),u.ownerDocument.addEventListener("touchstart",i),u.ownerDocument.addEventListener("touchend",a),function(){u.ownerDocument.removeEventListener("keydown",e),u.ownerDocument.removeEventListener("mousedown",t),u.ownerDocument.removeEventListener("touchstart",i),u.ownerDocument.removeEventListener("touchend",a)}}),[u,r,n]),(0,m.useEffect)((function(){if(u)return i&&i(u),function(){a&&a()}}),[!!u]),(0,m.useEffect)((function(){var e=function(){return null},n=!1;return t({onMouseDown:function(e){f.current=e.target},onTouchStart:function(e){f.current=e.target},onActivation:function(t){s||(e=yn((0,X.aN)([t],(o||[]).map(xn)),t.ownerDocument.body,Ee)),c((function(){return t}))},onDeactivation:function(){e(),n||c(null)}}),function(){n=!0,t(!1)}}),[]),m.createElement(En,null)}));var On=function(e){return m.createElement(Sn,(0,X.Cl)({},e))},An=m.forwardRef((function(e,t){return m.createElement(Se,(0,X.Cl)({},e,{ref:t,sideCar:On}))})),Cn=n(7679);const kn={appId:"org.openedx.frontend.app.header",slots:[{slotId:"org.openedx.frontend.slot.header.desktop.v1",id:"org.openedx.frontend.widget.header.desktopLayout.v1",op:o.z.APPEND,component:function(){const e=q({maxWidth:768});return(0,r.jsxs)("div",{className:c()("align-items-center justify-content-between px-3",e?"d-none":"d-flex"),children:[(0,r.jsx)("div",{className:"d-flex flex-grow-1 align-items-center",children:(0,r.jsx)(f.A,{id:"org.openedx.frontend.slot.header.desktopLeft.v1"})}),(0,r.jsx)("div",{className:"d-flex align-items-center",children:(0,r.jsx)(f.A,{id:"org.openedx.frontend.slot.header.desktopRight.v1"})})]})}},{slotId:"org.openedx.frontend.slot.header.mobile.v1",id:"org.openedx.frontend.widget.header.mobileLayout.v1",op:o.z.APPEND,component:function(){const e=q({maxWidth:768}),[t,n]=(0,m.useState)(!1),o=(0,m.useCallback)((()=>{n((e=>!e))}),[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:c()("align-items-center justify-content-between pr-3 booyah",e?"d-flex":"d-none"),children:[(0,r.jsxs)("div",{className:"d-flex flex-grow-1 flex-basis-0 justify-content-start align-items-center",children:[(0,r.jsx)($.Ay,{onClick:o,variant:"outline",children:(0,r.jsx)(K,{})}),(0,r.jsx)(f.A,{id:"org.openedx.frontend.slot.header.mobileLeft.v1"})]}),(0,r.jsx)("div",{className:"d-flex flex-grow-1 flex-basis-0 justify-content-center align-items-center",children:(0,r.jsx)(f.A,{id:"org.openedx.frontend.slot.header.mobileCenter.v1"})}),(0,r.jsx)("div",{className:"d-flex flex-grow-1 flex-basis-0 justify-content-end align-items-center",children:(0,r.jsx)(f.A,{id:"org.openedx.frontend.slot.header.mobileRight.v1"})})]}),t&&(0,r.jsx)(An,{onClickOutside:()=>n(!1),onEscapeKey:()=>n(!1),children:(0,r.jsx)(V.Ay,{className:"flex-column",children:(0,r.jsx)(f.A,{id:"org.openedx.frontend.slot.header.mobileMenuLinks.v1"})})})]})}},{slotId:"org.openedx.frontend.slot.header.desktopLeft.v1",id:"org.openedx.frontend.widget.header.desktopLogo.v1",op:o.z.APPEND,element:(0,r.jsx)(i.A,{})},{slotId:"org.openedx.frontend.slot.header.desktopLeft.v1",id:"org.openedx.frontend.widget.header.desktopPrimaryLinks.v1",op:o.z.APPEND,component:function(){return(0,r.jsx)(V.Ay,{className:"flex-nowrap align-items-center",children:(0,r.jsx)(f.A,{id:"org.openedx.frontend.slot.header.primaryLinks.v1"})})}},{slotId:"org.openedx.frontend.slot.header.desktopRight.v1",id:"org.openedx.frontend.widget.header.desktopSecondaryLinks.v1",op:o.z.APPEND,component:function(){return(0,r.jsx)(V.Ay,{className:"flex-nowrap",children:(0,r.jsx)(f.A,{id:"org.openedx.frontend.slot.header.secondaryLinks.v1"})})}},{slotId:"org.openedx.frontend.slot.header.desktopRight.v1",id:"org.openedx.frontend.widget.header.desktopAuthenticatedMenu.v1",op:o.z.APPEND,element:(0,r.jsx)(C,{}),condition:{authenticated:!0}},{slotId:"org.openedx.frontend.slot.header.authenticatedMenu.v1",id:"org.openedx.frontend.widget.header.desktopAuthenticatedMenuProfile.v1",op:o.z.APPEND,element:(0,r.jsx)((function({label:e,role:t,variant:n="hyperlink"}){const o=(0,s.QR)();let i=(0,l.c)(t);if(!i)return null;i.endsWith("/")&&(i=i.slice(0,-1));const u=`${i}/u/${null==o?void 0:o.username}`;return(0,r.jsx)(a.A,{label:e,url:u,variant:n})}),{label:Cn.A["header.user.menu.profile"],role:"profile",variant:"dropdownItem"})},{slotId:"org.openedx.frontend.slot.header.authenticatedMenu.v1",id:"org.openedx.frontend.widget.header.desktopAuthenticatedMenuAccount.v1",op:o.z.APPEND,element:(0,r.jsx)(a.A,{label:Cn.A["header.user.menu.account"],role:"account",variant:"dropdownItem"})},{slotId:"org.openedx.frontend.slot.header.authenticatedMenu.v1",id:"org.openedx.frontend.widget.header.desktopAuthenticatedMenuLogout.v1",op:o.z.APPEND,element:(0,r.jsx)(a.A,{label:Cn.A["header.user.menu.logout"],role:"logout",variant:"dropdownItem"})},{slotId:"org.openedx.frontend.slot.header.desktopRight.v1",id:"org.openedx.frontend.widget.header.desktopAnonymousMenu.v1",op:o.z.APPEND,element:(0,r.jsx)(d,{}),condition:{authenticated:!1}},{slotId:"org.openedx.frontend.slot.header.mobileCenter.v1",id:"org.openedx.frontend.widget.header.mobileLogo.v1",op:o.z.APPEND,element:(0,r.jsx)(i.A,{})},{slotId:"org.openedx.frontend.slot.header.mobileMenu.v1",id:"org.openedx.frontend.widget.header.mobileMenuLinks.v1",op:o.z.APPEND,component:function(){return(0,r.jsx)(V.Ay,{className:"flex-column",children:(0,r.jsx)(f.A,{id:"org.openedx.frontend.slot.header.mobileMenuLinks.v1"})})}},{slotId:"org.openedx.frontend.slot.header.mobileRight.v1",id:"org.openedx.frontend.widget.header.mobileAuthenticatedMenu.v1",op:o.z.APPEND,element:(0,r.jsx)(C,{}),condition:{authenticated:!0}},{slotId:"org.openedx.frontend.slot.header.mobileRight.v1",id:"org.openedx.frontend.widget.header.mobileAnonymousMenu.v1",op:o.z.APPEND,element:(0,r.jsx)(d,{}),condition:{authenticated:!1}}]}},3879:(e,t,n)=>{n.d(t,{A:()=>N});var r=n(7517),o=n(8313),i=n(2907),a=n.n(i),s=n(574),l=n(3440),u=n(9511),c=n(1550),f=n(7141),d=n.n(f),h=n(2402),p=["bsPrefix","className","noGutters","as"],m=["xl","lg","md","sm","xs"],v=o.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,i=e.noGutters,a=e.as,s=void 0===a?"div":a,l=(0,c.A)(e,p),f=(0,h.oU)(n,"row"),v=f+"-cols",g=[];return m.forEach((function(e){var t,n=l[e];delete l[e];var r="xs"!==e?"-"+e:"";null!=(t=null!=n&&"object"==typeof n?n.cols:n)&&g.push(""+v+r+"-"+t)})),o.createElement(s,(0,u.A)({ref:t},l,{className:d().apply(void 0,[r,f,i&&"no-gutters"].concat(g))}))}));v.displayName="Row",v.defaultProps={noGutters:!1};const g=v;var y=["bsPrefix","className","as"],b=["xl","lg","md","sm","xs"],w=o.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,i=e.as,a=void 0===i?"div":i,s=(0,c.A)(e,y),l=(0,h.oU)(n,"col"),f=[],p=[];return b.forEach((function(e){var t,n,r,o=s[e];if(delete s[e],"object"==typeof o&&null!=o){var i=o.span;t=void 0===i||i,n=o.offset,r=o.order}else t=o;var a="xs"!==e?"-"+e:"";t&&f.push(!0===t?""+l+a:""+l+a+"-"+t),null!=r&&p.push("order"+a+"-"+r),null!=n&&p.push("offset"+a+"-"+n)})),f.length||f.push(l),o.createElement(a,(0,u.A)({},s,{ref:t,className:d().apply(void 0,[r].concat(f,p))}))}));w.displayName="Col";const E=w;var x=n(4152),S=n(5029),O=n(1897),A=n(3091),C=n(6024);function k({message:e=null}){const[t,i]=(0,o.useState)((0,O.JK)());return(0,S.jD)(O.gT,(()=>{i((0,O.JK)())})),(0,r.jsx)(A.A,{locale:t,messages:(0,O.VL)(),children:(0,r.jsx)(l.A,{fluid:!0,className:"py-5 justify-content-center align-items-start text-center","data-testid":"error-page",children:(0,r.jsx)(g,{children:(0,r.jsxs)(E,{children:[(0,r.jsx)("p",{className:"text-muted",children:(0,r.jsx)(C.A,{id:"unexpected.error.message.text",defaultMessage:"An unexpected error occurred. Please click the button below to refresh the page."})}),e&&(0,r.jsx)("div",{role:"alert",className:"my-4",children:(0,r.jsx)("p",{children:e})}),(0,r.jsx)(x.Ay,{onClick:()=>{n.g.location.reload()},children:(0,r.jsx)(C.A,{id:"unexpected.error.button.text",defaultMessage:"Try again"})})]})})})})}k.propTypes={message:a().string};const T=k;class P extends o.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){(0,s.vV)(e,{stack:t.componentStack})}render(){return this.state.hasError?this.props.fallbackComponent||(0,r.jsx)(T,{}):this.props.children}}P.propTypes={children:a().node,fallbackComponent:a().node},P.defaultProps={children:null,fallbackComponent:void 0};const N=P},3919:(e,t,n)=>{n.d(t,{g:()=>l,x:()=>u});var r=n(8313),o=n(5106),i=n(8906),a=n(3988),s=n(1282);function l(e){const{children:t}=u(),n=(0,o.zy)(),[a,l]=(0,r.useState)([]);return(0,r.useEffect)((()=>{const n=(0,s.CR)("defaultContent",e,t);l((0,i.t)(e,n))}),[e,t,n]),a}function u(){return(0,r.useContext)(a.A)}},3947:(e,t,n)=>{n.d(t,{Ay:()=>o});var r=n(9511);function o(e){var t,n,o,i,a,s=e.enabled,l=e.enableEvents,u=e.placement,c=e.flip,f=e.offset,d=e.fixed,h=e.containerPadding,p=e.arrowElement,m=e.popperConfig,v=void 0===m?{}:m,g=function(e){var t={};return Array.isArray(e)?(null==e||e.forEach((function(e){t[e.name]=e})),t):e||t}(v.modifiers);return(0,r.A)({},v,{placement:u,enabled:s,strategy:d?"fixed":v.strategy,modifiers:(a=(0,r.A)({},g,{eventListeners:{enabled:l},preventOverflow:(0,r.A)({},g.preventOverflow,{options:h?(0,r.A)({padding:h},null==(t=g.preventOverflow)?void 0:t.options):null==(n=g.preventOverflow)?void 0:n.options}),offset:{options:(0,r.A)({offset:f},null==(o=g.offset)?void 0:o.options)},arrow:(0,r.A)({},g.arrow,{enabled:!!p,options:(0,r.A)({},null==(i=g.arrow)?void 0:i.options,{element:p})}),flip:(0,r.A)({enabled:!!c},g.flip)}),void 0===a&&(a={}),Array.isArray(a)?a:Object.keys(a).map((function(e){return a[e].name=e,a[e]})))})}},3988:(e,t,n)=>{n.d(t,{A:()=>r});const r=(0,n(8313).createContext)({id:"",children:null})},4041:(e,t,n)=>{n.d(t,{A:()=>i,u:()=>o});var r=n(8313),o=function(e,t){return void 0===t&&(t=null),null!=e?String(e):t||null};const i=r.createContext(null)},4065:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(8313);function o(){return(0,r.useState)(null)}},4082:(e,t,n)=>{n.d(t,{Zw:()=>u,iC:()=>l});var r=n(9511),o=n(1550),i=n(8313);function a(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function s(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}function l(e,t,n){var r=(0,i.useRef)(void 0!==e),o=(0,i.useState)(t),a=o[0],s=o[1],l=void 0!==e,u=r.current;return r.current=l,!l&&u&&a!==t&&s(t),[l?e:a,(0,i.useCallback)((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];n&&n.apply(void 0,[e].concat(r)),s(e)}),[n])]}function u(e,t){return Object.keys(t).reduce((function(n,i){var u,c=n,f=c[a(i)],d=c[i],h=(0,o.A)(c,[a(i),i].map(s)),p=t[i],m=l(d,f,e[p]),v=m[0],g=m[1];return(0,r.A)({},h,((u={})[i]=v,u[p]=g,u))}),e)}n(4334)},4152:(e,t,n)=>{n.d(t,{Ay:()=>k});var r=n(8313),o=n(2907),i=n.n(o),a=n(7141),s=n.n(a),l=n(4400),u=n(9511),c=n(1550),f=n(2402),d=["bsPrefix","size","toggle","vertical","className","as"],h=r.forwardRef((function(e,t){var n=e.bsPrefix,o=e.size,i=e.toggle,a=e.vertical,l=e.className,h=e.as,p=void 0===h?"div":h,m=(0,c.A)(e,d),v=(0,f.oU)(n,"btn-group"),g=v;return a&&(g=v+"-vertical"),r.createElement(p,(0,u.A)({},m,{ref:t,className:s()(l,g,o&&v+"-"+o,i&&v+"-toggle")}))}));h.displayName="ButtonGroup",h.defaultProps={vertical:!1,toggle:!1,role:"group"};const p=h;var m=["bsPrefix","className"],v=r.forwardRef((function(e,t){var n=e.bsPrefix,o=e.className,i=(0,c.A)(e,m),a=(0,f.oU)(n,"btn-toolbar");return r.createElement("div",(0,u.A)({},i,{ref:t,className:s()(o,a)}))}));v.displayName="ButtonToolbar",v.defaultProps={role:"toolbar"};const g=v;var y=n(6084);class b extends r.Component{constructor(e){super(e);const{onBlur:t,onKeyDown:n}=e;this.onBlur=t.bind(this),this.onKeyDown=n.bind(this),this.onClick=this.onClick.bind(this),this.setRefs=this.setRefs.bind(this)}onClick(e){this.buttonRef.focus(),this.props.onClick(e)}setRefs(e){this.buttonRef=e,this.props.inputRef(e)}render(){const e=this.props,{buttonType:t,className:n,children:o,isClose:i,type:a,inputRef:l}=e,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["buttonType","className","children","isClose","type","inputRef"]);return r.createElement("button",Object.assign(Object.assign({},u),{className:s()(["btn",n],{[`btn-${t}`]:void 0!==t},{close:i}),onBlur:this.onBlur,onClick:this.onClick,onKeyDown:this.onKeyDown,type:a,ref:this.setRefs}),o)}}const w={buttonType:i().string,className:i().string,children:i().node.isRequired,inputRef:i().oneOfType([i().func,i().shape({current:i().instanceOf(i().element)})]),isClose:i().bool,onBlur:i().func,onClick:i().func,onKeyDown:i().func,type:i().string,variant:i().oneOf(["primary","secondary","success","danger","warning","info","dark","light","link","outline-primary","outline-secondary","outline-success","outline-danger","outline-warning","outline-info","outline-dark","outline-light"])};b.propTypes=w,b.defaultProps={buttonType:void 0,className:void 0,inputRef:()=>{},isClose:!1,onBlur:()=>{},onKeyDown:()=>{},onClick:()=>{},type:"button",variant:"outline-primary"};const E=(0,y.A)(b,"Button",{label:{deprType:y.J.MOVED,newName:"children"},className:{deprType:y.J.FORMAT,expect:e=>"string"==typeof e,transform:e=>Array.isArray(e)?e.join(" "):e,message:"It should be a string."}});var x=n(9561),S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const O=r.forwardRef(((e,t)=>{let{children:n,iconAfter:o,iconBefore:i,size:a}=e,u=S(e,["children","iconAfter","iconBefore","size"]);return r.createElement(l.A,Object.assign(Object.assign({size:a},u),{className:s()(u.className),ref:t}),i&&r.createElement(x.A,{className:"btn-icon-before",size:a,src:i}),n,o&&r.createElement(x.A,{className:"btn-icon-after",size:a,src:o}))}));O.propTypes={className:i().string,disabled:i().bool,children:i().node.isRequired,onClick:i().func,onKeyDown:i().func,type:i().string,variant:i().string,iconBefore:i().elementType,iconAfter:i().elementType},O.defaultProps=Object.assign(Object.assign({},O.defaultProps),{children:void 0,className:void 0,iconBefore:void 0,iconAfter:void 0,disabled:!1}),O.Deprecated=E;const A=r.forwardRef(((e,t)=>{let{size:n}=e,o=S(e,["size"]);return r.createElement(p,Object.assign(Object.assign({size:n},o),{ref:t}))}));A.propTypes={as:i().elementType,role:i().string,size:i().oneOf(["sm","md","lg","inline"]),toggle:i().bool,vertical:i().bool,bsPrefix:i().string},A.defaultProps={as:"div",role:"group",toggle:!1,vertical:!1,bsPrefix:"btn-group",size:"md"};const C=r.forwardRef(((e,t)=>r.createElement(g,Object.assign(Object.assign({},e),{ref:t}))));C.propTypes={role:i().string,bsPrefix:i().string},C.defaultProps={role:"toolbar",bsPrefix:"btn-toolbar"};const k=O},4245:(e,t,n)=>{n.d(t,{A:()=>r});const r=n(8313).createContext(null)},4263:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(8313),o=n(6336),i=n(2402);function a(e){var t=window.getComputedStyle(e);return{top:parseFloat(t.marginTop)||0,right:parseFloat(t.marginRight)||0,bottom:parseFloat(t.marginBottom)||0,left:parseFloat(t.marginLeft)||0}}function s(){var e=(0,r.useRef)(null),t=(0,r.useRef)(null),n=(0,r.useRef)(null),s=(0,i.oU)(void 0,"popover"),l=(0,i.oU)(void 0,"dropdown-menu");return[(0,r.useCallback)((function(n){n&&((0,o.A)(n,s)||(0,o.A)(n,l))&&(t.current=a(n),n.style.margin="0",e.current=n)}),[s,l]),[(0,r.useMemo)((function(){return{name:"offset",options:{offset:function(e){var n=e.placement;if(!t.current)return[0,0];var r=t.current,o=r.top,i=r.left,a=r.bottom,s=r.right;switch(n.split("-")[0]){case"top":return[0,a];case"left":return[0,s];case"bottom":return[0,o];case"right":return[0,i];default:return[0,0]}}}}}),[t]),(0,r.useMemo)((function(){return{name:"arrow",options:{padding:function(){if(!n.current)return 0;var e=n.current,t=e.top,r=e.right,o=t||r;return{top:o,left:o,right:o,bottom:o}}}}}),[n]),(0,r.useMemo)((function(){return{name:"popoverArrowMargins",enabled:!0,phase:"main",fn:function(){},requiresIfExists:["arrow"],effect:function(t){var r=t.state;if(e.current&&r.elements.arrow&&(0,o.A)(e.current,s)){if(r.modifiersData["arrow#persistent"]){var i=a(r.elements.arrow),l=i.top,u=i.right,c=l||u;r.modifiersData["arrow#persistent"].padding={top:c,left:c,right:c,bottom:c}}else n.current=a(r.elements.arrow);return r.elements.arrow.style.margin="0",function(){r.elements.arrow&&(r.elements.arrow.style.margin="")}}}}}),[s])]]}},4334:e=>{e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},4384:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4400:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(9511),o=n(1550),i=n(7141),a=n.n(i),s=n(8313),l=n(2402),u=n(2036),c=["bsPrefix","variant","size","active","className","block","type","as"],f=s.forwardRef((function(e,t){var n=e.bsPrefix,i=e.variant,f=e.size,d=e.active,h=e.className,p=e.block,m=e.type,v=e.as,g=(0,o.A)(e,c),y=(0,l.oU)(n,"btn"),b=a()(h,y,d&&"active",i&&y+"-"+i,p&&y+"-block",f&&y+"-"+f);if(g.href)return s.createElement(u.A,(0,r.A)({},g,{as:v,ref:t,className:a()(b,g.disabled&&"disabled")}));t&&(g.ref=t),m?g.type=m:v||(g.type="button");var w=v||"button";return s.createElement(w,(0,r.A)({},g,{className:b}))}));f.displayName="Button",f.defaultProps={variant:"primary",active:!1,disabled:!1};const d=f},4791:(e,t,n)=>{var r=n(8313),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:s.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},5029:(e,t,n)=>{n.d(t,{N:()=>p,Ob:()=>f,QR:()=>d,jD:()=>c,zn:()=>h});var r=n(8313),o=n(5106),i=n(8779),a=n(2800),s=n(8613),l=n(551),u=n(5545);const c=(e,t)=>{(0,r.useEffect)((()=>((0,l.B1)(e,t),()=>{(0,l.al)(e,t)})),[t,e])},f=()=>{(0,r.useEffect)((()=>{var e;const t=({matches:e})=>{const t=e?"dark":"light";(0,i.oG)("openedx.ui.frontend-base.prefers-color-scheme.selected",{preferredColorScheme:t})},n=null===(e=window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-color-scheme: dark)");return n&&(t(n),n.addEventListener("change",t)),()=>{n&&n.removeEventListener("change",t)}}),[])};function d(){const{authenticatedUser:e}=(0,r.useContext)(u.A);return e}function h(){const{siteConfig:e}=(0,r.useContext)(u.A);return e}function p(){const e=(0,o.FE)(),t=(0,r.useCallback)((()=>{const t=[];for(const n of e)(0,s.V)(n)&&(t.includes(n.handle.role)||t.push(n.handle.role));return t}),[e]);(0,r.useEffect)((()=>{(0,a.pP)(t())}),[e,t])}},5106:(e,t,n)=>{var r;n.d(t,{$P:()=>h,FE:()=>P,Ix:()=>L,Rq:()=>l,V8:()=>R,Zp:()=>g,jb:()=>u,ph:()=>w,sp:()=>s,sv:()=>I,wE:()=>j,x$:()=>b,zy:()=>m});var o=n(8313),i=n(5437);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const s=o.createContext(null),l=o.createContext(null),u=o.createContext(null),c=o.createContext(null),f=o.createContext({outlet:null,matches:[],isDataRoute:!1}),d=o.createContext(null);function h(e,t){let{relative:n}=void 0===t?{}:t;p()||(0,i.Oi)(!1);let{basename:r,navigator:a}=o.useContext(u),{hash:s,pathname:l,search:c}=b(e,{relative:n}),f=l;return"/"!==r&&(f="/"===l?r:(0,i.HS)([r,l])),a.createHref({pathname:f,search:c,hash:s})}function p(){return null!=o.useContext(c)}function m(){return p()||(0,i.Oi)(!1),o.useContext(c).location}function v(e){o.useContext(u).static||o.useLayoutEffect(e)}function g(){let{isDataRoute:e}=o.useContext(f);return e?function(){let{router:e}=function(){let e=o.useContext(s);return e||(0,i.Oi)(!1),e}(A.UseNavigateStable),t=T(C.UseNavigateStable),n=o.useRef(!1);return v((()=>{n.current=!0})),o.useCallback((function(r,o){void 0===o&&(o={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,a({fromRouteId:t},o)))}),[e,t])}():function(){p()||(0,i.Oi)(!1);let e=o.useContext(s),{basename:t,future:n,navigator:r}=o.useContext(u),{matches:a}=o.useContext(f),{pathname:l}=m(),c=JSON.stringify((0,i.yD)(a,n.v7_relativeSplatPath)),d=o.useRef(!1);return v((()=>{d.current=!0})),o.useCallback((function(n,o){if(void 0===o&&(o={}),!d.current)return;if("number"==typeof n)return void r.go(n);let a=(0,i.Gh)(n,JSON.parse(c),l,"path"===o.relative);null==e&&"/"!==t&&(a.pathname="/"===a.pathname?t:(0,i.HS)([t,a.pathname])),(o.replace?r.replace:r.push)(a,o.state,o)}),[t,r,c,l,e])}()}const y=o.createContext(null);function b(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=o.useContext(u),{matches:a}=o.useContext(f),{pathname:s}=m(),l=JSON.stringify((0,i.yD)(a,r.v7_relativeSplatPath));return o.useMemo((()=>(0,i.Gh)(e,JSON.parse(l),s,"path"===n)),[e,l,s,n])}function w(e,t,n,r){p()||(0,i.Oi)(!1);let{navigator:s}=o.useContext(u),{matches:l}=o.useContext(f),d=l[l.length-1],h=d?d.params:{},v=(d&&d.pathname,d?d.pathnameBase:"/");d&&d.route;let g,y=m();if(t){var b;let e="string"==typeof t?(0,i.Rr)(t):t;"/"===v||(null==(b=e.pathname)?void 0:b.startsWith(v))||(0,i.Oi)(!1),g=e}else g=y;let w=g.pathname||"/",E=w;if("/"!==v){let e=v.replace(/^\//,"").split("/");E="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let A=(0,i.ue)(e,{pathname:E}),C=function(e,t,n,r){var a;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var s;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(s=r)&&s.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let l=e,u=null==(a=n)?void 0:a.errors;if(null!=u){let e=l.findIndex((e=>e.route.id&&void 0!==(null==u?void 0:u[e.route.id])));e>=0||(0,i.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}let c=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(f=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){c=!0,l=f>=0?l.slice(0,f+1):[l[0]];break}}}return l.reduceRight(((e,r,i)=>{let a,s=!1,d=null,h=null;var p;n&&(a=u&&r.route.id?u[r.route.id]:void 0,d=r.route.errorElement||x,c&&(f<0&&0===i?(N[p="route-fallback"]||(N[p]=!0),s=!0,h=null):f===i&&(s=!0,h=r.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,i+1)),v=()=>{let t;return t=a?d:s?h:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(O,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?o.createElement(S,{location:n.location,revalidation:n.revalidation,component:d,error:a,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()}),null)}(A&&A.map((e=>Object.assign({},e,{params:Object.assign({},h,e.params),pathname:(0,i.HS)([v,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?v:(0,i.HS)([v,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,n,r);return t&&C?o.createElement(c.Provider,{value:{location:a({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:i.rc.Pop}},C):C}function E(){let e=function(){var e;let t=o.useContext(d),n=k(C.UseRouteError),r=T(C.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[r]}(),t=(0,i.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:r},n):null,null)}const x=o.createElement(E,null);class S extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?o.createElement(f.Provider,{value:this.props.routeContext},o.createElement(d.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function O(e){let{routeContext:t,match:n,children:r}=e,i=o.useContext(s);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),o.createElement(f.Provider,{value:t},r)}var A=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(A||{}),C=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(C||{});function k(e){let t=o.useContext(l);return t||(0,i.Oi)(!1),t}function T(e){let t=function(){let e=o.useContext(f);return e||(0,i.Oi)(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||(0,i.Oi)(!1),n.route.id}function P(){let{matches:e,loaderData:t}=k(C.UseMatches);return o.useMemo((()=>e.map((e=>(0,i.ro)(e,t)))),[e,t])}const N={},_=(e,t,n)=>{};function R(e,t){void 0===(null==e?void 0:e.v7_startTransition)&&_("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),void 0!==(null==e?void 0:e.v7_relativeSplatPath)||t&&void 0!==t.v7_relativeSplatPath||_("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(void 0===t.v7_fetcherPersist&&_("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&_("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===t.v7_partialHydration&&_("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&_("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function I(e){return function(e){let t=o.useContext(f).outlet;return t?o.createElement(y.Provider,{value:e},t):t}(e.context)}function L(e){let{basename:t="/",children:n=null,location:r,navigationType:s=i.rc.Pop,navigator:l,static:f=!1,future:d}=e;p()&&(0,i.Oi)(!1);let h=t.replace(/^\/*/,"/"),m=o.useMemo((()=>({basename:h,navigator:l,static:f,future:a({v7_relativeSplatPath:!1},d)})),[h,d,l,f]);"string"==typeof r&&(r=(0,i.Rr)(r));let{pathname:v="/",search:g="",hash:y="",state:b=null,key:w="default"}=r,E=o.useMemo((()=>{let e=(0,i.pb)(v,h);return null==e?null:{location:{pathname:e,search:g,hash:y,state:b,key:w},navigationType:s}}),[h,v,g,y,b,w,s]);return null==E?null:o.createElement(u.Provider,{value:m},o.createElement(c.Provider,{children:n,value:E}))}function j(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:o.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:o.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:o.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}(r||(r=n.t(o,2))).startTransition,new Promise((()=>{})),o.Component},5142:(e,t,n)=>{n.d(t,{A:()=>g});var r=n(8313),o=n(2907),i=n.n(o),a=n(7141),s=n.n(a),l=n(7050),u=n(8083);const c=e=>r.createElement("svg",Object.assign({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M19 19H5V5h7V3H3v18h18v-9h-2v7ZM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7Z",fill:"currentColor"}));var f=n(9561);const d=(0,l.YK)({externalLinkAltText:{id:"Hyperlink.externalLinkAltText",defaultMessage:"in a new tab"},externalLinkTitle:{id:"Hyperlink.externalLinkTitle",defaultMessage:"Opens in a new tab"}}),h=(0,r.forwardRef)(((e,t)=>{let{as:n="a",className:o,destination:i,children:a,target:l="_self",onClick:h,externalLinkAlternativeText:p,externalLinkTitle:m,variant:v="default",isInline:g=!1,showLaunchIcon:y=!0}=e,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["as","className","destination","children","target","onClick","externalLinkAlternativeText","externalLinkTitle","variant","isInline","showLaunchIcon"]);const w=(0,u.A)();let E;if("_blank"===l){const e=()=>{let{rel:e}=b;return e?(e.includes("noopener")||(e+=" noopener"),e.includes("noreferrer")||(e+=" noreferrer"),e):"noopener noreferrer"};b.rel=e(),y&&(E=r.createElement("span",{className:"pgn__hyperlink__external-icon",title:m||w.formatMessage(d.externalLinkTitle)},r.createElement(f.A,{src:c,screenReaderText:p||w.formatMessage(d.externalLinkAltText),style:{height:"1em",width:"1em"},"data-testid":"hyperlink-icon"})))}const x=Object.assign({},b);return i&&(x.href=i),r.createElement(n,Object.assign({ref:t,className:s()("pgn__hyperlink",`${v}-link`,{"standalone-link":!g,"inline-link":g},o),target:l,onClick:h},x),a,E)}));var p,m,v;h.propTypes={as:i().elementType,destination:(p=i().string,m=e=>{let{as:t}=e;return t&&"a"===t},v='the `as` prop is a standard anchor element (i.e., "a")',(e,t,n,...r)=>m(e)&&void 0===e[t]?new Error(`${n}: ${t} is required when ${v}`):p(e,t,n,...r)),children:i().node.isRequired,className:i().string,target:i().oneOf(["_blank","_self"]),onClick:i().func,externalLinkAlternativeText:i().string,externalLinkTitle:i().string,variant:i().oneOf(["default","muted","brand"]),isInline:i().bool,showLaunchIcon:i().bool},h.defaultProps={as:"a",className:void 0,destination:void 0,externalLinkAlternativeText:void 0,externalLinkTitle:void 0,isInline:!1,onClick:void 0,showLaunchIcon:!0,target:"_self",variant:"default"},h.displayName="Hyperlink";const g=h},5147:function(e){e.exports=function(){function e(t){return e.result||(t&&"function"==typeof t.getSerializer||Promise.reject(new Error("localforage.getSerializer() was not available! localforage v1.4+ is required!")),e.result=t.getSerializer()),e.result}function t(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}var n={};return{_driver:"memoryStorageDriver",_initStorage:function(t){var r={};if(t)for(var o in t)r[o]=t[o];var i=n[r.name]=n[r.name]||{},a=i[r.storeName]=i[r.storeName]||{};return r.db=a,this._dbInfo=r,e(this).then((function(e){r.serializer=e}))},iterate:function(e,n){var r=this,o=r.ready().then((function(){var t=r._dbInfo.db,n=1;for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];if(i&&(i=r._dbInfo.serializer.deserialize(i)),void 0!==(i=e(i,o,n++)))return i}}));return t(o,n),o},getItem:function(e,n){var r=this;"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e));var o=r.ready().then((function(){var t=r._dbInfo.db[e];return t&&(t=r._dbInfo.serializer.deserialize(t)),t}));return t(o,n),o},setItem:function(e,n,r){var o=this;"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e));var i=o.ready().then((function(){void 0===n&&(n=null);var t=n;return function(e){return new Promise((function(t,n){o._dbInfo.serializer.serialize(e,(function(e,r){r?n(r):t(e)}))}))}(n).then((function(n){return o._dbInfo.db[e]=n,t}))}));return t(i,r),i},removeItem:function(e,n){var r=this;"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e));var o=r.ready().then((function(){var t=r._dbInfo.db;t.hasOwnProperty(e)&&delete t[e]}));return t(o,n),o},clear:function(e){var n=this,r=n.ready().then((function(){var e=n._dbInfo.db;for(var t in e)e.hasOwnProperty(t)&&delete e[t]}));return t(r,e),r},length:function(e){var n=this.keys().then((function(e){return e.length}));return t(n,e),n},key:function(e,n){var r=this,o=r.ready().then((function(){var t=r._dbInfo.db,n=null,o=0;for(var i in t)if(t.hasOwnProperty(i)){if(e===o){n=i;break}o++}return n}));return t(o,n),o},keys:function(e){var n=this,r=n.ready().then((function(){var e=n._dbInfo.db,t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}));return t(r,e),r}}}()},5437:(e,t,n)=>{n.d(t,{AO:()=>d,Gh:()=>D,HS:()=>B,Oi:()=>l,Rr:()=>h,VV:()=>G,aE:()=>re,pX:()=>W,pb:()=>I,rc:()=>r,ro:()=>b,tH:()=>z,ue:()=>g,yD:()=>M,zR:()=>s});var r,o=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));const a="popstate";function s(e){return void 0===e&&(e={}),function(e,t,n,o){void 0===o&&(o={});let{window:s=document.defaultView,v5Compat:u=!1}=o,h=s.history,p=r.Pop,m=null,v=g();function g(){return(h.state||{idx:null}).idx}function y(){p=r.Pop;let e=g(),t=null==e?null:e-v;v=e,m&&m({action:p,location:w.location,delta:t})}function b(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,n="string"==typeof e?e:d(e);return n=n.replace(/ $/,"%20"),l(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==v&&(v=0,h.replaceState(i({},h.state,{idx:v}),""));let w={get action(){return p},get location(){return e(s,h)},listen(e){if(m)throw new Error("A history only accepts one active listener");return s.addEventListener(a,y),m=e,()=>{s.removeEventListener(a,y),m=null}},createHref:e=>t(s,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){p=r.Push;let o=f(w.location,e,t);n&&n(o,e),v=g()+1;let i=c(o,v),a=w.createHref(o);try{h.pushState(i,"",a)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;s.location.assign(a)}u&&m&&m({action:p,location:w.location,delta:1})},replace:function(e,t){p=r.Replace;let o=f(w.location,e,t);n&&n(o,e),v=g();let i=c(o,v),a=w.createHref(o);h.replaceState(i,"",a),u&&m&&m({action:p,location:w.location,delta:0})},go:e=>h.go(e)};return w}((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return f("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:d(t)}),null,e)}function l(e,t){if(!1===e||null==e)throw new Error(t)}function u(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t}}function f(e,t,n,r){return void 0===n&&(n=null),i({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?h(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function h(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var p;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(p||(p={}));const m=new Set(["lazy","caseSensitive","path","id","index","children"]);function v(e,t,n,r){return void 0===n&&(n=[]),void 0===r&&(r={}),e.map(((e,o)=>{let a=[...n,String(o)],s="string"==typeof e.id?e.id:a.join("-");if(l(!0!==e.index||!e.children,"Cannot specify children on an index route"),l(!r[s],'Found a route id collision on id "'+s+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=i({},e,t(e),{id:s});return r[s]=n,n}{let n=i({},e,t(e),{id:s,children:void 0});return r[s]=n,e.children&&(n.children=v(e.children,t,a,r)),n}}))}function g(e,t,n){return void 0===n&&(n="/"),y(e,t,n,!1)}function y(e,t,n,r){let o=I(("string"==typeof t?h(t):t).pathname||"/",n);if(null==o)return null;let i=w(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=R(o);a=N(i[e],t,r)}return a}function b(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function w(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(l(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=B([r,a.relativePath]),u=n.concat(a);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),w(e.children,t,u,s)),(null!=e.path||e.index)&&t.push({path:s,score:P(s,e.index),routesMeta:u})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of E(e.path))o(e,t,n);else o(e,t)})),t}function E(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=E(r.join("/")),s=[];return s.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const x=/^:[\w-]+$/,S=3,O=2,A=1,C=10,k=-2,T=e=>"*"===e;function P(e,t){let n=e.split("/"),r=n.length;return n.some(T)&&(r+=k),t&&(r+=O),n.filter((e=>!T(e))).reduce(((e,t)=>e+(x.test(t)?S:""===t?A:C)),r)}function N(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let e=0;e<r.length;++e){let s=r[e],l=e===r.length-1,u="/"===i?t:t.slice(i.length)||"/",c=_({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u),f=s.route;if(!c&&l&&n&&!r[r.length-1].route.index&&(c=_({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},u)),!c)return null;Object.assign(o,c.params),a.push({params:o,pathname:B([i,c.pathname]),pathnameBase:H(B([i,c.pathnameBase])),route:f}),"/"!==c.pathnameBase&&(i=B([i,c.pathnameBase]))}return a}function _(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),u("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function R(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return u(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function I(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function L(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function j(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function M(e,t){let n=j(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function D(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=h(e):(o=i({},e),l(!o.pathname||!o.pathname.includes("?"),L("?","pathname","search",o)),l(!o.pathname||!o.pathname.includes("#"),L("#","pathname","hash",o)),l(!o.search||!o.search.includes("#"),L("#","search","hash",o)));let a,s=""===e||""===o.pathname,u=s?"/":o.pathname;if(null==u)a=n;else{let e=t.length-1;if(!r&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?h(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:F(r),hash:U(o)}}(o,a),f=u&&"/"!==u&&u.endsWith("/"),d=(s||"."===u)&&n.endsWith("/");return c.pathname.endsWith("/")||!f&&!d||(c.pathname+="/"),c}const B=e=>e.join("/").replace(/\/\/+/g,"/"),H=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),F=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",U=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class z extends Error{}class G{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function W(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const q=["post","put","patch","delete"],V=new Set(q),$=["get",...q],K=new Set($),X=new Set([301,302,303,307,308]),Q=new Set([307,308]),Y={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Z={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},J={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ee=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,te=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ne="remix-router-transitions";function re(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,a=!n;let s;if(l(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)s=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;s=e=>({hasErrorBoundary:t(e)})}else s=te;let c,d,h,w={},E=v(e.routes,s,void 0,w),x=e.basename||"/",S=e.dataStrategy||he,O=e.patchRoutesOnNavigation,A=i({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),C=null,k=new Set,T=null,P=null,N=null,_=null!=e.hydrationData,R=g(E,e.history.location,x),L=!1,j=null;if(null==R&&!O){let t=Ae(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Oe(E);R=n,j={[r.id]:t}}if(R&&!e.hydrationData&&ft(R,E,e.history.location.pathname).active&&(R=null),R)if(R.some((e=>e.route.lazy)))d=!1;else if(R.some((e=>e.route.loader)))if(A.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=R.findIndex((e=>void 0!==n[e.route.id]));d=R.slice(0,e+1).every((e=>!le(e.route,t,n)))}else d=R.every((e=>!le(e.route,t,n)))}else d=null!=e.hydrationData;else d=!0;else if(d=!1,R=[],A.v7_partialHydration){let t=ft(null,E,e.history.location.pathname);t.active&&t.matches&&(L=!0,R=t.matches)}let M,D,B={historyAction:e.history.action,location:e.history.location,matches:R,initialized:d,navigation:Y,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||j,fetchers:new Map,blockers:new Map},H=r.Pop,F=!1,U=!1,z=new Map,G=null,q=!1,V=!1,$=[],K=new Set,X=new Map,re=0,ae=-1,ue=new Map,ce=new Set,de=new Map,ye=new Map,be=new Set,ke=new Map,Re=new Map;function Ie(e,t){void 0===t&&(t={}),B=i({},B,e);let n=[],r=[];A.v7_fetcherPersist&&B.fetchers.forEach(((e,t)=>{"idle"===e.state&&(be.has(t)?r.push(t):n.push(t))})),be.forEach((e=>{B.fetchers.has(e)||X.has(e)||r.push(e)})),[...k].forEach((e=>e(B,{deletedFetchers:r,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),A.v7_fetcherPersist?(n.forEach((e=>B.fetchers.delete(e))),r.forEach((e=>Je(e)))):r.forEach((e=>be.delete(e)))}function Be(t,n,o){var a,s;let l,{flushSync:u}=void 0===o?{}:o,f=null!=B.actionData&&null!=B.navigation.formMethod&&Le(B.navigation.formMethod)&&"loading"===B.navigation.state&&!0!==(null==(a=t.state)?void 0:a._isRedirect);l=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:f?B.actionData:null;let d=n.loaderData?Ee(B.loaderData,n.loaderData,n.matches||[],n.errors):B.loaderData,h=B.blockers;h.size>0&&(h=new Map(h),h.forEach(((e,t)=>h.set(t,J))));let p,m=!0===F||null!=B.navigation.formMethod&&Le(B.navigation.formMethod)&&!0!==(null==(s=t.state)?void 0:s._isRedirect);if(c&&(E=c,c=void 0),q||H===r.Pop||(H===r.Push?e.history.push(t,t.state):H===r.Replace&&e.history.replace(t,t.state)),H===r.Pop){let e=z.get(B.location.pathname);e&&e.has(t.pathname)?p={currentLocation:B.location,nextLocation:t}:z.has(t.pathname)&&(p={currentLocation:t,nextLocation:B.location})}else if(U){let e=z.get(B.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),z.set(B.location.pathname,e)),p={currentLocation:B.location,nextLocation:t}}Ie(i({},n,{actionData:l,loaderData:d,historyAction:H,location:t,initialized:!0,navigation:Y,revalidation:"idle",restoreScrollPosition:ct(t,n.matches||B.matches),preventScrollReset:m,blockers:h}),{viewTransitionOpts:p,flushSync:!0===u}),H=r.Pop,F=!1,U=!1,q=!1,V=!1,$=[]}function We(t,n,a){return o(this,void 0,void 0,(function*(){M&&M.abort(),M=null,H=t,q=!0===(a&&a.startUninterruptedRevalidation),function(e,t){if(T&&N){let n=ut(e,t);T[n]=N()}}(B.location,B.matches),F=!0===(a&&a.preventScrollReset),U=!0===(a&&a.enableViewTransition);let s=c||E,l=a&&a.overrideNavigation,u=null!=a&&a.initialHydration&&B.matches&&B.matches.length>0&&!L?B.matches:g(s,n,x),f=!0===(a&&a.flushSync);if(u&&B.initialized&&!V&&(d=B.location,h=n,d.pathname===h.pathname&&d.search===h.search&&(""===d.hash?""!==h.hash:d.hash===h.hash||""!==h.hash))&&!(a&&a.submission&&Le(a.submission.formMethod)))return void Be(n,{matches:u},{flushSync:f});var d,h;let m=ft(u,s,n.pathname);if(m.active&&m.matches&&(u=m.matches),!u){let{error:e,notFoundMatches:t,route:r}=st(n.pathname);return void Be(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:f})}M=new AbortController;let v,y=ge(e.history,n,M.signal,a&&a.submission);if(a&&a.pendingError)v=[Se(u).route.id,{type:p.error,error:a.pendingError}];else if(a&&a.submission&&Le(a.submission.formMethod)){let t=yield function(e,t,n,i,a,s){return o(this,void 0,void 0,(function*(){void 0===s&&(s={}),Xe();let o,l=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(t,n);if(Ie({navigation:l},{flushSync:!0===s.flushSync}),a){let n=yield dt(i,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let e=Se(n.partialMatches).route.id;return{matches:n.partialMatches,pendingActionResult:[e,{type:p.error,error:n.error}]}}if(!n.matches){let{notFoundMatches:e,error:n,route:r}=st(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:p.error,error:n}]}}i=n.matches}let u=He(i,t);if(u.route.action||u.route.lazy){if(o=(yield $e("action",B,e,[u],i,null))[u.route.id],e.signal.aborted)return{shortCircuited:!0}}else o={type:p.error,error:Ae(405,{method:e.method,pathname:t.pathname,routeId:u.route.id})};if(_e(o)){let t;return t=s&&null!=s.replace?s.replace:ve(o.response.headers.get("Location"),new URL(e.url),x)===B.location.pathname+B.location.search,yield Ve(e,o,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(Pe(o))throw Ae(400,{type:"defer-action"});if(Ne(o)){let e=Se(i,u.route.id);return!0!==(s&&s.replace)&&(H=r.Push),{matches:i,pendingActionResult:[e.route.id,o]}}return{matches:i,pendingActionResult:[u.route.id,o]}}))}(y,n,a.submission,u,m.active,{replace:a.replace,flushSync:f});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Ne(r)&&W(r.error)&&404===r.error.status)return M=null,void Be(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}u=t.matches||u,v=t.pendingActionResult,l=Ue(n,a.submission),f=!1,m.active=!1,y=ge(e.history,y.url,y.signal)}let{shortCircuited:b,matches:w,loaderData:S,errors:O}=yield function(t,n,r,a,s,l,u,f,d,h,p){return o(this,void 0,void 0,(function*(){let o=s||Ue(n,l),m=l||u||Fe(o),v=!(q||A.v7_partialHydration&&d);if(a){if(v){let e=qe(p);Ie(i({navigation:o},void 0!==e?{actionData:e}:{}),{flushSync:h})}let e=yield dt(r,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Se(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=st(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}r=e.matches}let g=c||E,[y,b]=se(e.history,B,r,m,n,A.v7_partialHydration&&!0===d,A.v7_skipActionErrorRevalidation,V,$,K,be,de,ce,g,x,p);if(lt((e=>!(r&&r.some((t=>t.route.id===e)))||y&&y.some((t=>t.route.id===e)))),ae=++re,0===y.length&&0===b.length){let e=nt();return Be(n,i({matches:r,loaderData:{},errors:p&&Ne(p[1])?{[p[0]]:p[1].error}:null},xe(p),e?{fetchers:new Map(B.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(v){let e={};if(!a){e.navigation=o;let t=qe(p);void 0!==t&&(e.actionData=t)}b.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=B.fetchers.get(e.key),n=ze(void 0,t?t.data:void 0);B.fetchers.set(e.key,n)})),new Map(B.fetchers)}(b)),Ie(e,{flushSync:h})}b.forEach((e=>{et(e.key),e.controller&&X.set(e.key,e.controller)}));let w=()=>b.forEach((e=>et(e.key)));M&&M.signal.addEventListener("abort",w);let{loaderResults:S,fetcherResults:O}=yield Ke(B,r,y,b,t);if(t.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",w),b.forEach((e=>X.delete(e.key)));let C=Ce(S);if(C)return yield Ve(t,C.result,!0,{replace:f}),{shortCircuited:!0};if(C=Ce(O),C)return ce.add(C.key),yield Ve(t,C.result,!0,{replace:f}),{shortCircuited:!0};let{loaderData:k,errors:T}=we(B,r,S,p,b,O,ke);ke.forEach(((e,t)=>{e.subscribe((n=>{(n||e.done)&&ke.delete(t)}))})),A.v7_partialHydration&&d&&B.errors&&(T=i({},B.errors,T));let P=nt(),N=rt(ae),_=P||N||b.length>0;return i({matches:r,loaderData:k,errors:T},_?{fetchers:new Map(B.fetchers)}:{})}))}(y,n,u,m.active,l,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,f,v);b||(M=null,Be(n,i({matches:w||u},xe(v),{loaderData:S,errors:O})))}))}function qe(e){return e&&!Ne(e[1])?{[e[0]]:e[1].data}:B.actionData?0===Object.keys(B.actionData).length?null:B.actionData:void 0}function Ve(a,s,u,c){return o(this,void 0,void 0,(function*(){let{submission:o,fetcherSubmission:d,preventScrollReset:h,replace:p}=void 0===c?{}:c;s.response.headers.has("X-Remix-Revalidate")&&(V=!0);let m=s.response.headers.get("Location");l(m,"Expected a Location header on the redirect Response"),m=ve(m,new URL(a.url),x);let v=f(B.location,m,{_isRedirect:!0});if(n){let n=!1;if(s.response.headers.has("X-Remix-Reload-Document"))n=!0;else if(ee.test(m)){const r=e.history.createURL(m);n=r.origin!==t.location.origin||null==I(r.pathname,x)}if(n)return void(p?t.location.replace(m):t.location.assign(m))}M=null;let g=!0===p||s.response.headers.has("X-Remix-Replace")?r.Replace:r.Push,{formMethod:y,formAction:b,formEncType:w}=B.navigation;!o&&!d&&y&&b&&w&&(o=Fe(B.navigation));let E=o||d;if(Q.has(s.response.status)&&E&&Le(E.formMethod))yield We(g,v,{submission:i({},E,{formAction:m}),preventScrollReset:h||F,enableViewTransition:u?U:void 0});else{let e=Ue(v,o);yield We(g,v,{overrideNavigation:e,fetcherSubmission:d,preventScrollReset:h||F,enableViewTransition:u?U:void 0})}}))}function $e(e,t,n,r,a,c){return o(this,void 0,void 0,(function*(){let t,f={};try{t=yield function(e,t,n,r,a,s,c,f,d,h){return o(this,void 0,void 0,(function*(){let n=s.map((e=>e.route.lazy?function(e,t,n){return o(this,void 0,void 0,(function*(){if(!e.lazy)return;let r=yield e.lazy();if(!e.lazy)return;let o=n[e.id];l(o,"No route found in manifest");let a={};for(let e in r){let t=void 0!==o[e]&&"hasErrorBoundary"!==e;u(!t,'Route "'+o.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||m.has(e)||(a[e]=r[e])}Object.assign(o,a),Object.assign(o,i({},t(o),{lazy:void 0}))}))}(e.route,d,f):void 0)),v=s.map(((e,s)=>{let u=n[s],c=a.some((t=>t.route.id===e.route.id));return i({},e,{shouldLoad:c,resolve:n=>o(this,void 0,void 0,(function*(){return n&&"GET"===r.method&&(e.route.lazy||e.route.loader)&&(c=!0),c?function(e,t,n,r,i,a){return o(this,void 0,void 0,(function*(){let s,u,c=r=>{let s,l=new Promise(((e,t)=>s=t));u=()=>s(),t.signal.addEventListener("abort",u);let c=o=>"function"!=typeof r?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+n.route.id+"]")):r({request:t,params:n.params,context:a},...void 0!==o?[o]:[]),f=(()=>o(this,void 0,void 0,(function*(){try{return{type:"data",result:yield i?i((e=>c(e))):c()}}catch(e){return{type:"error",result:e}}})))();return Promise.race([f,l])};try{let o=n.route[e];if(r)if(o){let e,[t]=yield Promise.all([c(o).catch((t=>{e=t})),r]);if(void 0!==e)throw e;s=t}else{if(yield r,o=n.route[e],!o){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw Ae(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:p.data,result:void 0}}s=yield c(o)}else{if(!o){let e=new URL(t.url);throw Ae(404,{pathname:e.pathname+e.search})}s=yield c(o)}l(void 0!==s.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:p.error,result:e}}finally{u&&t.signal.removeEventListener("abort",u)}return s}))}(t,r,e,u,n,h):Promise.resolve({type:p.data,result:void 0})}))})})),g=yield e({matches:v,request:r,params:s[0].params,fetcherKey:c,context:h});try{yield Promise.all(n)}catch(e){}return g}))}(S,e,0,n,r,a,c,w,s)}catch(e){return r.forEach((t=>{f[t.route.id]={type:p.error,error:e}})),f}for(let[e,r]of Object.entries(t))if(Te(r)){let t=r.result;f[e]={type:p.redirect,response:me(t,n,e,a,x,A.v7_relativeSplatPath)}}else f[e]=yield pe(r);return f}))}function Ke(t,n,r,i,a){return o(this,void 0,void 0,(function*(){let s=t.matches,l=$e("loader",0,a,r,n,null),u=Promise.all(i.map((t=>o(this,void 0,void 0,(function*(){if(t.matches&&t.match&&t.controller){let n=(yield $e("loader",0,ge(e.history,t.path,t.controller.signal),[t.match],t.matches,t.key))[t.match.route.id];return{[t.key]:n}}return Promise.resolve({[t.key]:{type:p.error,error:Ae(404,{pathname:t.path})}})}))))),c=yield l,f=(yield u).reduce(((e,t)=>Object.assign(e,t)),{});return yield Promise.all([je(n,c,a.signal,s,t.loaderData),Me(n,f,i)]),{loaderResults:c,fetcherResults:f}}))}function Xe(){V=!0,$.push(...lt()),de.forEach(((e,t)=>{X.has(t)&&K.add(t),et(t)}))}function Qe(e,t,n){void 0===n&&(n={}),B.fetchers.set(e,t),Ie({fetchers:new Map(B.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Ye(e,t,n,r){void 0===r&&(r={});let o=Se(B.matches,t);Je(e),Ie({errors:{[o.route.id]:n},fetchers:new Map(B.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ze(e){return ye.set(e,(ye.get(e)||0)+1),be.has(e)&&be.delete(e),B.fetchers.get(e)||Z}function Je(e){let t=B.fetchers.get(e);!X.has(e)||t&&"loading"===t.state&&ue.has(e)||et(e),de.delete(e),ue.delete(e),ce.delete(e),A.v7_fetcherPersist&&be.delete(e),K.delete(e),B.fetchers.delete(e)}function et(e){let t=X.get(e);t&&(t.abort(),X.delete(e))}function tt(e){for(let t of e){let e=Ge(Ze(t).data);B.fetchers.set(t,e)}}function nt(){let e=[],t=!1;for(let n of ce){let r=B.fetchers.get(n);l(r,"Expected fetcher: "+n),"loading"===r.state&&(ce.delete(n),e.push(n),t=!0)}return tt(e),t}function rt(e){let t=[];for(let[n,r]of ue)if(r<e){let e=B.fetchers.get(n);l(e,"Expected fetcher: "+n),"loading"===e.state&&(et(n),ue.delete(n),t.push(n))}return tt(t),t.length>0}function ot(e){B.blockers.delete(e),Re.delete(e)}function it(e,t){let n=B.blockers.get(e)||J;l("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(B.blockers);r.set(e,t),Ie({blockers:r})}function at(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===Re.size)return;Re.size>1&&u(!1,"A router only supports one blocker at a time");let o=Array.from(Re.entries()),[i,a]=o[o.length-1],s=B.blockers.get(i);return s&&"proceeding"===s.state?void 0:a({currentLocation:t,nextLocation:n,historyAction:r})?i:void 0}function st(e){let t=Ae(404,{pathname:e}),n=c||E,{matches:r,route:o}=Oe(n);return lt(),{notFoundMatches:r,route:o,error:t}}function lt(e){let t=[];return ke.forEach(((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),ke.delete(r))})),t}function ut(e,t){return P&&P(e,t.map((e=>b(e,B.loaderData))))||e.key}function ct(e,t){if(T){let n=ut(e,t),r=T[n];if("number"==typeof r)return r}return null}function ft(e,t,n){if(O){if(!e)return{active:!0,matches:y(t,n,x,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:y(t,n,x,!0)}}return{active:!1,matches:null}}function dt(e,t,n,r){return o(this,void 0,void 0,(function*(){if(!O)return{type:"success",matches:e};let o=e;for(;;){let e=null==c,i=c||E,a=w;try{yield O({signal:n,path:t,matches:o,fetcherKey:r,patch:(e,t)=>{n.aborted||fe(e,t,i,a,s)}})}catch(e){return{type:"error",error:e,partialMatches:o}}finally{e&&!n.aborted&&(E=[...E])}if(n.aborted)return{type:"aborted"};let l=g(i,t,x);if(l)return{type:"success",matches:l};let u=y(i,t,x,!0);if(!u||o.length===u.length&&o.every(((e,t)=>e.route.id===u[t].route.id)))return{type:"success",matches:null};o=u}}))}return h={get basename(){return x},get future(){return A},get state(){return B},get routes(){return E},get window(){return t},initialize:function(){if(C=e.history.listen((t=>{let{action:n,location:r,delta:o}=t;if(D)return D(),void(D=void 0);u(0===Re.size||null!=o,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=at({currentLocation:B.location,nextLocation:r,historyAction:n});if(i&&null!=o){let t=new Promise((e=>{D=e}));return e.history.go(-1*o),void it(i,{state:"blocked",location:r,proceed(){it(i,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then((()=>e.history.go(o)))},reset(){let e=new Map(B.blockers);e.set(i,J),Ie({blockers:e})}})}return We(n,r)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(ne);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,z);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(ne,JSON.stringify(n))}catch(e){u(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,z);t.addEventListener("pagehide",e),G=()=>t.removeEventListener("pagehide",e)}return B.initialized||We(r.Pop,B.location,{initialHydration:!0}),h},subscribe:function(e){return k.add(e),()=>k.delete(e)},enableScrollRestoration:function(e,t,n){if(T=e,N=t,P=n||null,!_&&B.navigation===Y){_=!0;let e=ct(B.location,B.matches);null!=e&&Ie({restoreScrollPosition:e})}return()=>{T=null,N=null,P=null}},navigate:function t(n,a){return o(this,void 0,void 0,(function*(){if("number"==typeof n)return void e.history.go(n);let o=oe(B.location,B.matches,x,A.v7_prependBasename,n,A.v7_relativeSplatPath,null==a?void 0:a.fromRouteId,null==a?void 0:a.relative),{path:s,submission:l,error:u}=ie(A.v7_normalizeFormMethod,!1,o,a),c=B.location,d=f(B.location,s,a&&a.state);d=i({},d,e.history.encodeLocation(d));let h=a&&null!=a.replace?a.replace:void 0,p=r.Push;!0===h?p=r.Replace:!1===h||null!=l&&Le(l.formMethod)&&l.formAction===B.location.pathname+B.location.search&&(p=r.Replace);let m=a&&"preventScrollReset"in a?!0===a.preventScrollReset:void 0,v=!0===(a&&a.flushSync),g=at({currentLocation:c,nextLocation:d,historyAction:p});if(!g)return yield We(p,d,{submission:l,pendingError:u,preventScrollReset:m,replace:a&&a.replace,enableViewTransition:a&&a.viewTransition,flushSync:v});it(g,{state:"blocked",location:d,proceed(){it(g,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(n,a)},reset(){let e=new Map(B.blockers);e.set(g,J),Ie({blockers:e})}})}))},fetch:function(t,n,r,i){if(a)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");et(t);let s=!0===(i&&i.flushSync),u=c||E,f=oe(B.location,B.matches,x,A.v7_prependBasename,r,A.v7_relativeSplatPath,n,null==i?void 0:i.relative),d=g(u,f,x),h=ft(d,u,f);if(h.active&&h.matches&&(d=h.matches),!d)return void Ye(t,n,Ae(404,{pathname:f}),{flushSync:s});let{path:p,submission:m,error:v}=ie(A.v7_normalizeFormMethod,!0,f,i);if(v)return void Ye(t,n,v,{flushSync:s});let y=He(d,p),b=!0===(i&&i.preventScrollReset);m&&Le(m.formMethod)?function(t,n,r,i,a,s,u,f,d){o(this,void 0,void 0,(function*(){function o(e){if(!e.route.action&&!e.route.lazy){let e=Ae(405,{method:d.formMethod,pathname:r,routeId:n});return Ye(t,n,e,{flushSync:u}),!0}return!1}if(Xe(),de.delete(t),!s&&o(i))return;let h=B.fetchers.get(t);Qe(t,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(d,h),{flushSync:u});let p=new AbortController,m=ge(e.history,r,p.signal,d);if(s){let e=yield dt(a,new URL(m.url).pathname,m.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Ye(t,n,e.error,{flushSync:u});if(!e.matches)return void Ye(t,n,Ae(404,{pathname:r}),{flushSync:u});if(a=e.matches,o(i=He(a,r)))return}X.set(t,p);let v=re,y=(yield $e("action",0,m,[i],a,t))[i.route.id];if(m.signal.aborted)return void(X.get(t)===p&&X.delete(t));if(A.v7_fetcherPersist&&be.has(t)){if(_e(y)||Ne(y))return void Qe(t,Ge(void 0))}else{if(_e(y))return X.delete(t),ae>v?void Qe(t,Ge(void 0)):(ce.add(t),Qe(t,ze(d)),Ve(m,y,!1,{fetcherSubmission:d,preventScrollReset:f}));if(Ne(y))return void Ye(t,n,y.error)}if(Pe(y))throw Ae(400,{type:"defer-action"});let b=B.navigation.location||B.location,w=ge(e.history,b,p.signal),S=c||E,O="idle"!==B.navigation.state?g(S,B.navigation.location,x):B.matches;l(O,"Didn't find any matches after fetcher action");let C=++re;ue.set(t,C);let k=ze(d,y.data);B.fetchers.set(t,k);let[T,P]=se(e.history,B,O,d,b,!1,A.v7_skipActionErrorRevalidation,V,$,K,be,de,ce,S,x,[i.route.id,y]);P.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=B.fetchers.get(t),r=ze(void 0,n?n.data:void 0);B.fetchers.set(t,r),et(t),e.controller&&X.set(t,e.controller)})),Ie({fetchers:new Map(B.fetchers)});let N=()=>P.forEach((e=>et(e.key)));p.signal.addEventListener("abort",N);let{loaderResults:_,fetcherResults:R}=yield Ke(B,O,T,P,w);if(p.signal.aborted)return;p.signal.removeEventListener("abort",N),ue.delete(t),X.delete(t),P.forEach((e=>X.delete(e.key)));let I=Ce(_);if(I)return Ve(w,I.result,!1,{preventScrollReset:f});if(I=Ce(R),I)return ce.add(I.key),Ve(w,I.result,!1,{preventScrollReset:f});let{loaderData:L,errors:j}=we(B,O,_,void 0,P,R,ke);if(B.fetchers.has(t)){let e=Ge(y.data);B.fetchers.set(t,e)}rt(C),"loading"===B.navigation.state&&C>ae?(l(H,"Expected pending action"),M&&M.abort(),Be(B.navigation.location,{matches:O,loaderData:L,errors:j,fetchers:new Map(B.fetchers)})):(Ie({errors:j,loaderData:Ee(B.loaderData,L,O,j),fetchers:new Map(B.fetchers)}),V=!1)}))}(t,n,p,y,d,h.active,s,b,m):(de.set(t,{routeId:n,path:p}),function(t,n,r,i,a,s,u,c,f){o(this,void 0,void 0,(function*(){let o=B.fetchers.get(t);Qe(t,ze(f,o?o.data:void 0),{flushSync:u});let d=new AbortController,h=ge(e.history,r,d.signal);if(s){let e=yield dt(a,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Ye(t,n,e.error,{flushSync:u});if(!e.matches)return void Ye(t,n,Ae(404,{pathname:r}),{flushSync:u});a=e.matches,i=He(a,r)}X.set(t,d);let p=re,m=(yield $e("loader",0,h,[i],a,t))[i.route.id];if(Pe(m)&&(m=(yield De(m,h.signal,!0))||m),X.get(t)===d&&X.delete(t),!h.signal.aborted){if(!be.has(t))return _e(m)?ae>p?void Qe(t,Ge(void 0)):(ce.add(t),void(yield Ve(h,m,!1,{preventScrollReset:c}))):void(Ne(m)?Ye(t,n,m.error):(l(!Pe(m),"Unhandled fetcher deferred data"),Qe(t,Ge(m.data))));Qe(t,Ge(void 0))}}))}(t,n,p,y,d,h.active,s,b,m))},revalidate:function(){Xe(),Ie({revalidation:"loading"}),"submitting"!==B.navigation.state&&("idle"!==B.navigation.state?We(H||B.historyAction,B.navigation.location,{overrideNavigation:B.navigation,enableViewTransition:!0===U}):We(B.historyAction,B.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ze,deleteFetcher:function(e){let t=(ye.get(e)||0)-1;t<=0?(ye.delete(e),be.add(e),A.v7_fetcherPersist||Je(e)):ye.set(e,t),Ie({fetchers:new Map(B.fetchers)})},dispose:function(){C&&C(),G&&G(),k.clear(),M&&M.abort(),B.fetchers.forEach(((e,t)=>Je(t))),B.blockers.forEach(((e,t)=>ot(t)))},getBlocker:function(e,t){let n=B.blockers.get(e)||J;return Re.get(e)!==t&&Re.set(e,t),n},deleteBlocker:ot,patchRoutes:function(e,t){let n=null==c;fe(e,t,c||E,w,s),n&&(E=[...E],Ie({}))},_internalFetchControllers:X,_internalActiveDeferreds:ke,_internalSetRoutes:function(e){w={},c=v(e,s,void 0,w)}},h}function oe(e,t,n,r,o,i,a,s){let l,u;if(a){l=[];for(let e of t)if(l.push(e),e.route.id===a){u=e;break}}else l=t,u=t[t.length-1];let c=D(o||".",M(l,i),I(e.pathname,n)||e.pathname,"path"===s);if(null==o&&(c.search=e.search,c.hash=e.hash),(null==o||""===o||"."===o)&&u){let e=Be(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();c.search=n?"?"+n:""}}return r&&"/"!==n&&(c.pathname="/"===c.pathname?n:B([n,c.pathname])),d(c)}function ie(e,t,n,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:n};if(r.formMethod&&(o=r.formMethod,!K.has(o.toLowerCase())))return{path:n,error:Ae(405,{method:r.formMethod})};var o;let i,a,s=()=>({path:n,error:Ae(400,{type:"invalid-body"})}),u=r.formMethod||"get",c=e?u.toUpperCase():u.toLowerCase(),f=ke(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!Le(c))return s();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce(((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"}),""):String(r.body);return{path:n,submission:{formMethod:c,formAction:f,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!Le(c))return s();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:c,formAction:f,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return s()}}}if(l("function"==typeof FormData,"FormData is not available in this environment"),r.formData)i=ye(r.formData),a=r.formData;else if(r.body instanceof FormData)i=ye(r.body),a=r.body;else if(r.body instanceof URLSearchParams)i=r.body,a=be(i);else if(null==r.body)i=new URLSearchParams,a=new FormData;else try{i=new URLSearchParams(r.body),a=be(i)}catch(e){return s()}let p={formMethod:c,formAction:f,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:a,json:void 0,text:void 0};if(Le(p.formMethod))return{path:n,submission:p};let m=h(n);return t&&m.search&&Be(m.search)&&i.append("index",""),m.search="?"+i,{path:d(m),submission:p}}function ae(e,t,n){void 0===n&&(n=!1);let r=e.findIndex((e=>e.route.id===t));return r>=0?e.slice(0,n?r+1:r):e}function se(e,t,n,r,o,a,s,l,u,c,f,d,h,p,m,v){let y=v?Ne(v[1])?v[1].error:v[1].data:void 0,b=e.createURL(t.location),w=e.createURL(o),E=n;a&&t.errors?E=ae(n,Object.keys(t.errors)[0],!0):v&&Ne(v[1])&&(E=ae(n,v[0]));let x=v?v[1].statusCode:void 0,S=s&&x&&x>=400,O=E.filter(((e,n)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(a)return le(o,t.loaderData,t.errors);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=void 0===e[n.route.id];return r||o}(t.loaderData,t.matches[n],e)||u.some((t=>t===e.route.id)))return!0;let s=t.matches[n],c=e;return ce(e,i({currentUrl:b,currentParams:s.params,nextUrl:w,nextParams:c.params},r,{actionResult:y,actionStatus:x,defaultShouldRevalidate:!S&&(l||b.pathname+b.search===w.pathname+w.search||b.search!==w.search||ue(s,c))}))})),A=[];return d.forEach(((e,o)=>{if(a||!n.some((t=>t.route.id===e.routeId))||f.has(o))return;let s=g(p,e.path,m);if(!s)return void A.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(o),d=He(s,e.path),v=!1;h.has(o)?v=!1:c.has(o)?(c.delete(o),v=!0):v=u&&"idle"!==u.state&&void 0===u.data?l:ce(d,i({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},r,{actionResult:y,actionStatus:x,defaultShouldRevalidate:!S&&l})),v&&A.push({key:o,routeId:e.routeId,path:e.path,matches:s,match:d,controller:new AbortController})})),[O,A]}function le(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&void 0!==t[e.id],o=null!=n&&void 0!==n[e.id];return!(!r&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!o)}function ue(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function ce(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function fe(e,t,n,r,o){var i;let a;if(e){let t=r[e];l(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),a=t.children}else a=n;let s=v(t.filter((e=>!a.some((t=>de(e,t))))),o,[e||"_","patch",String((null==(i=a)?void 0:i.length)||"0")],r);a.push(...s)}function de(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every(((e,n)=>{var r;return null==(r=t.children)?void 0:r.some((t=>de(e,t)))})))}function he(e){return o(this,void 0,void 0,(function*(){let{matches:t}=e,n=t.filter((e=>e.shouldLoad));return(yield Promise.all(n.map((e=>e.resolve())))).reduce(((e,t,r)=>Object.assign(e,{[n[r].route.id]:t})),{})}))}function pe(e){return o(this,void 0,void 0,(function*(){let{result:t,type:n}=e;if(Ie(t)){let e;try{let n=t.headers.get("Content-Type");e=n&&/\bapplication\/json\b/.test(n)?null==t.body?null:yield t.json():yield t.text()}catch(e){return{type:p.error,error:e}}return n===p.error?{type:p.error,error:new G(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:p.data,data:e,statusCode:t.status,headers:t.headers}}var r,o,i,a,s,l,u,c;return n===p.error?Re(t)?t.data instanceof Error?{type:p.error,error:t.data,statusCode:null==(i=t.init)?void 0:i.status,headers:null!=(a=t.init)&&a.headers?new Headers(t.init.headers):void 0}:{type:p.error,error:new G((null==(r=t.init)?void 0:r.status)||500,void 0,t.data),statusCode:W(t)?t.status:void 0,headers:null!=(o=t.init)&&o.headers?new Headers(t.init.headers):void 0}:{type:p.error,error:t,statusCode:W(t)?t.status:void 0}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:p.deferred,deferredData:t,statusCode:null==(s=t.init)?void 0:s.status,headers:(null==(l=t.init)?void 0:l.headers)&&new Headers(t.init.headers)}:Re(t)?{type:p.data,data:t.data,statusCode:null==(u=t.init)?void 0:u.status,headers:null!=(c=t.init)&&c.headers?new Headers(t.init.headers):void 0}:{type:p.data,data:t}}))}function me(e,t,n,r,o,i){let a=e.headers.get("Location");if(l(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!ee.test(a)){let s=r.slice(0,r.findIndex((e=>e.route.id===n))+1);a=oe(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function ve(e,t,n){if(ee.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=null!=I(o.pathname,n);if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function ge(e,t,n,r){let o=e.createURL(ke(t)).toString(),i={signal:n};if(r&&Le(r.formMethod)){let{formMethod:e,formEncType:t}=r;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(r.json)):"text/plain"===t?i.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?i.body=ye(r.formData):i.body=r.formData}return new Request(o,i)}function ye(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function be(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function we(e,t,n,r,o,a,s){let{loaderData:u,errors:c}=function(e,t,n,r,o){let i,a={},s=null,u=!1,c={},f=n&&Ne(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let d=n.route.id,h=t[d];if(l(!_e(h),"Cannot handle redirect results in processLoaderData"),Ne(h)){let t=h.error;if(void 0!==f&&(t=f,f=void 0),s=s||{},o)s[d]=t;else{let n=Se(e,d);null==s[n.route.id]&&(s[n.route.id]=t)}a[d]=void 0,u||(u=!0,i=W(h.error)?h.error.status:500),h.headers&&(c[d]=h.headers)}else Pe(h)?(r.set(d,h.deferredData),a[d]=h.deferredData.data,null==h.statusCode||200===h.statusCode||u||(i=h.statusCode),h.headers&&(c[d]=h.headers)):(a[d]=h.data,h.statusCode&&200!==h.statusCode&&!u&&(i=h.statusCode),h.headers&&(c[d]=h.headers))})),void 0!==f&&n&&(s={[n[0]]:f},a[n[0]]=void 0),{loaderData:a,errors:s,statusCode:i||200,loaderHeaders:c}}(t,n,r,s,!1);return o.forEach((t=>{let{key:n,match:r,controller:o}=t,s=a[n];if(l(s,"Did not find corresponding fetcher result"),!o||!o.signal.aborted)if(Ne(s)){let t=Se(e.matches,null==r?void 0:r.route.id);c&&c[t.route.id]||(c=i({},c,{[t.route.id]:s.error})),e.fetchers.delete(n)}else if(_e(s))l(!1,"Unhandled fetcher revalidation redirect");else if(Pe(s))l(!1,"Unhandled fetcher deferred data");else{let t=Ge(s.data);e.fetchers.set(n,t)}})),{loaderData:u,errors:c}}function Ee(e,t,n,r){let o=i({},t);for(let i of n){let n=i.route.id;if(t.hasOwnProperty(n)?void 0!==t[n]&&(o[n]=t[n]):void 0!==e[n]&&i.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function xe(e){return e?Ne(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Se(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function Oe(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Ae(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=void 0===t?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(s="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===i?l="defer() is not supported in actions":"invalid-body"===i&&(l="Unable to encode submission body")):403===e?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):404===e?(s="Not Found",l='No route matches URL "'+n+'"'):405===e&&(s="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new G(e||500,s,new Error(l),!0)}function Ce(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(_e(r))return{key:n,result:r}}}function ke(e){return d(i({},"string"==typeof e?h(e):e,{hash:""}))}function Te(e){return Ie(e.result)&&X.has(e.result.status)}function Pe(e){return e.type===p.deferred}function Ne(e){return e.type===p.error}function _e(e){return(e&&e.type)===p.redirect}function Re(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Ie(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Le(e){return V.has(e.toLowerCase())}function je(e,t,n,r,i){return o(this,void 0,void 0,(function*(){let o=Object.entries(t);for(let a=0;a<o.length;a++){let[s,l]=o[a],u=e.find((e=>(null==e?void 0:e.route.id)===s));if(!u)continue;let c=r.find((e=>e.route.id===u.route.id)),f=null!=c&&!ue(c,u)&&void 0!==(i&&i[u.route.id]);Pe(l)&&f&&(yield De(l,n,!1).then((e=>{e&&(t[s]=e)})))}}))}function Me(e,t,n){return o(this,void 0,void 0,(function*(){for(let r=0;r<n.length;r++){let{key:o,routeId:i,controller:a}=n[r],s=t[o];e.find((e=>(null==e?void 0:e.route.id)===i))&&Pe(s)&&(l(a,"Expected an AbortController for revalidating fetcher deferred result"),yield De(s,a.signal,!0).then((e=>{e&&(t[o]=e)})))}}))}function De(e,t,n){return o(this,void 0,void 0,(function*(){if(void 0===n&&(n=!1),!(yield e.deferredData.resolveData(t))){if(n)try{return{type:p.data,data:e.deferredData.unwrappedData}}catch(e){return{type:p.error,error:e}}return{type:p.data,data:e.deferredData.data}}}))}function Be(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function He(e,t){let n="string"==typeof t?h(t).search:t.search;if(e[e.length-1].route.index&&Be(n||""))return e[e.length-1];let r=j(e);return r[r.length-1]}function Fe(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}:void 0}function Ue(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ze(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ge(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}Symbol("deferred")},5545:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(8313),o=n(2800);const i=(0,r.createContext)({authenticatedUser:null,siteConfig:(0,o.Q2)(),locale:"en"})},5601:(e,t,n)=>{n.d(t,{Pr:()=>s,W:()=>v,ZI:()=>f,bv:()=>d,fL:()=>m,rn:()=>p,vD:()=>h});var r=n(2907),o=n.n(r),i=n(551),a=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const s="AUTHENTICATED_USER.CHANGED",l={config:o().shape({baseUrl:o().string.isRequired,lmsBaseUrl:o().string.isRequired,loginUrl:o().string.isRequired,logoutUrl:o().string.isRequired,refreshAccessTokenApiPath:o().string.isRequired,accessTokenCookieName:o().string.isRequired,csrfTokenApiPath:o().string.isRequired}).isRequired,loggingService:o().shape({logError:o().func.isRequired,logInfo:o().func.isRequired}).isRequired},u={getAuthenticatedHttpClient:o().func.isRequired,getHttpClient:o().func.isRequired,getLoginRedirectUrl:o().func.isRequired,redirectToLogin:o().func.isRequired,getLogoutRedirectUrl:o().func.isRequired,redirectToLogout:o().func.isRequired,getAuthenticatedUser:o().func.isRequired,setAuthenticatedUser:o().func.isRequired,fetchAuthenticatedUser:o().func.isRequired,ensureAuthenticatedUser:o().func.isRequired,hydrateAuthenticatedUser:o().func.isRequired};let c;function f(e,t){return o().checkPropTypes(l,t,"property","Auth"),c=new e(t),o().checkPropTypes(u,c,"property","AuthService"),c}function d(e={}){return c.getAuthenticatedHttpClient(e)}function h(){return c.getAuthenticatedUser()}function p(){return a(this,arguments,void 0,(function*(e={}){return c.fetchAuthenticatedUser(e)}))}function m(e){return a(this,void 0,void 0,(function*(){return c.ensureAuthenticatedUser(e)}))}function v(){return a(this,void 0,void 0,(function*(){yield c.hydrateAuthenticatedUser(),(0,i.mk)(s)}))}},5647:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(9511),o=n(1550),i=n(7141),a=n.n(i),s=n(8313),l=n(2907),u=n.n(l),c=n(2402),f=["bsPrefix","className","fluid","rounded","roundedCircle","thumbnail"],d=(u().string,u().bool,u().bool,u().bool,u().bool,s.forwardRef((function(e,t){var n=e.bsPrefix,i=e.className,l=e.fluid,u=e.rounded,d=e.roundedCircle,h=e.thumbnail,p=(0,o.A)(e,f);n=(0,c.oU)(n,"img");var m=a()(l&&n+"-fluid",u&&"rounded",d&&"rounded-circle",h&&n+"-thumbnail");return s.createElement("img",(0,r.A)({ref:t},p,{className:a()(i,m)}))})));d.displayName="Image",d.defaultProps={fluid:!1,rounded:!1,roundedCircle:!1,thumbnail:!1};const h=d},5784:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2264)},5969:(e,t,n)=>{var r=n(5784);t.H=r.createRoot,r.hydrateRoot},5991:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(8313).createContext(null);r.displayName="NavbarContext";const o=r},6024:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(1635),o=n(8313),i=n(2187),a=n(8083);function s(e){var t=(0,a.A)(),n=t.formatMessage,r=t.textComponent,i=void 0===r?o.Fragment:r,s=e.id,l=e.description,u=e.defaultMessage,c=e.values,f=e.children,d=e.tagName,h=void 0===d?i:d,p=n({id:s,description:l,defaultMessage:u},c,{ignoreTag:e.ignoreTag});return"function"==typeof f?f(Array.isArray(p)?p:[p]):h?o.createElement(h,null,o.Children.toArray(p)):o.createElement(o.Fragment,null,p)}s.displayName="FormattedMessage";var l=o.memo(s,(function(e,t){var n=e.values,o=(0,r.Tt)(e,["values"]),a=t.values,s=(0,r.Tt)(t,["values"]);return(0,i.bN)(a,n)&&(0,i.bN)(o,s)}));l.displayName="MemoizedFormattedMessage";const u=l},6084:(e,t,n)=>{n.d(t,{A:()=>i,J:()=>o});var r=n(8313);let o=function(e){return e.MOVED="MOVED",e.REMOVED="REMOVED",e.FORMAT="FORMAT",e.MOVED_AND_FORMAT="MOVED_AND_FORMAT",e}({});const i=function(e,t,n){class i extends r.Component{constructor(e){super(e),this.transformProps=this.transformProps.bind(this)}warn(e){}transformProps(e,r){if(void 0===n[r])return e[r]=this.props[r],e;const{deprType:i,newName:a,expect:s,transform:l,message:u}=n[r];switch(i){case o.MOVED:this.warn(`${t}: The prop '${r}' has been moved to '${a}'.`),e[a]=this.props[r];break;case o.REMOVED:this.warn(`${t}: The prop '${r}' has been removed. '${u}'`);break;case o.FORMAT:s(this.props[r])?e[r]=this.props[r]:(this.warn(`${t}: The prop '${r}' expects a new format. ${u}`),e[r]=l(this.props[r],this.props));break;case o.MOVED_AND_FORMAT:{const n=this.props[r];let o=`${t}: The prop '${r}' has been moved to '${a}'`;s&&!s(n)&&(o+=" and expects a new format"),o+=u?`. ${u}`:"",this.warn(o),e[a]=l?l(n,this.props):n;break}default:e[r]=this.props[r]}return e}render(){const t=Object.keys(this.props).reduce(this.transformProps,{}),{children:n}=t,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["children"]);return r.createElement(e,Object.assign({},o),this.props.children||n)}}return i.displayName=`withDeprecatedProps(${t})`,i}},6273:(e,t,n)=>{var r=n(9569),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=l(t),m=l(n),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||r&&r[g]||m&&m[g]||s&&s[g])){var y=d(n,g);try{u(t,g,y)}catch(e){}}}}return t}},6299:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(1901),o=n(8209),i=n(8313),a=n(6545),s=n(7730),l=n.n(s),u=n(9792),c=n(2451),f=function(){},d=function(e){return e&&("current"in e?e.current:e)};const h=function(e,t,n){var s=void 0===n?{}:n,h=s.disabled,p=s.clickTrigger,m=void 0===p?"click":p,v=(0,i.useRef)(!1),g=t||f,y=(0,i.useCallback)((function(t){var n,o,i=d(e);l()(!!i,"RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),v.current=!(i&&(o=t,!(o.metaKey||o.altKey||o.ctrlKey||o.shiftKey))&&function(e){return 0===e.button}(t)&&!(0,r.A)(i,null!=(n=null==t.composedPath?void 0:t.composedPath()[0])?n:t.target))}),[e]),b=(0,a.A)((function(e){v.current||g(e)})),w=(0,a.A)((function(e){27===e.keyCode&&g(e)}));(0,i.useEffect)((function(){if(!h&&null!=e){var t,n=window.event,r=(t=d(e),(0,u.A)((0,c.A)(t))),i=(0,o.A)(r,m,y,!0),a=(0,o.A)(r,m,(function(e){e!==n?b(e):n=void 0})),s=(0,o.A)(r,"keyup",(function(e){e!==n?w(e):n=void 0})),l=[];return"ontouchstart"in r.documentElement&&(l=[].slice.call(r.body.children).map((function(e){return(0,o.A)(e,"mousemove",f)}))),function(){i(),a(),s(),l.forEach((function(e){return e()}))}}}),[e,h,m,y,b,w])}},6336:(e,t,n)=>{function r(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}n.d(t,{A:()=>r})},6349:(e,t,n)=>{var r;n.d(t,{z:()=>r}),function(e){e.APPEND="widgetAppend",e.PREPEND="widgetPrepend",e.INSERT_AFTER="widgetInsertAfter",e.INSERT_BEFORE="widgetInsertBefore",e.REPLACE="widgetReplace",e.REMOVE="widgetRemove",e.OPTIONS="widgetOptions"}(r||(r={}))},6545:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(8313);const o=function(e){const t=(0,r.useRef)(e);return(0,r.useEffect)((()=>{t.current=e}),[e]),t};function i(e){const t=o(e);return(0,r.useCallback)((function(...e){return t.current&&t.current(...e)}),[t])}},6741:(e,t,n)=>{n.d(t,{DD:()=>v,GM:()=>g,Mn:()=>r,OM:()=>l,Ol:()=>m,R9:()=>d,WY:()=>f,_N:()=>c,ir:()=>p,kb:()=>a,ni:()=>u,pG:()=>i,qZ:()=>s,sQ:()=>o,xf:()=>h});var r="top",o="bottom",i="right",a="left",s="auto",l=[r,o,i,a],u="start",c="end",f="clippingParents",d="viewport",h="popper",p="reference",m=l.reduce((function(e,t){return e.concat([t+"-"+u,t+"-"+c])}),[]),v=[].concat(l,[s]).reduce((function(e,t){return e.concat([t,t+"-"+u,t+"-"+c])}),[]),g=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},7050:(e,t,n)=>{n.d(t,{YK:()=>f});var r,o,i=n(1635),a=n(8313),s=n(8083);!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(r||(r={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(o||(o={}));var l=function(e){var t=(0,s.A)(),n=e.value,r=e.children,o=(0,i.Tt)(e,["value","children"]);return r(t.formatNumberToParts(n,o))};function u(e){var t=function(t){var n=(0,s.A)(),r=t.value,o=t.children,a=(0,i.Tt)(t,["value","children"]),l="string"==typeof r?new Date(r||0):r;return o("formatDate"===e?n.formatDateToParts(l,a):n.formatTimeToParts(l,a))};return t.displayName=o[e],t}function c(e){var t=function(t){var n=(0,s.A)(),r=t.value,o=t.children,l=(0,i.Tt)(t,["value","children"]),u=n[e](r,l);if("function"==typeof o)return o(u);var c=n.textComponent||a.Fragment;return a.createElement(c,null,u)};return t.displayName=r[e],t}function f(e){return e}l.displayName="FormattedNumberParts",l.displayName="FormattedNumberParts",c("formatDate"),c("formatTime"),c("formatNumber"),c("formatList"),c("formatDisplayName"),u("formatDate"),u("formatTime")},7141:(e,t)=>{var n;!function(){var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},7155:(e,t,n)=>{n.d(t,{A:()=>g,G:()=>p});var r=n(1550),o=n(9511),i=n(2907),a=n.n(i),s=n(8313),l=n(4065),u=n(4245),c=n(2181),f=n(6299),d=n(3947),h=function(){};function p(e){void 0===e&&(e={});var t=(0,s.useContext)(u.A),n=(0,l.A)(),r=n[0],i=n[1],a=(0,s.useRef)(!1),p=e,m=p.flip,v=p.offset,g=p.rootCloseEvent,y=p.fixed,b=void 0!==y&&y,w=p.popperConfig,E=void 0===w?{}:w,x=p.usePopper,S=void 0===x?!!t:x,O=null==(null==t?void 0:t.show)?!!e.show:t.show,A=null==(null==t?void 0:t.alignEnd)?e.alignEnd:t.alignEnd;O&&!a.current&&(a.current=!0);var C=t||{},k=C.drop,T=C.setMenu,P=C.menuElement,N=C.toggleElement,_=A?"bottom-end":"bottom-start";"up"===k?_=A?"top-end":"top-start":"right"===k?_=A?"right-end":"right-start":"left"===k&&(_=A?"left-end":"left-start");var R=(0,c.A)(N,P,(0,d.Ay)({placement:_,enabled:!(!S||!O),enableEvents:O,offset:v,flip:m,fixed:b,arrowElement:r,popperConfig:E})),I=(0,o.A)({ref:T||h,"aria-labelledby":null==N?void 0:N.id},R.attributes.popper,{style:R.styles.popper}),L={show:O,alignEnd:A,hasShown:a.current,toggle:null==t?void 0:t.toggle,popper:S?R:null,arrowProps:S?(0,o.A)({ref:i},R.attributes.arrow,{style:R.styles.arrow}):{}};return(0,f.A)(P,(function(e){null==t||t.toggle(!1,e)}),{clickTrigger:g,disabled:!O}),[I,L]}var m={children:a().func.isRequired,show:a().bool,alignEnd:a().bool,flip:a().bool,usePopper:a().oneOf([!0,!1]),popperConfig:a().object,rootCloseEvent:a().string};function v(e){var t=e.children,n=p((0,r.A)(e,["children"])),o=n[0],i=n[1];return s.createElement(s.Fragment,null,i.hasShown?t(o,i):null)}v.displayName="ReactOverlaysDropdownMenu",v.propTypes=m,v.defaultProps={usePopper:!0};const g=v},7270:(e,t,n)=>{n.d(t,{RK:()=>a,TT:()=>r,hN:()=>s});var r,o=n(9263),i=n(2035);function a(e){return"function"==typeof e}function s(e,t,n,l,u,c,f){if(1===e.length&&(0,o.eW)(e[0]))return[{type:r.literal,value:e[0].value}];for(var d=[],h=0,p=e;h<p.length;h++){var m=p[h];if((0,o.eW)(m))d.push({type:r.literal,value:m.value});else if((0,o.jA)(m))"number"==typeof c&&d.push({type:r.literal,value:n.getNumberFormat(t).format(c)});else{var v=m.value;if(!u||!(v in u))throw new i.Ei(v,f);var g=u[v];if((0,o.Im)(m))g&&"string"!=typeof g&&"number"!=typeof g||(g="string"==typeof g||"number"==typeof g?String(g):""),d.push({type:"string"==typeof g?r.literal:r.object,value:g});else if((0,o.tv)(m)){var y="string"==typeof m.style?l.date[m.style]:(0,o.Tu)(m.style)?m.style.parsedOptions:void 0;d.push({type:r.literal,value:n.getDateTimeFormat(t,y).format(g)})}else if((0,o.Qh)(m))y="string"==typeof m.style?l.time[m.style]:(0,o.Tu)(m.style)?m.style.parsedOptions:l.time.medium,d.push({type:r.literal,value:n.getDateTimeFormat(t,y).format(g)});else if((0,o.oF)(m))(y="string"==typeof m.style?l.number[m.style]:(0,o.N1)(m.style)?m.style.parsedOptions:void 0)&&y.scale&&(g*=y.scale||1),d.push({type:r.literal,value:n.getNumberFormat(t,y).format(g)});else{if((0,o.xm)(m)){var b=m.children,w=m.value,E=u[w];if(!a(E))throw new i.Zo(w,"function",f);var x=E(s(b,t,n,l,u,c).map((function(e){return e.value})));Array.isArray(x)||(x=[x]),d.push.apply(d,x.map((function(e){return{type:"string"==typeof e?r.literal:r.object,value:e}})))}if((0,o.Jp)(m)){if(!(S=m.options[g]||m.options.other))throw new i.$x(m.value,g,Object.keys(m.options),f);d.push.apply(d,s(S.value,t,n,l,u))}else if((0,o.N6)(m)){var S;if(!(S=m.options["=".concat(g)])){if(!Intl.PluralRules)throw new i.IF('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',i.O4.MISSING_INTL_API,f);var O=n.getPluralRules(t,{type:m.pluralType}).select(g-(m.offset||0));S=m.options[O]||m.options.other}if(!S)throw new i.$x(m.value,g,Object.keys(m.options),f);d.push.apply(d,s(S.value,t,n,l,u,g-(m.offset||0)))}}}}return(A=d).length<2?A:A.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===r.literal&&t.type===r.literal?n.value+=t.value:e.push(t),e}),[]);var A}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(r||(r={}))},7284:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(7517),o=n(8313),i=n(1736);function a(){const e=(0,i.XB)();return(0,r.jsx)(r.Fragment,{children:e})}var s=n(9198),l=n(3988),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function c(e){var{id:t,children:n,layout:i=a}=e,c=u(e,["id","children","layout"]);let f=i;const d=(0,s.cH)(t);return d&&null!=d&&"boolean"!=typeof d&&(f=d),(0,o.isValidElement)(f)||(f=(0,o.createElement)(f)),(0,r.jsx)(l.A.Provider,{value:Object.assign({id:t,children:n},c),children:f})}},7355:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(8313);const o=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,i=function(e,t){return(0,r.useMemo)((()=>function(e,t){const n=o(e),r=o(t);return e=>{n&&n(e),r&&r(e)}}(e,t)),[e,t])}},7357:(e,t,n)=>{var r,o=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a="\\ud800-\\udfff",s="\\u2700-\\u27bf",l="a-z\\xdf-\\xf6\\xf8-\\xff",u="A-Z\\xc0-\\xd6\\xd8-\\xde",c="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",f="["+c+"]",d="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",h="\\d+",p="["+s+"]",m="["+l+"]",v="[^"+a+c+h+s+l+u+"]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",b="["+u+"]",w="(?:"+m+"|"+v+")",E="(?:"+b+"|"+v+")",x="(?:['’](?:d|ll|m|re|s|t|ve))?",S="(?:['’](?:D|LL|M|RE|S|T|VE))?",O="(?:"+d+"|\\ud83c[\\udffb-\\udfff])?",A="[\\ufe0e\\ufe0f]?",C=A+O+"(?:\\u200d(?:"+["[^"+a+"]",g,y].join("|")+")"+A+O+")*",k="(?:"+[p,g,y].join("|")+")"+C,T=RegExp("['’]","g"),P=RegExp(d,"g"),N=RegExp([b+"?"+m+"+"+x+"(?="+[f,b,"$"].join("|")+")",E+"+"+S+"(?="+[f,b+w,"$"].join("|")+")",b+"?"+w+"+"+x,b+"+"+S,h,k].join("|"),"g"),_=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,R="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,I="object"==typeof self&&self&&self.Object===Object&&self,L=R||I||Function("return this")(),j=(r={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==r?void 0:r[e]}),M=Object.prototype.toString,D=L.Symbol,B=D?D.prototype:void 0,H=B?B.toString:void 0;function F(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==M.call(e)}(e))return H?H.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}var U,z=(U=function(e,t,n){return e+(n?"_":"")+t.toLowerCase()},function(e){return function(e,t,n){for(var r=-1,o=e?e.length:0;++r<o;)n=t(n,e[r],r,e);return n}(function(e,t){return e=F(e),void 0===t?function(e){return _.test(e)}(e)?function(e){return e.match(N)||[]}(e):function(e){return e.match(o)||[]}(e):e.match(t)||[]}(function(e){return(e=F(e))&&e.replace(i,j).replace(P,"")}(e).replace(T,"")),U,"")});e.exports=z},7409:(e,t,n)=>{n.d(t,{Lh:()=>p,XL:()=>s,dh:()=>d,in:()=>a,ox:()=>u,uj:()=>f,wt:()=>h});var r=n(8313),o=n(2880);function i(e,t,o){(0,r.useLayoutEffect)((()=>{const r=n=>{n.source===e&&n.data.type===t&&o({type:t,payload:n.data.payload})};return null!==e&&n.g.addEventListener("message",r),()=>{n.g.removeEventListener("message",r)}}),[e,t,o])}function a(e,t){i(n.g.parent,e,t)}function s(e,t,n){i(e?e.contentWindow:null,t,n)}function l(e,t,n){e&&n&&e.postMessage(t,n)}function u(e,t,n){l(e.contentWindow,t,n)}function c(e){l(n.g.parent,e,n.g.document.referrer)}function f(){c({type:o.RK})}function d(){c({type:o.u3})}function h(){c({type:o.H6})}function p(){const e=(0,r.useRef)(),[t,n]=(0,r.useState)({width:0,height:0}),[o,i]=(0,r.useState)({x:0,y:0}),[a,s]=(0,r.useState)(),l=(0,r.useCallback)((e=>{s(e)}),[]);return(0,r.useEffect)((()=>{e.current=new ResizeObserver((()=>{a&&(n({width:a.clientWidth,height:a.clientHeight}),i({x:a.offsetLeft,y:a.offsetTop}))})),a&&e.current.observe(a)}),[a]),(0,r.useMemo)((()=>({ref:l,element:a,width:t.width,height:t.height,x:o.x,y:o.y})),[l,a,t,o])}},7517:(e,t,n)=>{e.exports=n(4791)},7679:(e,t,n)=>{n.d(t,{A:()=>r});const r=(0,n(7050).YK)({"header.user.menu.dashboard":{id:"header.user.menu.dashboard",defaultMessage:"Dashboard"},"header.user.menu.logout":{id:"header.user.menu.logout",defaultMessage:"Logout"},"header.user.menu.profile":{id:"header.user.menu.profile",defaultMessage:"Profile"},"header.user.menu.account":{id:"header.user.menu.account",defaultMessage:"Account"},"header.user.menu.order.history":{id:"header.user.menu.order.history",defaultMessage:"Order History"},"header.user.menu.login":{id:"header.user.menu.login",defaultMessage:"Login"},"header.user.menu.register":{id:"header.user.menu.register",defaultMessage:"Sign Up"},skipNavLink:{id:"header.navigation.skipNavLink",defaultMessage:"Skip to main content."},footerPoweredBy:{id:"footer.powered.by",defaultMessage:"Powered by Open edX"},footerTrademarkNotice:{id:"footer.trademark.notice",defaultMessage:"edX and Open edX are registered trademarks of edX LLC."},"footer.revealLinks.more":{id:"footer.revealLinks.more",defaultMessage:"More"}})},7730:e=>{e.exports=function(){}},7794:(e,t,n)=>{function r(e,t){var n=t&&t.cache?t.cache:c,r=t&&t.serializer?t.serializer:l;return(t&&t.strategy?t.strategy:s)(e,{cache:n,serializer:r})}function o(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function i(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function a(e,t,n,r,o){return n.bind(t,e,r,o)}function s(e,t){return a(e,this,1===e.length?o:i,t.cache.create(),t.serializer)}n.d(t,{B:()=>r,W:()=>f});var l=function(){return JSON.stringify(arguments)};function u(){this.cache=Object.create(null)}u.prototype.get=function(e){return this.cache[e]},u.prototype.set=function(e,t){this.cache[e]=t};var c={create:function(){return new u}},f={variadic:function(e,t){return a(e,this,i,t.cache.create(),t.serializer)},monadic:function(e,t){return a(e,this,o,t.cache.create(),t.serializer)}}},7837:(e,t)=>{var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case i:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case v:case m:case l:return e;default:return t}}case o:return t}}}function x(e){return E(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return x(e)||E(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=E},7849:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Function]",s="[object Object]",l=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[i]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[a]=c["[object Map]"]=c["[object Number]"]=c[s]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var f,d,h,p="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,m="object"==typeof self&&self&&self.Object===Object&&self,v=p||m||Function("return this")(),g=t&&!t.nodeType&&t,y=g&&e&&!e.nodeType&&e,b=y&&y.exports===g,w=b&&p.process,E=function(){try{return y&&y.require&&y.require("util").types||w&&w.binding&&w.binding("util")}catch(e){}}(),x=E&&E.isTypedArray,S=Array.prototype,O=Function.prototype,A=Object.prototype,C=v["__core-js_shared__"],k=O.toString,T=A.hasOwnProperty,P=(f=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"",N=A.toString,_=k.call(Object),R=RegExp("^"+k.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=b?v.Buffer:void 0,L=v.Symbol,j=v.Uint8Array,M=(I&&I.allocUnsafe,d=Object.getPrototypeOf,h=Object,function(e){return d(h(e))}),D=Object.create,B=A.propertyIsEnumerable,H=S.splice,F=L?L.toStringTag:void 0,U=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),z=I?I.isBuffer:void 0,G=Math.max,W=Date.now,q=se(v,"Map"),V=se(Object,"create"),$=function(){function e(){}return function(t){if(!be(t))return{};if(D)return D(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function K(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function X(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Y(e){var t=this.__data__=new X(e);this.size=t.size}function Z(e,t,n){(void 0!==n&&!de(e[t],n)||void 0===n&&!(t in e))&&te(e,t,n)}function J(e,t,n){var r=e[t];T.call(e,t)&&de(r,n)&&(void 0!==n||t in e)||te(e,t,n)}function ee(e,t){for(var n=e.length;n--;)if(de(e[n][0],t))return n;return-1}function te(e,t,n){"__proto__"==t&&U?U(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}K.prototype.clear=function(){this.__data__=V?V(null):{},this.size=0},K.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},K.prototype.get=function(e){var t=this.__data__;if(V){var n=t[e];return n===r?void 0:n}return T.call(t,e)?t[e]:void 0},K.prototype.has=function(e){var t=this.__data__;return V?void 0!==t[e]:T.call(t,e)},K.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=V&&void 0===t?r:t,this},X.prototype.clear=function(){this.__data__=[],this.size=0},X.prototype.delete=function(e){var t=this.__data__,n=ee(t,e);return!(n<0||(n==t.length-1?t.pop():H.call(t,n,1),--this.size,0))},X.prototype.get=function(e){var t=this.__data__,n=ee(t,e);return n<0?void 0:t[n][1]},X.prototype.has=function(e){return ee(this.__data__,e)>-1},X.prototype.set=function(e,t){var n=this.__data__,r=ee(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Q.prototype.clear=function(){this.size=0,this.__data__={hash:new K,map:new(q||X),string:new K}},Q.prototype.delete=function(e){var t=ae(this,e).delete(e);return this.size-=t?1:0,t},Q.prototype.get=function(e){return ae(this,e).get(e)},Q.prototype.has=function(e){return ae(this,e).has(e)},Q.prototype.set=function(e,t){var n=ae(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Y.prototype.clear=function(){this.__data__=new X,this.size=0},Y.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Y.prototype.get=function(e){return this.__data__.get(e)},Y.prototype.has=function(e){return this.__data__.has(e)},Y.prototype.set=function(e,t){var n=this.__data__;if(n instanceof X){var r=n.__data__;if(!q||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Q(r)}return n.set(e,t),this.size=n.size,this};function ne(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":F&&F in Object(e)?function(e){var t=T.call(e,F),n=e[F];try{e[F]=void 0;var r=!0}catch(e){}var o=N.call(e);return r&&(t?e[F]=n:delete e[F]),o}(e):function(e){return N.call(e)}(e)}function re(e){return we(e)&&ne(e)==i}function oe(e,t,n,r,o){e!==t&&function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[++r];if(!1===t(o[s],s,o))break}}(t,(function(i,a){if(o||(o=new Y),be(i))!function(e,t,n,r,o,i,a){var l=ce(e,n),u=ce(t,n),c=a.get(u);if(c)Z(e,n,c);else{var f,d,h,p,m,v=i?i(l,u,n+"",e,t,a):void 0,g=void 0===v;if(g){var y=pe(u),b=!y&&ve(u),w=!y&&!b&&Ee(u);v=u,y||b||w?pe(l)?v=l:we(m=l)&&me(m)?v=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(l):b?(g=!1,v=function(e){return e.slice()}(u)):w?(g=!1,p=new(h=(f=u).buffer).constructor(h.byteLength),new j(p).set(new j(h)),d=p,v=new f.constructor(d,f.byteOffset,f.length)):v=[]:function(e){if(!we(e)||ne(e)!=s)return!1;var t=M(e);if(null===t)return!0;var n=T.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&k.call(n)==_}(u)||he(u)?(v=l,he(l)?v=function(e){return function(e,t,n){var r=!n;n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],s=void 0;void 0===s&&(s=e[a]),r?te(n,a,s):J(n,a,s)}return n}(e,xe(e))}(l):be(l)&&!ge(l)||(v=function(e){return"function"!=typeof e.constructor||ue(e)?{}:$(M(e))}(u))):g=!1}g&&(a.set(u,v),o(v,u,r,i,a),a.delete(u)),Z(e,n,v)}}(e,t,a,n,oe,r,o);else{var l=r?r(ce(e,a),i,a+"",e,t,o):void 0;void 0===l&&(l=i),Z(e,a,l)}}),xe)}var ie=U?function(e,t){return U(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ae;function ae(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function se(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!be(e)||function(e){return!!P&&P in e}(e))&&(ge(e)?R:l).test(function(e){if(null!=e){try{return k.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(n)?n:void 0}function le(e,t){var n=typeof e;return!!(t=null==t?o:t)&&("number"==n||"symbol"!=n&&u.test(e))&&e>-1&&e%1==0&&e<t}function ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||A)}function ce(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var fe=function(e){var t=0,n=0;return function(){var r=W(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ie);function de(e,t){return e===t||e!=e&&t!=t}var he=re(function(){return arguments}())?re:function(e){return we(e)&&T.call(e,"callee")&&!B.call(e,"callee")},pe=Array.isArray;function me(e){return null!=e&&ye(e.length)&&!ge(e)}var ve=z||function(){return!1};function ge(e){if(!be(e))return!1;var t=ne(e);return t==a||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ye(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function we(e){return null!=e&&"object"==typeof e}var Ee=x?function(e){return function(t){return e(t)}}(x):function(e){return we(e)&&ye(e.length)&&!!c[ne(e)]};function xe(e){return me(e)?function(e,t){var n=pe(e),r=!n&&he(e),o=!n&&!r&&ve(e),i=!n&&!r&&!o&&Ee(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)!t&&!T.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||le(u,l))||s.push(u);return s}(e,!0):function(e){if(!be(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ue(e),n=[];for(var r in e)("constructor"!=r||!t&&T.call(e,r))&&n.push(r);return n}(e)}var Se,Oe=(Se=function(e,t,n){oe(e,t,n)},function(e,t){return fe(function(e,t,n){return t=G(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=G(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,Ae),e+"")}((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Se.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!be(n))return!1;var r=typeof t;return!!("number"==r?me(n)&&le(t,n.length):"string"==r&&t in n)&&de(n[t],e)}(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&Se(e,a,n)}return e})));function Ae(e){return e}e.exports=Oe},8083:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(8313),o=n(2187),i=n(553);function a(){var e=r.useContext(i.ob);return(0,o.HM)(e),e}},8157:(e,t,n)=>{e.exports=function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){return o(t[a][1][e]||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,r){(function(e){var n,r,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var i=0,a=new o(c),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var l=new e.MessageChannel;l.port1.onmessage=c,n=function(){l.port2.postMessage(0)}}var u=[];function c(){var e,t;r=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}r=!1}t.exports=function(e){1!==u.push(e)||r||n()}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){var r=e(1);function o(){}var i={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==o&&h(this,e)}function c(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function f(e,t,n){r((function(){var r;try{r=t(n)}catch(t){return i.reject(e,t)}r===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.resolve(e,r)}))}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var n=!1;function r(t){n||(n=!0,i.reject(e,t))}function o(t){n||(n=!0,i.resolve(e,t))}var a=p((function(){t(o,r)}));"error"===a.status&&r(a.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}t.exports=u,u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(o);return this.state!==l?f(n,this.state===s?e:t,this.outcome):this.queue.push(new c(n,e,t)),n},c.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){f(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){i.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){f(this.promise,this.onRejected,e)},i.resolve=function(e,t){var n=p(d,t);if("error"===n.status)return i.reject(e,n.value);var r=n.value;if(r)h(e,r);else{e.state=s,e.outcome=t;for(var o=-1,a=e.queue.length;++o<a;)e.queue[o].callFulfilled(t)}return e},i.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:i.resolve(new this(o),e)},u.reject=function(e){var t=new this(o);return i.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,u=new this(o);++l<n;)c(e[l],l);return u;function c(e,o){t.resolve(e).then((function(e){a[o]=e,++s!==n||r||(r=!0,i.resolve(u,a))}),(function(e){r||(r=!0,i.reject(u,e))}))}},u.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n,r=e.length,a=!1;if(!r)return this.resolve([]);for(var s=-1,l=new this(o);++s<r;)n=e[s],t.resolve(n).then((function(e){a||(a=!0,i.resolve(l,e))}),(function(e){a||(a=!0,i.reject(l,e))}));return l}},{1:1}],3:[function(e,t,r){(function(t){"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var o=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();function i(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(o){if("TypeError"!==o.name)throw o;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var a=Promise;function s(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function l(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function u(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function c(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var f="local-forage-detect-blob-support",d=void 0,h={},p=Object.prototype.toString,m="readonly",v="readwrite";function g(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),o=0;o<t;o++)r[o]=e.charCodeAt(o);return n}function y(e){return"boolean"==typeof d?a.resolve(d):function(e){return new a((function(t){var n=e.transaction(f,v),r=i([""]);n.objectStore(f).put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}(e).then((function(e){return d=e}))}function b(e){var t=h[e.name],n={};n.promise=new a((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then((function(){return n.promise})):t.dbReady=n.promise}function w(e){var t=h[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function E(e,t){var n=h[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function x(e,t){return new a((function(n,r){if(h[e.name]=h[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);b(e),e.db.close()}var i=[e.name];t&&i.push(e.version);var a=o.open.apply(o,i);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(f)}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){var t=a.result;t.onversionchange=function(e){e.target.close()},n(t),w(e)}}))}function S(e){return x(e,!1)}function O(e){return x(e,!0)}function A(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,o=e.version>e.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),o||n){if(n){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function C(e){return i([g(atob(e.data))],{type:e.type})}function k(e){return e&&e.__local_forage_encoded_blob}function T(e){var t=this,n=t._initReady().then((function(){var e=h[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return l(n,e,e),n}function P(e,t,n,r){void 0===r&&(r=1);try{var o=e.db.transaction(e.storeName,t);n(null,o)}catch(o){if(r>0&&(!e.db||"InvalidStateError"===o.name||"NotFoundError"===o.name))return a.resolve().then((function(){if(!e.db||"NotFoundError"===o.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),O(e)})).then((function(){return function(e){b(e);for(var t=h[e.name],n=t.forages,r=0;r<n.length;r++){var o=n[r];o._dbInfo.db&&(o._dbInfo.db.close(),o._dbInfo.db=null)}return e.db=null,S(e).then((function(t){return e.db=t,A(e)?O(e):t})).then((function(r){e.db=t.db=r;for(var o=0;o<n.length;o++)n[o]._dbInfo.db=r})).catch((function(t){throw E(e,t),t}))}(e).then((function(){P(e,t,n,r-1)}))})).catch(n);n(o)}}var N={_driver:"asyncStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var o=h[n.name];o||(o={forages:[],db:null,dbReady:null,deferredOperations:[]},h[n.name]=o),o.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=T);var i=[];function s(){return a.resolve()}for(var l=0;l<o.forages.length;l++){var u=o.forages[l];u!==t&&i.push(u._initReady().catch(s))}var c=o.forages.slice(0);return a.all(i).then((function(){return n.db=o.db,S(n)})).then((function(e){return n.db=e,A(n,t._defaultConfig.version)?O(n):e})).then((function(e){n.db=o.db=e,t._dbInfo=n;for(var r=0;r<c.length;r++){var i=c[r];i!==t&&(i._dbInfo.db=n.db,i._dbInfo.version=n.version)}}))},_support:function(){try{if(!o||!o.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){P(n._dbInfo,m,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName).openCursor(),s=1;a.onsuccess=function(){var n=a.result;if(n){var r=n.value;k(r)&&(r=C(r));var o=e(r,n.key,s++);void 0!==o?t(o):n.continue()}else t()},a.onerror=function(){r(a.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){P(n._dbInfo,m,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;void 0===e&&(e=null),k(e)&&(e=C(e)),t(e)},a.onerror=function(){r(a.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},setItem:function(e,t,n){var r=this;e=u(e);var o=new a((function(n,o){var i;r.ready().then((function(){return i=r._dbInfo,"[object Blob]"===p.call(t)?y(i.db).then((function(e){return e?t:(n=t,new a((function(e,t){var r=new FileReader;r.onerror=t,r.onloadend=function(t){var r=btoa(t.target.result||"");e({__local_forage_encoded_blob:!0,data:r,type:n.type})},r.readAsBinaryString(n)})));var n})):t})).then((function(t){P(r._dbInfo,v,(function(i,a){if(i)return o(i);try{var s=a.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var l=s.put(t,e);a.oncomplete=function(){void 0===t&&(t=null),n(t)},a.onabort=a.onerror=function(){var e=l.error?l.error:l.transaction.error;o(e)}}catch(e){o(e)}}))})).catch(o)}));return s(o,n),o},removeItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){P(n._dbInfo,v,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName).delete(e);i.oncomplete=function(){t()},i.onerror=function(){r(a.error)},i.onabort=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},clear:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){P(t._dbInfo,v,(function(r,o){if(r)return n(r);try{var i=o.objectStore(t._dbInfo.storeName).clear();o.oncomplete=function(){e()},o.onabort=o.onerror=function(){var e=i.error?i.error:i.transaction.error;n(e)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},length:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){P(t._dbInfo,m,(function(r,o){if(r)return n(r);try{var i=o.objectStore(t._dbInfo.storeName).count();i.onsuccess=function(){e(i.result)},i.onerror=function(){n(i.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},key:function(e,t){var n=this,r=new a((function(t,r){e<0?t(null):n.ready().then((function(){P(n._dbInfo,m,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName),s=!1,l=a.openKeyCursor();l.onsuccess=function(){var n=l.result;n?0===e||s?t(n.key):(s=!0,n.advance(e)):t(null)},l.onerror=function(){r(l.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},keys:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){P(t._dbInfo,m,(function(r,o){if(r)return n(r);try{var i=o.objectStore(t._dbInfo.storeName).openKeyCursor(),a=[];i.onsuccess=function(){var t=i.result;t?(a.push(t.key),t.continue()):e(a)},i.onerror=function(){n(i.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},dropInstance:function(e,t){t=c.apply(this,arguments);var n,r=this.config();if((e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName),e.name){var i=e.name===r.name&&this._dbInfo.db?a.resolve(this._dbInfo.db):S(e).then((function(t){var n=h[e.name],r=n.forages;n.db=t;for(var o=0;o<r.length;o++)r[o]._dbInfo.db=t;return t}));n=e.storeName?i.then((function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;b(e);var r=h[e.name],i=r.forages;t.close();for(var s=0;s<i.length;s++){var l=i[s];l._dbInfo.db=null,l._dbInfo.version=n}var u=new a((function(t,r){var i=o.open(e.name,n);i.onerror=function(e){i.result.close(),r(e)},i.onupgradeneeded=function(){i.result.deleteObjectStore(e.storeName)},i.onsuccess=function(){var e=i.result;e.close(),t(e)}}));return u.then((function(e){r.db=e;for(var t=0;t<i.length;t++){var n=i[t];n._dbInfo.db=e,w(n._dbInfo)}})).catch((function(t){throw(E(e,t)||a.resolve()).catch((function(){})),t}))}})):i.then((function(t){b(e);var n=h[e.name],r=n.forages;t.close();for(var i=0;i<r.length;i++)r[i]._dbInfo.db=null;var s=new a((function(t,n){var r=o.deleteDatabase(e.name);r.onerror=function(){var e=r.result;e&&e.close(),n(r.error)},r.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}}));return s.then((function(e){n.db=e;for(var t=0;t<r.length;t++)w(r[t]._dbInfo)})).catch((function(t){throw(E(e,t)||a.resolve()).catch((function(){})),t}))}))}else n=a.reject("Invalid arguments");return s(n,t),n}};var _="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",R=/^~~local_forage_type~([^~]+)~/,I="__lfsc__:",L="arbf",j="blob",M="si08",D="ui08",B="uic8",H="si16",F="si32",U="ur16",z="ui32",G="fl32",W="fl64",q=Object.prototype.toString;function V(e){var t,n,r,o,i,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var u=new ArrayBuffer(a),c=new Uint8Array(u);for(t=0;t<s;t+=4)n=_.indexOf(e[t]),r=_.indexOf(e[t+1]),o=_.indexOf(e[t+2]),i=_.indexOf(e[t+3]),c[l++]=n<<2|r>>4,c[l++]=(15&r)<<4|o>>2,c[l++]=(3&o)<<6|63&i;return u}function $(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=_[n[t]>>2],r+=_[(3&n[t])<<4|n[t+1]>>4],r+=_[(15&n[t+1])<<2|n[t+2]>>6],r+=_[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var K={serialize:function(e,t){var n="";if(e&&(n=q.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===q.call(e.buffer))){var r,o=I;e instanceof ArrayBuffer?(r=e,o+=L):(r=e.buffer,"[object Int8Array]"===n?o+=M:"[object Uint8Array]"===n?o+=D:"[object Uint8ClampedArray]"===n?o+=B:"[object Int16Array]"===n?o+=H:"[object Uint16Array]"===n?o+=U:"[object Int32Array]"===n?o+=F:"[object Uint32Array]"===n?o+=z:"[object Float32Array]"===n?o+=G:"[object Float64Array]"===n?o+=W:t(new Error("Failed to get type for BinaryArray"))),t(o+$(r))}else if("[object Blob]"===n){var i=new FileReader;i.onload=function(){var n="~~local_forage_type~"+e.type+"~"+$(this.result);t(I+j+n)},i.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}},deserialize:function(e){if(e.substring(0,9)!==I)return JSON.parse(e);var t,n=e.substring(13),r=e.substring(9,13);if(r===j&&R.test(n)){var o=n.match(R);t=o[1],n=n.substring(o[0].length)}var a=V(n);switch(r){case L:return a;case j:return i([a],{type:t});case M:return new Int8Array(a);case D:return new Uint8Array(a);case B:return new Uint8ClampedArray(a);case H:return new Int16Array(a);case U:return new Uint16Array(a);case F:return new Int32Array(a);case z:return new Uint32Array(a);case G:return new Float32Array(a);case W:return new Float64Array(a);default:throw new Error("Unkown type: "+r)}},stringToBuffer:V,bufferToString:$};function X(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function Q(e,t,n,r,o,i){e.executeSql(n,r,o,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,s){s.rows.length?i(e,a):X(e,t,(function(){e.executeSql(n,r,o,i)}),i)}),i):i(e,a)}),i)}function Y(e,t,n,r){var o=this;e=u(e);var i=new a((function(i,a){o.ready().then((function(){void 0===t&&(t=null);var s=t,l=o._dbInfo;l.serializer.serialize(t,(function(t,u){u?a(u):l.db.transaction((function(n){Q(n,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){i(s)}),(function(e,t){a(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void i(Y.apply(o,[e,s,n,r-1]));a(t)}}))}))})).catch(a)}));return s(i,n),i}var Z={_driver:"webSQLStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var o=new a((function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction((function(o){X(o,n,(function(){t._dbInfo=n,e()}),(function(e,t){r(t)}))}),r)}));return n.serializer=K,o},_support:"function"==typeof openDatabase,iterate:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){Q(n,o,"SELECT * FROM "+o.storeName,[],(function(n,r){for(var i=r.rows,a=i.length,s=0;s<a;s++){var l=i.item(s),u=l.value;if(u&&(u=o.serializer.deserialize(u)),void 0!==(u=e(u,l.key,s+1)))return void t(u)}t()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){Q(n,o,"SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=o.serializer.deserialize(r)),t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},setItem:function(e,t,n){return Y.apply(this,[e,t,n,1])},removeItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){Q(n,o,"DELETE FROM "+o.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},clear:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Q(t,r,"DELETE FROM "+r.storeName,[],(function(){e()}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},length:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Q(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(t,n){var r=n.rows.item(0).c;e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},key:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){Q(n,o,"SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},keys:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Q(t,r,"SELECT key FROM "+r.storeName,[],(function(t,n){for(var r=[],o=0;o<n.rows.length;o++)r.push(n.rows.item(o).key);e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},dropInstance:function(e,t){t=c.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,o=this;return s(r=e.name?new a((function(t){var r;r=e.name===n.name?o._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:r,storeNames:[e.storeName]}):t(function(e){return new a((function(t,n){e.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var o=[],i=0;i<r.rows.length;i++)o.push(r.rows.item(i).name);t({db:e,storeNames:o})}),(function(e,t){n(t)}))}),(function(e){n(e)}))}))}(r))})).then((function(e){return new a((function(t,n){e.db.transaction((function(r){function o(e){return new a((function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){n(t)}))}))}for(var i=[],s=0,l=e.storeNames.length;s<l;s++)i.push(o(e.storeNames[s]));a.all(i).then((function(){t()})).catch((function(e){n(e)}))}),(function(e){n(e)}))}))})):a.reject("Invalid arguments"),t),r}};function J(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function ee(){return!function(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(e){return!0}}()||localStorage.length>0}var te={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=J(e,this._defaultConfig),ee()?(this._dbInfo=t,t.serializer=K,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,o=r.length,i=localStorage.length,a=1,s=0;s<i;s++){var l=localStorage.key(s);if(0===l.indexOf(r)){var u=localStorage.getItem(l);if(u&&(u=t.serializer.deserialize(u)),void 0!==(u=e(u,l.substring(o),a++)))return u}}}));return s(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=n.ready().then((function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r}));return s(r,t),r},setItem:function(e,t,n){var r=this;e=u(e);var o=r.ready().then((function(){void 0===t&&(t=null);var n=t;return new a((function(o,i){var a=r._dbInfo;a.serializer.serialize(t,(function(t,r){if(r)i(r);else try{localStorage.setItem(a.keyPrefix+e,t),o(n)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||i(e),i(e)}}))}))}));return s(o,n),o},removeItem:function(e,t){var n=this;e=u(e);var r=n.ready().then((function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return s(r,t),r},clear:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return s(n,e),n},length:function(e){var t=this.keys().then((function(e){return e.length}));return s(t,e),t},key:function(e,t){var n=this,r=n.ready().then((function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t}));return s(r,t),r},keys:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo,n=localStorage.length,r=[],o=0;o<n;o++){var i=localStorage.key(o);0===i.indexOf(e.keyPrefix)&&r.push(i.substring(e.keyPrefix.length))}return r}));return s(n,e),n},dropInstance:function(e,t){if(t=c.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,o=this;return r=e.name?new a((function(t){e.storeName?t(J(e,o._defaultConfig)):t(e.name+"/")})).then((function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):a.reject("Invalid arguments"),s(r,t),r}},ne=function(e,t){for(var n=e.length,r=0;r<n;){if((o=e[r])===(i=t)||"number"==typeof o&&"number"==typeof i&&isNaN(o)&&isNaN(i))return!0;r++}var o,i;return!1},re=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},oe={},ie={},ae={INDEXEDDB:N,WEBSQL:Z,LOCALSTORAGE:te},se=[ae.INDEXEDDB._driver,ae.WEBSQL._driver,ae.LOCALSTORAGE._driver],le=["dropInstance"],ue=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(le),ce={description:"",driver:se.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function fe(e,t){e[t]=function(){var n=arguments;return e.ready().then((function(){return e[t].apply(e,n)}))}}function de(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(re(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var he=function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ae)if(ae.hasOwnProperty(n)){var r=ae[n],o=r._driver;this[n]=o,oe[o]||this.defineDriver(r)}this._defaultConfig=de({},ce),this._config=de({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new a((function(t,n){try{var r=e._driver,o=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(o);for(var i=ue.concat("_initStorage"),l=0,u=i.length;l<u;l++){var c=i[l];if((!ne(le,c)||e[c])&&"function"!=typeof e[c])return void n(o)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=a.reject(t);return s(n,arguments[arguments.length-1]),n}},n=0,r=le.length;n<r;n++){var o=le[n];e[o]||(e[o]=t(o))}}();var f=function(n){oe[r]&&console.info("Redefining LocalForage driver: "+r),oe[r]=e,ie[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(f,n):f(!!e._support):f(!0)}catch(e){n(e)}}));return l(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=oe[e]?a.resolve(oe[e]):a.reject(new Error("Driver not found."));return l(r,t,n),r},e.prototype.getSerializer=function(e){var t=a.resolve(K);return l(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return l(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;re(e)||(e=[e]);var o=this._getSupportedDrivers(e);function i(){r._config.driver=r.driver()}function s(e){return r._extend(e),i(),r._ready=r._initStorage(r._config),r._ready}var u=null!==this._driverSet?this._driverSet.catch((function(){return a.resolve()})):a.resolve();return this._driverSet=u.then((function(){var e=o[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then((function(e){r._driver=e._driver,i(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(e){return function(){var t=0;return function n(){for(;t<e.length;){var o=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(o).then(s).catch(n)}i();var l=new Error("No available storage method found.");return r._driverSet=a.reject(l),r._driverSet}()}}(o)}))})).catch((function(){i();var e=new Error("No available storage method found.");return r._driverSet=a.reject(e),r._driverSet})),l(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!ie[e]},e.prototype._extend=function(e){de(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e[n];this.supports(o)&&t.push(o)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=ue.length;e<t;e++)fe(this,ue[e])},e.prototype.createInstance=function(t){return new e(t)},e}(),pe=new he;t.exports=pe},{3:3}]},{},[4])(4)},8209:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2707);const o=function(e,t,n,o){return(0,r.Ay)(e,t,n,o),function(){!function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}(e,t,n,o)}}},8256:(e,t)=>{t.Y=function(e,t){return function(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(n),i=t[1],a=t[2],s=t[3]||"",l={};return l.inverse=!!i&&"not"===i.toLowerCase(),l.type=a?a.toLowerCase():"all",s=s.match(/\([^\)]+\)/g)||[],l.expressions=s.map((function(e){var t=e.match(r),n=t[1].toLowerCase().match(o);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every((function(e){var n=e.feature,r=e.modifier,o=e.value,i=t[n];if(!i)return!1;switch(n){case"orientation":case"scan":return i.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=u(o),i=u(i);break;case"resolution":o=l(o),i=l(i);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=s(o),i=s(i);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,i=parseInt(i,10)||0}switch(r){case"min":return i>=o;case"max":return i<=o;default:return i===o}}));return o&&!n||!o&&n}))};var n=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,o=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function l(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function u(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},8313:(e,t,n)=>{e.exports=n(9888)},8396:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n,r,o,i,a){var s=o||"<<anonymous>>",l=a||r;if(null==n[r])return t?new Error("Required "+i+" `"+l+"` was not specified in `"+s+"`."):null;for(var u=arguments.length,c=Array(u>6?u-6:0),f=6;f<u;f++)c[f-6]=arguments[f];return e.apply(void 0,[n,r,s,i,l].concat(c))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},e.exports=t.default},8523:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)((function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=null;return t.forEach((function(e){if(null==o){var t=e.apply(void 0,n);null!=t&&(o=t)}})),o}))};var r,o=(r=n(8396))&&r.__esModule?r:{default:r};e.exports=t.default},8613:(e,t,n)=>{n.d(t,{V:()=>i,c:()=>o});var r=n(2800);function o(e){var t,n;const{apps:o,externalRoutes:i}=(0,r.Q2)();if(o)for(const r of o)if(Array.isArray(r.routes))for(const o of r.routes)if((null===(t=null==o?void 0:o.handle)||void 0===t?void 0:t.role)===e)return null!==(n=o.path)&&void 0!==n?n:null;if(i)for(const t of i)if(t.role===e)return t.url;return null}function i(e){return void 0!==e.handle&&"role"in e.handle}},8779:(e,t,n)=>{n.d(t,{Bi:()=>l,PB:()=>c,Z5:()=>u,oG:()=>f});var r=n(2907),o=n.n(r);const i={config:o().object.isRequired,httpClient:o().oneOfType([o().func,o().object]).isRequired,loggingService:o().shape({logError:o().func.isRequired,logInfo:o().func.isRequired}).isRequired},a={sendTrackingLogEvent:o().func.isRequired,identifyAuthenticatedUser:o().func.isRequired,identifyAnonymousUser:o().func.isRequired,sendTrackEvent:o().func.isRequired,sendPageEvent:o().func.isRequired};let s;function l(e,t){return o().checkPropTypes(i,t,"property","Analytics"),s=new e(t),o().checkPropTypes(a,s,"property","AnalyticsService"),s}function u(e,t){s.identifyAuthenticatedUser(e,t)}function c(e){return s.identifyAnonymousUser(e)}function f(e,t){s.sendTrackEvent(e,t)}},8850:(e,t,n)=>{n.d(t,{A:()=>v});var r=n(9511),o=n(1550),i=n(7141),a=n.n(i),s=n(8313),l=n(6545),u=n(4041),c=n(2402),f=n(9148),d=n(2036),h=["bsPrefix","className","children","eventKey","disabled","href","onClick","onSelect","active","as"],p={as:d.A,disabled:!1},m=s.forwardRef((function(e,t){var n=e.bsPrefix,i=e.className,d=e.children,p=e.eventKey,m=e.disabled,v=e.href,g=e.onClick,y=e.onSelect,b=e.active,w=e.as,E=(0,o.A)(e,h),x=(0,c.oU)(n,"dropdown-item"),S=(0,s.useContext)(u.A),O=((0,s.useContext)(f.A)||{}).activeKey,A=(0,u.u)(p,v),C=null==b&&null!=A?(0,u.u)(O)===A:b,k=(0,l.A)((function(e){m||(g&&g(e),S&&S(A,e),y&&y(A,e))}));return s.createElement(w,(0,r.A)({},E,{ref:t,href:v,disabled:m,className:a()(i,x,C&&"active",m&&"disabled"),onClick:k}),d)}));m.displayName="DropdownItem",m.defaultProps=p;const v=m},8906:(e,t,n)=>{n.d(t,{X:()=>a,t:()=>i});var r=n(5601),o=n(2800);function i(e,t){const{apps:n}=(0,o.Q2)(),r=[];return t&&r.push(t),n&&n.forEach((t=>{Array.isArray(t.slots)&&t.slots.forEach((t=>{t.slotId===e&&r.push(t)}))})),r}function a(e){const{condition:t}=e;if(void 0!==(null==t?void 0:t.authenticated)){const e=null!==(0,r.vD)();if(t.authenticated!==e)return!1}if(void 0!==(null==t?void 0:t.active)){let e=!1;const n=(0,o.On)();for(const r of t.active)if(n.includes(r)){e=!0;break}if(!e)return!1}return void 0===(null==t?void 0:t.callback)||!1!==t.callback()}},8981:(e,t,n)=>{function r(e){e.offsetHeight}n.d(t,{A:()=>r})},9006:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return null!=e})).reduce((function(e,t){if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),null)}},9087:(e,t,n)=>{e.exports=n(2824)},9116:(e,t,n)=>{n.d(t,{Ah:()=>d,EJ:()=>f,Il:()=>u,JY:()=>o,cA:()=>s,k2:()=>c,k8:()=>h,o$:()=>a,pE:()=>l,yQ:()=>i});const r="APP",o=`${r}.PUBSUB_INITIALIZED`,i=`${r}.CONFIG_INITIALIZED`,a=`${r}.AUTH_INITIALIZED`,s=`${r}.I18N_INITIALIZED`,l=`${r}.LOGGING_INITIALIZED`,u=`${r}.ANALYTICS_INITIALIZED`,c=`${r}.READY`,f=`${r}.INIT_ERROR`,d="CONFIG.CHANGED",h="ACTIVE_ROLES_CHANGED"},9148:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(8313).createContext(null);r.displayName="NavContext";const o=r},9198:(e,t,n)=>{n.d(t,{cH:()=>d,Km:()=>h});var r,o=n(8313),i=n(3919),a=n(8906);function s(e){return Object.values(r).includes(e.op)}function l(e){return s(e)&&e.op===r.OPTIONS}function u(e){return s(e)&&e.op===r.REPLACE}function c(e){return s(e)&&"component"in e}function f(e){return s(e)&&"element"in e}function d(e){const t=(0,i.g)(e);let n=null;for(const e of t)(0,a.X)(e)&&u(e)&&(c(e)?n=e.component:f(e)&&(n=e.element));return n}function h(){const{id:e}=(0,i.x)();return function(e){const t=(0,i.g)(e),[n,r]=(0,o.useState)({});return(0,o.useEffect)((()=>{r((()=>{let e={};for(const n of t)(0,a.X)(n)&&l(n)&&(e=Object.assign(Object.assign({},e),n.options));return e})())}),[t]),n}(e)}!function(e){e.OPTIONS="layoutOptions",e.REPLACE="layoutReplace"}(r||(r={}))},9263:(e,t,n)=>{n.d(t,{Im:()=>l,tv:()=>c,Tu:()=>g,eW:()=>s,oF:()=>u,N1:()=>v,N6:()=>h,jA:()=>p,Jp:()=>d,xm:()=>m,Qh:()=>f,qg:()=>ie});var r,o,i,a=n(1635);function s(e){return e.type===o.literal}function l(e){return e.type===o.argument}function u(e){return e.type===o.number}function c(e){return e.type===o.date}function f(e){return e.type===o.time}function d(e){return e.type===o.select}function h(e){return e.type===o.plural}function p(e){return e.type===o.pound}function m(e){return e.type===o.tag}function v(e){return!(!e||"object"!=typeof e||e.type!==i.number)}function g(e){return!(!e||"object"!=typeof e||e.type!==i.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(r||(r={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(o||(o={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(i||(i={}));var y=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,b=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function w(e){var t={};return e.replace(b,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var E=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,x=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,S=/^(@+)?(\+|#+)?[rs]?$/g,O=/(\*)(0+)|(#+)(0+)|(0+)/g,A=/^(0+)$/;function C(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(S,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function k(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function T(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!A.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function P(e){return k(e)||{}}function N(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=(0,a.Cl)((0,a.Cl)((0,a.Cl)({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return(0,a.Cl)((0,a.Cl)({},e),P(t))}),{}));continue;case"engineering":t=(0,a.Cl)((0,a.Cl)((0,a.Cl)({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return(0,a.Cl)((0,a.Cl)({},e),P(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(O,(function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(A.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(x.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(x,(function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var i=o.options[0];"w"===i?t=(0,a.Cl)((0,a.Cl)({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=(0,a.Cl)((0,a.Cl)({},t),C(i)))}else if(S.test(o.stem))t=(0,a.Cl)((0,a.Cl)({},t),C(o.stem));else{var s=k(o.stem);s&&(t=(0,a.Cl)((0,a.Cl)({},t),s));var l=T(o.stem);l&&(t=(0,a.Cl)((0,a.Cl)({},t),l))}}return t}var _,R={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function I(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(R[n||""]||R[r||""]||R["".concat(r,"-001")]||R["001"])[0]}var L=new RegExp("^".concat(y.source,"*")),j=new RegExp("".concat(y.source,"*$"));function M(e,t){return{start:e,end:t}}var D=!!String.prototype.startsWith&&"_a".startsWith("a",1),B=!!String.fromCodePoint,H=!!Object.fromEntries,F=!!String.prototype.codePointAt,U=!!String.prototype.trimStart,z=!!String.prototype.trimEnd,G=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},W=!0;try{W="a"===(null===(_=Z("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===_?void 0:_[0])}catch(e){W=!1}var q,V=D?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},$=B?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;o>i;){if((n=e[i++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},K=H?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a}return t},X=F?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},Q=U?function(e){return e.trimStart()}:function(e){return e.replace(L,"")},Y=z?function(e){return e.trimEnd()}:function(e){return e.replace(j,"")};function Z(e,t){return new RegExp(e,t)}if(W){var J=Z("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");q=function(e,t){var n;return J.lastIndex=t,null!==(n=J.exec(e)[1])&&void 0!==n?n:""}}else q=function(e,t){for(var n=[];;){var r=X(e,t);if(void 0===r||ne(r)||re(r))break;n.push(r),t+=r>=65536?2:1}return $.apply(void 0,n)};var ee=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var i=[];!this.isEOF();){var a=this.char();if(123===a){if((s=this.parseArgument(e,n)).err)return s;i.push(s.val)}else{if(125===a&&e>0)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(r.UNMATCHED_CLOSING_TAG,M(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&te(this.peek()||0)){if((s=this.parseTag(e,t)).err)return s;i.push(s.val)}else{var s;if((s=this.parseLiteral(e,t)).err)return s;i.push(s.val)}}else{var l=this.clonePosition();this.bump(),i.push({type:o.pound,location:M(l,this.clonePosition())})}}}return{val:i,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:o.literal,value:"<".concat(i,"/>"),location:M(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(e+1,t,!0);if(a.err)return a;var s=a.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!te(this.char()))return this.error(r.INVALID_TAG,M(l,this.clonePosition()));var u=this.clonePosition();return i!==this.parseTagName()?this.error(r.UNMATCHED_CLOSING_TAG,M(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:o.tag,value:i,children:s,location:M(n,this.clonePosition())},err:null}:this.error(r.INVALID_TAG,M(l,this.clonePosition())))}return this.error(r.UNCLOSED_TAG,M(n,this.clonePosition()))}return this.error(r.INVALID_TAG,M(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var a=this.tryParseUnquoted(e,t);if(a)r+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var l=M(n,this.clonePosition());return{val:{type:o.literal,value:r,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(te(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return $.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),$(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,M(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(r.EMPTY_ARGUMENT,M(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(r.MALFORMED_ARGUMENT,M(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,M(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:o.argument,value:i,location:M(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,M(n,this.clonePosition())):this.parseArgumentOptions(e,t,i,n);default:return this.error(r.MALFORMED_ARGUMENT,M(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=q(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:M(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,s){var l,u=this.clonePosition(),c=this.parseIdentifierIfPossible().value,f=this.clonePosition();switch(c){case"":return this.error(r.EXPECT_ARGUMENT_TYPE,M(u,f));case"number":case"date":case"time":this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((x=this.parseSimpleArgStyleIfPossible()).err)return x;if(0===(g=Y(x.val)).length)return this.error(r.EXPECT_ARGUMENT_STYLE,M(this.clonePosition(),this.clonePosition()));d={style:g,styleLocation:M(h,this.clonePosition())}}if((S=this.tryParseArgumentClose(s)).err)return S;var p=M(s,this.clonePosition());if(d&&V(null==d?void 0:d.style,"::",0)){var m=Q(d.style.slice(2));if("number"===c)return(x=this.parseNumberSkeletonFromString(m,d.styleLocation)).err?x:{val:{type:o.number,value:n,location:p,style:x.val},err:null};if(0===m.length)return this.error(r.EXPECT_DATE_TIME_SKELETON,p);var v=m;this.locale&&(v=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var a=1+(1&i),s=i<2?1:3+(i>>1),l=I(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)n+="a";for(;a-- >0;)n=l+n}else n+="J"===o?"H":o}return n}(m,this.locale));var g={type:i.dateTime,pattern:v,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?w(v):{}};return{val:{type:"date"===c?o.date:o.time,value:n,location:p,style:g},err:null}}return{val:{type:"number"===c?o.number:"date"===c?o.date:o.time,value:n,location:p,style:null!==(l=null==d?void 0:d.style)&&void 0!==l?l:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(r.EXPECT_SELECT_ARGUMENT_OPTIONS,M(y,(0,a.Cl)({},y)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),E=0;if("select"!==c&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M(this.clonePosition(),this.clonePosition()));var x;if(this.bumpSpace(),(x=this.tryParseDecimalInteger(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return x;this.bumpSpace(),b=this.parseIdentifierIfPossible(),E=x.val}var S,O=this.tryParsePluralOrSelectOptions(e,c,t,b);if(O.err)return O;if((S=this.tryParseArgumentClose(s)).err)return S;var A=M(s,this.clonePosition());return"select"===c?{val:{type:o.select,value:n,options:K(O.val),location:A},err:null}:{val:{type:o.plural,value:n,options:K(O.val),offset:E,pluralType:"plural"===c?"cardinal":"ordinal",location:A},err:null};default:return this.error(r.INVALID_ARGUMENT_TYPE,M(u,f))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,M(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,M(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(E).filter((function(e){return e.length>0}));n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],a=o.slice(1),s=0,l=a;s<l.length;s++)if(0===l[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:a})}return t}(e)}catch(e){return this.error(r.INVALID_NUMBER_SKELETON,t)}return{val:{type:i.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?N(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,o){for(var i,a=!1,s=[],l=new Set,u=o.value,c=o.location;;){if(0===u.length){var f=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(r.EXPECT_PLURAL_ARGUMENT_SELECTOR,r.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=M(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}if(l.has(u))return this.error("select"===t?r.DUPLICATE_SELECT_ARGUMENT_SELECTOR:r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(a=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,M(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var m=this.tryParseArgumentClose(h);if(m.err)return m;s.push([u,{value:p.val,location:M(h,this.clonePosition())}]),l.add(u),this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===s.length?this.error("select"===t?r.EXPECT_SELECT_ARGUMENT_SELECTOR:r.EXPECT_PLURAL_ARGUMENT_SELECTOR,M(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(r.MISSING_OTHER_CLAUSE,M(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=M(r,this.clonePosition());return o?G(i*=n)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=X(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(V(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ne(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function te(e){return e>=97&&e<=122||e>=65&&e<=90}function ne(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function re(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function oe(e){e.forEach((function(e){if(delete e.location,d(e)||h(e))for(var t in e.options)delete e.options[t].location,oe(e.options[t].value);else u(e)&&v(e.style)||(c(e)||f(e))&&g(e.style)?delete e.style.location:m(e)&&oe(e.children)}))}function ie(e,t){void 0===t&&(t={}),t=(0,a.Cl)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new ee(e,t).parse();if(n.err){var o=SyntaxError(r[n.err.kind]);throw o.location=n.err.location,o.originalMessage=n.err.message,o}return(null==t?void 0:t.captureLocation)||oe(n.val),n.val}},9297:(e,t,n)=>{var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>gn,hasStandardBrowserEnv:()=>bn,hasStandardBrowserWebWorkerEnv:()=>wn,navigator:()=>yn,origin:()=>En});var o=n(7517),i=n(8313),a=n(5969),s=n(3273),l="undefined"==typeof window||"Deno"in globalThis;function u(){}function c(e,t){return"function"==typeof e?e(t):e}function f(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a)if(r){if(t.queryHash!==h(a,t.options))return!1}else if(!m(t.queryKey,a))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return!("boolean"==typeof s&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function d(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(p(t.options.mutationKey)!==p(i))return!1}else if(!m(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function h(e,t){return((null==t?void 0:t.queryKeyHashFn)||p)(e)}function p(e){return JSON.stringify(e,((e,t)=>y(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function m(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every((n=>m(e[n],t[n])))}function v(e,t){if(e===t)return e;const n=g(e)&&g(t);if(n||y(e)&&y(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),a=i.length,s=n?[]:{},l=new Set(r);let u=0;for(let r=0;r<a;r++){const o=n?r:i[r];(!n&&l.has(o)||n)&&void 0===e[o]&&void 0===t[o]?(s[o]=void 0,u++):(s[o]=v(e[o],t[o]),s[o]===e[o]&&void 0!==e[o]&&u++)}return o===a&&u===o?e:s}return t}function g(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function y(e){if(!b(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!b(n)&&!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function b(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?v(e,t):t}function E(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function x(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var S=Symbol();function O(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==S?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var A,C,k,T,P,N,_,R,I=e=>setTimeout(e,0),L=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=I;const i=r=>{t?e.push(r):o((()=>{n(r)}))};return{batch:i=>{let a;t++;try{a=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return a},batchCalls:e=>(...t)=>{i((()=>{e(...t)}))},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),j=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},M=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},D=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},B=new(T=class extends j{constructor(){super(),A.set(this,void 0),C.set(this,void 0),k.set(this,void 0),M(this,k,(e=>{if(!l&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}),"f")}onSubscribe(){D(this,C,"f")||this.setEventListener(D(this,k,"f"))}onUnsubscribe(){var e;this.hasListeners()||(null===(e=D(this,C,"f"))||void 0===e||e.call(this),M(this,C,void 0,"f"))}setEventListener(e){var t;M(this,k,e,"f"),null===(t=D(this,C,"f"))||void 0===t||t.call(this),M(this,C,e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})),"f")}setFocused(e){D(this,A,"f")!==e&&(M(this,A,e,"f"),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){var e;return"boolean"==typeof D(this,A,"f")?D(this,A,"f"):"hidden"!==(null===(e=globalThis.document)||void 0===e?void 0:e.visibilityState)}},A=new WeakMap,C=new WeakMap,k=new WeakMap,T),H=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},F=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},U=new(R=class extends j{constructor(){super(),P.set(this,!0),N.set(this,void 0),_.set(this,void 0),H(this,_,(e=>{if(!l&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}),"f")}onSubscribe(){F(this,N,"f")||this.setEventListener(F(this,_,"f"))}onUnsubscribe(){var e;this.hasListeners()||(null===(e=F(this,N,"f"))||void 0===e||e.call(this),H(this,N,void 0,"f"))}setEventListener(e){var t;H(this,_,e,"f"),null===(t=F(this,N,"f"))||void 0===t||t.call(this),H(this,N,e(this.setOnline.bind(this)),"f")}setOnline(e){F(this,P,"f")!==e&&(H(this,P,e,"f"),this.listeners.forEach((t=>{t(e)})))}isOnline(){return F(this,P,"f")}},P=new WeakMap,N=new WeakMap,_=new WeakMap,R);function z(e){return Math.min(1e3*Math.pow(2,e),3e4)}function G(e){return"online"!==(null!=e?e:"online")||U.isOnline()}var W=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function q(e){return e instanceof W}function V(e){let t,n=!1,r=0,o=!1;const i=function(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch((()=>{})),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}(),a=()=>B.isFocused()&&("always"===e.networkMode||U.isOnline())&&e.canRun(),s=()=>G(e.networkMode)&&e.canRun(),u=n=>{var r;o||(o=!0,null===(r=e.onSuccess)||void 0===r||r.call(e,n),null==t||t(),i.resolve(n))},c=n=>{var r;o||(o=!0,null===(r=e.onError)||void 0===r||r.call(e,n),null==t||t(),i.reject(n))},f=()=>new Promise((n=>{var r;t=e=>{(o||a())&&n(e)},null===(r=e.onPause)||void 0===r||r.call(e)})).then((()=>{var n;t=void 0,o||null===(n=e.onContinue)||void 0===n||n.call(e)})),d=()=>{if(o)return;let t;const i=0===r?e.initialPromise:void 0;try{t=null!=i?i:e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch((t=>{var i,s,u;if(o)return;const h=null!==(i=e.retry)&&void 0!==i?i:l?0:3,p=null!==(s=e.retryDelay)&&void 0!==s?s:z,m="function"==typeof p?p(r,t):p,v=!0===h||"number"==typeof h&&r<h||"function"==typeof h&&h(r,t);var g;!n&&v?(r++,null===(u=e.onFail)||void 0===u||u.call(e,r,t),(g=m,new Promise((e=>{setTimeout(e,g)}))).then((()=>a()?void 0:f())).then((()=>{n?c(t):d()}))):c(t)}))};return{promise:i,cancel:t=>{var n;o||(c(new W(t)),null===(n=e.abort)||void 0===n||n.call(e))},continue:()=>(null==t||t(),i),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:s,start:()=>(s()?d():f().then(d),i)}}var $,K,X,Q,Y,Z,J,ee,te,ne,re,oe,ie,ae,se,le,ue,ce,fe,de,he,pe,me,ve,ge=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},ye=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},be=(K=class{constructor(){$.set(this,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.gcTime)&&e>=0&&e!==1/0&&ge(this,$,setTimeout((()=>{this.optionalRemove()}),this.gcTime),"f")}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,null!=e?e:l?1/0:3e5)}clearGcTimeout(){ye(this,$,"f")&&(clearTimeout(ye(this,$,"f")),ge(this,$,void 0,"f"))}},$=new WeakMap,K),we=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},Ee=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},xe=(oe=class extends be{constructor(e){var t;super(),X.add(this),Q.set(this,void 0),Y.set(this,void 0),Z.set(this,void 0),J.set(this,void 0),ee.set(this,void 0),te.set(this,void 0),ne.set(this,void 0),we(this,ne,!1,"f"),we(this,te,e.defaultOptions,"f"),this.setOptions(e.options),this.observers=[],we(this,J,e.client,"f"),we(this,Z,Ee(this,J,"f").getQueryCache(),"f"),this.queryKey=e.queryKey,this.queryHash=e.queryHash,we(this,Q,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),"f"),this.state=null!==(t=e.state)&&void 0!==t?t:Ee(this,Q,"f"),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null===(e=Ee(this,ee,"f"))||void 0===e?void 0:e.promise}setOptions(e){this.options=Object.assign(Object.assign({},Ee(this,te,"f")),e),this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||Ee(this,Z,"f").remove(this)}setData(e,t){const n=w(this.state.data,e,this.options);return Ee(this,X,"m",re).call(this,{data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){Ee(this,X,"m",re).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=null===(t=Ee(this,ee,"f"))||void 0===t?void 0:t.promise;return null===(n=Ee(this,ee,"f"))||void 0===n||n.cancel(e),r?r.then(u).catch(u):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Ee(this,Q,"f"))}isActive(){return this.observers.some((e=>{return!1!==("function"==typeof(t=e.options.enabled)?t(this):t);var t}))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===S||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some((e=>"static"===c(e.options.staleTime,this)))}isStale(){return this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!function(e,t){return Math.max(e+(t||0)-Date.now(),0)}(this.state.dataUpdatedAt,e))}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));null==t||t.refetch({cancelRefetch:!1}),null===(e=Ee(this,ee,"f"))||void 0===e||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));null==t||t.refetch({cancelRefetch:!1}),null===(e=Ee(this,ee,"f"))||void 0===e||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),Ee(this,Z,"f").notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(Ee(this,ee,"f")&&(Ee(this,ne,"f")?Ee(this,ee,"f").cancel({revert:!0}):Ee(this,ee,"f").cancelRetry()),this.scheduleGc()),Ee(this,Z,"f").notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ee(this,X,"m",re).call(this,{type:"invalidate"})}fetch(e,t){var n,r,o;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(Ee(this,ee,"f"))return Ee(this,ee,"f").continueRetry(),Ee(this,ee,"f").promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const i=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(we(this,ne,!0,"f"),i.signal)})},s=()=>{const e=O(this.options,t),n=(()=>{const e={client:Ee(this,J,"f"),queryKey:this.queryKey,meta:this.meta};return a(e),e})();return we(this,ne,!1,"f"),this.options.persister?this.options.persister(e,n,this):e(n)},l=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:Ee(this,J,"f"),state:this.state,fetchFn:s};return a(e),e})();null===(n=this.options.behavior)||void 0===n||n.onFetch(l,this),we(this,Y,this.state,"f"),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null===(r=l.fetchOptions)||void 0===r?void 0:r.meta)||Ee(this,X,"m",re).call(this,{type:"fetch",meta:null===(o=l.fetchOptions)||void 0===o?void 0:o.meta});const u=e=>{var t,n,r,o;q(e)&&e.silent||Ee(this,X,"m",re).call(this,{type:"error",error:e}),q(e)||(null===(n=(t=Ee(this,Z,"f").config).onError)||void 0===n||n.call(t,e,this),null===(o=(r=Ee(this,Z,"f").config).onSettled)||void 0===o||o.call(r,this.state.data,e,this)),this.scheduleGc()};return we(this,ee,V({initialPromise:null==t?void 0:t.initialPromise,fn:l.fetchFn,abort:i.abort.bind(i),onSuccess:e=>{var t,n,r,o;if(void 0!==e){try{this.setData(e)}catch(e){return void u(e)}null===(n=(t=Ee(this,Z,"f").config).onSuccess)||void 0===n||n.call(t,e,this),null===(o=(r=Ee(this,Z,"f").config).onSettled)||void 0===o||o.call(r,e,this.state.error,this),this.scheduleGc()}else u(new Error(`${this.queryHash} data is undefined`))},onError:u,onFail:(e,t)=>{Ee(this,X,"m",re).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{Ee(this,X,"m",re).call(this,{type:"pause"})},onContinue:()=>{Ee(this,X,"m",re).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}),"f"),Ee(this,ee,"f").start()}},Q=new WeakMap,Y=new WeakMap,Z=new WeakMap,J=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,X=new WeakSet,re=function(e){this.state=(t=>{var n,r,o,i;switch(e.type){case"failed":return Object.assign(Object.assign({},t),{fetchFailureCount:e.failureCount,fetchFailureReason:e.error});case"pause":return Object.assign(Object.assign({},t),{fetchStatus:"paused"});case"continue":return Object.assign(Object.assign({},t),{fetchStatus:"fetching"});case"fetch":return Object.assign(Object.assign(Object.assign({},t),(o=t.data,i=this.options,Object.assign({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:G(i.networkMode)?"fetching":"paused"},void 0===o&&{error:null,status:"pending"}))),{fetchMeta:null!==(n=e.meta)&&void 0!==n?n:null});case"success":return we(this,Y,void 0,"f"),Object.assign(Object.assign(Object.assign({},t),{data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!==(r=e.dataUpdatedAt)&&void 0!==r?r:Date.now(),error:null,isInvalidated:!1,status:"success"}),!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const a=e.error;return q(a)&&a.revert&&Ee(this,Y,"f")?Object.assign(Object.assign({},Ee(this,Y,"f")),{fetchStatus:"idle"}):Object.assign(Object.assign({},t),{error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"});case"invalidate":return Object.assign(Object.assign({},t),{isInvalidated:!0});case"setState":return Object.assign(Object.assign({},t),e.state)}})(this.state),L.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),Ee(this,Z,"f").notify({query:this,type:"updated",action:e})}))},oe),Se=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},Oe=(ae=class extends j{constructor(e={}){super(),ie.set(this,void 0),this.config=e,function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?o.call(e,n):o?o.value=n:t.set(e,n)}(this,ie,new Map,"f")}build(e,t,n){var r;const o=t.queryKey,i=null!==(r=t.queryHash)&&void 0!==r?r:h(o,t);let a=this.get(i);return a||(a=new xe({client:e,queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}add(e){Se(this,ie,"f").has(e.queryHash)||(Se(this,ie,"f").set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=Se(this,ie,"f").get(e.queryHash);t&&(e.destroy(),t===e&&Se(this,ie,"f").delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){L.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return Se(this,ie,"f").get(e)}getAll(){return[...Se(this,ie,"f").values()]}find(e){const t=Object.assign({exact:!0},e);return this.getAll().find((e=>f(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>f(e,t))):t}notify(e){L.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){L.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){L.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},ie=new WeakMap,ae),Ae=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},Ce=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},ke=(de=class extends be{constructor(e){super(),se.add(this),le.set(this,void 0),ue.set(this,void 0),ce.set(this,void 0),this.mutationId=e.mutationId,Ae(this,ue,e.mutationCache,"f"),Ae(this,le,[],"f"),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){Ce(this,le,"f").includes(e)||(Ce(this,le,"f").push(e),this.clearGcTimeout(),Ce(this,ue,"f").notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Ae(this,le,Ce(this,le,"f").filter((t=>t!==e)),"f"),this.scheduleGc(),Ce(this,ue,"f").notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){Ce(this,le,"f").length||("pending"===this.state.status?this.scheduleGc():Ce(this,ue,"f").remove(this))}continue(){var e,t;return null!==(t=null===(e=Ce(this,ce,"f"))||void 0===e?void 0:e.continue())&&void 0!==t?t:this.execute(this.state.variables)}execute(e){return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function*(){var t,n,r,o,i,a,s,l,u,c,f,d,h,p,m,v,g,y,b,w,E;const x=()=>{Ce(this,se,"m",fe).call(this,{type:"continue"})};Ae(this,ce,V({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{Ce(this,se,"m",fe).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{Ce(this,se,"m",fe).call(this,{type:"pause"})},onContinue:x,retry:null!==(t=this.options.retry)&&void 0!==t?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Ce(this,ue,"f").canRun(this)}),"f");const S="pending"===this.state.status,O=!Ce(this,ce,"f").canStart();try{if(S)x();else{Ce(this,se,"m",fe).call(this,{type:"pending",variables:e,isPaused:O}),yield null===(r=(n=Ce(this,ue,"f").config).onMutate)||void 0===r?void 0:r.call(n,e,this);const t=yield null===(i=(o=this.options).onMutate)||void 0===i?void 0:i.call(o,e);t!==this.state.context&&Ce(this,se,"m",fe).call(this,{type:"pending",context:t,variables:e,isPaused:O})}const t=yield Ce(this,ce,"f").start();return yield null===(s=(a=Ce(this,ue,"f").config).onSuccess)||void 0===s?void 0:s.call(a,t,e,this.state.context,this),yield null===(u=(l=this.options).onSuccess)||void 0===u?void 0:u.call(l,t,e,this.state.context),yield null===(f=(c=Ce(this,ue,"f").config).onSettled)||void 0===f?void 0:f.call(c,t,null,this.state.variables,this.state.context,this),yield null===(h=(d=this.options).onSettled)||void 0===h?void 0:h.call(d,t,null,e,this.state.context),Ce(this,se,"m",fe).call(this,{type:"success",data:t}),t}catch(t){try{throw yield null===(m=(p=Ce(this,ue,"f").config).onError)||void 0===m?void 0:m.call(p,t,e,this.state.context,this),yield null===(g=(v=this.options).onError)||void 0===g?void 0:g.call(v,t,e,this.state.context),yield null===(b=(y=Ce(this,ue,"f").config).onSettled)||void 0===b?void 0:b.call(y,void 0,t,this.state.variables,this.state.context,this),yield null===(E=(w=this.options).onSettled)||void 0===E?void 0:E.call(w,void 0,t,e,this.state.context),t}finally{Ce(this,se,"m",fe).call(this,{type:"error",error:t})}}finally{Ce(this,ue,"f").runNext(this)}}))}},le=new WeakMap,ue=new WeakMap,ce=new WeakMap,se=new WeakSet,fe=function(e){this.state=(t=>{switch(e.type){case"failed":return Object.assign(Object.assign({},t),{failureCount:e.failureCount,failureReason:e.error});case"pause":return Object.assign(Object.assign({},t),{isPaused:!0});case"continue":return Object.assign(Object.assign({},t),{isPaused:!1});case"pending":return Object.assign(Object.assign({},t),{context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()});case"success":return Object.assign(Object.assign({},t),{data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return Object.assign(Object.assign({},t),{data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"})}})(this.state),L.batch((()=>{Ce(this,le,"f").forEach((t=>{t.onMutationUpdate(e)})),Ce(this,ue,"f").notify({mutation:this,type:"updated",action:e})}))},de),Te=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},Pe=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},Ne=(ve=class extends j{constructor(e={}){super(),he.set(this,void 0),pe.set(this,void 0),me.set(this,void 0),this.config=e,Te(this,he,new Set,"f"),Te(this,pe,new Map,"f"),Te(this,me,0,"f")}build(e,t,n){var r;const o=new ke({mutationCache:this,mutationId:Te(this,me,(r=Pe(this,me,"f"),++r),"f"),options:e.defaultMutationOptions(t),state:n});return this.add(o),o}add(e){Pe(this,he,"f").add(e);const t=_e(e);if("string"==typeof t){const n=Pe(this,pe,"f").get(t);n?n.push(e):Pe(this,pe,"f").set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(Pe(this,he,"f").delete(e)){const t=_e(e);if("string"==typeof t){const n=Pe(this,pe,"f").get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&Pe(this,pe,"f").delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=_e(e);if("string"==typeof t){const n=Pe(this,pe,"f").get(t),r=null==n?void 0:n.find((e=>"pending"===e.state.status));return!r||r===e}return!0}runNext(e){var t,n;const r=_e(e);if("string"==typeof r){const o=null===(t=Pe(this,pe,"f").get(r))||void 0===t?void 0:t.find((t=>t!==e&&t.state.isPaused));return null!==(n=null==o?void 0:o.continue())&&void 0!==n?n:Promise.resolve()}return Promise.resolve()}clear(){L.batch((()=>{Pe(this,he,"f").forEach((e=>{this.notify({type:"removed",mutation:e})})),Pe(this,he,"f").clear(),Pe(this,pe,"f").clear()}))}getAll(){return Array.from(Pe(this,he,"f"))}find(e){const t=Object.assign({exact:!0},e);return this.getAll().find((e=>d(t,e)))}findAll(e={}){return this.getAll().filter((t=>d(e,t)))}notify(e){L.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return L.batch((()=>Promise.all(e.map((e=>e.continue().catch(u))))))}},he=new WeakMap,pe=new WeakMap,me=new WeakMap,ve);function _e(e){var t;return null===(t=e.options.scope)||void 0===t?void 0:t.id}var Re=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function Ie(e){return{onFetch:(t,n)=>{var r,o,i,a,s;const l=t.options,u=null===(i=null===(o=null===(r=t.fetchOptions)||void 0===r?void 0:r.meta)||void 0===o?void 0:o.fetchMore)||void 0===i?void 0:i.direction,c=(null===(a=t.state.data)||void 0===a?void 0:a.pages)||[],f=(null===(s=t.state.data)||void 0===s?void 0:s.pageParams)||[];let d={pages:[],pageParams:[]},h=0;const p=()=>Re(this,void 0,void 0,(function*(){var n;let r=!1;const o=O(t.options,t.fetchOptions),i=(e,n,i)=>Re(this,void 0,void 0,(function*(){if(r)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);const a=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:i?"backward":"forward",meta:t.options.meta};var o;return o=e,Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",(()=>{r=!0})),t.signal)}),e})(),s=yield o(a),{maxPages:l}=t.options,u=i?x:E;return{pages:u(e.pages,s,l),pageParams:u(e.pageParams,n,l)}}));if(u&&c.length){const e="backward"===u,t={pages:c,pageParams:f},n=(e?je:Le)(l,t);d=yield i(t,n,e)}else{const t=null!=e?e:c.length;do{const e=0===h?null!==(n=f[0])&&void 0!==n?n:l.initialPageParam:Le(l,d);if(h>0&&null==e)break;d=yield i(d,e),h++}while(h<t)}return d}));t.options.persister?t.fetchFn=()=>{var e,r;return null===(r=(e=t.options).persister)||void 0===r?void 0:r.call(e,p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=p}}}function Le(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function je(e,{pages:t,pageParams:n}){var r;return t.length>0?null===(r=e.getPreviousPageParam)||void 0===r?void 0:r.call(e,t[0],t,n[0],n):void 0}var Me,De,Be,He,Fe,Ue,ze,Ge,We,qe=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},Ve=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},$e=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},Ke=(We=class{constructor(e={}){Me.set(this,void 0),De.set(this,void 0),Be.set(this,void 0),He.set(this,void 0),Fe.set(this,void 0),Ue.set(this,void 0),ze.set(this,void 0),Ge.set(this,void 0),Ve(this,Me,e.queryCache||new Oe,"f"),Ve(this,De,e.mutationCache||new Ne,"f"),Ve(this,Be,e.defaultOptions||{},"f"),Ve(this,He,new Map,"f"),Ve(this,Fe,new Map,"f"),Ve(this,Ue,0,"f")}mount(){var e;Ve(this,Ue,(e=$e(this,Ue,"f"),++e),"f"),1===$e(this,Ue,"f")&&(Ve(this,ze,B.subscribe((e=>qe(this,void 0,void 0,(function*(){e&&(yield this.resumePausedMutations(),$e(this,Me,"f").onFocus())})))),"f"),Ve(this,Ge,U.subscribe((e=>qe(this,void 0,void 0,(function*(){e&&(yield this.resumePausedMutations(),$e(this,Me,"f").onOnline())})))),"f"))}unmount(){var e,t,n;Ve(this,Ue,(n=$e(this,Ue,"f"),--n),"f"),0===$e(this,Ue,"f")&&(null===(e=$e(this,ze,"f"))||void 0===e||e.call(this),Ve(this,ze,void 0,"f"),null===(t=$e(this,Ge,"f"))||void 0===t||t.call(this),Ve(this,Ge,void 0,"f"))}isFetching(e){return $e(this,Me,"f").findAll(Object.assign(Object.assign({},e),{fetchStatus:"fetching"})).length}isMutating(e){return $e(this,De,"f").findAll(Object.assign(Object.assign({},e),{status:"pending"})).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null===(t=$e(this,Me,"f").get(n.queryHash))||void 0===t?void 0:t.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=$e(this,Me,"f").build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(c(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return $e(this,Me,"f").findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=$e(this,Me,"f").get(r.queryHash),i=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0!==i)return $e(this,Me,"f").build(this,r).setData(i,Object.assign(Object.assign({},n),{manual:!0}))}setQueriesData(e,t,n){return L.batch((()=>$e(this,Me,"f").findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null===(t=$e(this,Me,"f").get(n.queryHash))||void 0===t?void 0:t.state}removeQueries(e){const t=$e(this,Me,"f");L.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=$e(this,Me,"f");return L.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(Object.assign({type:"active"},e),t))))}cancelQueries(e,t={}){const n=Object.assign({revert:!0},t),r=L.batch((()=>$e(this,Me,"f").findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(u).catch(u)}invalidateQueries(e,t={}){return L.batch((()=>{var n,r;return $e(this,Me,"f").findAll(e).forEach((e=>{e.invalidate()})),"none"===(null==e?void 0:e.refetchType)?Promise.resolve():this.refetchQueries(Object.assign(Object.assign({},e),{type:null!==(r=null!==(n=null==e?void 0:e.refetchType)&&void 0!==n?n:null==e?void 0:e.type)&&void 0!==r?r:"active"}),t)}))}refetchQueries(e,t={}){var n;const r=Object.assign(Object.assign({},t),{cancelRefetch:null===(n=t.cancelRefetch)||void 0===n||n}),o=L.batch((()=>$e(this,Me,"f").findAll(e).filter((e=>!e.isDisabled()&&!e.isStatic())).map((e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(u)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(o).then(u)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=$e(this,Me,"f").build(this,t);return n.isStaleByTime(c(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(u).catch(u)}fetchInfiniteQuery(e){return e.behavior=Ie(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(u).catch(u)}ensureInfiniteQueryData(e){return e.behavior=Ie(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return U.isOnline()?$e(this,De,"f").resumePausedMutations():Promise.resolve()}getQueryCache(){return $e(this,Me,"f")}getMutationCache(){return $e(this,De,"f")}getDefaultOptions(){return $e(this,Be,"f")}setDefaultOptions(e){Ve(this,Be,e,"f")}setQueryDefaults(e,t){$e(this,He,"f").set(p(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...$e(this,He,"f").values()],n={};return t.forEach((t=>{m(e,t.queryKey)&&Object.assign(n,t.defaultOptions)})),n}setMutationDefaults(e,t){$e(this,Fe,"f").set(p(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...$e(this,Fe,"f").values()],n={};return t.forEach((t=>{m(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t=Object.assign(Object.assign(Object.assign(Object.assign({},$e(this,Be,"f").queries),this.getQueryDefaults(e.queryKey)),e),{_defaulted:!0});return t.queryHash||(t.queryHash=h(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===S&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:Object.assign(Object.assign(Object.assign(Object.assign({},$e(this,Be,"f").mutations),(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey)),e),{_defaulted:!0})}clear(){$e(this,Me,"f").clear(),$e(this,De,"f").clear()}},Me=new WeakMap,De=new WeakMap,Be=new WeakMap,He=new WeakMap,Fe=new WeakMap,Ue=new WeakMap,ze=new WeakMap,Ge=new WeakMap,We),Xe=i.createContext(void 0),Qe=({client:e,children:t})=>(i.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),(0,o.jsx)(Xe.Provider,{value:e,children:t})),Ye=n(551),Ze=n(9116),Je=n(275),et=n(8779);var tt=n(419),nt=n.n(tt),rt=n(7357),ot=n.n(rt);function it(e,t){if(null==e||"object"!=typeof e&&!Array.isArray(e))return e;if(Array.isArray(e))return e.map((e=>it(e,t)));const n={};return Object.entries(e).forEach((([e,r])=>{n[t(e)]=it(r,t)})),n}const at=class{constructor({httpClient:e,loggingService:t,config:n}){this.loggingService=t,this.httpClient=e,this.trackingLogApiUrl=`${n.lmsBaseUrl}/event`,this.segmentKey=n.segmentKey,this.hasIdentifyBeenCalled=!1,this.segmentInitialized=!1,this.segmentKey&&this.initializeSegment()}initializeSegment(){n.g.analytics=n.g.analytics||[];const{analytics:e}=n.g;e.initialize||e.invoked?this.segmentInitialized=!0:(e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"],e.factory=t=>(...n)=>(n.unshift(t),e.push(n),e),e.methods.forEach((t=>{e[t]=e.factory(t)})),e.load=(t,n)=>{const r=document.createElement("script");r.type="text/javascript",r.onerror=()=>{this.segmentInitialized=!1;const e=new Event("segmentFailed");document.dispatchEvent(e)},r.async=!0,r.src=`https://cdn.segment.com/analytics.js/v1/${t}/analytics.min.js`;const o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(r,o),e._loadOptions=n,this.segmentInitialized=!0},e.SNIPPET_VERSION="4.1.0",e.load(this.segmentKey))}checkIdentifyCalled(){this.hasIdentifyBeenCalled||this.loggingService.logError("Identify must be called before other tracking events.")}sendTrackingLogEvent(e,t){const r=it(t,ot()),o={event_type:e,event:JSON.stringify(r),page:n.g.location.href};return this.httpClient.post(this.trackingLogApiUrl,((e,t={})=>{const{sorted:n,ignorenull:r,ignoreEmptyArray:o,useDot:i,skipIndex:a,skipBracket:s,whitespace:l="+"}=t,u=e=>String(e).replace(/[^ !'()~*]/gu,encodeURIComponent).replace(/ /g,l).replace(/[!'()~*]/g,(e=>`%${e.charCodeAt().toString(16).slice(-2).toUpperCase()}`)),c=(e,t=Object.keys(e))=>n?t.sort():t,f=e=>e.filter((e=>e)).join("&"),d=(e,t,n=typeof t,l=null)=>(t===l?l=r?l:u(e)+"="+l:/string|number|boolean/.test(n)?l=u(e)+"="+u(t):Array.isArray(t)?l=((e,t,n=(s?"":"[]"))=>t.length?f(t.map(((t,r)=>d(a?e+n:e+"["+r+"]",t)))):o?null:u(e+n))(e,t):t instanceof Set?l=((e,t)=>f(Array.from(t).map((t=>d(e,t)))))(e,t):"object"===n&&(l=((e,t)=>f(c(t).map((n=>d(i?`${e}.${n}`:`${e}[${n}]`,t[n])))))(e,t)),l);return e&&f(c(e).map((t=>d(t,e[t]))))})(o),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).catch((e=>{this.loggingService.logError(e)}))}identifyAuthenticatedUser(e,t){if(!e)throw new Error("UserId is required for identifyAuthenticatedUser.");this.segmentInitialized&&(n.g.analytics.identify(e,t),this.hasIdentifyBeenCalled=!0)}identifyAnonymousUser(e){return this.segmentInitialized?new Promise(((e,t)=>{n.g.analytics.ready((()=>{n.g.analytics.user().id()&&n.g.analytics.reset(),this.hasIdentifyBeenCalled=!0,e()})),document.addEventListener("segmentFailed",e),setTimeout((()=>{var t;(null===(t=n.g.ga)||void 0===t?void 0:t.create)&&n.g.google_tag_manager||(this.segmentInitialized=!1,e())}),2e3)})):Promise.resolve()}sendTrackEvent(e,t){this.segmentInitialized&&(this.checkIdentifyCalled(),n.g.analytics.track(e,t))}sendPageEvent(e,t,r){this.segmentInitialized&&(this.checkIdentifyCalled(),n.g.analytics.page(e,t,r))}};var st=n(5601);function lt(e,t){return function(){return e.apply(t,arguments)}}const{toString:ut}=Object.prototype,{getPrototypeOf:ct}=Object,{iterator:ft,toStringTag:dt}=Symbol,ht=(pt=Object.create(null),e=>{const t=ut.call(e);return pt[t]||(pt[t]=t.slice(8,-1).toLowerCase())});var pt;const mt=e=>(e=e.toLowerCase(),t=>ht(t)===e),vt=e=>t=>typeof t===e,{isArray:gt}=Array,yt=vt("undefined"),bt=mt("ArrayBuffer"),wt=vt("string"),Et=vt("function"),xt=vt("number"),St=e=>null!==e&&"object"==typeof e,Ot=e=>{if("object"!==ht(e))return!1;const t=ct(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||dt in e||ft in e)},At=mt("Date"),Ct=mt("File"),kt=mt("Blob"),Tt=mt("FileList"),Pt=mt("URLSearchParams"),[Nt,_t,Rt,It]=["ReadableStream","Request","Response","Headers"].map(mt);function Lt(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),gt(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function jt(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Mt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Dt=e=>!yt(e)&&e!==Mt,Bt=(Ht="undefined"!=typeof Uint8Array&&ct(Uint8Array),e=>Ht&&e instanceof Ht);var Ht;const Ft=mt("HTMLFormElement"),Ut=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),zt=mt("RegExp"),Gt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Lt(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Wt=mt("AsyncFunction"),qt=(Vt="function"==typeof setImmediate,$t=Et(Mt.postMessage),Vt?setImmediate:$t?(Kt=`axios@${Math.random()}`,Xt=[],Mt.addEventListener("message",(({source:e,data:t})=>{e===Mt&&t===Kt&&Xt.length&&Xt.shift()()}),!1),e=>{Xt.push(e),Mt.postMessage(Kt,"*")}):e=>setTimeout(e));var Vt,$t,Kt,Xt;const Qt="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Mt):"undefined"!=typeof process&&process.nextTick||qt,Yt={isArray:gt,isArrayBuffer:bt,isBuffer:function(e){return null!==e&&!yt(e)&&null!==e.constructor&&!yt(e.constructor)&&Et(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Et(e.append)&&("formdata"===(t=ht(e))||"object"===t&&Et(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&bt(e.buffer),t},isString:wt,isNumber:xt,isBoolean:e=>!0===e||!1===e,isObject:St,isPlainObject:Ot,isReadableStream:Nt,isRequest:_t,isResponse:Rt,isHeaders:It,isUndefined:yt,isDate:At,isFile:Ct,isBlob:kt,isRegExp:zt,isFunction:Et,isStream:e=>St(e)&&Et(e.pipe),isURLSearchParams:Pt,isTypedArray:Bt,isFileList:Tt,forEach:Lt,merge:function e(){const{caseless:t}=Dt(this)&&this||{},n={},r=(r,o)=>{const i=t&&jt(n,o)||o;Ot(n[i])&&Ot(r)?n[i]=e(n[i],r):Ot(r)?n[i]=e({},r):gt(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Lt(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Lt(t,((t,r)=>{n&&Et(t)?e[r]=lt(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&ct(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:ht,kindOfTest:mt,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(gt(e))return e;let t=e.length;if(!xt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[ft]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Ft,hasOwnProperty:Ut,hasOwnProp:Ut,reduceDescriptors:Gt,freezeMethods:e=>{Gt(e,((t,n)=>{if(Et(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Et(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return gt(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:jt,global:Mt,isContextDefined:Dt,isSpecCompliantForm:function(e){return!!(e&&Et(e.append)&&"FormData"===e[dt]&&e[ft])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(St(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=gt(e)?[]:{};return Lt(e,((e,t)=>{const i=n(e,r+1);!yt(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Wt,isThenable:e=>e&&(St(e)||Et(e))&&Et(e.then)&&Et(e.catch),setImmediate:qt,asap:Qt,isIterable:e=>null!=e&&Et(e[ft])};function Zt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Yt.inherits(Zt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Yt.toJSONObject(this.config),code:this.code,status:this.status}}});const Jt=Zt.prototype,en={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{en[e]={value:e}})),Object.defineProperties(Zt,en),Object.defineProperty(Jt,"isAxiosError",{value:!0}),Zt.from=(e,t,n,r,o,i)=>{const a=Object.create(Jt);return Yt.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Zt.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const tn=Zt;function nn(e){return Yt.isPlainObject(e)||Yt.isArray(e)}function rn(e){return Yt.endsWith(e,"[]")?e.slice(0,-2):e}function on(e,t,n){return e?e.concat(t).map((function(e,t){return e=rn(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const an=Yt.toFlatObject(Yt,{},null,(function(e){return/^is[A-Z]/.test(e)})),sn=function(e,t,n){if(!Yt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Yt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Yt.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Yt.isSpecCompliantForm(t);if(!Yt.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Yt.isDate(e))return e.toISOString();if(!s&&Yt.isBlob(e))throw new tn("Blob is not supported. Use a Buffer instead.");return Yt.isArrayBuffer(e)||Yt.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(Yt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Yt.isArray(e)&&function(e){return Yt.isArray(e)&&!e.some(nn)}(e)||(Yt.isFileList(e)||Yt.endsWith(n,"[]"))&&(s=Yt.toArray(e)))return n=rn(n),s.forEach((function(e,r){!Yt.isUndefined(e)&&null!==e&&t.append(!0===a?on([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!nn(e)||(t.append(on(o,n,i),l(e)),!1)}const c=[],f=Object.assign(an,{defaultVisitor:u,convertValue:l,isVisitable:nn});if(!Yt.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Yt.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),Yt.forEach(n,(function(n,i){!0===(!(Yt.isUndefined(n)||null===n)&&o.call(t,n,Yt.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])})),c.pop()}}(e),t};function ln(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function un(e,t){this._pairs=[],e&&sn(e,this,t)}const cn=un.prototype;cn.append=function(e,t){this._pairs.push([e,t])},cn.toString=function(e){const t=e?function(t){return e.call(this,t,ln)}:ln;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const fn=un;function dn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function hn(e,t,n){if(!t)return e;const r=n&&n.encode||dn;Yt.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):Yt.isURLSearchParams(t)?t.toString():new fn(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const pn=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Yt.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},mn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vn={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:fn,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},gn="undefined"!=typeof window&&"undefined"!=typeof document,yn="object"==typeof navigator&&navigator||void 0,bn=gn&&(!yn||["ReactNative","NativeScript","NS"].indexOf(yn.product)<0),wn="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,En=gn&&window.location.href||"http://localhost",xn=Object.assign(Object.assign({},r),vn),Sn=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&Yt.isArray(r)?r.length:i,s?(Yt.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&Yt.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Yt.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(Yt.isFormData(e)&&Yt.isFunction(e.entries)){const n={};return Yt.forEachEntry(e,((e,r)=>{t(function(e){return Yt.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},On={transitional:mn,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Yt.isObject(e);if(o&&Yt.isHTMLForm(e)&&(e=new FormData(e)),Yt.isFormData(e))return r?JSON.stringify(Sn(e)):e;if(Yt.isArrayBuffer(e)||Yt.isBuffer(e)||Yt.isStream(e)||Yt.isFile(e)||Yt.isBlob(e)||Yt.isReadableStream(e))return e;if(Yt.isArrayBufferView(e))return e.buffer;if(Yt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return sn(e,new xn.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return xn.isNode&&Yt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Yt.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return sn(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(Yt.isString(e))try{return(0,JSON.parse)(e),Yt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||On.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Yt.isResponse(e)||Yt.isReadableStream(e))return e;if(e&&Yt.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw tn.from(e,tn.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xn.classes.FormData,Blob:xn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Yt.forEach(["delete","get","head","post","put","patch"],(e=>{On.headers[e]={}}));const An=On,Cn=Yt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),kn=Symbol("internals");function Tn(e){return e&&String(e).trim().toLowerCase()}function Pn(e){return!1===e||null==e?e:Yt.isArray(e)?e.map(Pn):String(e)}function Nn(e,t,n,r,o){return Yt.isFunction(r)?r.call(this,t,n):(o&&(t=n),Yt.isString(t)?Yt.isString(r)?-1!==t.indexOf(r):Yt.isRegExp(r)?r.test(t):void 0:void 0)}class _n{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Tn(t);if(!o)throw new Error("header name must be a non-empty string");const i=Yt.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Pn(e))}const i=(e,t)=>Yt.forEach(e,((e,n)=>o(e,n,t)));if(Yt.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Yt.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Cn[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Yt.isObject(e)&&Yt.isIterable(e)){let n,r,o={};for(const t of e){if(!Yt.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?Yt.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Tn(e)){const n=Yt.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Yt.isFunction(t))return t.call(this,e,n);if(Yt.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Tn(e)){const n=Yt.findKey(this,e);return!(!n||void 0===this[n]||t&&!Nn(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Tn(e)){const o=Yt.findKey(n,e);!o||t&&!Nn(0,n[o],o,t)||(delete n[o],r=!0)}}return Yt.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Nn(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Yt.forEach(this,((r,o)=>{const i=Yt.findKey(n,o);if(i)return t[i]=Pn(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Pn(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Yt.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Yt.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[kn]=this[kn]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Tn(e);t[r]||(function(e,t){const n=Yt.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Yt.isArray(e)?e.forEach(r):r(e),this}}_n.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Yt.reduceDescriptors(_n.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Yt.freezeMethods(_n);const Rn=_n;function In(e,t){const n=this||An,r=t||n,o=Rn.from(r.headers);let i=r.data;return Yt.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ln(e){return!(!e||!e.__CANCEL__)}function jn(e,t,n){tn.call(this,null==e?"canceled":e,tn.ERR_CANCELED,t,n),this.name="CanceledError"}Yt.inherits(jn,tn,{__CANCEL__:!0});const Mn=jn;function Dn(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new tn("Request failed with status code "+n.status,[tn.ERR_BAD_REQUEST,tn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Bn=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[a];o||(o=l),n[i]=s,r[i]=l;let c=a,f=0;for(;c!==i;)f+=n[c++],c%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const d=u&&l-u;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Hn=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Fn=e=>(...t)=>Yt.asap((()=>e(...t))),Un=xn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,xn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(xn.origin),xn.navigator&&/(msie|trident)/i.test(xn.navigator.userAgent)):()=>!0,zn=xn.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Yt.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Yt.isString(r)&&a.push("path="+r),Yt.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Gn(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Wn=e=>e instanceof Rn?Object.assign({},e):e;function qn(e,t){t=t||{};const n={};function r(e,t,n,r){return Yt.isPlainObject(e)&&Yt.isPlainObject(t)?Yt.merge.call({caseless:r},e,t):Yt.isPlainObject(t)?Yt.merge({},t):Yt.isArray(t)?t.slice():t}function o(e,t,n,o){return Yt.isUndefined(t)?Yt.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Yt.isUndefined(t))return r(void 0,t)}function a(e,t){return Yt.isUndefined(t)?Yt.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(Wn(e),Wn(t),0,!0)};return Yt.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Yt.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Vn=e=>{const t=qn({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Rn.from(s),t.url=hn(Gn(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Yt.isFormData(r))if(xn.hasStandardBrowserEnv||xn.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(xn.hasStandardBrowserEnv&&(o&&Yt.isFunction(o)&&(o=o(t)),o||!1!==o&&Un(t.url))){const e=i&&a&&zn.read(a);e&&s.set(i,e)}return t},$n="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Vn(e);let o=r.data;const i=Rn.from(r.headers).normalize();let a,s,l,u,c,{responseType:f,onUploadProgress:d,onDownloadProgress:h}=r;function p(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function v(){if(!m)return;const r=Rn.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Dn((function(e){t(e),p()}),(function(e){n(e),p()}),{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(v)},m.onabort=function(){m&&(n(new tn("Request aborted",tn.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new tn("Network Error",tn.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||mn;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new tn(t,o.clarifyTimeoutError?tn.ETIMEDOUT:tn.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&Yt.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),Yt.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),h&&([l,c]=Bn(h,!0),m.addEventListener("progress",l)),d&&m.upload&&([s,u]=Bn(d),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Mn(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);g&&-1===xn.protocols.indexOf(g)?n(new tn("Unsupported protocol "+g+":",tn.ERR_BAD_REQUEST,e)):m.send(o||null)}))},Kn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof tn?t:new Mn(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new tn(`timeout ${t} of ms exceeded`,tn.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>Yt.asap(a),s}};var Xn=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}},Qn=function(e){return this instanceof Qn?(this.v=e,this):new Qn(e)},Yn=function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:Qn(e[r](t)),done:!1}:o?o(t):t}:o}},Zn=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",(function(e){return function(t){return Promise.resolve(t).then(e,u)}})),r[Symbol.asyncIterator]=function(){return this},r;function a(e,t){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))},t&&(r[e]=t(r[e])))}function s(e,t){try{!function(e){e.value instanceof Qn?Promise.resolve(e.value.v).then(l,u):c(i[0][2],e)}(o[e](t))}catch(e){c(i[0][3],e)}}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}};const Jn=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},er=(e,t,n,r)=>{const o=function(e,t){return Zn(this,arguments,(function*(){var n,r,o,i;try{for(var a,s=!0,l=Xn(function(e){return Zn(this,arguments,(function*(){if(e[Symbol.asyncIterator])return yield Qn(yield*Yn(Xn(e))),yield Qn(void 0);const t=e.getReader();try{for(;;){const{done:e,value:n}=yield Qn(t.read());if(e)break;yield yield Qn(n)}}finally{yield Qn(t.cancel())}}))}(e));!(n=(a=yield Qn(l.next())).done);s=!0){i=a.value,s=!1;const e=i;yield Qn(yield*Yn(Xn(Jn(e,t))))}}catch(e){r={error:e}}finally{try{s||n||!(o=l.return)||(yield Qn(o.call(l)))}finally{if(r)throw r.error}}}))}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({pull(e){return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function*(){try{const{done:t,value:r}=yield o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}}))},cancel:e=>(s(e),o.return())},{highWaterMark:2})};var tr=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const nr="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,rr=nr&&"function"==typeof ReadableStream,or=nr&&("function"==typeof TextEncoder?(ir=new TextEncoder,e=>ir.encode(e)):e=>tr(void 0,void 0,void 0,(function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})));var ir;const ar=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},sr=rr&&ar((()=>{let e=!1;const t=new Request(xn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),lr=rr&&ar((()=>Yt.isReadableStream(new Response("").body))),ur={stream:lr&&(e=>e.body)};var cr;nr&&(cr=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!ur[e]&&(ur[e]=Yt.isFunction(cr[e])?t=>t[e]():(t,n)=>{throw new tn(`Response type '${e}' is not supported`,tn.ERR_NOT_SUPPORT,n)})})));const fr={http:null,xhr:$n,fetch:nr&&(e=>tr(void 0,void 0,void 0,(function*(){let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=Vn(e);u=u?(u+"").toLowerCase():"text";let h,p=Kn([o,i&&i.toAbortSignal()],a);const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let v;try{if(l&&sr&&"get"!==n&&"head"!==n&&0!==(v=yield((e,t)=>tr(void 0,void 0,void 0,(function*(){const n=Yt.toFiniteNumber(e.getContentLength());return null==n?(e=>tr(void 0,void 0,void 0,(function*(){if(null==e)return 0;if(Yt.isBlob(e))return e.size;if(Yt.isSpecCompliantForm(e)){const t=new Request(xn.origin,{method:"POST",body:e});return(yield t.arrayBuffer()).byteLength}return Yt.isArrayBufferView(e)||Yt.isArrayBuffer(e)?e.byteLength:(Yt.isURLSearchParams(e)&&(e+=""),Yt.isString(e)?(yield or(e)).byteLength:void 0)})))(t):n})))(c,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Yt.isFormData(r)&&(e=n.headers.get("content-type"))&&c.setContentType(e),n.body){const[e,t]=Hn(v,Bn(Fn(l)));r=er(n.body,65536,e,t)}}Yt.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;h=new Request(t,Object.assign(Object.assign({},d),{signal:p,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:o?f:void 0}));let i=yield fetch(h);const a=lr&&("stream"===u||"response"===u);if(lr&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=Yt.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&Hn(t,Bn(Fn(s),!0))||[];i=new Response(er(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}u=u||"text";let g=yield ur[Yt.findKey(ur,u)||"text"](i,e);return!a&&m&&m(),yield new Promise(((t,n)=>{Dn(t,n,{data:g,headers:Rn.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:h})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new tn("Network Error",tn.ERR_NETWORK,e,h),{cause:t.cause||t});throw tn.from(t,t&&t.code,e,h)}})))};Yt.forEach(fr,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const dr=e=>`- ${e}`,hr=e=>Yt.isFunction(e)||null===e||!1===e,pr=e=>{e=Yt.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!hr(n)&&(r=fr[(t=String(n)).toLowerCase()],void 0===r))throw new tn(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(dr).join("\n"):" "+dr(e[0]):"as no adapter specified";throw new tn("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function mr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Mn(null,e)}function vr(e){return mr(e),e.headers=Rn.from(e.headers),e.data=In.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),pr(e.adapter||An.adapter)(e).then((function(t){return mr(e),t.data=In.call(e,e.transformResponse,t),t.headers=Rn.from(t.headers),t}),(function(t){return Ln(t)||(mr(e),t&&t.response&&(t.response.data=In.call(e,e.transformResponse,t.response),t.response.headers=Rn.from(t.response.headers))),Promise.reject(t)}))}const gr={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{gr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const yr={};gr.transitional=function(e,t,n){function r(e,t){return"[Axios v1.9.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new tn(r(o," has been removed"+(t?" in "+t:"")),tn.ERR_DEPRECATED);return t&&!yr[o]&&(yr[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},gr.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const br={assertOptions:function(e,t,n){if("object"!=typeof e)throw new tn("options must be an object",tn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new tn("option "+i+" must be "+n,tn.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new tn("Unknown option "+i,tn.ERR_BAD_OPTION)}},validators:gr};const wr=br.validators;class Er{constructor(e){this.defaults=e||{},this.interceptors={request:new pn,response:new pn}}request(e,t){return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function*(){try{return yield this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}))}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=qn(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&br.assertOptions(n,{silentJSONParsing:wr.transitional(wr.boolean),forcedJSONParsing:wr.transitional(wr.boolean),clarifyTimeoutError:wr.transitional(wr.boolean)},!1),null!=r&&(Yt.isFunction(r)?t.paramsSerializer={serialize:r}:br.assertOptions(r,{encode:wr.function,serialize:wr.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),br.assertOptions(t,{baseUrl:wr.spelling("baseURL"),withXsrfToken:wr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Yt.merge(o.common,o[t.method]);o&&Yt.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Rn.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let c,f=0;if(!s){const e=[vr.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),c=e.length,u=Promise.resolve(t);f<c;)u=u.then(e[f++],e[f++]);return u}c=a.length;let d=t;for(f=0;f<c;){const e=a[f++],t=a[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=vr.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,c=l.length;f<c;)u=u.then(l[f++],l[f++]);return u}getUri(e){return hn(Gn((e=qn(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Yt.forEach(["delete","get","head","options"],(function(e){Er.prototype[e]=function(t,n){return this.request(qn(n||{},{method:e,url:t,data:(n||{}).data}))}})),Yt.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(qn(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Er.prototype[e]=t(),Er.prototype[e+"Form"]=t(!0)}));const xr=Er;class Sr{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Mn(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Sr((function(t){e=t})),cancel:e}}}const Or=Sr,Ar={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ar).forEach((([e,t])=>{Ar[t]=e}));const Cr=Ar,kr=function e(t){const n=new xr(t),r=lt(xr.prototype.request,n);return Yt.extend(r,xr.prototype,n,{allOwnKeys:!0}),Yt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(qn(t,n))},r}(An);kr.Axios=xr,kr.CanceledError=Mn,kr.CancelToken=Or,kr.isCancel=Ln,kr.VERSION="1.9.0",kr.toFormData=sn,kr.AxiosError=tn,kr.Cancel=kr.CanceledError,kr.all=function(e){return Promise.all(e)},kr.spread=function(e){return function(t){return e.apply(null,t)}},kr.isAxiosError=function(e){return Yt.isObject(e)&&!0===e.isAxiosError},kr.mergeConfig=qn,kr.AxiosHeaders=Rn,kr.formToJSON=e=>Sn(Yt.isHTMLForm(e)?new FormData(e):e),kr.getAdapter=pr,kr.HttpStatusCode=Cr,kr.default=kr;const Tr=kr;var Pr=n(2907),Nr=n.n(Pr);const _r=/([a-z]{1,2}tps?):\/\/((?:(?!(?:\/|#|\?|&)).)+)(?:(\/(?:(?:(?:(?!(?:#|\?|&)).)+\/))?))?(?:((?:(?!(?:\.|$|\?|#)).)+))?(?:(\.(?:(?!(?:\?|$|#)).)+))?(?:(\?(?:(?!(?:$|#)).)+))?(?:(#.+))?/,Rr=e=>{const t=e.match(_r);try{const[e,n,r,o,i,a,s,l]=t;return{fullUrl:e,protocol:n,domain:r,path:o,endFilename:i,endFileExtension:a,query:s,hash:l}}catch(t){throw new Error(`Could not find url parts from ${e}.`)}},Ir=(e,t)=>{const n=Object.create(t);n.message=`[frontend-auth] ${t.message}`,e.logError(n,n.customAttributes)},Lr=e=>{const t=Object.create(e),{request:n,response:r,config:o}=t;if(!o)return t.customAttributes=Object.assign(Object.assign({},t.customAttributes),{httpErrorType:"unknown-api-request-error"}),t;const{url:i,method:a}=o;if(r){const{status:e,data:n}=r,o=JSON.stringify(n)||"(empty response)",s=o.includes("<!DOCTYPE html>")?"<Response is HTML>":o;t.customAttributes=Object.assign(Object.assign({},t.customAttributes),{httpErrorType:"api-response-error",httpErrorStatus:e,httpErrorResponseData:s,httpErrorRequestUrl:i,httpErrorRequestMethod:a}),t.message=`Axios Error (Response): ${e} - See custom attributes for details.`}else n?(t.customAttributes=Object.assign(Object.assign({},t.customAttributes),{httpErrorType:"api-request-error",httpErrorMessage:t.message,httpErrorRequestUrl:i,httpErrorRequestMethod:a}),t.message="Axios Error (Request): (Possible local connectivity issue.) See custom attributes for details."):(t.customAttributes=Object.assign(Object.assign({},t.customAttributes),{httpErrorType:"api-request-config-error",httpErrorMessage:t.message,httpErrorRequestUrl:i,httpErrorRequestMethod:a}),t.message="Axios Error (Config): See custom attributes for details.");return t},jr=e=>{throw Lr(e)};class Mr{constructor(e){this.csrfTokenApiPath=e,this.httpClient=Tr.create(),this.httpClient.defaults.withCredentials=!0,this.httpClient.defaults.headers["USE-JWT-COOKIE"]=!0,this.csrfTokenCache={},this.csrfTokenRequestPromises={}}getCsrfToken(e){return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function*(){let t;try{t=Rr(e)}catch(e){t=Rr(n.g.location.origin)}const{protocol:r,domain:o}=t;return this.csrfTokenCache[o]||(this.csrfTokenRequestPromises[o]||(this.csrfTokenRequestPromises[o]=this.httpClient.get(`${r}://${o}${this.csrfTokenApiPath}`).then((e=>(this.csrfTokenCache[o]=e.data.csrfToken,this.csrfTokenCache[o]))).catch(jr).finally((()=>{delete this.csrfTokenRequestPromises[o]}))),this.csrfTokenRequestPromises[o])}))}clearCsrfTokenCache(){this.csrfTokenCache={}}getHttpClient(){return this.httpClient}}function Dr(e){this.message=e}Dr.prototype=new Error,Dr.prototype.name="InvalidCharacterError";var Br="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Dr("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,a="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?a+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function Hr(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(Br(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return Br(t)}}function Fr(e){this.message=e}Fr.prototype=new Error,Fr.prototype.name="InvalidTokenError";var Ur=n(1145),zr=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const Gr=(e,t=16e3)=>{const n=Math.pow(2,e)+Math.random(),r=Math.round(1e3*n);return Math.min(r,t)};var Wr=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};class qr{static isTokenExpired(e){return!e||e.exp<Date.now()/1e3}constructor(e,t,n,r){this.loggingService=e,this.tokenCookieName=t,this.tokenRefreshBaseUrl=n,this.tokenRefreshPath=r,this.httpClient=Tr.create(),this.httpClient.defaults.withCredentials=!0,this.httpClient.interceptors.response.use((e=>e),((e={})=>{const{httpClient:t=Tr.create(),getBackoffMilliseconds:n=Gr,shouldRetry:r=e=>!e.response&&e.config,defaultMaxRetries:o=2}=e;return e=>zr(void 0,void 0,void 0,(function*(){const{config:i}=e;if(!i)return Promise.reject(e);if(!r(e))return Promise.reject(e);const{maxRetries:a=o}=i,s=r=>zr(void 0,void 0,void 0,(function*(){if(r>a)return Promise.reject(e);let o;try{const e=n(r);yield new Promise((t=>{setTimeout(t,e)})),o=yield t.request(i)}catch(e){return s(r+1)}return o}));return s(1)}))})({httpClient:this.httpClient})),this.cookies=new Ur.A,this.refreshRequestPromises={}}getHttpClient(){return this.httpClient}decodeJwtCookie(){const e=this.cookies.get(this.tokenCookieName);if(e)try{return function(e,t){if("string"!=typeof e)throw new Fr("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Hr(e.split(".")[n]))}catch(e){throw new Fr("Invalid token specified: "+e.message)}}(e)}catch(t){const n=Object.create(t);throw n.message="Error decoding JWT token",n.customAttributes={cookieValue:e},n}return null}refresh(){let e=0;if(void 0===this.refreshRequestPromises[this.tokenCookieName]){const t=()=>Wr(this,void 0,void 0,(function*(){var t;let n;try{try{n=yield this.httpClient.post(`${this.tokenRefreshBaseUrl}${this.tokenRefreshPath}`),(null===(t=n.data)||void 0===t?void 0:t.response_epoch_seconds)&&(e=n.data.response_epoch_seconds)}catch(e){jr(e)}}catch(e){if(e.response&&401===e.response.status)return this.cookies.remove(this.tokenCookieName),null;throw e}const r=Date.now()/1e3,o=e>0?Math.abs(r-e):null,i=this.decodeJwtCookie();if(!i){const e=new Error("Access token is still null after successful refresh.");throw e.customAttributes={axiosResponse:n,browserDriftSeconds:o,browserEpochSeconds:r},e}return i}));this.refreshRequestPromises[this.tokenCookieName]=t().finally((()=>{delete this.refreshRequestPromises[this.tokenCookieName]}))}return this.refreshRequestPromises[this.tokenCookieName]}getJwtToken(){return Wr(this,arguments,void 0,(function*(e=!1){try{const t=this.decodeJwtCookie(this.tokenCookieName);if(!qr.isTokenExpired(t)&&!e)return t}catch(e){Ir(this.loggingService,e)}try{return yield this.refresh()}catch(e){throw Ir(this.loggingService,e),e}}))}}const Vr=e=>{const{csrfTokenService:t,csrfTokenApiPath:n,shouldSkip:r}=e;return e=>function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function*(){if(r(e))return e;const{url:o}=e;let i;try{i=yield t.getCsrfToken(o,n)}catch(t){const n=Object.create(t);return n.message=`[getCsrfToken] ${n.message}`,n.config=e,Promise.reject(n)}return e.headers["X-CSRFToken"]=i,e}))};const $r=e=>{const{jwtTokenService:t,shouldSkip:n}=e;return e=>function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function*(){if(n(e))return e;try{yield t.getJwtToken()}catch(t){const n=Object.create(t);return n.message=`[getJwtToken] ${n.message}`,n.config=e,Promise.reject(n)}return e.headers["USE-JWT-COOKIE"]=!0,e}))};const Kr=e=>{const{loggingService:t}=e;return e=>function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function*(){const n=Lr(e),{httpErrorStatus:r}=n.customAttributes;return 401!==r&&403!==r||t.logInfo(n.message,n.customAttributes),Promise.reject(n)}))};var Xr=Symbol("cache-parser");function Qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yr(e){return("string"==typeof e||"number"==typeof e)&&(e=Number(e))>=0&&e<1/0}function Zr(e){return!0===e||"number"==typeof e||"string"==typeof e&&"false"!==e}var Jr=Number;function eo(e){var t=Object.defineProperty({},Xr,{enumerable:!1,value:1});if(!e||"string"!=typeof e)return t;var n=function(e){for(var t,n={},r=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,t){if(e){if("string"==typeof e)return Qr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qr(e,t):void 0}}(e))){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.toLowerCase().replace(/\s+/g,"").split(","));!(t=r()).done;){var o,i=t.value.split("=",2);n[i[0]]=null==(o=i[1])||o}return n}(e),r=n["max-age"],o=n["max-stale"],i=n["min-fresh"],a=n["s-maxage"],s=n["stale-if-error"],l=n["stale-while-revalidate"];return Zr(n.immutable)&&(t.immutable=!0),Yr(r)&&(t.maxAge=Jr(r)),Yr(o)&&(t.maxStale=Jr(o)),Yr(i)&&(t.minFresh=Jr(i)),Zr(n["must-revalidate"])&&(t.mustRevalidate=!0),Zr(n["must-understand"])&&(t.mustUnderstand=!0),Zr(n["no-cache"])&&(t.noCache=!0),Zr(n["no-store"])&&(t.noStore=!0),Zr(n["no-transform"])&&(t.noTransform=!0),Zr(n["only-if-cached"])&&(t.onlyIfCached=!0),Zr(n.private)&&(t.private=!0),Zr(n["proxy-revalidate"])&&(t.proxyRevalidate=!0),Zr(n.public)&&(t.public=!0),Yr(a)&&(t.sMaxAge=Jr(a)),Yr(s)&&(t.staleIfError=Jr(s)),Yr(l)&&(t.staleWhileRevalidate=Jr(l)),t}var to=Symbol();function no(e,t){return e>t?1:-1}function ro(e,t){var n=5381;if("object"==typeof e&&null!==e&&(e.toString===Object.prototype.toString||e.toString===Array.prototype.toString)){t||(t=new WeakSet);for(var r=Object.keys(e).sort(no),o=0;o<r.length;o++){var i=r[o],a=e[i];if(n=33*n^ro(i,t),"object"==typeof a&&null!==a&&(e.toString===Object.prototype.toString||e.toString===Array.prototype.toString)){if(t.has(a))continue;t.add(a)}n=33*n^ro(a,t)}return 33*n^ro(e.constructor,t)}var s=typeof e;try{e instanceof Date?s+=e.getTime():s+=String(e)}catch(t){s+=String(Object.assign({},e))}for(var l=0;l<s.length;l++)n=33*n^s.charCodeAt(l);return n}var oo=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const io=Object.freeze({IfModifiedSince:"if-modified-since",LastModified:"last-modified",IfNoneMatch:"if-none-match",CacheControl:"cache-control",Pragma:"pragma",ETag:"etag",Expires:"expires",Age:"age",XAxiosCacheEtag:"x-axios-cache-etag",XAxiosCacheLastModified:"x-axios-cache-last-modified",XAxiosCacheStaleIfError:"x-axios-cache-stale-if-error"}),ao=(e,t)=>{if(!e)return"not enough headers";const n=e[io.CacheControl];if(n){const r=eo(String(n));if(r.noCache||r.noStore||"server"===t&&r.private)return"dont cache";if(r.immutable)return{cache:31536e6};if(void 0!==r.maxAge){const t=e[io.Age];return{cache:t?1e3*(r.maxAge-Number(t)):1e3*r.maxAge,stale:void 0!==r.maxStale?1e3*r.maxStale:void 0!==r.staleWhileRevalidate?1e3*r.staleWhileRevalidate:void 0}}}const r=e[io.Expires];if(r){const e=Date.parse(String(r))-Date.now();return e>=0?{cache:e}:"dont cache"}return"not enough headers"};function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},so.apply(this,arguments)}function lo(e,t){return e instanceof RegExp?(e.lastIndex=0,e.test(t)):t.includes(e)}function uo(e="get",t=[]){return e=e.toLowerCase(),t.some((t=>t===e))}function co(e){const t=e.data.headers;return io.ETag in t||io.LastModified in t||io.XAxiosCacheEtag in t||io.XAxiosCacheLastModified in t}function fo(e){return!!co(e)||"cached"===e.state&&void 0!==e.staleTtl&&Math.abs(Date.now()-(e.createdAt+e.ttl))<=e.staleTtl}function ho(e){return void 0!==e.ttl&&e.createdAt+e.ttl<=Date.now()}function po({set:e,find:t,remove:n,clear:r}){return{"is-storage":1,set:e,remove:n,clear:r,get:(r,o)=>oo(this,void 0,void 0,(function*(){let i=yield t(r,o);if(!i)return{state:"empty"};if("empty"===i.state||"loading"===i.state||"must-revalidate"===i.state)return i;if("cached"===i.state){if(!ho(i))return i;if(!fo(i))return yield n(r,o),{state:"empty"};if(i={state:"stale",createdAt:i.createdAt,data:i.data,ttl:void 0!==i.staleTtl?i.staleTtl+i.ttl:void 0},yield e(r,i,o),function(e){return String(e.data.headers[io.CacheControl]).includes("must-revalidate")}(i))return so({},i,{state:"must-revalidate"})}return ho(i)?co(i)?i:(yield n(r,o),{state:"empty"}):i}))}}const mo="function"==typeof structuredClone?structuredClone:e=>JSON.parse(JSON.stringify(e)),vo=/^\/|\/$/g,go=(yo=({baseURL:e,url:t,method:n,params:r,data:o})=>(e=void 0!==e?e.replace(vo,""):"",t=void 0!==t?t.replace(vo,""):"",{url:e+(e&&t?"/":"")+t,params:r,method:n=void 0!==n?n.toLowerCase():"get",data:o}),e=>{if(e.id)return e.id;const t=yo(e);return"string"==typeof t||"number"==typeof t?`${t}`:`${ro(t)}`});var yo;function bo(e,t={}){var n,r,o,i,a,s,l,u;const c=e;if(c.defaults.cache)throw new Error("setupCache() should be called only once");if(c.location="undefined"==typeof window?"server":"client",c.storage=t.storage||function(e=!1,t=!1,n=!1){const r=po({set:(t,o)=>{if(n){let e=Object.keys(r.data);if(e.length>=n)for(r.cleanup(),e=Object.keys(r.data);e.length>=n;)delete r.data[e.shift()]}r.data[t]="double"===e?mo(o):o},remove:e=>{delete r.data[e]},find:t=>{const n=r.data[t];return e&&void 0!==n?mo(n):n},clear:()=>{r.data=Object.create(null)}});return r.data=Object.create(null),r.cleanup=()=>{const e=Object.keys(r.data);let t,n,o=-1;for(;++o<e.length;)n=e[o],t=r.data[n],"empty"!==t.state?"cached"===t.state&&ho(t)&&!fo(t)&&r.remove(n):r.remove(n)},t&&(r.cleaner=setInterval(r.cleanup,t)),r}(),!(f=c.storage)||!f["is-storage"])throw new Error("Use buildStorage() function");var f;return c.waiting=t.waiting||new Map,c.generateKey=t.generateKey||go,c.headerInterpreter=t.headerInterpreter||ao,c.requestInterceptor=t.requestInterceptor||function(e){const t=n=>oo(this,void 0,void 0,(function*(){if(n.id=e.generateKey(n),!1===n.cache)return n;if(n.cache=so({},e.defaults.cache,n.cache),"object"==typeof n.cache.cachePredicate&&n.cache.cachePredicate.ignoreUrls&&n.url)for(const e of n.cache.cachePredicate.ignoreUrls)if(lo(e,n.url))return n;if("object"==typeof n.cache.cachePredicate&&n.cache.cachePredicate.allowUrls&&n.url){let e=!1;for(const t of n.cache.cachePredicate.allowUrls)if(lo(t,n.url)){e=!0;break}if(!e)return n}var r,o,i,a,s,l;if(n.cache.cacheTakeover&&(null!=(r=n.headers)[o=io.CacheControl]||(r[o]="no-cache"),null!=(i=n.headers)[a=io.Pragma]||(i[a]="no-cache"),null!=(s=n.headers)[l=io.Expires]||(s[l]="0")),!uo(n.method,n.cache.methods))return n;let u=yield e.storage.get(n.id,n);const c=n.cache.override;e:if("empty"===u.state||"stale"===u.state||"must-revalidate"===u.state||c){if(e.waiting.has(n.id)&&!c&&(u=yield e.storage.get(n.id,n),"empty"!==u.state&&"must-revalidate"!==u.state))break e;const t=function(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n[to]=1,n}();return e.waiting.set(n.id,t),t.catch((()=>{})),yield e.storage.set(n.id,{state:"loading",previous:c?u.data?"stale":"empty":u.state,data:u.data,createdAt:c&&!u.createdAt?Date.now():u.createdAt},n),"stale"!==u.state&&"must-revalidate"!==u.state||function(e,t){t.headers||(t.headers={});const{etag:n,modifiedSince:r}=t.cache;if(n){var o;const r=!0===n?null==(o=e.data)?void 0:o.headers[io.ETag]:n;r&&(t.headers[io.IfNoneMatch]=r)}r&&(t.headers[io.IfModifiedSince]=!0===r?e.data.headers[io.LastModified]||new Date(e.createdAt).toUTCString():r.toUTCString())}(u,n),n.validateStatus=(f=n.validateStatus)?e=>f(e)||304===e:e=>e>=200&&e<300||304===e,("stale"===u.state||u.data&&"must-revalidate"!==u.state)&&(yield null==n.cache.hydrate?void 0:n.cache.hydrate(u)),n}var f;let d;if("loading"===u.state){const r=e.waiting.get(n.id);if(!r)return u.data&&(yield null==n.cache.hydrate?void 0:n.cache.hydrate(u)),n;try{yield r;const o=yield e.storage.get(n.id,n);if(!o.data)return t(n);d=o.data}catch(e){return u.data&&(yield null==n.cache.hydrate?void 0:n.cache.hydrate(u)),t(n)}}else d=u.data;return n.transformResponse=void 0,n.adapter=function(){return Promise.resolve({config:n,data:d.data,headers:d.headers,status:d.status,statusText:d.statusText,cached:!0,stale:"stale"===u.previous,id:n.id})},n}));return{onFulfilled:t}}(c),c.responseInterceptor=t.responseInterceptor||function(e){const t=(t,n,r)=>oo(this,void 0,void 0,(function*(){r&&(yield e.storage.remove(t,n));const o=e.waiting.get(t);o&&(o.reject(),e.waiting.delete(t))}));return{onFulfilled:n=>oo(this,void 0,void 0,(function*(){if(null==n||!n.config)throw n;n.id=n.config.id,null!=n.cached||(n.cached=!1);const r=n.config,o=r.cache;if(n.cached)return n;if(!o)return n.cached=!1,n;if(o.update&&(yield function(e,t,n){return oo(this,void 0,void 0,(function*(){if("function"==typeof n)return n(t);for(const[r,o]of Object.entries(n)){if("delete"===o){yield e.remove(r,t.config);continue}const n=yield e.get(r,t.config);if("loading"===n.state)continue;const i=yield o(n,t);"delete"!==i?"ignore"!==i&&(yield e.set(r,i,t.config)):yield e.remove(r,t.config)}}))}(e.storage,n,o.update)),!uo(r.method,o.methods))return n;const i=yield e.storage.get(n.id,r);if("loading"!==i.state)return n;if(!i.data&&!(yield function(e,t){return oo(this,void 0,void 0,(function*(){if("function"==typeof t)return t(e);const{statusCheck:n,responseMatch:r,containsHeaders:o}=t;if(n&&!(yield n(e.status))||r&&!(yield r(e)))return!1;if(o)for(const[t,n]of Object.entries(o)){var i;if(!(yield n(null!=(i=e.headers[t.toLowerCase()])?i:e.headers[t])))return!1}return!0}))}(n,o.cachePredicate)))return yield t(n.id,r,!0),n;for(const e of Object.keys(n.headers))e.startsWith("x-axios-cache")&&delete n.headers[e];o.etag&&!0!==o.etag&&(n.headers[io.XAxiosCacheEtag]=o.etag),o.modifiedSince&&(n.headers[io.XAxiosCacheLastModified]=!0===o.modifiedSince?"use-cache-timestamp":o.modifiedSince.toUTCString());let a,s=o.ttl||-1;if(o.interpretHeader){const o=e.headerInterpreter(n.headers,e.location);if("dont cache"===o)return yield t(n.id,r,!0),n;"not enough headers"!==o&&("number"==typeof o?s=o:(s=o.cache,a=o.stale))}const l=function(e,t){return 304===e.status&&t?(e.cached=!0,e.data=t.data,e.status=t.status,e.statusText=t.statusText,e.headers=so({},t.headers,e.headers),t):{data:e.data,status:e.status,statusText:e.statusText,headers:e.headers}}(n,i.data);"function"==typeof s&&(s=yield s(n)),o.staleIfError&&(n.headers[io.XAxiosCacheStaleIfError]=String(s));const u={state:"cached",ttl:s,staleTtl:a,createdAt:Date.now(),data:l};yield e.storage.set(n.id,u,r);const c=e.waiting.get(n.id);return c&&(c.resolve(),e.waiting.delete(n.id)),n})),onRejected:n=>oo(this,void 0,void 0,(function*(){if(!n.isAxiosError||!n.config)throw n;const r=n.config,o=r.id,i=r.cache,a=n.response;if(!i||!o)throw n;if(!uo(r.method,i.methods))throw yield t(o,r,!0),n;const s=yield e.storage.get(o,r);if("loading"!==s.state||"stale"!==s.previous)throw yield t(o,r,"ERR_CANCELED"!==n.code||"ERR_CANCELED"===n.code&&"cached"!==s.state),n;if(i.staleIfError){const t=String(null==a?void 0:a.headers[io.CacheControl]),l=t&&eo(t).staleIfError,u="function"==typeof i.staleIfError?yield i.staleIfError(a,s,n):!0===i.staleIfError&&l?1e3*l:i.staleIfError;if(!0===u||"number"==typeof u&&s.createdAt+u>Date.now()){yield e.storage.set(o,{state:"stale",createdAt:Date.now(),data:s.data},r);const t=e.waiting.get(o);return t&&(t.resolve(),e.waiting.delete(o)),{cached:!0,stale:!0,config:r,id:o,data:s.data.data,headers:s.data.headers,status:s.data.status,statusText:s.data.statusText}}}throw yield t(o,r,!0),n}))}}(c),c.debug=t.debug||function(){},c.defaults.cache={update:t.update||{},ttl:null!=(n=t.ttl)?n:3e5,methods:t.methods||["get","head"],cachePredicate:t.cachePredicate||{statusCheck:e=>[200,203,300,301,302,404,405,410,414,501].includes(e)},etag:null==(r=t.etag)||r,modifiedSince:null!=(o=t.modifiedSince)?o:!1===t.etag,interpretHeader:null==(i=t.interpretHeader)||i,cacheTakeover:null==(a=t.cacheTakeover)||a,staleIfError:null==(s=t.staleIfError)||s,override:null!=(l=t.override)&&l,hydrate:null!=(u=t.hydrate)?u:void 0},c.interceptors.request.use(c.requestInterceptor.onFulfilled,c.requestInterceptor.onRejected),c.interceptors.response.use(c.responseInterceptor.onFulfilled,c.responseInterceptor.onRejected),c}var wo=n(8157),Eo=n.n(wo),xo=n(5147),So=n.n(xo),Oo=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function Ao(){return Oo(this,void 0,void 0,(function*(){yield Eo().defineDriver(So());const e=Eo().createInstance({driver:[Eo().INDEXEDDB,Eo().LOCALSTORAGE,So()._driver],name:"edx-cache"}),t=po({find(t){return Oo(this,void 0,void 0,(function*(){const n=yield e.getItem(`axios-cache:${t}`);return JSON.parse(n)}))},set(t,n){return Oo(this,void 0,void 0,(function*(){yield e.setItem(`axios-cache:${t}`,JSON.stringify(n))}))},remove(t){return Oo(this,void 0,void 0,(function*(){yield e.removeItem(`axios-cache:${t}`)}))}});return bo(Tr.create(),{ttl:3e5,storage:t,generateKey:go,headerInterpreter:ao,debug:console.log})}))}var Co=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const ko={config:Nr().shape({baseUrl:Nr().string.isRequired,lmsBaseUrl:Nr().string.isRequired,loginUrl:Nr().string.isRequired,logoutUrl:Nr().string.isRequired,refreshAccessTokenApiPath:Nr().string.isRequired,accessTokenCookieName:Nr().string.isRequired,csrfTokenApiPath:Nr().string.isRequired}).isRequired,loggingService:Nr().shape({logError:Nr().func.isRequired,logInfo:Nr().func.isRequired}).isRequired},To=class{constructor(e){this.authenticatedHttpClient=null,this.httpClient=null,this.cachedAuthenticatedHttpClient=null,this.cachedHttpClient=null,this.authenticatedUser=null,Nr().checkPropTypes(ko,e,"options","AuthService"),this.config=e.config,this.loggingService=e.loggingService,this.jwtTokenService=new qr(this.loggingService,this.config.accessTokenCookieName,this.config.lmsBaseUrl,this.config.refreshAccessTokenApiPath),this.csrfTokenService=new Mr(this.config.csrfTokenApiPath),this.authenticatedHttpClient=this.addAuthenticationToHttpClient(Tr.create()),this.httpClient=Tr.create(),Ao().then((e=>{this.cachedAuthenticatedHttpClient=this.addAuthenticationToHttpClient(e),this.cachedHttpClient=e})).catch((e=>{this.cachedAuthenticatedHttpClient=this.authenticatedHttpClient,this.cachedHttpClient=this.httpClient,Ir(this.loggingService,`configureCache failed with error: ${e.message}`)})).finally((()=>{this.middleware=e.middleware,this.applyMiddleware(e.middleware)}))}applyMiddleware(e=[]){const t=[this.authenticatedHttpClient,this.httpClient,this.cachedAuthenticatedHttpClient,this.cachedHttpClient];try{e.forEach((e=>{t.forEach((t=>t&&e(t)))}))}catch(e){throw Ir(this.loggingService,e),e}}getAuthenticatedHttpClient(e={}){return e.useCache?this.cachedAuthenticatedHttpClient:this.authenticatedHttpClient}getHttpClient(e={}){return e.useCache?this.cachedHttpClient:this.httpClient}getJwtTokenService(){return this.jwtTokenService}getCsrfTokenService(){return this.csrfTokenService}getLoginRedirectUrl(e=this.config.baseUrl){return`${this.config.loginUrl}?next=${encodeURIComponent(e)}`}redirectToLogin(e=this.config.baseUrl){n.g.location.assign(this.getLoginRedirectUrl(e))}getLogoutRedirectUrl(e=this.config.baseUrl){return`${this.config.logoutUrl}?redirect_url=${encodeURIComponent(e)}`}redirectToLogout(e=this.config.baseUrl){n.g.location.assign(this.getLogoutRedirectUrl(e))}getAuthenticatedUser(){return this.authenticatedUser}setAuthenticatedUser(e){this.authenticatedUser=e}fetchAuthenticatedUser(){return Co(this,arguments,void 0,(function*(e={}){const t=yield this.jwtTokenService.getJwtToken(e.forceRefresh||!1);return null!==t?(this.setAuthenticatedUser({email:t.email,userId:t.user_id,username:t.preferred_username,roles:t.roles||[],administrator:t.administrator,name:t.name}),this.loggingService.setCustomAttribute("userId",t.user_id)):this.setAuthenticatedUser(null),this.getAuthenticatedUser()}))}ensureAuthenticatedUser(){return Co(this,arguments,void 0,(function*(e=this.config.baseUrl){var t;if(yield this.fetchAuthenticatedUser(),null===this.getAuthenticatedUser()){if(null===(t=n.g.document.referrer)||void 0===t?void 0:t.startsWith(this.config.loginUrl)){const e=new Error("Redirect from login page. Rejecting to avoid infinite redirect loop.");throw Ir(this.loggingService,e),e}this.redirectToLogin(e);const r=new Error("Failed to ensure the user is authenticated");throw r.isRedirecting=!0,r}return this.getAuthenticatedUser()}))}hydrateAuthenticatedUser(){return Co(this,void 0,void 0,(function*(){const e=this.getAuthenticatedUser();if(null!==e){const t=yield this.authenticatedHttpClient.get(`${this.config.lmsBaseUrl}/api/user/v1/accounts/${e.username}`);this.setAuthenticatedUser(Object.assign(Object.assign({},e),it(t.data,nt())))}}))}addAuthenticationToHttpClient(e){const t=Object.create(e);t.defaults.withCredentials=!0;const n=$r({jwtTokenService:this.jwtTokenService,shouldSkip:e=>e.isPublic}),r=Vr({csrfTokenService:this.csrfTokenService,csrfTokenApiPath:this.config.csrfTokenApiPath,shouldSkip:e=>{const{method:t,isCsrfExempt:n}=e;return n||!["post","put","patch","delete"].includes(t)}}),o=Kr({loggingService:this.loggingService});return t.interceptors.request.use(r),t.interceptors.request.use(n),t.interceptors.response.use((e=>e),o),t}};var Po=n(2800),No=n(1897),_o=n(574),Ro=n(2431);const Io=4e3;function Lo(e,t,n){(0,Po.Q2)().environment===Ro.t.DEVELOPMENT&&console.log(e,t,n),window&&void 0!==window.newrelic&&window.newrelic.addPageAction(e,Object.assign({message:t},n))}class jo{constructor(e){const t=e?e.config:void 0;this.ignoredErrorRegexes=t?t.ignoredErrorRegex:void 0}logInfo(e,t={}){let n=e,r=t;if("object"==typeof e&&"message"in e){const o=e.customAttributes||{};r=Object.assign(Object.assign({},o),t),n=e.message}Lo("INFO",n,r)}logError(e,t={}){const n=e.customAttributes||{};let r=Object.assign(Object.assign({},n),t);0===Object.keys(r).length&&(r=void 0);const o=e.message||("string"==typeof e?e:"");this.ignoredErrorRegexes&&o.match(this.ignoredErrorRegexes)?Lo("IGNORED_ERROR",o,r):function(e,t){(0,Po.Q2)().environment===Ro.t.DEVELOPMENT&&console.error(e,t),window&&void 0!==window.newrelic&&window.newrelic.noticeError(function(e){if(e.message&&e.message.length>Io){const t=Object.create(e);return t.message=t.message.substring(0,Io),t}return"string"==typeof e&&e.length>Io?e.substring(0,Io):e}(e),t)}(e,r)}setCustomAttribute(e,t){!function(e,t){(0,Po.Q2)().environment===Ro.t.DEVELOPMENT&&console.log(e,t),window&&void 0!==window.newrelic&&window.newrelic.setCustomAttribute(e,t)}(e,t)}}const Mo=class{constructor({config:e}){this.analyticsId=e.GOOGLE_ANALYTICS_4_ID}loadScript(){if(!this.analyticsId)return;n.g.googleAnalytics=n.g.googleAnalytics||[];const{googleAnalytics:e}=n.g;e.invoked||(e.invoked=!0,e.load=(t,n)=>{const r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=`https://www.googletagmanager.com/gtag/js?id=${t}`;const o=document.createElement("script");o.innerHTML=`\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '${t}');\n `;const i=document.getElementsByTagName("script")[0];if(null===(null==i?void 0:i.parentNode))throw new Error("No script to insert Google analytics script before.");i.parentNode.insertBefore(r,i),i.parentNode.insertBefore(o,i),e._loadOptions=n},e.load(this.analyticsId))}};var Do=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function Bo(e){return Do(this,void 0,void 0,(function*(){(0,_o.vV)(e)}))}function Ho(e,t){return Do(this,void 0,void 0,(function*(){e?yield(0,st.fL)(globalThis.location.href):yield(0,st.rn)(),t&&null!==(0,st.vD)()&&(0,st.W)()}))}function Fo(){return Do(this,void 0,void 0,(function*(){const e=(0,st.vD)();(null==e?void 0:e.userId)?(0,et.Z5)(e.userId):yield(0,et.PB)()}))}var Uo=n(3091);function zo({children:e}){const{apps:t}=(0,Po.Q2)();let n=[];t&&t.forEach((e=>{Array.isArray(e.providers)&&(n=n.concat(e.providers))}));const r=(e=>e.reduce(((e,t)=>({children:n})=>(0,o.jsx)(e,{children:(0,o.jsx)(t,{children:n})})),(({children:e})=>(0,o.jsx)(o.Fragment,{children:e}))))(n);return(0,o.jsx)(r,{children:e})}var Go=n(3879),Wo=n(5545),qo=n(5029);function Vo({children:e}){const[t,n]=(0,i.useState)((0,Po.Q2)()),[r,a]=(0,i.useState)((0,st.vD)()),[s,l]=(0,i.useState)((0,No.JK)());(0,qo.jD)(st.Pr,(()=>{a((0,st.vD)())})),(0,qo.jD)(Ze.Ah,(()=>{n((0,Po.Q2)())})),(0,qo.jD)(No.gT,(()=>{l((0,No.JK)())}));const u=(0,i.useMemo)((()=>({authenticatedUser:r,siteConfig:t,locale:s})),[r,t,s]);return(0,o.jsx)(Uo.A,{locale:s,messages:(0,No.VL)(),children:(0,o.jsx)(Go.A,{children:(0,o.jsx)(Wo.A.Provider,{value:u,children:(0,o.jsx)(zo,{children:e})})})})}var $o=n(7284),Ko=n(5106);function Xo(){return(0,o.jsx)(Ko.sv,{})}function Qo(){return(0,o.jsxs)("div",{className:"d-flex flex-column min-vh-100",children:[(0,o.jsx)("div",{className:"flex-grow-0 flex-shrink-0",children:(0,o.jsx)($o.A,{id:"org.openedx.frontend.slot.header.main.v1"})}),(0,o.jsx)("div",{id:"main-content",className:"flex-grow-1",children:(0,o.jsx)($o.A,{id:"org.openedx.frontend.slot.content.main.v1",layout:Xo})}),(0,o.jsx)("div",{className:"flex-grow-0 flex-shrink-0",children:(0,o.jsx)($o.A,{id:"org.openedx.frontend.slot.footer.main.v1"})})]})}function Yo(){return(0,qo.N)(),(0,qo.Ob)(),(0,o.jsx)(Vo,{children:(0,o.jsx)($o.A,{id:"org.openedx.frontend.slot.layout.main.v1",layout:Qo})})}function Zo(){const{apps:e}=(0,Po.Q2)();let t=[];return e&&e.forEach((e=>{Array.isArray(e.routes)&&(t=t.concat(e.routes))})),t}(0,Ye.B1)(Ze.k2,(()=>function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function*(){const e=new Ke,t=(0,s.Ys)([{Component:Yo,children:Zo()}],{basename:(0,Po.Q2)().basename});(0,Po.Gr)(),(0,No.Di)(),(0,a.H)(document.getElementById("root")).render((0,o.jsx)(i.StrictMode,{children:(0,o.jsxs)(Qe,{client:e,children:[(0,o.jsx)(s.pg,{router:t}),","]})}))})))),(0,Ye.B1)(Ze.EJ,(e=>{(0,a.H)(document.getElementById("root")).render((0,o.jsx)("div",{children:e.message}))})),function(e){Do(this,arguments,void 0,(function*({loggingService:e=jo,analyticsService:t=at,authService:n=To,authMiddleware:r=[],externalScripts:o=[Mo],requireAuthenticatedUser:i=!1,hydrateAuthenticatedUser:a=!1,messages:s,handlers:l={}}){var u,c,f;const d=function(e){const t=()=>Do(this,void 0,void 0,(function*(){}));return Object.assign({pubSub:t,config:t,logging:t,auth:Ho,analytics:Fo,i18n:t,ready:t,initError:Bo},e)}(l);try{yield d.pubSub(),(0,Ye.mk)(Ze.JY),yield function(){return Do(this,void 0,void 0,(function*(){let e={};e="function"==typeof Je.A?yield(0,Je.A)():Je.A,(0,Po.sY)(e)}))}(),yield d.config(),yield function(){return Do(this,void 0,void 0,(function*(){try{const{mfeConfigApiUrl:e,siteId:t}=(0,Po.Q2)();if(e){const n={headers:{accept:"application/json"}},r=yield Ao(),o=new URLSearchParams;o.append("mfe",t);const i=`${e}?${o.toString()}`,{data:a}=yield r.get(i,n);(0,Po.sY)(a)}}catch(e){console.error("Error with config API",e.message)}}))}(),(0,Ye.mk)(Ze.yQ),function(e,t){e.forEach((e=>{new e(t).loadScript()}))}(o,{config:(0,Po.Q2)()});const l=null!==(u=(0,Po.Q2)().loggingService)&&void 0!==u?u:e,h=null!==(c=(0,Po.Q2)().analyticsService)&&void 0!==c?c:t,p=null!==(f=(0,Po.Q2)().authService)&&void 0!==f?f:n;(0,_o.yM)(l,{config:(0,Po.Q2)()}),yield d.logging(),(0,Ye.mk)(Ze.pE),(0,No.VZ)({messages:s}),yield d.i18n(),(0,Ye.mk)(Ze.cA),(0,st.ZI)(p,{loggingService:(0,_o.Pe)(),config:(0,Po.Q2)(),middleware:r}),yield d.auth(i,a),(0,Ye.mk)(Ze.o$),(0,et.Bi)(h,{config:(0,Po.Q2)(),loggingService:(0,_o.Pe)(),httpClient:(0,st.bv)()}),yield d.analytics(),(0,Ye.mk)(Ze.Il),yield d.ready(),(0,Ye.mk)(Ze.k2)}catch(e){e.isRedirecting||(yield d.initError(e),(0,Ye.mk)(Ze.EJ,e))}}))}({messages:{ar:{},"zh-hk":{},"zh-cn":{},uk:{},"tr-tr":{},th:{},te:{},ru:{},"pt-pt":{},"pt-br":{},"it-it":{},id:{},hi:{},he:{},"fr-ca":{},fa:{},"es-es":{},"es-419":{},el:{},"de-de":{},da:{},bo:{}}})},9328:(e,t,n)=>{n.d(t,{A:()=>o});var r=Function.prototype.bind.call(Function.prototype.call,[].slice);function o(e,t){return r(e.querySelectorAll(t))}},9511:(e,t,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},9561:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(8313),o=n(2907),i=n.n(o),a=n(7141),s=n.n(a);let l=0;const u=function(){return l+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id"}${l}`};var c=n(6084);function f(e){let{src:t,id:n,className:o,hidden:i,screenReaderText:a,svgAttrs:l,size:c}=e,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["src","id","className","hidden","screenReaderText","svgAttrs","size"]);if(t){const e=l["aria-label"]||l["aria-labelledby"],i=Object.assign({},l);return e||(i["aria-label"]=void 0,i["aria-hidden"]=!0),r.createElement("span",Object.assign({className:s()("pgn__icon",{[`pgn__icon__${c}`]:!!c},o),id:n},f),r.createElement(t,Object.assign({role:"img",focusable:!1},i)),a&&r.createElement("span",{className:"sr-only"},a))}return r.createElement(r.Fragment,null,r.createElement("span",{id:n||u("Icon"),className:o,"aria-hidden":i}),a&&r.createElement("span",{className:"sr-only"},a))}f.propTypes={src:i().elementType,svgAttrs:i().shape({"aria-label":i().string,"aria-labelledby":i().string}),id:i().string,size:i().oneOf(["xs","sm","md","lg"]),className:i().string,hidden:i().bool,screenReaderText:i().oneOfType([i().string,i().element])},f.defaultProps={src:null,svgAttrs:{},id:void 0,hidden:!0,screenReaderText:void 0,size:void 0,className:void 0};const d=(0,c.A)(f,"Icon",{className:{deprType:c.J.FORMAT,expect:e=>"string"==typeof e,transform:e=>Array.isArray(e)?e.join(" "):e,message:"It should be a string."}})},9569:(e,t,n)=>{e.exports=n(7837)},9792:(e,t,n)=>{function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},9888:(e,t)=>{var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var w=b.prototype=new y;w.constructor=b,m(w,g.prototype),w.isPureReactComponent=!0;var E=Array.isArray,x=Object.prototype.hasOwnProperty,S={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,o)&&!O.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:S.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var k=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+T(l,0):i,E(a)?(o="",null!=e&&(o=e.replace(k,"$&/")+"/"),P(a,t,o,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(k,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",E(e))for(var u=0;u<e.length;u++){var c=i+T(s=e[u],u);l+=P(s,t,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=P(s=s.value,t,o,c=i+T(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function N(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function _(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},I={transition:null},L={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:I,ReactCurrentOwner:S};function j(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.act=j,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=S.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)x.call(t,u)&&!O.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=A,t.createFactory=function(e){var t=A.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:_}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=j,t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.3.1"}}]);
3
- //# sourceMappingURL=806.323cf6496ad0a7fe73a7.js.map