@remit/web-client-dist 0.0.539 → 0.0.541

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 (158) hide show
  1. package/assets/BriefPane-BF3QpH9s.js +1 -0
  2. package/assets/{CalendarComposePane-tQ70DMF5.js → CalendarComposePane-B6OhiQsN.js} +1 -1
  3. package/assets/{CalendarComposeSeed-BDYrBoOn.js → CalendarComposeSeed-CqB_vGGN.js} +1 -1
  4. package/assets/{CalendarShell-NLYcQtjI.js → CalendarShell-DbJMAS-C.js} +1 -1
  5. package/assets/{EmptyState-kUDfGSa-.js → EmptyState-CSMaYaEn.js} +1 -1
  6. package/assets/{ErrorState-VDo7BEXi.js → ErrorState-QAArpXLf.js} +1 -1
  7. package/assets/{FlaggedPane-D797wNm2.js → FlaggedPane-BtaFIljM.js} +1 -1
  8. package/assets/{FullCompose-zR5425gW.js → FullCompose-CCGrmPJg.js} +1 -1
  9. package/assets/MailListHeader-u7Rq5QvZ.js +7 -0
  10. package/assets/MailNav-DmDmKON5.js +1 -0
  11. package/assets/{MailShell-tZFfzwz5.js → MailShell-CIM1STt4.js} +1 -1
  12. package/assets/MailViewChrome-CwKbpyYR.js +1 -0
  13. package/assets/{MailboxPane-BopLrNNz.js → MailboxPane-DO9E9d66.js} +1 -1
  14. package/assets/{NavMenuButton-CfCIoTCV.js → NavMenuButton-D33sb1Iv.js} +1 -1
  15. package/assets/{OnboardingWizard-2mTY55FL.js → OnboardingWizard-B-3KPUTk.js} +1 -1
  16. package/assets/{OpenCalendarEvent-V_qj0EjB.js → OpenCalendarEvent-BtVmJGD7.js} +2 -2
  17. package/assets/OutboxPane-DuI38cvH.js +1 -0
  18. package/assets/_calendarObjectId-BFcCSDs_.js +1 -0
  19. package/assets/_mailboxId-DQF2tTng.js +1 -0
  20. package/assets/_messageId-CmzkEIXV.js +1 -0
  21. package/assets/_messageId-DXA2DL6W.js +1 -0
  22. package/assets/_messageId-DjkcpITY.js +1 -0
  23. package/assets/_outboxMessageId-C83CuACP.js +1 -0
  24. package/assets/_recurrenceId-Du4qexes.js +1 -0
  25. package/assets/_threadId-BBpdlFP4.js +1 -0
  26. package/assets/_threadId-CX4mdigM.js +1 -0
  27. package/assets/_threadId-DAMPCoMl.js +1 -0
  28. package/assets/_view._date-ccLw5fGv.js +1 -0
  29. package/assets/{accounts-NoIrbDGD.js → accounts-xBjoZkoW.js} +1 -1
  30. package/assets/{advanced-CDSXEaTr.js → advanced-ByJqVgoW.js} +2 -2
  31. package/assets/{appearance-DWg9Fev-.js → appearance-ZmXLJr87.js} +1 -1
  32. package/assets/{attachment-file-BqkgTk5V.js → attachment-file-BG27lVCM.js} +1 -1
  33. package/assets/{attendee-row-Cv_RoZCD.js → attendee-row-CTNLChhq.js} +1 -1
  34. package/assets/{avatar-5AJpJDbh.js → avatar-DXro8ker.js} +1 -1
  35. package/assets/{bottom-sheet-CelNqy1y.js → bottom-sheet-C7xkmDov.js} +1 -1
  36. package/assets/{brief-DBM3Ph9C.js → brief-B-ou101e.js} +1 -1
  37. package/assets/brief-B3zDqsEV.js +1 -0
  38. package/assets/{browser-ponyfill-CpwZ1QuB.js → browser-ponyfill-CkVzAnx2.js} +1 -1
  39. package/assets/{bug-DnU8bYv9.js → bug-DavmLUd9.js} +1 -1
  40. package/assets/calendar-DneQR1Xt.js +1 -0
  41. package/assets/{calendar-color-CHnffHyS.js → calendar-color-AdRpHzAi.js} +1 -1
  42. package/assets/{calendar-event-chip-C9NOIAJ7.js → calendar-event-chip-QZOcdP_o.js} +1 -1
  43. package/assets/{calendars-DnRJcpuO.js → calendars-CXJ5rls_.js} +1 -1
  44. package/assets/{card-BIo-eYcK.js → card-C6idQCt2.js} +1 -1
  45. package/assets/chevron-left-BwWGiDVd.js +1 -0
  46. package/assets/{circle-check-DYx-rw9M.js → circle-check-BOIz7Z_j.js} +1 -1
  47. package/assets/{circle-check-big-CiGlGCl1.js → circle-check-big-C2MGkIL1.js} +1 -1
  48. package/assets/{circle-help-D_5w7LgQ.js → circle-help-B4BuWt0G.js} +1 -1
  49. package/assets/{clock-BkwpZS6T.js → clock-BK5YthR0.js} +1 -1
  50. package/assets/compose._-_outboxMessageId_-BHPHapGA.js +1 -0
  51. package/assets/compose._-_outboxMessageId_-CR4zylJj.js +1 -0
  52. package/assets/compose._-_outboxMessageId_-CwE4fYtQ.js +1 -0
  53. package/assets/compose._-_outboxMessageId_-iWeSeSc4.js +1 -0
  54. package/assets/{config-import-CHkWlsTW.js → config-import-FPetVYo2.js} +1 -1
  55. package/assets/{confirm-dialog-Bay01642.js → confirm-dialog-k-k-byYR.js} +1 -1
  56. package/assets/{copy-8LApphug.js → copy-DOvcgC4N.js} +1 -1
  57. package/assets/{credential-steps-tHE5fDmz.js → credential-steps-C7XjDWoW.js} +1 -1
  58. package/assets/{download-oST1Pv8p.js → download-tt-Cyzcf.js} +1 -1
  59. package/assets/{file-json-DnRKjKiP.js → file-json-DTL9kFs5.js} +1 -1
  60. package/assets/{filters-Buglze8m.js → filters-oxhJ9CrI.js} +1 -1
  61. package/assets/{flagged-CJjphuiU.js → flagged-BbV9soU9.js} +1 -1
  62. package/assets/flagged-DdPgHrWA.js +1 -0
  63. package/assets/folders-BZdx-r7F.js +1 -0
  64. package/assets/{format-CWO8MVm7.js → format-By3hRFiw.js} +1 -1
  65. package/assets/{help-copy-BwQIRzP8.js → help-copy-Dwlt9trH.js} +1 -1
  66. package/assets/{import-otv52wgG.js → import-DLwEJzp8.js} +1 -1
  67. package/assets/index-26R7PEMP.js +1 -0
  68. package/assets/index-B9SKzNNx.js +1 -0
  69. package/assets/{index-DDXWq0c8.js → index-Bsmi-6m5.js} +1 -1
  70. package/assets/index-BxuJcbHa.js +1 -0
  71. package/assets/index-ByRi5YZH.js +294 -0
  72. package/assets/index-CX22JAkI.js +1 -0
  73. package/assets/index-CYm2FZEz.js +1 -0
  74. package/assets/index-CcPXpKEP.js +1 -0
  75. package/assets/index-DjkcpITY.js +1 -0
  76. package/assets/{index-DsRBPRBB.js → index-Ex7ioeVB.js} +4 -4
  77. package/assets/index-Pv-qxF_k.js +1 -0
  78. package/assets/index-npsdHvXX.js +1 -0
  79. package/assets/{kbd-B9nU8EDr.js → kbd-g95IxlDg.js} +1 -1
  80. package/assets/{labels-DBHZvdEr.js → labels-D9niB03z.js} +1 -1
  81. package/assets/mail-CrkFA1JF.js +1 -0
  82. package/assets/{mail-B-HBRveP.js → mail-D5qE4FN6.js} +1 -1
  83. package/assets/{map-pin--HA8ooZj.js → map-pin-BbuzgGID.js} +1 -1
  84. package/assets/{menu-CL8oYhg5.js → menu-BNS6TRoC.js} +1 -1
  85. package/assets/{new-jRPRW8fh.js → new-N9iBOfdl.js} +1 -1
  86. package/assets/onboarding-DWkVXZJu.js +1 -0
  87. package/assets/{onboarding-completion-DZv9f55o.js → onboarding-completion-BsrETocc.js} +1 -1
  88. package/assets/outbox-BteDz8S4.js +1 -0
  89. package/assets/{pencil-D0RtlkgQ.js → pencil-CiINOUXE.js} +1 -1
  90. package/assets/{refresh-cw-aknANAyZ.js → refresh-cw-DP7E7xBG.js} +1 -1
  91. package/assets/{rich-text-Bpmt0Q2Q.js → rich-text-Dz-h6Wzi.js} +15 -15
  92. package/assets/{rich-text-spellcheck-worker-provider-CAEYgLim.js → rich-text-spellcheck-worker-provider-BAwEUuQt.js} +1 -1
  93. package/assets/{rotate-ccw-ANFMG0Un.js → rotate-ccw-C4-mOKlW.js} +1 -1
  94. package/assets/roving-focus-BFebcwNO.js +1 -0
  95. package/assets/{row-actions-CT3DvHHR.js → row-actions-B7DxoNvh.js} +1 -1
  96. package/assets/{search-mirror-w8o3KYuJ.js → search-mirror-DxN5-fCD.js} +1 -1
  97. package/assets/{search-token-index-dunAqY2l.js → search-token-index-Cmtl3dKn.js} +1 -1
  98. package/assets/{sections-CpLvdf_Q.js → sections-wd7CziQ2.js} +1 -1
  99. package/assets/{senders-DGhCm9Cq.js → senders-CloB4eNC.js} +1 -1
  100. package/assets/settings-DH_Czyn_.js +1 -0
  101. package/assets/{settings-screen-n7380RZQ.js → settings-screen-BSHTP4w3.js} +1 -1
  102. package/assets/{shield-check-BqYHKvFE.js → shield-check-BqR-Gonk.js} +1 -1
  103. package/assets/{suggested-vips-BAvZjSyo.js → suggested-vips-rQSwcCZv.js} +1 -1
  104. package/assets/{useCalendarData-D1EN840n.js → useCalendarData-CCXTAZRA.js} +1 -1
  105. package/assets/{useCalendars-DH8nOZcd.js → useCalendars-BHFymoaq.js} +1 -1
  106. package/assets/{useDebouncedValue-Dv0WkGIF.js → useDebouncedValue-6OtqszcW.js} +1 -1
  107. package/assets/{useFilters-DS_Q_iog.js → useFilters-Ccb4BahB.js} +1 -1
  108. package/assets/{useLabels-j2kudmYw.js → useLabels-DcCbJtSx.js} +1 -1
  109. package/assets/{useLayoutTier-CCGjVGyC.js → useLayoutTier-CF0bNBqy.js} +1 -1
  110. package/assets/{useMessageBodyContent-CRGA_hjE.js → useMessageBodyContent-q8o4QD20.js} +1 -1
  111. package/assets/{useQueries-djG1CrNB.js → useQueries-gUcpJxIV.js} +1 -1
  112. package/assets/{useRefreshControl-Bi0R4fuK.js → useRefreshControl-DvDz3P8k.js} +1 -1
  113. package/assets/{useResultFolderIndex-BCGAB_OB.js → useResultFolderIndex-DlAYVvjn.js} +1 -1
  114. package/assets/{useSearchTokenContext-9o7ruLw5.js → useSearchTokenContext-BCmfVUAi.js} +3 -3
  115. package/assets/{useSemanticSearch-DYgnPGVP.js → useSemanticSearch-4IMN41e8.js} +1 -1
  116. package/assets/{useSignature--ONyUwiW.js → useSignature-D80B_qPi.js} +1 -1
  117. package/assets/{window--WwoSABt.js → window-BIqTObac.js} +1 -1
  118. package/index.html +1 -1
  119. package/package.json +1 -1
  120. package/assets/BriefPane-Ip1tU4Q2.js +0 -1
  121. package/assets/MailListHeader-BNe_s60T.js +0 -7
  122. package/assets/MailNav-Bqn1DFhd.js +0 -1
  123. package/assets/MailViewChrome-B1fzfXtB.js +0 -1
  124. package/assets/OutboxPane-DlPDtcBL.js +0 -1
  125. package/assets/_calendarObjectId-CZ_xnOwy.js +0 -1
  126. package/assets/_mailboxId-DLTSNNdz.js +0 -1
  127. package/assets/_messageId-B4E9VsGl.js +0 -1
  128. package/assets/_messageId-CWNpxM_O.js +0 -1
  129. package/assets/_messageId-CdX9aQBn.js +0 -1
  130. package/assets/_outboxMessageId-nFK7r3Fh.js +0 -1
  131. package/assets/_recurrenceId-Dn5opwOe.js +0 -1
  132. package/assets/_threadId-DliBCvhK.js +0 -1
  133. package/assets/_threadId-QAbbdkCV.js +0 -1
  134. package/assets/_threadId-cDiMLExB.js +0 -1
  135. package/assets/_view._date-AOhQ7-Uc.js +0 -1
  136. package/assets/brief-D4AeeAY5.js +0 -1
  137. package/assets/calendar-Ckcu_24O.js +0 -1
  138. package/assets/chevron-left-K8Bg0uJl.js +0 -1
  139. package/assets/compose._-_outboxMessageId_-BMcDZaSg.js +0 -1
  140. package/assets/compose._-_outboxMessageId_-CXIL2PE5.js +0 -1
  141. package/assets/compose._-_outboxMessageId_-D_3HrLmE.js +0 -1
  142. package/assets/compose._-_outboxMessageId_-opDIhYx3.js +0 -1
  143. package/assets/flagged-CBQpNBN6.js +0 -1
  144. package/assets/folders-CNPLhb4H.js +0 -1
  145. package/assets/index-B9v6nYHl.js +0 -1
  146. package/assets/index-BiRvhN4V.js +0 -1
  147. package/assets/index-BmbIB1oc.js +0 -1
  148. package/assets/index-Bry1TMaW.js +0 -1
  149. package/assets/index-CWNpxM_O.js +0 -1
  150. package/assets/index-CdX9aQBn.js +0 -1
  151. package/assets/index-ClEohi1R.js +0 -1
  152. package/assets/index-CmthVe78.js +0 -1
  153. package/assets/index-CrPVnwJ1.js +0 -294
  154. package/assets/index-R-8APqxR.js +0 -1
  155. package/assets/mail-B9aZ_UMX.js +0 -1
  156. package/assets/onboarding-BWnBpp6S.js +0 -1
  157. package/assets/outbox-D_lL10Ql.js +0 -1
  158. package/assets/settings-DXWuEuQC.js +0 -1
@@ -0,0 +1,294 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/calendar-DneQR1Xt.js","assets/CalendarShell-DbJMAS-C.js","assets/MailNav-DmDmKON5.js","assets/roving-focus-BFebcwNO.js","assets/useLayoutTier-CF0bNBqy.js","assets/useQueries-gUcpJxIV.js","assets/outbox-status-BlKn6P0x.js","assets/bug-DavmLUd9.js","assets/ErrorState-QAArpXLf.js","assets/import-DLwEJzp8.js","assets/credential-steps-C7XjDWoW.js","assets/card-C6idQCt2.js","assets/config-import-FPetVYo2.js","assets/file-json-DTL9kFs5.js","assets/onboarding-completion-BsrETocc.js","assets/mail-CrkFA1JF.js","assets/search-token-index-Cmtl3dKn.js","assets/search-scope-B5-OK3Cq.js","assets/useMessageBodyContent-q8o4QD20.js","assets/pencil-CiINOUXE.js","assets/MailShell-CIM1STt4.js","assets/FullCompose-CCGrmPJg.js","assets/index-Ex7ioeVB.js","assets/useSignature-D80B_qPi.js","assets/account-form-helpers-DhckT_PN.js","assets/useDebouncedValue-6OtqszcW.js","assets/sections-wd7CziQ2.js","assets/format-By3hRFiw.js","assets/confirm-dialog-k-k-byYR.js","assets/useRefreshControl-DvDz3P8k.js","assets/circle-check-big-C2MGkIL1.js","assets/refresh-cw-DP7E7xBG.js","assets/menu-BNS6TRoC.js","assets/avatar-DXro8ker.js","assets/kbd-g95IxlDg.js","assets/useResultFolderIndex-DlAYVvjn.js","assets/onboarding-DWkVXZJu.js","assets/OnboardingWizard-B-3KPUTk.js","assets/mail-D5qE4FN6.js","assets/_mailboxId-DQF2tTng.js","assets/MailboxPane-DO9E9d66.js","assets/useSearchTokenContext-BCmfVUAi.js","assets/MailListHeader-u7Rq5QvZ.js","assets/attachment-file-BG27lVCM.js","assets/EmptyState-CSMaYaEn.js","assets/download-tt-Cyzcf.js","assets/calendar-event-chip-QZOcdP_o.js","assets/calendar-color-AdRpHzAi.js","assets/map-pin-BbuzgGID.js","assets/attendee-row-CTNLChhq.js","assets/clock-BK5YthR0.js","assets/shield-check-BqR-Gonk.js","assets/useFilters-Ccb4BahB.js","assets/MailViewChrome-CwKbpyYR.js","assets/NavMenuButton-D33sb1Iv.js","assets/useLabels-DcCbJtSx.js","assets/useSemanticSearch-4IMN41e8.js","assets/search-query-Cr_ZXBCp.js","assets/bottom-sheet-C7xkmDov.js","assets/circle-help-B4BuWt0G.js","assets/circle-check-BOIz7Z_j.js","assets/search-mirror-DxN5-fCD.js","assets/brief-B-ou101e.js","assets/brief-B3zDqsEV.js","assets/BriefPane-BF3QpH9s.js","assets/wizard-selection-DxUM65kM.js","assets/flagged-BbV9soU9.js","assets/flagged-DdPgHrWA.js","assets/FlaggedPane-BtaFIljM.js","assets/outbox-BteDz8S4.js","assets/OutboxPane-DuI38cvH.js","assets/row-actions-B7DxoNvh.js","assets/rotate-ccw-C4-mOKlW.js","assets/accounts-xBjoZkoW.js","assets/settings-screen-BSHTP4w3.js","assets/chevron-left-BwWGiDVd.js","assets/help-copy-Dwlt9trH.js","assets/advanced-ByJqVgoW.js","assets/copy-DOvcgC4N.js","assets/appearance-ZmXLJr87.js","assets/calendars-CXJ5rls_.js","assets/useCalendars-BHFymoaq.js","assets/filters-oxhJ9CrI.js","assets/folders-BZdx-r7F.js","assets/labels-D9niB03z.js","assets/senders-CloB4eNC.js","assets/_view._date-ccLw5fGv.js","assets/window-BIqTObac.js","assets/useCalendarData-CCXTAZRA.js","assets/CalendarComposeSeed-CqB_vGGN.js","assets/index-CX22JAkI.js","assets/index-26R7PEMP.js","assets/index-CcPXpKEP.js","assets/index-BxuJcbHa.js","assets/index-Bsmi-6m5.js","assets/new-N9iBOfdl.js","assets/CalendarComposePane-B6OhiQsN.js","assets/index-Pv-qxF_k.js","assets/_messageId-CmzkEIXV.js","assets/compose._-_outboxMessageId_-BHPHapGA.js","assets/index-npsdHvXX.js","assets/_messageId-DXA2DL6W.js","assets/compose._-_outboxMessageId_-iWeSeSc4.js","assets/index-DjkcpITY.js","assets/_messageId-DjkcpITY.js","assets/compose._-_outboxMessageId_-CwE4fYtQ.js","assets/compose._-_outboxMessageId_-CR4zylJj.js","assets/_outboxMessageId-C83CuACP.js","assets/index-B9SKzNNx.js","assets/OpenCalendarEvent-BtVmJGD7.js","assets/_recurrenceId-Du4qexes.js"])))=>i.map(i=>d[i]);
2
+ function aL(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();var ng=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var US={exports:{}},jf={};var E5;function fG(){if(E5)return jf;E5=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var i=null;if(s!==void 0&&(i=""+s),a.key!==void 0&&(i=""+a.key),"key"in a){s={};for(var u in a)u!=="key"&&(s[u]=a[u])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:i,ref:a!==void 0?a:null,props:s}}return jf.Fragment=t,jf.jsx=n,jf.jsxs=n,jf}var _5;function hG(){return _5||(_5=1,US.exports=fG()),US.exports}var C=hG();const pG="Logging",mG="x-amz-user-agent",gG="NoHubcallbackProvidedException";var ia;(function(e){e.DEBUG="DEBUG",e.ERROR="ERROR",e.INFO="INFO",e.WARN="WARN",e.VERBOSE="VERBOSE",e.NONE="NONE"})(ia||(ia={}));const k5={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,NONE:6};class ur{constructor(t,n=ia.WARN){this.name=t,this.level=n,this._pluggables=[]}_padding(t){return t<10?"0"+t:""+t}_ts(){const t=new Date;return[this._padding(t.getMinutes()),this._padding(t.getSeconds())].join(":")+"."+t.getMilliseconds()}configure(t){return t?(this._config=t,this._config):this._config}_log(t,...n){let r=this.level;ur.LOG_LEVEL&&(r=ur.LOG_LEVEL),typeof window<"u"&&window.LOG_LEVEL&&(r=window.LOG_LEVEL);const a=k5[r];if(!(k5[t]>=a))return;let i=console.log.bind(console);t===ia.ERROR&&console.error&&(i=console.error.bind(console)),t===ia.WARN&&console.warn&&(i=console.warn.bind(console)),ur.BIND_ALL_LOG_LEVELS&&(t===ia.INFO&&console.info&&(i=console.info.bind(console)),t===ia.DEBUG&&console.debug&&(i=console.debug.bind(console)));const u=`[${t}] ${this._ts()} ${this.name}`;let c="";if(n.length===1&&typeof n[0]=="string")c=`${u} - ${n[0]}`,i(c);else if(n.length===1)c=`${u} ${n[0]}`,i(u,n[0]);else if(typeof n[0]=="string"){let f=n.slice(1);f.length===1&&(f=f[0]),c=`${u} - ${n[0]} ${f}`,i(`${u} - ${n[0]}`,f)}else c=`${u} ${n}`,i(u,n);for(const f of this._pluggables){const h={message:c,timestamp:Date.now()};f.pushLogs([h])}}log(...t){this._log(ia.INFO,...t)}info(...t){this._log(ia.INFO,...t)}warn(...t){this._log(ia.WARN,...t)}error(...t){this._log(ia.ERROR,...t)}debug(...t){this._log(ia.DEBUG,...t)}verbose(...t){this._log(ia.VERBOSE,...t)}addPluggable(t){t&&t.getCategoryName()===pG&&(this._pluggables.push(t),t.configure(this._config))}listPluggables(){return this._pluggables}}ur.LOG_LEVEL=null;ur.BIND_ALL_LOG_LEVELS=!1;class Kr extends Error{constructor({message:t,name:n,recoverySuggestion:r,underlyingError:a,metadata:s}){if(super(t),this.name=n,this.underlyingError=a,this.recoverySuggestion=r,s){const{extendedRequestId:i,httpStatusCode:u,requestId:c}=s;this.metadata={extendedRequestId:i,httpStatusCode:u,requestId:c}}this.constructor=Kr,Object.setPrototypeOf(this,Kr.prototype)}}var Hi;(function(e){e.NoEndpointId="NoEndpointId",e.PlatformNotSupported="PlatformNotSupported",e.Unknown="Unknown",e.NetworkError="NetworkError"})(Hi||(Hi={}));const ev=(e,t=Kr)=>(n,r,a)=>{const{message:s,recoverySuggestion:i}=e[r];if(!n)throw new t({name:r,message:a?`${s} ${a}`:s,recoverySuggestion:i})},Ts=typeof Symbol<"u"?Symbol("amplify_default"):"@@amplify_default",zf=new ur("Hub");class sL{constructor(t){this.listeners=new Map,this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=t}_remove(t,n){const r=this.listeners.get(t);if(!r){zf.warn(`No listeners for ${t}`);return}this.listeners.set(t,[...r.filter(({callback:a})=>a!==n)])}dispatch(t,n,r,a){typeof t=="string"&&this.protectedChannels.indexOf(t)>-1&&(a===Ts||zf.warn(`WARNING: ${t} is protected and dispatching on it can have unintended consequences`));const s={channel:t,payload:{...n},source:r,patternInfo:[]};try{this._toListeners(s)}catch(i){zf.error(i)}}listen(t,n,r="noname"){let a;if(typeof n!="function")throw new Kr({name:gG,message:"No callback supplied to Hub"});a=n;let s=this.listeners.get(t);return s||(s=[],this.listeners.set(t,s)),s.push({name:r,callback:a}),()=>{this._remove(t,a)}}_toListeners(t){const{channel:n,payload:r}=t,a=this.listeners.get(n);a&&a.forEach(s=>{zf.debug(`Dispatching to ${n} with `,r);try{s.callback(t)}catch(i){zf.error(i)}})}}const Os=new sL("__default__"),F0=new sL("internal-hub"),ek=()=>{if(typeof window=="object"&&typeof window.crypto=="object")return window.crypto;if(typeof crypto=="object")return crypto;throw new Kr({name:"MissingPolyfill",message:"Cannot resolve the `crypto` function from the environment."})},vG=()=>{if(typeof window<"u"&&typeof window.btoa=="function")return window.btoa;if(typeof btoa=="function")return btoa;throw new Kr({name:"Base64EncoderError",message:"Cannot resolve the `btoa` function from the environment."})},yG=()=>{if(typeof window<"u"&&typeof window.atob=="function")return window.atob;if(typeof atob=="function")return atob;throw new Kr({name:"Base64EncoderError",message:"Cannot resolve the `atob` function from the environment."})},tk={convert(e,t){let n=e;return t?.urlSafe&&(n=n.replace(/-/g,"+").replace(/_/g,"/")),yG()(n)}};var _s;(function(e){e.AuthTokenConfigException="AuthTokenConfigException",e.AuthUserPoolAndIdentityPoolException="AuthUserPoolAndIdentityPoolException",e.AuthUserPoolException="AuthUserPoolException",e.InvalidIdentityPoolIdException="InvalidIdentityPoolIdException",e.OAuthNotConfigureException="OAuthNotConfigureException"})(_s||(_s={}));const bG={[_s.AuthTokenConfigException]:{message:"Auth Token Provider not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app."},[_s.AuthUserPoolAndIdentityPoolException]:{message:"Auth UserPool or IdentityPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with UserPoolId and IdentityPoolId."},[_s.AuthUserPoolException]:{message:"Auth UserPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with userPoolId and userPoolClientId."},[_s.InvalidIdentityPoolIdException]:{message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."},[_s.OAuthNotConfigureException]:{message:"oauth param not configured.",recoverySuggestion:"Make sure to call Amplify.configure with oauth parameter in your app."}},nk=ev(bG);function dt(e){let t=!0;e?t=!!e.userPoolId&&!!e.userPoolClientId:t=!1,nk(t,_s.AuthUserPoolException)}function tv(e){const t=!!e?.loginWith?.oauth?.domain&&!!e?.loginWith?.oauth?.redirectSignOut&&!!e?.loginWith?.oauth?.redirectSignIn&&!!e?.loginWith?.oauth?.responseType;nk(t,_s.OAuthNotConfigureException)}function l0(e){const t=!!e?.identityPoolId;nk(t,_s.InvalidIdentityPoolIdException)}function Eo(e){const t=e.split(".");if(t.length!==3)throw new Error("Invalid token");try{const r=t[1].replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(tk.convert(r).split("").map(i=>`%${`00${i.charCodeAt(0).toString(16)}`.slice(-2)}`).join("")),s=JSON.parse(a);return{toString:()=>e,payload:s}}catch{throw new Error("Invalid token payload")}}const oL=e=>{const t=Reflect.ownKeys(e);for(const n of t){const r=e[n];(r&&typeof r=="object"||typeof r=="function")&&oL(r)}return Object.freeze(e)},SG=new ur("parseAWSExports"),wG={API_KEY:"apiKey",AWS_IAM:"iam",AMAZON_COGNITO_USER_POOLS:"userPool",OPENID_CONNECT:"oidc",NONE:"none",AWS_LAMBDA:"lambda",LAMBDA:"lambda"},xG=(e={})=>{if(!Object.prototype.hasOwnProperty.call(e,"aws_project_region"))throw new Kr({name:"InvalidParameterException",message:"Invalid config parameter.",recoverySuggestion:"Ensure passing the config object imported from `amplifyconfiguration.json`."});const{aws_appsync_apiKey:t,aws_appsync_authenticationType:n,aws_appsync_graphqlEndpoint:r,aws_appsync_region:a,aws_bots_config:s,aws_cognito_identity_pool_id:i,aws_cognito_sign_up_verification_method:u,aws_cognito_mfa_configuration:c,aws_cognito_mfa_types:f,aws_cognito_password_protection_settings:h,aws_cognito_verification_mechanisms:m,aws_cognito_signup_attributes:g,aws_cognito_social_providers:y,aws_cognito_username_attributes:S,aws_mandatory_sign_in:w,aws_mobile_analytics_app_id:x,aws_mobile_analytics_app_region:_,aws_user_files_s3_bucket:k,aws_user_files_s3_bucket_region:A,aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing:R,aws_user_pools_id:N,aws_user_pools_web_client_id:O,geo:T,oauth:P,predictions:L,aws_cloud_logic_custom:q,Notifications:j,modelIntrospection:U}=e,H={};x&&(H.Analytics={Pinpoint:{appId:x,region:_}});const{InAppMessaging:Z,Push:se}=j??{};if(Z?.AWSPinpoint||se?.AWSPinpoint){if(Z?.AWSPinpoint){const{appId:J,region:oe}=Z.AWSPinpoint;H.Notifications={InAppMessaging:{Pinpoint:{appId:J,region:oe}}}}if(se?.AWSPinpoint){const{appId:J,region:oe}=se.AWSPinpoint;H.Notifications={...H.Notifications,PushNotification:{Pinpoint:{appId:J,region:oe}}}}}if(Array.isArray(s)&&(H.Interactions={LexV1:Object.fromEntries(s.map(J=>[J.name,J]))}),r){const J=wG[n];J||SG.debug(`Invalid authentication type ${n}. Falling back to IAM.`),H.API={GraphQL:{endpoint:r,apiKey:t,region:a,defaultAuthMode:J??"iam"}},U&&(H.API.GraphQL.modelIntrospection=U)}const B=c?{status:c&&c.toLowerCase(),totpEnabled:f?.includes("TOTP")??!1,smsEnabled:f?.includes("SMS")??!1}:void 0,X=h?{minLength:h.passwordPolicyMinLength,requireLowercase:h.passwordPolicyCharacters?.includes("REQUIRES_LOWERCASE")??!1,requireUppercase:h.passwordPolicyCharacters?.includes("REQUIRES_UPPERCASE")??!1,requireNumbers:h.passwordPolicyCharacters?.includes("REQUIRES_NUMBERS")??!1,requireSpecialCharacters:h.passwordPolicyCharacters?.includes("REQUIRES_SYMBOLS")??!1}:void 0,de=Array.from(new Set([...m??[],...g??[]])).reduce((J,oe)=>({...J,[oe.toLowerCase()]:{required:!0}}),{}),we=S?.includes("EMAIL")??!1,z=S?.includes("PHONE_NUMBER")??!1;(i||N)&&(H.Auth={Cognito:{identityPoolId:i,allowGuestAccess:w!=="enable",signUpVerificationMethod:u,userAttributes:de,userPoolClientId:O,userPoolId:N,mfa:B,passwordFormat:X,loginWith:{username:!(we||z),email:we,phone:z}}});const W=P?Object.keys(P).length>0:!1,G=y?y.length>0:!1;if(H.Auth&&W&&(H.Auth.Cognito.loginWith={...H.Auth.Cognito.loginWith,oauth:{...CG(P),...G&&{providers:EG(y)}}}),k&&(H.Storage={S3:{bucket:k,region:A,dangerouslyConnectToHttpEndpointForTesting:R}}),T){const{amazon_location_service:J}=T;H.Geo={LocationService:{maps:J.maps,geofenceCollections:J.geofenceCollections,searchIndices:J.search_indices,region:J.region}}}if(q&&(H.API={...H.API,REST:q.reduce((J,oe)=>{const{name:pe,endpoint:K,region:fe,service:ge}=oe;return{...J,[pe]:{endpoint:K,...ge?{service:ge}:void 0,...fe?{region:fe}:void 0}}},{})}),L){const{VoiceId:J}=L?.convert?.speechGenerator?.defaults??{};H.Predictions=J?{...L,convert:{...L.convert,speechGenerator:{...L.convert.speechGenerator,defaults:{voiceId:J}}}}:L}return H},A5=e=>e?.split(",")??[],CG=({domain:e,scope:t,redirectSignIn:n,redirectSignOut:r,responseType:a})=>({domain:e,scopes:t,redirectSignIn:A5(n),redirectSignOut:A5(r),responseType:a}),EG=e=>e.map(t=>{const n=t.toLowerCase();return n.charAt(0).toUpperCase()+n.slice(1)}),iL=Symbol("oauth-listener"),sr=[];for(let e=0;e<256;++e)sr.push((e+256).toString(16).slice(1));function _G(e,t=0){return(sr[e[t+0]]+sr[e[t+1]]+sr[e[t+2]]+sr[e[t+3]]+"-"+sr[e[t+4]]+sr[e[t+5]]+"-"+sr[e[t+6]]+sr[e[t+7]]+"-"+sr[e[t+8]]+sr[e[t+9]]+"-"+sr[e[t+10]]+sr[e[t+11]]+sr[e[t+12]]+sr[e[t+13]]+sr[e[t+14]]+sr[e[t+15]]).toLowerCase()}let jS;const kG=new Uint8Array(16);function AG(){if(!jS){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");jS=crypto.getRandomValues.bind(crypto)}return jS(kG)}const IG=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),I5={randomUUID:IG};function RG(e,t,n){if(I5.randomUUID&&!t&&!e)return I5.randomUUID();e=e||{};const r=e.random??e.rng?.()??AG();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[n+a]=r[a];return t}return _G(r)}function TG(e){const{version:t}=e;return t?t.startsWith("1"):!1}function OG(e){if(!e)return;const{bucket_name:t,aws_region:n,buckets:r}=e;return{S3:{bucket:t,region:n,buckets:r&&BG(r)}}}function NG(e){if(!e)return;const{user_pool_id:t,user_pool_client_id:n,identity_pool_id:r,password_policy:a,mfa_configuration:s,mfa_methods:i,unauthenticated_identities_enabled:u,oauth:c,username_attributes:f,standard_required_attributes:h,groups:m,passwordless:g}=e,y={Cognito:{userPoolId:t,userPoolClientId:n,groups:m}};return r&&(y.Cognito={...y.Cognito,identityPoolId:r}),a&&(y.Cognito.passwordFormat={requireLowercase:a.require_lowercase,requireNumbers:a.require_numbers,requireUppercase:a.require_uppercase,requireSpecialCharacters:a.require_symbols,minLength:a.min_length??6}),s&&(y.Cognito.mfa={status:$G(s),smsEnabled:i?.includes("SMS"),totpEnabled:i?.includes("TOTP")}),u&&(y.Cognito.allowGuestAccess=u),c&&(y.Cognito.loginWith={oauth:{domain:c.domain,redirectSignIn:c.redirect_sign_in_uri,redirectSignOut:c.redirect_sign_out_uri,responseType:c.response_type==="token"?"token":"code",scopes:c.scopes,providers:FG(c.identity_providers)}}),f&&(y.Cognito.loginWith={...y.Cognito.loginWith,email:f.includes("email"),phone:f.includes("phone_number"),username:f.includes("username")}),h&&(y.Cognito.userAttributes=h.reduce((S,w)=>({...S,[w]:{required:!0}}),{})),g&&(y.Cognito.passwordless={emailOtpEnabled:g.email_otp_enabled,smsOtpEnabled:g.sms_otp_enabled,webAuthn:g.web_authn?{relyingPartyId:g.web_authn.relying_party_id,userVerification:g.web_authn.user_verification}:void 0,preferredChallenge:g.preferred_challenge}),y}function MG(e){if(!e?.amazon_pinpoint)return;const{amazon_pinpoint:t}=e;return{Pinpoint:{appId:t.app_id,region:t.aws_region}}}function PG(e){if(!e)return;const{aws_region:t,geofence_collections:n,maps:r,search_indices:a}=e;return{LocationService:{region:t,searchIndices:a,geofenceCollections:n,maps:r}}}function DG(e){if(!e)return;const{aws_region:t,default_authorization_type:n,url:r,api_key:a,model_introspection:s}=e;return{GraphQL:{endpoint:r,defaultAuthMode:lL(n),region:t,apiKey:a,modelIntrospection:s}}}function LG(e){if(!e?.events)return;const{url:t,aws_region:n,api_key:r,default_authorization_type:a}=e.events;return{Events:{endpoint:t,defaultAuthMode:lL(a),region:n,apiKey:r}}}function UG(e){if(!e)return;const{aws_region:t,channels:n,amazon_pinpoint_app_id:r}=e,a=n.includes("IN_APP_MESSAGING"),s=n.includes("APNS")||n.includes("FCM");if(!(a||s))return;const i={};return a&&(i.InAppMessaging={Pinpoint:{appId:r,region:t}}),s&&(i.PushNotification={Pinpoint:{appId:r,region:t}}),i}function jG(e){const t={};if(e.storage&&(t.Storage=OG(e.storage)),e.auth&&(t.Auth=NG(e.auth)),e.analytics&&(t.Analytics=MG(e.analytics)),e.geo&&(t.Geo=PG(e.geo)),e.data&&(t.API=DG(e.data)),e.custom){const n=LG(e.custom);n&&"Events"in n&&(t.API={...t.API,...n})}return e.notifications&&(t.Notifications=UG(e.notifications)),t}const zG={AMAZON_COGNITO_USER_POOLS:"userPool",API_KEY:"apiKey",AWS_IAM:"iam",AWS_LAMBDA:"lambda",OPENID_CONNECT:"oidc"};function lL(e){return zG[e]}const R5={GOOGLE:"Google",LOGIN_WITH_AMAZON:"Amazon",FACEBOOK:"Facebook",SIGN_IN_WITH_APPLE:"Apple"};function FG(e=[]){return e.reduce((t,n)=>(R5[n]!==void 0&&t.push(R5[n]),t),[])}function $G(e){return e==="OPTIONAL"?"optional":e==="REQUIRED"?"on":"off"}function BG(e){const t={};return e.forEach(({name:n,bucket_name:r,aws_region:a,paths:s})=>{if(n in t)throw new Error(`Duplicate friendly name found: ${n}. Name must be unique.`);const i=s?Object.entries(s).reduce((u,[c,f])=>(f!==void 0&&(u[c]=f),u),{}):void 0;t[n]={bucketName:r,region:a,paths:i}}),t}const uL=e=>Object.keys(e).some(t=>t.startsWith("aws_"))?xG(e):TG(e)?jG(e):e;var T5=function(){return T5=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},T5.apply(this,arguments)};function T6e(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function HG(e,t,n,r){function a(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function u(h){try{f(r.next(h))}catch(m){i(m)}}function c(h){try{f(r.throw(h))}catch(m){i(m)}}function f(h){h.done?s(h.value):a(h.value).then(u,c)}f((r=r.apply(e,t||[])).next())})}function qG(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=u(0),i.throw=u(1),i.return=u(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(f){return function(h){return c([f,h])}}function c(f){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,f[0]&&(n=0)),n;)try{if(r=1,a&&(s=f[0]&2?a.return:f[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,f[1])).done)return s;switch(a=0,s&&(f=[f[0]&2,s.value]),f[0]){case 0:case 1:s=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,a=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!s||f[1]>s[0]&&f[1]<s[3])){n.label=f[1];break}if(f[0]===6&&n.label<s[1]){n.label=s[1],s=f;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(f);break}s[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(h){f=[6,h],a=0}finally{r=s=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function O6e(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,s;r<a;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Aa=64,VG=32,WG=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),GG=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],KG=Math.pow(2,53)-1,u0=(function(){function e(){this.state=Int32Array.from(GG),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=t.byteLength;if(this.bytesHashed+=r,this.bytesHashed*8>KG)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=t[n++],r--,this.bufferLength===Aa&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%Aa>=Aa-8){for(var a=this.bufferLength;a<Aa;a++)n.setUint8(a,0);this.hashBuffer(),this.bufferLength=0}for(var a=this.bufferLength;a<Aa-8;a++)n.setUint8(a,0);n.setUint32(Aa-8,Math.floor(t/4294967296),!0),n.setUint32(Aa-4,t),this.hashBuffer(),this.finished=!0}for(var s=new Uint8Array(VG),a=0;a<8;a++)s[a*4]=this.state[a]>>>24&255,s[a*4+1]=this.state[a]>>>16&255,s[a*4+2]=this.state[a]>>>8&255,s[a*4+3]=this.state[a]>>>0&255;return s},e.prototype.hashBuffer=function(){for(var t=this,n=t.buffer,r=t.state,a=r[0],s=r[1],i=r[2],u=r[3],c=r[4],f=r[5],h=r[6],m=r[7],g=0;g<Aa;g++){if(g<16)this.temp[g]=(n[g*4]&255)<<24|(n[g*4+1]&255)<<16|(n[g*4+2]&255)<<8|n[g*4+3]&255;else{var y=this.temp[g-2],S=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10;y=this.temp[g-15];var w=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;this.temp[g]=(S+this.temp[g-7]|0)+(w+this.temp[g-16]|0)}var x=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&f^~c&h)|0)+(m+(WG[g]+this.temp[g]|0)|0)|0,_=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&s^a&i^s&i)|0;m=h,h=f,f=c,c=u+x|0,u=i,i=s,s=a,a=x+_|0}r[0]+=a,r[1]+=s,r[2]+=i,r[3]+=u,r[4]+=c,r[5]+=f,r[6]+=h,r[7]+=m},e})();const YG=e=>new TextEncoder().encode(e);var ZG=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:YG;function cL(e){return e instanceof Uint8Array?e:typeof e=="string"?ZG(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function XG(e){return typeof e=="string"?e.length===0:e.byteLength===0}var Zl=(function(){function e(t){this.secret=t,this.hash=new u0,this.reset()}return e.prototype.update=function(t){if(!(XG(t)||this.error))try{this.hash.update(cL(t))}catch(n){this.error=n}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return HG(this,void 0,void 0,function(){return qG(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new u0,this.secret){this.outer=new u0;var t=QG(this.secret),n=new Uint8Array(Aa);n.set(t);for(var r=0;r<Aa;r++)t[r]^=54,n[r]^=92;this.hash.update(t),this.outer.update(n);for(var r=0;r<t.byteLength;r++)t[r]=0}},e})();function QG(e){var t=cL(e);if(t.byteLength>Aa){var n=new u0;n.update(t),t=n.digest()}var r=new Uint8Array(Aa);return r.set(t),r}for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`)}var Tn;(function(e){e.WebUnknown="0",e.React="1",e.NextJs="2",e.Angular="3",e.VueJs="4",e.Nuxt="5",e.Svelte="6",e.ServerSideUnknown="100",e.ReactSSR="101",e.NextJsSSR="102",e.AngularSSR="103",e.VueJsSSR="104",e.NuxtSSR="105",e.SvelteSSR="106",e.ReactNative="201",e.Expo="202"})(Tn||(Tn={}));var Na;(function(e){e.AI="ai",e.API="api",e.Auth="auth",e.Analytics="analytics",e.DataStore="datastore",e.Geo="geo",e.InAppMessaging="inappmessaging",e.Interactions="interactions",e.Predictions="predictions",e.PubSub="pubsub",e.PushNotification="pushnotification",e.Storage="storage"})(Na||(Na={}));var po;(function(e){e.CreateConversation="1",e.GetConversation="2",e.ListConversations="3",e.DeleteConversation="4",e.SendMessage="5",e.ListMessages="6",e.OnMessage="7",e.Generation="8",e.UpdateConversation="9"})(po||(po={}));var O5;(function(e){e.Record="1",e.IdentifyUser="2"})(O5||(O5={}));var N5;(function(e){e.GraphQl="1",e.Get="2",e.Post="3",e.Put="4",e.Patch="5",e.Del="6",e.Head="7"})(N5||(N5={}));var tt;(function(e){e.SignUp="1",e.ConfirmSignUp="2",e.ResendSignUpCode="3",e.SignIn="4",e.FetchMFAPreference="6",e.UpdateMFAPreference="7",e.SetUpTOTP="10",e.VerifyTOTPSetup="11",e.ConfirmSignIn="12",e.DeleteUserAttributes="15",e.DeleteUser="16",e.UpdateUserAttributes="17",e.FetchUserAttributes="18",e.ConfirmUserAttribute="22",e.SignOut="26",e.UpdatePassword="27",e.ResetPassword="28",e.ConfirmResetPassword="29",e.FederatedSignIn="30",e.RememberDevice="32",e.ForgetDevice="33",e.FetchDevices="34",e.SendUserAttributeVerificationCode="35",e.SignInWithRedirect="36",e.StartWebAuthnRegistration="37",e.CompleteWebAuthnRegistration="38",e.ListWebAuthnCredentials="39",e.DeleteWebAuthnCredential="40"})(tt||(tt={}));var M5;(function(e){e.Subscribe="1",e.GraphQl="2"})(M5||(M5={}));var Eh;(function(e){e.SearchByText="0",e.SearchByCoordinates="1",e.SearchForSuggestions="2",e.SearchByPlaceId="3",e.SaveGeofences="4",e.GetGeofence="5",e.ListGeofences="6",e.DeleteGeofences="7"})(Eh||(Eh={}));var jE;(function(e){e.SyncMessages="1",e.IdentifyUser="2",e.NotifyMessageInteraction="3"})(jE||(jE={}));var P5;(function(e){e.None="0"})(P5||(P5={}));var D5;(function(e){e.Convert="1",e.Identify="2",e.Interpret="3"})(D5||(D5={}));var L5;(function(e){e.Subscribe="1"})(L5||(L5={}));var U5;(function(e){e.InitializePushNotifications="1",e.IdentifyUser="2"})(U5||(U5={}));var Wa;(function(e){e.UploadData="1",e.DownloadData="2",e.List="3",e.Copy="4",e.Remove="5",e.GetProperties="6",e.GetUrl="7",e.GetDataAccess="8",e.ListCallerAccessGrants="9"})(Wa||(Wa={}));const JG="6.18.0",nv=()=>typeof global<"u",kd=()=>typeof window<"u",dL=()=>typeof document<"u",rk=()=>typeof process<"u",zh=(e,t)=>!!Object.keys(e).find(n=>n.startsWith(t));var j5={};function eK(){const e=r=>r.startsWith("_react")||r.startsWith("__react"),t=r=>Object.keys(r).find(e),n=()=>Array.from(document.querySelectorAll("[id]"));return dL()&&n().some(t)}function tK(){return rk()&&typeof j5<"u"&&!!Object.keys(j5).find(e=>e.includes("react"))}function nK(){return kd()&&zh(window,"__VUE")}function rK(){return nv()&&zh(global,"__VUE")}var z5={};function aK(){return kd()&&zh(window,"__SVELTE")}function sK(){return rk()&&typeof z5<"u"&&!!Object.keys(z5).find(e=>e.includes("svelte"))}function oK(){return kd()&&window.next&&typeof window.next=="object"}function iK(){return nv()&&(zh(global,"__next")||zh(global,"__NEXT"))}function lK(){return kd()&&(window.__NUXT__!==void 0||window.$nuxt!==void 0)}function uK(){return nv()&&typeof global.__NUXT_PATHS__<"u"}var F5={};function cK(){const e=!!(dL()&&document.querySelector("[ng-version]")),t=!!(kd()&&typeof window.ng<"u");return e||t}function dK(){return rk()&&typeof F5=="object"&&F5.npm_lifecycle_script?.startsWith("ng ")||!1}function fK(){return typeof navigator<"u"&&typeof navigator.product<"u"&&navigator.product==="ReactNative"}function hK(){return nv()&&typeof global.expo<"u"}function pK(){return kd()}const mK=[{platform:Tn.Expo,detectionMethod:hK},{platform:Tn.ReactNative,detectionMethod:fK},{platform:Tn.NextJs,detectionMethod:oK},{platform:Tn.Nuxt,detectionMethod:lK},{platform:Tn.Angular,detectionMethod:cK},{platform:Tn.React,detectionMethod:eK},{platform:Tn.VueJs,detectionMethod:nK},{platform:Tn.Svelte,detectionMethod:aK},{platform:Tn.WebUnknown,detectionMethod:pK},{platform:Tn.NextJsSSR,detectionMethod:iK},{platform:Tn.NuxtSSR,detectionMethod:uK},{platform:Tn.ReactSSR,detectionMethod:tK},{platform:Tn.VueJsSSR,detectionMethod:rK},{platform:Tn.AngularSSR,detectionMethod:dK},{platform:Tn.SvelteSSR,detectionMethod:sK}];function gK(){return mK.find(e=>e.detectionMethod())?.platform||Tn.ServerSideUnknown}let _h;const zS=[];let zE=!1;const vK=10,yK=10,bK=1e3,fL=()=>{if(!_h){if(_h=gK(),zE)for(;zS.length;)zS.pop()?.();else zS.forEach(e=>{e()});$5(Tn.ServerSideUnknown,vK),$5(Tn.WebUnknown,yK)}return _h};function SK(){_h=void 0}function $5(e,t){_h===e&&!zE&&setTimeout(()=>{SK(),zE=!0,setTimeout(fL,bK)},t)}const Ei={},io=e=>{Ei[e.category]=e.apis.reduce((r,a)=>({...r,[a]:{refCount:r[a]?.refCount?r[a].refCount+1:1,additionalDetails:e.additionalDetails}}),Ei[e.category]??{});let t=!1;return()=>{t||(t=!0,e.apis.forEach(r=>{const a=Ei[e.category][r].refCount;a>1?Ei[e.category][r].refCount=a-1:(delete Ei[e.category][r],Object.keys(Ei[e.category]).length||delete Ei[e.category])}))}},wK=(e,t)=>Ei[e]?.[t]?.additionalDetails,xK="aws-amplify",CK=e=>e.replace(/\+.*/,""),EK=({category:e,action:t}={})=>{const n=[[xK,CK(JG)]];if(e&&n.push([e,t]),n.push(["framework",fL()]),e&&t){const r=wK(e,t);r&&r.forEach(a=>{n.push(a)})}return n},rv=e=>EK(e).map(([r,a])=>r&&a?`${r}/${a}`:r).join(" "),av=()=>typeof window<"u"&&typeof window.document<"u",B5=new ur("Auth");class _K{configure(t,n){this.authConfig=t,this.authOptions=n,t&&t.Cognito?.userPoolEndpoint&&B5.warn(H5("Amazon Cognito User Pool")),t&&t.Cognito?.identityPoolEndpoint&&B5.warn(H5("Amazon Cognito Identity Pool"))}async fetchAuthSession(t={}){let n,r;const a=await this.getTokens(t);return a?(r=a.accessToken?.payload?.sub,n=await this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,tokens:a,authenticated:!0,forceRefresh:t.forceRefresh})):n=await this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,authenticated:!1,forceRefresh:t.forceRefresh}),{tokens:a,credentials:n?.credentials,identityId:n?.identityId,userSub:r}}async clearCredentials(){await this.authOptions?.credentialsProvider?.clearCredentialsAndIdentityId()}async getTokens(t){return await this.authOptions?.tokenProvider?.getTokens(t)??void 0}}const H5=e=>`You are using a custom Amazon ${e} endpoint, ensure the endpoint is correct.`;class kK{constructor(){this.oAuthListener=void 0,this.isConfigured=!1,this.resourcesConfig={},this.libraryOptions={},this.Auth=new _K}configure(t,n){const r=uL(t);this.resourcesConfig=r,n&&(this.libraryOptions=n),this.resourcesConfig=oL(this.resourcesConfig),this.Auth.configure(this.resourcesConfig.Auth,this.libraryOptions.Auth),(this.resourcesConfig.Analytics?.Pinpoint||this.resourcesConfig.Notifications?.InAppMessaging?.Pinpoint||this.resourcesConfig.Notifications?.PushNotification?.Pinpoint)&&console.warn("AWS will end support for Amazon Pinpoint on October 30, 2026. The guidance is to use AWS End User Messaging for push notifications and SMS, Amazon Simple Email Service for sending emails, Amazon Connect for campaigns, journeys, endpoints, and engagement analytics. Pinpoint recommends Amazon Kinesis for event collection and mobile analytics."),Os.dispatch("core",{event:"configure",data:this.resourcesConfig},"Configure",Ts),this.notifyOAuthListener(),this.isConfigured=!0}getConfig(){return this.isConfigured||console.warn("Amplify has not been configured. Please call Amplify.configure() before using this service."),this.resourcesConfig}[iL](t){this.resourcesConfig.Auth?.Cognito.loginWith?.oauth?t(this.resourcesConfig.Auth?.Cognito):this.oAuthListener=t}notifyOAuthListener(){!this.resourcesConfig.Auth?.Cognito.loginWith?.oauth||!this.oAuthListener||(this.oAuthListener(this.resourcesConfig.Auth?.Cognito),this.oAuthListener=void 0)}}const Kt=new kK,hL=(e,t)=>e.Auth.fetchAuthSession(t),sv=e=>hL(Kt,e);function pL(){return Kt.Auth.clearCredentials()}const ov=e=>{const{headers:t,statusCode:n}=e;return{...AK(e)?e.$metadata:{},httpStatusCode:n,requestId:t["x-amzn-requestid"]??t["x-amzn-request-id"]??t["x-amz-request-id"],extendedRequestId:t["x-amz-id-2"],cfId:t["x-amz-cf-id"]}},AK=e=>typeof e?.$metadata=="object",Ad=async e=>{if(!e||e.statusCode<300)return;const t=await xp(e),r=(i=>{const[u]=i.toString().split(/[,:]+/);return u.includes("#")?u.split("#")[1]:u})(e.headers["x-amzn-errortype"]??t.code??t.__type??"UnknownError"),a=t.message??t.Message??"Unknown error",s=new Error(a);return Object.assign(s,{name:r,$metadata:ov(e)})},xp=async e=>{if(!e.body)throw new Error("Missing response payload");const t=await e.body.json();return Object.assign(t,{$metadata:ov(e)})},Pn=(e,t,n,r)=>async(a,s)=>{const i={...r,...a},u=await i.endpointResolver(i,s),c=await t(s,u),f=await e(c,{...i});return n(f)},IK=300*1e3;function RK(e=IK){return r=>{const a=2**r*100+100*Math.random();return a>e?!1:a}}const mL=3,q5="amz-sdk-invocation-id",TK="amz-sdk-request",V5=300*1e3,gL=e=>{const n=RK(V5)(e);return n===!1?V5:n},OK=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadRequestException"],NK=e=>!!e&&OK.includes(e),vL=e=>async(t,n)=>{const r=n??await e(t)??void 0,a=r?.code||r?.name,s=t?.statusCode;return{retryable:LK(n)||DK(s,a)||NK(a)||UK(s,a)}},MK=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException"],PK=["TimeoutError","RequestTimeout","RequestTimeoutException"],DK=(e,t)=>e===429||!!t&&MK.includes(t),LK=e=>[Hi.NetworkError,"ERR_NETWORK"].includes(e?.name),UK=(e,t)=>!!e&&[500,502,503,504].includes(e)||!!t&&PK.includes(t),yL="cognito-identity",bL={service:yL,retryDecider:vL(Ad),computeDelay:gL,cache:"no-store"},jK=({maxAttempts:e=mL,retryDecider:t,computeDelay:n,abortSignal:r})=>{if(e<1)throw new Error("maxAttempts must be greater than 0");return(a,s)=>async function(u){let c,f=s.attemptsCount??0,h;const m=()=>{if(h)return W5(h,f),h;throw W5(c,f),c};for(;!r?.aborted&&f<e;){try{h=await a(u),c=void 0}catch(S){c=S,h=void 0}f=(s.attemptsCount??0)>f?s.attemptsCount??0:f+1,s.attemptsCount=f;const{isCredentialsExpiredError:g,retryable:y}=await t(h,c,s);if(y){if(s.isCredentialsExpired=!!g,!r?.aborted&&f<e){const S=n(f);await zK(S,r)}continue}else return m()}if(r?.aborted)throw new Error("Request aborted.");return m()}},zK=(e,t)=>{if(t?.aborted)return Promise.resolve();let n,r;const a=new Promise(s=>{r=s,n=setTimeout(s,e)});return t?.addEventListener("abort",function s(i){clearTimeout(n),t?.removeEventListener("abort",s),r()}),a},W5=(e,t)=>{Object.prototype.toString.call(e)==="[object Object]"&&(e.$metadata={...e.$metadata??{},attempts:t})},FK=RG,$K=()=>e=>async function(n){return n.headers[q5]||(n.headers[q5]=FK()),e(n)},BK=({maxAttempts:e=mL})=>(t,n)=>async function(a){const s=n.attemptsCount??0;return a.headers[TK]=`attempt=${s+1}; max=${e}`,t(a)},HK=({userAgentHeader:e="x-amz-user-agent",userAgentValue:t=""})=>n=>async function(a){if(t.trim().length===0)return await n(a);{const s=e.toLowerCase();return a.headers[s]=a.headers[s]?`${a.headers[s]} ${t}`:t,await n(a)}},ak=(e,t)=>(n,r)=>{const a={};let s=i=>e(i,r);for(let i=t.length-1;i>=0;i--){const u=t[i];s=u(r)(s,a)}return s(n)},FS=e=>{let t;return()=>(t||(t=e()),t)},qK=e=>!["HEAD","GET"].includes(e.toUpperCase()),VK=async({url:e,method:t,headers:n,body:r},{abortSignal:a,cache:s,withCrossDomainCredentials:i})=>{let u;try{u=await fetch(e,{method:t,headers:n,body:qK(t)?r:void 0,signal:a,cache:s,credentials:i?"include":"same-origin"})}catch(m){throw m instanceof TypeError?new Kr({name:Hi.NetworkError,message:"A network error has occurred.",underlyingError:m}):m}const c={};u.headers?.forEach((m,g)=>{c[g.toLowerCase()]=m});const f={statusCode:u.status,headers:c,body:null},h=Object.assign(u.body??{},{text:FS(()=>u.text()),blob:FS(()=>u.blob()),json:FS(()=>u.json())});return{...f,body:h}},SL=ak(VK,[HK,$K,jK,BK]),WK=()=>e=>async function(n){return n.headers["cache-control"]="no-store",e(n)},wL=ak(SL,[WK]),xL=e=>(t,n)=>{const r=GK(e),a=JSON.stringify(t);return KK(n,r,a)},GK=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${e}`}),KK=({url:e},t,n)=>({headers:t,url:e,body:n,method:"POST"}),G5=e=>Pn(wL,xL("GetCredentialsForIdentity"),YK,{...bL,...e,userAgentValue:rv()}),YK=async e=>{if(e.statusCode>=300)throw await Ad(e);const t=await xp(e);return{IdentityId:t.IdentityId,Credentials:ZK(t.Credentials),$metadata:ov(e)}},ZK=({Expiration:e,...t}={})=>({...t,Expiration:e&&new Date(e*1e3)}),XK=e=>Pn(wL,xL("GetId"),QK,{...bL,...e,userAgentValue:rv()}),QK=async e=>{if(e.statusCode>=300)throw await Ad(e);return{IdentityId:(await xp(e)).IdentityId,$metadata:ov(e)}},CL={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},JK={partitions:[CL,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},EL=e=>{const{partitions:t}=JK;for(const{regions:n,outputs:r,regionRegex:a}of t){const s=new RegExp(a);if(n.includes(e)||s.test(e))return r.dnsSuffix}return CL.outputs.dnsSuffix},el=URL,eY=({region:e})=>({url:new el(`https://${yL}.${e}.${EL(e)}`)});class ch extends Kr{constructor(){super({name:Hi.PlatformNotSupported,message:"Function not supported on current platform"})}}class _L{constructor(t){this.storage=t}async setItem(t,n){if(!this.storage)throw new ch;this.storage.setItem(t,n)}async getItem(t){if(!this.storage)throw new ch;return this.storage.getItem(t)}async removeItem(t){if(!this.storage)throw new ch;this.storage.removeItem(t)}async clear(){if(!this.storage)throw new ch;this.storage.clear()}}class kL{constructor(){this.storage=new Map}get length(){return this.storage.size}key(t){return t>this.length-1?null:Array.from(this.storage.keys())[t]}setItem(t,n){this.storage.set(t,n)}getItem(t){return this.storage.get(t)??null}removeItem(t){this.storage.delete(t)}clear(){this.storage.clear()}}const AL=new ur("CoreStorageUtils"),tY=()=>{try{if(typeof window<"u"&&window.localStorage)return window.localStorage}catch{AL.info("localStorage not found. InMemoryStorage is used as a fallback.")}return new kL},IL=()=>{try{if(typeof window<"u"&&window.sessionStorage)return window.sessionStorage.getItem("test"),window.sessionStorage;throw new Error("sessionStorage is not defined")}catch{return AL.info("sessionStorage not found. InMemoryStorage is used as a fallback."),new kL}};class nY extends _L{constructor(){super(tY())}}class rY extends _L{constructor(){super(IL())}}class aY{constructor(t){this._storage=t}get storage(){if(!this._storage)throw new ch;return this._storage}setItem(t,n){this.storage.setItem(t,n)}getItem(t){return this.storage.getItem(t)}removeItem(t){this.storage.removeItem(t)}clear(){this.storage.clear()}}class sY extends aY{constructor(){super(IL())}}function rg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)r!=="__proto__"&&(e[r]=n[r])}return e}var oY={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function FE(e,t){function n(a,s,i){if(!(typeof document>"u")){i=rg({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var c in i)i[c]&&(u+="; "+c,i[c]!==!0&&(u+="="+i[c].split(";")[0]));return document.cookie=a+"="+e.write(s,a)+u}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var s=document.cookie?document.cookie.split("; "):[],i={},u=0;u<s.length;u++){var c=s[u].split("="),f=c.slice(1).join("=");try{var h=decodeURIComponent(c[0]);if(h in i||(i[h]=e.read(f,h)),a===h)break}catch{}}return a?i[a]:i}}return Object.create({set:n,get:r,remove:function(a,s){n(a,"",rg({},s,{expires:-1}))},withAttributes:function(a){return FE(this.converter,rg({},this.attributes,a))},withConverter:function(a){return FE(rg({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var ag=FE(oY,{path:"/"});class iY{constructor(t={}){const{path:n,domain:r,expires:a,sameSite:s,secure:i}=t;if(this.domain=r,this.path=n||"/",this.expires=Object.prototype.hasOwnProperty.call(t,"expires")?a:365,this.secure=Object.prototype.hasOwnProperty.call(t,"secure")?i:!0,Object.prototype.hasOwnProperty.call(t,"sameSite")){if(!s||!["strict","lax","none"].includes(s))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if(s==="none"&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=s}}async setItem(t,n){ag.set(t,n,this.getData())}async getItem(t){return ag.get(t)??null}async removeItem(t){ag.remove(t,this.getData())}async clear(){const t=ag.get(),n=Object.keys(t).map(r=>this.removeItem(r));await Promise.all(n)}getData(){return{path:this.path,expires:this.expires,domain:this.domain,secure:this.secure,...this.sameSite&&{sameSite:this.sameSite}}}}const Cp=new nY;new rY;const So=new sY,lY=new ur("I18n");let uY=class{constructor(){this._options=null,this._lang=null,this._dict={}}setDefaultLanguage(){!this._lang&&typeof window<"u"&&window&&window.navigator&&(this._lang=window.navigator.language),lY.debug(this._lang)}setLanguage(t){this._lang=t}get(t,n=void 0){if(this.setDefaultLanguage(),!this._lang)return typeof n<"u"?n:t;const r=this._lang;let a=this.getByLanguage(t,r);return a||(r.indexOf("-")>0&&(a=this.getByLanguage(t,r.split("-")[0])),a)?a:typeof n<"u"?n:t}getByLanguage(t,n,r=null){if(!n)return r;const a=this._dict[n];return a?a[t]:r}putVocabulariesForLanguage(t,n){let r=this._dict[t];r||(r=this._dict[t]={}),this._dict[t]={...r,...n}}putVocabularies(t){Object.keys(t).forEach(n=>{this.putVocabulariesForLanguage(n,t[n])})}};var Nl;(function(e){e.NotConfigured="NotConfigured"})(Nl||(Nl={}));const cY={[Nl.NotConfigured]:{message:"i18n is not configured."}},sg=ev(cY),K5=new ur("I18n");let og={language:null},$a=null,RL=class Rl{static configure(t){return K5.debug("configure I18n"),t&&(og=Object.assign({},og,t.I18n||t),Rl.createInstance()),og}static getModuleName(){return"I18n"}static createInstance(){K5.debug("create I18n instance"),!$a&&($a=new uY)}static setLanguage(t){Rl.checkConfig(),sg(!!$a,Nl.NotConfigured),$a.setLanguage(t)}static get(t,n){return Rl.checkConfig(),sg(!!$a,Nl.NotConfigured),$a.get(t,n)}static putVocabulariesForLanguage(t,n){Rl.checkConfig(),sg(!!$a,Nl.NotConfigured),$a.putVocabulariesForLanguage(t,n)}static putVocabularies(t){Rl.checkConfig(),sg(!!$a,Nl.NotConfigured),$a.putVocabularies(t)}static checkConfig(){return $a||Rl.createInstance(),!0}};RL.createInstance();const dY=e=>{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],r=new Uint8Array(e);ek().getRandomValues(r);for(const a of r)n.push(t[a%t.length]);return n.join("")};function fY(e){return(e.match(/.{2}/g)||[]).map(n=>String.fromCharCode(parseInt(n,16))).join("")}function hY(e){return e.split("").map(t=>t.charCodeAt(0).toString(16).padStart(2,"0")).join("")}const pY=e=>{let t;return async(...n)=>t||(t=new Promise((r,a)=>{e(...n).then(s=>{r(s)}).catch(s=>{a(s)}).finally(()=>{t=void 0})}),t)};function Y5({expiresAt:e,clockDrift:t,tolerance:n=5e3}){return Date.now()+t+n>e}const mY=async()=>{const{userAgentData:e}=navigator;if(!e)return navigator.userAgent;const{platform:t="",platformVersion:n="",model:r="",architecture:a="",fullVersionList:s=[]}=await e.getHighEntropyValues(["platform","platformVersion","architecture","model","fullVersionList"]),i=s.map(c=>`${c.brand}/${c.version}`).join(";");return[t,n,a,r,t,i].filter(c=>c).join(" ")||navigator.userAgent};function gY(e){return Array.from(e,t=>String.fromCodePoint(t)).join("")}const rd={convert(e,t={urlSafe:!1,skipPadding:!1}){const n=typeof e=="string"?e:gY(e);let r=vG()(n);return t.urlSafe&&(r=r.replace(/\+/g,"-").replace(/\//g,"_")),t.skipPadding&&(r=r.replace(/=/g,"")),r}};function vY(){return ek().getRandomValues(new Uint32Array(1))[0]}function yY(e){const{words:t}=e,{sigBytes:n}=e,r=[];for(let a=0;a<n;a++){const s=t[a>>>2]>>>24-a%4*8&255;r.push((s>>>4).toString(16)),r.push((s&15).toString(16))}return r.join("")}class sk{constructor(t,n){this.words=[];let r=t;r=this.words=r||[],n!==void 0?this.sigBytes=n:this.sigBytes=r.length*4}random(t){const n=[];for(let r=0;r<t;r+=4)n.push(vY());return new sk(n,t)}toString(){return yY(this)}}var et;(function(e){e.EmptySignInUsername="EmptySignInUsername",e.EmptySignInPassword="EmptySignInPassword",e.CustomAuthSignInPassword="CustomAuthSignInPassword",e.EmptySignUpUsername="EmptySignUpUsername",e.EmptySignUpPassword="EmptySignUpPassword",e.EmptyConfirmSignUpUsername="EmptyConfirmSignUpUsername",e.EmptyConfirmSignUpCode="EmptyConfirmSignUpCode",e.EmptyResendSignUpCodeUsername="EmptyresendSignUpCodeUsername",e.EmptyChallengeResponse="EmptyChallengeResponse",e.EmptyConfirmResetPasswordUsername="EmptyConfirmResetPasswordUsername",e.EmptyConfirmResetPasswordNewPassword="EmptyConfirmResetPasswordNewPassword",e.EmptyConfirmResetPasswordConfirmationCode="EmptyConfirmResetPasswordConfirmationCode",e.EmptyResetPasswordUsername="EmptyResetPasswordUsername",e.EmptyVerifyTOTPSetupCode="EmptyVerifyTOTPSetupCode",e.EmptyConfirmUserAttributeCode="EmptyConfirmUserAttributeCode",e.IncorrectMFAMethod="IncorrectMFAMethod",e.EmptyUpdatePassword="EmptyUpdatePassword",e.InvalidPreferredChallenge="InvalidPreferredChallenge"})(et||(et={}));const TL={[et.EmptyChallengeResponse]:{message:"challengeResponse is required to confirmSignIn"},[et.EmptyConfirmResetPasswordUsername]:{message:"username is required to confirmResetPassword"},[et.EmptyConfirmSignUpCode]:{message:"code is required to confirmSignUp"},[et.EmptyConfirmSignUpUsername]:{message:"username is required to confirmSignUp"},[et.EmptyConfirmResetPasswordConfirmationCode]:{message:"confirmationCode is required to confirmResetPassword"},[et.EmptyConfirmResetPasswordNewPassword]:{message:"newPassword is required to confirmResetPassword"},[et.EmptyResendSignUpCodeUsername]:{message:"username is required to confirmSignUp"},[et.EmptyResetPasswordUsername]:{message:"username is required to resetPassword"},[et.EmptySignInPassword]:{message:"password is required to signIn"},[et.EmptySignInUsername]:{message:"username is required to signIn"},[et.EmptySignUpPassword]:{message:"password is required to signUp"},[et.EmptySignUpUsername]:{message:"username is required to signUp"},[et.CustomAuthSignInPassword]:{message:"A password is not needed when signing in with CUSTOM_WITHOUT_SRP",recoverySuggestion:"Do not include a password in your signIn call."},[et.IncorrectMFAMethod]:{message:"Incorrect MFA method was chosen. It should be either SMS, TOTP, or EMAIL",recoverySuggestion:"Try to pass SMS, TOTP, or EMAIL as the challengeResponse"},[et.EmptyVerifyTOTPSetupCode]:{message:"code is required to verifyTotpSetup"},[et.EmptyUpdatePassword]:{message:"oldPassword and newPassword are required to changePassword"},[et.EmptyConfirmUserAttributeCode]:{message:"confirmation code is required to confirmUserAttribute"},[et.InvalidPreferredChallenge]:{message:"The preferred challenge is not enabled in your backend configuration",recoverySuggestion:"Ensure the authentication method is enabled in your Amplify backend configuration"}};var Yn;(function(e){e.DEFAULT_MSG="Authentication Error",e.EMPTY_EMAIL="Email cannot be empty",e.EMPTY_PHONE="Phone number cannot be empty",e.EMPTY_USERNAME="Username cannot be empty",e.INVALID_USERNAME="The username should either be a string or one of the sign in types",e.EMPTY_PASSWORD="Password cannot be empty",e.EMPTY_CODE="Confirmation code cannot be empty",e.SIGN_UP_ERROR="Error creating account",e.NO_MFA="No valid MFA method provided",e.INVALID_MFA="Invalid MFA type",e.EMPTY_CHALLENGE="Challenge response cannot be empty",e.NO_USER_SESSION="Failed to get the session because the user is empty",e.NETWORK_ERROR="Network Error",e.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",e.AUTOSIGNIN_ERROR="Please use your credentials to sign in",e.OAUTH_ERROR="Couldn't finish OAuth flow, check your User Pool HostedUI settings"})(Yn||(Yn={}));var Ns;(function(e){e.SignInException="SignInException",e.OAuthSignInError="OAuthSignInException"})(Ns||(Ns={}));class Be extends Kr{constructor(t){super(t),this.constructor=Be,Object.setPrototypeOf(this,Be.prototype)}}function yn(e,t){const{message:n,recoverySuggestion:r}=TL[t];if(!e)throw new Be({name:t,message:n,recoverySuggestion:r})}function wt(e){const t=e?.split("_")[0];if(!e||e.indexOf("_")<0||!t||typeof t!="string")throw new Be({name:"InvalidUserPoolId",message:"Invalid user pool id provided."});return t}function $E(e){if(!e||!e.includes(":"))throw new Be({name:"InvalidIdentityPoolIdException",message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."});return e.split(":")[0]}function Z5(e){return Object.entries(e).map(([t,n])=>({Name:t,Value:n}))}function bY(e){const t={};return e?.forEach(n=>{n.Name&&(t[n.Name]=n.Value)}),t}var X5;(function(e){e.ConcurrentModificationException="ConcurrentModificationException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException"})(X5||(X5={}));var Q5;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(Q5||(Q5={}));var J5;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UsernameExistsException="UsernameExistsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(J5||(J5={}));var eO;(function(e){e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyFailedAttemptsException="TooManyFailedAttemptsException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(eO||(eO={}));var tO;(function(e){e.AliasExistsException="AliasExistsException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyFailedAttemptsException="TooManyFailedAttemptsException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotFoundException="UserNotFoundException"})(tO||(tO={}));var nO;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(nO||(nO={}));var rO;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(rO||(rO={}));var aO;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(aO||(aO={}));var sO;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotFoundException="UserNotFoundException"})(sO||(sO={}));var oO;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(oO||(oO={}));var iO;(function(e){e.ExternalServiceException="ExternalServiceException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceConflictException="ResourceConflictException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException"})(iO||(iO={}));var lO;(function(e){e.ExternalServiceException="ExternalServiceException",e.InternalErrorException="InternalErrorException",e.InvalidIdentityPoolConfigurationException="InvalidIdentityPoolConfigurationException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceConflictException="ResourceConflictException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException"})(lO||(lO={}));var uO;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(uO||(uO={}));var cO;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException"})(cO||(cO={}));var $0;(function(e){e.PasswordResetRequiredException="PasswordResetRequiredException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})($0||($0={}));var dO;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotFoundException="UserNotFoundException"})(dO||(dO={}));var fO;(function(e){e.AliasExistsException="AliasExistsException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.MFAMethodNotFoundException="MFAMethodNotFoundException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(fO||(fO={}));var hO;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(hO||(hO={}));var BE;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UsernameExistsException="UsernameExistsException"})(BE||(BE={}));var pO;(function(e){e.AliasExistsException="AliasExistsException",e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(pO||(pO={}));var mO;(function(e){e.CodeMismatchException="CodeMismatchException",e.EnableSoftwareTokenMFAException="EnableSoftwareTokenMFAException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(mO||(mO={}));var gO;(function(e){e.AliasExistsException="AliasExistsException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(gO||(gO={}));var vO;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(vO||(vO={}));var yO;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(yO||(yO={}));const iv="UserUnAuthenticatedException",SY="UserAlreadyAuthenticatedException",wY="DeviceMetadataNotFoundException",OL="AutoSignInException",xY="InvalidRedirectException",CY="InvalidAppSchemeException",EY="InvalidPreferredRedirectUrlException",_Y=new Be({name:xY,message:"signInRedirect or signOutRedirect had an invalid format or was not found.",recoverySuggestion:"Please make sure the signIn/Out redirect in your oauth config is valid."});new Be({name:CY,message:"A valid non-http app scheme was not found in the config.",recoverySuggestion:"Please make sure a valid custom app scheme is present in the config."});new Be({name:EY,message:"The given preferredRedirectUrl does not match any items in the redirectSignOutUrls array from the config.",recoverySuggestion:"Please make sure a matching preferredRedirectUrl is provided."});const kY="InvalidOriginException",AY=new Be({name:kY,message:"redirect is coming from a different origin. The oauth flow needs to be initiated from the same origin",recoverySuggestion:"Please call signInWithRedirect from the same origin."}),IY="OAuthSignOutException",RY="TokenRefreshException",TY="UnexpectedSignInInterruptionException";function Id(e){if(!e||!e.accessToken)throw new Be({name:iv,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}function OY(e){if(!e||!e.idToken)throw new Be({name:iv,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}const NY=new Be({name:RY,message:`Token refresh is not supported when authenticated with the 'implicit grant' (token) oauth flow.
3
+ Please change your oauth configuration to use 'code grant' flow.`,recoverySuggestion:`Please logout and change your Amplify configuration to use "code grant" flow.
4
+ E.g { responseType: 'code' }`}),MY=new Be({name:iv,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."});function NL(e){if(LY(e))throw NY;if(!DY(e))throw MY}function ML(e){if(!e||!e.deviceKey||!e.deviceGroupKey||!e.randomPassword)throw new Be({name:wY,message:"Either deviceKey, deviceGroupKey or secretPassword were not found during the sign-in process.",recoverySuggestion:"Make sure to not clear storage after calling the signIn API."})}const PY={inflightOAuth:"inflightOAuth",oauthSignIn:"oauthSignIn",oauthPKCE:"oauthPKCE",oauthState:"oauthState"};function PL(e){return e?.accessToken||e?.idToken}function DY(e){return PL(e)&&e?.refreshToken}function LY(e){return PL(e)&&!e?.refreshToken}const UY=async e=>{const t=e.getConfig().Auth?.Cognito;dt(t);const n=await e.Auth.getTokens({forceRefresh:!1});Id(n);const{"cognito:username":r,sub:a}=n.idToken?.payload??{},s={username:r,userId:a},i=jY(n);return i&&(s.signInDetails=i),s};function jY(e){return e?.signInDetails}const lv=async()=>UY(Kt),Lt=(e,t)=>rv({category:Na.Auth,action:e,...t}),Xn=e=>(t,n)=>{const r=zY(e),a=JSON.stringify(t);return FY(n,r,a)},zY=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${e}`}),FY=({url:e},t,n)=>({headers:t,url:e,body:n,method:"POST"});function Ma(e){if(!e||e.name==="Error"||e instanceof TypeError)throw new Be({name:Hi.Unknown,message:"An unknown error has occurred.",underlyingError:e})}const dr=()=>async e=>{if(e.statusCode>=300){const t=await Ad(e);throw Ma(t),new Be({name:t.name,message:t.message,metadata:t.$metadata})}return xp(e)},$Y=()=>(e,t)=>async function(r){return r.headers={...r.headers,"cache-control":"no-store",...await Kt.libraryOptions?.Auth?.headers?.()},e(r)},Qn=ak(SL,[$Y]),DL="cognito-idp",Jn={service:DL,retryDecider:vL(Ad),computeDelay:gL,get userAgentValue(){return rv()},cache:"no-store"},Ep=e=>Pn(Qn,Xn("InitiateAuth"),dr(),{...Jn,...e}),ca=e=>Pn(Qn,Xn("RespondToAuthChallenge"),dr(),{...Jn,...e}),BY=e=>Pn(Qn,Xn("VerifySoftwareToken"),dr(),{...Jn,...e}),HY=e=>Pn(Qn,Xn("AssociateSoftwareToken"),dr(),{...Jn,...e}),qY=({region:e})=>({url:new el(`https://${DL}.${e}.${EL(e)}`)}),xt=({endpointOverride:e})=>t=>e?{url:new el(e)}:qY(t),VY=e=>Pn(Qn,Xn("GetTokensFromRefreshToken"),dr(),{...Jn,...e}),WY=async({tokens:e,authConfig:t,username:n,clientMetadata:r})=>{dt(t?.Cognito);const{userPoolId:a,userPoolClientId:s,userPoolEndpoint:i}=t.Cognito,u=wt(a);NL(e);const c=VY({endpointResolver:xt({endpointOverride:i})}),{AuthenticationResult:f}=await c({region:u},{ClientId:s,RefreshToken:e.refreshToken,DeviceKey:e.deviceMetadata?.deviceKey,ClientMetadata:r}),h=Eo(f?.AccessToken??""),m=f?.IdToken?Eo(f.IdToken):void 0,{iat:g}=h.payload;if(!g)throw new Be({name:"iatNotFoundException",message:"iat not found in access token"});const y=g*1e3-new Date().getTime();return{accessToken:h,idToken:m,clockDrift:y,refreshToken:f?.RefreshToken??e.refreshToken,username:n}},GY=pY(WY),KY={accessToken:"accessToken",idToken:"idToken",oidcProvider:"oidcProvider",clockDrift:"clockDrift",refreshToken:"refreshToken",deviceKey:"deviceKey",randomPasswordKey:"randomPasswordKey",deviceGroupKey:"deviceGroupKey",signInDetails:"signInDetails",oauthMetadata:"oauthMetadata"};var B0;(function(e){e.InvalidAuthTokens="InvalidAuthTokens"})(B0||(B0={}));const YY={[B0.InvalidAuthTokens]:{message:"Invalid tokens.",recoverySuggestion:"Make sure the tokens are valid."}},ZY=ev(YY),bO="CognitoIdentityServiceProvider";class XY{getKeyValueStorage(){if(!this.keyValueStorage)throw new Be({name:"KeyValueStorageNotFoundException",message:"KeyValueStorage was not found in TokenStore"});return this.keyValueStorage}setKeyValueStorage(t){this.keyValueStorage=t}setAuthConfig(t){this.authConfig=t}async loadTokens(){try{const t=await this.getAuthKeys(),n=await this.getKeyValueStorage().getItem(t.accessToken);if(!n)throw new Be({name:"NoSessionFoundException",message:"Auth session was not found. Make sure to call signIn."});const r=Eo(n),a=await this.getKeyValueStorage().getItem(t.idToken),s=a?Eo(a):void 0,i=await this.getKeyValueStorage().getItem(t.refreshToken)??void 0,u=await this.getKeyValueStorage().getItem(t.clockDrift)??"0",c=Number.parseInt(u),f=await this.getKeyValueStorage().getItem(t.signInDetails),h={accessToken:r,idToken:s,refreshToken:i,deviceMetadata:await this.getDeviceMetadata()??void 0,clockDrift:c,username:await this.getLastAuthUser()};return f&&(h.signInDetails=JSON.parse(f)),h}catch{return null}}async storeTokens(t){ZY(t!==void 0,B0.InvalidAuthTokens);const n=t.username;await this.getKeyValueStorage().setItem(this.getLastAuthUserKey(),n);const r=await this.getAuthKeys();await this.getKeyValueStorage().setItem(r.accessToken,t.accessToken.toString()),t.idToken?await this.getKeyValueStorage().setItem(r.idToken,t.idToken.toString()):await this.getKeyValueStorage().removeItem(r.idToken),t.refreshToken?await this.getKeyValueStorage().setItem(r.refreshToken,t.refreshToken):await this.getKeyValueStorage().removeItem(r.refreshToken),t.deviceMetadata&&(t.deviceMetadata.deviceKey&&await this.getKeyValueStorage().setItem(r.deviceKey,t.deviceMetadata.deviceKey),t.deviceMetadata.deviceGroupKey&&await this.getKeyValueStorage().setItem(r.deviceGroupKey,t.deviceMetadata.deviceGroupKey),await this.getKeyValueStorage().setItem(r.randomPasswordKey,t.deviceMetadata.randomPassword)),t.signInDetails?await this.getKeyValueStorage().setItem(r.signInDetails,JSON.stringify(t.signInDetails)):await this.getKeyValueStorage().removeItem(r.signInDetails),await this.getKeyValueStorage().setItem(r.clockDrift,`${t.clockDrift}`)}async clearTokens(){const t=await this.getAuthKeys();await Promise.all([this.getKeyValueStorage().removeItem(t.accessToken),this.getKeyValueStorage().removeItem(t.idToken),this.getKeyValueStorage().removeItem(t.clockDrift),this.getKeyValueStorage().removeItem(t.refreshToken),this.getKeyValueStorage().removeItem(t.signInDetails),this.getKeyValueStorage().removeItem(this.getLastAuthUserKey()),this.getKeyValueStorage().removeItem(t.oauthMetadata)])}async getDeviceMetadata(t){const n=await this.getAuthKeys(t),r=await this.getKeyValueStorage().getItem(n.deviceKey),a=await this.getKeyValueStorage().getItem(n.deviceGroupKey),s=await this.getKeyValueStorage().getItem(n.randomPasswordKey);return s&&a&&r?{deviceKey:r,deviceGroupKey:a,randomPassword:s}:null}async clearDeviceMetadata(t){const n=await this.getAuthKeys(t);await Promise.all([this.getKeyValueStorage().removeItem(n.deviceKey),this.getKeyValueStorage().removeItem(n.deviceGroupKey),this.getKeyValueStorage().removeItem(n.randomPasswordKey)])}async getAuthKeys(t){dt(this.authConfig?.Cognito);const n=t??await this.getLastAuthUser();return QY(bO,`${this.authConfig.Cognito.userPoolClientId}.${n}`)}getLastAuthUserKey(){dt(this.authConfig?.Cognito);const t=this.authConfig.Cognito.userPoolClientId;return`${bO}.${t}.LastAuthUser`}async getLastAuthUser(){return await this.getKeyValueStorage().getItem(this.getLastAuthUserKey())??"username"}async setOAuthMetadata(t){const{oauthMetadata:n}=await this.getAuthKeys();await this.getKeyValueStorage().setItem(n,JSON.stringify(t))}async getOAuthMetadata(){const{oauthMetadata:t}=await this.getAuthKeys(),n=await this.getKeyValueStorage().getItem(t);return n&&JSON.parse(n)}}const QY=(e,t)=>ok(KY)(`${e}`,t);function ok(e){const t=Object.values({...e});return(n,r)=>t.reduce((a,s)=>({...a,[s]:`${n}.${r}.${s}`}),{})}const SO="amplify-signin-with-hostedUI",gs="CognitoIdentityServiceProvider";class LL{constructor(t){this.keyValueStorage=t}async clearOAuthInflightData(){dt(this.cognitoConfig);const t=vs(gs,this.cognitoConfig.userPoolClientId);await Promise.all([this.keyValueStorage.removeItem(t.inflightOAuth),this.keyValueStorage.removeItem(t.oauthPKCE),this.keyValueStorage.removeItem(t.oauthState)])}async clearOAuthData(){dt(this.cognitoConfig);const t=vs(gs,this.cognitoConfig.userPoolClientId);return await this.clearOAuthInflightData(),await this.keyValueStorage.removeItem(SO),this.keyValueStorage.removeItem(t.oauthSignIn)}loadOAuthState(){dt(this.cognitoConfig);const t=vs(gs,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(t.oauthState)}storeOAuthState(t){dt(this.cognitoConfig);const n=vs(gs,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(n.oauthState,t)}loadPKCE(){dt(this.cognitoConfig);const t=vs(gs,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(t.oauthPKCE)}storePKCE(t){dt(this.cognitoConfig);const n=vs(gs,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(n.oauthPKCE,t)}setAuthConfig(t){this.cognitoConfig=t}async loadOAuthInFlight(){dt(this.cognitoConfig);const t=vs(gs,this.cognitoConfig.userPoolClientId);return await this.keyValueStorage.getItem(t.inflightOAuth)==="true"}async storeOAuthInFlight(t){dt(this.cognitoConfig);const n=vs(gs,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(n.inflightOAuth,`${t}`)}async loadOAuthSignIn(){dt(this.cognitoConfig);const t=vs(gs,this.cognitoConfig.userPoolClientId),n=await this.keyValueStorage.getItem(SO),[r,a]=(await this.keyValueStorage.getItem(t.oauthSignIn))?.split(",")??[];return{isOAuthSignIn:r==="true"||n==="true",preferPrivateSession:a==="true"}}async storeOAuthSignIn(t,n=!1){dt(this.cognitoConfig);const r=vs(gs,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(r.oauthSignIn,`${t},${n}`)}}const vs=(e,t)=>ok(PY)(e,t),qr=new LL(Cp),HE=[],JY=e=>{HE.push(e)},UL=()=>{for(;HE.length;)HE.pop()?.()};class eZ{constructor(){this.waitForInflightOAuth=av()?async()=>{if(await qr.loadOAuthInFlight())return this.inflightPromise?this.inflightPromise:(this.inflightPromise=new Promise((t,n)=>{JY(t)}),this.inflightPromise)}:async()=>{}}setAuthConfig(t){qr.setAuthConfig(t.Cognito),this.authConfig=t}setTokenRefresher(t){this.tokenRefresher=t}setAuthTokenStore(t){this.tokenStore=t}getTokenStore(){if(!this.tokenStore)throw new Be({name:"EmptyTokenStoreException",message:"TokenStore not set"});return this.tokenStore}getTokenRefresher(){if(!this.tokenRefresher)throw new Be({name:"EmptyTokenRefresherException",message:"TokenRefresher not set"});return this.tokenRefresher}setClientMetadataProvider(t){this.clientMetadataProvider=t}async getTokens(t){let n;try{dt(this.authConfig?.Cognito)}catch{return null}await this.waitForInflightOAuth(),this.inflightPromise=void 0,n=await this.getTokenStore().loadTokens();const r=await this.getTokenStore().getLastAuthUser();if(n===null)return null;const a=!!n?.idToken&&Y5({expiresAt:(n.idToken?.payload?.exp??0)*1e3,clockDrift:n.clockDrift??0}),s=Y5({expiresAt:(n.accessToken?.payload?.exp??0)*1e3,clockDrift:n.clockDrift??0});return(t?.forceRefresh||a||s)&&(n=await this.refreshTokens({tokens:n,username:r,clientMetadata:t?.clientMetadata??await this.clientMetadataProvider?.()}),n===null)?null:{accessToken:n?.accessToken,idToken:n?.idToken,signInDetails:n?.signInDetails}}async refreshTokens({tokens:t,username:n,clientMetadata:r}){try{const{signInDetails:a}=t,s=await this.getTokenRefresher()({tokens:t,authConfig:this.authConfig,username:n,clientMetadata:r});return s.signInDetails=a,await this.setTokens({tokens:s}),Os.dispatch("auth",{event:"tokenRefresh"},"Auth",Ts),s}catch(a){return this.handleErrors(a)}}handleErrors(t){if(Ma(t),this.isAuthenticationError(t)&&this.clearTokens(),Os.dispatch("auth",{event:"tokenRefresh_failure",data:{error:t}},"Auth",Ts),t.name.startsWith("NotAuthorizedException"))return null;throw t}isAuthenticationError(t){return["NotAuthorizedException","TokenRevokedException","UserNotFoundException","PasswordResetRequiredException","UserNotConfirmedException","RefreshTokenReuseException"].some(r=>t?.name?.startsWith?.(r))}async setTokens({tokens:t}){return this.getTokenStore().storeTokens(t)}async clearTokens(){return this.getTokenStore().clearTokens()}getDeviceMetadata(t){return this.getTokenStore().getDeviceMetadata(t)}clearDeviceMetadata(t){return this.getTokenStore().clearDeviceMetadata(t)}setOAuthMetadata(t){return this.getTokenStore().setOAuthMetadata(t)}getOAuthMetadata(){return this.getTokenStore().getOAuthMetadata()}}class tZ{constructor(){this.authTokenStore=new XY,this.authTokenStore.setKeyValueStorage(Cp),this.tokenOrchestrator=new eZ,this.tokenOrchestrator.setAuthTokenStore(this.authTokenStore),this.tokenOrchestrator.setTokenRefresher(GY)}getTokens(t={}){return this.tokenOrchestrator.getTokens(t)}setKeyValueStorage(t){this.authTokenStore.setKeyValueStorage(t)}setClientMetadataProvider(t){this.tokenOrchestrator.setClientMetadataProvider(t)}setAuthConfig(t){this.authTokenStore.setAuthConfig(t),this.tokenOrchestrator.setAuthConfig(t)}}const c0=new tZ,{tokenOrchestrator:Yr}=c0;async function Po(e){if(e.AccessToken){const t=Eo(e.AccessToken),n=(t.payload.iat||0)*1e3,r=new Date().getTime(),a=n>0?n-r:0;let s,i,u;e.RefreshToken&&(i=e.RefreshToken),e.IdToken&&(s=Eo(e.IdToken)),e?.NewDeviceMetadata&&(u=e.NewDeviceMetadata);const c={accessToken:t,idToken:s,refreshToken:i,clockDrift:a,deviceMetadata:u,username:e.username};e?.signInDetails&&(c.signInDetails=e.signInDetails),await Yr.setTokens({tokens:c})}else throw new Kr({message:"Invalid tokens",name:"InvalidTokens",recoverySuggestion:"Check Cognito UserPool settings"})}const nZ="Unable to get user session following successful sign-in.",tl=async()=>{try{Os.dispatch("auth",{event:"signedIn",data:await lv()},"Auth",Ts)}catch(e){throw e.name===iv?new Be({name:TY,message:nZ,recoverySuggestion:"This most likely is due to auth tokens not being persisted. If you are using cookie store, please ensure cookies can be correctly set from your server."}):e}};function jL(){return{active:!1}}const rZ=(e,t)=>{switch(t.type){case"SET_USERNAME":return{...e,username:t.value};case"SET_SESSION":return{...e,session:t.value};case"START":return{...e,active:!0};case"RESET":return jL();default:return e}},aZ=e=>{let t=e(jL(),{type:"RESET"});return{getState:()=>t,dispatch:n=>{t=e(t,n)}}},Li=aZ(rZ),sZ=180*1e3,ig="CognitoSignInState",wo={username:`${ig}.username`,challengeName:`${ig}.challengeName`,signInSession:`${ig}.signInSession`,expiry:`${ig}.expiry`},oZ=(e,t)=>{switch(t.type){case"SET_SIGN_IN_SESSION":return lg({signInSession:t.value}),{...e,signInSession:t.value};case"SET_SIGN_IN_STATE":return lg(t.value),{...t.value};case"SET_CHALLENGE_NAME":return lg({challengeName:t.value}),{...e,challengeName:t.value};case"SET_USERNAME":return lg({username:t.value}),{...e,username:t.value};case"SET_INITIAL_STATE":return lZ();case"RESET_STATE":return zL(),ik();default:return e}},iZ=e=>{const t=Number(e),n=Date.now();return t<=n},es=()=>{Ms.dispatch({type:"RESET_STATE"})},zL=()=>{for(const e of Object.values(wo))So.removeItem(e)},ik=()=>({username:void 0,challengeName:void 0,signInSession:void 0}),lZ=()=>{const e=So.getItem(wo.expiry);if(!e||iZ(e))return zL(),ik();const t=So.getItem(wo.username)??void 0,n=So.getItem(wo.challengeName)??void 0,r=So.getItem(wo.signInSession)??void 0;return{username:t,challengeName:n,signInSession:r}},uZ=e=>{let t=e(ik(),{type:"SET_INITIAL_STATE"});return{getState:()=>t,dispatch:n=>{t=e(t,n)}}},Ms=uZ(oZ);function du(e){Ms.dispatch({type:"SET_SIGN_IN_STATE",value:e})}const lg=({challengeName:e,signInSession:t,username:n})=>{n&&So.setItem(wo.username,n),e&&So.setItem(wo.challengeName,e),t&&(So.setItem(wo.signInSession,t),So.setItem(wo.expiry,String(Date.now()+sZ)))},wO="Passkeys may not be supported on this device. Ensure your application is running in a secure context (HTTPS) and Web Authentication API is supported.";class Oa extends Kr{constructor(t){super(t),this.constructor=Oa,Object.setPrototypeOf(this,Oa.prototype)}}var Wt;(function(e){e.PasskeyNotSupported="PasskeyNotSupported",e.PasskeyAlreadyExists="PasskeyAlreadyExists",e.InvalidPasskeyRegistrationOptions="InvalidPasskeyRegistrationOptions",e.InvalidPasskeyAuthenticationOptions="InvalidPasskeyAuthenticationOptions",e.RelyingPartyMismatch="RelyingPartyMismatch",e.PasskeyRegistrationFailed="PasskeyRegistrationFailed",e.PasskeyRetrievalFailed="PasskeyRetrievalFailed",e.PasskeyRegistrationCanceled="PasskeyRegistrationCanceled",e.PasskeyAuthenticationCanceled="PasskeyAuthenticationCanceled",e.PasskeyOperationAborted="PasskeyOperationAborted"})(Wt||(Wt={}));const $S="User may have canceled the ceremony or another interruption has occurred. Check underlying error for details.",xO="Ensure your user pool is configured to support the WEB_AUTHN as an authentication factor.",ad={[Wt.PasskeyNotSupported]:{message:"Passkeys may not be supported on this device.",recoverySuggestion:wO},[Wt.InvalidPasskeyRegistrationOptions]:{message:"Invalid passkey registration options.",recoverySuggestion:xO},[Wt.InvalidPasskeyAuthenticationOptions]:{message:"Invalid passkey authentication options.",recoverySuggestion:xO},[Wt.PasskeyRegistrationFailed]:{message:"Device failed to create passkey.",recoverySuggestion:wO},[Wt.PasskeyRetrievalFailed]:{message:"Device failed to retrieve passkey.",recoverySuggestion:"Passkeys may not be available on this device. Try an alternative authentication factor like PASSWORD, EMAIL_OTP, or SMS_OTP."},[Wt.PasskeyAlreadyExists]:{message:"Passkey already exists in authenticator.",recoverySuggestion:"Proceed with existing passkey or try again after deleting the credential."},[Wt.PasskeyRegistrationCanceled]:{message:"Passkey registration ceremony has been canceled.",recoverySuggestion:$S},[Wt.PasskeyAuthenticationCanceled]:{message:"Passkey authentication ceremony has been canceled.",recoverySuggestion:$S},[Wt.PasskeyOperationAborted]:{message:"Passkey operation has been aborted.",recoverySuggestion:$S},[Wt.RelyingPartyMismatch]:{message:"Relying party does not match current domain.",recoverySuggestion:"Ensure relying party identifier matches current domain."}},Rd=ev(ad,Oa),FL=e=>{if(e instanceof Error){if(e.name==="AbortError"){const{message:t,recoverySuggestion:n}=ad[Wt.PasskeyOperationAborted];return new Oa({name:Wt.PasskeyOperationAborted,message:t,recoverySuggestion:n,underlyingError:e})}if(e.name==="SecurityError"){const{message:t,recoverySuggestion:n}=ad[Wt.RelyingPartyMismatch];return new Oa({name:Wt.RelyingPartyMismatch,message:t,recoverySuggestion:n,underlyingError:e})}}return new Oa({name:Hi.Unknown,message:"An unknown error has occurred.",underlyingError:e})},cZ=e=>{if(e instanceof Oa)return e;if(e instanceof Error&&e.name==="NotAllowedError"){const{message:t,recoverySuggestion:n}=ad[Wt.PasskeyAuthenticationCanceled];return new Oa({name:Wt.PasskeyAuthenticationCanceled,message:t,recoverySuggestion:n,underlyingError:e})}return FL(e)},$L=()=>av()&&window.isSecureContext&&"credentials"in navigator&&typeof window.PublicKeyCredential=="function",ks=e=>rd.convert(new Uint8Array(e),{urlSafe:!0,skipPadding:!0}),kh=e=>Uint8Array.from(tk.convert(e,{urlSafe:!0}),t=>t.charCodeAt(0)).buffer,dZ=e=>{const t=kh(e.user.id),n=kh(e.challenge),r=(e.excludeCredentials||[]).map(a=>({...a,id:kh(a.id)}));return{...e,excludeCredentials:r,challenge:n,user:{...e.user,id:t}}},fZ=e=>{const t={clientDataJSON:ks(e.response.clientDataJSON),attestationObject:ks(e.response.attestationObject),transports:e.response.getTransports(),publicKeyAlgorithm:e.response.getPublicKeyAlgorithm(),authenticatorData:ks(e.response.getAuthenticatorData())},n=e.response.getPublicKey();n&&(t.publicKey=ks(n));const r={type:e.type,id:e.id,rawId:ks(e.rawId),clientExtensionResults:e.getClientExtensionResults(),response:t};return e.authenticatorAttachment&&(r.authenticatorAttachment=e.authenticatorAttachment),r},hZ=e=>{const t=kh(e.challenge),n=(e.allowCredentials||[]).map(r=>({...r,id:kh(r.id)}));return{...e,challenge:t,allowCredentials:n}},pZ=e=>{const t={clientDataJSON:ks(e.response.clientDataJSON),authenticatorData:ks(e.response.authenticatorData),signature:ks(e.response.signature)};e.response.userHandle&&(t.userHandle=ks(e.response.userHandle));const n={id:e.id,rawId:ks(e.rawId),type:e.type,clientExtensionResults:e.getClientExtensionResults(),response:t};return e.authenticatorAttachment&&(n.authenticatorAttachment=e.authenticatorAttachment),n};function mZ(e){Rd([!!e,!!e?.challenge,!!e?.user,!!e?.rp,!!e?.pubKeyCredParams].every(Boolean),Wt.InvalidPasskeyRegistrationOptions)}function gZ(e){Rd(e&&e instanceof PublicKeyCredential&&e.response instanceof AuthenticatorAttestationResponse,Wt.PasskeyRegistrationFailed)}function vZ(e){Rd(e&&e instanceof PublicKeyCredential&&e.response instanceof AuthenticatorAssertionResponse,Wt.PasskeyRetrievalFailed)}const yZ=async e=>{try{const t=$L();Rd(t,Wt.PasskeyNotSupported);const n=hZ(e),r=await navigator.credentials.get({publicKey:n});return vZ(r),pZ(r)}catch(t){throw cZ(t)}},bZ=e=>Pn(Qn,Xn("ConfirmDevice"),dr(),{...Jn,...e}),d0={convert(e){return new TextEncoder().encode(e)}};function Re(e,t){e!=null&&this.fromString(e,t)}function Tr(){return new Re(null,null)}let zi;const SZ=0xdeadbeefcafe,CO=(SZ&16777215)===15715070;function wZ(e,t,n,r,a,s){for(;--s>=0;){const i=t*this[e++]+n[r]+a;a=Math.floor(i/67108864),n[r++]=i&67108863}return a}function xZ(e,t,n,r,a,s){const i=t&32767,u=t>>15;for(;--s>=0;){let c=this[e]&32767;const f=this[e++]>>15,h=u*c+f*i;c=i*c+((h&32767)<<15)+n[r]+(a&1073741823),a=(c>>>30)+(h>>>15)+u*f+(a>>>30),n[r++]=c&1073741823}return a}function CZ(e,t,n,r,a,s){const i=t&16383,u=t>>14;for(;--s>=0;){let c=this[e]&16383;const f=this[e++]>>14,h=u*c+f*i;c=i*c+((h&16383)<<14)+n[r]+a,a=(c>>28)+(h>>14)+u*f,n[r++]=c&268435455}return a}const EO=typeof navigator<"u";EO&&CO&&navigator.appName==="Microsoft Internet Explorer"?(Re.prototype.am=xZ,zi=30):EO&&CO&&navigator.appName!=="Netscape"?(Re.prototype.am=wZ,zi=26):(Re.prototype.am=CZ,zi=28);Re.prototype.DB=zi;Re.prototype.DM=(1<<zi)-1;Re.prototype.DV=1<<zi;const lk=52;Re.prototype.FV=Math.pow(2,lk);Re.prototype.F1=lk-zi;Re.prototype.F2=2*zi-lk;const EZ="0123456789abcdefghijklmnopqrstuvwxyz",uv=[];let Td,Ra;Td=48;for(Ra=0;Ra<=9;++Ra)uv[Td++]=Ra;Td=97;for(Ra=10;Ra<36;++Ra)uv[Td++]=Ra;Td=65;for(Ra=10;Ra<36;++Ra)uv[Td++]=Ra;function _O(e){return EZ.charAt(e)}function _Z(e,t){const n=uv[e.charCodeAt(t)];return n??-1}function kZ(e){for(let t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}function AZ(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0}function uk(e){const t=Tr();return t.fromInt(e),t}function IZ(e,t){let n;if(t===16)n=4;else if(t===8)n=3;else if(t===2)n=1;else if(t===32)n=5;else if(t===4)n=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;let r=e.length,a=!1,s=0;for(;--r>=0;){const i=_Z(e,r);if(i<0){e.charAt(r)==="-"&&(a=!0);continue}a=!1,s===0?this[this.t++]=i:s+n>this.DB?(this[this.t-1]|=(i&(1<<this.DB-s)-1)<<s,this[this.t++]=i>>this.DB-s):this[this.t-1]|=i<<s,s+=n,s>=this.DB&&(s-=this.DB)}this.clamp(),a&&Re.ZERO.subTo(this,this)}function RZ(){const e=this.s&this.DM;for(;this.t>0&&this[this.t-1]==e;)--this.t}function TZ(e){if(this.s<0)return"-"+this.negate().toString(e);let t;if(e==16)t=4;else if(e===8)t=3;else if(e===2)t=1;else if(e===32)t=5;else if(e===4)t=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");const n=(1<<t)-1;let r,a=!1,s="",i=this.t,u=this.DB-i*this.DB%t;if(i-- >0)for(u<this.DB&&(r=this[i]>>u)>0&&(a=!0,s=_O(r));i>=0;)u<t?(r=(this[i]&(1<<u)-1)<<t-u,r|=this[--i]>>(u+=this.DB-t)):(r=this[i]>>(u-=t)&n,u<=0&&(u+=this.DB,--i)),r>0&&(a=!0),a&&(s+=_O(r));return a?s:"0"}function OZ(){const e=Tr();return Re.ZERO.subTo(this,e),e}function NZ(){return this.s<0?this.negate():this}function MZ(e){let t=this.s-e.s;if(t!=0)return t;let n=this.t;if(t=n-e.t,t!=0)return this.s<0?-t:t;for(;--n>=0;)if((t=this[n]-e[n])!=0)return t;return 0}function ck(e){let t=1,n;return(n=e>>>16)!==0&&(e=n,t+=16),(n=e>>8)!==0&&(e=n,t+=8),(n=e>>4)!==0&&(e=n,t+=4),(n=e>>2)!==0&&(e=n,t+=2),(n=e>>1)!==0&&(e=n,t+=1),t}function PZ(){return this.t<=0?0:this.DB*(this.t-1)+ck(this[this.t-1]^this.s&this.DM)}function DZ(e,t){let n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s}function LZ(e,t){for(let n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s}function UZ(e,t){const n=e%this.DB,r=this.DB-n,a=(1<<r)-1,s=Math.floor(e/this.DB);let i=this.s<<n&this.DM,u;for(u=this.t-1;u>=0;--u)t[u+s+1]=this[u]>>r|i,i=(this[u]&a)<<n;for(u=s-1;u>=0;--u)t[u]=0;t[s]=i,t.t=this.t+s+1,t.s=this.s,t.clamp()}function jZ(e,t){t.s=this.s;const n=Math.floor(e/this.DB);if(n>=this.t){t.t=0;return}const r=e%this.DB,a=this.DB-r,s=(1<<r)-1;t[0]=this[n]>>r;for(let i=n+1;i<this.t;++i)t[i-n-1]|=(this[i]&s)<<a,t[i-n]=this[i]>>r;r>0&&(t[this.t-n-1]|=(this.s&s)<<a),t.t=this.t-n,t.clamp()}function zZ(e,t){let n=0,r=0;const a=Math.min(e.t,this.t);for(;n<a;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()}function FZ(e,t){const n=this.abs(),r=e.abs();let a=n.t;for(t.t=a+r.t;--a>=0;)t[a]=0;for(a=0;a<r.t;++a)t[a+n.t]=n.am(0,r[a],t,a,0,n.t);t.s=0,t.clamp(),this.s!==e.s&&Re.ZERO.subTo(t,t)}function $Z(e){const t=this.abs();let n=e.t=2*t.t;for(;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){const r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()}function BZ(e,t,n){const r=e.abs();if(r.t<=0)return;const a=this.abs();if(a.t<r.t){t?.fromInt(0),n!=null&&this.copyTo(n);return}n===null&&(n=Tr());const s=Tr(),i=this.s,u=e.s,c=this.DB-ck(r[r.t-1]);c>0?(r.lShiftTo(c,s),a.lShiftTo(c,n)):(r.copyTo(s),a.copyTo(n));const f=s.t,h=s[f-1];if(h===0)return;const m=h*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),g=this.FV/m,y=(1<<this.F1)/m,S=1<<this.F2;let w=n.t,x=w-f;const _=t===null?Tr():t;for(s.dlShiftTo(x,_),n.compareTo(_)>=0&&(n[n.t++]=1,n.subTo(_,n)),Re.ONE.dlShiftTo(f,_),_.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--x>=0;){let k=n[--w]===h?this.DM:Math.floor(n[w]*g+(n[w-1]+S)*y);if((n[w]+=s.am(0,k,n,x,0,f))<k)for(s.dlShiftTo(x,_),n.subTo(_,n);n[w]<--k;)n.subTo(_,n)}t!==null&&(n.drShiftTo(f,t),i!==u&&Re.ZERO.subTo(t,t)),n.t=f,n.clamp(),c>0&&n.rShiftTo(c,n),i<0&&Re.ZERO.subTo(n,n)}function HZ(e){const t=Tr();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(Re.ZERO)>0&&e.subTo(t,t),t}function qZ(){if(this.t<1)return 0;const e=this[0];if((e&1)===0)return 0;let t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function VZ(e){return this.compareTo(e)===0}function WZ(e,t){let n=0,r=0;const a=Math.min(e.t,this.t);for(;n<a;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()}function GZ(e){const t=Tr();return this.addTo(e,t),t}function KZ(e){const t=Tr();return this.subTo(e,t),t}function YZ(e){const t=Tr();return this.multiplyTo(e,t),t}function ZZ(e){const t=Tr();return this.divRemTo(e,t,null),t}function Od(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function XZ(e){const t=Tr();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(Re.ZERO)>0&&this.m.subTo(t,t),t}function QZ(e){const t=Tr();return e.copyTo(t),this.reduce(t),t}function JZ(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(let t=0;t<this.m.t;++t){let n=e[t]&32767;const r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(n=t+this.m.t,e[n]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function eX(e,t){e.squareTo(t),this.reduce(t)}function tX(e,t,n){e.multiplyTo(t,n),this.reduce(n)}Od.prototype.convert=XZ;Od.prototype.revert=QZ;Od.prototype.reduce=JZ;Od.prototype.mulTo=tX;Od.prototype.sqrTo=eX;function nX(e,t,n){let r=e.bitLength(),a,s=uk(1);const i=new Od(t);if(r<=0)return s;r<18?a=1:r<48?a=3:r<144?a=4:r<768?a=5:a=6;const u=[];let c=3;const f=a-1,h=(1<<a)-1;if(u[1]=i.convert(this),a>1){const _=Tr();for(i.sqrTo(u[1],_);c<=h;)u[c]=Tr(),i.mulTo(_,u[c-2],u[c]),c+=2}let m=e.t-1,g,y=!0,S=Tr(),w;for(r=ck(e[m])-1;m>=0;){for(r>=f?g=e[m]>>r-f&h:(g=(e[m]&(1<<r+1)-1)<<f-r,m>0&&(g|=e[m-1]>>this.DB+r-f)),c=a;(g&1)===0;)g>>=1,--c;if((r-=c)<0&&(r+=this.DB,--m),y)u[g].copyTo(s),y=!1;else{for(;c>1;)i.sqrTo(s,S),i.sqrTo(S,s),c-=2;c>0?i.sqrTo(s,S):(w=s,s=S,S=w),i.mulTo(S,u[g],s)}for(;m>=0&&(e[m]&1<<r)===0;)i.sqrTo(s,S),w=s,s=S,S=w,--r<0&&(r=this.DB-1,--m)}const x=i.revert(s);return n(null,x),x}Re.prototype.copyTo=kZ;Re.prototype.fromInt=AZ;Re.prototype.fromString=IZ;Re.prototype.clamp=RZ;Re.prototype.dlShiftTo=DZ;Re.prototype.drShiftTo=LZ;Re.prototype.lShiftTo=UZ;Re.prototype.rShiftTo=jZ;Re.prototype.subTo=zZ;Re.prototype.multiplyTo=FZ;Re.prototype.squareTo=$Z;Re.prototype.divRemTo=BZ;Re.prototype.invDigit=qZ;Re.prototype.addTo=WZ;Re.prototype.toString=TZ;Re.prototype.negate=OZ;Re.prototype.abs=NZ;Re.prototype.compareTo=MZ;Re.prototype.bitLength=PZ;Re.prototype.mod=HZ;Re.prototype.equals=VZ;Re.prototype.add=GZ;Re.prototype.subtract=KZ;Re.prototype.multiply=YZ;Re.prototype.divide=ZZ;Re.prototype.modPow=nX;Re.ZERO=uk(0);Re.ONE=uk(1);const rX=async({a:e,g:t,k:n,x:r,B:a,N:s,U:i})=>new Promise((u,c)=>{t.modPow(r,s,(f,h)=>{if(f){c(f);return}a.subtract(n.multiply(h)).modPow(e.add(i.multiply(r)),s,(m,g)=>{if(m){c(m);return}u(g.mod(s))})})}),aX="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",BL={},qE={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),BL[e]=t,qE[t]=e}const sd=e=>{if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const r=e.slice(n,n+2).toLowerCase();if(r in qE)t[n/2]=qE[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return t},dk=e=>{let t="";for(let n=0;n<e.byteLength;n++)t+=BL[e[n]];return t},VE=e=>{const t=new Zl;t.update(e);const n=t.digestSync(),r=dk(n);return new Array(64-r.length).join("0")+r},f0=e=>VE(sd(e)),sX=/^[89a-f]/i,mo=e=>{if(!(e instanceof Re))throw new Error("Not a BigInteger");const t=e.compareTo(Re.ZERO)<0;let n=e.abs().toString(16);if(n=n.length%2!==0?`0${n}`:n,n=sX.test(n)?`00${n}`:n,t){const r=n.split("").map(s=>{const i=~parseInt(s,16)&15;return"0123456789ABCDEF".charAt(i)}).join("");n=new Re(r,16).add(Re.ONE).toString(16),n.toUpperCase().startsWith("FF8")&&(n=n.substring(2))}return n},oX=({A:e,B:t})=>{const n=new Re(f0(mo(e)+mo(t)),16);if(n.equals(Re.ZERO))throw new Error("U cannot be zero.");return n},iX=(e,t,n)=>{const r=new Zl(t);r.update(e);const a=r.digestSync(),s=new Zl(a);return s.update(n),s.digestSync().slice(0,16)},fk=e=>{const t=new sk().random(e).toString();return sd(t)},lX=()=>rd.convert(fk(40));class uX{constructor({userPoolName:t,a:n,g:r,A:a,N:s}){this.encoder=d0,this.userPoolName=t,this.a=n,this.g=r,this.A=a,this.N=s,this.k=new Re(f0(`${mo(s)}${mo(r)}`),16)}getRandomPassword(){if(!this.randomPassword)throw new Be({name:"EmptyBigIntegerRandomPassword",message:"random password is empty"});return this.randomPassword}getSaltToHashDevices(){if(!this.saltToHashDevices)throw new Be({name:"EmptyBigIntegersaltToHashDevices",message:"saltToHashDevices is empty"});return this.saltToHashDevices}getVerifierDevices(){if(!this.verifierDevices)throw new Be({name:"EmptyBigIntegerVerifierDevices",message:"verifyDevices is empty"});return this.verifierDevices}async generateHashDevice(t,n){this.randomPassword=lX();const r=`${t}${n}:${this.randomPassword}`,a=VE(r),s=dk(fk(16));return this.saltToHashDevices=mo(new Re(s,16)),new Promise((i,u)=>{this.g.modPow(new Re(f0(this.saltToHashDevices+a),16),this.N,(c,f)=>{if(c){u(c);return}this.verifierDevices=mo(f),i()})})}async getPasswordAuthenticationKey({username:t,password:n,serverBValue:r,salt:a}){if(r.mod(this.N).equals(Re.ZERO))throw new Error("B cannot be zero.");const s=oX({A:this.A,B:r}),i=`${this.userPoolName}${t}:${n}`,u=VE(i),c=new Re(f0(mo(a)+u),16),f=await rX({a:this.a,g:this.g,k:this.k,x:c,B:r,N:this.N,U:s}),h=this.encoder.convert("Caldera Derived Key"),m=this.encoder.convert(""),g=new Uint8Array(h.byteLength+m.byteLength);return g.set(h,0),g.set(m,h.byteLength),iX(sd(mo(f)),sd(mo(s)),g)}}const cX=async({a:e,g:t,N:n})=>new Promise((r,a)=>{t.modPow(e,n,(s,i)=>{if(s){a(s);return}if(i.mod(n).equals(Re.ZERO)){a(new Error("Illegal parameter. A mod N cannot be 0."));return}r(i)})}),_p=async e=>{const t=new Re(aX,16),n=new Re("2",16),r=dX(),a=await cX({a:r,g:n,N:t});return new uX({userPoolName:e,a:r,g:n,A:a,N:t})},dX=()=>{const e=dk(fk(128));return new Re(e,16)};async function fu({userPoolId:e,userPoolEndpoint:t,newDeviceMetadata:n,accessToken:r}){if(!n)return;const a=e.split("_")[1]||"",s=await _p(a),i=n?.DeviceKey,u=n?.DeviceGroupKey;try{await s.generateHashDevice(u??"",i??"")}catch{return}const c={Salt:rd.convert(sd(s.getSaltToHashDevices())),PasswordVerifier:rd.convert(sd(s.getVerifierDevices()))},f=s.getRandomPassword();try{return await bZ({endpointResolver:xt({endpointOverride:t})})({region:wt(e)},{AccessToken:r,DeviceName:await mY(),DeviceKey:n?.DeviceKey,DeviceSecretVerifierConfig:c}),{deviceKey:i,deviceGroupKey:u,randomPassword:f}}catch{return}}async function fX(e){const t=Kt.getConfig().Auth?.Cognito;dt(t);const{username:n,signInSession:r,signInDetails:a,challengeName:s}=Ms.getState();if(s!=="WEB_AUTHN"||!n)throw new Be({name:Ns.SignInException,message:"Unable to proceed due to invalid sign in state."});const{CREDENTIAL_REQUEST_OPTIONS:i}=e;Rd(!!i,Wt.InvalidPasskeyAuthenticationOptions);const u=await yZ(JSON.parse(i)),c=ca({endpointResolver:xt({endpointOverride:t.userPoolEndpoint})}),{ChallengeName:f,ChallengeParameters:h,AuthenticationResult:m,Session:g}=await c({region:wt(t.userPoolId),userAgentValue:Lt(tt.ConfirmSignIn)},{ChallengeName:"WEB_AUTHN",ChallengeResponses:{USERNAME:n,CREDENTIAL:JSON.stringify(u)},ClientId:t.userPoolClientId,Session:r});if(du({signInSession:g,username:n,challengeName:f,signInDetails:a}),m)return await Po({...m,username:n,NewDeviceMetadata:await fu({userPoolId:t.userPoolId,userPoolEndpoint:t.userPoolEndpoint,newDeviceMetadata:m.NewDeviceMetadata,accessToken:m.AccessToken}),signInDetails:a}),Ms.dispatch({type:"RESET_STATE"}),await tl(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};if(f==="WEB_AUTHN")throw new Be({name:Ns.SignInException,message:"Sequential WEB_AUTHN challenges returned from underlying service cannot be handled."});return{challengeName:f,challengeParameters:h}}function er({username:e,userPoolId:t,userPoolClientId:n}){if(typeof window>"u")return;const r=window.AmazonCognitoAdvancedSecurityData;if(typeof r>"u")return;const a=r.getData(e,t,n);return a?{EncodedData:a}:{}}const hX=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],pX=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],HL=()=>{const e=new Date,t=pX[e.getUTCDay()],n=hX[e.getUTCMonth()],r=e.getUTCDate();let a=e.getUTCHours();a<10&&(a=`0${a}`);let s=e.getUTCMinutes();s<10&&(s=`0${s}`);let i=e.getUTCSeconds();i<10&&(i=`0${i}`);const u=e.getUTCFullYear();return`${t} ${n} ${r} ${a}:${s}:${i} UTC ${u}`},qL=({userPoolName:e,username:t,challengeParameters:n,dateNow:r,hkdf:a})=>{const s=d0.convert(e),i=d0.convert(t),u=mX(n.SECRET_BLOCK),c=d0.convert(r),f=new Uint8Array(s.byteLength+i.byteLength+u.byteLength+c.byteLength);f.set(s,0),f.set(i,s.byteLength),f.set(u,s.byteLength+i.byteLength),f.set(c,s.byteLength+i.byteLength+u.byteLength);const h=new Zl(a);h.update(f);const m=h.digestSync();return rd.convert(m)},mX=e=>{const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=tk.convert(n),a=new Uint8Array(r.length);for(let s=0;s<r.length;++s)a[s]=r.charCodeAt(s);return a};async function kp({username:e,config:t,clientMetadata:n,session:r,tokenOrchestrator:a}){const{userPoolId:s,userPoolEndpoint:i}=t,u=t.userPoolClientId,c=await a?.getDeviceMetadata(e);ML(c);const f=await _p(c.deviceGroupKey),h={USERNAME:e,SRP_A:f.A.toString(16),DEVICE_KEY:c.deviceKey},m={ChallengeName:"DEVICE_SRP_AUTH",ClientId:u,ChallengeResponses:h,ClientMetadata:n,Session:r},g=ca({endpointResolver:xt({endpointOverride:i})}),{ChallengeParameters:y,Session:S}=await g({region:wt(s)},m);return gX(e,y,n,S,f,t,a)}async function gX(e,t,n,r,a,{userPoolId:s,userPoolClientId:i,userPoolEndpoint:u},c){const f=await c?.getDeviceMetadata(e);ML(f);const h=new Re(t?.SRP_B,16),m=new Re(t?.SALT,16),{deviceKey:g}=f,{deviceGroupKey:y}=f,S=await a.getPasswordAuthenticationKey({username:f.deviceKey,password:f.randomPassword,serverBValue:h,salt:m}),w=HL(),x={USERNAME:t?.USERNAME??e,PASSWORD_CLAIM_SECRET_BLOCK:t?.SECRET_BLOCK,TIMESTAMP:w,PASSWORD_CLAIM_SIGNATURE:qL({username:g,userPoolName:y,challengeParameters:t,dateNow:w,hkdf:S}),DEVICE_KEY:g},_=er({username:e,userPoolId:s,userPoolClientId:i}),k={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:i,ChallengeResponses:x,Session:r,ClientMetadata:n,UserContextData:_};return ca({endpointResolver:xt({endpointOverride:u})})({region:wt(s)},k)}async function hk(e,t,n,r,a,s,i){const{userPoolId:u,userPoolClientId:c,userPoolEndpoint:f}=s,h=u?.split("_")[1]||"",m=new Re(t?.SRP_B,16),g=new Re(t?.SALT,16),y=t?.USER_ID_FOR_SRP;if(!y)throw new Be({name:"EmptyUserIdForSRPException",message:"USER_ID_FOR_SRP was not found in challengeParameters"});const S=await a.getPasswordAuthenticationKey({username:y,password:e,serverBValue:m,salt:g}),w=HL(),x={USERNAME:y,PASSWORD_CLAIM_SECRET_BLOCK:t?.SECRET_BLOCK,TIMESTAMP:w,PASSWORD_CLAIM_SIGNATURE:qL({username:y,userPoolName:h,challengeParameters:t,dateNow:w,hkdf:S})},_=await i.getDeviceMetadata(y);_&&_.deviceKey&&(x.DEVICE_KEY=_.deviceKey);const k=er({username:y,userPoolId:u,userPoolClientId:c}),A={ChallengeName:"PASSWORD_VERIFIER",ChallengeResponses:x,ClientMetadata:n,Session:r,ClientId:c,UserContextData:k},N=await ca({endpointResolver:xt({endpointOverride:f})})({region:wt(u)},A);return N.ChallengeName==="DEVICE_SRP_AUTH"?kp({username:y,config:s,clientMetadata:n,session:N.Session,tokenOrchestrator:i}):N}async function Nd(e,t,n,r){try{return await e(...t)}catch(a){if(a instanceof Be&&a.name==="ResourceNotFoundException"&&a.message.includes("Device does not exist."))return await r.clearDeviceMetadata(n),e(...t);throw a}}function hu(e){const{dispatch:t}=Ms;t({type:"SET_USERNAME",value:e})}async function VL({username:e,password:t,clientMetadata:n,config:r,tokenOrchestrator:a,authFlow:s,preferredChallenge:i}){const{userPoolId:u,userPoolClientId:c,userPoolEndpoint:f}=r,h=u?.split("_")[1]||"",m=await _p(h),g={USERNAME:e,SRP_A:m.A.toString(16)};s==="USER_AUTH"&&i&&(g.PREFERRED_CHALLENGE=i);const y=er({username:e,userPoolId:u,userPoolClientId:c}),S={AuthFlow:s,AuthParameters:g,ClientMetadata:n,ClientId:c,UserContextData:y},x=await Ep({endpointResolver:xt({endpointOverride:f})})({region:wt(u),userAgentValue:Lt(tt.SignIn)},S),{ChallengeParameters:_,Session:k}=x,A=_?.USERNAME??e;return hu(A),x.ChallengeName==="PASSWORD_VERIFIER"?Nd(hk,[t,_,n,k,m,r,a],A,a):x}async function vX({username:e,session:t,selectedChallenge:n,config:r,clientMetadata:a}){return ca({endpointResolver:xt({endpointOverride:r.userPoolEndpoint})})({region:wt(r.userPoolId),userAgentValue:Lt(tt.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:{USERNAME:e,ANSWER:n},ClientId:r.userPoolClientId,Session:t,ClientMetadata:a})}async function yX(e,t,n,r,a){const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:u}=r,c={ANSWER:"PASSWORD",USERNAME:e,PASSWORD:t},f=er({username:e,userPoolId:s,userPoolClientId:i}),m=await ca({endpointResolver:xt({endpointOverride:u})})({region:wt(s),userAgentValue:Lt(tt.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:c,ClientId:i,ClientMetadata:n,Session:a,UserContextData:f}),g=m.ChallengeParameters?.USERNAME??e;return hu(g),m}async function bX(e,t,n,r,a,s){const{userPoolId:i,userPoolClientId:u,userPoolEndpoint:c}=r,f=i.split("_")[1]||"",h=await _p(f),m={ANSWER:"PASSWORD_SRP",USERNAME:e,SRP_A:h.A.toString(16)},g=er({username:e,userPoolId:i,userPoolClientId:u}),S=await ca({endpointResolver:xt({endpointOverride:c})})({region:wt(i),userAgentValue:Lt(tt.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:m,ClientId:u,ClientMetadata:n,Session:a,UserContextData:g}),w=S.ChallengeParameters?.USERNAME??e;return hu(w),S.ChallengeName==="PASSWORD_VERIFIER"?Nd(hk,[t,S.ChallengeParameters,n,S.Session,h,r,s],w,s):S}const WE="userAttributes.";function SX(e){return"isSignedIn"in e&&"nextStep"in e}async function wX({challengeResponse:e,clientMetadata:t,session:n,username:r,config:a,tokenOrchestrator:s}){const{userPoolId:i,userPoolClientId:u,userPoolEndpoint:c}=a,f={USERNAME:r,ANSWER:e},h=await s?.getDeviceMetadata(r);h&&h.deviceKey&&(f.DEVICE_KEY=h.deviceKey);const m=er({username:r,userPoolId:i,userPoolClientId:u}),g={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:f,Session:n,ClientMetadata:t,ClientId:u,UserContextData:m},S=await ca({endpointResolver:xt({endpointOverride:c})})({region:wt(i),userAgentValue:Lt(tt.ConfirmSignIn)},g);return S.ChallengeName==="DEVICE_SRP_AUTH"?kp({username:r,config:a,clientMetadata:t,session:S.Session,tokenOrchestrator:s}):S}async function xX({challengeResponse:e,username:t,clientMetadata:n,session:r,deviceName:a,config:s}){const{userPoolId:i,userPoolClientId:u,userPoolEndpoint:c}=s;if(e==="EMAIL")return{ChallengeName:"MFA_SETUP",Session:r,ChallengeParameters:{MFAS_CAN_SETUP:'["EMAIL_OTP"]'},$metadata:{}};if(e==="TOTP")return{ChallengeName:"MFA_SETUP",Session:r,ChallengeParameters:{MFAS_CAN_SETUP:'["SOFTWARE_TOKEN_MFA"]'},$metadata:{}};const f={USERNAME:t};if(/^\d+$/.test(e)){const g=BY({endpointResolver:xt({endpointOverride:c})}),{Session:y}=await g({region:wt(i),userAgentValue:Lt(tt.ConfirmSignIn)},{UserCode:e,Session:r,FriendlyDeviceName:a});Ms.dispatch({type:"SET_SIGN_IN_SESSION",value:y});const S={ChallengeName:"MFA_SETUP",ChallengeResponses:f,Session:y,ClientMetadata:n,ClientId:u};return ca({endpointResolver:xt({endpointOverride:c})})({region:wt(i),userAgentValue:Lt(tt.ConfirmSignIn)},S)}if(e.includes("@")){f.EMAIL=e;const g={ChallengeName:"MFA_SETUP",ChallengeResponses:f,Session:r,ClientMetadata:n,ClientId:u};return ca({endpointResolver:xt({endpointOverride:c})})({region:wt(i),userAgentValue:Lt(tt.ConfirmSignIn)},g)}throw new Be({name:Ns.SignInException,message:`Cannot proceed with MFA setup using challengeResponse: ${e}`,recoverySuggestion:'Try passing "EMAIL", "TOTP", a valid email, or OTP code as the challengeResponse.'})}async function CX({challengeResponse:e,username:t,clientMetadata:n,session:r,config:a}){const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:u}=a;yn(e==="TOTP"||e==="SMS"||e==="EMAIL",et.IncorrectMFAMethod);const c={USERNAME:t,ANSWER:MX(e)},f=er({username:t,userPoolId:s,userPoolClientId:i}),h={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:c,Session:r,ClientMetadata:n,ClientId:i,UserContextData:f};return ca({endpointResolver:xt({endpointOverride:u})})({region:wt(s),userAgentValue:Lt(tt.ConfirmSignIn)},h)}async function EX({challengeResponse:e,clientMetadata:t,session:n,username:r,requiredAttributes:a,config:s}){const{userPoolId:i,userPoolClientId:u,userPoolEndpoint:c}=s,f={...OX(a),NEW_PASSWORD:e,USERNAME:r},h=er({username:r,userPoolId:i,userPoolClientId:u}),m={ChallengeName:"NEW_PASSWORD_REQUIRED",ChallengeResponses:f,ClientMetadata:t,Session:n,ClientId:u,UserContextData:h};return ca({endpointResolver:xt({endpointOverride:c})})({region:wt(i),userAgentValue:Lt(tt.ConfirmSignIn)},m)}async function _X(e,t,n,r,a){const{userPoolClientId:s,userPoolId:i,userPoolEndpoint:u}=r,c={USERNAME:e,PASSWORD:t},f=await a.getDeviceMetadata(e);f&&f.deviceKey&&(c.DEVICE_KEY=f.deviceKey);const h=er({username:e,userPoolId:i,userPoolClientId:s}),m={AuthFlow:"USER_PASSWORD_AUTH",AuthParameters:c,ClientMetadata:n,ClientId:s,UserContextData:h},y=await Ep({endpointResolver:xt({endpointOverride:u})})({region:wt(i),userAgentValue:Lt(tt.SignIn)},m),S=y.ChallengeParameters?.USERNAME??y.ChallengeParameters?.USER_ID_FOR_SRP??e;return hu(S),y.ChallengeName==="DEVICE_SRP_AUTH"?kp({username:S,config:r,clientMetadata:n,session:y.Session,tokenOrchestrator:a}):y}async function kX(e,t,n,r,a){return VL({username:e,password:t,clientMetadata:n,config:r,tokenOrchestrator:a,authFlow:"USER_SRP_AUTH"})}async function AX(e,t,n,r){const{userPoolClientId:a,userPoolId:s,userPoolEndpoint:i}=n,u={USERNAME:e},c=await r.getDeviceMetadata(e);c&&c.deviceKey&&(u.DEVICE_KEY=c.deviceKey);const f=er({username:e,userPoolId:s,userPoolClientId:a}),h={AuthFlow:"CUSTOM_AUTH",AuthParameters:u,ClientMetadata:t,ClientId:a,UserContextData:f},g=await Ep({endpointResolver:xt({endpointOverride:i})})({region:wt(s),userAgentValue:Lt(tt.SignIn)},h),y=g.ChallengeParameters?.USERNAME??e;return hu(y),g.ChallengeName==="DEVICE_SRP_AUTH"?kp({username:y,config:n,clientMetadata:t,session:g.Session,tokenOrchestrator:r}):g}async function IX(e,t,n,r,a){dt(r);const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:u}=r,c=s?.split("_")[1]||"",f=await _p(c),h={USERNAME:e,SRP_A:f.A.toString(16),CHALLENGE_NAME:"SRP_A"},m=er({username:e,userPoolId:s,userPoolClientId:i}),g={AuthFlow:"CUSTOM_AUTH",AuthParameters:h,ClientMetadata:n,ClientId:i,UserContextData:m},y=Ep({endpointResolver:xt({endpointOverride:u})}),{ChallengeParameters:S,Session:w}=await y({region:wt(s),userAgentValue:Lt(tt.SignIn)},g),x=S?.USERNAME??e;return hu(x),Nd(hk,[t,S,n,w,f,r,a],x,a)}async function pu(e){const{challengeName:t,challengeParameters:n,availableChallenges:r}=e,a=Kt.getConfig().Auth?.Cognito;switch(dt(a),t){case"CUSTOM_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_CUSTOM_CHALLENGE",additionalInfo:n}};case"MFA_SETUP":{const{signInSession:s,username:i}=Ms.getState(),u=kO(AO(n.MFAS_CAN_SETUP))||[],c=DX(u),f=c.includes("TOTP"),h=c.includes("EMAIL");if(f&&h)return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION",allowedMFATypes:c}};if(h)return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_EMAIL_SETUP"}};if(f){const m=HY({endpointResolver:xt({endpointOverride:a.userPoolEndpoint})}),{Session:g,SecretCode:y}=await m({region:wt(a.userPoolId)},{Session:s});return Ms.dispatch({type:"SET_SIGN_IN_SESSION",value:g}),{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_TOTP_SETUP",totpSetupDetails:RX(y,i)}}}throw new Be({name:Ns.SignInException,message:`Cannot initiate MFA setup from available types: ${u}`})}case"NEW_PASSWORD_REQUIRED":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",missingAttributes:TX(n.requiredAttributes)}};case"SELECT_MFA_TYPE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SELECTION",allowedMFATypes:kO(AO(n.MFAS_CAN_CHOOSE))}};case"SMS_OTP":case"SMS_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_SMS_CODE",codeDeliveryDetails:{deliveryMedium:n.CODE_DELIVERY_DELIVERY_MEDIUM,destination:n.CODE_DELIVERY_DESTINATION}}};case"SOFTWARE_TOKEN_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_TOTP_CODE"}};case"EMAIL_OTP":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_EMAIL_CODE",codeDeliveryDetails:{deliveryMedium:n.CODE_DELIVERY_DELIVERY_MEDIUM,destination:n.CODE_DELIVERY_DESTINATION}}};case"WEB_AUTHN":{const s=await fX(n);return SX(s)?s:pu(s)}case"PASSWORD":case"PASSWORD_SRP":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_PASSWORD"}};case"SELECT_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_FIRST_FACTOR_SELECTION",availableChallenges:r}}}throw new Be({name:Ns.SignInException,message:`An error occurred during the sign in process. ${t} challengeName returned by the underlying service was not addressed.`})}function RX(e,t){return{sharedSecret:e,getSetupUri:(n,r)=>{const a=`otpauth://totp/${n}:${r??t}?secret=${e}&issuer=${n}`;return new el(a)}}}function Md(e){if(e===$0.PasswordResetRequiredException)return{isSignedIn:!1,nextStep:{signInStep:"RESET_PASSWORD"}};if(e===$0.UserNotConfirmedException)return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_UP"}}}function TX(e){return e?JSON.parse(e).map(n=>n.includes(WE)?n.replace(WE,""):n):[]}function OX(e){if(!e)return{};const t={};return Object.entries(e).forEach(([n,r])=>{r&&(t[`${WE}${n}`]=r)}),t}async function NX(e,t,n,r,a,s,i,u){const c=u?.userAttributes,f=u?.friendlyDeviceName;switch(t){case"WEB_AUTHN":case"SELECT_CHALLENGE":return r==="PASSWORD_SRP"||r==="PASSWORD"?{ChallengeName:r,Session:n,$metadata:{}}:vX({username:e,session:n,selectedChallenge:r,config:a,clientMetadata:i});case"SELECT_MFA_TYPE":return CX({challengeResponse:r,clientMetadata:i,session:n,username:e,config:a});case"MFA_SETUP":return xX({challengeResponse:r,clientMetadata:i,session:n,username:e,deviceName:f,config:a});case"NEW_PASSWORD_REQUIRED":return EX({challengeResponse:r,clientMetadata:i,session:n,username:e,requiredAttributes:c,config:a});case"CUSTOM_CHALLENGE":return Nd(wX,[{challengeResponse:r,clientMetadata:i,session:n,username:e,config:a,tokenOrchestrator:s}],e,s);case"SMS_MFA":case"SOFTWARE_TOKEN_MFA":case"SMS_OTP":case"EMAIL_OTP":return LX({challengeName:t,challengeResponse:r,clientMetadata:i,session:n,username:e,config:a,tokenOrchestrator:s});case"PASSWORD":return yX(e,r,i,a,n);case"PASSWORD_SRP":return bX(e,r,i,a,n,s)}throw new Be({name:Ns.SignInException,message:`An error occurred during the sign in process.
5
+ ${t} challengeName returned by the underlying service was not addressed.`})}function MX(e){let t="SMS_MFA";return e==="TOTP"&&(t="SOFTWARE_TOKEN_MFA"),e==="EMAIL"&&(t="EMAIL_OTP"),t}function PX(e){if(e==="SMS_MFA")return"SMS";if(e==="SOFTWARE_TOKEN_MFA")return"TOTP";if(e==="EMAIL_OTP")return"EMAIL"}function kO(e){if(e)return e.map(PX).filter(Boolean)}function AO(e){return e?JSON.parse(e):[]}function DX(e){return e.filter(t=>t==="EMAIL"||t==="TOTP")}async function WL(){let e;try{e=await lv()}catch{}if(e&&e.userId&&e.username)throw new Be({name:SY,message:"There is already a signed in user.",recoverySuggestion:"Call signOut before calling signIn again."})}function Ap(e){return Ms.getState().username??e}async function LX({challengeName:e,challengeResponse:t,clientMetadata:n,session:r,username:a,config:s,tokenOrchestrator:i}){const{userPoolId:u,userPoolClientId:c,userPoolEndpoint:f}=s,h={USERNAME:a};e==="EMAIL_OTP"&&(h.EMAIL_OTP_CODE=t),e==="SMS_MFA"&&(h.SMS_MFA_CODE=t),e==="SMS_OTP"&&(h.SMS_OTP_CODE=t),e==="SOFTWARE_TOKEN_MFA"&&(h.SOFTWARE_TOKEN_MFA_CODE=t);const m=await i?.getDeviceMetadata(a);m&&m.deviceKey&&(h.DEVICE_KEY=m.deviceKey);const g=er({username:a,userPoolId:u,userPoolClientId:c}),y={ChallengeName:e,ChallengeResponses:h,Session:r,ClientMetadata:n,ClientId:c,UserContextData:g},w=await ca({endpointResolver:xt({endpointOverride:f})})({region:wt(u),userAgentValue:Lt(tt.ConfirmSignIn)},y);return w.ChallengeName==="DEVICE_SRP_AUTH"?kp({username:a,config:s,clientMetadata:n,session:w.Session,tokenOrchestrator:i}):w}async function UX(e){const t=Kt.getConfig().Auth?.Cognito;dt(t);const{username:n,password:r,options:a}=e,s={loginId:n,authFlowType:"CUSTOM_WITHOUT_SRP"},i=a?.clientMetadata;yn(!!n,et.EmptySignInUsername),yn(!r,et.CustomAuthSignInPassword);try{const{ChallengeName:u,ChallengeParameters:c,AuthenticationResult:f,Session:h}=await Nd(AX,[n,i,t,Yr],n,Yr),m=Ap(n);return du({signInSession:h,username:m,challengeName:u,signInDetails:s}),f?(await Po({username:m,...f,NewDeviceMetadata:await fu({userPoolId:t.userPoolId,userPoolEndpoint:t.userPoolEndpoint,newDeviceMetadata:f.NewDeviceMetadata,accessToken:f.AccessToken}),signInDetails:s}),es(),await tl(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):pu({challengeName:u,challengeParameters:c})}catch(u){es(),Ma(u);const c=Md(u.name);if(c)return c;throw u}}async function jX(e){const{username:t,password:n,options:r}=e,a={loginId:t,authFlowType:"CUSTOM_WITH_SRP"},s=Kt.getConfig().Auth?.Cognito;dt(s);const i=r?.clientMetadata;yn(!!t,et.EmptySignInUsername),yn(!!n,et.EmptySignInPassword);try{const{ChallengeName:u,ChallengeParameters:c,AuthenticationResult:f,Session:h}=await IX(t,n,i,s,Yr),m=Ap(t);return du({signInSession:h,username:m,challengeName:u,signInDetails:a}),f?(await Po({username:m,...f,NewDeviceMetadata:await fu({userPoolId:s.userPoolId,userPoolEndpoint:s.userPoolEndpoint,newDeviceMetadata:f.NewDeviceMetadata,accessToken:f.AccessToken}),signInDetails:a}),es(),await tl(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):pu({challengeName:u,challengeParameters:c})}catch(u){es(),Ma(u);const c=Md(u.name);if(c)return c;throw u}}const GL=async()=>{throw new Be({name:OL,message:"The autoSignIn flow has not started, or has been cancelled/completed.",recoverySuggestion:"Please try to use the signIn API or log out before starting a new autoSignIn flow."})};let pk=GL;function GE(e){pk=e}function Wr(e=!0){e&&(pk=GL),Li.dispatch({type:"RESET"})}async function IO(e){const{username:t,password:n}=e,r=Kt.getConfig().Auth?.Cognito,a={loginId:t,authFlowType:"USER_SRP_AUTH"};dt(r);const s=e.options?.clientMetadata;yn(!!t,et.EmptySignInUsername),yn(!!n,et.EmptySignInPassword);try{const{ChallengeName:i,ChallengeParameters:u,AuthenticationResult:c,Session:f}=await kX(t,n,s,r,Yr),h=Ap(t);return du({signInSession:f,username:h,challengeName:i,signInDetails:a}),c?(await Po({username:h,...c,NewDeviceMetadata:await fu({userPoolId:r.userPoolId,userPoolEndpoint:r.userPoolEndpoint,newDeviceMetadata:c.NewDeviceMetadata,accessToken:c.AccessToken}),signInDetails:a}),es(),await tl(),Wr(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):pu({challengeName:i,challengeParameters:u})}catch(i){es(),Wr(),Ma(i);const u=Md(i.name);if(u)return u;throw i}}async function zX(e){const{username:t,password:n,options:r}=e,a=Kt.getConfig().Auth?.Cognito,s={loginId:t,authFlowType:"USER_PASSWORD_AUTH"};dt(a);const i=r?.clientMetadata;yn(!!t,et.EmptySignInUsername),yn(!!n,et.EmptySignInPassword);try{const{ChallengeName:u,ChallengeParameters:c,AuthenticationResult:f,Session:h}=await Nd(_X,[t,n,i,a,Yr],t,Yr),m=Ap(t);return du({signInSession:h,username:m,challengeName:u,signInDetails:s}),f?(await Po({...f,username:m,NewDeviceMetadata:await fu({userPoolId:a.userPoolId,userPoolEndpoint:a.userPoolEndpoint,newDeviceMetadata:f.NewDeviceMetadata,accessToken:f.AccessToken}),signInDetails:s}),es(),await tl(),Wr(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):pu({challengeName:u,challengeParameters:c})}catch(u){es(),Wr(),Ma(u);const c=Md(u.name);if(c)return c;throw u}}async function FX({username:e,clientMetadata:t,config:n,tokenOrchestrator:r,preferredChallenge:a,password:s,session:i}){const{userPoolId:u,userPoolClientId:c,userPoolEndpoint:f}=n,h=er({username:e,userPoolId:u,userPoolClientId:c}),m={USERNAME:e};if(a){if(n.passwordless&&(a==="EMAIL_OTP"&&!n.passwordless.emailOtpEnabled||a==="SMS_OTP"&&!n.passwordless.smsOtpEnabled||a==="WEB_AUTHN"&&!n.passwordless.webAuthn)&&yn(!1,et.InvalidPreferredChallenge),a==="PASSWORD_SRP")return yn(!!s,et.EmptySignInPassword),VL({username:e,password:s,clientMetadata:t,config:n,tokenOrchestrator:r,authFlow:"USER_AUTH",preferredChallenge:a});a==="PASSWORD"&&(yn(!!s,et.EmptySignInPassword),m.PASSWORD=s),m.PREFERRED_CHALLENGE=a}const g={AuthFlow:"USER_AUTH",AuthParameters:m,ClientMetadata:t,ClientId:c,UserContextData:h};i&&(g.Session=i);const S=await Ep({endpointResolver:xt({endpointOverride:f})})({region:wt(u),userAgentValue:Lt(tt.SignIn)},g);return hu(e),S}async function KL(e){const{username:t,password:n,options:r}=e,a=Kt.getConfig().Auth?.Cognito,s={loginId:t,authFlowType:"USER_AUTH"};dt(a);const i=r?.clientMetadata,u=r?.preferredChallenge??a?.passwordless?.preferredChallenge;yn(!!t,et.EmptySignInUsername);try{const c={username:t,config:a,tokenOrchestrator:Yr,clientMetadata:i,preferredChallenge:u,password:n},f=Li.getState();f.active&&f.username===t&&(c.session=f.session);const h=await FX(c),m=Ap(t);return du({signInSession:h.Session,username:m,challengeName:h.ChallengeName,signInDetails:s}),h.AuthenticationResult?(await Po({username:m,...h.AuthenticationResult,NewDeviceMetadata:await fu({userPoolId:a.userPoolId,userPoolEndpoint:a.userPoolEndpoint,newDeviceMetadata:h.AuthenticationResult.NewDeviceMetadata,accessToken:h.AuthenticationResult.AccessToken}),signInDetails:s}),es(),await tl(),Wr(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):pu({challengeName:h.ChallengeName,challengeParameters:h.ChallengeParameters,availableChallenges:"AvailableChallenges"in h?h.AvailableChallenges:void 0})}catch(c){es(),Wr(),Ma(c);const f=Md(c.name);if(f)return f;throw c}}async function mk(e){Wr(!1);const t=e.options?.authFlowType;switch(await WL(),t){case"USER_SRP_AUTH":return IO(e);case"USER_PASSWORD_AUTH":return zX(e);case"CUSTOM_WITHOUT_SRP":return UX(e);case"CUSTOM_WITH_SRP":return jX(e);case"USER_AUTH":return KL(e);default:return IO(e)}}const YL=180*1e3;function $X(e){const t=F0.listen("auth-internal",async({payload:r})=>{r.event==="confirmSignUp"&&r.data?.isSignUpComplete&&(F0.dispatch("auth-internal",{event:"autoSignIn"}),GE(XL(e)),t())}),n=setTimeout(()=>{t(),clearTimeout(n),Wr()},YL)}function ZL(e,t){let n;return r=>{n||e(...r),clearTimeout(n),n=setTimeout(()=>{n=void 0},t)}}function BX(e,t,n){const r=Date.now(),a=setInterval(async()=>{if(Date.now()-r>YL)clearInterval(a),n(new Be({name:OL,message:"The account was not confirmed on time.",recoverySuggestion:"Try to verify your account by clicking the link sent your email or phone and then login manually."})),Wr();else try{const u=await mk(e);u.nextStep.signInStep!=="CONFIRM_SIGN_UP"&&(t(u),clearInterval(a),Wr())}catch(u){clearInterval(a),n(u),Wr()}},5e3)}const HX=ZL(BX,300),qX=ZL(WX,300);function VX(e){return async()=>new Promise((t,n)=>{HX([e,t,n])})}async function WX(e,t,n){try{const r=e?.options?.authFlowType==="USER_AUTH"?await KL(e):await mk(e);t(r),Wr()}catch(r){n(r),Wr()}}function XL(e){return async()=>new Promise((t,n)=>{qX([e,t,n])})}const GX=XL,KX=()=>async e=>{if(e.statusCode>=300){const t=await Ad(e);if(Ma(t),t.name===BE.InvalidParameterException&&/'password'/.test(t.message)&&/Member must not be null/.test(t.message)){const n=et.EmptySignUpPassword,{message:r,recoverySuggestion:a}=TL[n];throw new Be({name:n,message:r,recoverySuggestion:a})}throw new Be({name:t.name,message:t.message})}return xp(e)},YX=e=>Pn(Qn,Xn("SignUp"),KX(),{...Jn,...e});async function ZX(e){const{username:t,password:n,options:r}=e,a=Kt.getConfig().Auth?.Cognito,s=a?.signUpVerificationMethod??"code",{clientMetadata:i,validationData:u,autoSignIn:c}=e.options??{};dt(a),yn(!!t,et.EmptySignUpUsername);const f=typeof c!="boolean"?c:void 0,h={username:t,options:f};f?.authFlowType!=="CUSTOM_WITHOUT_SRP"&&(h.password=n);const{userPoolId:m,userPoolClientId:g,userPoolEndpoint:y}=a,S=YX({endpointResolver:xt({endpointOverride:y})}),w={Username:t,Password:void 0,UserAttributes:r?.userAttributes&&Z5(r?.userAttributes),ClientMetadata:i,ValidationData:u&&Z5(u),ClientId:g,UserContextData:er({username:t,userPoolId:m,userPoolClientId:g})};n&&(w.Password=n);const{UserSub:x,CodeDeliveryDetails:_,UserConfirmed:k,Session:A}=await S({region:wt(m),userAgentValue:Lt(tt.SignUp)},w);(f||c===!0)&&(Li.dispatch({type:"START"}),Li.dispatch({type:"SET_USERNAME",value:t}),Li.dispatch({type:"SET_SESSION",value:A}));const R={destination:_?.Destination,deliveryMedium:_?.DeliveryMedium,attributeName:_?.AttributeName},N=!!k,O=Li.getState().active;if(N)return O?(GE(GX(h)),{isSignUpComplete:!0,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN"},userId:x}):{isSignUpComplete:!0,nextStep:{signUpStep:"DONE"},userId:x};if(O){if(s==="link")return GE(VX(h)),{isSignUpComplete:!1,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN",codeDeliveryDetails:R},userId:x};$X(h)}return{isSignUpComplete:!1,nextStep:{signUpStep:"CONFIRM_SIGN_UP",codeDeliveryDetails:R},userId:x}}const XX=e=>Pn(Qn,Xn("ForgotPassword"),dr(),{...Jn,...e});async function QL(e){const{username:t}=e;yn(!!t,et.EmptyResetPasswordUsername);const n=Kt.getConfig().Auth?.Cognito;dt(n);const{userPoolClientId:r,userPoolId:a,userPoolEndpoint:s}=n,i=e.options?.clientMetadata,u=er({username:t,userPoolId:a,userPoolClientId:r}),h=(await XX({endpointResolver:xt({endpointOverride:s})})({region:wt(a),userAgentValue:Lt(tt.ResetPassword)},{Username:t,ClientMetadata:i,ClientId:r,UserContextData:u})).CodeDeliveryDetails;return{isPasswordReset:!1,nextStep:{resetPasswordStep:"CONFIRM_RESET_PASSWORD_WITH_CODE",codeDeliveryDetails:{deliveryMedium:h?.DeliveryMedium,destination:h?.Destination,attributeName:h?.AttributeName}}}}const QX=e=>Pn(Qn,Xn("ConfirmForgotPassword"),dr(),{...Jn,...e});async function JX(e){const t=Kt.getConfig().Auth?.Cognito;dt(t);const{userPoolClientId:n,userPoolId:r,userPoolEndpoint:a}=t,{username:s,newPassword:i}=e;yn(!!s,et.EmptyConfirmResetPasswordUsername),yn(!!i,et.EmptyConfirmResetPasswordNewPassword);const u=e.confirmationCode;yn(!!u,et.EmptyConfirmResetPasswordConfirmationCode);const c=e.options?.clientMetadata,f=er({username:s,userPoolId:r,userPoolClientId:n});await QX({endpointResolver:xt({endpointOverride:a})})({region:wt(t.userPoolId),userAgentValue:Lt(tt.ConfirmResetPassword)},{Username:s,ConfirmationCode:u,Password:i,ClientMetadata:c,ClientId:t.userPoolClientId,UserContextData:f})}const eQ=e=>Pn(Qn,Xn("ResendConfirmationCode"),dr(),{...Jn,...e});async function tQ(e){const{username:t}=e;yn(!!t,et.EmptySignUpUsername);const n=Kt.getConfig().Auth?.Cognito;dt(n);const{userPoolClientId:r,userPoolId:a,userPoolEndpoint:s}=n,i=e.options?.clientMetadata,u=er({username:t,userPoolId:a,userPoolClientId:r}),c=eQ({endpointResolver:xt({endpointOverride:s})}),{CodeDeliveryDetails:f}=await c({region:wt(n.userPoolId),userAgentValue:Lt(tt.ResendSignUpCode)},{Username:t,ClientMetadata:i,ClientId:n.userPoolClientId,UserContextData:u}),{DeliveryMedium:h,AttributeName:m,Destination:g}={...f};return{destination:g,deliveryMedium:h,attributeName:m||void 0}}const nQ=e=>Pn(Qn,Xn("ConfirmSignUp"),dr(),{...Jn,...e});async function rQ(e){const{username:t,confirmationCode:n,options:r}=e,a=Kt.getConfig().Auth?.Cognito;dt(a);const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:u}=a,c=r?.clientMetadata;yn(!!t,et.EmptyConfirmSignUpUsername),yn(!!n,et.EmptyConfirmSignUpCode);const f=er({username:t,userPoolId:s,userPoolClientId:i}),h=nQ({endpointResolver:xt({endpointOverride:u})}),{Session:m}=await h({region:wt(a.userPoolId),userAgentValue:Lt(tt.ConfirmSignUp)},{Username:t,ConfirmationCode:n,ClientMetadata:c,ForceAliasCreation:r?.forceAliasCreation,ClientId:a.userPoolClientId,UserContextData:f});return new Promise((g,y)=>{try{const S={isSignUpComplete:!0,nextStep:{signUpStep:"DONE"}},w=Li.getState();if(!w.active||w.username!==t){g(S),Wr();return}Li.dispatch({type:"SET_SESSION",value:m});const x=F0.listen("auth-internal",({payload:_})=>{_.event==="autoSignIn"&&(g({isSignUpComplete:!0,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN"}}),x())});F0.dispatch("auth-internal",{event:"confirmSignUp",data:S})}catch(S){y(S)}})}async function JL(e){const{challengeResponse:t,options:n}=e,{username:r,challengeName:a,signInSession:s,signInDetails:i}=Ms.getState(),u=Kt.getConfig().Auth?.Cognito;dt(u);const c=n?.clientMetadata;if(yn(!!t,et.EmptyChallengeResponse),!r||!a||!s)throw new Be({name:Ns.SignInException,message:`
6
+ An error occurred during the sign in process.
7
+
8
+ This most likely occurred due to:
9
+ 1. signIn was not called before confirmSignIn.
10
+ 2. signIn threw an exception.
11
+ 3. page was refreshed during the sign in flow and session has expired.
12
+ `,recoverySuggestion:"Make sure a successful call to signIn is made before calling confirmSignInand that the session has not expired."});try{const{Session:f,ChallengeName:h,AuthenticationResult:m,ChallengeParameters:g}=await NX(r,a,s,t,u,Yr,c,n);return du({signInSession:f,username:r,challengeName:h,signInDetails:i}),m?(await Po({username:r,...m,NewDeviceMetadata:await fu({userPoolId:u.userPoolId,userPoolEndpoint:u.userPoolEndpoint,newDeviceMetadata:m.NewDeviceMetadata,accessToken:m.AccessToken}),signInDetails:i}),es(),await tl(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):pu({challengeName:h,challengeParameters:g})}catch(f){Ma(f);const h=Md(f.name);if(h)return h;throw f}}const aQ=e=>Pn(Qn,Xn("GetUser"),dr(),{...Jn,...e}),sQ=e=>Pn(Qn,Xn("VerifyUserAttribute"),dr(),{...Jn,...e});async function oQ(e){const t=Kt.getConfig().Auth?.Cognito;dt(t);const{userPoolEndpoint:n,userPoolId:r}=t,{confirmationCode:a,userAttributeKey:s}=e;yn(!!a,et.EmptyConfirmUserAttributeCode);const{tokens:i}=await sv({forceRefresh:!1});Id(i),await sQ({endpointResolver:xt({endpointOverride:n})})({region:wt(r),userAgentValue:Lt(tt.ConfirmUserAttribute)},{AccessToken:i.accessToken.toString(),AttributeName:s,Code:a})}new ur("AuthError");const iQ={oauthSignInError:{message:Yn.OAUTH_ERROR,log:"Make sure Cognito Hosted UI has been configured correctly"},noConfig:{message:Yn.DEFAULT_MSG},missingAuthConfig:{message:Yn.DEFAULT_MSG},emptyUsername:{message:Yn.EMPTY_USERNAME},invalidUsername:{message:Yn.INVALID_USERNAME},emptyPassword:{message:Yn.EMPTY_PASSWORD},emptyCode:{message:Yn.EMPTY_CODE},signUpError:{message:Yn.SIGN_UP_ERROR},noMFA:{message:Yn.NO_MFA},invalidMFA:{message:Yn.INVALID_MFA},emptyChallengeResponse:{message:Yn.EMPTY_CHALLENGE},noUserSession:{message:Yn.NO_USER_SESSION},deviceConfig:{message:Yn.DEVICE_CONFIG},networkError:{message:Yn.NETWORK_ERROR},autoSignInError:{message:Yn.AUTOSIGNIN_ERROR},default:{message:Yn.DEFAULT_MSG}},qi=(e,t)=>new Be({message:e??"An error has occurred during the oauth process.",name:Ns.OAuthSignInError,recoverySuggestion:iQ.oauthSignInError.log});var KE;(function(e){e.NoConfig="noConfig",e.MissingAuthConfig="missingAuthConfig",e.EmptyUsername="emptyUsername",e.InvalidUsername="invalidUsername",e.EmptyPassword="emptyPassword",e.EmptyCode="emptyCode",e.SignUpError="signUpError",e.NoMFA="noMFA",e.InvalidMFA="invalidMFA",e.EmptyChallengeResponse="emptyChallengeResponse",e.NoUserSession="noUserSession",e.Default="default",e.DeviceConfig="deviceConfig",e.NetworkError="networkError",e.AutoSignInError="autoSignInError",e.OAuthSignInError="oauthSignInError"})(KE||(KE={}));const lQ="`signInWithRedirect` has been canceled.",uQ="An error occurred while validating the state.",cQ="Try to initiate an OAuth flow from Amplify",eU=async e=>{const t=await qr.loadOAuthState(),n=e===t?t:void 0;if(!n)throw new Be({name:KE.OAuthSignInError,message:e===null?lQ:uQ,recoverySuggestion:e===null?void 0:cQ});return n},tU=async({currentUrl:e,userAgentValue:t,clientId:n,redirectUri:r,responseType:a,domain:s,preferPrivateSession:i})=>{const u=new el(e),c=u.searchParams.get("error"),f=u.searchParams.get("error_description");if(c)throw qi(f??c);return a==="code"?dQ({currentUrl:e,userAgentValue:t,clientId:n,redirectUri:r,domain:s,preferPrivateSession:i}):fQ({currentUrl:e,redirectUri:r,preferPrivateSession:i})},dQ=async({currentUrl:e,userAgentValue:t,clientId:n,redirectUri:r,domain:a,preferPrivateSession:s})=>{const i=new el(e),u=i.searchParams.get("code"),c=i.searchParams.get("state");if(!u||!c)throw qi("User cancelled OAuth flow.");const f=await eU(c),h="https://"+a+"/oauth2/token",m=await qr.loadPKCE(),g={grant_type:"authorization_code",code:u,client_id:n,redirect_uri:r,...m?{code_verifier:m}:{}},y=Object.entries(g).map(([O,T])=>`${encodeURIComponent(O)}=${encodeURIComponent(T)}`).join("&"),{access_token:S,refresh_token:w,id_token:x,error:_,error_message:k,token_type:A,expires_in:R}=await(await fetch(h,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",[mG]:t},body:y})).json();if(_)throw qi(k??_);const N=(S&&Eo(S).payload.username)??"username";return await Po({username:N,AccessToken:S,IdToken:x,RefreshToken:w}),nU({redirectUri:r,state:f,preferPrivateSession:s})},fQ=async({currentUrl:e,redirectUri:t,preferPrivateSession:n})=>{const r=new el(e),{id_token:a,access_token:s,state:i,token_type:u,expires_in:c,error_description:f,error:h}=(r.hash??"#").substring(1).split("&").map(y=>y.split("=")).reduce((y,[S,w])=>({...y,[S]:w}),{id_token:void 0,access_token:void 0,state:void 0,token_type:void 0,expires_in:void 0,error_description:void 0,error:void 0});if(h)throw qi(f??h);if(!s)throw qi("No access token returned from OAuth flow.");const m=await eU(i),g=(s&&Eo(s).payload.username)??"username";return await Po({username:g,AccessToken:s,IdToken:a}),nU({redirectUri:t,state:m,preferPrivateSession:n})},nU=async({redirectUri:e,state:t,preferPrivateSession:n})=>{await Yr.setOAuthMetadata({oauthSignIn:!0}),await qr.clearOAuthData(),await qr.storeOAuthSignIn(!0,n),UL(),mQ(e),hQ(t)&&Os.dispatch("auth",{event:"customOAuthState",data:fY(pQ(t))},"Auth",Ts),Os.dispatch("auth",{event:"signInWithRedirect"},"Auth",Ts),await tl()},hQ=e=>/-/.test(e),pQ=e=>e.split("-").splice(1).join("-"),mQ=e=>{typeof window<"u"&&typeof window.history<"u"&&window.history.replaceState(window.history.state,"",e)};function gk(e,t){{const n=e?.find(gQ)??e?.find(vQ),r=e?.find(bQ)??e?.find(yQ);if(n)return n;throw r?AY:_Y}}const gQ=e=>e.startsWith(String(window.location.origin+(window.location.pathname||"/"))),vQ=e=>e.includes(String(window.location.hostname)),yQ=e=>e.startsWith("http://"),bQ=e=>e.startsWith("https://"),vk=async e=>{UL(),await qr.clearOAuthInflightData(),Os.dispatch("auth",{event:"signInWithRedirect_failure",data:{error:e}},"Auth",Ts)},SQ=async e=>{try{dt(e),tv(e),qr.setAuthConfig(e)}catch{return}if(await qr.loadOAuthInFlight())try{const t=window.location.href,{loginWith:n,userPoolClientId:r}=e,{domain:a,redirectSignIn:s,responseType:i}=n.oauth,u=gk(s);await tU({currentUrl:t,clientId:r,domain:a,redirectUri:u,responseType:i,userAgentValue:Lt(tt.SignInWithRedirect)})}catch(t){await vk(t)}};av()&&Kt[iL](SQ);const wQ={Google:"Google",Facebook:"Facebook",Amazon:"LoginWithAmazon",Apple:"SignInWithApple"},rU=async e=>{window?.location&&(window.location.href=e.replace("http://","https://"))},RO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",xQ=e=>{const t=new Uint8Array(e);ek().getRandomValues(t);let n="",r;for(const a of t)n+=RO.charAt(a%RO.length);return{value:n,method:"S256",toCodeChallenge(){return r||(r=CQ(n),r)}}};function CQ(e){const t=new Zl;return t.update(e),EQ(rd.convert(t.digestSync(),{urlSafe:!0}))}function EQ(e){return e.replace(/=/g,"")}const _Q=()=>dY(32),kQ=e=>{async function t(n){if(n.persisted&&await e.loadOAuthInFlight()){const a=qi("User cancelled OAuth flow.");await vk(a)}window.removeEventListener("pageshow",t)}window.addEventListener("pageshow",t)};async function aU(e){const t=Kt.getConfig().Auth?.Cognito;dt(t),tv(t),qr.setAuthConfig(t),e?.options?.prompt||await WL();let n="COGNITO",r;return typeof e?.provider=="string"?n=wQ[e.provider]:e?.provider?.custom?n=e.provider.custom:e?.provider?.idpIdentifier&&({idpIdentifier:r}=e.provider),AQ({oauthConfig:t.loginWith.oauth,clientId:t.userPoolClientId,provider:n,idpIdentifier:r,customState:e?.customState,preferPrivateSession:e?.options?.preferPrivateSession,options:{loginHint:e?.options?.loginHint,lang:e?.options?.lang,nonce:e?.options?.nonce,prompt:e?.options?.prompt},authSessionOpener:e?.options?.authSessionOpener})}const AQ=async({oauthConfig:e,provider:t,idpIdentifier:n,clientId:r,customState:a,preferPrivateSession:s,options:i,authSessionOpener:u})=>{const{domain:c,redirectSignIn:f,responseType:h,scopes:m}=e,{loginHint:g,lang:y,nonce:S,prompt:w}=i??{},x=_Q(),_=u||rU,k=a?`${x}-${hY(a)}`:x,{value:A,method:R,toCodeChallenge:N}=xQ(128),O=gk(e.redirectSignIn);av()&&qr.storeOAuthInFlight(!0),qr.storeOAuthState(k),qr.storePKCE(A);const T=new URLSearchParams;T.append("redirect_uri",O),T.append("response_type",h),T.append("client_id",r),n?T.append("idp_identifier",n):T.append("identity_provider",t),T.append("scope",m.join(" ")),g&&T.append("login_hint",g),y&&T.append("lang",y),S&&T.append("nonce",S),w&&T.append("prompt",w.toLowerCase()),T.append("state",k),h==="code"&&(T.append("code_challenge",N()),T.append("code_challenge_method",R));const P=`https://${c}/oauth2/authorize?${T.toString()}`;kQ(qr);const{type:L,error:q,url:j}=await _(P,f,s)??{};try{if(L==="error")throw qi(String(q));if(L==="canceled")throw qi(String(L));L==="success"&&j&&await tU({currentUrl:j,clientId:r,domain:c,redirectUri:O,responseType:h,userAgentValue:Lt(tt.SignInWithRedirect),preferPrivateSession:s})}catch(U){throw await vk(U),U}},IQ=async e=>{const t=e.getConfig().Auth?.Cognito;dt(t);const{userPoolEndpoint:n,userPoolId:r}=t,{tokens:a}=await hL(e,{forceRefresh:!1});Id(a);const s=aQ({endpointResolver:xt({endpointOverride:n})}),{UserAttributes:i}=await s({region:wt(r),userAgentValue:Lt(tt.FetchUserAttributes)},{AccessToken:a.accessToken.toString()});return bY(i)},sU=()=>IQ(Kt),RQ=async e=>{await e.clearOAuthData(),Yr.clearTokens(),await pL(),Os.dispatch("auth",{event:"signedOut"},"Auth",Ts)},TQ=async(e,t=!1,n)=>{tv(e);const{loginWith:r,userPoolClientId:a}=e,{domain:s,redirectSignOut:i}=r.oauth,u=gk(i),c=`https://${s}/logout?${Object.entries({client_id:a,logout_uri:encodeURIComponent(u)}).map(([f,h])=>`${f}=${h}`).join("&")}`;return rU(c)},OQ=async(e,t,n,r)=>{const{isOAuthSignIn:a}=await t.loadOAuthSignIn(),s=await n.getOAuthMetadata();if(await RQ(t),a||s?.oauthSignIn)return TQ(e,!1)},NQ=e=>Pn(Qn,Xn("RevokeToken"),dr(),{...Jn,...e}),MQ=new ur("Auth");async function PQ(e){const t=Kt.getConfig().Auth?.Cognito;dt(t),await DQ(t);let n;try{tv(t),n=!0}catch{n=!1}if(n){const r=new LL(Cp);r.setAuthConfig(t);const{type:a}=await OQ(t,r,Yr)??{};if(a==="error")throw new Be({name:IY,message:"An error occurred when attempting to log out from OAuth provider."})}else Yr.clearTokens(),await pL(),Os.dispatch("auth",{event:"signedOut"},"Auth",Ts)}async function DQ(e){try{const{userPoolEndpoint:t,userPoolId:n,userPoolClientId:r}=e,a=await Yr.getTokenStore().loadTokens();NL(a),LQ(a.accessToken)&&await NQ({endpointResolver:xt({endpointOverride:t})})({region:wt(n),userAgentValue:Lt(tt.SignOut)},{ClientId:r,Token:a.refreshToken})}catch{MQ.debug("Client signOut error caught but will proceed with token removal")}}const LQ=e=>!!e?.payload?.origin_jti,UQ=e=>Pn(Qn,Xn("GetUserAttributeVerificationCode"),dr(),{...Jn,...e}),jQ=async e=>{const{userAttributeKey:t,options:n}=e,r=Kt.getConfig().Auth?.Cognito,a=n?.clientMetadata;dt(r);const{userPoolEndpoint:s,userPoolId:i}=r,{tokens:u}=await sv({forceRefresh:!1});Id(u);const c=UQ({endpointResolver:xt({endpointOverride:s})}),{CodeDeliveryDetails:f}=await c({region:wt(i),userAgentValue:Lt(tt.SendUserAttributeVerificationCode)},{AccessToken:u.accessToken.toString(),ClientMetadata:a,AttributeName:t}),{DeliveryMedium:h,AttributeName:m,Destination:g}={...f};return{destination:g,deliveryMedium:h,attributeName:m}},zQ={identityId:"identityId"},FQ=new ur("DefaultIdentityIdStore");class oU{setAuthConfig(t){l0(t.Cognito),this.authConfig=t,this._authKeys=$Q("Cognito",t.Cognito.identityPoolId)}constructor(t){this._authKeys={},this._hasGuestIdentityId=!1,this.keyValueStorage=t}async loadIdentityId(){l0(this.authConfig?.Cognito);try{if(this._primaryIdentityId)return{id:this._primaryIdentityId,type:"primary"};{const t=await this.keyValueStorage.getItem(this._authKeys.identityId);return t?(this._hasGuestIdentityId=!0,{id:t,type:"guest"}):null}}catch(t){return FQ.log("Error getting stored IdentityId.",t),null}}async storeIdentityId(t){l0(this.authConfig?.Cognito),t.type==="guest"?(this.keyValueStorage.setItem(this._authKeys.identityId,t.id),this._primaryIdentityId=void 0,this._hasGuestIdentityId=!0):(this._primaryIdentityId=t.id,this._hasGuestIdentityId&&(this.keyValueStorage.removeItem(this._authKeys.identityId),this._hasGuestIdentityId=!1))}async clearIdentityId(){this._primaryIdentityId=void 0,await this.keyValueStorage.removeItem(this._authKeys.identityId)}}const $Q=(e,t)=>ok(zQ)(`com.amplify.${e}`,t),YE=({endpointOverride:e})=>t=>e?{url:new el(e)}:eY(t);function iU(e){const t=Eo(e).payload.iss,n={};if(!t)throw new Be({name:"InvalidIdTokenException",message:"Invalid Idtoken."});const r=t.replace(/(^\w+:|^)\/\//,"");return n[r]=e,n}async function BQ({tokens:e,authConfig:t,identityIdStore:n}){n.setAuthConfig({Cognito:t});const r=await n.loadIdentityId();if(r)return r.id;const a=e?.idToken?iU(e.idToken.toString()):{},s=await HQ(a,t);return n.storeIdentityId({id:s,type:e?"primary":"guest"}),s}async function HQ(e,t){const n=t?.identityPoolId,r=$E(n),a=XK({endpointResolver:YE({endpointOverride:t.identityPoolEndpoint})});let s;try{s=(await a({region:r},{IdentityPoolId:n,Logins:e})).IdentityId}catch(i){throw Ma(i),new Be(i)}if(!s)throw new Be({name:"GetIdResponseException",message:"Received undefined response from getId operation",recoverySuggestion:"Make sure to pass a valid identityPoolId in the configuration."});return s}const ug=new ur("CognitoCredentialsProvider"),TO=3e3*1e3;class lU{constructor(t){this._nextCredentialsRefresh=0,this._identityIdStore=t}async clearCredentialsAndIdentityId(){ug.debug("Clearing out credentials and identityId"),this._credentialsAndIdentityId=void 0,await this._identityIdStore.clearIdentityId()}async clearCredentials(){ug.debug("Clearing out in-memory credentials"),this._credentialsAndIdentityId=void 0}async getCredentialsAndIdentityId(t){const n=t.authenticated,{tokens:r}=t,{authConfig:a}=t;try{l0(a?.Cognito)}catch{return}if(!n&&!a.Cognito.allowGuestAccess)return;const{forceRefresh:s}=t,i=this.hasTokenChanged(r),u=await BQ({tokens:r,authConfig:a.Cognito,identityIdStore:this._identityIdStore});return(s||i)&&this.clearCredentials(),n?(OY(r),this.credsForOIDCTokens(a.Cognito,r,u)):this.getGuestCredentials(u,a.Cognito)}async getGuestCredentials(t,n){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!1)return ug.info("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const r=$E(n.identityPoolId),a=G5({endpointResolver:YE({endpointOverride:n.identityPoolEndpoint})});let s;try{s=await a({region:r},{IdentityId:t})}catch(i){throw Ma(i),new Be(i)}if(s?.Credentials?.AccessKeyId&&s?.Credentials?.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+TO;const i={credentials:{accessKeyId:s.Credentials.AccessKeyId,secretAccessKey:s.Credentials.SecretKey,sessionToken:s.Credentials.SessionToken,expiration:s.Credentials.Expiration},identityId:t};return s.IdentityId&&(i.identityId=s.IdentityId,this._identityIdStore.storeIdentityId({id:s.IdentityId,type:"guest"})),this._credentialsAndIdentityId={...i,isAuthenticatedCreds:!1},i}else throw new Be({name:"CredentialsNotFoundException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}async credsForOIDCTokens(t,n,r){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!0)return ug.debug("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const a=n.idToken?iU(n.idToken.toString()):{},s=$E(t.identityPoolId),i=G5({endpointResolver:YE({endpointOverride:t.identityPoolEndpoint})});let u;try{u=await i({region:s},{IdentityId:r,Logins:a})}catch(c){throw Ma(c),new Be(c)}if(u?.Credentials?.AccessKeyId&&u?.Credentials?.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+TO;const c={credentials:{accessKeyId:u.Credentials.AccessKeyId,secretAccessKey:u.Credentials.SecretKey,sessionToken:u.Credentials.SessionToken,expiration:u.Credentials.Expiration},identityId:r};return u.IdentityId&&(c.identityId=u.IdentityId,this._identityIdStore.storeIdentityId({id:u.IdentityId,type:"primary"})),this._credentialsAndIdentityId={...c,isAuthenticatedCreds:!0,associatedIdToken:n.idToken?.toString()},c}else throw new Be({name:"CredentialsException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}isPastTTL(){return this._nextCredentialsRefresh===void 0?!0:this._nextCredentialsRefresh<=Date.now()}hasTokenChanged(t){return!!t&&!!this._credentialsAndIdentityId?.associatedIdToken&&t.idToken?.toString()!==this._credentialsAndIdentityId.associatedIdToken}}const qQ=new lU(new oU(Cp)),uU={configure(e,t){const n=uL(e),r=new iY({sameSite:"lax"}),a=t?.ssr?r:Cp,s=t?.ssr?new lU(new oU(r)):qQ;if(!n.Auth||t?.Auth){Kt.configure(n,t);return}c0.setAuthConfig(n.Auth),c0.setKeyValueStorage(a),Kt.configure(n,{...t,Auth:{tokenProvider:c0,credentialsProvider:s}})},getConfig(){return Kt.getConfig()}},VQ=["internal","acme","tailscale","off"],WQ=e=>typeof e=="string"&&VQ.includes(e),cv=()=>{const e=globalThis.__REMIT_CONFIG__??{};return{apiUrl:e.apiUrl??"/api",appOrigin:e.appOrigin??"",betterAuthEnabled:e.betterAuthEnabled??!1,cognito:{userPoolId:e.cognito?.userPoolId??"",clientId:e.cognito?.clientId??"",domain:e.cognito?.domain??"",region:e.cognito?.region??""},rum:{appMonitorId:e.rum?.appMonitorId??"",identityPoolId:e.rum?.identityPoolId??"",region:e.rum?.region??"eu-west-1"},mailboxPollIntervalSeconds:e.mailboxPollIntervalSeconds!=null?String(e.mailboxPollIntervalSeconds):void 0,disableDevtools:e.disableDevtools??!1,tlsMode:WQ(e.tlsMode)?e.tlsMode:"off"}},GQ=()=>{const e=cv(),{userPoolId:t,clientId:n,domain:r,region:a}=e.cognito;return!t||!n?null:{userPoolId:t,userPoolClientId:n,domain:r,region:a,appOrigin:e.appOrigin}},ZE=GQ(),dv=()=>ZE!==null,cU=()=>{if(!ZE){console.warn("[auth] Cognito user pool is not configured. Running in local dev mode without Cognito auth.");return}const{userPoolId:e,userPoolClientId:t,domain:n,appOrigin:r}=ZE;uU.configure({Auth:{Cognito:{userPoolId:e,userPoolClientId:t,loginWith:n?{oauth:{domain:n,scopes:["openid","email","profile"],redirectSignIn:r?[r]:[],redirectSignOut:r?[r]:[],responseType:"code"}}:void 0}}})};var KQ={};const h0=Object.create(null),Ff=e=>KQ||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?h0:globalThis),_i=new Proxy(h0,{get(e,t){return Ff()[t]??h0[t]},has(e,t){return t in Ff()||t in h0},set(e,t,n){const r=Ff(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;const n=Ff(!0);return delete n[t],!0},ownKeys(){const e=Ff(!0);return Object.keys(e)}});_i.NODE_ENV;var p0=class extends Error{constructor(e,t){super(e,t),this.name="BetterAuthError",this.message=e,this.stack=""}};const YQ=47;function dU(e){let t=e.length;for(;t>0&&e.charCodeAt(t-1)===YQ;)t--;return t===e.length?e:e.slice(0,t)}function ZQ(e){try{return(dU(new URL(e).pathname)||"/")!=="/"}catch{throw new p0(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function XQ(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new p0(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof p0?t:new p0(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}}function OO(e,t="/api/auth"){if(XQ(e),ZQ(e))return e;const n=dU(e);return!t||t==="/"?n:(t=t.startsWith("/")?t:`/${t}`,`${n}${t}`)}function QQ(e,t,n,r,a){{const s=_i.BETTER_AUTH_URL||_i.NEXT_PUBLIC_BETTER_AUTH_URL||_i.PUBLIC_BETTER_AUTH_URL||_i.NUXT_PUBLIC_BETTER_AUTH_URL||_i.NUXT_PUBLIC_AUTH_URL||(_i.BASE_URL!=="/"?_i.BASE_URL:void 0);if(s)return OO(s,t)}if(typeof window<"u"&&window.location)return OO(window.location.origin,t)}const JQ={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},eJ=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,NO={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},tJ=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function nJ(e){return e instanceof Date&&!isNaN(e.getTime())}function rJ(e){const t=tJ.exec(e);if(!t)return null;const[,n,r,a,s,i,u,c,f,h,m]=t,g=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(a,10),parseInt(s,10),parseInt(i,10),parseInt(u,10),c?parseInt(c.padEnd(3,"0"),10):0));if(f){const y=(parseInt(h,10)*60+parseInt(m,10))*(f==="+"?-1:1);g.setUTCMinutes(g.getUTCMinutes()+y)}return nJ(g)?g:null}function aJ(e,t={}){const{strict:n=!1,warnings:r=!1,reviver:a,parseDates:s=!0}=t;if(typeof e!="string")return e;const i=e.trim(),u=i.toLowerCase();if(u.length<=9&&u in NO)return NO[u];if(!eJ.test(i)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(JQ).some(([c,f])=>{const h=f.test(i);return h&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${c} pattern`),h})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(i,(f,h)=>{if(f==="__proto__"||f==="constructor"&&h&&typeof h=="object"&&"prototype"in h){r&&console.warn(`[better-json] Dropping "${f}" key to prevent prototype pollution`);return}if(s&&typeof h=="string"){const m=rJ(h);if(m)return m}return a?a(f,h):h})}catch(c){if(n)throw c;return e}}function sJ(e,t={strict:!0}){return aJ(e,t)}const oJ=["javascript:","data:","vbscript:"];function iJ(e){let t;try{t=new URL(e)}catch{return!0}return!oJ.includes(t.protocol)}const lJ={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&iJ(e.data.url)&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}};let Ya=[],ki=0;const m0=4,uJ=globalThis.nanostoresGlobal||={epoch:0};let cJ=()=>{for(ki=0;ki<Ya.length;ki+=m0)Ya[ki](Ya[ki+1].value,Ya[ki+2],Ya[ki+3]);Ya.length=0};const MO=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},init:e,lc:0,listen(r){return n.lc=t.push(r),()=>{for(let s=ki+m0;s<Ya.length;)Ya[s]===r?Ya.splice(s,m0):s+=m0;let a=t.indexOf(r);~a&&(t.splice(a,1),--n.lc||n.off())}},notify(r,a){uJ.epoch++;let s=!Ya.length&&!0;for(let i of t)Ya.push(i,n,r,a);s&&cJ()},off(){},set(r){let a=n.value;a!==r&&(n.value=r,n.notify(a))},subscribe(r){let a=n.listen(r);return r(n.value),a},value:e};return n},dJ=2,fJ=5,cg=6,dg=10;let fU=(e,t,n,r)=>(e.events=e.events||{},e.events[n+dg]||(e.events[n+dg]=r(a=>{e.events[n].reduceRight((s,i)=>(i(s),s),{shared:{},...a})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let a=e.events[n],s=a.indexOf(t);a.splice(s,1),a.length||(delete e.events[n],e.events[n+dg](),delete e.events[n+dg])}),hJ=(e,t)=>fU(e,t,dJ,n=>{let r=e.set,a=e.setKey;return e.setKey&&(e.setKey=(s,i)=>{let u;if(n({abort:()=>{u=!0},changed:s,newValue:{...e.value,[s]:i}}),!u)return a(s,i)}),e.set=s=>{let i;if(n({abort:()=>{i=!0},newValue:s}),!i)return r(s)},()=>{e.set=r,e.setKey=a}});const pJ=1e3;let mJ=(e,t)=>fU(e,r=>{let a=t(r);a&&e.events[cg].push(a)},fJ,r=>{let a=e.listen;e.listen=(...i)=>(!e.lc&&!e.active&&(e.active=!0,r()),a(...i));let s=e.off;return e.events[cg]=[],e.off=()=>{s(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let i of e.events[cg])i();e.events[cg]=[]}},pJ)},()=>{e.listen=a,e.off=s}});function gJ(e,t,n){let r=new Set(t);return e.listen((a,s,i)=>{(i===void 0?t.some(u=>a[u]!==s[u]):r.has(i)||r.has(i.split(/\.|\[/)[0]))&&n(a,s,i)})}function PO(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function H0(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!H0(e[n],t[n]))return!1;return!0}if(PO(e)&&PO(t)){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const a of n)if(!(a in t)||!H0(e[a],t[a]))return!1;return!0}return!1}function vJ(e,t){return hJ(e,({newValue:n,abort:r})=>{t(e.value,n)&&r()})}const BS=Symbol.for("better-auth:broadcast-channel"),yJ=()=>Math.floor(Date.now()/1e3);var bJ=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:yJ()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=t=>{if(t.key!==this.name)return;const n=JSON.parse(t.newValue??"{}");n?.event!=="session"||!n?.data||this.listeners.forEach(r=>r(n))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function HS(e="better-auth.message"){return globalThis[BS]||(globalThis[BS]=new bJ(e)),globalThis[BS]}const qS=Symbol.for("better-auth:focus-manager");var SJ=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}};function DO(){return globalThis[qS]||(globalThis[qS]=new SJ),globalThis[qS]}const VS=Symbol.for("better-auth:online-manager");var wJ=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",t,!1)}}};function WS(){return globalThis[VS]||(globalThis[VS]=new wJ),globalThis[VS]}const GS=()=>Math.floor(Date.now()/1e3),xJ=5;function CJ(e){const{fetchSession:t,shouldPollSession:n=()=>!0,sessionSignal:r,options:a={}}=e,s=a.sessionOptions?.refetchInterval??0,i=a.sessionOptions?.refetchOnWindowFocus??!0,u=a.sessionOptions?.refetchWhenOffline??!1,c={isInitialized:!1,lastSessionRequest:0},f=()=>u||WS().isOnline,h=A=>{if(f()){if(A?.event==="storage"){t();return}if(A?.event==="poll"){c.lastSessionRequest=GS(),t();return}if(A?.event==="visibilitychange"){if(GS()-c.lastSessionRequest<xJ)return;c.lastSessionRequest=GS(),t();return}t()}},m=A=>{HS().post({event:"session",data:{trigger:A},clientId:Math.random().toString(36).substring(7)})},g=()=>{s&&s>0&&(c.pollInterval=setInterval(()=>{n()&&h({event:"poll"})},s*1e3))},y=()=>{c.unsubscribeBroadcast=HS().subscribe(()=>{h({event:"storage"})})},S=()=>{i&&(c.unsubscribeFocus=DO().subscribe(()=>{h({event:"visibilitychange"})}))},w=()=>{c.unsubscribeOnline=WS().subscribe(A=>{A&&h({event:"visibilitychange"})})},x=()=>{c.unsubscribeSignal=r.listen(()=>{t()})};return{init:()=>{c.isInitialized||(c.isInitialized=!0,g(),y(),S(),w(),x(),c.cleanupBroadcastSetup=HS().setup(),c.cleanupFocusSetup=DO().setup(),c.cleanupOnlineSetup=WS().setup())},cleanup:()=>{c.isInitialized&&(c.pollInterval&&(clearInterval(c.pollInterval),c.pollInterval=void 0),c.unsubscribeBroadcast&&(c.unsubscribeBroadcast(),c.unsubscribeBroadcast=void 0),c.unsubscribeFocus&&(c.unsubscribeFocus(),c.unsubscribeFocus=void 0),c.unsubscribeOnline&&(c.unsubscribeOnline(),c.unsubscribeOnline=void 0),c.unsubscribeSignal&&(c.unsubscribeSignal(),c.unsubscribeSignal=void 0),c.cleanupBroadcastSetup&&(c.cleanupBroadcastSetup(),c.cleanupBroadcastSetup=void 0),c.cleanupFocusSetup&&(c.cleanupFocusSetup(),c.cleanupFocusSetup=void 0),c.cleanupOnlineSetup&&(c.cleanupOnlineSetup(),c.cleanupOnlineSetup=void 0),c.isInitialized=!1,c.lastSessionRequest=0)},triggerRefetch:h,broadcastSessionUpdate:m}}const EJ=()=>typeof window>"u";function LO(e){return typeof e=="object"&&e!==null&&"data"in e&&"error"in e?e:{data:e,error:null}}function _J(e){return!e||e.session===null&&e.user===null?null:e}function kJ(e,t){return H0(e.data,t.data)&&e.error===t.error&&e.isPending===t.isPending&&e.isRefetching===t.isRefetching&&e.refetch===t.refetch}function AJ(e,t){const n=MO(!1);let r;const a=f=>u(f),s=MO({data:null,error:null,isPending:!0,isRefetching:!1,refetch:a});vJ(s,kJ);const i=f=>{if(r!==f)return;const h=s.get();r=void 0,!(!h.isPending&&!h.isRefetching)&&s.set({...h,isPending:!1,isRefetching:!1,refetch:a})},u=async f=>{r?.abort();const h=new AbortController;r=h;const m=s.get();s.set({...m,isPending:m.data===null,isRefetching:!0,error:null,refetch:a});try{const g=await e("/get-session",{method:"GET",query:f?.query,signal:h.signal});if(h.signal.aborted){i(h);return}let{data:y,error:S}=LO(g);if(y?.needsRefresh)try{const k=await e("/get-session",{method:"POST",signal:h.signal});if(h.signal.aborted){i(h);return}({data:y,error:S}=LO(k))}catch{if(h.signal.aborted){i(h);return}}if(S){const k=s.get(),A=S?.status===401;s.set({data:A?null:k.data,error:S,isPending:!1,isRefetching:!1,refetch:a});return}const w=_J(y),x=s.get(),_=x.data!=null&&w!=null&&H0(x.data,w)?x.data:w;s.set({data:_,error:null,isPending:!1,isRefetching:!1,refetch:a})}catch(g){if(h.signal.aborted){i(h);return}const y=s.get();s.set({data:y.data,error:g,isPending:!1,isRefetching:!1,refetch:a})}};let c=()=>{};return mJ(s,()=>{let f;EJ()||(f=setTimeout(()=>{u()},0));const h=CJ({fetchSession:u,shouldPollSession:()=>s.get().data!=null,sessionSignal:n,options:t});return h.init(),c=h.broadcastSessionUpdate,()=>{f&&clearTimeout(f);const m=r;m?.abort(),m&&i(m),h.cleanup()}}),{session:s,$sessionSignal:n,broadcastSessionUpdate:f=>c(f)}}function KS(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function XE(e,t,n=".",r){if(!KS(t))return XE(e,{},n,r);const a={...t};for(const s of Object.keys(e)){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(r&&r(a,s,i,n)||(Array.isArray(i)&&Array.isArray(a[s])?a[s]=[...i,...a[s]]:KS(i)&&KS(a[s])?a[s]=XE(i,a[s],(n?`${n}.`:"")+s.toString(),r):a[s]=i))}return a}function IJ(e){return(...t)=>t.reduce((n,r)=>XE(n,r,"",e),{})}const RJ=IJ();var TJ=Object.defineProperty,OJ=Object.defineProperties,NJ=Object.getOwnPropertyDescriptors,UO=Object.getOwnPropertySymbols,MJ=Object.prototype.hasOwnProperty,PJ=Object.prototype.propertyIsEnumerable,jO=(e,t,n)=>t in e?TJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ga=(e,t)=>{for(var n in t||(t={}))MJ.call(t,n)&&jO(e,n,t[n]);if(UO)for(var n of UO(t))PJ.call(t,n)&&jO(e,n,t[n]);return e},xs=(e,t)=>OJ(e,NJ(t)),DJ=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n,Error.captureStackTrace(this,this.constructor)}},LJ=async(e,t)=>{var n,r,a,s,i,u;let c=t||{};const f={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:c,hooks:f};for(const h of t?.plugins||[]){if(h.init){const m=await((n=h.init)==null?void 0:n.call(h,e.toString(),t));c=m.options||c,e=m.url}f.onRequest.push((r=h.hooks)==null?void 0:r.onRequest),f.onResponse.push((a=h.hooks)==null?void 0:a.onResponse),f.onSuccess.push((s=h.hooks)==null?void 0:s.onSuccess),f.onError.push((i=h.hooks)==null?void 0:i.onError),f.onRetry.push((u=h.hooks)==null?void 0:u.onRetry)}return{url:e,options:c,hooks:f}},zO=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},UJ=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function jJ(e){if(typeof e=="number")return new zO({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new zO(e);case"exponential":return new UJ(e);default:throw new Error("Invalid retry strategy")}}var zJ=async e=>{const t={},n=async r=>typeof r=="function"?await r():r;if(e?.auth){if(e.auth.type==="Bearer"){const r=await n(e.auth.token);if(!r)return t;t.authorization=`Bearer ${r}`}else if(e.auth.type==="Basic"){const[r,a]=await Promise.all([n(e.auth.username),n(e.auth.password)]);if(!r||!a)return t;t.authorization=`Basic ${btoa(`${r}:${a}`)}`}else if(e.auth.type==="Custom"){const[r,a]=await Promise.all([n(e.auth.prefix),n(e.auth.value)]);if(!a)return t;t.authorization=`${r??""} ${a}`}}return t},FJ=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function $J(e){const t=e.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const r=t.split(";").shift()||"";return FJ.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}function BJ(e){try{return JSON.parse(e),!0}catch{return!1}}function hU(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function FO(e){try{return JSON.parse(e)}catch{return e}}function $O(e){return typeof e=="function"}function HJ(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&$O(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&$O(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}function pU(...e){const t={};for(const n of e)if(n)if(n instanceof Headers)n.forEach((r,a)=>{t[a]=r});else{const r=Array.isArray(n)?n:Object.entries(n);for(const[a,s]of r)s!=null&&(t[a]=s)}return t}async function qJ(e){const t=new Headers(pU(e?.headers,await zJ(e)));if(!t.has("content-type")){const n=VJ(e?.body);n&&t.set("content-type",n)}return t}function VJ(e){return hU(e)?"application/json":null}function WJ(e){const t=e.get("content-type");return t?t.split(";")[0].trim().toLowerCase():null}function GJ(e,t){const{body:n}=e;return n?!hU(n)||typeof n=="string"?n:WJ(t)==="application/x-www-form-urlencoded"?new URLSearchParams(n).toString():JSON.stringify(n):null}function KJ(e,t){var n;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){const r=(n=e.split("@")[1])==null?void 0:n.split("/")[0];return gU.includes(r)?r.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function YJ(e,t){let n;return!e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var ZJ=class mU extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,mU.prototype)}};async function dh(e,t){const n=await e["~standard"].validate(t);if(n.issues)throw new ZJ(n.issues);return n.value}var gU=["get","post","put","patch","delete"],XJ=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,n){var r,a,s,i;const u=((a=(r=e.plugins)==null?void 0:r.find(c=>{var f;return(f=c.schema)!=null&&f.config?t.startsWith(c.schema.config.baseURL||"")||t.startsWith(c.schema.config.prefix||""):!1}))==null?void 0:a.schema)||e.schema;if(u){let c=t;(s=u.config)!=null&&s.prefix&&c.startsWith(u.config.prefix)&&(c=c.replace(u.config.prefix,""),u.config.baseURL&&(t=t.replace(u.config.prefix,u.config.baseURL))),(i=u.config)!=null&&i.baseURL&&c.startsWith(u.config.baseURL)&&(c=c.replace(u.config.baseURL,"")),c.startsWith("/")&&c.charAt(1)==="@"&&(c=c.substring(1));const f=u.schema[c];if(f){let h=n?.headers;if(f.headers&&!n?.disableValidation){const g={};if(n?.headers){if(n.headers instanceof Headers)n.headers.forEach((w,x)=>{g[x.toLowerCase()]=w});else if(typeof n.headers=="object")for(const[w,x]of Object.entries(n.headers))x!=null&&(g[w.toLowerCase()]=x)}const y=await dh(f.headers,g),S={};for(const[w,x]of Object.entries(y))S[w.toLowerCase()]=x;h=S}let m=xs(Ga({},n),{method:f.method,output:f.output,headers:h});return n?.disableValidation||(m=xs(Ga({},m),{body:f.input?await dh(f.input,n?.body):n?.body,params:f.params?await dh(f.params,n?.params):n?.params,query:f.query?await dh(f.query,n?.query):n?.query})),{url:t,options:m}}}return{url:t,options:n}}}),QJ=e=>{async function t(n,r){const a=xs(Ga(Ga({},e),r),{headers:pU(e?.headers,r?.headers),plugins:[...e?.plugins||[],XJ(e||{}),...r?.plugins||[]]});if(e?.catchAllError)try{return await QE(n,a)}catch(s){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:s}}}return await QE(n,a)}return t},JJ=e=>e==="."||e==="..";function eee(e,t){let n=e;for(const[r,a]of t)n=n.replace(r,a);if(JJ(n))throw new TypeError("Path parameters cannot be reserved path segments");return encodeURIComponent(n)}function tee(e,t){const{baseURL:n,params:r,query:a}=t||{query:{},params:{},baseURL:""};let s=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";if(e.startsWith("@")){const g=e.toString().split("@")[1].split("/")[0];gU.includes(g)&&(e=e.replace(`@${g}/`,"/"))}s.endsWith("/")||(s+="/");let[i,u]=e.replace(s,"").split("?");const c=new URLSearchParams(u);for(const[g,y]of Object.entries(a||{})){if(y==null)continue;let S;if(typeof y=="string")S=y;else if(Array.isArray(y)){for(const w of y)c.append(g,w);continue}else S=JSON.stringify(y);c.set(g,S)}const f=new Map;if(r)if(Array.isArray(r)){const g=i.split("/").filter(y=>y.startsWith(":"));for(const[y,S]of g.entries()){const w=r[y];f.set(S,String(w))}}else for(const[g,y]of Object.entries(r))f.set(`:${g}`,String(y));i=i.split("/").map(g=>eee(g,f)).join("/"),i=i.replace(/^\/+/,"");let h=c.toString();return h=h.length>0?`?${h}`.replace(/\+/g,"%20"):"",s.startsWith("http")?new URL(`${i}${h}`,s):`${s}${i}${h}`}var QE=async(e,t)=>{var n,r,a,s,i,u,c,f;const{hooks:h,url:m,options:g}=await LJ(e,t),y=HJ(g),S=new AbortController,w=(n=g.signal)!=null?n:S.signal,x=tee(m,g),_=await qJ(g),k=GJ(g,_),A=KJ(m,g),R=xs(Ga({},g),{url:x,headers:_,body:k,method:A,signal:w});for(const H of h.onRequest)if(H){const Z=await H(R);typeof Z=="object"&&Z!==null&&Object.assign(R,Z)}("pipeTo"in R&&typeof R.pipeTo=="function"||typeof((r=t?.body)==null?void 0:r.pipe)=="function")&&("duplex"in R||(R.duplex="half"));const{clearTimeout:N}=YJ(g,S);let O=await y(R.url,R);N();const T={response:O,request:R};for(const H of h.onResponse)if(H){const Z=await H(xs(Ga({},T),{response:(a=t?.hookOptions)!=null&&a.cloneResponse?O.clone():O}));Z instanceof Response?O=Z:typeof Z=="object"&&Z!==null&&(O=Z.response)}if(O.ok){if(!(R.method!=="HEAD"))return{data:"",error:null};const Z=$J(O),se={data:null,response:O,request:R};if(Z==="json"||Z==="text"){const B=await O.text(),X=(s=R.jsonParser)!=null?s:FO;se.data=await X(B)}else se.data=await O[Z]();R?.output&&R.output&&!R.disableValidation&&(se.data=await dh(R.output,se.data));for(const B of h.onSuccess)B&&await B(xs(Ga({},se),{response:(i=t?.hookOptions)!=null&&i.cloneResponse?O.clone():O}));return t?.throw?se.data:{data:se.data,error:null}}const P=(u=t?.jsonParser)!=null?u:FO,L=await O.text(),q=BJ(L),j=q?await P(L):null,U={response:O,responseText:L,request:R,error:xs(Ga({},j),{status:O.status,statusText:O.statusText})};for(const H of h.onError)H&&await H(xs(Ga({},U),{response:(c=t?.hookOptions)!=null&&c.cloneResponse?O.clone():O}));if(t?.retry){const H=jJ(t.retry),Z=(f=t.retryAttempt)!=null?f:0;if(await H.shouldAttemptRetry(Z,O)){for(const B of h.onRetry)B&&await B(T);const se=H.getDelay(Z);return await new Promise(B=>setTimeout(B,se)),await QE(e,xs(Ga({},t),{retryAttempt:Z+1}))}}if(t?.throw)throw new DJ(O.status,O.statusText,q?j:L);return{data:null,error:xs(Ga({},j),{status:O.status,statusText:O.statusText})}},_l={};const nee=e=>{if(typeof process>"u")return;const t="/api/auth";if(_l.NEXT_PUBLIC_AUTH_URL)return _l.NEXT_PUBLIC_AUTH_URL;if(typeof window>"u"){if(_l.NEXTAUTH_URL)try{return _l.NEXTAUTH_URL}catch{}if(_l.VERCEL_URL)try{const n=_l.VERCEL_URL.startsWith("http")?"":"https://";return`${new URL(`${n}${_l.VERCEL_URL}`).origin}${t}`}catch{}}},ree=(e,t)=>{const n="credentials"in Request.prototype,r=QQ(e?.baseURL,e?.basePath)??nee()??"/api/auth",a=[],s={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:i,onError:u,onRequest:c,onResponse:f,...h}={},m=QJ({baseURL:r,...n?{credentials:"include"}:{},method:"GET",jsonParser(N){return N?sJ(N,{strict:!1}):null},customFetchImpl:fetch,...h,plugins:[s,...h.plugins||[],lJ,...a]}),{$sessionSignal:g,session:y,broadcastSessionUpdate:S}=AJ(m,e),w=[];let x={};const _={$sessionSignal:g,session:y},k={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},A=[{signal:"$sessionSignal",matcher(N){return N==="/sign-out"||N==="/update-user"||N==="/update-session"||N==="/sign-up/email"||N==="/sign-in/email"||N==="/delete-user"||N==="/verify-email"||N==="/revoke-sessions"||N==="/revoke-session"||N==="/revoke-other-sessions"||N==="/change-email"||N==="/change-password"},callback(N){N==="/sign-out"?S("signout"):(N==="/update-user"||N==="/update-session")&&S("updateUser")}}];for(const N of w)N.getAtoms&&Object.assign(_,N.getAtoms?.(m)),N.pathMethods&&Object.assign(k,N.pathMethods),N.atomListeners&&A.push(...N.atomListeners);const R={notify:N=>{_[N].set(!_[N].get())},listen:(N,O)=>{_[N].subscribe(O)},atoms:_};for(const N of w)N.getActions&&(x=RJ(N.getActions?.(m,R,e)??{},x));return{get baseURL(){return r},pluginsActions:x,pluginsAtoms:_,pluginPathMethods:k,atomListeners:A,$fetch:m,$store:R}};function aee(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function see(e){return e.charAt(0).toUpperCase()+e.slice(1)}const oee=new RegExp("[\\p{Ll}\\d]+|\\p{Lu}+(?!\\p{Ll})|\\p{Lu}[\\p{Ll}\\d]+|\\p{Lo}+","gu"),iee=/['\u2019]/g;function lee(e){return e.replace(iee,"").match(oee)??[]}function uee(e){return lee(e).map(t=>t.toLowerCase()).join("-")}function cee(e,t,n){const r=t[e],{fetchOptions:a,query:s,...i}=n||{};return r||(a?.method?a.method:i&&Object.keys(i).length>0?"POST":"GET")}function dee(e,t,n,r,a){function s(i=[]){return new Proxy(function(){},{get(u,c){if(typeof c!="string"||c==="then"||c==="catch"||c==="finally")return;const f=[...i,c];let h=e;for(const m of f)if(h&&typeof h=="object"&&m in h)h=h[m];else{h=void 0;break}return typeof h=="function"||aee(h)?h:s(f)},apply:async(u,c,f)=>{const h="/"+i.map(uee).join("/"),m=f[0]||{},g=f[1]||{},{query:y,fetchOptions:S,...w}=m,x={...g,...S},_=cee(h,n,m);return await t(h,{...x,body:_==="GET"?void 0:{...w,...x?.body||{}},query:y||x?.query,method:_,async onSuccess(k){if(await x?.onSuccess?.(k),!a||x.disableSignal)return;const A=a.filter(N=>N.matcher(h));if(!A.length)return;const R=new Set;for(const N of A){const O=r[N.signal];if(!O)return;if(R.has(N.signal))continue;R.add(N.signal);const T=O.get();setTimeout(()=>{O.set(!T)},10),N.callback?.(h)}}})}})}return s()}var YS={exports:{}},Je={};var BO;function fee(){if(BO)return Je;BO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),g=Symbol.iterator;function y(z){return z===null||typeof z!="object"?null:(z=g&&z[g]||z["@@iterator"],typeof z=="function"?z:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function _(z,W,G){this.props=z,this.context=W,this.refs=x,this.updater=G||S}_.prototype.isReactComponent={},_.prototype.setState=function(z,W){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,W,"setState")},_.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function k(){}k.prototype=_.prototype;function A(z,W,G){this.props=z,this.context=W,this.refs=x,this.updater=G||S}var R=A.prototype=new k;R.constructor=A,w(R,_.prototype),R.isPureReactComponent=!0;var N=Array.isArray;function O(){}var T={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function L(z,W,G){var J=G.ref;return{$$typeof:e,type:z,key:W,ref:J!==void 0?J:null,props:G}}function q(z,W){return L(z.type,W,z.props)}function j(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function U(z){var W={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(G){return W[G]})}var H=/\/+/g;function Z(z,W){return typeof z=="object"&&z!==null&&z.key!=null?U(""+z.key):W.toString(36)}function se(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(O,O):(z.status="pending",z.then(function(W){z.status==="pending"&&(z.status="fulfilled",z.value=W)},function(W){z.status==="pending"&&(z.status="rejected",z.reason=W)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function B(z,W,G,J,oe){var pe=typeof z;(pe==="undefined"||pe==="boolean")&&(z=null);var K=!1;if(z===null)K=!0;else switch(pe){case"bigint":case"string":case"number":K=!0;break;case"object":switch(z.$$typeof){case e:case t:K=!0;break;case h:return K=z._init,B(K(z._payload),W,G,J,oe)}}if(K)return oe=oe(z),K=J===""?"."+Z(z,0):J,N(oe)?(G="",K!=null&&(G=K.replace(H,"$&/")+"/"),B(oe,W,G,"",function(Ee){return Ee})):oe!=null&&(j(oe)&&(oe=q(oe,G+(oe.key==null||z&&z.key===oe.key?"":(""+oe.key).replace(H,"$&/")+"/")+K)),W.push(oe)),1;K=0;var fe=J===""?".":J+":";if(N(z))for(var ge=0;ge<z.length;ge++)J=z[ge],pe=fe+Z(J,ge),K+=B(J,W,G,pe,oe);else if(ge=y(z),typeof ge=="function")for(z=ge.call(z),ge=0;!(J=z.next()).done;)J=J.value,pe=fe+Z(J,ge++),K+=B(J,W,G,pe,oe);else if(pe==="object"){if(typeof z.then=="function")return B(se(z),W,G,J,oe);throw W=String(z),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return K}function X(z,W,G){if(z==null)return z;var J=[],oe=0;return B(z,J,"","",function(pe){return W.call(G,pe,oe++)}),J}function re(z){if(z._status===-1){var W=z._result;W=W(),W.then(function(G){(z._status===0||z._status===-1)&&(z._status=1,z._result=G)},function(G){(z._status===0||z._status===-1)&&(z._status=2,z._result=G)}),z._status===-1&&(z._status=0,z._result=W)}if(z._status===1)return z._result.default;throw z._result}var de=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},we={map:X,forEach:function(z,W,G){X(z,function(){W.apply(this,arguments)},G)},count:function(z){var W=0;return X(z,function(){W++}),W},toArray:function(z){return X(z,function(W){return W})||[]},only:function(z){if(!j(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return Je.Activity=m,Je.Children=we,Je.Component=_,Je.Fragment=n,Je.Profiler=a,Je.PureComponent=A,Je.StrictMode=r,Je.Suspense=c,Je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,Je.__COMPILER_RUNTIME={__proto__:null,c:function(z){return T.H.useMemoCache(z)}},Je.cache=function(z){return function(){return z.apply(null,arguments)}},Je.cacheSignal=function(){return null},Je.cloneElement=function(z,W,G){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var J=w({},z.props),oe=z.key;if(W!=null)for(pe in W.key!==void 0&&(oe=""+W.key),W)!P.call(W,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&W.ref===void 0||(J[pe]=W[pe]);var pe=arguments.length-2;if(pe===1)J.children=G;else if(1<pe){for(var K=Array(pe),fe=0;fe<pe;fe++)K[fe]=arguments[fe+2];J.children=K}return L(z.type,oe,J)},Je.createContext=function(z){return z={$$typeof:i,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:s,_context:z},z},Je.createElement=function(z,W,G){var J,oe={},pe=null;if(W!=null)for(J in W.key!==void 0&&(pe=""+W.key),W)P.call(W,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(oe[J]=W[J]);var K=arguments.length-2;if(K===1)oe.children=G;else if(1<K){for(var fe=Array(K),ge=0;ge<K;ge++)fe[ge]=arguments[ge+2];oe.children=fe}if(z&&z.defaultProps)for(J in K=z.defaultProps,K)oe[J]===void 0&&(oe[J]=K[J]);return L(z,pe,oe)},Je.createRef=function(){return{current:null}},Je.forwardRef=function(z){return{$$typeof:u,render:z}},Je.isValidElement=j,Je.lazy=function(z){return{$$typeof:h,_payload:{_status:-1,_result:z},_init:re}},Je.memo=function(z,W){return{$$typeof:f,type:z,compare:W===void 0?null:W}},Je.startTransition=function(z){var W=T.T,G={};T.T=G;try{var J=z(),oe=T.S;oe!==null&&oe(G,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(O,de)}catch(pe){de(pe)}finally{W!==null&&G.types!==null&&(W.types=G.types),T.T=W}},Je.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},Je.use=function(z){return T.H.use(z)},Je.useActionState=function(z,W,G){return T.H.useActionState(z,W,G)},Je.useCallback=function(z,W){return T.H.useCallback(z,W)},Je.useContext=function(z){return T.H.useContext(z)},Je.useDebugValue=function(){},Je.useDeferredValue=function(z,W){return T.H.useDeferredValue(z,W)},Je.useEffect=function(z,W){return T.H.useEffect(z,W)},Je.useEffectEvent=function(z){return T.H.useEffectEvent(z)},Je.useId=function(){return T.H.useId()},Je.useImperativeHandle=function(z,W,G){return T.H.useImperativeHandle(z,W,G)},Je.useInsertionEffect=function(z,W){return T.H.useInsertionEffect(z,W)},Je.useLayoutEffect=function(z,W){return T.H.useLayoutEffect(z,W)},Je.useMemo=function(z,W){return T.H.useMemo(z,W)},Je.useOptimistic=function(z,W){return T.H.useOptimistic(z,W)},Je.useReducer=function(z,W,G){return T.H.useReducer(z,W,G)},Je.useRef=function(z){return T.H.useRef(z)},Je.useState=function(z){return T.H.useState(z)},Je.useSyncExternalStore=function(z,W,G){return T.H.useSyncExternalStore(z,W,G)},Je.useTransition=function(){return T.H.useTransition()},Je.version="19.2.7",Je}var HO;function Ip(){return HO||(HO=1,YS.exports=fee()),YS.exports}var E=Ip();const F=_d(E),vU=aL({__proto__:null,default:F},[E]);function hee(e,t={}){const n=E.useRef(e.get()),{keys:r,deps:a=[e,r]}=t,s=E.useCallback(u=>{const c=f=>{n.current!==f&&(n.current=f,u())};return c(e.value),r?.length?gJ(e,r,c):e.listen(c)},a),i=()=>n.current;return E.useSyncExternalStore(s,i,i)}function pee(e){return`use${see(e)}`}function mee(e){const{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:r,$fetch:a,$store:s,atomListeners:i}=ree(e),u={};for(const[c,f]of Object.entries(r))u[pee(c)]=()=>hee(f);return dee({...n,...u,$fetch:a,$store:s},a,t,r,i)}const gee=10,Wc=[],vee=["x-correlation-id","x-request-id","x-amzn-requestid","x-amzn-trace-id","apigw-requestid","x-trace-id"];function yee(e){const t=typeof e=="string"?e:e instanceof URL?e.href:e.url;try{return new URL(t,window.location.origin).pathname}catch{return t.split(/[?#]/)[0]}}function bee(e,t){return t?.method?t.method.toUpperCase():typeof e!="string"&&!(e instanceof URL)&&e.method?e.method.toUpperCase():"GET"}function See(e){for(const t of vee){const n=e.headers.get(t);if(n)return n}}function wee(e){Wc.push(e),Wc.length>gee&&Wc.shift()}function qO(e){const{input:t,init:n,response:r,durationMs:a}=e;wee({method:bee(t,n),path:yee(t),status:r?.status??0,durationMs:Math.round(a),correlationId:r?See(r):void 0,timestamp:new Date().toISOString()})}function xee(){return Wc.slice()}function Cee(){for(let e=Wc.length-1;e>=0;e--){const t=Wc[e];if(t.status===0||t.status>=400)return t}}class yk extends Error{constructor(t){super(t instanceof Error&&t.message?t.message:"The request could not be completed.",{cause:t}),this.name="NetworkError"}}const Eee=e=>typeof e=="object"&&e!==null&&"name"in e&&e.name==="AbortError",yU=async(e,t)=>{const n=performance.now();try{const r=await fetch(e,t);return qO({input:e,init:t,response:r,durationMs:performance.now()-n}),r}catch(r){throw Eee(r)?r:(qO({input:e,init:t,durationMs:performance.now()-n}),new yk(r))}},fv=()=>cv().betterAuthEnabled,_ee="EMAIL_PASSWORD_SIGN_UP_DISABLED",kee=e=>typeof e=="object"&&e!==null&&e.code===_ee,Fh=mee(),Aee=60,Iee=30,JE="remit.better-auth.token",bU=()=>{try{return globalThis.sessionStorage??null}catch{return null}},Ree=()=>{const e=bU()?.getItem(JE);if(!e)return null;try{const t=JSON.parse(e);if(t&&typeof t=="object"&&typeof t.value=="string"&&typeof t.expiresAt=="number")return{value:t.value,expiresAt:t.expiresAt}}catch{}return null},SU=e=>{const t=bU();if(t)try{if(!e){t.removeItem(JE);return}t.setItem(JE,JSON.stringify(e))}catch{}};let Ml=null,q0=0;const Tee=()=>Ml||(Ml=Ree(),Ml),Fl=()=>Math.floor(Date.now()/1e3),Oee=e=>{const[,t]=e.split(".");if(!t)return Fl();try{const n=JSON.parse(atob(t.replace(/-/g,"+").replace(/_/g,"/")));return typeof n.exp=="number"?n.exp:Fl()}catch{return Fl()}};class V0 extends Error{status;constructor(t,n){super(t),this.name="AuthTokenError",this.status=n}}const Nee=async()=>{const e=await yU("/api/auth/token",{credentials:"include"});if(!e.ok)throw new V0(`Could not mint a session token: ${e.status} ${e.statusText}`,e.status);const t=await e.json();if(t&&typeof t=="object"&&"token"in t&&typeof t.token=="string")return t.token;throw new V0("The token endpoint returned no token")};let $f=null;const Mee=()=>$f||($f=Nee().then(e=>(Ml={value:e,expiresAt:Oee(e)},SU(Ml),q0=0,e)).finally(()=>{$f=null}),$f),Pee=e=>e.expiresAt-Aee>Fl(),VO=e=>e.expiresAt>Fl(),Dee=e=>e instanceof yk?!0:e instanceof V0?e.status===408||e.status===429||(e.status??0)>=500:!1,Lee=e=>e instanceof V0&&(e.status===401||e.status===403),Uee=async()=>{const e=Tee();if(e&&Pee(e)||e&&VO(e)&&Fl()<q0)return e.value;try{return await Mee()}catch(t){if(Lee(t))throw bk(),t;if(e&&VO(e)&&Dee(t))return q0=Fl()+Iee,e.value;throw t}},bk=()=>{q0=0,SU(null),Ml=null};function wU(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=wU(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function jee(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=wU(e))&&(r&&(r+=" "),r+=t);return r}var ZS={exports:{}},vr={};var WO;function zee(){if(WO)return vr;WO=1;var e=Ip();function t(c){var f="https://react.dev/errors/"+c;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)f+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function s(c,f,h){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:m==null?null:""+m,children:c,containerInfo:f,implementation:h}}var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(c,f){if(c==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return vr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,vr.createPortal=function(c,f){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(c,f,null,h)},vr.flushSync=function(c){var f=i.T,h=r.p;try{if(i.T=null,r.p=2,c)return c()}finally{i.T=f,r.p=h,r.d.f()}},vr.preconnect=function(c,f){typeof c=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(c,f))},vr.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},vr.preinit=function(c,f){if(typeof c=="string"&&f&&typeof f.as=="string"){var h=f.as,m=u(h,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,y=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;h==="style"?r.d.S(c,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:m,integrity:g,fetchPriority:y}):h==="script"&&r.d.X(c,{crossOrigin:m,integrity:g,fetchPriority:y,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},vr.preinitModule=function(c,f){if(typeof c=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var h=u(f.as,f.crossOrigin);r.d.M(c,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(c)},vr.preload=function(c,f){if(typeof c=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var h=f.as,m=u(h,f.crossOrigin);r.d.L(c,h,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},vr.preloadModule=function(c,f){if(typeof c=="string")if(f){var h=u(f.as,f.crossOrigin);r.d.m(c,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(c)},vr.requestFormReset=function(c){r.d.r(c)},vr.unstable_batchedUpdates=function(c,f){return c(f)},vr.useFormState=function(c,f,h){return i.H.useFormState(c,f,h)},vr.useFormStatus=function(){return i.H.useHostTransitionStatus()},vr.version="19.2.7",vr}var GO;function xU(){if(GO)return ZS.exports;GO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ZS.exports=zee(),ZS.exports}var Fee=xU(),XS={exports:{}},QS={};var KO;function $ee(){if(KO)return QS;KO=1;var e=Ip();function t(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function u(m,g){var y=g(),S=r({inst:{value:y,getSnapshot:g}}),w=S[0].inst,x=S[1];return s(function(){w.value=y,w.getSnapshot=g,c(w)&&x({inst:w})},[m,y,g]),a(function(){return c(w)&&x({inst:w}),m(function(){c(w)&&x({inst:w})})},[m]),i(y),y}function c(m){var g=m.getSnapshot;m=m.value;try{var y=g();return!n(m,y)}catch{return!0}}function f(m,g){return g()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return QS.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,QS}var YO;function Bee(){return YO||(YO=1,XS.exports=$ee()),XS.exports}const Hee=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),CU=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();var qee={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Vee=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:i,...u},c)=>E.createElement("svg",{ref:c,...qee,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:CU("lucide",a),...u},[...i.map(([f,h])=>E.createElement(f,h)),...Array.isArray(s)?s:[s]]));const At=(e,t)=>{const n=E.forwardRef(({className:r,...a},s)=>E.createElement(Vee,{ref:s,iconNode:t,className:CU(`lucide-${Hee(e)}`,r),...a}));return n.displayName=`${e}`,n};const Wee=At("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);const EU=At("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);const Gee=At("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const Kee=At("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);const hv=At("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Yee=At("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Zee=At("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const Xee=At("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const Qee=At("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);const Jee=At("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const ete=At("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const tte=At("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);const nte=At("FolderInput",[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]]);const rte=At("FolderPlus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);const ate=At("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);const ste=At("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);const _U=At("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);const kU=At("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);const $h=At("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const ote=At("Mails",[["rect",{width:"16",height:"13",x:"6",y:"4",rx:"2",key:"1drq3f"}],["path",{d:"m22 7-7.1 3.78c-.57.3-1.23.3-1.8 0L6 7",key:"xn252p"}],["path",{d:"M2 8v11c0 1.1.9 2 2 2h14",key:"n13cji"}]]);const Sk=At("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);const ite=At("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);const lte=At("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const ute=At("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);const cte=At("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const e3=At("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);const dte=At("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);const fte=At("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);const hte=At("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);const od=At("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const pte=At("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);const mte=At("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);const Ps=At("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),wk="-",gte=e=>{const t=yte(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const u=i.split(wk);return u[0]===""&&u.length!==1&&u.shift(),AU(u,t)||vte(i)},getConflictingClassGroupIds:(i,u)=>{const c=n[i]||[];return u&&r[i]?[...c,...r[i]]:c}}},AU=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?AU(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const s=e.join(wk);return t.validators.find(({validator:i})=>i(s))?.classGroupId},ZO=/^\[(.+)\]$/,vte=e=>{if(ZO.test(e)){const t=ZO.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},yte=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Ste(Object.entries(e.classGroups),n).forEach(([s,i])=>{t3(i,r,s,t)}),r},t3=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const s=a===""?t:XO(t,a);s.classGroupId=n;return}if(typeof a=="function"){if(bte(a)){t3(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,i])=>{t3(i,XO(t,s),n,r)})})},XO=(e,t)=>{let n=e;return t.split(wk).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},bte=e=>e.isThemeGetter,Ste=(e,t)=>t?e.map(([n,r])=>{const a=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,u])=>[t+i,u])):s);return[n,a]}):e,wte=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return a(s,i),i},set(s,i){n.has(s)?n.set(s,i):a(s,i)}}},IU="!",xte=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,a=t[0],s=t.length,i=u=>{const c=[];let f=0,h=0,m;for(let x=0;x<u.length;x++){let _=u[x];if(f===0){if(_===a&&(r||u.slice(x,x+s)===t)){c.push(u.slice(h,x)),h=x+s;continue}if(_==="/"){m=x;continue}}_==="["?f++:_==="]"&&f--}const g=c.length===0?u:u.substring(h),y=g.startsWith(IU),S=y?g.substring(1):g,w=m&&m>h?m-h:void 0;return{modifiers:c,hasImportantModifier:y,baseClassName:S,maybePostfixModifierPosition:w}};return n?u=>n({className:u,parseClassName:i}):i},Cte=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Ete=e=>({cache:wte(e.cacheSize),parseClassName:xte(e),...gte(e)}),_te=/\s+/,kte=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,s=[],i=e.trim().split(_te);let u="";for(let c=i.length-1;c>=0;c-=1){const f=i[c],{modifiers:h,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:y}=n(f);let S=!!y,w=r(S?g.substring(0,y):g);if(!w){if(!S){u=f+(u.length>0?" "+u:u);continue}if(w=r(g),!w){u=f+(u.length>0?" "+u:u);continue}S=!1}const x=Cte(h).join(":"),_=m?x+IU:x,k=_+w;if(s.includes(k))continue;s.push(k);const A=a(w,S);for(let R=0;R<A.length;++R){const N=A[R];s.push(_+N)}u=f+(u.length>0?" "+u:u)}return u};function Ate(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=RU(t))&&(r&&(r+=" "),r+=n);return r}const RU=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=RU(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ite(e,...t){let n,r,a,s=i;function i(c){const f=t.reduce((h,m)=>m(h),e());return n=Ete(f),r=n.cache.get,a=n.cache.set,s=u,u(c)}function u(c){const f=r(c);if(f)return f;const h=kte(c,n);return a(c,h),h}return function(){return s(Ate.apply(null,arguments))}}const on=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},TU=/^\[(?:([a-z-]+):)?(.+)\]$/i,Rte=/^\d+\/\d+$/,Tte=new Set(["px","full","screen"]),Ote=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Nte=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Mte=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Pte=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Dte=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lo=e=>Gc(e)||Tte.has(e)||Rte.test(e),Si=e=>Pd(e,"length",Hte),Gc=e=>!!e&&!Number.isNaN(Number(e)),JS=e=>Pd(e,"number",Gc),Bf=e=>!!e&&Number.isInteger(Number(e)),Lte=e=>e.endsWith("%")&&Gc(e.slice(0,-1)),at=e=>TU.test(e),wi=e=>Ote.test(e),Ute=new Set(["length","size","percentage"]),jte=e=>Pd(e,Ute,OU),zte=e=>Pd(e,"position",OU),Fte=new Set(["image","url"]),$te=e=>Pd(e,Fte,Vte),Bte=e=>Pd(e,"",qte),Hf=()=>!0,Pd=(e,t,n)=>{const r=TU.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Hte=e=>Nte.test(e)&&!Mte.test(e),OU=()=>!1,qte=e=>Pte.test(e),Vte=e=>Dte.test(e),Wte=()=>{const e=on("colors"),t=on("spacing"),n=on("blur"),r=on("brightness"),a=on("borderColor"),s=on("borderRadius"),i=on("borderSpacing"),u=on("borderWidth"),c=on("contrast"),f=on("grayscale"),h=on("hueRotate"),m=on("invert"),g=on("gap"),y=on("gradientColorStops"),S=on("gradientColorStopPositions"),w=on("inset"),x=on("margin"),_=on("opacity"),k=on("padding"),A=on("saturate"),R=on("scale"),N=on("sepia"),O=on("skew"),T=on("space"),P=on("translate"),L=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",at,t],U=()=>[at,t],H=()=>["",lo,Si],Z=()=>["auto",Gc,at],se=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>["start","end","center","between","around","evenly","stretch"],de=()=>["","0",at],we=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[Gc,at];return{cacheSize:500,separator:":",theme:{colors:[Hf],spacing:[lo,Si],blur:["none","",wi,at],brightness:z(),borderColor:[e],borderRadius:["none","","full",wi,at],borderSpacing:U(),borderWidth:H(),contrast:z(),grayscale:de(),hueRotate:z(),invert:de(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[Lte,Si],inset:j(),margin:j(),opacity:z(),padding:U(),saturate:z(),scale:z(),sepia:de(),skew:z(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",at]}],container:["container"],columns:[{columns:[wi]}],"break-after":[{"break-after":we()}],"break-before":[{"break-before":we()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...se(),at]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Bf,at]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",at]}],grow:[{grow:de()}],shrink:[{shrink:de()}],order:[{order:["first","last","none",Bf,at]}],"grid-cols":[{"grid-cols":[Hf]}],"col-start-end":[{col:["auto",{span:["full",Bf,at]},at]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[Hf]}],"row-start-end":[{row:["auto",{span:[Bf,at]},at]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",at]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",at]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...re()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...re(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...re(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",at,t]}],"min-w":[{"min-w":[at,t,"min","max","fit"]}],"max-w":[{"max-w":[at,t,"none","full","min","max","fit","prose",{screen:[wi]},wi]}],h:[{h:[at,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[at,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[at,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[at,t,"auto","min","max","fit"]}],"font-size":[{text:["base",wi,Si]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",JS]}],"font-family":[{font:[Hf]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",at]}],"line-clamp":[{"line-clamp":["none",Gc,JS]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",lo,at]}],"list-image":[{"list-image":["none",at]}],"list-style-type":[{list:["none","disc","decimal",at]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",lo,Si]}],"underline-offset":[{"underline-offset":["auto",lo,at]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",at]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",at]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...se(),zte]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",jte]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$te]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:B()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[lo,at]}],"outline-w":[{outline:[lo,Si]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[lo,Si]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",wi,Bte]}],"shadow-color":[{shadow:[Hf]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",wi,at]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[m]}],saturate:[{saturate:[A]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",at]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",at]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",at]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[Bf,at]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",at]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",at]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",at]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[lo,Si,JS]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Gte=Ite(Wte);function Pe(...e){return Gte(jee(e))}const NU="inline-flex items-center justify-center gap-2 rounded-md font-medium whitespace-nowrap transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-surface disabled:opacity-50 disabled:pointer-events-none",MU={primary:"bg-accent text-accent-fg hover:bg-accent-hover",secondary:"bg-surface text-fg border border-line hover:bg-surface-sunken hover:border-line-strong",ghost:"text-fg-muted hover:bg-surface-sunken hover:text-fg",danger:"bg-danger text-accent-fg hover:opacity-90"},PU={sm:"h-7 px-2.5 text-xs",md:"h-9 px-3.5 text-sm",touch:"h-11 w-11 text-sm"};function en({variant:e="primary",size:t="md",icon:n,className:r,children:a,ref:s,...i}){return C.jsxs("button",{type:"button",ref:s,className:Pe(NU,MU[e],PU[t],r),...i,children:[n,a]})}function M6e({variant:e="primary",size:t="md",icon:n,external:r,className:a,children:s,...i}){return C.jsxs("a",{className:Pe(NU,MU[e],PU[t],a),...r?{target:"_blank",rel:"noopener noreferrer"}:{},...i,children:[n,s]})}const Kte={default:Pe("flex h-9 items-center gap-2 rounded-md border border-line bg-surface-sunken px-3 text-sm","focus-within:border-line-strong focus-within:ring-2 focus-within:ring-ring/30 transition-colors"),inline:"flex items-center gap-2 bg-transparent text-sm"};function ts({icon:e,className:t,variant:n="default",trailing:r,ref:a,...s}){return C.jsxs("div",{className:Pe(Kte[n],t),children:[e&&C.jsx("span",{className:"text-fg-subtle shrink-0",children:e}),C.jsx("input",{ref:a,className:"min-w-0 flex-1 bg-transparent text-fg placeholder:text-fg-subtle outline-none",...s}),r]})}function DU({icon:e,className:t,children:n,ref:r,...a}){return C.jsxs("div",{className:Pe("relative flex h-9 items-center gap-2 rounded-md border border-line bg-surface-sunken pl-3 text-sm","focus-within:border-line-strong focus-within:ring-2 focus-within:ring-ring/30 transition-colors",t),children:[e&&C.jsx("span",{className:"shrink-0 text-fg-subtle",children:e}),C.jsx("select",{ref:r,className:"min-w-0 flex-1 appearance-none bg-transparent py-0 pr-8 text-fg outline-none",...a,children:n}),C.jsx(Yee,{className:"pointer-events-none absolute right-2.5 size-4 text-fg-subtle"})]})}function Yte(e){return e.sentDate!=null?new Date(e.sentDate).toDateString()===new Date().toDateString():/^\d{1,2}:\d{2}$/.test(e.timeLabel)}const LU=[{id:"unread",label:"Unread",match:e=>!e.isRead},{id:"attachment",label:"Has attachment",match:e=>!!e.hasAttachment},{id:"contacts",label:"From contacts",match:e=>e.trust==="vip"||e.trust==="wellknown"},{id:"today",label:"Today",match:Yte}],P6e=LU.map(({id:e,label:t})=>({id:e,label:t}));function D6e(e,t){return LU.every(n=>!t.has(n.id)||n.match(e))}const Zte=1024,Xte=1280;function Qte(e,t=Zte,n=Xte){const r=e>=t;return{nav:r,reading:r,intelligence:e>=n}}function L6e(e){return e===void 0?!1:e.handlers.focusNext!==void 0&&e.handlers.focusPrevious!==void 0}function Jte(e){const t=E.useRef(null),[n,r]=E.useState(e??null);return E.useEffect(()=>{const a=t.current;if(!a||typeof ResizeObserver>"u")return;const s=new ResizeObserver(c=>{const f=c[0];f&&r(f.contentRect.width)});s.observe(a);const i=getComputedStyle(a),u=Number.parseFloat(i.paddingLeft)+Number.parseFloat(i.paddingRight);return r(a.clientWidth-u),()=>s.disconnect()},[]),[t,n]}const ene=[{id:"all",label:"All"},{id:"personal",label:"Personal"},{id:"uncategorized",label:"Unclassified"},{id:"newsletter",label:"Newsletters"},{id:"marketing",label:"Marketing"},{id:"automated",label:"Automated"},{id:"transactional",label:"Transactional"},{id:"social",label:"Social"}];function U6e(e){return ene.some(t=>t.id===e)}const tne={uncategorized:"neutral",personal:"accent",newsletter:"neutral",marketing:"neutral",automated:"neutral",transactional:"positive",social:"warning"};function j6e(e){return Object.hasOwn(tne,e)}const qf={action:null,nextPrefix:null,preventDefault:!1},nne={b:"goBrief",i:"goInbox",s:"goSent",f:"goFlagged",",":"goSettings"},rne={j:{action:"focusNext"},k:{action:"focusPrevious"},arrowdown:{action:"focusNext"},arrowup:{action:"focusPrevious"},home:{action:"focusFirst"},end:{action:"focusLast"},enter:{action:"openFocused"}," ":{action:"toggleSelect"},delete:{action:"delete"},backspace:{action:"delete"},u:{action:"toggleRead"},x:{action:"toggleSelect"},r:{action:"reply"},a:{action:"replyAll"},f:{action:"forward"},"#":{action:"delete"},s:{action:"toggleStar"},m:{action:"muteSender"},b:{action:"blockSender"},v:{action:"vipSender"},"!":{action:"markJunk"},i:{action:"toggleIntelligence"},d:{action:"toggleDensity"},"/":{action:"focusSearch"},c:{action:"compose"},"?":{action:"help"}};function ane(e,t){const n=e.key.toLowerCase(),r=e.metaKey||e.ctrlKey;if(e.inEditable)return{...qf,nextPrefix:t==="g"?null:t};if(e.onControl&&(n==="enter"||n===" "))return{...qf,nextPrefix:t==="g"?null:t};if(r&&n==="n")return{action:"compose",nextPrefix:null,preventDefault:!0};if(r&&n==="a")return{action:"selectAll",nextPrefix:null,preventDefault:!0};if(r)return{...qf,nextPrefix:t==="g"?null:t};if(n==="escape")return{action:"back",nextPrefix:null,preventDefault:!1};if(t==="g"){const i=nne[n===","?",":n]??null;return{action:i,nextPrefix:null,preventDefault:i!==null}}if(n==="g"&&!e.shiftKey)return{action:null,nextPrefix:"g",preventDefault:!0};if(e.shiftKey){const s=n==="j"||n==="arrowdown";if(s||(n==="k"||n==="arrowup"))return{action:s?"extendSelectDown":"extendSelectUp",nextPrefix:null,preventDefault:!0}}const a=rne[n];if(a){const s=a.requireShift===!0,i=n.length===1&&!/[a-z0-9]/.test(n);return!s&&e.shiftKey&&!i?qf:{action:a.action,nextPrefix:null,preventDefault:!0}}return qf}function sne(e){if(!(e instanceof HTMLElement))return!1;const t=e.tagName;return t==="INPUT"||t==="TEXTAREA"||t==="SELECT"||e.isContentEditable}const one="data-message-row",ine='button, a[href], summary, [role="button"], [role="menuitem"], [role="tab"], [role="switch"], [role="checkbox"]';function lne(e){if(!(e instanceof HTMLElement))return!1;const t=e.closest(ine);return t?!t.hasAttribute(one):!1}const une=["reply","replyAll","forward","delete","toggleStar","toggleRead","muteSender","blockSender","vipSender","markJunk"],cne=["focusNext","focusPrevious","focusFirst","focusLast","openFocused","toggleSelect","extendSelectDown","extendSelectUp","selectAll","toggleDensity"],Gn=(e,...t)=>({action:e,requires:t});Gn("help"),Gn("goBrief",{listIsNot:"brief"}),Gn("goFlagged",{listIsNot:"flagged"}),Gn("goInbox",{listIsNot:"inbox"}),Gn("goSent",{listIsNot:"sent"}),Gn("goSettings"),Gn("compose"),Gn("focusSearch"),Gn("toggleIntelligence"),[...cne.map(e=>Gn(e,"listVisible")),...une.map(e=>Gn(e,"aimed")),Gn("back","selection")],Gn("focusNext","threadOpen",{not:"listVisible"}),Gn("focusPrevious","threadOpen",{not:"listVisible"}),Gn("reply","threadOpen"),Gn("replyAll","threadOpen"),Gn("forward","threadOpen"),Gn("back");function dne(e,t){const n=t.at(-1);return n?n.handles.includes(e)?{outcome:"act",target:{kind:"overlay",frame:n}}:{outcome:"contained",by:{kind:"overlay",frame:n}}:null}const fne="[data-escape-owner]";let id=[],hne=0;const pne=()=>++hne,mne=(e,t)=>e.depth-t.depth;function gne(){return[...id].sort(mne).map(e=>({id:e.id,handles:Object.entries(e.run()).filter(([,t])=>t).map(([t])=>t)}))}function vne(){let e;for(const t of id)(!e||t.depth>e.depth)&&(e=t);return e}function z6e(e){return dne(e,gne())}function yne(e){if(e.key==="Escape"){const t=document.activeElement;return t instanceof Element&&t.closest(fne)?null:"back"}return ane({key:e.key,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey,inEditable:sne(e.target),onControl:lne(e.target)},null).action}function QO(e){const t=vne();if(!t)return;const n=yne(e);if(!n)return;const r=t.run()[n];r&&(e.preventDefault(),e.stopImmediatePropagation(),r())}function JO(e){const t=id.length===0;if(id=e,t!==(e.length===0)){if(e.length>0){window.addEventListener("keydown",QO,!0);return}window.removeEventListener("keydown",QO,!0)}}function xk({id:e,open:t,answers:n={}}){const r=E.useRef(n);r.current=n;const[a]=E.useState(pne);E.useEffect(()=>{if(!t)return;const s={id:e,depth:a,run:()=>r.current};return JO([...id,s]),()=>{JO(id.filter(i=>i!==s))}},[e,t,a])}const bne=({label:e,onDismiss:t,className:n})=>C.jsx("button",{type:"button","aria-label":e,tabIndex:-1,onClick:t,className:Pe("absolute inset-0 bg-canvas/80",n)});function n3({open:e,onClose:t,title:n,children:r,className:a,anchor:s="center"}){const i=E.useRef(null);if(xk({id:"dialog",open:e,answers:{back:t}}),E.useEffect(()=>{if(!e)return;const f=i.current;if(!f)return;f.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')[0]?.focus()},[e]),!e)return null;const u=s==="left",c=s==="right";return C.jsxs("div",{className:Pe("fixed inset-0 z-50 flex",u?"items-stretch justify-start":c?"items-stretch justify-end":"items-center justify-center px-4"),children:[C.jsx(bne,{label:"Dismiss dialog",onDismiss:t}),C.jsxs("div",{ref:i,role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title",className:Pe("relative z-10 overflow-hidden border-line bg-surface shadow-xl",u?"safe-area-frame h-full w-72 max-w-[85vw] border-r":c?"safe-area-frame h-full w-[80vw] max-w-[320px] border-l":"w-full max-w-lg rounded-md border",a),children:[C.jsx("h2",{id:"dialog-title",className:"sr-only",children:n}),r]})]})}const pv=E.createContext(null);pv.displayName="PanelGroupContext";const Cn={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Ck=10,$l=E.useLayoutEffect,e6=vU.useId,Sne=typeof e6=="function"?e6:()=>null;let wne=0;function Ek(e=null){const t=Sne(),n=E.useRef(e||t||null);return n.current===null&&(n.current=""+wne++),e??n.current}function UU({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:a,forwardedRef:s,id:i,maxSize:u,minSize:c,onCollapse:f,onExpand:h,onResize:m,order:g,style:y,tagName:S="div",...w}){const x=E.useContext(pv);if(x===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:_,expandPanel:k,getPanelSize:A,getPanelStyle:R,groupId:N,isPanelCollapsed:O,reevaluatePanelConstraints:T,registerPanel:P,resizePanel:L,unregisterPanel:q}=x,j=Ek(i),U=E.useRef({callbacks:{onCollapse:f,onExpand:h,onResize:m},constraints:{collapsedSize:n,collapsible:r,defaultSize:a,maxSize:u,minSize:c},id:j,idIsFromProps:i!==void 0,order:g});E.useRef({didLogMissingDefaultSizeWarning:!1}),$l(()=>{const{callbacks:Z,constraints:se}=U.current,B={...se};U.current.id=j,U.current.idIsFromProps=i!==void 0,U.current.order=g,Z.onCollapse=f,Z.onExpand=h,Z.onResize=m,se.collapsedSize=n,se.collapsible=r,se.defaultSize=a,se.maxSize=u,se.minSize=c,(B.collapsedSize!==se.collapsedSize||B.collapsible!==se.collapsible||B.maxSize!==se.maxSize||B.minSize!==se.minSize)&&T(U.current,B)}),$l(()=>{const Z=U.current;return P(Z),()=>{q(Z)}},[g,j,P,q]),E.useImperativeHandle(s,()=>({collapse:()=>{_(U.current)},expand:Z=>{k(U.current,Z)},getId(){return j},getSize(){return A(U.current)},isCollapsed(){return O(U.current)},isExpanded(){return!O(U.current)},resize:Z=>{L(U.current,Z)}}),[_,k,A,O,j,L]);const H=R(U.current,a);return E.createElement(S,{...w,children:e,className:t,id:j,style:{...H,...y},[Cn.groupId]:N,[Cn.panel]:"",[Cn.panelCollapsible]:r||void 0,[Cn.panelId]:j,[Cn.panelSize]:parseFloat(""+H.flexGrow).toFixed(1)})}const jU=E.forwardRef((e,t)=>E.createElement(UU,{...e,forwardedRef:t}));UU.displayName="Panel";jU.displayName="forwardRef(Panel)";let r3=null,g0=-1,Oi=null;function xne(e,t){if(t){const n=(t&HU)!==0,r=(t&qU)!==0,a=(t&VU)!==0,s=(t&WU)!==0;if(n)return a?"se-resize":s?"ne-resize":"e-resize";if(r)return a?"sw-resize":s?"nw-resize":"w-resize";if(a)return"s-resize";if(s)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Cne(){Oi!==null&&(document.head.removeChild(Oi),r3=null,Oi=null,g0=-1)}function ew(e,t){var n,r;const a=xne(e,t);if(r3!==a){if(r3=a,Oi===null&&(Oi=document.createElement("style"),document.head.appendChild(Oi)),g0>=0){var s;(s=Oi.sheet)===null||s===void 0||s.removeRule(g0)}g0=(n=(r=Oi.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${a} !important;}`))!==null&&n!==void 0?n:-1}}function zU(e){return e.type==="keydown"}function FU(e){return e.type.startsWith("pointer")}function $U(e){return e.type.startsWith("mouse")}function mv(e){if(FU(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if($U(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function Ene(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function _ne(e,t,n){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function kne(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:r6(e),b:r6(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;st(r,"Stacking order can only be calculated for elements with a common ancestor");const a={a:n6(t6(n.a)),b:n6(t6(n.b))};if(a.a===a.b){const s=r.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)};let u=s.length;for(;u--;){const c=s[u];if(c===i.a)return 1;if(c===i.b)return-1}}return Math.sign(a.a-a.b)}const Ane=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Ine(e){var t;const n=getComputedStyle((t=BU(e))!==null&&t!==void 0?t:e).display;return n==="flex"||n==="inline-flex"}function Rne(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Ine(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||Ane.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function t6(e){let t=e.length;for(;t--;){const n=e[t];if(st(n,"Missing node"),Rne(n))return n}return null}function n6(e){return e&&Number(getComputedStyle(e).zIndex)||0}function r6(e){const t=[];for(;e;)t.push(e),e=BU(e);return t}function BU(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const HU=1,qU=2,VU=4,WU=8,Tne=Ene()==="coarse";let Xa=[],Kc=!1,Ol=new Map,gv=new Map;const Bh=new Set;function One(e,t,n,r,a){var s;const{ownerDocument:i}=t,u={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:a},c=(s=Ol.get(i))!==null&&s!==void 0?s:0;return Ol.set(i,c+1),Bh.add(u),W0(),function(){var h;gv.delete(e),Bh.delete(u);const m=(h=Ol.get(i))!==null&&h!==void 0?h:1;if(Ol.set(i,m-1),W0(),m===1&&Ol.delete(i),Xa.includes(u)){const g=Xa.indexOf(u);g>=0&&Xa.splice(g,1),kk(),a("up",!0,null)}}}function Nne(e){const{target:t}=e,{x:n,y:r}=mv(e);Kc=!0,_k({target:t,x:n,y:r}),W0(),Xa.length>0&&(G0("down",e),e.preventDefault(),GU(t)||e.stopImmediatePropagation())}function tw(e){const{x:t,y:n}=mv(e);if(Kc&&e.buttons===0&&(Kc=!1,G0("up",e)),!Kc){const{target:r}=e;_k({target:r,x:t,y:n})}G0("move",e),kk(),Xa.length>0&&e.preventDefault()}function nw(e){const{target:t}=e,{x:n,y:r}=mv(e);gv.clear(),Kc=!1,Xa.length>0&&(e.preventDefault(),GU(t)||e.stopImmediatePropagation()),G0("up",e),_k({target:t,x:n,y:r}),kk(),W0()}function GU(e){let t=e;for(;t;){if(t.hasAttribute(Cn.resizeHandle))return!0;t=t.parentElement}return!1}function _k({target:e,x:t,y:n}){Xa.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),Bh.forEach(a=>{const{element:s,hitAreaMargins:i}=a,u=s.getBoundingClientRect(),{bottom:c,left:f,right:h,top:m}=u,g=Tne?i.coarse:i.fine;if(t>=f-g&&t<=h+g&&n>=m-g&&n<=c+g){if(r!==null&&document.contains(r)&&s!==r&&!s.contains(r)&&!r.contains(s)&&kne(r,s)>0){let S=r,w=!1;for(;S&&!S.contains(s);){if(_ne(S.getBoundingClientRect(),u)){w=!0;break}S=S.parentElement}if(w)return}Xa.push(a)}})}function rw(e,t){gv.set(e,t)}function kk(){let e=!1,t=!1;Xa.forEach(r=>{const{direction:a}=r;a==="horizontal"?e=!0:t=!0});let n=0;gv.forEach(r=>{n|=r}),e&&t?ew("intersection",n):e?ew("horizontal",n):t?ew("vertical",n):Cne()}let aw=new AbortController;function W0(){aw.abort(),aw=new AbortController;const e={capture:!0,signal:aw.signal};Bh.size&&(Kc?(Xa.length>0&&Ol.forEach((t,n)=>{const{body:r}=n;t>0&&(r.addEventListener("contextmenu",nw,e),r.addEventListener("pointerleave",tw,e),r.addEventListener("pointermove",tw,e))}),window.addEventListener("pointerup",nw,e),window.addEventListener("pointercancel",nw,e)):Ol.forEach((t,n)=>{const{body:r}=n;t>0&&(r.addEventListener("pointerdown",Nne,e),r.addEventListener("pointermove",tw,e))}))}function G0(e,t){Bh.forEach(n=>{const{setResizeHandlerState:r}=n,a=Xa.includes(n);r(e,a,t)})}function Mne(){const[e,t]=E.useState(0);return E.useCallback(()=>t(n=>n+1),[])}function st(e,t){if(!e)throw console.error(t),Error(t)}function Xl(e,t,n=Ck){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function vo(e,t,n=Ck){return Xl(e,t,n)===0}function la(e,t,n){return Xl(e,t,n)===0}function Pne(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){const a=e[r],s=t[r];if(!la(a,s,n))return!1}return!0}function Uc({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];st(r!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:a=0,collapsible:s,maxSize:i=100,minSize:u=0}=r;if(Xl(n,u)<0)if(s){const c=(a+u)/2;Xl(n,c)<0?n=a:n=u}else n=u;return n=Math.min(i,n),n=parseFloat(n.toFixed(Ck)),n}function fh({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:a,trigger:s}){if(la(e,0))return t;const i=[...t],[u,c]=r;st(u!=null,"Invalid first pivot index"),st(c!=null,"Invalid second pivot index");let f=0;if(s==="keyboard"){{const m=e<0?c:u,g=n[m];st(g,`Panel constraints not found for index ${m}`);const{collapsedSize:y=0,collapsible:S,minSize:w=0}=g;if(S){const x=t[m];if(st(x!=null,`Previous layout not found for panel index ${m}`),la(x,y)){const _=w-x;Xl(_,Math.abs(e))>0&&(e=e<0?0-_:_)}}}{const m=e<0?u:c,g=n[m];st(g,`No panel constraints found for index ${m}`);const{collapsedSize:y=0,collapsible:S,minSize:w=0}=g;if(S){const x=t[m];if(st(x!=null,`Previous layout not found for panel index ${m}`),la(x,w)){const _=x-y;Xl(_,Math.abs(e))>0&&(e=e<0?0-_:_)}}}}{const m=e<0?1:-1;let g=e<0?c:u,y=0;for(;;){const w=t[g];st(w!=null,`Previous layout not found for panel index ${g}`);const _=Uc({panelConstraints:n,panelIndex:g,size:100})-w;if(y+=_,g+=m,g<0||g>=n.length)break}const S=Math.min(Math.abs(e),Math.abs(y));e=e<0?0-S:S}{let g=e<0?u:c;for(;g>=0&&g<n.length;){const y=Math.abs(e)-Math.abs(f),S=t[g];st(S!=null,`Previous layout not found for panel index ${g}`);const w=S-y,x=Uc({panelConstraints:n,panelIndex:g,size:w});if(!la(S,x)&&(f+=S-x,i[g]=x,f.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?g--:g++}}if(Pne(a,i))return a;{const m=e<0?c:u,g=t[m];st(g!=null,`Previous layout not found for panel index ${m}`);const y=g+f,S=Uc({panelConstraints:n,panelIndex:m,size:y});if(i[m]=S,!la(S,y)){let w=y-S,_=e<0?c:u;for(;_>=0&&_<n.length;){const k=i[_];st(k!=null,`Previous layout not found for panel index ${_}`);const A=k+w,R=Uc({panelConstraints:n,panelIndex:_,size:A});if(la(k,R)||(w-=R-k,i[_]=R),la(w,0))break;e>0?_--:_++}}}const h=i.reduce((m,g)=>g+m,0);return la(h,100)?i:a}function Dne({layout:e,panelsArray:t,pivotIndices:n}){let r=0,a=100,s=0,i=0;const u=n[0];st(u!=null,"No pivot index found"),t.forEach((m,g)=>{const{constraints:y}=m,{maxSize:S=100,minSize:w=0}=y;g===u?(r=w,a=S):(s+=w,i+=S)});const c=Math.min(a,100-s),f=Math.max(r,100-i),h=e[u];return{valueMax:c,valueMin:f,valueNow:h}}function Hh(e,t=document){return Array.from(t.querySelectorAll(`[${Cn.resizeHandleId}][data-panel-group-id="${e}"]`))}function KU(e,t,n=document){const a=Hh(e,n).findIndex(s=>s.getAttribute(Cn.resizeHandleId)===t);return a??null}function YU(e,t,n){const r=KU(e,t,n);return r!=null?[r,r+1]:[-1,-1]}function ZU(e,t=document){var n;if(t instanceof HTMLElement&&(t==null||(n=t.dataset)===null||n===void 0?void 0:n.panelGroupId)==e)return t;const r=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function vv(e,t=document){const n=t.querySelector(`[${Cn.resizeHandleId}="${e}"]`);return n||null}function Lne(e,t,n,r=document){var a,s,i,u;const c=vv(t,r),f=Hh(e,r),h=c?f.indexOf(c):-1,m=(a=(s=n[h])===null||s===void 0?void 0:s.id)!==null&&a!==void 0?a:null,g=(i=(u=n[h+1])===null||u===void 0?void 0:u.id)!==null&&i!==void 0?i:null;return[m,g]}function Une({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:a,panelGroupElement:s,setLayout:i}){E.useRef({didWarnAboutMissingResizeHandle:!1}),$l(()=>{if(!s)return;const u=Hh(n,s);for(let c=0;c<a.length-1;c++){const{valueMax:f,valueMin:h,valueNow:m}=Dne({layout:r,panelsArray:a,pivotIndices:[c,c+1]}),g=u[c];if(g!=null){const y=a[c];st(y,`No panel data found for index "${c}"`),g.setAttribute("aria-controls",y.id),g.setAttribute("aria-valuemax",""+Math.round(f)),g.setAttribute("aria-valuemin",""+Math.round(h)),g.setAttribute("aria-valuenow",m!=null?""+Math.round(m):"")}}return()=>{u.forEach((c,f)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[n,r,a,s]),E.useEffect(()=>{if(!s)return;const u=t.current;st(u,"Eager values not found");const{panelDataArray:c}=u,f=ZU(n,s);st(f!=null,`No group found for id "${n}"`);const h=Hh(n,s);st(h,`No resize handles found for group id "${n}"`);const m=h.map(g=>{const y=g.getAttribute(Cn.resizeHandleId);st(y,"Resize handle element has no handle id attribute");const[S,w]=Lne(n,y,c,s);if(S==null||w==null)return()=>{};const x=_=>{if(!_.defaultPrevented)switch(_.key){case"Enter":{_.preventDefault();const k=c.findIndex(A=>A.id===S);if(k>=0){const A=c[k];st(A,`No panel data found for index ${k}`);const R=r[k],{collapsedSize:N=0,collapsible:O,minSize:T=0}=A.constraints;if(R!=null&&O){const P=fh({delta:la(R,N)?T-N:N-R,initialLayout:r,panelConstraints:c.map(L=>L.constraints),pivotIndices:YU(n,y,s),prevLayout:r,trigger:"keyboard"});r!==P&&i(P)}}break}}};return g.addEventListener("keydown",x),()=>{g.removeEventListener("keydown",x)}});return()=>{m.forEach(g=>g())}},[s,e,t,n,r,a,i])}function a6(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function XU(e,t){const n=e==="horizontal",{x:r,y:a}=mv(t);return n?r:a}function jne(e,t,n,r,a){const s=n==="horizontal",i=vv(t,a);st(i,`No resize handle element found for id "${t}"`);const u=i.getAttribute(Cn.groupId);st(u,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=r;const f=XU(n,e),h=ZU(u,a);st(h,`No group element found for id "${u}"`);const m=h.getBoundingClientRect(),g=s?m.width:m.height;return(f-c)/g*100}function zne(e,t,n,r,a,s){if(zU(e)){const i=n==="horizontal";let u=0;e.shiftKey?u=100:a!=null?u=a:u=10;let c=0;switch(e.key){case"ArrowDown":c=i?0:u;break;case"ArrowLeft":c=i?-u:0;break;case"ArrowRight":c=i?u:0;break;case"ArrowUp":c=i?0:-u;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return r==null?0:jne(e,t,n,r,s)}function Fne({panelDataArray:e}){const t=Array(e.length),n=e.map(s=>s.constraints);let r=0,a=100;for(let s=0;s<e.length;s++){const i=n[s];st(i,`Panel constraints not found for index ${s}`);const{defaultSize:u}=i;u!=null&&(r++,t[s]=u,a-=u)}for(let s=0;s<e.length;s++){const i=n[s];st(i,`Panel constraints not found for index ${s}`);const{defaultSize:u}=i;if(u!=null)continue;const c=e.length-r,f=a/c;r++,t[s]=f,a-=f}return t}function hc(e,t,n){t.forEach((r,a)=>{const s=e[a];st(s,`Panel data not found for index ${a}`);const{callbacks:i,constraints:u,id:c}=s,{collapsedSize:f=0,collapsible:h}=u,m=n[c];if(m==null||r!==m){n[c]=r;const{onCollapse:g,onExpand:y,onResize:S}=i;S&&S(r,m),h&&(g||y)&&(y&&(m==null||vo(m,f))&&!vo(r,f)&&y(),g&&(m==null||!vo(m,f))&&vo(r,f)&&g())}})}function fg(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function $ne({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:a,precision:s=3}){const i=n[a];let u;return i==null?u=e!=null?e.toPrecision(s):"1":r.length===1?u="1":u=i.toPrecision(s),{flexBasis:0,flexGrow:u,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function Bne(e,t=10){let n=null;return(...a)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...a)},t)}}function s6(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function QU(e){return`react-resizable-panels:${e}`}function JU(e){return e.map(t=>{const{constraints:n,id:r,idIsFromProps:a,order:s}=t;return a?r:s?`${s}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function ej(e,t){try{const n=QU(e),r=t.getItem(n);if(r){const a=JSON.parse(r);if(typeof a=="object"&&a!=null)return a}}catch{}return null}function Hne(e,t,n){var r,a;const s=(r=ej(e,n))!==null&&r!==void 0?r:{},i=JU(t);return(a=s[i])!==null&&a!==void 0?a:null}function qne(e,t,n,r,a){var s;const i=QU(e),u=JU(t),c=(s=ej(e,a))!==null&&s!==void 0?s:{};c[u]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{a.setItem(i,JSON.stringify(c))}catch(f){console.error(f)}}function o6({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((s,i)=>s+i,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(s=>`${s}%`).join(", ")}`);if(!la(r,100)&&n.length>0)for(let s=0;s<t.length;s++){const i=n[s];st(i!=null,`No layout data found for index ${s}`);const u=100/r*i;n[s]=u}let a=0;for(let s=0;s<t.length;s++){const i=n[s];st(i!=null,`No layout data found for index ${s}`);const u=Uc({panelConstraints:t,panelIndex:s,size:i});i!=u&&(a+=i-u,n[s]=u)}if(!la(a,0))for(let s=0;s<t.length;s++){const i=n[s];st(i!=null,`No layout data found for index ${s}`);const u=i+a,c=Uc({panelConstraints:t,panelIndex:s,size:u});if(i!==c&&(a-=c-i,n[s]=c,la(a,0)))break}return n}const Vne=100,hh={getItem:e=>(s6(hh),hh.getItem(e)),setItem:(e,t)=>{s6(hh),hh.setItem(e,t)}},i6={};function tj({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:a,id:s=null,onLayout:i=null,keyboardResizeBy:u=null,storage:c=hh,style:f,tagName:h="div",...m}){const g=Ek(s),y=E.useRef(null),[S,w]=E.useState(null),[x,_]=E.useState([]),k=Mne(),A=E.useRef({}),R=E.useRef(new Map),N=E.useRef(0),O=E.useRef({autoSaveId:e,direction:r,dragState:S,id:g,keyboardResizeBy:u,onLayout:i,storage:c}),T=E.useRef({layout:x,panelDataArray:[],panelDataArrayChanged:!1});E.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),E.useImperativeHandle(a,()=>({getId:()=>O.current.id,getLayout:()=>{const{layout:G}=T.current;return G},setLayout:G=>{const{onLayout:J}=O.current,{layout:oe,panelDataArray:pe}=T.current,K=o6({layout:G,panelConstraints:pe.map(fe=>fe.constraints)});a6(oe,K)||(_(K),T.current.layout=K,J&&J(K),hc(pe,K,A.current))}}),[]),$l(()=>{O.current.autoSaveId=e,O.current.direction=r,O.current.dragState=S,O.current.id=g,O.current.onLayout=i,O.current.storage=c}),Une({committedValuesRef:O,eagerValuesRef:T,groupId:g,layout:x,panelDataArray:T.current.panelDataArray,setLayout:_,panelGroupElement:y.current}),E.useEffect(()=>{const{panelDataArray:G}=T.current;if(e){if(x.length===0||x.length!==G.length)return;let J=i6[e];J==null&&(J=Bne(qne,Vne),i6[e]=J);const oe=[...G],pe=new Map(R.current);J(e,oe,pe,x,c)}},[e,x,c]),E.useEffect(()=>{});const P=E.useCallback(G=>{const{onLayout:J}=O.current,{layout:oe,panelDataArray:pe}=T.current;if(G.constraints.collapsible){const K=pe.map(Te=>Te.constraints),{collapsedSize:fe=0,panelSize:ge,pivotIndices:Ee}=kl(pe,G,oe);if(st(ge!=null,`Panel size not found for panel "${G.id}"`),!vo(ge,fe)){R.current.set(G.id,ge);const Ue=Ic(pe,G)===pe.length-1?ge-fe:fe-ge,je=fh({delta:Ue,initialLayout:oe,panelConstraints:K,pivotIndices:Ee,prevLayout:oe,trigger:"imperative-api"});fg(oe,je)||(_(je),T.current.layout=je,J&&J(je),hc(pe,je,A.current))}}},[]),L=E.useCallback((G,J)=>{const{onLayout:oe}=O.current,{layout:pe,panelDataArray:K}=T.current;if(G.constraints.collapsible){const fe=K.map(ke=>ke.constraints),{collapsedSize:ge=0,panelSize:Ee=0,minSize:Te=0,pivotIndices:Ue}=kl(K,G,pe),je=J??Te;if(vo(Ee,ge)){const ke=R.current.get(G.id),Ut=ke!=null&&ke>=je?ke:je,Bn=Ic(K,G)===K.length-1?Ee-Ut:Ut-Ee,Zt=fh({delta:Bn,initialLayout:pe,panelConstraints:fe,pivotIndices:Ue,prevLayout:pe,trigger:"imperative-api"});fg(pe,Zt)||(_(Zt),T.current.layout=Zt,oe&&oe(Zt),hc(K,Zt,A.current))}}},[]),q=E.useCallback(G=>{const{layout:J,panelDataArray:oe}=T.current,{panelSize:pe}=kl(oe,G,J);return st(pe!=null,`Panel size not found for panel "${G.id}"`),pe},[]),j=E.useCallback((G,J)=>{const{panelDataArray:oe}=T.current,pe=Ic(oe,G);return $ne({defaultSize:J,dragState:S,layout:x,panelData:oe,panelIndex:pe})},[S,x]),U=E.useCallback(G=>{const{layout:J,panelDataArray:oe}=T.current,{collapsedSize:pe=0,collapsible:K,panelSize:fe}=kl(oe,G,J);return st(fe!=null,`Panel size not found for panel "${G.id}"`),K===!0&&vo(fe,pe)},[]),H=E.useCallback(G=>{const{layout:J,panelDataArray:oe}=T.current,{collapsedSize:pe=0,collapsible:K,panelSize:fe}=kl(oe,G,J);return st(fe!=null,`Panel size not found for panel "${G.id}"`),!K||Xl(fe,pe)>0},[]),Z=E.useCallback(G=>{const{panelDataArray:J}=T.current;J.push(G),J.sort((oe,pe)=>{const K=oe.order,fe=pe.order;return K==null&&fe==null?0:K==null?-1:fe==null?1:K-fe}),T.current.panelDataArrayChanged=!0,k()},[k]);$l(()=>{if(T.current.panelDataArrayChanged){T.current.panelDataArrayChanged=!1;const{autoSaveId:G,onLayout:J,storage:oe}=O.current,{layout:pe,panelDataArray:K}=T.current;let fe=null;if(G){const Ee=Hne(G,K,oe);Ee&&(R.current=new Map(Object.entries(Ee.expandToSizes)),fe=Ee.layout)}fe==null&&(fe=Fne({panelDataArray:K}));const ge=o6({layout:fe,panelConstraints:K.map(Ee=>Ee.constraints)});a6(pe,ge)||(_(ge),T.current.layout=ge,J&&J(ge),hc(K,ge,A.current))}}),$l(()=>{const G=T.current;return()=>{G.layout=[]}},[]);const se=E.useCallback(G=>{let J=!1;const oe=y.current;return oe&&window.getComputedStyle(oe,null).getPropertyValue("direction")==="rtl"&&(J=!0),function(K){K.preventDefault();const fe=y.current;if(!fe)return()=>null;const{direction:ge,dragState:Ee,id:Te,keyboardResizeBy:Ue,onLayout:je}=O.current,{layout:ke,panelDataArray:Ut}=T.current,{initialLayout:Me}=Ee??{},Bn=YU(Te,G,fe);let Zt=zne(K,G,ge,Ee,Ue,fe);const Dn=ge==="horizontal";Dn&&J&&(Zt=-Zt);const fr=Ut.map(Fo=>Fo.constraints),Er=fh({delta:Zt,initialLayout:Me??ke,panelConstraints:fr,pivotIndices:Bn,prevLayout:ke,trigger:zU(K)?"keyboard":"mouse-or-touch"}),os=!fg(ke,Er);(FU(K)||$U(K))&&N.current!=Zt&&(N.current=Zt,!os&&Zt!==0?Dn?rw(G,Zt<0?HU:qU):rw(G,Zt<0?VU:WU):rw(G,0)),os&&(_(Er),T.current.layout=Er,je&&je(Er),hc(Ut,Er,A.current))}},[]),B=E.useCallback((G,J)=>{const{onLayout:oe}=O.current,{layout:pe,panelDataArray:K}=T.current,fe=K.map(ke=>ke.constraints),{panelSize:ge,pivotIndices:Ee}=kl(K,G,pe);st(ge!=null,`Panel size not found for panel "${G.id}"`);const Ue=Ic(K,G)===K.length-1?ge-J:J-ge,je=fh({delta:Ue,initialLayout:pe,panelConstraints:fe,pivotIndices:Ee,prevLayout:pe,trigger:"imperative-api"});fg(pe,je)||(_(je),T.current.layout=je,oe&&oe(je),hc(K,je,A.current))},[]),X=E.useCallback((G,J)=>{const{layout:oe,panelDataArray:pe}=T.current,{collapsedSize:K=0,collapsible:fe}=J,{collapsedSize:ge=0,collapsible:Ee,maxSize:Te=100,minSize:Ue=0}=G.constraints,{panelSize:je}=kl(pe,G,oe);je!=null&&(fe&&Ee&&vo(je,K)?vo(K,ge)||B(G,ge):je<Ue?B(G,Ue):je>Te&&B(G,Te))},[B]),re=E.useCallback((G,J)=>{const{direction:oe}=O.current,{layout:pe}=T.current;if(!y.current)return;const K=vv(G,y.current);st(K,`Drag handle element not found for id "${G}"`);const fe=XU(oe,J);w({dragHandleId:G,dragHandleRect:K.getBoundingClientRect(),initialCursorPosition:fe,initialLayout:pe})},[]),de=E.useCallback(()=>{w(null)},[]),we=E.useCallback(G=>{const{panelDataArray:J}=T.current,oe=Ic(J,G);oe>=0&&(J.splice(oe,1),delete A.current[G.id],T.current.panelDataArrayChanged=!0,k())},[k]),z=E.useMemo(()=>({collapsePanel:P,direction:r,dragState:S,expandPanel:L,getPanelSize:q,getPanelStyle:j,groupId:g,isPanelCollapsed:U,isPanelExpanded:H,reevaluatePanelConstraints:X,registerPanel:Z,registerResizeHandle:se,resizePanel:B,startDragging:re,stopDragging:de,unregisterPanel:we,panelGroupElement:y.current}),[P,S,r,L,q,j,g,U,H,X,Z,se,B,re,de,we]),W={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return E.createElement(pv.Provider,{value:z},E.createElement(h,{...m,children:t,className:n,id:s,ref:y,style:{...W,...f},[Cn.group]:"",[Cn.groupDirection]:r,[Cn.groupId]:g}))}const nj=E.forwardRef((e,t)=>E.createElement(tj,{...e,forwardedRef:t}));tj.displayName="PanelGroup";nj.displayName="forwardRef(PanelGroup)";function Ic(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function kl(e,t,n){const r=Ic(e,t),s=r===e.length-1?[r-1,r]:[r,r+1],i=n[r];return{...t.constraints,panelSize:i,pivotIndices:s}}function Wne({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){E.useEffect(()=>{if(e||n==null||r==null)return;const a=vv(t,r);if(a==null)return;const s=i=>{if(!i.defaultPrevented)switch(i.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{i.preventDefault(),n(i);break}case"F6":{i.preventDefault();const u=a.getAttribute(Cn.groupId);st(u,`No group element found for id "${u}"`);const c=Hh(u,r),f=KU(u,t,r);st(f!==null,`No resize element found for id "${t}"`);const h=i.shiftKey?f>0?f-1:c.length-1:f+1<c.length?f+1:0;c[h].focus();break}}};return a.addEventListener("keydown",s),()=>{a.removeEventListener("keydown",s)}},[r,e,t,n])}function rj({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:a,onBlur:s,onClick:i,onDragging:u,onFocus:c,onPointerDown:f,onPointerUp:h,style:m={},tabIndex:g=0,tagName:y="div",...S}){var w,x;const _=E.useRef(null),k=E.useRef({onClick:i,onDragging:u,onPointerDown:f,onPointerUp:h});E.useEffect(()=>{k.current.onClick=i,k.current.onDragging=u,k.current.onPointerDown=f,k.current.onPointerUp=h});const A=E.useContext(pv);if(A===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:R,groupId:N,registerResizeHandle:O,startDragging:T,stopDragging:P,panelGroupElement:L}=A,q=Ek(a),[j,U]=E.useState("inactive"),[H,Z]=E.useState(!1),[se,B]=E.useState(null),X=E.useRef({state:j});$l(()=>{X.current.state=j}),E.useEffect(()=>{if(n)B(null);else{const z=O(q);B(()=>z)}},[n,q,O]);const re=(w=r?.coarse)!==null&&w!==void 0?w:15,de=(x=r?.fine)!==null&&x!==void 0?x:5;E.useEffect(()=>{if(n||se==null)return;const z=_.current;st(z,"Element ref not attached");let W=!1;return One(q,z,R,{coarse:re,fine:de},(J,oe,pe)=>{if(!oe){U("inactive");return}switch(J){case"down":{U("drag"),W=!1,st(pe,'Expected event to be defined for "down" action'),T(q,pe);const{onDragging:K,onPointerDown:fe}=k.current;K?.(!0),fe?.();break}case"move":{const{state:K}=X.current;W=!0,K!=="drag"&&U("hover"),st(pe,'Expected event to be defined for "move" action'),se(pe);break}case"up":{U("hover"),P();const{onClick:K,onDragging:fe,onPointerUp:ge}=k.current;fe?.(!1),ge?.(),W||K?.();break}}})},[re,R,n,de,O,q,se,T,P]),Wne({disabled:n,handleId:q,resizeHandler:se,panelGroupElement:L});const we={touchAction:"none",userSelect:"none"};return E.createElement(y,{...S,children:e,className:t,id:a,onBlur:()=>{Z(!1),s?.()},onFocus:()=>{Z(!0),c?.()},ref:_,role:"separator",style:{...we,...m},tabIndex:g,[Cn.groupDirection]:R,[Cn.groupId]:N,[Cn.resizeHandle]:"",[Cn.resizeHandleActive]:j==="drag"?"pointer":H?"keyboard":void 0,[Cn.resizeHandleEnabled]:!n,[Cn.resizeHandleId]:q,[Cn.resizeHandleState]:j})}rj.displayName="PanelResizeHandle";function l6({className:e,...t}){return C.jsx(nj,{className:Pe("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t})}const Vf=jU;function sw({className:e,...t}){return C.jsx(rj,{className:Pe("relative w-px shrink-0 bg-line transition-colors cursor-col-resize","after:absolute after:inset-y-0 after:left-1/2 after:w-1.5 after:-translate-x-1/2","data-[resize-handle-state=hover]:bg-line-strong","data-[resize-handle-state=drag]:bg-accent","focus-visible:outline-none focus-visible:bg-accent",e),...t})}function Gne({className:e,children:t}){const n=E.useRef(null),[r,a]=E.useState(null);return E.useEffect(()=>{const s=n.current?.parentElement;if(!s||typeof ResizeObserver>"u")return;const i=()=>{const c=Math.floor(s.getBoundingClientRect().width);a(f=>f===c?f:c)};i();const u=new ResizeObserver(i);return u.observe(s),()=>u.disconnect()},[]),C.jsx("div",{ref:n,className:e,style:r===null?void 0:{width:`${r}px`},children:t})}const aj=E.createContext(null);function Kne(e,t){return e==="list"?{size:62,max:78}:e==="detail"?{size:26,max:45}:{size:t==="compact"?43:33,max:58}}function F6e(){return E.useContext(aj)}function $6e({nav:e,list:t,reading:n,intelligence:r,intelligenceOpen:a=!0,hasThread:s=!0,density:i="comfortable",listBias:u="balanced",header:c,topBar:f,overlay:h,skeleton:m,isLoading:g=!1,initialWidth:y,navOpen:S,onOpenNav:w,onCloseNav:x}){const[_,k]=Jte(y),A=Qte(k??0),[R,N]=E.useState(!1),O=A.nav,T=O&&!R,P=A.reading&&!!n,L=A.intelligence,[q,j]=E.useState(!1),U=S!==void 0,H=U?S:q,Z=()=>{U||j(!0),w?.()},se=()=>{U||j(!1),x?.()},B=L&&a&&s&&!!r,re={panes:A,containerWidth:k,showNavPane:O,openNav:Z,navCollapsed:R,toggleNav:()=>{if(!O){H?se():Z();return}N(W=>!W)},showReadingPane:P,showIntelligencePane:L},de=Kne(u,i),we=C.jsxs(l6,{direction:"horizontal",className:"min-h-0 flex-1",children:[C.jsx(Vf,{id:"list",order:1,defaultSize:P?de.size:100,minSize:22,maxSize:P?de.max:100,className:"min-w-0",children:t}),P&&C.jsxs(C.Fragment,{children:[C.jsx(sw,{}),C.jsx(Vf,{id:"reading",order:2,minSize:29,className:"min-w-0",children:C.jsx(Gne,{className:"h-full",children:n})})]}),B&&C.jsxs(C.Fragment,{children:[C.jsx(sw,{}),C.jsx(Vf,{id:"intelligence",order:3,defaultSize:25,minSize:18,maxSize:39,className:"min-w-0",children:r})]})]},P?"list-reading":"list-only"),z=C.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[!O&&c&&C.jsx("div",{className:"shrink-0",children:c}),we]});return C.jsx(aj.Provider,{value:re,children:C.jsx("div",{ref:_,className:"safe-area-frame @container flex h-dvh w-full flex-col overflow-hidden bg-canvas font-sans text-fg",children:g&&m?m:C.jsxs(C.Fragment,{children:[f,T?C.jsxs(l6,{direction:"horizontal",className:"min-h-0 flex-1",children:[C.jsx(Vf,{id:"nav",order:1,defaultSize:17,minSize:12,maxSize:24,className:"min-w-0",children:e}),C.jsx(sw,{}),C.jsx(Vf,{id:"content",order:2,className:"flex min-w-0 flex-col",children:z})]}):z,!O&&C.jsx(n3,{open:H,onClose:se,title:"Folders",anchor:"left",children:e}),h]})})})}const Yne="Semantic search is off on this instance.",Zne="On, it stores a vector for every message, which is what the Organize widen to similar mail and semantic filters read.",Xne="remit semantic on",Qne=`${Yne} ${Zne} Run '${Xne}' on the server.`,Jne={neutral:"bg-surface-sunken text-fg-muted",accent:"bg-accent-2-soft text-accent-2",positive:"bg-surface-sunken text-positive",warning:"bg-surface-sunken text-warning",danger:"bg-danger-soft text-danger"},ere={neutral:"bg-fg-subtle",accent:"bg-accent-2",positive:"bg-positive",warning:"bg-warning",danger:"bg-danger"};function a3({tone:e="neutral",dot:t,className:n,children:r,...a}){return C.jsxs("span",{className:Pe("inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-2xs font-medium",Jne[e],n),...a,children:[t&&C.jsx("span",{className:Pe("size-1.5 rounded-full",ere[e])}),r]})}function tre({id:e,reason:t,nudged:n,className:r}){return C.jsxs(C.Fragment,{children:[C.jsx("p",{id:e,className:Pe(r,!n&&"sr-only"),children:t}),C.jsx("span",{role:"status","aria-live":"polite",className:"sr-only",children:n?t:""})]})}const nre={sm:"min-h-9 px-3 text-xs",md:"min-h-11 px-4 text-sm"};function v0({name:e,options:t,value:n,onChange:r,size:a="md","aria-label":s}){const i=t.findIndex(u=>u.value===n);return C.jsx("div",{role:"radiogroup","aria-label":s,className:"inline-flex rounded-md border border-line bg-surface-sunken p-0.5",children:t.map((u,c)=>{const f=u.value===n,h=!f&&c<t.length-1&&i!==c+1;return C.jsxs("label",{className:Pe("relative flex cursor-pointer items-center justify-center rounded-[5px] font-medium transition-colors",nre[a],f?"bg-surface text-fg shadow":"text-fg-muted hover:text-fg",h&&"after:pointer-events-none after:absolute after:right-0 after:top-1/4 after:h-1/2 after:w-px after:bg-line"),children:[C.jsx("input",{type:"radio",name:e,value:u.value,checked:f,onChange:()=>r(u.value),className:"sr-only"}),u.label]},u.value)})})}function rre(e){return e.target!==e.currentTarget?!1:e.key==="Enter"||e.key===" "}function sj({className:e}){return C.jsx("svg",{viewBox:"0 0 12 12",className:e,fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:C.jsx("path",{d:"M2 4l4 4 4-4"})})}function u6({className:e}){return C.jsx("svg",{viewBox:"0 0 12 12",className:e,fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:C.jsx("path",{d:"M3 3l6 6M9 3l-6 6"})})}const yv=E.createContext(null);function B6e({children:e,hasSheet:t,open:n,onOpenChange:r}){const[a,s]=E.useState(!1),[i,u]=E.useState(!1),c=n??a,f=E.useCallback(m=>{n===void 0&&s(m),r?.(m)},[n,r]),h=E.useMemo(()=>({open:c,setOpen:f,active:i,setActive:u,hasSheet:t}),[c,f,i,t]);return C.jsx(yv.Provider,{value:h,children:e})}function H6e({children:e}){return C.jsx(yv.Provider,{value:null,children:e})}function q6e(){const e=E.useContext(yv);if(!e?.hasSheet)return null;const{open:t,active:n,setOpen:r}=e;return C.jsx("button",{type:"button",onClick:()=>r(!t),"aria-expanded":t,"aria-label":t?"Collapse filters":"Expand filters",title:"Filters",className:Pe("flex size-6 shrink-0 items-center justify-center rounded transition-colors hover:bg-surface-sunken",n?"text-accent-2":"text-fg-subtle hover:text-fg-muted"),children:C.jsx(sj,{className:Pe("size-3 transition-transform duration-200",t?"rotate-180":"rotate-0")})})}function V6e({categories:e,filters:t,sources:n,sourcesNote:r,selectedCategory:a,activeFilters:s,expanded:i,onSelectCategory:u,onSelectSource:c,onToggleFilter:f,onClear:h,onExpandedChange:m,hideChrome:g=!1,children:y}){const S=E.useContext(yv),w=i!==void 0,[x,_]=E.useState(!1),k=S?.open??(w?i:x),A=E.useCallback(re=>{w||_(re),S?.setOpen(re),m?.(re)},[w,m,S]),R=e[0],N=R!==void 0&&a===R.id,O=n?.[0],T=n?.find(re=>re.active),P=O===void 0||T?.id===O.id,L=!N||s.size>0||!P&&!!T,q=S?.setActive;E.useEffect(()=>{if(q)return q(L),()=>q(!1)},[L,q]);const j=E.useCallback(()=>{O&&c?.(O.id)},[O,c]),U=E.useCallback(()=>{h(),j()},[h,j]),H=e.find(re=>re.id===a),Z=L?C.jsxs(C.Fragment,{children:[!P&&T&&C.jsx("span",{className:"inline-flex items-center rounded-full border border-accent-2 bg-accent-2-soft px-2 py-0.5 text-2xs font-medium text-accent-2",children:T.label}),!N&&H&&C.jsx(a3,{tone:H.tone??"neutral",children:H.label}),t.filter(re=>s.has(re.id)).map(re=>C.jsx("span",{className:"inline-flex items-center rounded-full border border-accent-2 bg-accent-2-soft px-2 py-0.5 text-2xs font-medium text-accent-2",children:re.label},re.id))]}):C.jsx("span",{className:"text-2xs text-fg-subtle",children:"Filters"}),se=n&&n.length>1&&C.jsxs("fieldset",{"aria-label":"Accounts",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-2 pt-2",children:[n.map(re=>C.jsxs("button",{type:"button","aria-pressed":!!re.active,onClick:()=>c?.(re.id),className:Pe("flex items-center gap-1 rounded-full border px-2.5 py-0.5 text-2xs transition-colors",re.active?"border-accent-2 bg-accent-2-soft font-medium text-accent-2":"border-line text-fg-muted hover:border-line-strong"),children:[re.label,re.count!=null&&re.count>0&&C.jsx("span",{className:"tabular-nums opacity-70",children:re.count})]},re.id)),r&&C.jsx("span",{className:"ml-auto shrink-0 text-2xs text-fg-subtle",children:r})]}),B=C.jsx("fieldset",{"aria-label":"Categories",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-1.5 pt-1.5",children:e.map(re=>{const de=a===re.id;return C.jsx("button",{type:"button","aria-pressed":de,onClick:()=>u(re.id),className:Pe("shrink-0 rounded-full transition-opacity",de?"opacity-100 ring-1 ring-accent-2":"opacity-60 hover:opacity-100"),children:C.jsx(a3,{tone:re.tone??"neutral",children:re.label})},re.id)})}),X=C.jsxs("fieldset",{"aria-label":"Attributes",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-2 pt-1.5",children:[t.map(re=>{const de=s.has(re.id);return C.jsx("button",{type:"button","aria-pressed":de,onClick:()=>f(re.id),className:Pe("shrink-0 rounded-full border px-2.5 py-0.5 text-2xs transition-colors",de?"border-accent-2 bg-accent-2-soft font-medium text-accent-2":"border-line text-fg-muted hover:border-line-strong"),children:re.label},re.id)}),L&&C.jsxs("button",{type:"button",onClick:U,className:"ml-auto flex items-center gap-1 px-1 text-2xs text-fg-subtle hover:text-fg-muted",children:[C.jsx(u6,{className:"size-3"}),"Clear"]})]});return C.jsxs("div",{className:"flex h-full w-full flex-col overflow-hidden",children:[!g&&!S&&C.jsxs("div",{role:"button",tabIndex:0,"aria-expanded":k,"aria-label":k?"Collapse filters":"Expand filters",onClick:()=>A(!k),onKeyDown:re=>{rre(re)&&(re.preventDefault(),A(!k))},className:"flex h-section-row w-full shrink-0 cursor-pointer items-center gap-1.5 overflow-x-hidden border-b border-line bg-surface-sunken px-row-inset text-left hover:bg-surface",children:[Z,L&&C.jsx("button",{type:"button","aria-label":"Clear filters",onClick:re=>{re.stopPropagation(),U()},className:"flex size-6 items-center justify-center text-fg-subtle hover:text-fg-muted",children:C.jsx(u6,{className:"size-3"})}),C.jsx(sj,{className:Pe("ml-auto size-3 shrink-0 text-fg-subtle transition-transform duration-200",k?"rotate-180":"rotate-0")})]}),k&&!g&&C.jsxs("div",{className:"shrink-0",children:[se,B,X]}),C.jsx("div",{className:"flex-1 overflow-y-auto",children:y})]})}const s3={Default:"bg-fg-subtle",Red:"bg-red-500",Orange:"bg-orange-500",Yellow:"bg-yellow-500",Green:"bg-green-500",Teal:"bg-teal-500",Blue:"bg-blue-500",Purple:"bg-purple-500",Gray:"bg-gray-500"},W6e=["Default","Red","Orange","Yellow","Green","Teal","Blue","Purple","Gray"],are=e=>Object.hasOwn(s3,e);function sre({label:e,onRemove:t,className:n}){const r=are(e.color)?s3[e.color]:s3.Default;return C.jsxs("span",{className:Pe("inline-flex items-center gap-1 rounded-full bg-surface-sunken px-2 py-0.5 text-2xs font-medium text-fg-muted shrink-0",n),children:[C.jsx("span",{className:Pe("size-1.5 shrink-0 rounded-full",r)}),C.jsx("span",{className:"truncate",children:e.name}),t&&C.jsx("button",{type:"button",onClick:()=>t(e.labelId),"aria-label":`Remove label ${e.name}`,className:"ml-0.5 rounded-full text-fg-subtle hover:text-fg",children:"×"})]})}function c6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ore(e){if(Array.isArray(e))return e}function ire(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,i,u=[],c=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(c=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(h){f=!0,a=h}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(f)throw a}}return u}}function lre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ure(e,t){return ore(e)||ire(e,t)||cre(e,t)||lre()}function cre(e,t){if(e){if(typeof e=="string")return c6(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c6(e,t):void 0}}const oj=Object.entries,d6=Object.setPrototypeOf,dre=Object.isFrozen,fre=Object.getPrototypeOf,hre=Object.getOwnPropertyDescriptor;let lr=Object.freeze,cr=Object.seal,Rc=Object.create,ij=typeof Reflect<"u"&&Reflect,o3=ij.apply,i3=ij.construct;lr||(lr=function(t){return t});cr||(cr=function(t){return t});o3||(o3=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),s=2;s<r;s++)a[s-2]=arguments[s];return t.apply(n,a)});i3||(i3=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return new t(...r)});const pc=Mn(Array.prototype.forEach),pre=Mn(Array.prototype.lastIndexOf),f6=Mn(Array.prototype.pop),mc=Mn(Array.prototype.push),mre=Mn(Array.prototype.splice),Ni=Array.isArray,ph=Mn(String.prototype.toLowerCase),ow=Mn(String.prototype.toString),h6=Mn(String.prototype.match),Wf=Mn(String.prototype.replace),p6=Mn(String.prototype.indexOf),gre=Mn(String.prototype.trim),vre=Mn(Number.prototype.toString),yre=Mn(Boolean.prototype.toString),m6=typeof BigInt>"u"?null:Mn(BigInt.prototype.toString),g6=typeof Symbol>"u"?null:Mn(Symbol.prototype.toString),Zn=Mn(Object.prototype.hasOwnProperty),Gf=Mn(Object.prototype.toString),Kn=Mn(RegExp.prototype.test),Al=bre(TypeError);function Mn(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return o3(e,t,r)}}function bre(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return i3(e,n)}}function bt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ph;if(d6&&d6(e,null),!Ni(t))return e;let r=t.length;for(;r--;){let a=t[r];if(typeof a=="string"){const s=n(a);s!==a&&(dre(t)||(t[r]=s),a=s)}e[a]=!0}return e}function Sre(e){for(let t=0;t<e.length;t++)Zn(e,t)||(e[t]=null);return e}function yr(e){const t=Rc(null);for(const r of oj(e)){var n=ure(r,2);const a=n[0],s=n[1];Zn(e,a)&&(Ni(s)?t[a]=Sre(s):s&&typeof s=="object"&&s.constructor===Object?t[a]=yr(s):t[a]=s)}return t}function wre(e){switch(typeof e){case"string":return e;case"number":return vre(e);case"boolean":return yre(e);case"bigint":return m6?m6(e):"0";case"symbol":return g6?g6(e):"Symbol()";case"undefined":return Gf(e);case"function":case"object":{if(e===null)return Gf(e);const t=e,n=Ba(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:Gf(r)}return Gf(e)}default:return Gf(e)}}function Ba(e,t){for(;e!==null;){const r=hre(e,t);if(r){if(r.get)return Mn(r.get);if(typeof r.value=="function")return Mn(r.value)}e=fre(e)}function n(){return null}return n}function xre(e){try{return Kn(e,""),!0}catch{return!1}}const v6=lr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),iw=lr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),lw=lr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Cre=lr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),uw=lr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ere=lr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),y6=lr(["#text"]),b6=lr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),cw=lr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),S6=lr(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),hg=lr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),_re=cr(/{{[\w\W]*|^[\w\W]*}}/g),kre=cr(/<%[\w\W]*|^[\w\W]*%>/g),Are=cr(/\${[\w\W]*/g),Ire=cr(/^data-[\-\w.\u00B7-\uFFFF]+$/),Rre=cr(/^aria-[\-\w]+$/),w6=cr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Tre=cr(/^(?:\w+script|data):/i),Ore=cr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Nre=cr(/^html$/i),Mre=cr(/^[a-z][.\w]*(-[.\w]+)+$/i),x6=cr(/<[/\w!]/g),C6=cr(/<[/\w]/g),Pre=cr(/<\/no(script|embed|frames)/i),Dre=cr(/\/>/i),oa={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Lre=function(){return typeof window>"u"?null:window},Ure=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const a="data-tt-policy-suffix";n&&n.hasAttribute(a)&&(r=n.getAttribute(a));const s="dompurify"+(r?"#"+r:"");try{return t.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},E6=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},xi=function(t,n,r,a){return Zn(t,n)&&Ni(t[n])?bt(a.base?yr(a.base):{},t[n],a.transform):r};function lj(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lre();const t=me=>lj(me);if(t.version="3.4.13",t.removed=[],!e||!e.document||e.document.nodeType!==oa.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,a=r.currentScript;e.DocumentFragment;const s=e.HTMLTemplateElement,i=e.Node,u=e.Element,c=e.NodeFilter,f=e.NamedNodeMap;f===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const h=e.DOMParser,m=e.trustedTypes,g=u.prototype,y=Ba(g,"cloneNode"),S=Ba(g,"remove"),w=Ba(g,"nextSibling"),x=Ba(g,"childNodes"),_=Ba(g,"parentNode"),k=Ba(g,"shadowRoot"),A=Ba(g,"attributes"),R=i&&i.prototype?Ba(i.prototype,"nodeType"):null,N=i&&i.prototype?Ba(i.prototype,"nodeName"):null,O=i&&i.prototype?Ba(i.prototype,"ownerDocument"):null;if(typeof s=="function"){const me=n.createElement("template");me.content&&me.content.ownerDocument&&(n=me.content.ownerDocument)}let T,P="",L,q=!1,j=0;const U=function(){if(j>0)throw Al('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},H=function(D){U(),j++;try{return T.createHTML(D)}finally{j--}},Z=function(D){U(),j++;try{return T.createScriptURL(D)}finally{j--}},se=function(){return q||(L=Ure(m,a),q=!0),L},B=n,X=B.implementation,re=B.createNodeIterator,de=B.createDocumentFragment,we=B.getElementsByTagName,z=r.importNode;let W=E6();t.isSupported=typeof oj=="function"&&typeof _=="function"&&X&&X.createHTMLDocument!==void 0;const G=_re,J=kre,oe=Are,pe=Ire,K=Rre,fe=Tre,ge=Ore,Ee=Mre;let Te=w6,Ue=null;const je=bt({},[...v6,...iw,...lw,...uw,...y6]);let ke=null;const Ut=bt({},[...b6,...cw,...S6,...hg]);let Me=Object.seal(Rc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Bn=null,Zt=null;const Dn=Object.seal(Rc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let fr=!0,Er=!0,os=!1,Fo=!0,nn=!1,pt=!0,rn=!1,Mr=!1,La=null,_u=null,ku=!1,$o=!1,Au=!1,is=!1,hr=!0,Ua=!1;const pr="user-content-";let Bd=!0,Iu=!1,Bo={},_r=null;const Ho=bt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let nl=null;const ls=bt({},["audio","video","img","source","image","track"]);let qo=null;const Vo=bt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ru="http://www.w3.org/1998/Math/MathML",rl="http://www.w3.org/2000/svg",Pr="http://www.w3.org/1999/xhtml";let ma=Pr,Hd=!1,Tu=null;const Hp=bt({},[Ru,rl,Pr],ow),qd=lr(["mi","mo","mn","ms","mtext"]);let al=bt({},qd);const Ou=lr(["annotation-xml"]);let Nu=bt({},Ou);const qp=bt({},["title","style","font","a","script"]);let Dr=null;const Ln=["application/xhtml+xml","text/html"],mr="text/html";let Dt=null,us=null;const My=n.createElement("form"),Vp=function(D){return D instanceof RegExp||D instanceof Function},Mu=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(us&&us===D)return;(!D||typeof D!="object")&&(D={}),D=yr(D),Dr=Ln.indexOf(D.PARSER_MEDIA_TYPE)===-1?mr:D.PARSER_MEDIA_TYPE,Dt=Dr==="application/xhtml+xml"?ow:ph,Ue=xi(D,"ALLOWED_TAGS",je,{transform:Dt}),ke=xi(D,"ALLOWED_ATTR",Ut,{transform:Dt}),Tu=xi(D,"ALLOWED_NAMESPACES",Hp,{transform:ow}),qo=xi(D,"ADD_URI_SAFE_ATTR",Vo,{transform:Dt,base:Vo}),nl=xi(D,"ADD_DATA_URI_TAGS",ls,{transform:Dt,base:ls}),_r=xi(D,"FORBID_CONTENTS",Ho,{transform:Dt}),Bn=xi(D,"FORBID_TAGS",yr({}),{transform:Dt}),Zt=xi(D,"FORBID_ATTR",yr({}),{transform:Dt}),Bo=Zn(D,"USE_PROFILES")?D.USE_PROFILES&&typeof D.USE_PROFILES=="object"?yr(D.USE_PROFILES):D.USE_PROFILES:!1,fr=D.ALLOW_ARIA_ATTR!==!1,Er=D.ALLOW_DATA_ATTR!==!1,os=D.ALLOW_UNKNOWN_PROTOCOLS||!1,Fo=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,nn=D.SAFE_FOR_TEMPLATES||!1,pt=D.SAFE_FOR_XML!==!1,rn=D.WHOLE_DOCUMENT||!1,$o=D.RETURN_DOM||!1,Au=D.RETURN_DOM_FRAGMENT||!1,is=D.RETURN_TRUSTED_TYPE||!1,ku=D.FORCE_BODY||!1,hr=D.SANITIZE_DOM!==!1,Ua=D.SANITIZE_NAMED_PROPS||!1,Bd=D.KEEP_CONTENT!==!1,Iu=D.IN_PLACE||!1,Te=xre(D.ALLOWED_URI_REGEXP)?D.ALLOWED_URI_REGEXP:w6,ma=typeof D.NAMESPACE=="string"?D.NAMESPACE:Pr,al=Zn(D,"MATHML_TEXT_INTEGRATION_POINTS")&&D.MATHML_TEXT_INTEGRATION_POINTS&&typeof D.MATHML_TEXT_INTEGRATION_POINTS=="object"?yr(D.MATHML_TEXT_INTEGRATION_POINTS):bt({},qd),Nu=Zn(D,"HTML_INTEGRATION_POINTS")&&D.HTML_INTEGRATION_POINTS&&typeof D.HTML_INTEGRATION_POINTS=="object"?yr(D.HTML_INTEGRATION_POINTS):bt({},Ou);const Q=Zn(D,"CUSTOM_ELEMENT_HANDLING")&&D.CUSTOM_ELEMENT_HANDLING&&typeof D.CUSTOM_ELEMENT_HANDLING=="object"?yr(D.CUSTOM_ELEMENT_HANDLING):Rc(null);if(Me=Rc(null),Zn(Q,"tagNameCheck")&&Vp(Q.tagNameCheck)&&(Me.tagNameCheck=Q.tagNameCheck),Zn(Q,"attributeNameCheck")&&Vp(Q.attributeNameCheck)&&(Me.attributeNameCheck=Q.attributeNameCheck),Zn(Q,"allowCustomizedBuiltInElements")&&typeof Q.allowCustomizedBuiltInElements=="boolean"&&(Me.allowCustomizedBuiltInElements=Q.allowCustomizedBuiltInElements),cr(Me),nn&&(Er=!1),Au&&($o=!0),Bo&&(Ue=bt({},y6),ke=Rc(null),Bo.html===!0&&(bt(Ue,v6),bt(ke,b6)),Bo.svg===!0&&(bt(Ue,iw),bt(ke,cw),bt(ke,hg)),Bo.svgFilters===!0&&(bt(Ue,lw),bt(ke,cw),bt(ke,hg)),Bo.mathMl===!0&&(bt(Ue,uw),bt(ke,S6),bt(ke,hg))),Dn.tagCheck=null,Dn.attributeCheck=null,Zn(D,"ADD_TAGS")&&(typeof D.ADD_TAGS=="function"?Dn.tagCheck=D.ADD_TAGS:Ni(D.ADD_TAGS)&&(Ue===je&&(Ue=yr(Ue)),bt(Ue,D.ADD_TAGS,Dt))),Zn(D,"ADD_ATTR")&&(typeof D.ADD_ATTR=="function"?Dn.attributeCheck=D.ADD_ATTR:Ni(D.ADD_ATTR)&&(ke===Ut&&(ke=yr(ke)),bt(ke,D.ADD_ATTR,Dt))),Zn(D,"ADD_URI_SAFE_ATTR")&&Ni(D.ADD_URI_SAFE_ATTR)&&bt(qo,D.ADD_URI_SAFE_ATTR,Dt),Zn(D,"FORBID_CONTENTS")&&Ni(D.FORBID_CONTENTS)&&(_r===Ho&&(_r=yr(_r)),bt(_r,D.FORBID_CONTENTS,Dt)),Zn(D,"ADD_FORBID_CONTENTS")&&Ni(D.ADD_FORBID_CONTENTS)&&(_r===Ho&&(_r=yr(_r)),bt(_r,D.ADD_FORBID_CONTENTS,Dt)),Bd&&(Ue["#text"]=!0),rn&&bt(Ue,["html","head","body"]),Ue.table&&(bt(Ue,["tbody"]),delete Bn.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw Al('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Al('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const he=T;T=D.TRUSTED_TYPES_POLICY;try{P=H("")}catch(Oe){throw T=he,Oe}}else D.TRUSTED_TYPES_POLICY===null?(T=void 0,P=""):(T===void 0&&(T=se()),T&&typeof P=="string"&&(P=H("")));lr&&lr(D),us=D},Wo=bt({},[...iw,...lw,...Cre]),Pu=bt({},[...uw,...Ere]),Go=function(D,Q,he){return Q.namespaceURI===Pr?D==="svg":Q.namespaceURI===Ru?D==="svg"&&(he==="annotation-xml"||al[he]):!!Wo[D]},Ko=function(D,Q,he){return Q.namespaceURI===Pr?D==="math":Q.namespaceURI===rl?D==="math"&&Nu[he]:!!Pu[D]},sl=function(D,Q,he){return Q.namespaceURI===rl&&!Nu[he]||Q.namespaceURI===Ru&&!al[he]?!1:!Pu[D]&&(qp[D]||!Wo[D])},Yo=function(D){let Q=_(D);(!Q||!Q.tagName)&&(Q={namespaceURI:ma,tagName:"template"});const he=ph(D.tagName),Oe=ph(Q.tagName);return Tu[D.namespaceURI]?D.namespaceURI===rl?Go(he,Q,Oe):D.namespaceURI===Ru?Ko(he,Q,Oe):D.namespaceURI===Pr?sl(he,Q,Oe):!!(Dr==="application/xhtml+xml"&&Tu[D.namespaceURI]):!1},Xt=function(D){mc(t.removed,{element:D});try{_(D).removeChild(D)}catch{if(S(D),!_(D))throw Al("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ol=function(D){ga(D);const Q=x(D);if(Q){const Oe=[];pc(Q,ze=>{mc(Oe,ze)}),pc(Oe,ze=>{try{S(ze)}catch{}})}const he=A(D);if(he)for(let Oe=he.length-1;Oe>=0;--Oe){const ze=he[Oe],Qe=ze&&ze.name;if(typeof Qe=="string")try{D.removeAttribute(Qe)}catch{}}},cs=function(D,Q){try{mc(t.removed,{attribute:Q.getAttributeNode(D),from:Q})}catch{mc(t.removed,{attribute:null,from:Q})}if(Q.removeAttribute(D),D==="is")if($o||Au)try{Xt(Q)}catch{}else try{Q.setAttribute(D,"")}catch{}},Bs=function(D){const Q=A(D);if(Q)for(let he=Q.length-1;he>=0;--he){const Oe=Q[he],ze=Oe&&Oe.name;if(!(typeof ze!="string"||ke[Dt(ze)]))try{D.removeAttribute(ze)}catch{}}},ga=function(D){const Q=[D];for(;Q.length>0;){const he=Q.pop();(R?R(he):he.nodeType)===oa.element&&Bs(he);const ze=x(he);if(ze)for(let Qe=ze.length-1;Qe>=0;--Qe)Q.push(ze[Qe])}},Py=function(D){if(!pt)return;const Q=[D];for(;Q.length>0;){const he=Q.pop(),Oe=R?R(he):he.nodeType;if(Oe===oa.processingInstruction||Oe===oa.comment&&Kn(C6,he.data)){try{S(he)}catch{}continue}if(Oe===oa.element){const Qe=he,Et=Dt(N?N(he):he.nodeName);try{Qe.hasAttribute&&Qe.hasAttribute("patchsrc")&&Qe.removeAttribute("patchsrc"),Qe.hasAttribute&&Qe.hasAttribute("for")&&Et!=="label"&&Et!=="output"&&Qe.removeAttribute("for")}catch{}}const ze=x(he);if(ze)for(let Qe=ze.length-1;Qe>=0;--Qe)Q.push(ze[Qe])}},Vd=function(D){let Q=null,he=null;if(ku)D="<remove></remove>"+D;else{const Qe=h6(D,/^[\r\n\t ]+/);he=Qe&&Qe[0]}Dr==="application/xhtml+xml"&&ma===Pr&&(D='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+D+"</body></html>");const Oe=T?H(D):D;if(ma===Pr)try{Q=new h().parseFromString(Oe,Dr)}catch{}if(!Q||!Q.documentElement){Q=X.createDocument(ma,"template",null);try{Q.documentElement.innerHTML=Hd?P:Oe}catch{}}const ze=Q.body||Q.documentElement;return D&&he&&ze.insertBefore(n.createTextNode(he),ze.childNodes[0]||null),ma===Pr?we.call(Q,rn?"html":"body")[0]:rn?Q.documentElement:ze},Wd=function(D){const Q=O?O(D):D.ownerDocument;return re.call(Q||D,D,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Du=function(D){return D=Wf(D,G," "),D=Wf(D,J," "),D=Wf(D,oe," "),D},Zo=function(D){var Q;D.normalize();const he=O?O(D):D.ownerDocument,Oe=re.call(he||D,D,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let ze=Oe.nextNode();for(;ze;)ze.data=Du(ze.data),ze=Oe.nextNode();const Qe=(Q=D.querySelectorAll)===null||Q===void 0?void 0:Q.call(D,"template");Qe&&pc(Qe,Et=>{gr(Et.content)&&Zo(Et.content)})},Hs=function(D){const Q=N?N(D):null;return typeof Q!="string"||Dt(Q)!=="form"?!1:typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||D.attributes!==A(D)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function"||D.nodeType!==R(D)||D.childNodes!==x(D)},gr=function(D){if(!R||typeof D!="object"||D===null)return!1;try{return R(D)===oa.documentFragment}catch{return!1}},Hn=function(D){if(!R||typeof D!="object"||D===null)return!1;try{return typeof R(D)=="number"}catch{return!1}};function Qr(me,D,Q){me.length!==0&&pc(me,he=>{he.call(t,D,Q,us)})}const Dy=function(D,Q){return!!(pt&&D.hasChildNodes()&&!Hn(D.firstElementChild)&&Kn(x6,D.textContent)&&Kn(x6,D.innerHTML)||pt&&D.namespaceURI===Pr&&Q==="style"&&Hn(D.firstElementChild)||D.nodeType===oa.processingInstruction||pt&&D.nodeType===oa.comment&&Kn(C6,D.data))},Gd=function(D,Q,he){if(!Bn[Q]&&Lu(Q)&&(Me.tagNameCheck instanceof RegExp&&Kn(Me.tagNameCheck,Q)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(Q)))return!1;if(Bd&&!_r[Q]){const Oe=_(D),ze=x(D);if(ze&&Oe){const Qe=ze.length;for(let Et=Qe-1;Et>=0;--Et){const _t=D===he?y(ze[Et],!0):ze[Et];Oe.insertBefore(_t,w(D))}}}return Xt(D),!0},Kd=function(D,Q,he,Oe){return D.length===0?Q:Q===he||Q===Oe?yr(Q):Q},il=function(D,Q){if(Qr(W.beforeSanitizeElements,D,null),D!==Q&&_(D)===null)return Iu&&ga(D),!0;if(Hs(D))return Xt(D),!0;const he=Dt(N?N(D):D.nodeName);if(Ue=Kd(W.uponSanitizeElement,Ue,je,La),Qr(W.uponSanitizeElement,D,{tagName:he,allowedTags:Ue}),D!==Q&&_(D)===null)return Iu&&ga(D),!0;if(Dy(D,he))return Xt(D),!0;if(Bn[he]||!(Dn.tagCheck instanceof Function&&Dn.tagCheck(he))&&!Ue[he]){const ze=Gd(D,he,Q);return ze===!1&&Qr(W.afterSanitizeElements,D,null),ze}if((R?R(D):D.nodeType)===oa.element&&!Yo(D)||(he==="noscript"||he==="noembed"||he==="noframes")&&Kn(Pre,D.innerHTML))return Xt(D),!0;if(nn&&D.nodeType===oa.text){const ze=Du(D.textContent);D.textContent!==ze&&(mc(t.removed,{element:D.cloneNode()}),D.textContent=ze)}return Qr(W.afterSanitizeElements,D,null),!1},Wp=function(D,Q,he){if(Zt[Q]||pt&&Q==="patchsrc"||pt&&Q==="for"&&D!=="label"&&D!=="output"||hr&&(Q==="id"||Q==="name")&&(he in n||he in My))return!1;const Oe=ke[Q]||Dn.attributeCheck instanceof Function&&Dn.attributeCheck(Q,D);if(!(Er&&Kn(pe,Q))){if(!(fr&&Kn(K,Q))){if(Oe){if(!qo[Q]){if(!Kn(Te,Wf(he,ge,""))){if(!((Q==="src"||Q==="xlink:href"||Q==="href")&&D!=="script"&&p6(he,"data:")===0&&nl[D])){if(!(os&&!Kn(fe,Wf(he,ge,"")))){if(he)return!1}}}}}else if(!(Lu(D)&&(Me.tagNameCheck instanceof RegExp&&Kn(Me.tagNameCheck,D)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(D))&&(Me.attributeNameCheck instanceof RegExp&&Kn(Me.attributeNameCheck,Q)||Me.attributeNameCheck instanceof Function&&Me.attributeNameCheck(Q,D))||Q==="is"&&Me.allowCustomizedBuiltInElements&&(Me.tagNameCheck instanceof RegExp&&Kn(Me.tagNameCheck,he)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(he))))return!1}}return!0},Lr=bt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Lu=function(D){return!Lr[ph(D)]&&Kn(Ee,D)},Gp=function(D,Q,he,Oe){if(T&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!he)switch(m.getAttributeType(D,Q)){case"TrustedHTML":return H(Oe);case"TrustedScriptURL":return Z(Oe)}return Oe},Yd=function(D,Q,he,Oe){try{he?D.setAttributeNS(he,Q,Oe):D.setAttribute(Q,Oe),Hs(D)?Xt(D):f6(t.removed)}catch{cs(Q,D)}},qs=function(D){Qr(W.beforeSanitizeAttributes,D,null);const Q=D.attributes;if(!Q||Hs(D))return;ke=Kd(W.uponSanitizeAttribute,ke,Ut,_u);const he={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0};let Oe=Q.length;const ze=Dt(D.nodeName);for(;Oe--;){const Qe=Q[Oe],Et=Qe.name,_t=Qe.namespaceURI,qn=Qe.value,Vn=Dt(Et),ds=qn;let bn=Et==="value"?ds:gre(ds);if(he.attrName=Vn,he.attrValue=bn,he.keepAttr=!0,he.forceKeepAttr=void 0,Qr(W.uponSanitizeAttribute,D,he),bn=he.attrValue,Ua&&(Vn==="id"||Vn==="name")&&p6(bn,pr)!==0&&(cs(Et,D),bn=pr+bn),pt&&Kn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,bn)){cs(Et,D);continue}if(Vn==="attributename"&&h6(bn,"href")){cs(Et,D);continue}if(!he.forceKeepAttr){if(!he.keepAttr){cs(Et,D);continue}if(!Fo&&Kn(Dre,bn)){cs(Et,D);continue}if(nn&&(bn=Du(bn)),!Wp(ze,Vn,bn)){cs(Et,D);continue}bn=Gp(ze,Vn,_t,bn),bn!==ds&&Yd(D,Et,_t,bn)}}Qr(W.afterSanitizeAttributes,D,null)},ll=function(D){let Q=null;const he=Wd(D);for(Qr(W.beforeSanitizeShadowDOM,D,null);Q=he.nextNode();)if(Qr(W.uponSanitizeShadowNode,Q,null),il(Q,D),qs(Q),gr(Q.content)&&ll(Q.content),(R?R(Q):Q.nodeType)===oa.element){const ze=k(Q);gr(ze)&&(Uu(ze),ll(ze))}Qr(W.afterSanitizeShadowDOM,D,null)},Uu=function(D){const Q=[{node:D,shadow:null}];for(;Q.length>0;){const he=Q.pop();if(he.shadow){ll(he.shadow);continue}const Oe=he.node,Qe=(R?R(Oe):Oe.nodeType)===oa.element,Et=x(Oe);if(Et)for(let _t=Et.length-1;_t>=0;--_t)Q.push({node:Et[_t],shadow:null});if(Qe){const _t=N?N(Oe):null;if(typeof _t=="string"&&Dt(_t)==="template"){const qn=Oe.content;gr(qn)&&Q.push({node:qn,shadow:null})}}if(Qe){const _t=k(Oe);gr(_t)&&Q.push({node:null,shadow:_t},{node:_t,shadow:null})}}};return t.sanitize=function(me){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=null,he=null,Oe=null,ze=null;if(Hd=!me,Hd&&(me="<!-->"),typeof me!="string"&&!Hn(me)&&(me=wre(me),typeof me!="string"))throw Al("dirty is not a string, aborting");if(!t.isSupported)return me;Mr?(Ue=La,ke=_u):Mu(D),(W.uponSanitizeElement.length>0||W.uponSanitizeAttribute.length>0)&&(Ue=yr(Ue)),W.uponSanitizeAttribute.length>0&&(ke=yr(ke)),t.removed=[];const Qe=Iu&&typeof me!="string"&&Hn(me);if(Qe){Py(me);const qn=N?N(me):me.nodeName;if(typeof qn=="string"){const Vn=Dt(qn);if(!Ue[Vn]||Bn[Vn])throw ol(me),Al("root node is forbidden and cannot be sanitized in-place")}if(Hs(me))throw ol(me),Al("root node is clobbered and cannot be sanitized in-place");try{Uu(me)}catch(Vn){throw ol(me),Vn}}else if(Hn(me))Q=Vd("<!---->"),he=Q.ownerDocument.importNode(me,!0),he.nodeType===oa.element&&he.nodeName==="BODY"||he.nodeName==="HTML"?Q=he:Q.appendChild(he),Uu(he);else{if(!$o&&!nn&&!rn&&me.indexOf("<")===-1)return T&&is?H(me):me;if(Q=Vd(me),!Q)return $o?null:is?P:""}Q&&ku&&Xt(Q.firstChild);const Et=Qe?me:Q;try{const qn=Wd(Et);for(;Oe=qn.nextNode();)il(Oe,Et),qs(Oe),gr(Oe.content)&&ll(Oe.content)}catch(qn){throw Qe&&(ol(me),pc(t.removed,Vn=>{Vn.element&&ga(Vn.element)})),qn}if(Qe)return pc(t.removed,qn=>{qn.element&&ga(qn.element)}),nn&&Zo(me),me;if($o){if(nn&&Zo(Q),Au)for(ze=de.call(Q.ownerDocument);Q.firstChild;)ze.appendChild(Q.firstChild);else ze=Q;return(ke.shadowroot||ke.shadowrootmode)&&(ze=z.call(r,ze,!0)),ze}let _t=rn?Q.outerHTML:Q.innerHTML;return rn&&Ue["!doctype"]&&Q.ownerDocument&&Q.ownerDocument.doctype&&Q.ownerDocument.doctype.name&&Kn(Nre,Q.ownerDocument.doctype.name)&&(_t="<!DOCTYPE "+Q.ownerDocument.doctype.name+`>
14
+ `+_t),nn&&(_t=Du(_t)),T&&is?H(_t):_t},t.setConfig=function(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Mu(me),Mr=!0,La=Ue,_u=ke},t.clearConfig=function(){us=null,Mr=!1,La=null,_u=null,T=L,P=""},t.isValidAttribute=function(me,D,Q){us||Mu({});const he=Dt(me),Oe=Dt(D);return Wp(he,Oe,Q)},t.addHook=function(me,D){typeof D=="function"&&Zn(W,me)&&mc(W[me],D)},t.removeHook=function(me,D){if(Zn(W,me)){if(D!==void 0){const Q=pre(W[me],D);return Q===-1?void 0:mre(W[me],Q,1)[0]}return f6(W[me])}},t.removeHooks=function(me){Zn(W,me)&&(W[me]=[])},t.removeAllHooks=function(){W=E6()},t}var G6e=lj();function uj({children:e,className:t}){return C.jsx("div",{"data-auth-page":!0,className:Pe("flex min-h-dvh w-full flex-col items-center justify-center overflow-y-auto bg-surface-sunken pb-[max(2rem,env(safe-area-inset-bottom,0px))] pl-[max(1rem,env(safe-area-inset-left,0px))] pr-[max(1rem,env(safe-area-inset-right,0px))] pt-[max(2rem,env(safe-area-inset-top,0px))] text-fg",t),style:{backgroundImage:"radial-gradient(at 20% 0%, color-mix(in oklch, var(--accent) 8%, transparent) 0px, transparent 50%), radial-gradient(at 80% 100%, color-mix(in oklch, var(--accent) 8%, transparent) 0px, transparent 50%)"},children:C.jsx("div",{className:"w-full max-w-[26rem]",children:e})})}const jre="Secure sign-in powered by AWS Cognito";function cj(e){const t=e?.note??"Secure sign-in";return C.jsx("div",{className:"text-center pt-5",children:C.jsx("p",{className:"text-xs text-fg-muted",children:t})})}const zre=()=>C.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"text-accent",children:[C.jsx("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),C.jsx("path",{d:"M3 7l9 6 9-6"})]});function dj({wordmark:e="remit,",tagline:t="your email client in the cloud.",mark:n=C.jsx(zre,{})}){return C.jsxs("div",{className:"text-center pb-6",children:[C.jsx("div",{className:"flex items-center justify-center pb-3",children:n}),C.jsx("h1",{className:"text-[1.75rem] font-semibold tracking-[-0.01em] text-fg",children:e}),C.jsx("p",{className:"mt-1 text-sm text-fg-muted",children:t})]})}const Fre={info:"bg-accent-2/15 text-accent-2 border-accent-2/40",success:"bg-positive/15 text-positive border-positive/40",warning:"bg-warning/15 text-warning border-warning/40",danger:"bg-danger/15 text-danger border-danger/40"},$re={info:"bg-surface-sunken text-fg-muted",success:"bg-positive/10 text-positive",warning:"bg-warning/10 text-warning",danger:"bg-danger-soft text-danger"},Bre={info:"status",success:"status",warning:"alert",danger:"alert"};function K0({tone:e="info",variant:t="framed",onDismiss:n,role:r,className:a,children:s,...i}){const u=t==="soft";return C.jsxs("div",{role:r??Bre[e],className:Pe("flex gap-2 px-3 py-2 text-sm",u?Pe("items-start rounded-md",$re[e]):Pe("items-center border",Fre[e]),a),...i,children:[C.jsx("div",{className:"flex-1 min-w-0",children:s}),n&&(u?C.jsx(en,{variant:"ghost",size:"sm",icon:C.jsx(Ps,{className:"size-3.5"}),onClick:n,"aria-label":"Dismiss",className:"-mr-1 shrink-0"}):C.jsx("button",{type:"button",onClick:n,"aria-label":"Dismiss",className:"shrink-0 rounded-md p-1 hover:bg-fg/10 transition-colors",children:C.jsx(Ps,{className:"size-4","aria-hidden":"true"})}))]})}const Hre={sun:0,sunday:0,mon:1,monday:1,tue:2,tues:2,tuesday:2,wed:3,weds:3,wednesday:3,thu:4,thur:4,thurs:4,thursday:4,fri:5,friday:5,sat:6,saturday:6};Object.keys(Hre).sort((e,t)=>t.length-e.length).join("|");function _6(e){return String(e).padStart(2,"0")}function K6e(e,t){if(e==="")return"";const[n,r]=e.split(":").map(Number),a=(n*60+r+t)%1440;return`${_6(Math.floor(a/60))}:${_6(a%60)}`}const k6={type:"none"};function qre(e){if(!e.open||e.count<=0)return k6;if(e.key==="ArrowDown"){const n=e.activeIndex+1;return{type:"move",index:n>=e.count?0:n}}if(e.key==="ArrowUp"){const n=e.activeIndex-1;return{type:"move",index:n<0?e.count-1:n}}return e.key==="Escape"?{type:"dismiss"}:(e.key==="Enter"||(e.acceptKeys??[]).includes(e.key))&&e.activeIndex>=0&&e.activeIndex<e.count?{type:"accept",index:e.activeIndex}:k6}function Vre({count:e,onAccept:t,acceptKeys:n}){const[r,a]=E.useState(!1),[s,i]=E.useState(-1),u=E.useId().replace(/[^a-zA-Z0-9_-]/g,""),c=`suggest-${u}`,f=E.useCallback(g=>`suggest-${u}-option-${g}`,[u]);E.useEffect(()=>{i(-1),a(!1)},[e]);const h=e>0&&!r,m=E.useCallback(g=>{const y=qre({key:g.key,open:h,count:e,activeIndex:s,acceptKeys:n});return y.type==="none"?!1:(g.preventDefault(),y.type==="move"&&i(y.index),y.type==="dismiss"&&a(!0),y.type==="accept"&&t(y.index),!0)},[h,e,s,n,t]);return{open:h,activeIndex:s,setActiveIndex:i,dismiss:E.useCallback(()=>a(!0),[]),reopen:E.useCallback(()=>a(!1),[]),handleKeyDown:m,listId:c,optionId:f,comboboxProps:{role:"combobox","aria-expanded":h,"aria-controls":c,"aria-autocomplete":"list",...s>=0?{"aria-activedescendant":f(s)}:{},...h?{"data-escape-owner":""}:{}}}}function Wre({id:e,suggestions:t,activeIndex:n,optionId:r,onPick:a,onHighlight:s,label:i,className:u}){return t.length===0?null:C.jsx("div",{id:e,role:"listbox","aria-label":i,className:Pe("max-h-44 overflow-y-auto rounded-md border border-line bg-surface py-1 shadow-sm",u),children:t.map((c,f)=>C.jsxs("div",{id:r(f),role:"option",tabIndex:-1,"aria-selected":f===n,className:Pe("flex cursor-pointer items-baseline gap-2 px-3 py-2 text-sm text-fg",f===n&&"bg-accent-2-soft"),onMouseDown:h=>{h.preventDefault(),a(c)},onMouseEnter:()=>s(f),children:[C.jsx("span",{className:"min-w-0 flex-1 truncate",children:c.label??c.value}),c.hint&&C.jsx("span",{className:"shrink-0 truncate text-2xs text-fg-subtle",children:c.hint}),c.source&&C.jsx("span",{className:"shrink-0 text-2xs text-fg-subtle",children:c.source})]},c.value))})}var A6={en:1199414,"en-GB":1199758,nl:3180464},I6=["en","en-GB","nl"];const fj=()=>typeof I6>"u"?[]:I6,Y6e=()=>{const e="/spellcheck/de99b00dc30674fd/";return typeof document>"u"?e:new URL(e,document.baseURI).href},Z6e=e=>typeof A6>"u"?0:A6[e]??0,X6e=(e,t=fj())=>{const n=e.toLowerCase(),r=t.find(s=>s.toLowerCase()===n);if(r)return r;const a=n.split("-")[0];return t.find(s=>s.toLowerCase().split("-")[0]===a)??null},Gre=[{tag:"ar",detectionCode:"arb"},{tag:"az",detectionCode:"azj"},{tag:"be",detectionCode:"bel"},{tag:"bg",detectionCode:"bul"},{tag:"bs",detectionCode:"bos"},{tag:"cs",detectionCode:"ces"},{tag:"de",detectionCode:"deu"},{tag:"en",detectionCode:"eng"},{tag:"es",detectionCode:"spa"},{tag:"fa",detectionCode:"pes"},{tag:"fr",detectionCode:"fra"},{tag:"ha",detectionCode:"hau"},{tag:"hi",detectionCode:"hin"},{tag:"hr",detectionCode:"hrv"},{tag:"hu",detectionCode:"hun"},{tag:"id",detectionCode:"ind"},{tag:"ig",detectionCode:"ibo"},{tag:"it",detectionCode:"ita"},{tag:"jv",detectionCode:"jav"},{tag:"kk",detectionCode:"kaz"},{tag:"mr",detectionCode:"mar"},{tag:"ms",detectionCode:"zlm"},{tag:"ne",detectionCode:"npi"},{tag:"nl",detectionCode:"nld"},{tag:"pl",detectionCode:"pol"},{tag:"ps",detectionCode:"pbu"},{tag:"pt",detectionCode:"por"},{tag:"ro",detectionCode:"ron"},{tag:"ru",detectionCode:"rus"},{tag:"so",detectionCode:"som"},{tag:"sr",detectionCode:"srp"},{tag:"su",detectionCode:"sun"},{tag:"sv",detectionCode:"swe"},{tag:"sw",detectionCode:"swh"},{tag:"tl",detectionCode:"tgl"},{tag:"tr",detectionCode:"tur"},{tag:"uk",detectionCode:"ukr"},{tag:"ur",detectionCode:"urd"},{tag:"vi",detectionCode:"vie"},{tag:"yo",detectionCode:"yor"},{tag:"zu",detectionCode:"zul"}],Ak=e=>(e.split("-")[0]??"").toLowerCase(),Kre=new Map(Gre.map(e=>[e.tag,e])),Yre=e=>Kre.get(Ak(e))?.detectionCode??null,Zre=/^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i,Q6e=e=>Ak(e).toUpperCase(),J6e=e=>{if(!Zre.test(e))return e;const n=new Intl.DisplayNames([e],{type:"language",fallback:"none"}).of(e);return n?n.charAt(0).toLocaleUpperCase(e)+n.slice(1):e},eNe=(e,t=fj())=>{const n=[...e,...t].filter(a=>Yre(a)!==null),r=[...new Set(n.map(Ak))];return r.includes("en")||r.push("en"),r},tNe=e=>/iPhone|iPad|iPod/.test(e)?"On iPhone and iPad the keyboard decides this. Add the language under Settings, then General, then Keyboard.":/Edg\//.test(e)?"Edge checks every language you add under Settings, then Languages. Adding one there checks it alongside the others.":/Firefox\//.test(e)?"Firefox uses this setting. Right-click the message to add a dictionary for it.":/Chrome\/|Chromium\//.test(e)?"Chrome checks every language you add under Settings, then Languages. Adding one there checks it alongside the others.":/Safari\//.test(e)?"macOS decides this under Keyboard, then Text Input, then Spelling. Automatic by Language covers every language enabled there.":"Your browser decides which dictionaries it checks. Add this language in its own language settings to have it spellchecked.",hj=e=>new DOMParser().parseFromString(e,"text/html"),pj=e=>{const t=[...e.children];if(t.length!==1)return null;const n=t[0];return n?[...e.childNodes].some(a=>a!==n&&(a.textContent??"").trim()!=="")?null:n:null},nNe=(e,t)=>{if(e==="")return"";const n=hj(e),r=pj(n.body);if(r?.tagName==="DIV"&&r.hasAttribute("lang"))return r.setAttribute("lang",t),n.body.innerHTML;const a=n.createElement("div");for(a.setAttribute("lang",t);n.body.firstChild;)a.append(n.body.firstChild);return n.body.append(a),n.body.innerHTML},rNe=e=>{if(e==="")return{html:e,language:null};const t=hj(e),n=pj(t.body);return n?.tagName!=="DIV"||!n.hasAttribute("lang")?{html:e,language:null}:{html:n.innerHTML,language:n.getAttribute("lang")}};function Ik({className:e,children:t,...n}){return C.jsx("label",{className:Pe("mb-1 block text-xs font-medium text-fg-muted",e),...n,children:t})}const Xre={similar:"Anything similar",properties:"Its properties"};function l3(e){return Xre[e]}const Qre={similar:"Reads the messages you picked and finds more that read like them.",properties:"Matches on what the messages say about themselves — sender, subject, list. No reading involved."};function mj(e){return Qre[e]}const Jre={From:"From",Subject:"Subject",HasWords:"Has the words",ListId:"List",FromDomain:"Domain"};function Yc(e){return Jre[e]}const eae={ListId:"The mailing list's List-Id header, matched exactly. New mail is matched as it arrives — mail delivered before this was set up may not carry it yet.",FromDomain:"The sender's registrable domain — matches anyone at it, subdomains included (a look-alike like example.com.evil.test never matches)."};function tae(e){return eae[e]}function nae(e){return e==="HasWords"}function rae(e){return e.widen!==void 0&&!e.widen.inactive}function gj(e){return rae(e)?[]:e.clauses.filter(t=>nae(t.field))}const aae=["From","Subject","HasWords","ListId","FromDomain"];function Y0(e){return`Similar to these ${e.anchorCount}`}const sae={all:"Match all",any:"Match any"};function Z0(e){return sae[e]}function Rk(e){return e==="all"?"and":"or"}function vj(e){if(e.status==="loading")return"Counting matches…";if(e.status==="error")return e.reason;if(e.count===0)return"No mail matches yet";const t=e.count===1?"message":"messages",n=`${e.count} ${t} match`;return e.stale?`${n} — recounting`:n}const oae={once:"Just once",standing:"Keep doing this",until:"Until a date"};function y0(e){return oae[e]}function yj(e){return e==="once"?"Apply now":e==="standing"?"Save rule":"Save until then"}const Ia={noMatch:"Add a clause so the rule has something to match.",bodyTextOnce:"Applying once can't read message bodies. Save this as a rule instead, or drop the “has the words” clause.",noAction:"Pick a folder to move into, or a label to apply.",unnamed:"Name this rule so you can find it later.",noUntilDate:"Pick the date this rule should stop on.",counting:"Counting matches — save once the count settles.",recounting:"Recounting matches — save once the count settles."},aNe="Can't count matches — “has the words” reads message bodies, which only a saved rule does.";function bj(e){if(e.status==="loading")return Ia.counting;if(e.status==="ready"&&e.stale)return Ia.recounting}function iae(e,t){return e.clauses.length>0||e.widen!==void 0&&!e.widen.inactive?e.scope==="once"&&gj(e).length>0?Ia.bodyTextOnce:!e.moveMailboxId&&!e.labelId?Ia.noAction:(e.scope==="standing"||e.scope==="until")&&(e.name??"").trim()===""?Ia.unnamed:e.scope==="until"&&!e.until?Ia.noUntilDate:bj(t):Ia.noMatch}const X0="inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs";function Sj({clause:e,onEdit:t,onRemove:n}){return C.jsxs("span",{className:Pe(X0,e.derived?"border-dashed border-line-strong bg-surface-sunken":"border-line bg-surface"),children:[C.jsxs("button",{type:"button",onClick:t,"aria-label":`Edit ${Yc(e.field)} clause`,className:"flex items-center gap-1 text-left",children:[C.jsx("span",{className:"font-medium text-fg-muted",children:Yc(e.field)}),C.jsx("span",{className:"text-fg",children:e.value})]}),e.derived&&C.jsx("span",{className:"text-2xs text-fg-subtle",children:"from sender"}),n&&C.jsx("button",{type:"button",onClick:n,"aria-label":`Remove ${Yc(e.field)} clause`,className:"flex size-4 items-center justify-center rounded-full text-fg-subtle hover:bg-surface-sunken hover:text-fg-muted",children:C.jsx(Ps,{className:"size-3"})})]})}function R6({onRemove:e}){return C.jsx("button",{type:"button",onClick:e,"aria-label":"Remove the similar-mail widen",className:"flex size-4 items-center justify-center rounded-full hover:bg-fg-subtle/20",children:C.jsx(Ps,{className:"size-3"})})}function lae({widen:e,onRemove:t}){return e.inactive?C.jsxs("span",{className:Pe(X0,"border-dashed border-line-strong bg-surface-sunken text-fg-subtle"),children:[C.jsx(e3,{className:"size-3 shrink-0","aria-hidden":"true"}),C.jsx("span",{className:"line-through",children:Y0(e)}),C.jsx("span",{className:"text-2xs",children:"not available here"}),t&&C.jsx(R6,{onRemove:t})]}):C.jsxs("span",{className:Pe(X0,"border-accent-2 bg-accent-2-soft text-accent-2"),children:[C.jsx(e3,{className:"size-3 shrink-0","aria-hidden":"true"}),C.jsx("span",{className:"font-medium",children:"…and anything similar"}),C.jsx("span",{className:"text-2xs opacity-80",children:Y0(e)}),t&&C.jsx(R6,{onRemove:t})]})}function u3({label:e,onClick:t}){return C.jsxs("button",{type:"button",onClick:t,className:Pe(X0,"border-dashed border-line-strong text-fg-muted hover:border-accent-2 hover:text-accent-2"),children:[C.jsx(lte,{className:"size-3","aria-hidden":"true"}),e]})}function wj({draft:e,mode:t,fields:n=aae,suggestions:r=[],onChangeField:a,onChangeValue:s,onSubmit:i,onCancel:u}){const c=tae(e.field),f=Vre({count:r.length,onAccept:h=>s?.(r[h].value)});return C.jsxs("div",{className:"space-y-1.5 rounded-lg border border-accent-2 bg-surface p-2",children:[C.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[C.jsx(DU,{"aria-label":"Clause field",value:e.field,onChange:h=>a?.(h.target.value),className:"h-8 w-32 shrink-0",children:n.map(h=>C.jsx("option",{value:h,children:Yc(h)},h))}),C.jsx(ts,{"aria-label":"Clause value",value:e.value,placeholder:"value…",autoComplete:"off",onChange:h=>{f.reopen(),s?.(h.target.value)},onKeyDown:h=>{f.handleKeyDown(h)||h.key==="Enter"&&i?.()},className:"h-8 min-w-40 flex-1",...f.comboboxProps}),C.jsx(en,{variant:"primary",size:"sm",onClick:i,disabled:e.value.trim()==="",className:"shrink-0",children:t==="add"?"Add":"Save"}),C.jsx(en,{variant:"ghost",size:"sm",onClick:u,"aria-label":"Cancel clause edit",icon:C.jsx(Ps,{className:"size-4"}),className:"shrink-0 px-2"})]}),f.open&&C.jsx(Wre,{id:f.listId,suggestions:r,activeIndex:f.activeIndex,optionId:f.optionId,onPick:h=>{s?.(h.value),f.dismiss()},onHighlight:f.setActiveIndex,label:`${Yc(e.field)} suggestions`}),c&&C.jsx("p",{className:"px-0.5 text-2xs text-fg-subtle",children:c})]})}function uae({preview:e}){const t=vj(e);if(e.status==="loading")return C.jsxs("p",{className:"flex items-center gap-2 text-xs text-fg-muted","aria-live":"polite",children:[C.jsx($h,{className:"size-3.5 animate-spin","aria-hidden":"true"}),t]});if(e.status==="error")return C.jsxs("p",{className:"flex items-center gap-2 text-xs text-danger",role:"alert",children:[C.jsx(od,{className:"size-3.5 shrink-0","aria-hidden":"true"}),t]});const n=e.count===0;return C.jsxs("p",{className:Pe("flex items-center gap-2 text-xs",e.stale?"text-fg-subtle":n?"text-fg-muted":"font-medium text-fg"),"aria-live":"polite",children:[e.stale&&C.jsx($h,{className:"size-3.5 animate-spin","aria-hidden":"true"}),t]})}const bv=(e,t)=>t.length===0?[e]:e.split(t),cae=(e,t)=>{const n=bv(e,t);return n[n.length-1]||e},qh=(e,t)=>{if(t.length===0)return"";const n=e.lastIndexOf(t);return n===-1?"":e.slice(0,n)},xj=(e,t)=>bv(e,t).length-1,Vh=(e,t)=>{const n=[];let r=e,a=qh(r,t);for(;a&&a.length<r.length;)n.push(a),r=a,a=qh(r,t);return n},dae=(e,t)=>{const n=new Set(e.map(i=>i.path)),r=new Set,a=[],s=i=>{if(!r.has(i.path)){r.add(i.path),a.push(i);for(const u of e)qh(u.path,t)===i.path&&s(u)}};for(const i of e){const u=qh(i.path,t);u&&n.has(u)||s(i)}return a},Cj=(e,t)=>e.label.toLowerCase().includes(t)||e.path.toLowerCase().includes(t),fae=(e,t,n)=>{const r=new Set;if(!t)return r;for(const a of e)if(Cj(a,t))for(const s of Vh(a.path,n))r.add(s);return r},hae=(e,t,n,r=new Set)=>{const a=(u,c)=>({folder:u,depth:xj(u.path,n),context:c,expanded:r.has(u.path)});if(!t)return e.map(u=>a(u,!1));const s=new Set;for(const u of e)Cj(u,t)&&s.add(u.path);const i=new Set(s);for(const u of s)for(const c of Vh(u,n))i.add(c);return e.filter(u=>i.has(u.path)).map(u=>a(u,!s.has(u.path)))},pae=(e,t,n)=>{const r=new Set(e.map(a=>a.path));return e.filter(a=>Vh(a.path,n).every(s=>!r.has(s)||t.has(s))).map(a=>({folder:a,depth:xj(a.path,n),context:!1,expanded:t.has(a.path)}))},mae=(e,t)=>{if(t.length===0)return e.map((s,i)=>({kind:"folder",row:s,index:i}));const n=[],r=[],a=s=>{for(;r.length>0;){const i=r[r.length-1];if(!i||s?.startsWith(`${i.folder.path}${t}`))break;r.pop(),n.push({kind:"create",parent:i.folder,depth:i.depth+1})}};return e.forEach((s,i)=>{a(s.folder.path),n.push({kind:"folder",row:s,index:i}),s.expanded&&r.push(s)}),a(null),n},gae=e=>typeof e=="object"&&e!==null&&"name"in e&&e.name==="AbortError",Es=e=>e!==void 0&&!e.context,dw=e=>e!==void 0&&!e.folder.isCurrent&&!e.context,fw=e=>{for(let t=0;t<e.length;t+=1)if(Es(e[t]))return t;return-1},vae=e=>{for(let t=e.length-1;t>=0;t-=1)if(Es(e[t]))return t;return-1},T6=(e,t,n)=>{const r=e.length;if(r<=0)return-1;const a=t<0?n===1?-1:r:t;for(let s=1;s<=r;s+=1){const i=((a+n*s)%r+r)%r;if(Es(e[i]))return i}return-1},yae=(e,t,n)=>{const r=e[t];if(!r)return-1;const a=qh(r.folder.path,n);if(!a)return-1;for(let s=t-1;s>=0;s-=1)if(e[s]?.folder.path===a)return Es(e[s])?s:-1;return-1},c3="flex min-h-11 min-w-0 flex-1 items-center gap-2 px-3 py-2.5 text-left text-sm transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",Ej=14,bae=60,d3=({depth:e})=>e>0?C.jsx("span",{"aria-hidden":"true",className:"shrink-0",style:{width:e*Ej}}):null,f3=({depth:e})=>C.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute right-0 bottom-0 h-px bg-line",style:{left:bae+e*Ej}}),Sae=({label:e,depth:t,expanded:n,ariaLabel:r,selected:a=!1,context:s=!1,current:i=!1,currentTag:u,messageCount:c,separated:f=!1,actions:h,tabIndex:m,onActivate:g,onFocus:y,ref:S})=>{const w=C.jsx(Zee,{className:Pe("size-4 shrink-0 text-fg-subtle transition-transform",n&&"rotate-90"),"aria-hidden":"true"}),x=C.jsx(ste,{className:"size-4 shrink-0 text-fg-subtle","aria-hidden":"true"}),_=c===void 0?null:C.jsxs("span",{"aria-hidden":"true",className:"shrink-0 text-2xs text-fg-subtle",children:[c," ",c===1?"msg":"msgs"]});return s?C.jsxs("div",{className:"relative flex items-center",children:[C.jsxs("div",{role:"treeitem","aria-level":t+1,"aria-selected":!1,"aria-expanded":n,"aria-label":r,className:Pe(c3,"opacity-60"),children:[C.jsx(d3,{depth:t}),w,x,C.jsx("span",{className:"min-w-0 flex-1 truncate",children:e}),_]}),h,f&&C.jsx(f3,{depth:t})]}):C.jsxs("div",{className:"relative flex items-center",children:[C.jsxs("button",{ref:S,type:"button",role:"treeitem","aria-level":t+1,"aria-selected":a,"aria-expanded":n,"aria-current":i?"true":void 0,"aria-label":r,tabIndex:m,onClick:g,onFocus:y,className:Pe(c3,"hover:bg-surface-raised active:bg-surface-sunken",i&&"text-fg-muted"),children:[C.jsx(d3,{depth:t}),w,x,C.jsx("span",{className:"min-w-0 flex-1 truncate",children:e}),_,i&&u&&C.jsx("span",{className:"shrink-0 text-xs text-fg-muted",children:u}),a&&C.jsx(hv,{className:"size-4 shrink-0 text-accent","aria-hidden":"true"})]}),h,f&&C.jsx(f3,{depth:t})]})},O6=({label:e,ariaLabel:t,depth:n=0,prominence:r="prominent",separated:a=!1,onOpen:s})=>C.jsxs("div",{className:Pe("relative",r==="prominent"&&"p-2"),children:[C.jsxs("button",{type:"button",onClick:s,"aria-label":t,"data-prominence":r,className:Pe(c3,"w-full active:bg-surface-sunken",r==="prominent"?"rounded-lg border border-line-strong border-dashed font-medium text-fg-muted hover:border-accent-2 hover:text-accent-2":"text-fg-subtle hover:bg-surface-raised hover:text-fg-muted"),children:[C.jsx(d3,{depth:n}),C.jsx("span",{"aria-hidden":"true",className:"size-4 shrink-0"}),C.jsx(rte,{className:"size-4 shrink-0","aria-hidden":"true"}),C.jsx("span",{className:"min-w-0 flex-1 truncate",children:e})]}),a&&C.jsx(f3,{depth:n})]}),_j={nameLabel:"Folder name",namePlaceholder:"Hotels",insideLabel:"Inside",create:"Create folder",cancel:"Cancel",createPending:"Creating folder…"},wae=({parentLabel:e,name:t,onNameChange:n,onSubmit:r,onCancel:a,pending:s=!1,error:i,labels:u})=>{const c={..._j,...u},f=E.useId(),h=E.useRef(null),m=E.useRef(null);return E.useEffect(()=>{h.current?.focus({preventScroll:!0}),m.current?.scrollIntoView({block:"nearest"})},[]),C.jsxs("div",{ref:m,className:"space-y-3 border-y border-line bg-surface-sunken px-3 py-3",children:[C.jsxs("div",{children:[C.jsx(Ik,{htmlFor:f,children:c.nameLabel}),C.jsx(ts,{id:f,ref:h,value:t,placeholder:c.namePlaceholder,onChange:g=>n(g.target.value),onKeyDown:g=>{g.key==="Enter"&&(g.preventDefault(),r()),g.key==="Escape"&&(g.preventDefault(),a())}})]}),C.jsxs("p",{className:"text-xs text-fg-muted",children:[c.insideLabel," ",C.jsx("span",{className:"font-medium text-fg",children:e})]}),i&&C.jsx("p",{className:"text-xs text-danger",role:"alert",children:i}),C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx(en,{variant:"ghost",size:"md",onClick:a,className:"min-h-11 shrink-0",children:c.cancel}),C.jsx(en,{variant:"secondary",size:"md",onClick:r,disabled:s,className:"min-h-11 shrink-0",children:s?c.createPending:c.create})]})]})},xae={..._j,filterPlaceholder:"Filter folders…",filterAriaLabel:"Filter folders",treeAriaLabel:"Destination folders",currentSuffix:"(current folder)",currentTag:"current",contextSuffix:"(containing folder)",emptyMessage:e=>`No folders match "${e}"`,noFolders:"No folders to show",optionLabel:e=>`Move to ${e.label}`,newFolder:"New folder",newSubfolder:e=>`New folder inside ${e}`,topLevel:"Top level",nameRequired:"Give the folder a name.",createError:"Couldn't create that folder. Please try again."},Tk=({folders:e,selectedId:t,onSelect:n,rowActions:r,onCreateFolder:a,onCancel:s,delimiter:i="/",labels:u,autoFocusFilter:c=!1})=>{const f={...xae,...u},[h,m]=E.useState(""),[g,y]=E.useState(()=>{const K=e.find(fe=>fe.id===t);return new Set(K?Vh(K.path,i):[])}),[S,w]=E.useState(null),[x,_]=E.useState(""),[k,A]=E.useState(),[R,N]=E.useState(!1),[O,T]=E.useState(-1),P=E.useRef([]),L=E.useRef(null),q=E.useRef(!1),j=E.useRef(null);E.useEffect(()=>()=>j.current?.abort(),[]),E.useEffect(()=>{c&&L.current?.focus()},[c]);const U=h.trim().toLowerCase(),H=E.useMemo(()=>dae(e,i),[e,i]),Z=E.useMemo(()=>{const K=fae(H,U,i);return K.size===0?g:new Set([...g,...K])},[H,g,U,i]),se=E.useMemo(()=>U?hae(H,U,i,Z):pae(H,Z,i),[H,U,i,Z]),B=E.useMemo(()=>a?mae(se,i):void 0,[se,i,a]);E.useEffect(()=>{T(K=>Es(se[K])?K:fw(se))},[se]),E.useEffect(()=>{q.current&&(q.current=!1,!(O<0)&&P.current[O]?.focus())},[O]);const X=E.useCallback((K,fe)=>{y(ge=>{if(fe)return new Set([...Vh(K,i),K]);const Ee=new Set(ge);return Ee.delete(K),Ee})},[i]),re=E.useCallback(K=>{dw(K)&&n?.(K.folder.id),X(K.folder.path,!K.expanded)},[n,X]),de=E.useCallback(()=>{j.current?.abort(),w(null),_(""),A(void 0),N(!1)},[]),we=E.useCallback(K=>{j.current?.abort(),w({anchorId:K?.id??null,parentPath:K?.path??"",parentLabel:K?.label??f.topLevel}),_(""),A(void 0),N(!1)},[f.topLevel]),z=E.useCallback(()=>{if(!a||!S||R)return;const K=x.trim();if(K===""){A(f.nameRequired);return}N(!0),A(void 0),j.current?.abort();const fe=new AbortController;j.current=fe;const ge=S.parentPath;a(K,ge,fe.signal).then(Ee=>{N(!1),w(null),_(""),ge&&X(ge,!0),n?.(Ee.id)}).catch(Ee=>{gae(Ee)||(A(Ee instanceof Error?Ee.message:f.createError),N(!1))})},[a,S,R,x,n,X,f.nameRequired,f.createError]),W=E.useCallback(K=>{const fe=K.target;if(!(fe instanceof Element)||!fe.closest('[role="treeitem"]'))return;const ge=Te=>{K.preventDefault(),q.current=!0,T(Te)},Ee=se[O];switch(K.key){case"ArrowDown":return ge(T6(se,O,1));case"ArrowUp":return ge(T6(se,O,-1));case"Home":return ge(fw(se));case"End":return ge(vae(se));case"ArrowRight":{if(!Es(Ee)||!Ee)return;if(K.preventDefault(),!Ee.expanded){X(Ee.folder.path,!0);return}const Te=O+1;Es(se[Te])&&ge(Te);return}case"ArrowLeft":{if(!Es(Ee)||!Ee)return;if(K.preventDefault(),Ee.expanded){X(Ee.folder.path,!1);return}const Te=yae(se,O,i);Te>=0&&ge(Te);return}case"Enter":case" ":{if(!Es(Ee)||!Ee)return;K.preventDefault(),re(Ee);return}case"Escape":K.preventDefault(),s?.();return;default:return}},[se,O,i,re,X,s]),G=S!==null&&S.anchorId!==null&&(B?.some(K=>K.kind==="create"&&K.parent.id===S.anchorId)??!1),J=S&&C.jsx(wae,{parentLabel:S.parentLabel,name:x,onNameChange:K=>{_(K),A(void 0)},onSubmit:z,onCancel:de,pending:R,error:k,labels:f}),oe=K=>K.context?`${K.folder.label} ${f.contextSuffix}`:dw(K)?f.optionLabel(K.folder):`${K.folder.label} ${f.currentSuffix}`,pe=(K,fe,ge)=>{const{folder:Ee,depth:Te}=K,Ue=dw(K);return C.jsx(Sae,{ref:je=>{P.current[fe]=je},label:Ee.label,depth:Te,expanded:K.expanded,context:K.context,current:Ee.isCurrent,currentTag:f.currentTag,messageCount:Ee.messageCount,selected:Ue&&Ee.id===t,separated:ge,actions:r?.(Ee),ariaLabel:oe(K),tabIndex:fe===O?0:-1,onActivate:()=>re(K),onFocus:()=>T(fe)})};return C.jsxs("div",{className:"flex min-h-0 w-full min-w-0 flex-col",children:[C.jsx(ts,{ref:L,variant:"inline",className:"border-b border-line px-3 py-2",icon:C.jsx(ute,{className:"size-4","aria-hidden":"true"}),type:"search",value:h,onChange:K=>m(K.target.value),onKeyDown:K=>{if(K.key==="Escape"){K.preventDefault(),s?.();return}if(K.key!=="ArrowDown")return;K.preventDefault();const fe=Es(se[O])?O:fw(se);fe<0||(q.current=!0,T(fe),P.current[fe]?.focus())},placeholder:f.filterPlaceholder,"aria-label":f.filterAriaLabel}),a&&C.jsx("div",{className:"shrink-0 border-b border-line","data-create-anchor":"top",children:S&&!G?J:C.jsx(O6,{label:f.newFolder,ariaLabel:f.newFolder,prominence:"prominent",onOpen:()=>we(null)})}),se.length===0?C.jsx("p",{className:"px-3 py-3 text-sm text-fg-muted","aria-live":"polite",children:e.length===0?f.noFolders:f.emptyMessage(h)}):C.jsx("div",{role:"tree","aria-label":f.treeAriaLabel,className:"min-h-0 flex-1 overflow-y-auto overflow-x-hidden pb-24",onKeyDown:W,children:(B??se.map((K,fe)=>({kind:"folder",row:K,index:fe}))).map((K,fe,ge)=>{const Ee=fe<ge.length-1;return K.kind==="create"?C.jsx("div",{role:"none","data-create-anchor":K.parent.id,children:S?.anchorId===K.parent.id?J:C.jsx(O6,{label:f.newFolder,ariaLabel:f.newSubfolder(K.parent.label),depth:K.depth,prominence:"quiet",separated:Ee,onOpen:()=>we(K.parent)})},`new:${K.parent.id}`):C.jsx("div",{role:"none",children:pe(K.row,K.index,Ee)},K.row.folder.id)})})]})},Cae=[{value:"all",label:Z0("all")},{value:"any",label:Z0("any")}],Eae=[{value:"similar",label:l3("similar")},{value:"properties",label:l3("properties")}],N6=[{value:"once",label:"Just once"},{value:"standing",label:"Keep doing this"},{value:"until",label:"Until a date"}],M6="__filter_create_label__";function _ae({folders:e,value:t,delimiter:n="/",onChangeMove:r,onCreateFolder:a}){const[s,i]=E.useState(!1),[u,c]=E.useState(),[f,h]=E.useState([]),m=E.useMemo(()=>{const _=new Set(e.map(k=>k.id));return[...e,...f.filter(k=>!_.has(k.id))]},[e,f]),g=E.useMemo(()=>{if(a)return async(_,k,A)=>{const R=await a(_,k,A);return h(N=>N.some(O=>O.id===R.id)?N:[...N,R]),R}},[a]),y=m.find(_=>_.id===t),S=m.find(_=>_.id===u),w=_=>{const k=bv(_.path,n);return k.map((A,R)=>{const N=k.slice(0,R+1).join(n);return m.find(O=>O.path===N)?.label??A}).join(" / ")},x=()=>{i(!1),c(void 0)};return s?C.jsxs("div",{className:"space-y-2",children:[C.jsx("div",{className:"flex h-72 min-h-0 overflow-hidden rounded-md border border-line bg-surface",children:C.jsx(Tk,{folders:m,selectedId:u,delimiter:n,onSelect:c,onCreateFolder:g,onCancel:x,labels:{createPending:"Waiting for the mail server to confirm the folder…"}})}),S?C.jsx(en,{variant:"primary",onClick:()=>{r?.(S.id),x()},className:"w-full",children:C.jsx("span",{className:"truncate",children:`Move matches to ${w(S)}`})}):C.jsx("p",{className:"text-2xs text-fg-subtle",children:"Tap a folder to open it, or make a new one where you want it."}),C.jsx(en,{variant:"ghost",size:"sm",onClick:x,className:"w-full",children:"Cancel"})]}):C.jsxs("div",{className:"rounded-md border border-line bg-surface-sunken p-3",children:[C.jsx("p",{className:"text-sm font-medium text-fg",children:y?w(y):"No folder yet"}),C.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-3",children:[C.jsx(en,{variant:"ghost",size:"sm",className:"px-0",onClick:()=>{c(t),i(!0)},children:"Choose a folder"}),y&&C.jsx(en,{variant:"ghost",size:"sm",className:"px-0",onClick:()=>r?.(""),children:"Don't move matches"})]})]})}function kae({labels:e,value:t,onChangeLabel:n,onCreateLabel:r}){const[a,s]=E.useState(!1),[i,u]=E.useState(""),[c,f]=E.useState(!1),[h,m]=E.useState(),[g,y]=E.useState([]),S=E.useMemo(()=>{const A=new Set(e.map(R=>R.id));return[...e,...g.filter(R=>!A.has(R.id))]},[e,g]),w=S.find(A=>A.id===t),x=A=>{if(A===M6){m(void 0),s(!0);return}n?.(A)},_=()=>{if(!r)return;const A=i.trim();A!==""&&(f(!0),m(void 0),r(A).then(R=>{y(N=>N.some(O=>O.id===R.id)?N:[...N,R]),n?.(R.id),s(!1),u(""),f(!1)}).catch(R=>{m(R instanceof Error?R.message:"Couldn't create that label. Please try again."),f(!1)}))},k=()=>{s(!1),u(""),m(void 0)};return C.jsxs("div",{className:"space-y-2",children:[C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsxs(DU,{"aria-label":"Label to apply",value:t,onChange:A=>x(A.target.value),className:"flex-1",children:[C.jsx("option",{value:"",children:"No label"}),S.map(A=>C.jsx("option",{value:A.id,children:A.name},A.id)),r&&C.jsx("option",{value:M6,children:"+ New label…"})]}),w&&C.jsx(sre,{label:{...w,labelId:w.id}})]}),a&&C.jsxs("div",{className:"space-y-2 rounded-md border border-line bg-surface-sunken p-2",children:[C.jsx(ts,{value:i,onChange:A=>u(A.target.value),placeholder:"Label name","aria-label":"New label name",disabled:c,autoFocus:!0,onKeyDown:A=>{A.key==="Enter"&&(A.preventDefault(),_()),A.key==="Escape"&&(A.preventDefault(),k())}}),h&&C.jsx("p",{className:"text-2xs text-danger",role:"alert",children:h}),C.jsxs("div",{className:"flex gap-2",children:[C.jsx(en,{variant:"primary",size:"sm",onClick:_,disabled:c||i.trim()==="",children:c?"Creating…":"Create label"}),C.jsx(en,{variant:"ghost",size:"sm",onClick:k,disabled:c,children:"Cancel"})]})]})]})}function sNe({rule:e,folders:t,delimiter:n,labels:r=[],preview:a,notice:s,semanticAvailable:i=!1,matchMode:u,onChangeMatchMode:c,clauseFields:f,anchorLocked:h=!1,clauseSuggestions:m,clauseEdit:g,onStartAddClause:y,onStartEditClause:S,onRemoveClause:w,onChangeDraftField:x,onChangeDraftValue:_,onSubmitClause:k,onCancelClause:A,onAddWiden:R,onRemoveWiden:N,onChangeMatchOperator:O,onChangeMove:T,onCreateFolder:P,onChangeLabel:L,onCreateLabel:q,onChangeScope:j,onChangeName:U,onChangeUntil:H,onCommit:Z,onCancel:se}){const B=e.widen&&!e.widen.inactive?1:0,re=e.clauses.length+B>=2,de=Rk(e.matchOperator),we=iae(e,a),z=e.scope==="standing"||e.scope==="until",W=h?N6.filter(G=>G.value!=="once"):N6;return C.jsxs("div",{className:"flex min-h-0 flex-col",children:[C.jsxs("div",{className:"border-b border-line px-5 py-3",children:[C.jsx("h2",{className:"text-sm font-semibold text-fg",children:"Filter rule"}),C.jsx("p",{className:"mt-0.5 text-xs text-fg-muted",children:"These chips are the whole rule — what you see is what applies."})]}),C.jsxs("div",{className:"min-h-0 flex-1 space-y-5 overflow-y-auto px-5 py-4",children:[s,u&&C.jsxs("section",{className:"space-y-1.5",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Match on"}),C.jsx(v0,{name:"rule-match-mode",size:"sm","aria-label":"What the rule matches on",options:Eae,value:u,onChange:G=>c?.(G)}),C.jsx("p",{className:"text-2xs text-fg-subtle",children:mj(u)})]}),C.jsxs("section",{className:"space-y-3",children:[C.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[e.clauses.map((G,J)=>C.jsxs(E.Fragment,{children:[J>0&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:de}),C.jsx(Sj,{clause:G,onEdit:()=>S?.(G.id),onRemove:()=>w?.(G.id)})]},G.id)),e.widen&&C.jsxs(C.Fragment,{children:[e.clauses.length>0&&!e.widen.inactive&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:de}),C.jsx(lae,{widen:e.widen,onRemove:h?void 0:N})]}),!g&&C.jsx(u3,{label:"Add clause",onClick:y}),!e.widen&&!h&&i&&u!=="properties"&&!g&&C.jsx(u3,{label:"…and similar",onClick:R})]}),g&&C.jsx(wj,{draft:g.draft,mode:g.mode,fields:f,suggestions:m,onChangeField:x,onChangeValue:_,onSubmit:k,onCancel:A}),h&&e.widen&&C.jsx("p",{className:"text-2xs text-fg-subtle",children:"This filter's similar-mail match is fixed to the message it was created from — create a new filter to change it."}),re&&C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"text-xs text-fg-muted",children:"Match"}),C.jsx(v0,{name:"match-operator",size:"sm","aria-label":"Match operator",options:Cae,value:e.matchOperator,onChange:G=>O?.(G)})]})]}),C.jsxs("section",{className:"space-y-2",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Move matches to"}),C.jsx(_ae,{folders:t,value:e.moveMailboxId,delimiter:n,onChangeMove:T,onCreateFolder:P})]}),C.jsxs("section",{className:"space-y-2",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Apply a label"}),C.jsx(kae,{labels:r,value:e.labelId??"",onChangeLabel:L,onCreateLabel:q})]}),C.jsxs("section",{className:"space-y-2",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"How long"}),C.jsx(v0,{name:"rule-scope",size:"sm","aria-label":"Rule scope",options:W,value:e.scope,onChange:G=>j?.(G)}),z&&C.jsx(ts,{value:e.name??"",onChange:G=>U?.(G.target.value),placeholder:"Name this rule (e.g. Receipts)","aria-label":"Rule name",className:"w-full"}),e.scope==="until"&&C.jsxs("div",{className:"flex items-center gap-2 text-xs text-fg-muted",children:[C.jsx("span",{children:"Until"}),C.jsx(ts,{type:"date",value:e.until??"",onChange:G=>H?.(G.target.value),"aria-label":"Expiry date",className:"flex-1"})]})]}),C.jsx("div",{className:"border-t border-line pt-3",children:C.jsx(uae,{preview:a})})]}),C.jsxs("div",{className:"space-y-2 border-t border-line px-5 py-3",children:[we&&C.jsx("p",{className:"text-xs text-fg-subtle",role:"status",children:we}),C.jsx(en,{variant:"primary",onClick:Z,disabled:we!==void 0,className:"w-full",children:yj(e.scope)}),C.jsx(en,{variant:"ghost",onClick:se,className:"w-full",children:"Not now"})]})]})}function Aae({count:e,activeStep:t}){return C.jsx("ol",{className:"flex items-center gap-1.5","aria-label":"Progress",children:Array.from({length:e},(n,r)=>C.jsx("li",{className:"flex flex-1 items-center gap-1.5",children:C.jsx("span",{className:Pe("h-1 flex-1 rounded-full transition-colors",r<=t?"bg-accent":"bg-surface-sunken"),"aria-current":r===t?"step":void 0})},r))})}function Iae({title:e,subtitle:t,steps:n,activeStep:r,onBack:a,onExit:s,footer:i,children:u,anchor:c="viewport",bodyFit:f="scroll"}){const h=c==="container";return C.jsx("div",{role:"dialog","aria-modal":"true","aria-label":e,className:Pe("z-50 flex flex-col font-sans text-fg",h?"absolute inset-0":"fixed inset-0 md:items-center md:justify-center md:bg-black/40 md:p-6"),children:C.jsxs("div",{className:Pe("flex min-h-0 w-full flex-1 flex-col bg-canvas",!h&&"md:h-[45rem] md:max-h-[calc(100dvh-3rem)] md:w-[35rem] md:max-w-[calc(100vw-3rem)] md:flex-none md:overflow-hidden md:rounded-xl md:border md:border-line md:shadow-lg"),children:[C.jsxs("header",{className:Pe("shrink-0 border-b border-line px-3 pb-2",h?"pt-3":"pt-[calc(0.75rem+env(safe-area-inset-top,0px))] md:pt-3"),children:[C.jsxs("div",{className:"flex items-center gap-1",children:[C.jsx("button",{type:"button",onClick:a,"aria-label":"Back",className:"flex size-11 items-center justify-center rounded-md text-fg-muted",children:C.jsx(EU,{className:"size-5"})}),C.jsxs("div",{className:"min-w-0 flex-1 text-center",children:[C.jsx("h1",{className:"truncate text-sm font-semibold",children:e}),t&&C.jsx("p",{className:"truncate text-2xs text-fg-muted",children:t})]}),C.jsx("button",{type:"button",onClick:s,"aria-label":"Cancel",className:"flex size-11 items-center justify-center rounded-md text-fg-muted",children:C.jsx(Ps,{className:"size-5"})})]}),n.length>1&&C.jsxs("div",{className:"space-y-1 px-1 pt-2",children:[C.jsx(Aae,{count:n.length,activeStep:r}),C.jsxs("p",{className:"text-2xs text-fg-subtle",children:["Step ",r+1," of ",n.length," · ",n[r]]})]})]}),C.jsx("div",{className:Pe("min-h-0 flex-1",f==="fill"?"overflow-hidden":"overflow-y-auto px-4 py-4"),children:u}),i&&C.jsx("footer",{className:Pe("shrink-0 border-t border-line px-4 py-3",h?"":"pb-[max(0.75rem,env(safe-area-inset-bottom))] md:pb-3"),children:i})]})})}const Rae={inbox:"Inbox",drafts:"Drafts",sent:"Sent",archive:"Archive",junk:"Spam",trash:"Trash",flagged:"Starred",all:"All Mail"};function Tae(e){return Rae[e]}const Oae=new Set(["all","flagged"]);function Nae(e){return Oae.has(e)}const Mae=new Set(["[Gmail]","[Google Mail]"]);function Pae(e){if(e.role)return Nae(e.role)?void 0:Tae(e.role);if(!e.providerPath)return;const t=bv(e.providerPath,e.hierarchyDelimiter);if(!Mae.has(t[0]))return cae(e.providerPath,e.hierarchyDelimiter)}function oNe(e){return e==="inbox"?C.jsx(_U,{className:"size-4"}):e==="drafts"?C.jsx(ete,{className:"size-4"}):e==="sent"?C.jsx(cte,{className:"size-4"}):e==="archive"?C.jsx(Wee,{className:"size-4"}):e==="junk"?C.jsx(Sk,{className:"size-4"}):e==="trash"?C.jsx(hte,{className:"size-4"}):e==="flagged"?C.jsx(dte,{className:"size-4"}):C.jsx(ote,{className:"size-4"})}const kj={filter:"border-line bg-surface-sunken text-fg-muted",scope:"border-accent-2/40 bg-accent-2-soft text-accent-2"},Dae=({label:e,onRemove:t,tone:n="filter",className:r})=>C.jsxs("span",{className:Pe("inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-2xs",kj[n],r),children:[C.jsx("span",{children:e}),C.jsx("button",{type:"button",onClick:t,className:"shrink-0 rounded-full p-0.5 hover:bg-fg-muted/20 transition-colors","aria-label":`Remove filter: ${e}`,children:C.jsx(Ps,{className:"size-3"})})]}),Lae=E.forwardRef(({label:e,onRemove:t,onActivate:n,tone:r="filter",focused:a=!1,onKeyDown:s,onFocusLabel:i,className:u},c)=>C.jsxs("span",{role:"row",tabIndex:-1,className:Pe("inline-flex max-w-48 items-center gap-1 rounded-full border px-2 py-0.5 text-2xs transition-colors",kj[r],a&&"ring-2 ring-ring",u),children:[C.jsx("button",{ref:c,type:"button",role:"gridcell",tabIndex:a?0:-1,onClick:n,onFocus:i,onKeyDown:s,className:Pe("block min-w-0 max-w-full truncate rounded-full outline-none",n?"cursor-pointer":"cursor-default"),children:e}),C.jsx("button",{type:"button",role:"gridcell",tabIndex:-1,onClick:t,className:"block shrink-0 rounded-full p-0.5 transition-colors hover:bg-fg-muted/20","aria-label":`Remove filter: ${e}`,children:C.jsx(Ps,{className:"size-3"})})]}));Lae.displayName="SearchChipRow";const iNe=({tokens:e,className:t})=>e.length===0?null:C.jsx("div",{className:Pe("flex flex-wrap items-center gap-1.5 border-b border-line bg-surface px-row-inset py-1.5",t),children:e.map(n=>C.jsx(Dae,{label:n.label,onRemove:n.onRemove},n.label))}),P6="outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-surface",Uae="outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",jae={nav:{base:Pe("flex w-full items-center gap-2 rounded-md px-2 py-1 text-sm transition-colors",P6),rest:"text-fg-muted hover:bg-surface hover:text-fg",current:"bg-accent-2-soft font-medium text-accent-2"},row:{base:Pe("relative flex w-full items-start text-left transition-colors",Uae),rest:"hover:bg-surface-sunken",current:"bg-accent-2-soft"},inline:{base:Pe("rounded-sm underline-offset-2 transition-colors hover:underline",P6),rest:"text-accent hover:text-accent-hover",current:"font-medium text-accent"}};function zae(e){return e!==void 0&&e!==!1&&e!=="false"}function Fae({variant:e="nav",current:t,"aria-current":n,className:r,children:a,ref:s,...i}){const u=t??n,c=jae[e];return C.jsx("a",{ref:s,"aria-current":u,className:Pe(c.base,zae(u)?c.current:c.rest,r),...i,children:a})}function $ae(e){const[t,n]=E.useState(!1),r=t?Qee:Jee,a=t?"Hide password":"Show password";return C.jsx(ts,{...e,type:t?"text":"password",trailing:C.jsx("button",{type:"button","aria-label":a,"aria-pressed":t,title:a,onClick:()=>n(s=>!s),className:"-my-1 -mr-2 flex size-11 shrink-0 cursor-pointer items-center justify-center rounded-md text-fg-subtle transition-colors hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:C.jsx(r,{className:"size-4","aria-hidden":!0})})})}const Bae={info:"bg-accent-2",success:"bg-positive",warning:"bg-warning",danger:"bg-danger"};function Hae({value:e,max:t,tone:n="info",indeterminate:r=!1,className:a}){const s=r?100:t<=0?0:Math.min(100,Math.max(0,e/t*100));return C.jsx("div",{role:"progressbar","aria-valuenow":r?void 0:e,"aria-valuemin":r?void 0:0,"aria-valuemax":r?void 0:t,className:Pe("h-1.5 w-full overflow-hidden rounded-full bg-surface-sunken",a),children:C.jsx("div",{className:Pe("h-full rounded-full transition-[width] duration-300 ease-out",Bae[n],r&&"w-1/3 animate-pulse"),style:r?void 0:{width:`${s}%`}})})}var Wh;(function(e){e[e.UP=-1]="UP",e[e.DOWN=1]="DOWN"})(Wh||(Wh={}));function qae(e){var t=getComputedStyle(e).overflowY;return e===document.scrollingElement&&t==="visible"?!0:!(t!=="scroll"&&t!=="auto")}function Vae(e,t){if(!qae(e))return!1;if(t===Wh.DOWN){var n=e.scrollTop+e.clientHeight;return n<e.scrollHeight}if(t===Wh.UP)return e.scrollTop>0;throw new Error("unsupported direction")}function Aj(e,t){return Vae(e,t)?!0:e.parentElement==null?!1:Aj(e.parentElement,t)}function Ij(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",n==="top"&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var Wae=`.lds-ellipsis {
15
+ display: inline-block;
16
+ position: relative;
17
+ width: 64px;
18
+ height: 64px;
19
+ }
20
+
21
+ .lds-ellipsis div {
22
+ position: absolute;
23
+ top: 27px;
24
+ width: 11px;
25
+ height: 11px;
26
+ border-radius: 50%;
27
+ background: rgb(54, 54, 54);
28
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
29
+ }
30
+
31
+ .lds-ellipsis div:nth-child(1) {
32
+ left: 6px;
33
+ animation: lds-ellipsis1 0.6s infinite;
34
+ }
35
+
36
+ .lds-ellipsis div:nth-child(2) {
37
+ left: 6px;
38
+ animation: lds-ellipsis2 0.6s infinite;
39
+ }
40
+
41
+ .lds-ellipsis div:nth-child(3) {
42
+ left: 26px;
43
+ animation: lds-ellipsis2 0.6s infinite;
44
+ }
45
+
46
+ .lds-ellipsis div:nth-child(4) {
47
+ left: 45px;
48
+ animation: lds-ellipsis3 0.6s infinite;
49
+ }
50
+
51
+ @keyframes lds-ellipsis1 {
52
+ 0% {
53
+ transform: scale(0);
54
+ }
55
+ 100% {
56
+ transform: scale(1);
57
+ }
58
+ }
59
+ @keyframes lds-ellipsis3 {
60
+ 0% {
61
+ transform: scale(1);
62
+ }
63
+ 100% {
64
+ transform: scale(0);
65
+ }
66
+ }
67
+ @keyframes lds-ellipsis2 {
68
+ 0% {
69
+ transform: translate(0, 0);
70
+ }
71
+ 100% {
72
+ transform: translate(19px, 0);
73
+ }
74
+ }`;Ij(Wae);var Gae=function(){return F.createElement("div",{className:"lds-ellipsis"},F.createElement("div",null),F.createElement("div",null),F.createElement("div",null),F.createElement("div",null))},Kae=function(){return F.createElement("div",null,F.createElement("p",null,"↧  pull to refresh  ↧"))},Yae=`.ptr,
75
+ .ptr__children {
76
+ height: 100%;
77
+ width: 100%;
78
+ overflow: hidden;
79
+ -webkit-overflow-scrolling: touch;
80
+ position: relative;
81
+ }
82
+
83
+ .ptr.ptr--fetch-more-treshold-breached .ptr__fetch-more {
84
+ display: block;
85
+ }
86
+
87
+ .ptr__fetch-more {
88
+ display: none;
89
+ }
90
+
91
+ /**
92
+ * Pull down transition
93
+ */
94
+ .ptr__children,
95
+ .ptr__pull-down {
96
+ transition: transform 0.2s cubic-bezier(0, 0, 0.31, 1);
97
+ }
98
+
99
+ .ptr__pull-down {
100
+ position: absolute;
101
+ overflow: hidden;
102
+ left: 0;
103
+ right: 0;
104
+ top: 0;
105
+ visibility: hidden;
106
+ }
107
+ .ptr__pull-down > div {
108
+ display: none;
109
+ }
110
+
111
+ .ptr--dragging {
112
+ /**
113
+ * Hide PullMore content is treshold breached
114
+ */
115
+ }
116
+ .ptr--dragging.ptr--pull-down-treshold-breached .ptr__pull-down--pull-more {
117
+ display: none;
118
+ }
119
+ .ptr--dragging {
120
+ /**
121
+ * Otherwize, display content
122
+ */
123
+ }
124
+ .ptr--dragging .ptr__pull-down--pull-more {
125
+ display: block;
126
+ }
127
+
128
+ .ptr--pull-down-treshold-breached {
129
+ /**
130
+ * Force opacity to 1 is pull down trashold breached
131
+ */
132
+ }
133
+ .ptr--pull-down-treshold-breached .ptr__pull-down {
134
+ opacity: 1 !important;
135
+ }
136
+ .ptr--pull-down-treshold-breached {
137
+ /**
138
+ * And display loader
139
+ */
140
+ }
141
+ .ptr--pull-down-treshold-breached .ptr__pull-down--loading {
142
+ display: block;
143
+ }
144
+
145
+ .ptr__loader {
146
+ margin: 0 auto;
147
+ text-align: center;
148
+ }`;Ij(Yae);var lNe=function(e){var t=e.isPullable,n=t===void 0?!0:t,r=e.canFetchMore,a=r===void 0?!1:r,s=e.onRefresh,i=e.onFetchMore,u=e.refreshingContent,c=u===void 0?F.createElement(Gae,null):u,f=e.pullingContent,h=f===void 0?F.createElement(Kae,null):f,m=e.children,g=e.pullDownThreshold,y=g===void 0?67:g,S=e.fetchMoreThreshold,w=S===void 0?100:S,x=e.maxPullDownDistance,_=x===void 0?95:x,k=e.resistance,A=k===void 0?1:k,R=e.backgroundColor,N=e.className,O=N===void 0?"":N,T=E.useRef(null),P=E.useRef(null),L=E.useRef(null),q=E.useRef(null),j=!1,U=!1,H=!1,Z=0,se=0;E.useEffect(function(){if(!(!n||!P||!P.current)){var W=P.current;return W.addEventListener("touchstart",re,{passive:!0}),W.addEventListener("mousedown",re),W.addEventListener("touchmove",de,{passive:!1}),W.addEventListener("mousemove",de),window.addEventListener("scroll",we),W.addEventListener("touchend",z),W.addEventListener("mouseup",z),document.body.addEventListener("mouseleave",z),function(){W.removeEventListener("touchstart",re),W.removeEventListener("mousedown",re),W.removeEventListener("touchmove",de),W.removeEventListener("mousemove",de),window.removeEventListener("scroll",we),W.removeEventListener("touchend",z),W.removeEventListener("mouseup",z),document.body.removeEventListener("mouseleave",z)}}},[m,n,s,y,_,a,w]),E.useEffect(function(){var W;if(!((W=T)===null||W===void 0)&&W.current){var G=T.current.classList.contains("ptr--fetch-more-treshold-breached");G||a&&B()<w&&i&&(T.current.classList.add("ptr--fetch-more-treshold-breached"),U=!0,i().then(X).catch(X))}},[a,m]);var B=function(){if(!P||!P.current)return-1;var W=window.scrollY,G=P.current.scrollHeight;return G-W-window.innerHeight},X=function(){requestAnimationFrame(function(){P.current&&(P.current.style.overflowX="hidden",P.current.style.overflowY="auto",P.current.style.transform="unset"),L.current&&(L.current.style.opacity="0"),T.current&&(T.current.classList.remove("ptr--pull-down-treshold-breached"),T.current.classList.remove("ptr--dragging"),T.current.classList.remove("ptr--fetch-more-treshold-breached")),j&&(j=!1),U&&(U=!1)})},re=function(W){H=!1,W instanceof MouseEvent&&(Z=W.pageY),window.TouchEvent&&W instanceof TouchEvent&&(Z=W.touches[0].pageY),se=Z,!(W.type==="touchstart"&&Aj(W.target,Wh.UP))&&(P.current.getBoundingClientRect().top<0||(H=!0))},de=function(W){if(H){if(window.TouchEvent&&W instanceof TouchEvent?se=W.touches[0].pageY:se=W.pageY,T.current.classList.add("ptr--dragging"),se<Z){H=!1;return}W.cancelable&&W.preventDefault();var G=Math.min((se-Z)/A,_);G>=y&&(H=!0,j=!0,T.current.classList.remove("ptr--dragging"),T.current.classList.add("ptr--pull-down-treshold-breached")),!(G>=_)&&(L.current.style.opacity=(G/65).toString(),P.current.style.overflow="visible",P.current.style.transform="translate(0px, "+G+"px)",L.current.style.visibility="visible")}},we=function(W){U||a&&B()<w&&i&&(U=!0,T.current.classList.add("ptr--fetch-more-treshold-breached"),i().then(X).catch(X))},z=function(){if(H=!1,Z=0,se=0,!j){L.current&&(L.current.style.visibility="hidden"),X();return}P.current&&(P.current.style.overflow="visible",P.current.style.transform="translate(0px, "+y+"px)"),s().then(X).catch(X)};return F.createElement("div",{className:"ptr "+O,style:{backgroundColor:R},ref:T},F.createElement("div",{className:"ptr__pull-down",ref:L},F.createElement("div",{className:"ptr__loader ptr__pull-down--loading"},c),F.createElement("div",{className:"ptr__pull-down--pull-more"},h)),F.createElement("div",{className:"ptr__children",ref:P},m,F.createElement("div",{className:"ptr__fetch-more",ref:q},F.createElement("div",{className:"ptr__loader ptr__fetch-more--loading"},c))))};const Zae=1024,Xae=`(min-width: ${Zae}px) and (not ((orientation: portrait) and (pointer: coarse)))`,Qae=e=>{const[t,n]=E.useState(()=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches);return E.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e);n(r.matches);const a=s=>n(s.matches);return r.addEventListener("change",a),()=>r.removeEventListener("change",a)},[e]),t},Jae=e=>e===1?"message":"messages",Q0=e=>`${e.toLocaleString()} ${Jae(e)}`,hw=(e,t)=>e.kind==="delete"?`delete ${Q0(e.count)}`:t===void 0?"empty it":`empty ${Q0(t)}`,Rj=e=>e.kind==="delete"?"Nothing has been deleted.":"Nothing has been emptied.",ese=(e,t,n={})=>{const{trashFolderLabel:r,staleFolderLabel:a,selectedCount:s}=n,i=Rj(t);if(e==="none")return{title:"No folder is set as Trash",description:`${i} reader files deleted mail in the folder you set as Trash, and this account has none.`,pickerPrompt:"Which folder does this account use for deleted mail?",confirmLabel:`Set as Trash and ${hw(t,void 0)}`,cancelLabel:"Cancel"};if(e==="stale")return{title:"The Trash folder you chose is gone",description:a?`${i} You set ${a} as this account's Trash and it is no longer on the mail server — another mail app may have renamed or removed it.`:`${i} The folder you set as this account's Trash is no longer on the mail server — another mail app may have renamed or removed it.`,pickerPrompt:"Which folder should reader use instead?",confirmLabel:`Set as Trash and ${hw(t,void 0)}`,cancelLabel:"Cancel"};const u=t.kind==="delete"?`Deleting ${Q0(t.count)} there erases them from the mail server, and that cannot be restored.`:"Emptying a folder erases everything in it from the mail server, and that cannot be restored.";return{title:"Confirm this account's Trash folder",description:r?`${i} reader files this account's deleted mail in ${r} because of its name — you never chose it, and the mail server doesn't mark it as Trash. ${u}`:`${i} reader files this account's deleted mail in a folder it matched by name — you never chose it, and the mail server doesn't mark it as Trash. ${u}`,pickerPrompt:r?`Confirm ${r}, or pick the folder this account really uses.`:"Pick the folder this account really uses for deleted mail.",confirmLabel:`Set as Trash and ${hw(t,s)}`,cancelLabel:"Cancel"}},tse=(e,t,n,r)=>e.kind==="appointing"?{headline:"Setting the Trash folder…",status:n}:t.kind==="delete"?{headline:`Deleting ${Q0(t.count)}…`,status:r?`Erasing them from ${n}. This can't be undone.`:`Moving them to ${n}`}:{headline:`Emptying ${n}…`,status:"This can't be undone."},nse=(e,t,n,r)=>e==="unconfirmed"&&t.kind==="delete"&&n!==void 0&&r===n,rse=(e,t,n)=>e==="mailbox-pending"?`${n} is still being created on the mail server. Wait for it to finish, then try again.`:`Couldn't set that folder as Trash. ${Rj(t)} Please try again.`,ase=({open:e,reason:t,action:n,folders:r,delimiter:a,trashFolderLabel:s,guessedMailboxId:i,staleFolderLabel:u,accountEmail:c,phase:f,selectedId:h,onSelect:m,onCreateFolder:g,onConfirm:y,onCancel:S})=>{const w=E.useRef(null),x=f.kind==="appointing"||f.kind==="acting";E.useEffect(()=>{x&&w.current?.focus()},[x]);const _=r.find(N=>N.id===h),k=ese(t,n,{trashFolderLabel:s,staleFolderLabel:u,selectedCount:_?.messageCount}),A=nse(t,n,i,h),R=n.kind==="emptyTrash"||A;if(!e)return null;if(x){const N=tse(f,n,_?.label??"",A);return C.jsx(n3,{open:e,onClose:()=>{},title:k.title,children:C.jsxs("div",{ref:w,"data-escape-owner":!0,tabIndex:-1,className:"flex flex-col items-center gap-3 px-5 py-10 text-center outline-none",children:[C.jsx($h,{className:"size-8 animate-spin text-accent-2"}),C.jsx("p",{className:"text-sm font-medium text-fg",children:N.headline}),C.jsx("p",{className:"text-xs text-fg-muted",role:"status","aria-live":"polite",children:N.status})]})})}return C.jsxs(n3,{open:e,onClose:S,title:k.title,children:[C.jsxs("header",{className:"flex items-center gap-2 border-b border-line px-5 py-3",children:[C.jsx(od,{className:`size-4 shrink-0 ${R?"text-danger":"text-warning"}`}),C.jsx("span",{className:"flex-1 text-sm font-semibold text-fg",children:k.title})]}),C.jsxs("div",{className:"flex max-h-[70vh] flex-col",children:[C.jsxs("div",{className:"space-y-1 px-5 py-4",children:[C.jsx("p",{className:"text-sm text-fg-muted",children:k.description}),c&&C.jsx("p",{className:"text-xs text-fg-subtle",children:c})]}),f.kind==="appoint-failed"&&C.jsx("div",{className:"px-5 pb-3",children:C.jsx(K0,{tone:"danger",variant:"soft",children:rse(f.cause,n,_?.label??"That folder")})}),C.jsx("p",{className:"px-5 pb-2 text-sm text-fg-muted",children:k.pickerPrompt}),C.jsx("div",{className:"flex h-[26rem] min-h-0 flex-1 overflow-hidden",children:C.jsx(Tk,{folders:r,selectedId:h,delimiter:a,onSelect:m,onCreateFolder:t==="none"?g:void 0,onCancel:S,labels:{treeAriaLabel:"Folders on this account",optionLabel:N=>`Set ${N.label}${N.messageCount===void 0?"":`, ${N.messageCount} messages`}, as Trash`}})})]}),C.jsxs("footer",{className:"flex items-center justify-end gap-2 border-t border-line px-5 py-3",children:[C.jsx(en,{variant:"secondary",size:"sm",onClick:S,children:k.cancelLabel}),_&&C.jsx(en,{variant:R?"danger":"primary",size:"sm",onClick:()=>y(_.id),children:C.jsx("span",{className:"truncate",children:k.confirmLabel})})]})]})};function sse(e){return e.scopedOutFolder!==void 0||(e.droppedFacets?.length??0)>0||e.droppedSemantic===!0}function ose(e){return`Your search was limited to ${e}. This filter matches these messages in any folder — it can't be pinned to one.`}const Tj=e=>e.length===1?e[0]:e.length===2?`${e[0]} and ${e[1]}`:`${e.slice(0,-1).join(", ")} and ${e[e.length-1]}`;function ise(e){const t=e.length===1?"a filter condition":"filter conditions",n=e.length===1?"isn't":"aren't";return`${Tj(e)} ${n} ${t}, so ${e.length===1?"it was":"they were"} left out — the filter still matches everything else you searched for.`}const pw="add a sender or words to filter on";function uNe(e){if(e.length===0)return`${pw[0].toUpperCase()}${pw.slice(1)}`;const t=e.length===1?"isn't":"aren't",n=e.length===1?"a filter condition":"filter conditions";return`${Tj(e)} ${t} ${n} — ${pw}`}const lse="The filter matches these words literally. Your search also found similar mail by meaning — a filter can't carry that, so it won't catch mail that means the same thing without these words.";function mw({icon:e,children:t}){return C.jsxs("li",{className:"flex items-start gap-2",children:[C.jsx("span",{className:"mt-0.5 shrink-0 text-fg-subtle","aria-hidden":"true",children:e}),C.jsx("span",{children:t})]})}function use({notice:e}){return sse(e)?C.jsxs("div",{className:"rounded-md border border-line bg-surface-sunken px-3 py-2.5",children:[C.jsx("p",{className:"text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:"From your search"}),C.jsxs("ul",{className:"mt-1.5 space-y-1.5 text-xs text-fg-muted",children:[e.scopedOutFolder!==void 0&&C.jsx(mw,{icon:C.jsx(nte,{className:"size-3.5"}),children:ose(e.scopedOutFolder)}),e.droppedFacets&&e.droppedFacets.length>0&&C.jsx(mw,{icon:C.jsx(kU,{className:"size-3.5"}),children:ise(e.droppedFacets)}),e.droppedSemantic&&C.jsx(mw,{icon:C.jsx(e3,{className:"size-3.5"}),children:lse})]})]}):null}const cse={delete:{label:"Delete",present:"Deleting",past:"Deleted",destructive:!0},move:{label:"Move",present:"Moving",past:"Moved",destructive:!1},junk:{label:"Junk",present:"Marking as junk",past:"Marked as junk",destructive:!0},markRead:{label:"Mark read",present:"Marking read",past:"Marked read",destructive:!1},organize:{label:"Organize",present:"Organizing",past:"Organized",destructive:!1}},Ok=e=>cse[e],dse={match:"Apply to",properties:"Properties",folder:"Folder",rule:"Rule",name:"Name",review:"Review",run:"Run"},Oj=e=>dse[e],cNe=({verb:e,mode:t,scope:n,fromSearch:r})=>{const a=r?["properties"]:t==="properties"?["match","properties"]:["match"];return e==="move"?[...a,"folder","review","run"]:e==="organize"?n==="standing"||n==="until"?[...a,"folder","rule","name","review","run"]:[...a,"folder","rule","review","run"]:[...a,"review","run"]},Sv=(e,t)=>Math.max(0,e.indexOf(t)),fse=(e,t)=>Sv(e,t)===0||t==="run",hse=(e,t)=>({clauses:[...e.clauses],matchOperator:e.matchOperator,widen:e.widen,moveMailboxId:e.moveMailboxId,scope:t,until:e.until,name:e.name}),Nj=e=>gj(hse(e,e.scope??"once")),pse="A rule only works within one account — clear the selection, or pick messages from a single account.",mse="A destination only works within one account — clear the selection, or pick messages from a single account.",gse="Matching beyond the messages you picked only works within one account — clear the selection, or pick messages from a single account.",vse="A rule only works within one folder — clear the selection, or pick messages from a single folder.",yse="A destination only works within one folder — clear the selection, or pick messages from a single folder.",bse={spansAccounts:{rule:pse,destination:mse},spansFolders:{rule:vse,destination:yse}},dNe=(e,t)=>{const n=e===void 0?"spansAccounts":t;if(!n)return{accountId:e};const r=bse[n];return{accountId:n==="spansAccounts"?void 0:e,rule:r.rule,destination:r.destination}},Sse=e=>e===void 0?["selected"]:["selected","similar","properties"],wse="This matches no messages, so there is nothing to do. Go back and change what it applies to.",xse="Fill in every property, or take the empty one off.",Cse="Pick a destination first.",Ese="Choose one of the three first.",fNe=(e,t,n)=>{if(e==="properties")return t.clauses.length===0?Ia.noMatch:t.clauses.some(r=>r.value.trim()==="")?xse:void 0;if(e==="folder")return t.moveMailboxId?void 0:Cse;if(e==="rule")return t.scope?t.scope==="once"&&Nj(t).length>0?Ia.bodyTextOnce:t.scope==="until"&&!t.until?.trim()?Ia.noUntilDate:void 0:Ese;if(e==="name"&&!t.name?.trim())return Ia.unnamed;if(e==="review")return n.status==="uncounted"?void 0:n.status==="ready"&&n.count===0&&!n.stale?wse:bj(n)},_se={noMatch:"Nothing matches this yet. Widen a property, or match on a different one.",notIndexed:"This mail isn't indexed yet, so nothing can be counted. The rule still matches once indexing catches up."},kse=e=>_se[e],Nk=({state:e,verb:t,scope:n,matched:r,applied:a,failed:s,failureReason:i})=>{const{label:u,present:c,past:f}=Ok(t),h=f.toLowerCase(),m=n==="standing"||n==="until",y={screenTitle:e==="saving"||e==="backApplyRunning"||e==="statusUnknown"||e==="commitFailed"?u:"Done",showProgress:e==="backApplyRunning"||e==="backApplyComplete"||e==="backApplyFailed"||e==="backApplyRestartFailed"||e==="statusUnknown"||e==="runStopped",failureListLabel:`Not ${h}`};return e==="saving"?{...y,title:m?"Saving rule…":"Applying…",detail:"Nothing has been changed yet.",tone:"progress",dismissLabel:"Close"}:e==="backApplyRunning"?{...y,title:m?"Rule saved. Moving the mail already in your mailbox…":`${c} ${r} messages…`,detail:"This keeps running if you close the wizard.",tone:"progress",dismissLabel:"Close",cancelLabel:"Stop the run"}:e==="statusUnknown"?{...y,title:m?"Rule saved. Its progress over your existing mail is unknown":`${c} — progress unknown`,detail:m?"The connection dropped, so the bar shows the last that was read. The pass runs on the mail server, and the rule keeps working on new mail either way. This keeps checking.":"The connection dropped, so the bar shows the last that was read. The run is on the mail server and carries on either way. This keeps checking.",tone:"warning",dismissLabel:"Close",retryLabel:"Check again"}:e==="backApplyComplete"?{...y,title:m?"Rule saved and applied":`${f} ${a}`,detail:m?`${a} of ${r} already in your mailbox ${h}. New mail follows the rule as it arrives.`:`Every message the match reached was ${h}. Your mail server is still catching up, so the list can lag behind.`,tone:"success",dismissLabel:"Done"}:e==="backApplyFailed"?{...y,title:m?"Rule saved — some mail stayed put":`Not everything was ${h}`,detail:`${a} of ${r} ${h} · the mail server rejected ${s}.${m?" The rule itself is saved and keeps working on new mail.":""}`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:e==="runStopped"?{...y,title:`Stopped after ${a}`,detail:`${a} of ${r} ${h}. The run stopped before it reached the rest, so nothing was sent for them and nothing has happened to them.`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:e==="backApplyRestartFailed"?{...y,title:m?"Rule saved — the retry didn't start":"The retry didn't start",detail:`${a} of ${r} ${h} · the mail server rejected ${s}, which are still where they were.${m?" The rule itself is saved and keeps working on new mail.":""} Check your connection and try again.`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:e==="backApplyStartFailed"?{...y,title:"Rule saved",detail:"New mail follows it automatically. The pass over the mail already in your mailbox never started.",tone:"warning",dismissLabel:"Not now",retryLabel:"Run it over existing mail"}:e==="filterSaved"?{...y,title:"Filter saved",detail:"There is no mail in your mailbox to apply it to yet. New mail follows it as it arrives. You can see it, and when it expires, under Settings › Filters.",tone:"success",dismissLabel:"Done"}:{...y,title:m?"Couldn't save the rule":`Couldn't start ${u.toLowerCase()}`,detail:i??"Nothing has changed.",tone:"danger",dismissLabel:i===void 0?"Not now":"Close",retryLabel:i===void 0?"Try again":void 0}},Ase=e=>`${Yc(e.field)} "${e.value}"`,Mj=(e,t)=>e.map(Ase).join(` ${Rk(t)} `),b0=(e,t)=>e==="selected"?`These ${t} messages`:e==="similar"?Y0({anchorCount:t}):l3("properties"),gw=e=>e==="selected"?"Only the messages ticked in the list.":mj(e),Pj=e=>`Every message ${e}`,Mk="the list is showing",Ise="This reaches every match on the mail server, including the ones the list has not loaded. The search is already the match, so there is nothing to widen.",Rse="This covers messages not shown in the list, and anything else matching by the time it runs.",Tse=({mode:e,selectedCount:t,clauses:n,matchOperator:r,escalatedScope:a})=>e==="escalated"?Pj(a??Mk):e==="properties"?Mj(n,r):b0(e,t),Ose=({mode:e,selectedCount:t,clauses:n,matchOperator:r,escalatedScope:a,escalatedCount:s})=>{if(e==="selected")return`${t} messages`;if(e==="escalated"){const i=a??Mk;return s===void 0?`every message ${i}`:`all ${s.toLocaleString()} messages ${i}`}return e==="similar"?`mail ${Y0({anchorCount:t}).toLowerCase()}`:n.length===0?"every message":`every message where ${Mj(n,r)}`};function Nse({title:e,subtitle:t,steps:n,step:r,onBack:a,onExit:s,footer:i,children:u}){return C.jsx(Iae,{title:e,subtitle:t,steps:n.map(Oj),activeStep:Sv(n,r),onBack:a,onExit:s,footer:i,children:u})}function Zc({selected:e,title:t,description:n,unavailable:r,onSelect:a,children:s}){const i=E.useId();return C.jsxs("div",{className:"space-y-1.5",children:[C.jsxs("button",{type:"button",onClick:a,"aria-pressed":e,"aria-describedby":r&&s?i:void 0,className:Pe("flex w-full items-start gap-3 rounded-lg border p-3 text-left transition-colors",e?"border-accent bg-accent-soft":"border-line bg-surface hover:bg-surface-sunken",r&&"opacity-55"),children:[C.jsx("span",{className:Pe("mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full border",e?"border-accent bg-accent text-accent-fg":"border-line"),children:e&&C.jsx(hv,{className:"size-3"})}),C.jsxs("span",{className:"min-w-0 flex-1",children:[C.jsx("span",{className:"block text-sm font-medium text-fg",children:t}),C.jsx("span",{className:"mt-0.5 block text-xs text-fg-muted",children:n})]})]}),s&&C.jsx("div",{id:i,children:s})]})}const Mse=(e,t)=>e.status==="uncounted"?"The first matches. The total is not known until the run finishes.":e.status==="ready"&&e.count>t&&!e.stale?`and ${e.count-t} more`:vj(e),Pse=(e,t,n)=>n?"Fetching the messages this covers…":e.status==="error"?e.reason:kse(t??"noMatch");function J0({messages:e,count:t,label:n,emptyReason:r,loading:a}){return C.jsxs("section",{className:"flex flex-col rounded-lg border border-line bg-surface",children:[C.jsx("h2",{className:"shrink-0 border-b border-line px-3 py-2 text-2xs font-medium uppercase tracking-wide text-fg-subtle",children:n}),e.length===0?C.jsx("p",{className:"px-3 py-4 text-xs text-fg-muted",children:Pse(t,r,a)}):C.jsxs(C.Fragment,{children:[C.jsx("ul",{className:"min-h-0 max-h-[45dvh] divide-y divide-line overflow-y-auto overscroll-contain md:max-h-[17rem]",children:e.map(s=>C.jsxs("li",{className:"px-3 py-2",children:[C.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[C.jsx("span",{className:"truncate text-xs font-medium text-fg",children:s.sender}),C.jsx("span",{className:"shrink-0 text-2xs text-fg-subtle",children:s.date})]}),C.jsx("p",{className:"truncate text-xs text-fg-muted",children:s.subject})]},s.id))}),C.jsx("p",{className:"shrink-0 border-t border-line px-3 py-2 text-2xs text-fg-subtle",children:Mse(t,e.length)})]})]})}function D6({onBack:e,nextLabel:t,onNext:n,nextVariant:r="primary",blockedReason:a,nudged:s}){const i=E.useId();return C.jsxs("div",{className:"space-y-2",children:[a&&C.jsx(tre,{id:i,reason:a,nudged:s,className:"px-1 text-2xs text-warning"}),C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx(en,{variant:"ghost",size:"touch",onClick:e,icon:C.jsx(EU,{className:"size-4"}),className:"shrink-0",children:"Back"}),C.jsxs(en,{variant:r==="danger"?"danger":"primary",size:"touch",onClick:n,"aria-describedby":a?i:void 0,className:Pe("flex-1",a&&"opacity-55"),children:[t,r==="primary"&&C.jsx(Gee,{className:"size-4"})]})]})]})}function Dse({selectedCount:e,mode:t,accountId:n,onModeChange:r,semanticUnavailable:a,semanticOff:s,semanticErrorDetail:i,semanticFallbackTaken:u,onSemanticFallback:c,escalatedScope:f,sample:h}){if(t==="escalated")return C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"rounded-lg border border-accent bg-accent-soft p-3",children:[C.jsx("p",{className:"text-sm font-medium text-fg",children:Pj(f??Mk)}),C.jsx("p",{className:"mt-1 text-xs text-fg-muted",children:Ise})]}),C.jsx("div",{className:"mt-4",children:C.jsx(J0,{...h})})]});const g=Sse(n).length>1,y=s||a;return C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"space-y-2",children:[!g&&C.jsx("p",{className:"px-1 text-2xs text-warning",children:gse}),C.jsx(Zc,{selected:t==="selected",onSelect:()=>r("selected"),title:b0("selected",e),description:gw("selected")}),g&&C.jsx(Zc,{selected:t==="similar",unavailable:y,onSelect:y?c:()=>r("similar"),title:b0("similar",e),description:gw("similar"),children:s?C.jsxs("p",{role:"status",className:"px-1 text-2xs text-fg-subtle",children:[Qne,u&&" Matching on the senders instead."]}):C.jsxs(C.Fragment,{children:[i&&C.jsxs("p",{role:"status",className:"px-1 text-2xs text-danger",children:["Couldn't find similar messages: ",i]}),u&&C.jsx("p",{role:"status",className:"px-1 text-2xs text-fg-subtle",children:"Similar-mail matching is unavailable right now — matching on the senders instead."})]})}),g&&C.jsx(Zc,{selected:t==="properties",onSelect:()=>r("properties"),title:b0("properties",e),description:gw("properties")})]}),C.jsx("div",{className:"mt-4",children:C.jsx(J0,{...h})})]})}const Lse=[{value:"all",label:Z0("all")},{value:"any",label:Z0("any")}];function Use({clauses:e,matchOperator:t,onMatchOperatorChange:n,clauseEdit:r,onStartAddClause:a,onStartEditClause:s,onRemoveClause:i,onChangeDraft:u,onSubmitClause:c,onCancelClause:f,clauseFields:h,clauseSuggestions:m,conversionNotice:g,semanticFallbackTaken:y,sample:S}){const w=Rk(t);return C.jsxs("div",{className:"space-y-4",children:[y&&C.jsx("p",{role:"status",className:"px-1 text-xs text-fg-muted",children:"Similar-mail matching is unavailable right now. These are the senders of the messages you picked."}),g&&C.jsx(use,{notice:g}),C.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[e.map((x,_)=>C.jsxs(E.Fragment,{children:[_>0&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:w}),C.jsx(Sj,{clause:x,onEdit:()=>s(x.id),onRemove:()=>i(x.id)})]},x.id)),!r&&C.jsx(u3,{label:"Add clause",onClick:a})]}),r&&C.jsx(wj,{draft:r.draft,mode:r.mode,fields:h,suggestions:m,onChangeField:x=>u({...r.draft,field:x}),onChangeValue:x=>u({...r.draft,value:x}),onSubmit:c,onCancel:f}),e.length>1&&C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"text-xs text-fg-muted",children:"Match"}),C.jsx(v0,{name:"wizard-match-operator",size:"sm","aria-label":"Match operator",options:Lse,value:t,onChange:n})]}),C.jsx("p",{className:"px-1 text-xs text-fg-muted",children:"We started you off from what you were looking at. Change any of it — this is where the rule is decided, not the list behind it."}),C.jsx(J0,{...S})]})}function jse({folders:e,mailboxId:t,onSelect:n,onCreateFolder:r,delimiter:a,restriction:s}){const i=e.find(u=>u.id===t);return C.jsxs("div",{className:"flex min-h-0 flex-col gap-3",children:[C.jsx("p",{className:Pe("px-1 text-xs",s?"text-warning":"text-fg-muted"),children:s??(i?`Moving to ${i.label}.`:"Tap a folder to open it, or make a new one where you want it.")}),C.jsx("div",{className:"flex min-h-0 flex-1 overflow-hidden rounded-lg border border-line bg-surface",children:C.jsx(Tk,{folders:e,selectedId:t,onSelect:n,onCreateFolder:r,delimiter:a,labels:{createPending:"Waiting for the mail server to confirm the folder…"}})})]})}function zse({draft:e,onScopeChange:t,onUntilChange:n,restriction:r}){const a=E.useId(),{scope:s,until:i=""}=e,u=Nj(e).length>0,c=r&&C.jsx("p",{className:"px-1 text-2xs text-warning",children:r});return C.jsxs("div",{className:"space-y-2",children:[C.jsx(Zc,{selected:s==="once",onSelect:()=>t("once"),title:y0("once"),description:"A one-off tidy-up. Nothing changes for future mail.",children:u&&C.jsx("p",{className:"px-1 text-2xs text-warning",children:Ia.bodyTextOnce})}),C.jsx(Zc,{selected:s==="standing",unavailable:!!r,onSelect:()=>t("standing"),title:y0("standing"),description:"Saves a rule and applies it to new mail as it arrives, and to the mail already in your mailbox. You'll name it next.",children:c}),C.jsxs(Zc,{selected:s==="until",unavailable:!!r,onSelect:()=>t("until"),title:y0("until"),description:"The same rule, and it stops on a day you pick.",children:[c,s==="until"&&C.jsxs("div",{className:"rounded-lg border border-line bg-surface p-2",children:[C.jsx(Ik,{htmlFor:a,children:"Stops on"}),C.jsx(ts,{id:a,type:"date",value:i,onChange:f=>n(f.target.value)})]})]})]})}function Fse({name:e,onNameChange:t,nudged:n}){const r=E.useId(),a=E.useRef(null);return E.useEffect(()=>{n&&a.current?.focus()},[n]),C.jsxs(C.Fragment,{children:[C.jsx(Ik,{htmlFor:r,children:"Rule name"}),C.jsx(ts,{id:r,ref:a,value:e,placeholder:"Travel confirmations",onChange:s=>t(s.target.value),trailing:e?C.jsx("button",{type:"button","aria-label":"Clear name",onClick:()=>{t(""),a.current?.focus()},className:"-mr-1 flex size-7 shrink-0 items-center justify-center rounded-full text-fg-subtle hover:bg-surface hover:text-fg",children:C.jsx(Ps,{className:"size-4"})}):void 0}),C.jsx("p",{className:"mt-2 text-xs text-fg-muted",children:"We suggested one from this selection. Clear it and write your own if it doesn't read right."})]})}function $se({verb:e,mode:t,selectedCount:n,clauses:r,matchOperator:a,folder:s,scope:i,until:u,ruleName:c,escalatedScope:f,sample:h}){const{label:m}=Ok(e),g={mode:t,selectedCount:n,clauses:r,matchOperator:a,escalatedScope:f,escalatedCount:h.count.status==="ready"?h.count.count:void 0},y=t!=="selected",S=i==="standing"||i==="until";return C.jsxs("div",{className:"space-y-4",children:[C.jsxs("div",{className:"rounded-lg border border-line bg-surface p-3",children:[C.jsxs("p",{className:"text-sm text-fg",children:[C.jsx("span",{className:"font-semibold",children:m})," ",Ose(g),s?` to ${s}`:"",S&&C.jsxs(C.Fragment,{children:[" ","and ",C.jsx("span",{className:"font-medium",children:"save a rule"})," that keeps doing it"]}),i==="until"&&u&&` until ${u}`,"."]}),y&&C.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-warning",children:[C.jsx(od,{className:"mt-px size-3.5 shrink-0"}),t==="escalated"?Rse:"This covers messages not shown in the list."]})]}),C.jsxs("dl",{className:"divide-y divide-line overflow-hidden rounded-lg border border-line bg-surface text-xs",children:[C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Action"}),C.jsx("dd",{className:"font-medium",children:m})]}),C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"shrink-0 text-fg-muted",children:"Apply to"}),C.jsx("dd",{className:"truncate font-medium",children:Tse(g)})]}),s&&C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Destination"}),C.jsx("dd",{className:"font-medium",children:s})]}),i&&C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Scope"}),C.jsxs("dd",{className:"font-medium",children:[y0(i),i==="until"&&u?` · ${u}`:""]})]}),c!==void 0&&C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Rule name"}),C.jsx("dd",{className:"truncate font-medium",children:c})]})]}),C.jsx(J0,{...h})]})}const Pk=e=>({state:e.state,verb:e.verb,scope:e.scope,matched:e.matched,applied:e.applied,failed:e.failedCount??e.failures.length,failureReason:e.failureReason}),Bse=e=>e==="progress"?C.jsx($h,{className:"size-10 animate-spin text-accent"}):e==="warning"?C.jsx(od,{className:"size-10 text-warning"}):e==="danger"?C.jsx(od,{className:"size-10 text-danger"}):C.jsx("span",{className:"flex size-12 items-center justify-center rounded-full bg-accent-soft text-accent",children:C.jsx(hv,{className:"size-6"})});function Hse(e){const{matched:t,applied:n,failures:r}=e,a=Pk(e),s=Nk(a),i=e.state==="runStopped"?"Never sent":"Server rejected";return C.jsxs("div",{className:"space-y-4 pt-2",children:[C.jsxs("div",{className:"flex flex-col items-center gap-3 py-6 text-center",children:[Bse(s.tone),C.jsx("p",{className:"text-sm font-medium",children:s.title}),C.jsx("p",{className:"max-w-xs text-xs text-fg-muted",children:s.detail})]}),s.showProgress&&C.jsx(Hae,{value:n,max:t,tone:a.failed>0?"warning":"success"}),r.length>0&&C.jsxs("section",{className:"rounded-lg border border-line bg-surface",children:[C.jsx("h2",{className:"border-b border-line px-3 py-2 text-2xs font-medium uppercase tracking-wide text-fg-subtle",children:s.failureListLabel}),C.jsx("ul",{className:"divide-y divide-line",children:r.map(u=>C.jsxs("li",{className:"px-3 py-2",children:[C.jsx("p",{className:"truncate text-xs font-medium",children:u.sender}),C.jsx("p",{className:"truncate text-xs text-fg-muted",children:u.subject}),C.jsx(a3,{className:"mt-1",tone:"warning",children:i})]},u.id))})]})]})}function qse(e){const{onRetry:t,onDismiss:n,onCancelRun:r}=e,a=Nk(Pk(e));return a.cancelLabel!==void 0&&r?C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx(en,{variant:"ghost",size:"md",className:"min-h-11 shrink-0",onClick:r,children:a.cancelLabel}),C.jsx(en,{variant:"primary",size:"md",className:"min-h-11 flex-1",onClick:n,children:a.dismissLabel})]}):a.retryLabel===void 0?C.jsx(en,{variant:a.tone==="progress"?"ghost":"primary",size:"touch",className:"w-full",onClick:n,children:a.dismissLabel}):C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx(en,{variant:"ghost",size:"touch",onClick:n,children:a.dismissLabel}),C.jsx(en,{variant:"primary",size:"touch",className:"flex-1",onClick:t,children:a.retryLabel})]})}const Vse={match:{subtitle:"What should this apply to?"},properties:{title:"Match properties",subtitle:"Which properties have to match?"},folder:{title:"Move to",subtitle:"Pick a destination"},rule:{title:"Organize",subtitle:"How long should this hold?"},name:{title:"Name the rule",subtitle:"So you can find it later"},review:{title:"Review",subtitle:"Check before it runs"},run:{}},ys=(e,t)=>{if(e===void 0)throw new Error(`The ${Oj(t)} step was rendered without its answers.`);return e};function hNe(e){const{verb:t,steps:n,onExit:r,onContinue:a,onCommit:s}=e,{label:i,destructive:u}=Ok(t),c=n[Sv(n,e.step)],f=Vse[c],h=fse(n,c)?r:e.onBack,m=()=>c==="match"?C.jsx(Dse,{...ys(e.match,c)}):c==="properties"?C.jsx(Use,{...ys(e.properties,c)}):c==="folder"?C.jsx(jse,{...ys(e.folder,c)}):c==="rule"?C.jsx(zse,{...ys(e.rule,c)}):c==="name"?C.jsx(Fse,{...ys(e.name,c),nudged:e.nudged}):c==="review"?C.jsx($se,{...ys(e.review,c)}):C.jsx(Hse,{...ys(e.run,c)}),g=()=>{if(c==="run")return C.jsx(qse,{...ys(e.run,c)});if(c==="review"){const w=ys(e.review,c);return C.jsx(D6,{onBack:h,nextLabel:w.scope?yj(w.scope):i,nextVariant:u?"danger":"primary",onNext:s,blockedReason:e.blockedReason,nudged:e.nudged})}return C.jsx(D6,{onBack:h,nextLabel:"Continue",onNext:a,blockedReason:e.blockedReason,nudged:e.nudged})},y=()=>c!=="run"?f.title??i:Nk(Pk(ys(e.run,c))).screenTitle,S=c==="match"&&e.match?.mode==="escalated"?"What this applies to":f.subtitle;return C.jsx(Nse,{title:y(),subtitle:S,steps:n,step:c,onBack:h,onExit:r,footer:g(),children:m()})}const Wse={preparing:"Getting the new version ready",restarting:"Restarting Remit",reconnecting:"Waiting for Remit to answer again"};function L6(e){return Wse[e]}function Gse(e){return e<90?"This usually takes about a minute.":e<240?"Longer than usual. Remit is still trying to reach the server.":"Still no answer. Remit keeps trying."}function pNe(e,t=Date.now()){const n=Math.floor((t-e)/6e4);if(n<1)return"just now";if(n<60)return`${n}m ago`;const r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function mNe(e){return new Date(e).toLocaleDateString(void 0,{dateStyle:"medium"})}function Kse({children:e,show:t,label:n="Update available"}){return C.jsxs("span",{className:"relative inline-flex",children:[e,t&&C.jsxs(C.Fragment,{children:[C.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-accent-2"}),C.jsx("span",{className:"sr-only",children:n})]})]})}const U6=["preparing","restarting","reconnecting"],Yse='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';function Dj(e){E.useEffect(()=>{const t=e.current;if(!t)return;const n=()=>Array.from(t.querySelectorAll(Yse));(n()[0]??t).focus();const r=a=>{if(a.key!=="Tab")return;const s=n();if(s.length===0){a.preventDefault(),t.focus();return}const i=s[0],u=s[s.length-1],c=document.activeElement;if(a.shiftKey&&(c===i||!t.contains(c))){a.preventDefault(),u.focus();return}!a.shiftKey&&(c===u||!t.contains(c))&&(a.preventDefault(),i.focus())};return window.addEventListener("keydown",r,!0),()=>window.removeEventListener("keydown",r,!0)},[e])}const Lj="fixed inset-0 z-50 flex flex-col items-center justify-center gap-6 bg-canvas p-6 text-center outline-none";function Zse({target:e,phase:t,elapsedSeconds:n}){const r=E.useRef(null);Dj(r),xk({id:"self-update",open:!0});const a=U6.indexOf(t);return C.jsxs("div",{ref:r,role:"dialog","aria-modal":"true","aria-labelledby":"self-update-progress-title",tabIndex:-1,className:Lj,children:[C.jsxs("div",{className:"max-w-md space-y-2",children:[C.jsxs("h1",{id:"self-update-progress-title",className:"text-lg font-semibold text-fg",children:["Installing Remit ",e]}),C.jsx("p",{className:"text-sm text-fg-muted",children:"Remit is restarting, so this page has no server to talk to for a moment. Leave this open — it reconnects on its own."})]}),C.jsx("ol",{className:"w-full max-w-sm space-y-2 text-left",children:U6.map((s,i)=>{const u=i<a,c=i===a;return C.jsxs("li",{className:Pe("flex items-center gap-3 rounded-sm border px-row-inset py-2 text-sm",c?"border-line-strong bg-surface text-fg":"border-line bg-surface-sunken text-fg-subtle"),children:[u?C.jsx(hv,{className:"size-4 shrink-0 text-positive","aria-hidden":!0}):c?C.jsx($h,{className:"size-4 shrink-0 animate-spin text-accent-2","aria-hidden":!0}):C.jsx("span",{className:"size-4 shrink-0 rounded-full border border-line-strong"}),L6(s)]},s)})}),C.jsxs("p",{"aria-live":"polite",className:"max-w-md text-xs text-fg-subtle",children:[C.jsx("span",{className:"sr-only",children:`${L6(t)}. `}),Gse(n)]})]})}function Xse({attemptedVersion:e,previousVersion:t,elapsedSeconds:n,logsCommand:r,onRetryConnection:a}){const s=E.useRef(null);Dj(s);const i=Math.max(1,Math.round(n/60));return C.jsxs("div",{ref:s,role:"alertdialog","aria-modal":"true","aria-labelledby":"self-update-unreachable-title",tabIndex:-1,className:Lj,children:[C.jsx(Sk,{className:"size-12 shrink-0 text-danger","aria-hidden":!0}),C.jsxs("div",{className:"max-w-lg space-y-3",children:[C.jsx("h1",{id:"self-update-unreachable-title",className:"text-lg font-semibold text-fg",children:"Remit has not answered since the restart"}),C.jsxs("p",{className:"text-sm text-fg-muted",children:["Installing ",e," started ",i," minute",i===1?"":"s"," ago and the server has been silent since. Your mail is safe at your provider — it was never part of the update."]}),C.jsxs("p",{className:"text-sm text-fg-muted",children:["Remit rolls back to ",t," on its own when the new version fails to start, but this page cannot confirm that from here. Check the server directly:"]}),C.jsx("code",{className:"block rounded-xs bg-surface-sunken px-3 py-2 text-left text-xs text-fg-muted",children:r})]}),C.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2",children:C.jsx(en,{size:"sm",onClick:a,children:"Try connecting again"})})]})}function Qse(e,t,n){if(!t.allowPrivateDomains&&e.length>3){const r=e.length-1,a=e.charCodeAt(r),s=e.charCodeAt(r-1),i=e.charCodeAt(r-2),u=e.charCodeAt(r-3);if(a===109&&s===111&&i===99&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="com",!0;if(a===103&&s===114&&i===111&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="org",!0;if(a===117&&s===100&&i===101&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="edu",!0;if(a===118&&s===111&&i===103&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="gov",!0;if(a===116&&s===101&&i===110&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="net",!0;if(a===101&&s===100&&i===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="de",!0}return!1}const Pl=new Uint8Array([1,2,1,1,1,1,1,1,1,1,1,1,0,2,2,2,0,2,2,0,2,0,0,1,0,0,2,1,1,1,1,1,1,0,0,0,1,0,1,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,0,1,1,0,1,1,0,0,0,0,0,0,1,1,1,0,2,0,0,0,0,0,0,0,2,0,2,2,0,0,2,2,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,2,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,2,0,0,0,0,2,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,2,2,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,1,0,2,2,0,0,0,2,0,1,1,0,2,0,2,2,0,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,0,0,0,0,1,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,2,2,0,2,2,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,2,0,2,2,2,2,0,0,0,0,2,0,0,0,0,0,0,2,2,0,0,0,2,2,1,1,1,1,2,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,2,2,0,0,2,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,2,2,1,2,1,1,1,2,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,2,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,0,0,0,0]),e1=new Uint16Array([0,0,0,10,11,18,106,111,117,124,130,136,145,146,147,148,149,150,151,153,154,155,157,159,226,239,241,242,243,258,265,266,269,270,271,274,276,295,296,298,307,312,313,331,332,335,337,338,340,374,375,377,380,381,385,387,391,394,426,429,442,443,451,452,454,464,478,479,480,489,490,527,532,548,568,574,615,616,643,670,671,819,825,828,829,830,835,840,849,871,872,873,874,875,876,877,895,897,898,901,903,904,906,908,923,938,943,944,946,947,948,949,950,952,955,960,961,962,964,965,968,971,972,973,986,988,1e3,1011,1019,1021,1061,1064,1068,1069,1071,1074,1085,1087,1097,1099,1105,1107,1108,1110,1113,1114,1115,1167,1169,1171,1191,1192,1193,1194,1196,1207,1238,1249,1261,1270,1277,1282,1295,1306,1319,1320,1331,1365,1366,1367,1382,1397,1469,1470,1472,1473,1507,1508,1509,1512,1516,1518,1547,1548,1556,1557,1558,1560,1562,1563,1565,1566,1567,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1594,1595,1596,1598,2053,2056,2057,2059,2066,2073,2083,2087,2098,2099,2100,2112,2113,2115,2117,2118,2125,2126,2128,2129,2131,2132,2133,2134,2135,2209,2211,2232,2233,2234,2236,2262,2263,2314,2315,2317,2324,2330,2340,2350,2403,2404,2405,2415,2429,2430,2433,2440,2441,2449,2450,2451,2452,2453,2464,2465,2466,2468,2469,2470,2471,2473,2483,2495,2501,2533,2537,2539,2540,2542,2543,2554,2555,2557,2565,2572,2578,2583,2584,2590,2593,2599,2606,2607,2614,2622,2623,2624,2662,2668,2683,2684,2689,2707,2738,2756,2758,2761,2769,2771,2778,2830,2854,2855,2856,2857,2858,2859,2860,2861,2868,2869,2870,2871,2872,2873,2875,2876,2880,2964,2977,2978,3414,3418,3432,3484,3512,3534,3592,3614,3629,3692,3743,3781,3817,3842,3984,4030,4081,4100,4134,4149,4169,4199,4230,4253,4284,4314,4346,4373,4448,4470,4508,4518,4552,4571,4597,4639,4689,4715,4784,4785,4787,4810,4833,4869,4900,4917,4974,4987,5011,5040,5042,5076,5092,5120,5425,5434,5443,5450,5467,5471,5477,5516,5518,5525,5532,5541,5548,5549,5560,5563,5578,5579,5588,5589,5598,5607,5613,5615,5616,5617,5653,5654,5656,5664,5671,5684,5688,5690,5691,5697,5704,5718,5728,5733,5741,5749,5755,5756,5760,5762,5763,5775,5776,5777,5778,5780,5781,5784,5786,5789,5793,5794,5800,5801,5802,5804,5806,5808,5809,5810,5813,5815,5818,5819,5821,6019,6026,6027,6037,6042,6059,6073,6082,6083,6084,6088,6089,6091,6093,6099,6100,6103,6104,6106,6107,6108,7008,7009,7013,7031,7040,7043,7050,7051,7053,7054,7055,7057,7109,7110,7113,7114,7231,7232,7243,7254,7261,7264,7273,7274,7275,7290,7345,7536,7538,7539,7541,7546,7559,7574,7581,7590,7593,7596,7603,7611,7615,7616,7617,7631,7635,7644,7645,7646,7650,7685,7686,7703,7710,7718,7719,7724,7732,7776,7777,7783,7786,7797,7802,7803,7806,7839,7840,7846,7853,7854,7863,7872,7887,7891,7943,7944,7949,7951,7954,7956,7957,7958,7967,7981,7989,8003,8015,8016,8018,8020,8042,8053,8059,8060,8072,8084,8171,8183,8185,8194,8197,8203,8228,8231,8232,8233,8235,8238,8241,8252,8254,8256,8284,8358,8365,8369,8370,8379,8401,8402,8407,8408,8487,8489,8491,8500,8504,8510,8516,8522,8532,8537,8538,8556,8567,8572,8577,8587,8593,8597,8603,8609,10217,10218,10219,10226,10228]),t1=new Uint8Array([3,3,3,3,3,3,3,3,5,8,8,2,2,3,3,3,3,3,8,5,5,5,5,5,3,3,5,5,9,12,19,8,19,8,11,9,9,8,7,7,6,8,9,16,10,7,7,11,8,6,6,9,7,11,7,14,4,4,4,4,4,4,10,7,6,6,6,6,10,10,6,10,10,22,11,9,10,10,10,9,10,8,7,7,7,8,21,13,11,11,9,10,9,13,10,8,8,9,12,9,7,10,7,7,13,7,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,8,6,3,3,3,3,3,3,2,5,3,3,3,7,2,2,2,2,2,2,3,3,3,1,1,7,8,5,2,2,7,2,2,1,4,1,11,9,9,5,5,8,5,5,5,5,5,5,5,3,3,3,3,3,5,11,9,9,13,7,14,7,6,6,6,7,6,6,6,6,6,10,7,11,9,4,4,4,4,4,4,6,6,6,6,6,8,7,10,9,9,9,8,9,8,10,6,9,9,8,10,10,7,8,1,9,10,12,12,12,10,9,9,10,10,9,9,1,1,5,3,3,3,3,3,3,3,3,3,3,3,3,6,6,6,4,3,3,3,7,4,4,4,3,3,6,7,3,4,1,2,2,2,6,1,2,2,2,2,2,12,5,3,8,9,13,4,4,13,9,9,11,7,3,12,9,2,2,2,3,3,3,3,3,8,2,2,3,3,3,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,3,7,10,15,7,15,15,20,15,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,7,8,6,8,8,6,8,13,8,8,6,13,8,11,13,8,6,13,8,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,9,9,9,10,14,14,11,13,13,9,9,9,9,9,9,2,6,9,2,2,3,3,3,3,3,3,3,3,3,4,4,4,2,3,3,3,3,3,3,7,7,2,3,2,2,5,3,3,3,3,3,3,4,2,2,2,2,2,2,3,3,3,3,3,3,3,4,5,7,2,2,12,8,10,8,10,7,18,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,2,2,3,3,3,5,5,3,8,8,6,8,6,6,4,6,7,7,7,10,11,2,5,5,3,3,3,3,3,3,5,5,6,11,10,7,7,7,4,4,4,2,3,3,3,3,3,2,7,5,5,3,3,3,3,3,3,3,3,7,7,7,11,7,6,9,6,6,8,10,8,6,8,13,4,4,4,4,4,10,8,11,8,8,8,10,10,7,10,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,7,10,13,7,8,7,11,8,8,6,9,8,8,6,6,6,8,8,6,6,6,6,6,9,7,6,4,4,4,4,4,4,4,6,6,6,9,7,8,10,8,8,2,3,3,3,3,3,2,8,9,9,2,2,2,3,3,3,2,3,3,3,9,2,2,3,3,3,3,3,3,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,12,5,5,3,5,4,2,3,2,4,3,9,2,2,2,2,2,5,5,3,8,8,13,6,10,9,4,7,9,11,2,3,7,3,3,4,1,3,4,2,9,3,3,12,5,3,7,10,10,7,4,4,6,14,7,9,7,13,2,2,2,2,2,2,3,3,3,3,3,8,15,4,4,2,3,3,3,7,4,9,9,2,3,3,3,5,3,2,2,7,2,7,6,6,7,2,4,2,2,2,2,2,2,8,8,8,9,5,2,3,3,3,3,3,3,10,7,4,4,4,4,3,4,2,3,3,3,3,3,10,7,4,4,4,4,2,3,3,3,3,10,7,4,4,4,4,3,9,6,6,6,9,13,9,2,2,2,8,7,9,5,3,3,3,5,5,12,9,10,7,8,7,6,8,6,11,12,7,9,10,4,4,7,8,11,6,7,9,8,7,10,8,9,15,7,8,5,4,7,2,3,3,3,2,14,10,2,14,10,2,14,3,9,13,13,10,14,16,17,11,2,14,2,14,3,9,13,10,14,16,17,11,14,10,14,2,7,3,10,7,14,10,2,14,10,9,9,17,6,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,10,10,10,12,9,4,10,11,8,8,8,7,9,5,3,3,3,3,3,3,3,3,5,8,4,4,4,4,4,4,6,16,3,3,14,3,14,2,14,9,13,10,10,14,16,17,11,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,9,9,9,9,9,9,2,14,9,13,10,10,14,16,17,11,6,2,14,9,17,13,10,10,14,16,17,11,6,2,14,9,13,10,14,16,17,11,2,14,9,13,10,16,11,2,14,10,19,7,2,14,9,13,10,19,10,7,14,16,17,11,6,2,14,9,13,10,19,7,14,16,17,11,2,14,9,13,17,13,10,10,14,16,17,11,6,3,2,14,9,13,10,10,14,16,17,11,6,9,10,12,14,14,14,12,12,12,12,12,14,14,14,10,10,10,14,9,9,9,9,14,14,14,13,13,14,9,9,9,9,9,9,4,11,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,9,10,10,7,17,3,3,12,12,16,15,15,12,14,14,14,20,20,13,12,12,12,12,12,12,20,25,14,14,12,12,10,10,10,10,9,9,9,25,4,9,17,10,7,14,16,21,13,13,14,20,14,13,17,24,9,12,13,25,13,21,20,17,9,9,9,9,9,9,12,17,4,4,9,9,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,1,8,7,11,11,1,3,3,3,4,8,9,10,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,7,4,4,4,4,4,4,4,4,4,4,9,12,6,14,4,12,7,2,2,1,2,7,6,4,4,4,6,8,8,7,4,5,6,3,3,3,3,4,16,8,3,5,4,3,3,3,5,2,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,12,7,7,13,9,10,12,8,9,7,8,5,12,10,13,14,5,5,5,13,5,5,5,3,3,3,5,16,5,5,5,5,5,7,12,14,8,12,8,10,12,9,11,7,9,7,10,7,13,9,7,12,8,17,7,7,16,10,13,13,8,10,10,14,17,7,16,16,15,8,10,10,12,17,7,17,14,7,10,17,8,7,7,7,8,15,15,7,14,10,10,10,11,11,7,7,13,8,10,7,16,7,8,7,14,17,12,10,11,21,8,9,7,13,9,8,13,6,12,7,6,13,10,10,10,8,18,9,17,13,10,12,6,13,6,11,8,13,10,13,18,13,11,13,8,16,7,10,8,16,12,10,8,8,6,14,11,8,15,8,8,7,7,12,7,8,9,14,15,8,9,10,9,15,7,8,8,12,13,9,10,15,15,13,7,10,10,20,7,6,9,6,6,14,11,14,11,12,9,10,16,16,12,7,11,28,8,11,10,7,21,8,7,9,4,4,4,17,7,8,6,9,6,6,13,6,6,6,6,18,20,14,8,11,12,9,10,13,15,19,8,9,12,7,10,16,12,9,9,9,14,12,11,9,12,11,18,9,9,9,10,7,7,16,8,9,7,13,12,10,18,7,8,11,7,7,8,8,13,7,7,7,11,15,13,11,7,8,15,11,7,8,18,14,13,18,15,10,12,12,9,7,11,11,8,7,10,8,14,12,10,18,7,10,9,7,8,13,10,14,9,10,8,8,23,7,7,11,12,12,17,7,7,11,11,17,16,16,7,8,11,14,14,8,10,7,7,16,16,13,9,11,9,15,15,11,11,7,7,14,7,9,7,7,16,10,13,10,11,14,7,11,10,11,7,11,10,11,15,11,15,10,12,17,10,14,13,11,11,12,13,10,7,13,10,16,12,21,9,10,10,7,11,14,17,7,7,8,11,12,8,15,14,14,8,17,12,10,10,7,9,11,7,10,7,11,18,7,11,7,12,11,8,8,14,12,7,8,15,3,7,7,5,2,9,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,5,3,3,3,3,3,3,4,4,3,3,3,3,3,3,5,11,6,4,7,10,7,7,11,1,10,2,2,3,3,3,3,3,3,3,3,5,7,3,5,6,3,3,5,2,2,5,3,4,13,11,3,3,6,3,5,14,2,2,3,8,2,2,12,5,18,5,3,3,3,16,5,5,5,10,7,13,12,13,9,12,14,19,9,9,21,9,9,10,6,9,6,15,10,6,12,8,6,10,15,4,4,6,6,9,9,12,16,14,23,7,7,7,14,9,7,7,11,14,10,7,10,10,10,12,6,11,10,13,11,15,11,7,12,10,3,7,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,3,7,2,5,5,3,3,5,5,5,5,7,6,6,6,4,4,4,4,4,4,6,6,6,6,6,7,10,2,2,2,5,5,5,5,3,3,3,3,3,5,5,10,9,11,8,7,12,8,9,7,6,13,11,6,13,7,9,9,4,4,4,4,4,4,6,10,7,8,13,8,8,9,14,8,10,7,7,7,9,6,9,7,2,12,5,3,3,13,4,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,4,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,4,4,4,4,4,4,4,4,4,9,3,3,3,3,3,3,3,3,3,3,4,2,2,2,5,3,3,3,3,3,3,3,3,4,4,1,7,6,4,12,3,3,3,3,3,8,7,3,3,3,3,3,3,4,4,11,14,2,8,3,5,5,8,10,8,6,4,7,17,7,4,5,2,6,3,5,2,4,4,2,12,5,5,3,15,13,10,8,11,2,2,3,3,3,3,3,3,3,3,4,4,5,3,3,3,3,4,18,2,12,5,3,3,3,3,3,5,16,8,8,9,6,6,4,4,4,4,31,6,6,10,11,21,10,9,7,10,7,7,2,4,4,4,4,6,5,3,3,4,3,3,3,3,3,3,3,3,3,6,6,6,2,2,2,5,3,3,3,7,7,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,8,2,3,3,3,3,3,5,9,11,3,3,3,3,4,4,3,3,3,3,3,5,10,9,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,11,10,10,10,10,10,11,10,11,10,11,10,9,9,11,3,3,3,3,3,3,5,3,7,8,8,7,6,6,11,4,4,4,7,8,9,9,2,3,7,4,4,2,5,5,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,2,2,5,5,5,5,5,3,3,5,5,5,7,7,6,6,6,4,4,4,4,4,4,4,4,4,4,6,6,8,8,1,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,6,9,12,3,7,10,7,2,2,3,3,3,3,3,4,3,3,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,6,6,8,6,7,4,4,4,4,4,4,6,7,5,5,20,19,8,10,9,7,10,6,8,11,6,6,6,6,13,12,8,6,7,14,11,9,2,5,3,3,6,2,3,2,2,2,2,2,2,2,5,4,3,7,6,4,7,4,3,6,4,7,2,7,7,7,5,5,5,5,3,3,3,3,3,3,3,3,3,3,5,9,10,10,8,11,7,8,20,7,8,9,8,12,6,6,6,8,9,8,12,6,6,8,13,10,12,6,6,7,7,8,9,6,4,4,4,4,4,4,4,10,6,6,6,7,14,11,10,7,8,10,8,11,14,11,11,9,7,9,8,11,9,17,10,9,2,2,2,9,3,3,3,3,15,14,9,5,5,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,15,12,22,19,17,18,18,19,21,7,16,16,5,5,5,5,5,5,5,5,5,5,5,7,5,5,5,5,5,5,5,5,5,5,5,9,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,7,16,11,11,7,7,7,7,17,7,8,12,15,9,19,7,19,8,16,21,11,12,19,14,22,7,7,7,7,7,7,7,7,7,7,7,16,16,19,24,12,7,14,7,12,7,8,10,10,13,7,12,12,7,7,10,18,15,12,16,7,14,12,17,10,16,17,12,17,25,7,7,7,13,6,9,6,9,18,6,6,11,20,10,6,6,6,6,6,6,6,17,6,6,6,15,6,6,6,6,6,8,14,11,12,15,13,19,17,21,7,18,8,13,13,8,12,8,6,6,13,6,15,15,16,6,6,16,6,6,6,14,6,18,6,6,6,17,18,9,13,15,8,19,8,15,15,18,14,16,4,4,4,4,4,4,4,4,4,4,4,4,6,11,10,11,6,21,23,12,17,12,11,14,13,22,15,15,11,12,14,12,7,12,8,14,12,18,10,8,16,19,17,12,14,15,8,9,19,17,12,13,13,15,18,13,23,24,23,21,17,24,8,21,8,14,14,16,14,8,8,15,20,8,19,21,9,8,13,12,13,15,11,8,11,9,9,8,11,8,21,14,21,15,15,13,7,19,7,7,7,7,7,7,16,12,17,18,7,7,11,11,7,9,9,2,2,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,4,5,5,5,5,5,5,5,5,3,3,10,10,7,9,7,7,7,6,8,6,6,6,6,6,6,6,7,6,8,6,6,9,7,7,7,4,4,4,4,4,4,4,4,8,9,8,7,8,7,8,10,7,5,5,5,5,5,5,3,9,7,7,8,6,6,6,6,6,6,6,6,9,6,6,9,11,13,7,8,9,9,5,5,5,7,8,6,6,6,6,6,6,6,7,8,9,7,10,9,10,7,8,5,5,5,5,5,5,7,7,9,8,7,7,6,6,6,6,6,6,10,6,6,6,6,6,6,6,6,6,6,6,9,10,4,4,4,4,8,7,7,10,10,9,8,8,15,9,8,8,8,8,8,9,10,9,10,7,8,13,5,5,5,5,5,3,3,7,7,8,6,6,6,4,4,11,9,7,8,9,10,7,5,5,5,5,5,3,3,7,6,6,13,7,9,8,7,5,5,5,5,5,5,5,5,3,3,3,3,7,8,7,8,13,6,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,6,6,6,6,7,6,7,6,6,9,7,4,4,4,4,4,4,4,7,8,7,8,9,8,8,8,7,10,7,8,5,5,5,5,5,5,5,5,3,7,7,7,7,9,7,10,9,6,6,6,6,6,8,8,6,6,6,7,6,6,6,9,9,4,4,13,7,10,9,9,12,7,8,8,10,8,8,8,8,8,8,5,5,5,5,3,7,7,11,7,9,8,8,6,6,10,6,8,8,8,6,7,6,6,12,4,4,4,4,4,4,4,4,4,9,8,8,16,8,9,8,7,5,5,5,5,5,3,3,7,7,7,10,15,8,9,8,9,9,6,6,6,6,6,6,7,4,8,7,8,8,7,8,11,8,5,5,5,5,5,3,7,7,6,11,16,7,6,4,4,4,4,9,9,8,8,8,13,12,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,7,8,8,9,13,7,7,7,9,8,8,9,12,7,12,7,12,8,7,10,12,9,9,6,6,8,8,6,6,6,6,6,6,6,9,8,9,11,8,6,6,6,6,6,12,7,6,6,6,9,7,7,6,6,6,6,6,11,9,6,6,6,6,6,7,9,4,4,4,4,4,4,4,4,9,9,9,9,7,7,7,7,7,11,7,7,8,8,8,8,8,8,9,8,9,9,7,7,11,11,7,12,8,8,8,8,8,7,8,8,8,8,8,13,12,8,8,8,8,7,7,7,9,5,5,5,5,5,5,5,3,3,7,7,11,7,8,8,8,6,6,6,6,6,6,6,6,6,6,6,10,11,6,7,9,4,4,4,4,4,4,9,9,8,9,8,8,8,7,7,5,5,5,5,5,5,5,5,5,5,3,3,11,7,7,7,9,6,6,11,8,10,6,6,6,12,8,8,7,6,6,8,7,4,4,4,4,4,4,4,4,9,10,9,9,8,10,9,11,8,5,5,5,7,6,6,8,7,4,4,4,4,8,7,7,8,7,8,8,5,5,5,5,7,7,8,8,8,6,6,6,6,6,10,8,9,13,6,7,6,6,8,7,8,4,4,4,4,11,8,8,8,10,5,5,8,7,8,13,8,7,6,8,6,9,7,8,7,5,5,5,5,5,5,3,3,7,8,9,6,4,8,10,10,8,12,9,13,2,7,5,5,5,5,5,7,7,10,6,6,6,6,6,6,6,8,4,4,9,8,8,8,14,8,8,8,9,8,5,5,5,5,5,3,3,9,6,6,6,6,10,12,6,6,6,6,6,6,6,4,4,4,4,11,8,7,8,8,8,5,5,3,3,3,3,7,7,6,8,6,8,11,7,6,6,6,7,4,8,11,9,10,5,5,5,3,3,3,7,7,8,9,8,15,9,6,6,6,6,6,6,11,11,4,4,4,4,4,7,9,9,10,8,7,5,5,5,5,5,5,3,3,8,6,6,6,6,6,6,6,6,6,9,7,4,4,4,4,4,9,9,8,8,10,13,5,5,5,3,17,7,7,7,7,7,8,6,8,13,6,6,6,6,6,6,6,6,4,4,4,9,10,8,8,8,5,5,5,5,3,7,7,7,8,8,6,6,6,8,8,8,9,10,8,4,8,10,9,8,8,8,9,13,10,5,5,5,5,5,5,5,5,5,5,3,3,7,8,9,9,7,7,7,10,9,9,8,9,8,8,8,6,6,6,6,6,6,6,6,6,6,6,6,6,8,12,6,6,6,6,6,6,6,6,6,12,4,4,4,4,4,4,4,4,4,4,4,11,8,8,9,9,10,8,9,7,7,5,5,5,5,5,5,3,7,8,7,6,6,8,6,6,10,4,7,8,9,12,8,7,7,5,5,5,5,5,5,3,3,7,14,7,9,8,8,6,6,8,12,12,6,6,7,7,10,4,4,4,4,4,9,9,14,9,13,8,7,5,5,5,6,6,6,7,4,8,7,5,5,5,5,5,5,5,5,3,3,7,7,7,8,6,6,6,6,6,6,12,6,6,6,6,4,4,9,9,8,8,11,7,7,7,5,5,5,3,9,8,6,6,7,4,4,4,4,4,4,8,8,11,5,5,5,7,7,7,9,6,6,6,6,6,6,9,8,4,4,4,4,7,12,9,8,8,8,7,10,10,5,5,5,5,5,5,5,3,11,14,8,7,8,8,6,6,6,6,6,8,7,6,6,6,7,6,8,9,4,4,4,7,8,9,7,9,7,7,9,8,5,5,5,5,5,5,5,5,5,11,3,9,7,7,12,14,8,6,6,12,11,8,6,6,6,6,6,6,6,6,6,15,7,4,4,4,16,9,9,9,8,9,9,9,9,9,8,8,8,13,11,8,5,5,5,5,3,7,6,6,8,8,8,6,6,7,10,7,4,4,4,4,9,7,8,7,7,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,7,7,7,9,6,6,6,6,6,8,8,7,7,9,6,6,6,7,6,6,6,6,6,15,4,4,4,4,4,8,8,7,8,12,9,8,8,8,8,8,9,8,8,10,8,8,8,8,16,9,10,2,5,5,5,5,5,5,5,9,7,6,8,9,4,4,4,4,4,7,8,8,8,9,8,11,10,5,5,5,5,3,7,8,6,6,6,6,6,8,6,6,6,6,4,12,10,12,7,7,7,7,7,7,7,5,5,5,5,3,3,7,7,10,8,9,7,6,10,7,6,6,4,4,8,9,7,9,9,9,9,8,8,8,8,10,5,5,5,5,5,5,8,7,6,6,6,10,6,7,10,7,4,4,4,4,4,4,4,12,9,10,7,7,10,8,10,5,12,9,6,6,6,6,6,7,6,4,4,4,10,9,9,8,7,7,5,5,5,5,5,5,3,3,13,7,7,9,7,7,7,8,9,9,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,15,15,4,4,4,4,4,10,10,9,8,9,8,8,9,7,8,7,8,5,5,7,6,6,6,4,4,4,7,8,11,8,5,5,5,5,5,5,5,7,6,6,6,6,6,6,9,11,10,7,4,4,4,9,8,8,5,5,5,5,5,9,9,6,6,6,6,6,6,6,9,9,4,4,4,4,8,8,8,9,9,8,8,8,13,2,4,2,7,5,5,5,5,5,5,9,9,6,6,6,6,10,8,8,8,6,6,6,4,4,9,8,10,8,9,8,8,8,9,8,8,5,3,3,3,11,6,6,6,7,6,6,6,4,4,9,8,5,5,5,5,5,3,11,8,6,6,6,6,6,9,7,4,4,14,10,9,8,12,8,8,8,11,15,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,11,11,10,10,7,7,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,5,5,5,3,3,3,7,11,7,7,11,11,7,8,9,10,7,7,9,9,9,9,7,7,10,8,13,8,8,8,8,11,10,6,6,8,10,11,14,14,6,6,6,6,6,6,9,11,7,7,6,8,12,11,11,6,6,10,6,6,6,6,6,10,7,7,6,6,11,6,6,6,11,8,9,7,6,10,11,9,10,11,7,11,8,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,6,6,8,9,10,9,6,6,6,10,6,6,6,6,11,10,11,10,9,8,7,7,7,7,11,14,8,10,9,9,8,8,7,11,8,8,8,11,11,10,10,9,10,8,11,10,8,11,9,12,8,10,8,11,8,9,9,11,11,10,11,13,8,7,8,8,9,7,8,8,8,8,7,8,2,2,2,2,2,2,2,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,8,6,4,4,4,11,7,11,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,5,3,3,3,3,8,7,7,8,8,4,8,7,7,7,9,7,8,9,8,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,6,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,4,5,5,3,8,8,6,9,4,4,10,7,3,3,3,2,5,3,3,3,3,3,3,3,3,3,3,3,3,4,3,2,2,2,3,3,3,3,3,4,10,2,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,2,2,3,3,3,5,2,4,2,6,2,2,9,5,5,3,3,3,3,3,3,3,5,5,5,9,8,7,6,6,11,4,4,4,4,4,4,4,4,6,6,7,7,11,8,8,6,5,11,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,6,4,4,4,4,3,3,3,3,5,7,2,3,3,3,3,3,8,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,6,4,4,4,4,2,2,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,2,3,3,3,3,3,6,3,3,8,10,3,4,4,1,1,1,1,1,1,1,8,9,10,7,7,1,1,3,8,7,7,8,8,8,1,6,1,1,6,3,3,4,7,3,5,5,4,4,4,4,4,2,7,7,8,12,3,4,5,1,3,4,4,10,4,3,3,3,8,7,7,2,2,2,2,2,2,2,2,2,12,9,20,7,5,5,5,9,13,5,5,5,5,5,3,3,3,16,5,5,5,13,7,8,8,11,8,7,9,7,11,12,9,9,8,8,11,10,14,7,12,10,11,13,7,9,11,17,17,14,13,7,8,7,10,10,7,16,13,7,8,17,12,9,8,6,7,10,6,6,12,6,8,10,8,8,8,6,8,6,14,6,6,6,13,6,10,6,6,7,14,8,6,6,10,11,10,9,9,7,7,6,6,6,9,9,7,9,10,9,13,12,4,4,4,4,4,4,4,4,4,6,6,6,8,8,6,8,9,10,9,7,10,10,8,7,8,7,10,12,9,8,15,8,7,8,8,7,7,15,13,7,10,9,14,18,16,7,24,7,8,10,11,16,8,14,7,9,9,9,11,13,19,14,15,14,11,7,13,9,10,7,13,9,10,11,12,8,9,2,3,5,8,7,4,4,10,5,3,3,3,3,3,5,4,4,4,2,2,2,2,2,1,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,4,2,12,5,3,8,10,15,6,7,2,3,2,5,5,12,2,5,5,5,5,2,2,5,5,12,9,5,2,2,9,5,5,12,12,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,12,5,8,8,9,5,5,5,8,19,7,16,15,14,9,9,9,9,7,11,11,11,7,14,10,10,5,5,5,5,5,5,5,5,5,15,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,14,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,15,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,12,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,12,9,9,12,12,12,15,7,11,7,14,11,18,13,8,18,15,18,12,14,12,8,8,8,8,9,9,9,12,7,10,10,8,8,12,12,12,7,12,12,9,7,7,7,7,7,8,15,12,9,10,10,7,10,10,13,11,10,9,22,11,9,8,8,8,8,8,13,18,13,9,15,19,9,7,7,10,7,7,7,11,8,13,17,7,7,10,10,10,7,20,16,7,7,7,7,7,7,11,21,12,12,13,11,14,16,8,8,13,11,7,7,13,7,7,14,15,15,6,6,6,6,6,6,6,6,6,6,13,10,18,6,6,6,6,6,6,6,6,6,11,8,8,12,12,11,11,8,12,9,9,9,13,13,9,9,9,9,9,9,6,10,12,6,6,6,6,17,11,7,7,7,7,14,14,12,6,7,7,6,6,15,10,13,10,6,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,9,15,13,6,12,12,6,19,11,10,7,7,16,8,19,17,9,9,9,9,9,6,6,6,10,8,16,8,6,6,9,6,6,6,6,6,6,6,6,8,8,8,6,7,6,6,6,6,6,6,6,6,6,6,6,14,6,6,6,6,20,6,9,6,14,9,9,9,6,9,8,8,12,9,8,8,8,8,7,8,12,7,8,8,8,6,8,6,6,6,6,6,6,6,9,8,8,6,6,13,9,12,13,12,14,13,12,11,11,6,8,8,8,6,13,12,11,11,12,6,11,12,11,13,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,15,6,6,6,6,6,6,6,13,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,8,8,6,18,6,12,13,13,13,9,10,15,9,12,6,6,6,6,6,6,6,6,9,15,10,9,10,13,9,19,8,18,17,10,10,8,8,6,6,6,6,6,6,10,14,8,16,16,9,8,15,8,8,10,12,14,7,7,8,8,7,7,7,7,8,13,13,11,9,9,9,12,10,17,8,11,9,7,7,14,8,14,14,7,7,7,7,7,7,14,7,7,7,7,7,10,10,8,14,7,7,7,7,8,8,8,8,8,17,9,7,15,7,8,12,7,9,14,7,7,7,9,13,8,14,7,16,18,13,15,14,12,13,10,15,9,7,7,7,10,13,15,15,9,9,9,9,19,11,7,11,11,13,8,8,8,8,7,12,19,17,9,9,13,7,7,7,9,7,7,7,12,13,15,10,8,8,14,15,12,13,13,8,12,14,7,11,7,14,15,13,12,8,8,8,8,11,13,15,15,8,13,12,8,8,8,13,10,16,14,11,8,8,12,12,9,15,15,12,12,13,8,8,9,12,13,9,8,8,8,8,8,8,8,8,8,8,8,11,12,11,7,14,7,13,13,13,12,18,16,7,12,11,10,10,15,9,9,9,21,7,7,7,11,16,8,8,11,11,7,7,7,7,7,19,7,7,7,7,7,7,7,7,7,12,8,9,12,14,11,9,9,9,22,12,3,8,8,15,4,2,2,5,5,3,3,3,3,3,3,6,6,4,4,4,12,7,10,2,3,3,3,3,3,3,3,6,7,3,7,5,14,4,4,7,8,10,4,1,3,3,6,2,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,2,2,5,3,4,2,2,2,2,2,2,11,5,5,5,11,5,5,3,5,5,5,5,11,14,13,9,11,9,12,8,11,11,8,11,16,9,9,7,10,9,12,8,15,6,7,6,6,13,10,8,11,8,6,6,6,12,16,6,11,7,8,9,18,6,6,9,4,4,6,13,6,6,6,6,8,8,9,16,7,7,14,7,8,8,8,7,7,7,7,7,7,15,13,7,10,7,7,10,12,16,15,7,9,9,14,11,11,10,9,10,8,12,7,8,7,7,10,12,7,12,8,7,2,3,3,3,3,3,3,3,3,3,3,5,3,3,5,5,5,10,4,8,7,10,3,3,3,3,3,3,3,3,3,3,1,3,3,3,3,3,3,3,7,4,5,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,8,2,2,2,8,12,7,7,5,5,5,5,5,5,5,5,5,5,5,5,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,7,11,9,8,8,8,7,8,9,7,7,9,7,7,7,10,7,7,10,9,10,6,6,6,6,6,6,15,7,8,9,9,8,6,6,10,9,6,8,13,9,7,6,6,6,6,6,6,12,6,6,7,6,7,6,6,6,10,10,7,6,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,14,6,6,7,7,9,6,6,6,6,9,9,8,9,10,9,8,9,12,7,7,7,8,7,10,12,11,9,10,7,7,7,9,10,10,8,12,9,7,7,9,8,8,8,10,7,7,8,9,9,7,7,7,8,2,4,6,3,4,2,3,3,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,3,3,3,3,3,3,3,3,5,8,6,4,7,3,3,3,3,3,3,3,12,3,3,3,3,3,3,4,4,2,3,5,3,4,7,3,3,3,3,3,3,4,3,3,3,3,3,3,3,4,3,3,6,4,3,4,2,2,2,5,3,3,3,3,3,5,4,4,4,4,7,6,8,9,2,2,2,2,3,3,3,5,7,2,3,3,8,7,7,2,2,8,5,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,7,7,6,10,6,9,7,11,4,6,8,8,7,8,4,5,5,5,3,3,11,8,9,6,6,8,7,4,4,7,8,7,2,2,3,3,3,3,4,3,3,3,3,3,3,3,3,7,2,2,5,3,3,2,3,3,3,3,3,3,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,12,5,5,3,3,3,5,10,12,6,15,4,6,6,7,14,9,3,3,3,3,3,8,2,2,3,5,3,3,3,3,3,3,8,8,8,7,5,8,4,6,11,2,2,6,7,2,9,8,5,5,3,3,5,5,7,7,6,6,10,6,6,8,9,7,4,4,4,4,7,6,6,7,7,10,9,8,11,8,3,3,3,3,3,4,4,2,3,3,3,3,3,7,6,2,5,6,7,6,4,8,9,11,2,2,3,3,3,3,3,3,3,2,2,5,3,3,3,3,3,9,9,6,4,8,7,7,5,9,8,6,8,7,8,5,5,5,5,5,3,3,3,16,8,7,7,7,8,7,7,7,7,9,6,9,6,10,7,7,7,6,10,8,9,11,11,8,4,4,10,8,8,6,9,6,11,8,8,8,15,7,8,9,5,3,3,3,3,3,5,11,2,2,3,8,9,10,3,2,2,2,2,2,2,3,6,4,2,2,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,11,5,3,3,3,3,3,3,3,3,6,7,4,4,2,3,3,3,3,3,3,3,3,12,7,4,12,4,6,5,4,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,3,4,4,11,10,6,4,6,10,8,3,3,3,3,3,3,3,3,5,4,4,4,2,2,2,2,2,2,2,2,5,3,4,4,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,10,5,5,5,5,5,5,3,3,3,3,3,3,3,3,7,8,8,7,13,12,10,10,8,8,7,7,9,12,11,6,6,8,8,9,7,7,7,10,15,10,4,4,4,4,4,11,8,8,9,7,9,14,14,12,2,2,2,2,2,2,2,3,3,3,3,3,2,2,12,5,5,5,8,11,10,7,9,3,8,7,3,15,13,11,4,4,2,2,2,19,7,5,5,3,3,3,3,3,3,3,5,22,18,6,14,17,4,4,19,16,18,2,3,3,2,3,2,3,3,6,4,2,3,3,2,5,3,3,3,3,3,3,3,9,9,2,3,2,2,2,3,3,3,5,7,14,7,7,12,9,13,6,11,6,10,9,7,7,8,12,12,8,8,8,10,7,7,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,5,8,10,7,8,11,8,12,9,4,7,7,9,13,2,3,3,3,3,3,3,2,3,3,3,1,2,2,3,3,3,3,3,3,5,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,3,2,3,3,3,3,5,2,2,2,2,5,5,5,5,3,3,3,3,3,3,3,3,3,7,7,7,7,7,8,8,8,8,8,12,9,8,8,9,8,6,17,6,6,6,8,8,6,6,6,6,6,6,6,6,6,6,6,7,4,4,8,8,9,9,9,7,7,7,7,7,7,7,9,9,9,7,8,8,8,10,7,13,10,8,9,3,3,5,13,3,3,3,3,3,7,7,6,6,10,13,11,11,8,8,9,8,9,9,10,10,10,11,10,10,13,13,16,15,11,12,9,9,10,9,11,10,9,9,14,7,8,3,10,7,7,3,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,6,7,2,2,3,3,3,3,3,3,3,3,4,11,6,7,4,6,2,2,3,3,3,1,3,3,3,3,3,3,6,4,4,2,2,2,3,3,3,3,4,4,6,6,6,6,5,4,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,11,6,10,9,12,7,7,11,14,9,7,12,3,3,7,12,11,12,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,5,5,5,5,5,5,5,5,11,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,3,10,3,3,3,11,3,5,9,11,8,12,14,9,7,8,7,7,11,11,7,7,10,9,8,10,9,7,7,7,7,7,7,8,8,7,11,8,8,8,7,7,10,8,7,13,12,7,17,10,8,8,11,7,11,11,14,7,11,7,8,6,9,20,8,7,9,16,7,10,6,11,10,8,9,7,16,11,11,9,8,9,8,8,8,11,8,15,8,8,9,7,8,8,11,10,7,5,7,10,10,15,7,7,7,8,7,8,8,10,11,10,10,10,11,11,7,8,6,8,8,8,10,6,8,6,6,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,16,6,15,6,7,11,11,7,9,10,11,13,10,6,16,8,10,12,11,6,6,6,6,6,6,6,10,6,10,7,7,7,7,11,7,11,6,6,6,6,6,6,17,7,7,6,6,12,22,6,6,6,6,6,8,6,6,6,6,7,6,6,5,6,6,8,11,6,9,14,11,9,11,7,7,8,6,6,6,8,10,9,6,6,6,6,9,7,6,6,6,6,6,15,6,4,4,4,6,4,17,8,11,6,6,9,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,10,6,10,6,6,6,6,12,8,6,6,6,6,6,6,6,6,6,9,6,6,6,6,18,6,6,6,8,9,10,7,8,9,10,11,7,13,6,8,8,6,6,14,7,7,7,7,10,7,14,9,6,6,9,15,9,7,14,6,11,14,13,7,12,8,7,7,7,7,7,12,7,10,9,16,6,8,6,5,17,6,8,10,4,6,4,10,15,17,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,4,4,11,7,4,4,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,19,17,6,10,11,6,6,6,6,18,6,6,11,4,4,4,5,6,6,6,9,5,6,4,6,6,4,6,6,6,6,10,6,6,4,6,6,10,6,10,6,6,6,6,11,6,6,10,6,6,8,6,6,6,8,6,11,4,11,9,10,9,11,4,8,4,11,12,7,9,8,6,7,7,8,12,12,11,13,10,11,7,7,7,9,7,11,10,7,7,7,16,11,10,11,17,9,9,8,8,7,7,7,9,7,7,7,14,7,13,9,11,10,14,10,10,12,11,10,7,10,5,14,8,8,8,9,7,8,7,7,9,8,7,8,7,7,7,7,7,7,7,11,8,10,8,7,8,14,11,8,9,9,9,8,24,10,10,12,7,7,15,11,8,8,12,11,8,9,9,7,8,9,10,11,10,11,7,12,7,7,11,9,8,14,13,12,8,11,10,8,8,7,7,14,9,10,8,9,11,7,14,8,8,13,8,8,12,7,10,14,14,11,9,10,9,9,7,7,11,11,13,9,13,5,5,5,7,9,5,11,12,14,8,7,7,11,10,9,7,8,8,7,10,11,11,5,5,7,5,5,5,7,7,15,7,7,8,7,15,12,12,10,7,8,7,11,7,7,7,23,11,8,8,11,10,7,8,11,7,19,7,7,6,9,9,9,11,3,4,7,8,6,6,4,10,8,2,2]),j6=new Uint16Array([0,0,0,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,17,1,1,1,12,1,12,1,12,13,1,1,1,1,12,1,12,1,1,1,1,1,14,21,1,1,1,1,1,1,1,19,12,1,1,1,1,1,1,1,20,1,1,1,16,1,18,1,1,15,1,1,1,1,12,1,1,1,1,1,1,22,1,1,1,12,1,1,1,1,1,1,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,1,24,25,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,1,1,12,12,12,12,1,32,0,0,0,1,1,1,1,35,34,1,1,1,1,1,33,1,1,1,1,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,38,0,0,0,0,39,40,0,0,0,41,0,12,1,1,12,1,1,1,1,44,45,45,45,44,45,44,44,46,45,44,45,44,44,44,44,44,44,46,44,44,44,44,44,44,45,47,47,45,44,44,44,44,44,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,50,52,50,50,50,52,50,51,50,53,50,51,51,50,50,50,51,53,51,53,50,51,51,12,55,55,54,56,51,53,50,50,48,49,57,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,60,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,67,1,12,1,1,66,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,78,0,0,0,0,0,0,0,0,0,0,0,0,0,76,79,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,77,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,12,1,1,1,1,89,1,91,1,1,1,1,1,1,1,1,94,1,1,1,1,1,1,1,1,1,1,1,1,0,1,97,97,1,1,12,1,100,1,1,1,1,1,1,1,98,1,99,1,101,1,1,1,1,1,102,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,110,111,1,1,1,1,1,1,113,113,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,121,122,1,1,1,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,126,123,125,120,1,124,1,1,114,1,1,1,1,117,1,127,1,1,1,1,1,119,1,108,1,109,1,12,128,106,1,112,1,1,1,1,1,107,115,1,12,12,12,118,116,1,1,1,1,1,1,0,0,0,0,1,12,12,1,1,1,1,1,12,134,1,1,1,1,1,1,1,1,1,1,1,12,136,1,1,1,1,1,1,1,1,137,138,12,12,135,133,45,45,140,50,50,139,142,141,1,1,0,0,0,0,0,0,0,0,0,0,0,0,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0,0,0,1,0,144,132,1,0,1,12,12,1,1,1,1,1,0,0,0,0,0,0,0,1,148,147,20,1,1,12,12,1,20,12,12,1,1,1,1,1,134,1,1,152,1,1,1,1,153,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,1,136,1,1,152,1,1,1,1,153,1,1,134,1,1,1,152,1,1,1,1,153,1,1,134,1,1,1,1,1,1,1,1,134,1,1,1,1,1,1,1,1,1,1,1,160,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,1,1,1,1,1,134,1,1,1,1,152,1,1,1,1,153,1,1,1,134,1,1,152,1,1,1,1,164,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,167,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,154,158,158,12,1,12,166,1,1,1,1,1,158,158,158,154,1,1,1,157,158,161,165,1,1,1,1,157,157,1,1,156,154,154,157,170,156,170,1,1,168,1,156,155,157,1,1,1,1,157,1,159,1,1,1,12,1,162,1,162,1,1,1,162,161,163,169,156,154,1,1,1,1,1,1,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,173,172,173,172,172,172,172,174,174,172,173,172,173,172,172,12,12,12,12,12,1,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,193,1,1,1,1,12,199,200,201,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,151,1,1,1,1,1,1,1,1,1,1,1,196,1,1,1,184,1,210,1,1,1,208,1,1,205,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,12,1,1,1,1,1,1,1,1,190,1,1,1,186,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,182,1,1,1,1,1,1,1,191,1,1,1,1,195,1,1,1,1,171,1,1,189,1,1,1,192,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,180,1,12,1,1,12,1,1,1,1,183,1,1,1,188,1,203,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,209,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,194,1,1,1,1,1,12,1,1,1,1,1,1,1,1,176,12,1,1,1,178,12,1,1,1,1,1,1,1,198,1,1,1,1,1,1,1,1,1,1,177,1,1,1,1,1,1,204,1,1,1,181,1,1,1,187,1,12,1,1,12,1,1,1,1,1,1,1,1,1,1,191,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,175,1,1,1,1,1,1,1,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,206,1,1,1,1,1,1,1,1,1,1,1,1,1,207,1,1,12,1,1,1,1,179,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,197,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,12,1,1,1,1,1,1,1,1,1,202,1,1,12,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,220,0,0,0,0,0,221,0,0,0,0,0,0,1,12,1,1,1,225,1,1,1,0,226,223,224,1,1,1,1,1,1,231,1,233,1,1,1,1,1,1,1,1,1,1,1,229,1,1,1,1,1,235,1,1,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,234,1,1,1,12,1,1,1,1,230,1,1,1,228,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,232,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,241,13,1,1,1,12,12,238,239,1,1,1,1,240,1,1,12,1,1,1,1,1,1,1,242,1,1,12,16,1,1,1,1,1,1,1,243,1,1,1,12,12,1,1,1,1,1,243,12,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,1,252,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,256,256,1,0,0,0,0,0,1,12,0,0,0,0,0,0,0,0,172,261,262,1,12,1,1,1,1,12,264,1,1,263,1,1,266,1,1,1,1,1,1,1,1,1,0,1,1,1,271,272,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,12,1,0,1,0,0,0,0,1,0,1,0,1,1,1,1,1,0,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,12,0,283,0,0,284,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,12,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,60,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,1,1,1,0,308,0,0,0,0,0,0,0,0,0,310,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,327,327,328,327,0,185,1,1,13,323,1,321,0,0,0,0,1,0,0,0,324,1,1,329,1,205,1,1,1,1,1,322,1,319,1,325,1,317,1,326,1,318,1,1,1,1,1,1,1,12,1,1,1,12,1,12,320,320,1,1,1,316,184,1,1,12,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,12,1,1,1,1,315,1,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,332,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,266,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,372,372,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,364,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,0,1,340,351,1,1,339,374,1,345,1,1,337,369,1,1,355,336,341,1,1,1,348,379,357,1,1,1,1,1,1,358,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0,367,371,0,0,79,1,1,0,365,342,378,343,346,353,1,368,0,1,0,79,362,360,1,0,0,1,1,1,0,0,0,0,381,1,1,352,1,79,1,0,1,1,1,384,1,0,0,79,359,0,1,338,1,1,1,0,1,1,361,1,0,1,1,1,0,1,386,349,1,1,0,1,0,0,377,0,1,1,1,79,370,1,1,366,363,1,1,1,1,1,1,1,1,1,1,1,344,1,1,1,1,1,1,1,1,1,1,1,376,0,79,1,1,1,1,0,1,1,1,1,1,1,0,0,1,1,380,1,1,1,0,0,383,0,0,0,1,356,1,0,79,382,1,0,0,0,0,385,1,1,0,0,1,0,1,0,354,0,350,0,1,1,1,0,1,1,0,373,347,375,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,1,1,400,400,1,1,12,12,1,400,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,412,1,1,0,1,1,1,1,205,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,430,430,1,1,0,0,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,442,1,441,1,1,1,1,1,1,1,1,445,1,12,12,1,1,1,1,1,12,1,1,1,1,453,1,1,1,455,1,1,1,1,1,1,1,1,1,1,452,1,447,1,1,1,1,435,1,1,1,1,1,1,1,1,448,12,1,1,1,1,454,1,1,1,449,444,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,317,1,433,1,1,12,451,1,1,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,437,1,1,1,1,1,1,1,1,1,1,1,454,1,1,1,1,317,1,450,1,1,1,439,1,1,1,1,1,440,1,456,443,1,1,1,1,1,438,1,1,1,1,1,1,1,1,1,434,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,446,1,1,1,1,1,1,1,12,1,1,1,1,1,436,1,1,1,1,1,1,1,220,457,1,1,1,1,1,12,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,1,0,0,1,0,1,0,1,1,0,0,0,462,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,466,466,466,466,466,466,466,0,466,466,466,466,466,1,466,466,466,0,466,466,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,471,470,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,475,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,468,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,469,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,477,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,474,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,478,473,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,472,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,476,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,1,1,1,1,1,1,1,488,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,198,198,1,492,1,1,1,491,1,1,1,1,487,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,489,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,493,1,1,490,1,1,1,1,1,1,1,1,372,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,494,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0,0,505,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,1,0,1,0,0,12,1,507,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,12,12,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,0,1,0,0,0,0,0,0,0,1,0,0,1,0,1,1,1,1,0,0,0,1,0,0,0,1,60,1,1,12,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,526,1,1,1,1,1,1,1,527,1,1,1,1,1,1,1,525,1,1,12,1,529,239,1,1,12,12,1,1,12,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,533,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,539,1,1,1,1,1,1,1,1,1,1,1,1,1,1,132,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,107,1,1,12,1,1,1,12,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,548,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,144,1,1,1,228,1,1,12,30,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,1,572,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,577,1,220,1,328,1,1,1,1,1,1,1,1,1,0,0,578,1,1,1,1,0,580,0,79,0,579,0,1,1,1,0,1,1,1,1,1,1,12,0,0,0,0,1,0,0,0,0,0,0,586,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,582,582,0,585,583,582,582,582,582,582,587,582,582,591,582,582,582,582,582,582,582,582,582,582,588,585,582,582,585,582,582,582,582,582,582,582,582,582,582,582,582,582,583,582,582,582,582,582,589,582,582,582,582,582,582,0,0,0,1,590,1,1,1,1,584,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,12,595,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,12,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,12,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,65,280,306,411,535,0,4,68,236,254,282,307,334,388,413,0,499,519,536,597,9,0,61,88,398,409,429,575,0,497,518,532,612,0,30,6,0,461,500,602,560,70,0,7,285,255,389,463,416,538,79,598,0,576,309,418,465,9,105,288,506,6,30,0,311,79,391,79,483,10,6,131,248,275,0,613,509,0,563,0,64,6,6,251,95,2,432,399,410,596,0,6,0,6,286,103,6,561,501,540,0,464,390,273,287,8,71,104,599,543,392,312,300,419,146,74,290,546,510,601,564,335,330,479,6,75,149,11,0,249,522,547,565,514,551,570,611,36,6,260,295,333,304,218,30,528,553,218,42,216,265,296,305,406,423,481,274,0,73,562,0,403,417,299,79,247,79,0,581,545,504,292,421,79,393,387,0,0,0,9,555,571,217,0,424,407,531,516,573,615,85,218,43,297,396,425,569,0,511,293,276,79,215,80,28,390,30,6,394,331,303,604,592,524,550,513,0,258,81,30,405,422,0,30,426,0,219,593,517,9,408,427,218,248,86,222,594,574,557,482,428,397,250,227,87,59,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,620,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,82,0,129,0,0,84,549,0,0,0,0,0,0,0,27,0,552,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,503,0,257,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,294,0,0,0,0,0,0,0,617,0,0,0,0,0,616,0,0,0,0,0,0,0,0,0,0,0,0,0,0,395,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,0,0,0,0,0,0,495,0,0,0,0,0,0,404,0,0,0,0,0,0,0,0,0,0,0,0,0,211,0,0,0,0,0,0,0,0,0,0,515,0,0,0,0,0,0,0,0,0,0,0,0,496,0,0,0,0,0,0,0,0,0,0,0,0,0,0,269,281,0,0,0,0,0,530,277,0,0,0,0,0,0,0,0,0,0,0,0,0,512,0,0,0,0,0,0,0,0,0,0,0,458,0,0,0,314,0,0,0,0,0,0,253,0,0,0,0,0,0,23,0,0,0,0,568,0,0,0,0,600,521,0,0,0,0,244,0,0,0,0,0,0,0,0,0,480,0,0,0,0,0,62,0,0,0,267,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,0,0,0,0,0,279,610,0,72,0,0,0,0,0,0,0,0,0,619,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,150,0,278,0,0,0,0,0,0,567,0,0,0,0,0,0,523,0,0,0,0,0,0,0,0,0,566,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,0,502,0,0,0,0,0,554,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,83,0,0,0,0,0,0,0,0,0,0,0,0,486,0,485,0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,459,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,289,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,537,0,0,0,0,0,0,0,0,298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,237,0,0,0,0,0,0,0,0,0,0,84,0,606,0,0,0,0,0,0,0,0,0,0,0,0,245,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,609,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,520,0,0,0,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,498,0,614,0,0,431,0,0,0,0,0,0,0,0,0,0,0,0,402,0,0,0,544,0,93,0,0,0,0,0,0,0,0,0,0,31,0,0,0,0,0,0,29,92,0,0,0,0,0,0,0,0,0,0,0,0,291,0,0,0,214,0,0,0,0,0,0,558,0,270,0,0,130,0,0,0,0,0,559,0,0,0,0,0,0,0,414,420,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,313,0,0,0,0,0,5,0,0,0,0,0,0,0,301,0,0,0,0,0,0,0,0,0,0,0,0,0,534,0,0,0,415,0,0,401,0,0,0,0,0,0,603,0,0,0,541,0,0,90,0,542,0,0,0,0,0,0,0,0,0,0,508,460,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,268,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,608,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,607,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,618,0,0,0,0,0,556,0,0,0,0,0,0,0,0,0,0,302,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,605,0,0,212,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,623,623,623,623,623,623,623,622,624]),h3="orgmilcomschnetedugovdrrformsfeedbackofficialaccoorgmilschnetgovmagazinemediaunioncargopilotgroupcaarespressworksaerodromeworkinggroupair-traffic-controlaircraftaccident-preventioneducatormarketplaceambulanceinsurancecateringairportrepbodyenginesoftwaremodellingair-surveillanceconsultingchartertrainermaintenanceservicesdesignflightskydivingfreightassociationstudentgroundhandlingdgcafuelclubtaxicrewshowballooningexpresstraderbrokerauthoragentsairtrafficjournalistsafetyconsultantmicrolightaccident-investigationparachutingequipmentproductionfederationrecreationscientistnavigationengineertradingglidingleasingresearchpassenger-associationentertainmentparaglidinghangglidingaerobaticrotorcraftemergencycertificationgovernmentaeroclubexchangelogisticschampionshiphomebuiltcouncilconferencecontrolairlinecivilaviationjournalorgcomnetedugovcoorgcomnomnetobjofforgcomnetuwukiloappsframerorgmilcomnetedugovcoradioorgcomnetcommuneedogpbcoitgvorgedugov*spreviewfrontendrelayononstagingupid*mtls*privatelinktypedreamdeveloperbravemochawindsurfaivenmirenupsunwnextbegetngrokclerkwale2bwebcsbrunputerflutterflowspawnbaseshiptodaymagicpatternsnetlifyondigitaloceanrailwayhostedclaudehasurabotdashvercelgithubluyanigadgetreplitcloudflaretelebitedgecomputeevervaultdetaexponyatnoopencrpplxzeaburwasmerframerzeropsconvexmedusajsspritesonherculeseasypanelstreamlitsnowflakemesserliloginlinehackclubnorthflankbase44corespeedadaptableleapcellngrok-freeclerkstagelovableon-fleek*us-west-3ap-south-2us-central-2us-central-1eu-central-1ap-south-1us-west-2us-east-2eu-north-1ap-north-1us-west-1us-east-1*rcloudintsegorgmilcomgobbetnetintedugovturmusicasenasamutualcoopip6uriurnin-addre164homeirisgovdixdaemoncloudnssthwien*inexexkunden4accogvormymyspreadshop4lima2ixortsinfofuturecmsfuturehosting12hpprivfuturemailinglima-cityfunkfeuer123webseitednshomemelmyspreadshopcloudletswasantqldvicactnswtascatholicwasaqldvictasvpsidwasantozqldorgcomvicasnactnetedugovnswtasconfhrsncomairflowlambda-urltransfer-webappairflowtransfer-webapptransfer-webapptransfer-webapp-fipstransfer-webappeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1privatenotebookstudiolabelingnotebookstudionotebooknotebook-fipslabelingnotebookstudionotebook-fipsnotebookstudio-fipsnotebook-fipsnotebookstudionotebook-fipsnotebookstudioeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2experimentsus-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1onrepostsagemakercopporgmilcompronetintedugovbiznameinfoshoprsorgmilcomnetedugovbrendlyresolvenzauscotvstoreorgcomnetedugovbizinfoidacaicoittvorgmilcomschnetedugovinfocloudezproxyacmymyspreadshopkuleuvenwebhostingtransurl123websitecloudnsinterhostsolutionsddns5476103298edgfacbmlonihkjutwvqpsryxzbarsycoororgcomedumyftpno-iporxcloud-ipfor-somemmafanfor-morewebhopselfipjozidyndnscloudnsdscloudfor-thefor-betteractivetrailcoeconorestooteorgcomeconeteduassurmoneyafricaarchitectesrestaurantloisirstourismavocatsinfoagrounivcoorgcomnetedugovtvdeportesaludtksatorgmilcomwebgobnetinteducienciaboliviarevistacooperativaempresanombreindustriamusicapatriamedicinademocraciapoliticapuebloindigenaplurinacionalarteblogwikiinfoagrotransportenoticiasprofesionalacademiaeconomiaecologiamovimientotecnologianaturalsimplesitecepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesmscepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesms*biaamfmtcmptvfeirasampajampanatalbelemananiradiog12medindfndbmdtrdthepoaggfjdfdefinfenflegsegongengcngorgzlgslglogppgmillelqslcimcomnomadmjabimbbibbsbabcrectecsjcetcpscpvhudieticriapipsiecnbiorioecogeoteoodoproatoartfstmatvetdetbetnetcntnotfotgrueduajuespappreptmpemparqsrvadvdevgovntrturagrjorfarjusmusdesvixxyzcozfozslzbhzmaringasantamariacampinagrandegoianiasorocabafloripasaobernardocuritibaboavistarecifeaparecidasaogoncasalvadorcuiabamorenamacapalondrinacontagemsocialfortalmaceioleilaoosascoriobranconiteroi9guacutcheblogflogvlogwikitaxicoopmanauspalmascaxiasjoinvillebaruericampinassantoandreribeiraoriopretoweorgcomnetedugovv0windsurfshiptodaycloudsitecoaccoorgnetgovofmilcomgovmediatechzacoorgcomnetedugsjgovmydnspenfnlabnbmbgcbcqconcontnuyksknsmyspreadshopno-ipawdevboxbarsyonidatemfuinabusavinstanceseceuguukussryzespawncsxcloud-ipmyphotosfantasyleaguetwmailcleverappsscrappingccwucloudnsftpaccessgame-serverccgovobjectsrmalpgcust*svcalp1aeappenginermalpgmyspreadshop4lima2ixsquare7cloudscale123websitefirenet12hpflowgotdnslinkyard-cloudcloudnslima-citydnskingobjectstorageedaccogoorusorgcomnetinteduaéroportxn--aroport-byaassogouvcomilgobgovcloudnses-1eu-west-1us-east-1euvipit1eurarubait1s3lbwebsites3websiteru-spbru-mskelasticcsrunstnukukcaukusnl-ams-1fr-par-1fr-par-2functionsnodess3ddlwhmrdbfnck8sifrs3-websitecockpitscblmgdbdtwhkafkpubprivs3ddlwhmrdbk8sifrs3-websitecockpitscblmgdbdtwhkafks3ddlrdbk8sifrs3-websitecockpitscblmgdbdtwhkafkk8sscalebookpl-wawfr-parnl-amsbaremetalsmartlabelinginstancesdechk2kuleuvenlaravelvoorloperurownoxazapscwhstgrvaporobservablehqelementorantagonistreclaimjoteluluencowaydiademjelasticmatlabmagentositetrendhostingaxarnetperspectajenv-arubajelejoteravendbemergenttrafficplexconvexkeliwebserveboltbegetcdnstaticson-rancherprimetelonstackitunison-servicesdnshomelinkyardbarsyjelecloudnscocomnetgovmycn-northwest-1cn-north-1s3s3-accesspoints3-websites3s3-accesspointrdsdualstacks3-deprecatedemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspoints3s3-accesspointrdsdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicn-northwest-1cn-north-1cn-northwest-1ebcomputeelbcn-north-1airflowcn-northwest-1cn-north-1oncn-northwest-1cn-north-1amazonawssagemakeramazonwebservicesdirectasgdsdhehahljlnmhbacscahqhshhihnlnynsnmofjbjzjxjtjhkcqtwgsjssxnxjxgxxzgz網絡网络公司orgmilcomnetedugovxn--55qx5dcanva-appsxn--io0a7iquickconnectcanvasitekhsjxn--od0algmyqnapcloudsrvrlessclustersrealtimestorageleadpagescarrdcrdorgmilcomnomnetedugovhidnssupabaserdpareplmypiumsoxmitotaplpagesfirewalledreplitowodevwebview-assetsvfswebview-assetss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecateds3-websites3-object-lambdaexecute-apis3s3-accesspoints3-websites3-accesspoint-fipss3-fipss3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipss3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9vfss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1us-northeast-1ap-southeast-1me-south-1af-south-1ap-south-1ap-southeast-7us-west-2eu-west-2ap-east-2us-east-2ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ap-southeast-6ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1mrapaccesspoints3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3eu-west-3ap-south-2eu-south-2computes3-ap-northeast-2elbrdss3-ap-east-1s3-sa-east-1s3-us-gov-west-1s3-eu-central-1s3-ca-central-1eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3s3-website-us-west-2s3-website-eu-west-1s3-external-1eu-central-1me-central-1ca-central-1il-central-1s3-us-west-1s3-eu-west-1s3-website-sa-east-1s3-website-ap-southeast-2ap-northeast-1ap-southeast-1s3-us-west-2s3-eu-west-2me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2s3-website-ap-southeast-1s3-1s3-globals3-ap-northeast-3eu-north-1airflowap-southeast-2s3-us-gov-east-1s3-fips-us-gov-east-1s3-me-south-1s3-ap-south-1ap-northeast-2s3-website-us-west-1ap-southeast-5s3-eu-north-1s3-ap-southeast-1s3-website-us-gov-west-1compute-1s3-eu-west-3us-gov-west-1s3-website-ap-northeast-1us-gov-east-1s3-fips-us-gov-west-1s3-website-us-east-1s3-ap-southeast-2ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3-us-east-2s3-ap-northeast-1authauthauth-fipsauth-fipseu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1rservicesbuilderstg-builderdev-builder*ociocpocsdemoinstanceeu-west-3eu-south-2ap-southeast-3ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1previeweu-4us-4us-1eu-1us-2eu-2us-3eu-3appspaasrag-cloudrag-cloud-chjcloudjcloud-ver-jpcdemonodebalancermembersipeuxvsoncillaocelotonzayalilynxsphinxfentigercustomercaracalo365cloudstaticxendevapp001testcode-builder-stgplatformapimediasiteprojedrydpagesjsu2u2-localx0desazacncoitrueu4uhkukgrbrushatenadiarymyspreadshopfrom-flfrom-wvwebspace-hosttheworkpchatenablogservesarcasmapplinzisakuratanwixsiteappchizigiizeis-into-carsdnsiskinkyadobeaemcloudis-a-therapistpgfogmyvncdojinis-an-actress1kappfldrvkozowqa2jpnmexprgmrfirewall-gatewaydynnscafjsfbsbxooguyxnbayfrom-gawoltlab-demois-a-anarchistwiardwebteaches-yogadattowebtb-hostinglive-websiteservegamegotpantheonfrom-nhsubsc-payfrom-ohvipsinaappfrom-cadyndns-officehomelinuxfrom-mahercules-appservebbsstreakusercontentfrom-okfrom-wyfastly-terrariumis-a-llamaqualyhqportalserveexchangeon-vaporvivenushopciscofreakgrayjayleaguesmetaaiusercontentfrom-iais-a-libertariansaves-the-whalestaveusercontentyolasiteoperaunitepoint2thisis-a-catererlinodeusercontentfrom-vagithubusercontentsells-for-lesshosteurcanva-appsplaystation-cloudddnsfreefrom-pafrom-prfrom-waddnskingoutsystemscloudhotelwithflightmydattois-a-nascarfanmydbserverminiserverdamnserverservehumouris-a-playerfrom-nvfrom-nmemergentagentgentappsamplifyappfrom-kyis-an-accountantnfshostserveircfrom-akpythonanywherestackhero-networkpostman-echolikescandydyndns-mailobservableusercontentserveftpfreeboxosfrom-utcdn77-storageamazonawsneat-urldyndns-serverlinodeis-a-teacherfrom-vtgleezemythic-beastsus1-pleniteu1-plenitla1-plenitpaywhirlservecounterstrikejdevcloudhealth-carereformis-into-animegoogleapisis-a-painterafricaisa-hockeynutatmetais-an-actora2hostedis-a-democratdatadetectest-le-patrondigitaloceanspacesis-a-designeris-a-hunterlinodeobjectstemp-dnsissmarterthanyoufrom-arsimplesiteevennodetownnews-stagingis-a-liberalgooglecodejelasticservemp3stdlibqualyhqpartnerdyndns-free1cooldnsest-a-la-masiondrayddnsdynuddnsfrom-orfrom-miis-a-bloggerfrom-himydobisscanvacodeis-an-engineerest-a-la-maisonupsunappdevinappswafflecellmyasustorwpenginepoweredfrom-ctservep2psame-appmyshopblocksthingdustdatalikes-piediscordsezis-with-thebanddev-myqnapcloudlpusercontentis-leetshopitsite3utilitiesis-a-personaltrainersinaappladeskis-a-cheflogoipselfipbase44-sandboxnospamproxyalibabacloudcsmesswithdnsauthgearappsiamallamawithgooglelutrausercontentmochausercontentframercanvasmytabitdyndns-homew-credentialless-staticblitzcpserverdiscordsaysis-a-nurseappspotatlassian-isolated-3premotewdfrom-mtwixstudiocode0emm180rmyactivedirectoryawsappsmytuleapdnsabrpolyspaceqbuserrenderbuiltwithdarkboutirgotdnsabrdnsdopaascanva-hosted-embedawsglobalacceleratorhomesecuritypcmyiphostditchyouripclever-clouddyndns-ipon-aptibleis-a-musiciansecuritytacticsappspaceusercontenthomeunixstrapiappsame-previewcf-ipfsmycloudnaselasticbeanstalkis-certifieddontexistkasserverik-serverdrive-platformatlassian-3pfirebaseappherokuappawsapprunnerbarsycenteris-a-cubicle-slaveservehttpmyshopifyis-a-guruquicksytessiiitesorsitesmagicpatternsappis-a-cpameteorappfrom-wiis-a-rockstarbumbleshrimpdattolocalreadthedocs-hostedfrom-rifamilydsdyndns-picsplesknsbplaceddnsaliasdynaliasdyndns-remotedoomdnsip-ddnsblogdnsis-a-doctorroutingthecloudamazoncognitobarsyonlinedsmynasddnsgurucloudflare-ipfsdeus-canvasfrom-idsmushcdnpagespeedmobilizerdyndns-at-homeunusualpersonhosted-by-previderis-a-republicandyn-o-saurstreamlitappworkisboringonthewificprapidqualifioappis-uberleetis-slickgetmyipwpdevcloudtypeformdyndns-at-workgentlentapismynascloudw-corp-staticblitzfrom-ingeekgalaxyservebeerfrom-mdonrenderspace-to-rentaivencloudappspacehostedonfabricawafaicloudcodespotblogspotatlassian-3p-us-gov-modfrom-ndfrom-msis-a-techieis-a-studentcustomer-ociis-a-photographerdurumisfrom-ksmassivegriddyndns-wikiis-an-entertaineris-a-hard-workermysecuritycamerafrom-mnrackmazedyndns-blogis-a-bulls-fanwritesthisblogfreemyipsimple-urlfrom-sdreservdauthgear-stagingest-mon-blogueuris-into-gamesrice-labsxtooldevicesakurawebis-an-anarchistoraclecloudappsdyndns-worksells-for-urhcloudfrom-dcfastvps-serverwpmucdnis-a-geekscrysecfrom-txis-into-cartoonsmodelscapetrycloudflarelocaltonetstreak-linkbalena-devicesfrom-njforgeblocksfreebox-oswebadorsitefrom-ncdoesntexisthobby-sitestreaklinkshomesecuritymacownprovidertuleap-partnersdattorelaywphostedmailalpha-myqnapcloudservequakeis-a-socialistservehalflifepivohostingdynuhostingquipelementsw-staticblitzdyndns-webfrom-deproject-studyaliases121is-not-certifiedhercules-devis-a-financialadvisorservepicsis-a-greenloseyouripfrom-ilwithyoutubemwcloudnonprodwiredbladehostingdnsdojofrom-tnpixolinomyqnapcloudis-an-artisthostedpiis-a-landscaperauiusercontentoaiusercontenton-forgeis-a-conservativedreamhostersnet-freaksapps-1and1is-goneencoreapifastly-edgefrom-nesalesforcefrom-scdeployagentoraclegovcloudappsfrom-alis-a-lawyercechirevultrobjectsstufftoreadisa-geekddnsgeeklovableprojecttry-snowplowfrom-moblogsyteis-a-bookkeepernogmyforumravendbmyboxdeelementoredsaacficogoorinforgcomgobnatneteduidstoreorgcomnetintedudevnomepublorgcomneteduathgovtestscalculatorspaynowinfoquizzesresearchedcloudnsfunnelsassessmentsjscaleforcetmacltdorgmilcompronetgovbizpresseklogesrsccloudcustomfltusrcloude4corealmgovmunicontentproxy9metacentrumdyndyndyndnsdynpagespages-researchitionoccustomercomymyspreadshopipv64diskussionsbereich4limacomrub2ixfirewall-gatewayddnssspdnsbarsykeymachinesquare7myhome-serverspeedpartnercommunity-proschuldockxenonconnectgünstigliefernbwcloud-os-instancedyndnssecmy-routerxn--gnstigliefern-wobin-butterl-o-g-i-nisteingeekin-dslin-berlinin-brbfuettertdasnetzleitungsenin-vpnlcube-serverdyn-ip24logoipdyn-berlinruhr-uni-bochum12hpgoipsrvdnsfruskygit-repossvn-reposinternet-dnsgünstigbestellenhome-webserverxn--gnstigbestellen-zvbbplacedheimdnscosidnswebspaceconfiglima-citydyndns1istmeinvirtualuserschulplattformmy-gatewayddnsseclebtimnetztest-iservmein-iservvirtual-userhome64iservschuletaifun-dnstraeumtgeradeschulserverdynamisches-dns123webseitednshomehs-heilbronndnsupdaterbssgraphicdwadpdwdaepeweaawapaafpfwfabwbpbacwcpcciwebuserapiobjectsidsiskospockkimodorikerbonesteamsparisjanewaypicardglobaltarpitreedpikekiraworfsulukirkarchertuckerhackercanarywesleystagingprereleaset3r2lpbravepanelngrokiservstglclcrmerpflypagesbarsyvivenushoplocalcertlocalplayerbearbloggatewaydeno-stagingis-not-ais-a-goodbotdashvercelmocha-sandboxplatter-appreplitgithubpreviewworkersinbrowserevervaultdetais-ahrsndenoxmitmodxmyaddrstorageapipayloadgrebedocruncontainersstgstagelclstageloginlineis-a-fullstackleapcellngrok-freeis-coolstoragewebharemediatechlibp2pdiscourseimaginecomyspreadshopstoreregbiz123hjemmesidefirmcoorgcomnetedugovsldorgmilcomwebgobartnetedugovtmorgpolcomsocartnetedugovassoagrondiscoodontk12medcuegyecpaabgengorgmilgalsaltulcomadmesmgobpubdocmonfindgnriouioproartlatvetnetfotedulojgovntrturibrbarxxxofficialbasechefprofmktgpsictechinfoarqtcontdentrrpppsiqgit-pagesritmedfieorgcomlibprieduaipgovriikmeactvsportorgmilcomscieunnetedugovnameinfopintouchtawktotawkmyspreadshoporgcomnomgobedu123miwebcomputeorgcomnetedugovbiznameinfocognito-idpeusc-de-east-1onjelasticnxaspdnsbarsydirectwpdeuxfleurstransurldogadoprvwcloudnsamazonwebservicesdnshomeuserpartycokoobinmkmstorjfidemopaasdymyspreadshopalandkapsiikixn--hkkinen-5wacloudplatformdatacenterhäkkinen123kotisivuidacorgmilcompronetedugovbiznameinforadioorgcomneteduuserexperts-comptablestmmyspreadshopgretaprdcomnomynhccifbxoshuissier-justicenotairesaeroportfreeboxoson-webavocatassoportgouvkdnschirurgiens-dentistes-en-franceavouesfbx-os123sitewebveterinairechirurgiens-dentistespharmacienchambagrimedecinfreebox-osdediboxgoupilemszicpyicpvicppleysheezypagesedugovcnpyorgcomcybllcpvtnetedugovtnxonlineschooldaemond6atcopanelorgnetplybotdashstackitkaasorgmilcomnetedugovbizmodltdorgcomedugovcoorgcomneteduappwriteacorgcomnetedugovcloudtranslateusercontentorgcomnetedumobiassoorgcomnetedugovbarsysimplesitediscourseindorgmilcomgobneteduorgcomwebnetedugovguaminfonxhra教育敎育網絡网絡组織組織网络網络组织組织公司政府個人个人箇人ltdorgcomincneteduidvgovxn--uc0ay4axn--55qx5dxn--mk0axixn--io0a7ixn--uc0atvxn--zf0avxxn--lcvr32dxn--od0algxn--wcvs22dxn--gmqw5axn--od0aq3bxn--mxtq1mxn--ciqpnxn--tn0agxn--gmq050iorgmilcomgobneteduiservwp2tempurlmircloudfreesitewpmudevmyfastgadgetcloudaccessjelehalfboltfastvpsemergenteasypanelopencraftizcombrendlynamefromrtpersoadultmedorgpolrelcomproartnetedufirminfoassoshopcoopgouvtmcomediahotelforumvideosportorgsexagrargameslakaseroticaerotikatozsdereklamcasino2000filmsuliinfoboltshopprivnewsszexcityutazasjogaszkonyveloingatlaneacaicogoormyᬩᬮᬶmilwebschnetkopbizzonedesaponpesxn--9tfkymyspreadshopgovmytabittabitorderravpageaccok12idforgnetgovmuniltdplcaccotttvorgcomnetmeca6g5gpgamubacaicniocoukuptverdruscsdelhiindorgmilcomwebnicfingenpronetintedugovresbizbiharbarsyinternetbusinessschooltravelsupabasealumnigujaratfirminfoaeropostbankcoopindevscloudnsno-ipbarsybarrell-of-knowledgebarrel-of-knowledgensupdategroks-thisdnsupdatefor-ourknowsitalldvrcammittwalddynamic-dnsv-infowebhopselfipdyndnshere-for-moreilovecollegemayfirstforumzcloudnsmittwaldservertypo3servergroks-theeusekd1uk0cdndyndnsidrawsainaueuapjpusstagemocksysdevicesclientcustreservdcustdevdisrecprodtestingcobeebyteutwenteboxfusebravepstmndedynngrokorgmilcomnomhzcnetedugovqcxqzzbarsythingdustmo-siemensrb-hostingprotonetfh-muenstergitbookbluebitecloudbeesusercontentnodeartkiloappsforgerockdarklangresinstagingapigeebubbleb-datascryptedhypernodedappnodepantheonsitegitlabgithubkeeneticvirtualservercleverappshostyhostingon-rioedugitticketstelebiton-acornwixstudioon-k3sicp0icp12038jeleqotobigvlairbubbleappsmyaddrstolosmyrdbxwebflowdrive-platformbeagleboardhasura-applolipopdefinimavaporcloudmusicianwebflowtestazurecontainerresindevicereadthedocsloginlineeditorxmoonscalesandcatsbasicserverwebthingsbrowsersafetymarkbeebyteappbitbucketidaccovistablogorgschnetgovxn--mgba3a4f16axn--mgba3a4fraarvanedgeايرانایرانjclaspeziapdudcefegelemeperetevebacanatavaparasabgagfgogrgpgalclblimfmrmcbmbvbfclcmcvcrcpcchlimifibicivipirisimncnbnanenrnpntnnolomobocoaogorosopotoptvtatctbtmtltotpulunutpspapaqsvpvvvtvavvrtrsrprgrfrcrbrarorkrvstsssbscsmsispzczbzbozen-suedtirolmyspreadshopxn--bulsan-sdtirol-nsbxn--valledaoste-ebbtrentinoaltoadigetrentin-sued-tirolxn--forlcesena-c8axn--forl-cesena-fcbxn--bozen-sdtirol-2obtriestetrentinsuedtiroltrentino-s-tirollecceudineaostesienaparmaluccapaviagenoapaduaaostamonzaabruzzoternirietiturinmilanbozenlaziofermoleccocuneonuoropratola-speziavdataaligfvgpugmolcalcamlomumbsicpmnvenvaoedugovabrsarmaremrbastoslazibxosfirenzetrentinosüdtirolval-d-aostavalle-aostamessinacremonaravennatoscanatrentin-suedtirolbolognacalabriaurbinopesarofriuli-v-giuliaogliastraxn--valle-aoste-ebblaquilaandriatranibarlettasyncloudtrentinosudtirolxn--valle-d-aoste-ehbaostavalleyvalled-aostatrentino-alto-adigevallee-d-aostexn--balsan-sdtirol-nsbpistoiasicilialucaniacataniaiserniaperugiabresciaveneziagorizialiguriaimperiabulsan-suedtirolbalsan-suedtirolbarlettatraniandriaxn--trentino-sdtirol-szbforlì-cesenatuscanyvallée-d-aostemantovavallée-aostecasertapiemontevalleaostaval-daostafriulivgiuliatrevisoforli-cesenavalléedaosteferrarapescaravald-aostatrentino-altoadigefriuli-vegiuliavallee-aostecarboniaiglesiastarantomediocampidanovalleedaostetrentinosud-tirolcampobassotrentinsüd-tiroltrentinosüd-tirolmonzabrianzatrentino-südtirolxn--trentino-sd-tirol-c3bpotenzacosenzavicenzaemiliaromagnavenicefrosinonemarchepordenonetrentinosued-tirolvaresemolisevalléeaostefriuli-veneziagiuliabasilicatalatinaanconasavonaveronamodenaaquilabiellabolzano-altoadigepugliafoggiaumbriatrentino-stirolgenovapadovamateranovararagusapiacenzatrentinostirolvalleeaostetempio-olbiatrentinsudtirolmassa-carrarafriuliveneziagiuliatrentinosuedtirolandria-barletta-tranitrapanixn--cesenaforl-i8amaceratacaltanissettaascoli-picenobrindisicarraramassacagliaririmininapolivibo-valentiachietibulsan-sudtirolbalsan-sudtiroltrentino-a-adigebulsanbalsaniglesiascarboniamilanotorinoteramodell-ogliastraarezzotrentinoalto-adigerovigotrentovenetoiglesias-carboniatrentino-sud-tirolaltoadigereggio-emiliareggio-calabriasardegnatranibarlettaandriapiedmontxn--sdtirol-n2amedio-campidanotrentino-süd-tirolfriuli-vgiuliafriuli-ve-giuliaromeennaromapisa32-b16-b64-blodiastibarineencomonaplesforlicesenailiadboxosalessandriasicilytrani-barletta-andriaxn--trentin-sdtirol-7vbpesarourbinotrentinsued-tirolcesena-forliforlìcesenaemilia-romagnamonzaebrianzaxn--trentinsdtirol-nsbtrentinos-tiroltrentinsüdtirolvalledaostaolbia-tempiocampidanomediovibovalentiasassarivalle-daostalombardyfriulivegiuliareggioemiliamonzaedellabrianzaalto-adigevercellitrentin-sudtiroltraniandriabarlettatrentino-sudtirolascolipicenobozen-südtirolfriulive-giuliaflorencevaldaostaxn--cesena-forl-mcbcarbonia-iglesiasaosta-valleycarrara-massadellogliastratrentinoa-adigexn--valleaoste-e7apesaro-urbinoxn--trentinosdtirol-7vbxn--trentin-sd-tirol-rzbxn--trentinsd-tirol-6vbtrani-andria-barlettatrentin-süd-tirolxn--trentinosd-tirol-rzbgrossetomonza-e-della-brianzasüdtirolreggiocalabriatrentinoaadigetrentin-südtirolfriuliv-giuliaverbaniacampaniatrentino-aadigefriulivenezia-giuliasardiniaandriabarlettatranibarletta-trani-andriacatanzarooristanourbino-pesarocesena-forlìvalle-d-aostacampidano-medio123homepagesiracusatempioolbiasuedtirollombardiaavellinocesenaforlìtrentinofriuli-venezia-giuliabozen-sudtirolandria-trani-barlettabulsan-südtirolbalsan-südtirolmonza-brianzabolzanotrentino-sued-tirolbellunosalernolivornocrotonesondriodnshometrentinsud-tirolmassacarraratrentin-sud-tiroltrentino-suedtirolviterbobergamocesenaforliolbiatempiopalermobeneventoagrigentoofcoorgnetfmaitvphdengorgmilcomschnetedugovperagrikanieasukehandachitatokaiaisaikonanoharuamaobuhigashiuraowariasahiinuyamatobishimaiwakurashitarainazawatoyonegamagorimihamatoyotataharakariyayatomioguchikomakimiyoshinishiotokonamekiyosuchiryutoyohashiokazakiisshikikasugaikotakiratoeianjotogofusosetohazutsushimashinshirotakahamanisshinshikatsuhekinantoyokawaichinomiyatoyoakeodateogataakitaikawakyowahonjoogayurihonjonoshirokamiokakatagamimitanegojomeyokotekosakadaisenkazunonikahohonjyomoriyoshimisatohappoukamikoanihachirogatahigashinarusesembokufujisatokitaakitaitayanagiowanitakkomutsutsurutahirosakigonoheoirasetowadamisawanohejiaomorishingohiranairokunohehashikamitsugarushichinohehachinohenakadomarisannohekuroishisakaeisumiasahiotakiinzaiabikomatsudoyachiyomutsuzawakujukuriomigawakashiwatoganemihamanaritasakuranagaramobarahanamigawachoshishiroichoseikozakishisuikatorimidorichonankyonanfuttsuonjukufunabashinagareyamanodasosatakochuotohnoshourayasukimitsuyokaichibayotsukaidosodegauratateyamakamagayayokoshibahikariyachimatakatsuuratomisatokisarazukamogawaichikawanarashinoichinomiyashimofusaminamibososhirakoichiharaoamishirasatoikatahonaiainansaijoseiyoiyoozuuwajimaniihamanamikatamasakiuchikokihokutobetoonshikokuchuomatsuyamaimabarikamijimakumakogenyawatahamamatsunosabaeikedaobamasakaifukuiohionotsurugamihamawakasaminamiechizeneiheijikatsuyamatakahamaechizensoedaukihaomutaokawanishiogoribuzenonojosueumiokiotochikugosasagurisaigawamizumakishinyoshitomikurumekurateyamadakasuganakamamiyamanogatatakatahakataiizukakawaratagawakasuyaashiyainatsukimunakataminamitsuikishonaikurogifukuchikeisenhigashimiyakoshinguyukuhashiokagakiyamekogaongausuikahotohochuotoyotsumiyawakadazaifuhisayamatachiaraiyanagawanakagawahirokawachikujochikushinochikuhochikuzennamieotamaokumashowateneiiwakikoorinangoononishigoshimogoomotegomishimafukushimaasakawakagamiishishirakawaiitatefutabahiratayugawahanawakitakatakawamatakunimiyabukibandaihigashihironoyamatomiharuyamatsuriaizubangedatesomaaizuwakamatsuyanaizuaizumisatonishiaizuizumizakikitashiobarataishinkaneyamakoriyamainawashirotanagurafurudonosamegawasukagawaishikawatamakawaikedaogakitaruiginanenahashimahichisonakatsugawaibigawashirakawamizunamiminokamomitakekawauesekigaharatomikasakahogikitagatayamagatatajimianpachimotosuyaotsukakamigaharahidakanisekitokigujominogodoyorogifukasamatsutakayamawanouchihigashishirakawakasaharashimonitatsumagoichiyodakannakanrashowameiwakiryuotaoratomiokafujiokaitakuranaganoharahigashiagatsumatakasakishibukawaminakamikatashinatsukiyonokawabanumataannakaoizumimidorishintoisesakiuenoyoshiokakusatsutakayamanakanojonanmokutamamuratatebayashimaebashiotakekaitadaiwahongofuchukuietajimashobaramiharahatsukaichihigashihiroshimamiyoshikumanokurenakasakaseraseranishiasaminamifukuyamashinichionomichiosakikamijimajinsekikogentakeharaotobenanaeikedatohmaozoraobiraabirakyowaeniwataikibibaisharirebunerimohiroooketootarupippunishiokoppechitosefurubirahakodateshiranukakitahiroshimakushiroobihironanporoiwamizawaniikappukunneppufukushimanakasatsunaitoyourakuromatsunaiakabirakamisunagawashibechaurakawakamifuranonakatombetsuasahikawashimokawakayabeokoppebiratoriabashirisaromaatsumanumatahidakabifukamukawamikasahorokanaitoyotomisarufutsuhigashikawaishikarikitamiyoichiesashiiwanaitomariminamifuranoakkeshifuranotoyakoyakumootoineppushikaoishiraoinemuronayorohaboroashorobihororishirifujiutashinaihokutotakasuebetsuurausuassabukikonaishimamakinaiedatetoyabieinikiesanuryuoumuteshikagarikubetsuashibetsukimobetsuaibetsutobetsusobetsuembetsushimizuchippubetsurishirihokuryuhoronobeshintokutsubetsushibetsuhonbetsumombetsutsukigatakuriyamakoshimizushiriuchikutchanmurorannoboribetsukamishihorowassamushinshinotsukembuchiwakkanaikamoenaikiyosatotakinoueshikabesunagawafukagawanakagawatakikawakamikawahigashikagurahamatonbetsumatsumaemoseushirankoshishakotanimakanemashikeotofuketomakomaisandatambaitamiawajikasaiasagoshisoonoakoyashirotoyookaminamiawajiinagawafukusakitakasagokamigorikasugaharimayokawaashiyahimejiakashitaishiaogakisannantakinosumototakarazukanishinomiyashingugoshikinishiwakiyokatakaaioimikisayoyabukawanishiamagasakisasayamashinonsenkakogawaichikawakamikawatatsunotsukubaiwamaogawaasahisakaitokaioaraiitakobandodaigosuifuinaamikasumigaurakashimaomitamayachiyoshimodatetomobetoridehitachinakainashikisakuragawakasamayawaramoriyahitachiomiyanamegatayamagatahitachikamisuushikutakahagiibarakitonekoganakasowayukimihojosomitoryugasakishimotsumafujishirotsuchiurachikuseihitachiotashirosatotamatsukuriuchiharashikahakuinanaotsubatawajimakahokukawakitatsurugikaganominotosuzuuchinadakomatsuanamizunakanotohakusannonoichikanazawaiwateshiwafudaikawaimoriokaofunatohanamakikuzumakikitakamininohekunoheyamadayahabasumitaichinosekitanohatahiraizumirikuzentakatajobojiotsuchihironomiyakoiwaizumikarumaiichinohenodakujitonooshushizukuishifujisawamizusawakamaishikanegasakimannoutazukotohiraayagawazentsujihigashikagawauchinomikanonjisanukimarugamemitoyotakamatsutadotsunaoshimatonoshoakuneamamiizumihiokiyusuikinkoisasookouyamanakatanekagoshimakanoyaisenkawanabeminamitanemakurazakitarumizunishinoomotematsumotosatsumasendaioimatsudaayaseebinamiurazushinakaiodawaraiseharasagamiharahakoneaikawakaiseiatsugitsukuihadanoyamatoyamakitazamaoisochigasakininomiyayokosukakamakuraminamiashigarafujisawasamukawakiyokawahiratsukayugawaraokawaumajikochitsunootoyoakiinonishitosayasudahidakamiharasakawaniyodogawahigashitsunokagamigeiseisusakiotsukinaharisukumomurototosakamiochitoyotosashimizumotoyamanankokunakamurakitagawayusuharaogunichoyoukiasoutoozugyokutoamakusamifunetakamoriyamagaminamataminamiogunikikuchisumotoyamatonagasumashikiaraokumamotokamiamakusanishiharayatsushiroayabeseikasakyoideineujinakagyokameokakyotangokyotanabekyotambaminamiyamashiroyamashinatanabeyawatawazukaminaminantanmiyazuhigashiyamafukuchiyamakitamukokamojoyokizumaizuruujitawaraoyamazakinagaokakyokumiyamakawagoeinabeshimameiwaasahitaikiudonoisetsukisosakikuwanamihamamiyamasuzukatamakimisuginabarikumanokomonominamiisewataraitobakiwatakikihotadomatsusakayokkaichikameyamaureshinoishinomakishichikashukuohirataiwaosakizaohigashimatsushimashikamaiwanumashibataogawaraonagawakawasakiseminemarumoriminamisanrikukakudamuratawakuyatomiyanatoriwataritagajomisatotomekamirifushiroishimatsushimayamamotoshiogamafurukawahyugaebinotsunosaitoayakushimanobeokakitauramiyazakitakazakigokaseshiibamimatashintomikunitomikitakatakobayashikawaminamitakaharukijotakanabemiyakonojonishimeranichinankitagawakadogawamorotsukakisofukushimaminamimakisakaeobuseikedaogawamiasaokayaasahiotakiotarichinoinaomichikumakomaganechikuhokukaruizawayasuokaooshikaikusakaminamiaikitogakushimatsukawakawakamitateshinatakamorikitaaikishiojirimiyadahakubaiizunaiijimaiiyamamiyotasuzakayasakatoguraookuwanagawaminowahirayayamagataminamiminowafujimiomachisakakitakaginaganonakanosakuhokomoronagisoshinanomachiwadauedaiidaharasuwatomiachiaokianankisosakunozawaonsenagematsutakayamashimosuwamatsumotoyamanouchinakagawamochizukiazuminotatsunoobamaomuraseihiunzenosetofutsuikichijiwanagasakiisahayahasamisaikaikawatanasasebohiradokuchinotsugototogitsutsushimashimabarashinkamigotomatsuurayamazoekashibaikomakawaitenrioyodosangokoryoudaojiikarugayamatokoriyamatenkawakatsuragikurotakikawakamimiyakemitsuetakatorikamikitayamayamatotakadahegurishinjokanmakisakuraitawaramotogoseoudanarasoniandokawanishishimoichihigashiyoshinokashiharashimokitayamanosegawayoshinomintsivorytopazsakuragehirnsumomoaseinetopalmail-boxmokurenyoitamuikaojiyagosensanjoaganomyokoseiroagaomishibataniigatanagaokamurakamiuonumayuzawakariwatagamitainaitsunanminamiuonumatochioyahikojoetsuseiroukamosadoizumozakitokamachiitoigawasekikawakashiwazakitsubamemitsukekokonoesaikiusukibeppuusahimeshimakunisakihasamataketatsukumihitaoitahijikusuyufukujukamitsuebungoonobungotakadaibaraniimibizentsuyamaokayamakasaokahayashimayakagemaniwaakaiwamisakishinjotamanotakahashikibichuowakesojanagishookumenannishiawakurakurashikiasakuchisetouchikagaminosatoshotomigusukunakagusukuyaeseizenaurumaiheyaaguniogiminanjokinminamidaitokitanakagusukuyonaguniokinawaishigakikunigamiurasoekadenataramahiraraginozataketomishimojizamamitonakiitomanhigashimotobuyonabarugushikamionnanahanagohaebarukumejimakitadaitonakijinnishiharayomitanginowantokashikiishikawaikedasuitaminohizuminishisakaikananabenodaitoosakasayamayaokishiwadatadaokakaizukatondabayashichihayaakasakakumatorikadomasayamahigashiosakashijonawatehirakatataishimisakitajirihannansennankatanotoyonominatosettsuhigashiyodogawaibarakinosekitachuohigashisumiyoshifujiiderakashiwaraizumiotsutoyonakamatsubaramoriguchiizumisanoshimamototakatsukineyagawahabikinotakaishikawachinaganoyoshinogarikamiminearitaouchiimarihizenogikashimaariakekiyamafukudomikitagatakitahataomachigenkaikanzakinishiaritakyuragisagataratosutakushiroishikaratsuhamatamakouhokukawagoeyoshidasatteogoseirumaasakaurawaogawaniizaomiyayoriiotakishikihonjooganohannohanyuinasaitamaokegawaarakawayoshikawayokozehasudasayamahidakafukayachichibuiwatsukiryokamiyoshimikamiizumifujimiwarabiranzanmiyoshiminanoyashiosakadosugitomisatohigashichichibutodasokakukiyonokazoshiraokakasukabekounosukawajimatsurugashimamiyashirokitamotohatoyamamoroyamahatogayakumagayakawaguchinagatorokamisatomatsubushinamegawatokigawakamikawafujiminohigashimatsuyamakoshigayatokorozawas3isk01isk02ryuohkoseikonanaishorittotakashimamaibarahikonetorahimenishiazaikokagamokotoyasuotsukusatsunagahamamoriyamatoyosatotakatsukinotogawaomihachimanhigashiomiakagiunnanizumogotsuamayatsukakakinokimatsuehamadamasudahikawahikimiokuizumoyasugiyakumomisatotamayuohdahigashiizumookinoshimanishinoshimatsuwanoshimaneshimadafujiedayoshidashimodagotembaiwataatamikosaiyaizuitoizumishimahaibaramakinoharaomaezakikawanehonkannamisusonohigashiizufukuroinumazukawazufujiaraishizuokahamamatsushimizuizunokunimatsuzakimorimachiminamiizunishiizukikugawakakegawafujikawafujinomiyaujiietsugaoyamayaitaohiranikkoashikagakuroisokanumasakurashioyakarasuyamamotegiichikaikaminokawatochigihagamokanogisanobatonasumibunasushiobaranishikatautsunomiyaiwafunemashikoshimotsukeohtawaratakanezawaitanokomatsushimatokushimaichibaminamiaizumiwajikikainanmiyoshinarutomimamugiananmatsushigesanagochishishikuinakagawamachidachiyodakomaefussainagitaitochofufuchuomeotahigashiyamatotoshimaokutamaaogashimakodairaedogawaarakawahachiojishinagawatachikawashibuyasuginamihinodekiyosesumidaoshimanerimamitakahamuraadachinakanomizuhobunkyomegurominatokoganeihigashikurumekokubunjihigashimurayamamusashimurayamatamakitahinochuokotokatsushikakouzushimaogasawaraakishimakunitachishinjukusetagayamusashinohachijoitabashiakirunohinoharachizunanbukotouramisasawakasayonagokogehinoyazutottorinichinansakaiminatokawaharaoyabetairainamiasahinantoimizufuchutakaokakurobeyamadajohanatoyamatonaminyuzenfunahashinakaniikawanamerikawaunazukitogahimiuozufukumitsutateyamakamiichiiwadearidayuasainamitaijikatsuragiaridagawatanabemihamahidakakainankiminomisatoshingushirahamakamitondayurakozakoyagobokitayamawakayamakudoyamahashimotokushimotokozagawahirogawakinokawanachikatsuurarsuseroeoishidasagaeoguniasahinagaitendonanyoobanazawanishikawasakataohkuratozawamikawamamurogawayamagatafunagatatakahatashonaishinjokahokuiideyuzakawanishitsuruokakaminoyamayamanobeshiratakamurayamanakayamakaneyamahigashineyonezawasakegawamitouubeyuuabushimonosekitabuseoshimatoyotaiwakunihikarishunannagatohagihofukudamatsutokuyamashowadoshitsurunanbukoshukaiminami-alpsnirasakikosugeotsukioshinohokutominobuyamanashifuefukichuokofuichikawamisatoyamanakakonakamichitabayamanishikatsuranarusawafujikawahayakawafujiyoshidafujikawaguchikouenohara長野京都岐阜大阪三重群馬千葉滋賀佐賀奈良adednelgaccogogror秋田愛知高知埼玉沖縄栃木熊本岩手青森山梨新潟島根鳥取長崎香川宮城石川大分宮崎茨城山口兵庫山形徳島広島福島福岡岡山富山静岡愛媛福井東京xn--4it168dhatenadiaryxn--vgu402ckawaiishophatenablogcocottenamaste北海道penneehimeiwateversestabachibashigagonnagunmapermahaccaakitaosakauh-ohblushkochiaichifukuikuroncapooitigohyogotokyokyotopunyuthickcheap0t00g00j0mie2-ddaapyawjg0amfemsubxiiboomoobutchueekpgwrgrherskrboyrdyupperunderflierchipsmydnsheavyangryhippygirlyrulez神奈川鹿児島和歌山bambinaxn--nit225kokayamasaitamaxn--k7yn95exn--1lqs03nsapporoparasitelolipopmcxn--efvn9sniigatafukuokatokushimafukushimahiroshimakagoshimafakefurokinawaxn--8pvr4ucoolblogxn--0trq7p7nnkawasakinagasakimiyazakichilloutxn--8ltr62kxn--klty5xpeeweezombiecutegirlxn--rny31hxn--uuwu58axn--ntso0iqx3axn--djrs72d6uytoyamanikitanyantakagawamimozanagoyaboyfriendxn--2m4a15egreaterchowderegoismyamagatafashionstorexn--elqq16hxn--pssu33lsendaimiyagixn--rht27zpecoriaomorisaloonwatsonvivianxn--djty4knobushipigboatnaganopinokoxn--f6qx53asadistvelvetsecretxn--5js045dchicappayamanashiibarakidigickgirlfriendxn--1lqs71dmongolianxn--c3s14mxn--qqqt11mtochigixn--5rtq34kparallelo0o0mondkobesagabonadecaoitanarafoolkilldecimainhiholomosblokilociaoundopupugifutankcrapflopnooroopsmodsholyjeezstripperpepperbittershizuokaxn--rht3dkitakyushureadymadeicurusversusmatrixxn--rht61ehungryfloppygloomycrankyhandcraftedlittlestarxn--klt787dxn--kltx9awhitesnowsunnydaytottorilovepoptheshopbuyshopxn--5rtp49cxn--d5qv7z876cwebaccelxn--kbrq7oxn--4pvxsxn--1ctwolovesickkumamotocatfoodxn--tor131oyokohamawakayamatonkotsuxn--ehqz56nxn--uist22hxn--6btw5axn--kltp7dyamaguchifrenchkisspussycatxn--4it797kxn--uisz3gbabybluexn--zbx025dnetgamersxn--7t0a264ckanagawaxn--6orx2rishikawaxn--ntsq17ghalfmoonschoolbusjellybeanxn--mkru45iusercontentlolitapunkxn--32vp30hsakurastoragehokkaidoshimanecandypopbabymilksupersaleweblikeraindropbackdropwebsozaikikirarahateblodaynightmeneacsccogoormobiinfoaeusxxorgmilcomnetedugovorgcomnetedugovbizinfotmprdorgmilcomnomedugovassnotairespresseassocoopgouvveterinairemedecinpharmaciensorgnetedugovtraorgcomedurepgovmeneperekgacscaiiocogoitoresmshsseoulbusanulsandaeguc01milvkimmvchungnamjeonnamjeonbukeliv-dnsgyeonggijejueliv-cdnincheondaejeongangwongyeongbukgwangjuchungbukgyeongnameliv-apicoeduindorgcomembnetedugovorgmilcomnetedugovjcloudorgcomnetintedugovperbnrinfocooyorgcomnetedugovipfscanvamypepw3sstorachakeeneticjoinmcinbrowserdwebcyonnftstoragemyfritzaemewphlxachotelltdorgcomwebsocschngonetintedugrpgovassnomgacsccoorgnetedugovbizinfo123websiteidorgmilcomasnnetedugovconfidmedorgcomplcschnetedugovaccoorgnetgovpresstmassoirseproxaccosoundcasthoptocraftvp4c66orgnetedugovitsmcdirmyboxbarsyedgestacksynologylogintonohostwebhopdiskstationi234tcp4hoocgroknoipprivmydsddnsdnsforlohmustransipdscloudfilegear-sgbrasiliafilegearframerbarsybarsyonlinecoprdorgmilcomnomedugovinforgcomnetedugovnameacprorgcomartnetedugovpresseinfoassoinstgouvorgnycedugovbarsydscloudjuorgcomnetedugovminisiteaccoororgcomnetgovorgmilcompronetintedugovbizmuseumnameinfoaerocoopaccoorgcomnetintedugovbizcooporgcomgobneteduorgmilcomnetedugovbiznameaccoorgmilneteduadvgovcoorgcomnetaltgovforgotherhiskeeneticispmanagernomassoprod5476132eastasiacentraluswesteuropewestus2eastus2rucdnwest1-usfra1-desandboxjls-sto1jls-sto3jls-sto2aglobalabglobalsslmapprodfreetlsmaplon-1lon-2ny-1fr-1sg-1ny-2paassnwebpaashostingjelasticnordeste-idcsocuserpagescwebfileblobservicebuscoreatlricnjsjelasticwebsitestoragesezagbinruhuukjptsmyspreadshopmynetnameakamaiorigin-stagingfrom-coipv64dynv6cdn77serveblogadobeaemcloudhicamsprytdnsupno-ipownipde5ovhicpfirewall-gatewaysytesmypsxbarsyusgovcloudapimyamazemyradwebakamaihdsaveincloudfastlylbfrom-lasubsc-paysquare7in-the-bandblackbaudcdnhomelinuxoninfernoctfcloudservebbsdns-dynamiccloudfrontakamai-stagingipifonyham-radio-opsenseeringclickrisingcommunity-profrom-nylocalcertgrafana-devedgesuite-stagingcloudflareanycasteating-organicatlassian-devmydattofeste-iplocaltotorprojectknx-serveredgekeycloudflareglobalcloudyclustercasacamserveftpakamaized-stagingakamaiorigindns-cloudmyeffectboomlabotdashbuyshousestwmailhetemlazure-mobilein-dslthruhereredirectmedynuddnsbouncemesupabaseluyanicloudappakamaicloudfunctionsdebiannhlfanpgafanstatic-accessin-vpnmysynologymafeloappudohomeftptrafficmanagersiteleafseidatmemsetcloudflarecloudaccesskeyword-onazure-apiis-a-chefdoes-itgets-itwebhopselfiphomeipkicks-assedgesuitewindowsserver-ontunnelmolemydissentscrapper-sitecloudflarecnuni5srcfggffiobbzabcdenodynuopikddnsvpndnsakadnselastxkinghostvps-hostfastlyhomeunixazureedgeshopselectdontexistmyfritzcloudjiffyalwaysdatasells-itsquaresbroke-itazurefddattolocalat-band-campmeinforumfamilydsazurestaticappsdefinimabplaceddnsaliasdynaliasnow-dnsblogdnsroutingthecloudendofinternetdsmynasakamaiedgemymediapcadobeio-staticakamaiedge-stagingakamaihd-stagingddns-ipprivatizehealthinsurancelive-onkrellianschokokeksmassivegridmysecuritycamerarackmazeserveminecraftfrom-azis-a-geekakamaizedmoonscalecryptonomicoffice-on-theusgovtrafficmanageradobeioruntimeedgekey-stagingreserve-onlinechannelsdvrdnsdojousgovcloudappcdn77-sslapps-1and1podzoneazurewebsitesdynathomescaleforceyandexcloudvusercontentisa-geekcdn-edgescoaemalcesappwriteazimuthtlonarvonoticeablestorecomwebrecnetperotherfirminfoartslgdloncogoiltdorgmilcolcomplcschgenngonetedugovbiznamefirmmobiacincoorgmilcomnomwebgobnetintedubizinfocomyspreadshopdemongovtransurl123websitehosting-clusterkhplaycistrongsnesosvalervålerxn--vler-qoaossandeheroysandeherøybøboheroyherøyxn--hery-iraxn--b-5gavalerbøboxn--b-5gasandesandexn--hery-iraxn--vler-qoavålerhåreålaahavaofsfvfhlolnlalrlhmfmtmahcostntbuåstrmreigersundmyspreadshopgálsáeidsvolltingvollgildeskalflorøvadsøvardøvanylvenxn--bhccavuotna-k7astrandaxn--kvnangen-k0axn--sknland-fxaxn--mosjen-eyarakkestadhyllestadnannestadvevelstadvaapstenordre-landsondre-landsøndre-landtjieltexn--vrggt-xqadsør-aurdalsor-aurdalheradstordmoldefordeførdeseljefedjeryggehemnexn--krehamn-dxasognegranesøgnebrynetjomevallebykletokkegiskedovretjømehobølvoldasaudatolgasømnaviknadønnasomnadonnatranafrananesnaraumasmolatrænafrænalesjasmølaørstaorstahitrafloraaukraloppafrøyarissasnasahalsagalsaromsaraisaráisafroyasnåsagronghobolfjelltydalårdalardalaskimharamkraanghkekråanghkesorumbarumhurumbærumsørummodumsálátbálátfrognbjugnvåganvagangulenskienløtenlotenstrynvefsnxn--merker-kuaskaunsveiobømlobomloskjåkvardoflorovadsosalatbalatsálatklæbuklabuselbubarduulvikskjakklepprisørxn--nttery-byaeflåeidflahofmilgolholsellomskifetvikdepvgsfhsaskerrisorhamarasnesåsnesrørosrorosxn--slat-5namasoynaroyvaroyluroydyroyaskoyradoyandoyrodoymeloyradøyandøyrødøymeløyaskøylurøydyrøymåsøyværøynærøyhoylandethøylandetdivtasvuodnalørenskoglorenskognesoddtangenxn--tjme-hraxn--smla-hraxn--stjrdal-s1aunjargalillehammerunjárgaxn--hamary-fyadavvenjargaxn--bearalvhki-y4a123hjemmesidegjerdrumxn--brnnysund-m8acxn--tnsberg-q1axn--mlatvuopmi-s4axn--snsa-roaxn--skierv-utaxn--brum-voatysfjordkvafjordeidfjordkvæfjordsongdalenmjondalenmjøndalenxn--gls-elackragerogáŋgaviikagangaviikasørreisasorreisasør-varangersor-varangerxn--risr-iraskiervaxn--frna-woaxn--trna-woakvinesdalleksvikleirvikrøyrvikroyrviksvelvikvenneslaevje-og-hornnessandnessjøenmarnardalvindafjordsandefjordenebakksnillfjordullensvangxn--trany-yuabrønnøysundnamsskoganaustevollxn--stjrdalshalsen-sqbnord-aurdalnord-frontrøgstadtrogstadgrimstadflakstadgjerstadxn--sandy-yuaxn--leagaviika-52bnore-og-uvdalvegarsheixn--rlingen-mxaxn--ggaviika-8ya47hvegårsheikarlsoykvitsoymasfjordenhamaroyinderoyosteroydavvenjárgasauheradguovdageaidnuxn--vre-eiker-k8abronnoysiellakkrødsheradkrodsheradkvinnheradbrønnøyxn--mtta-vrjjat-k7afxn--lrenskog-54akvitsøyvárggátkarlsøyosterøyinderøyhamarøybronnoysundxn--aurskog-hland-jnbbahccavuotnabáhccavuotnagiehtavuoatnastor-elvdalmidtre-gauldalxn--gildeskl-g0akarasjokevenassixn--bievt-0qaxn--yer-znalebesbynessebyxn--hbmer-xqamalselvmålselvxn--unjrga-rtamøre-og-romsdalmore-og-romsdalhareidmelandørlandorlandstrandålgårdsolundalgardafjordåfjorddielddanuorrikautokeinoxn--stre-toten-zcbskodjeaejriestangeliernebamblestokkefauskesnåasesnaasekongsvingerlangevagberlevagxn--flor-jrahattfjelldalostre-totenøstre-totenvestfoldxn--mely-iraálaheadjualaheadjunordreisaxn--troms-zuaxn--lgrd-poacporsangerflatangerstavangerleikangerbremangersamnangergieldakarasjohkaxn--rdy-0nabfrostautsirasnoasatromsaxn--sr-aurdal-l8aflekkefjordjølsterjolsteraremarkhedmarknååmesjevuemienaamesjevuemiexn--vard-jrarollagmeråkermerakerorskogørskogxn--bdddj-mrabdákŋoluoktaxn--osyro-wuaaknoluoktatrysilskjervøymandaljondalbindalrindalmeldalsuldalorkdalsigdalalvdallærdalhurdalsirdalverdallerdallardaloppdalåseralaseralhadselkragerødivttasvuotnaoverhallasteinkjerxn--hnefoss-q1askedsmokorsettromsøxn--dyry-iravestre-totenmuseumxn--sandnessjen-ogbrahkkeravjufylkesbiblbájddarbajddarxn--laheadju-7yarennesøyxn--koluokta-7ya57hxn--hgebostad-g3aleirfjordstorfjordbalsfjordbåtsfjordbatsfjordmuosátbievátloabátkárášjohkanøtterøyxn--mjndalen-64anordkappláhppilahppialstahaugsiljanverranrøykenroykenhaldenlyngenbergenhortenhønefosshonefosstroandinbeiarnvarggatosoyroosøyrotromsoidrettmuosatbievatruovatloabatvoagattynsetnessetxn--indery-fyaskánitskanitraholtråholtxn--ystre-slidre-ujbandebusarpsborgbearduxn--karlsy-fyahordalandjorpelandjørpelanddeatnuringsakersør-odalsor-odalxn--slt-elabringerikeaudnedalnittedalnissedalhemsedalslattumsurnadalxn--blt-elabelverumstjørdalnaustdalhjartdalgjøvikfyresdalhasviknarviklarvikgjovikmalvikgamviklenvikporsgrunnstjordalengerdaldrobakdrøbakxn--msy-ula0hvestvagoyxn--vgan-qoaxn--ryken-vuaxn--lten-graxn--stfold-9xaxn--hpmir-xqaxn--lury-iramálatvuopmimalatvuopmitysværkirkenesbirkenesmoskenesbáidárxn--fjord-lraxn--rdal-poabahcavuotnabáhcavuotnaxn--frde-gralindåsbearalvahkixn--hobl-iraráhkkerávjuxn--loabt-0qavågåáltábodøsundlundraderådeetnetimeholeauregrueoddavagavegaranatanaarnasolasulaaltalekafusavangbergkvamåmliamlibokntinnroangranosenoslobodorøstroststatåmotamotivguprivøyeroyerliermossvossxn--nvuotna-hwalusterlunnermarkerhábmerhabmerhvalerfjalerxn--rholt-mratysvarbaidarfitjargaularhápmirhapmirmelhusfosnesøksnesoksnestysneshemnesevenesflesbergeidsbergtonsbergtønsberglindasxn--sndre-land-0cbnamsosxn--srum-graøystre-slidreoystre-slidrevestre-slidretrondheimbalestrandxn--langevg-jxaaustrheimxn--skjk-soavagsoyaveroysandoykarmoyfinnoytranoyvestbytranbysykkylvenxn--hyanger-q1aspjelkavikandasuoloxn--fl-ziaxn--drbak-wuastathellexn--sr-varanger-ggbtelemarkxn--bhcavuotna-s4axn--porsgu-sta26fčáhcesuolocahcesuoloakrehamnåkrehamnsandøykarmøyfinnøytranøyvågsøyaverøynamdalseidxn--lesund-huabadaddjaxn--vegrshei-c0axn--btsfjord-9zagildeskålporsanguxn--trgstad-r1anávuotnanavuotnahammerfestxn--sgne-graxn--brnny-wuacibestadharstadnarviikaevenáššivestnesgjemnessandnesagdenesrennesoyxn--avery-yuaxn--tysvr-vrabearalváhkikongsbergspydebergrandabergxn--andy-iradavvesiidaxn--krdsherad-m8aporsáŋgufredrikstadbjerkreimringeburennebuaurskog-holandnotteroyxn--vgsy-qoa0jxn--rmskog-byaskierváivelandbyglandfrolandaurlandforsandxn--bjddar-ptamidsundålesundalesundfetsundfarsundovre-eikerøvre-eikerakershusxn--moreke-juasørfoldøstfoldostfoldsorfoldhøyangerhoyangerlevangerorkangertanangerxn--vestvgy-ixa6olillesandulsteinxn--rennesy-v1agranvinskjervoyxn--klbu-woalavagisxn--h-2faxn--ryrvik-byakafjordkåfjordseljordfolkebiblxn--gjvik-wuajevnakerxn--kfjord-iuabudejjuxn--kranghke-b0axn--davvenjrga-y4axn--rland-uuaxn--ldingen-q1axn--mlselv-iuaxn--rady-iraxn--linds-prabrumunddalxn--ygarden-p1amo-i-ranaeidskogrømskogromskoghjelmelandxn--finny-yuaxn--sr-odal-q1axn--skjervy-v1aballangenkvanangenkvænangengratangenxn--hmmrfeasta-s4acvossevangensuohkanxn--rde-ulaxn--mli-tlaxn--ksnes-uuanordlandskanlandskånlandsortlandfuoiskuxn--rros-graxn--hcesuolo-7ya35bxn--eveni-0qa01gagaivuotnagáivuotnaxn--seral-lradrammenmodalenmosjoenjan-mayentorskensteigengloppenxn--snes-poamatta-varjjatxn--sr-fron-q1aomasvuotnajessheimbådåddjåxn--krager-gyaxn--kvfjord-nxaxn--asky-iraxn--snase-nraxn--bidr-5nacholtålenxn--vads-jraxn--jlster-byamosjøenxn--rst-0nastavernxn--ostery-fyaxn--oppegrd-ixaxn--sknit-yqaxn--risa-5naoppegårdskiptvetrendalenholtalenxn--mot-tlaxn--lhppi-xqaxn--holtlen-hxaxn--srreisa-q1akopervikxn--muost-0qaxn--bmlo-grahokksundkvalsundegersundxn--karmy-yuaullensakerxn--hylandet-54axn--kvitsy-fyaxn--bod-2nalangevågberlevågkristiansandxn--rsta-frahornindalstjørdalshalsenstjordalshalsensandnessjoenhámmárfeastaxn--lrdal-srasør-fronsor-fronnord-odalkristiansundmátta-várjjatvestvågøynesoddennotoddenbuskerudøygardenoygardensalangenlavangenralingenrælingenlodingenlødingenleaŋgaviikalaakesvuemieleangaviikauenorgexn--srfold-byaaskvollxn--rskog-uuaxn--nry-yla5gxn--vry-yla5ghammarfeastaxn--rhkkervju-01afxn--givuotna-8yakommunekrokstadelvanedre-eikerhagebostadhægebostadxn--berlevg-jxakviteseidxn--s-1faxn--l-1faxn--nmesjevuemie-tcbafuosskomoårekemoarekexn--lt-liacxn--jrpeland-54asvalbardoppegardholmestrandtvedestrandsogndalsokndalarendalsunndalfolldalxn--krjohka-hwab49jlyngdaletnedalnorddalsaltdalgausdalskedsmovaksdalgjesdalstordalxn--frya-hraaarbortedrangedalxn--smna-graaurskog-hølandxn--vg-yiabtjeldsundhaugesundlindesnesxn--mre-og-romsdal-qqbxn--dnna-gradynmerseineshacknetenterprisecloudmineaccomaorimāoriorgmilcriiwigennetschoolhealthkiwigovtgeekxn--mori-qsacloudnsparliamentcomedorgcompronetedugovmuseumwebsitekinservicebarsywebsitebuildereerobookheimdnsleapcelleero-stagetechcrscsslorigingohomecdbedeeeiemesecabgngilnlalplchfisiincnnoroptatitmtltruauhulumkdkukskjplvtrgrfrkrhrusesismycynzcznetinteduassoososcloudstgbetaaezaeuhkusjshatenadiarycdn77hoptozaptois-a-knightmyftpno-ipjpnddnssdpdnsspdnsbarsysweetpepperis-a-bruinsfanis-very-sweetservegameis-a-soxfanhomelinuxcdn77-secureservebbsmisconfusedwebredirectblogsitefreedesktopcouchpotatofriestoolforgeaccesscamis-lostreadmyblogsmall-webfedorapeopleserveftpis-a-celticsfanmywirepotagertwmailin-dslsellsyourhomeread-booksfreeddnscable-modemis-savednflfanufcfanmlbfanstuff-4-saleendoftheinternetin-vpnmy-firewallhomeftpis-localis-a-chefboldlygoingnowherewebhopselfipkicks-assroxatunkcamdvrfedoraprojectgotdnsdvrdnsdyndnspubtlspimientahomeunixdontexistfedorainfracloudwmflabsfspagesbmoattachmentsteckidsfamilydsdnsaliasdynaliasnow-dnscloudnsdoomdnsduckdnsblogdnshomednsroutingthecloudendofinternetdsmynasip-dynamicpoivronhttpbinmyfirewallis-very-evilmysecuritycamerais-a-linux-userwmcloudis-a-geektuxfamilyis-a-candidatedoesntexistis-very-badhobby-sitegame-hostaltervistais-foundis-a-patsfandnsdojohepforgepodzonedynservcollegefanis-very-goodfrom-meis-very-niceisa-geeknerdpolacmedsldingorgcomnomgobabonetedupleskaemhlxmyboxrockyprvcydeuxfleurspdnscodebergheyflowstatichostorgmilcomnomgobneteduorgcomeduiorgmilcomngonetedugovcloudns1337ngrokacorggogfamcomwebgobnetedugokgopgkpgovgosbizpasaugumicsopozpapuwmwsrprusiskwpspkppspkmpspokeoiawsawifoumsdnskokwpmuppuppsppiwwiwoowuzswkzoschrzpisdnwzmiuwwitdpssewsseumigugimoirmpinbwinbwiihupporzgwgriwupowwskrwioswuozstarostwokonsulattmpccopruszkowmyspreadshopostrodakartuzyopolegminamediaustkazgorajgoraolawailawalomzawloclradombytomjaworznotargilubinkoninzagantorunkutnokepnonakloczestsopotsanokturekplockslasksklepzarowlukowmedaidgdaorgmilrelcomnomatmgsmartneteduelkgovwawsossexbiztgorysejnytychypomorzeboleslawiechomesklepsdscloudunicloudzakopanelegnicarawa-mazbydgoszczswidnikkrasnikwloclawekbielawamragowograjeworealestatebeskidykaszubymalopolskaprzeworskswiebodzinlecznadfirmaszkolawarmiagdyniamiastakazimierz-dolnymalborkswidnicadlugolekaostrolekapodlasieelblagtravelsimplesitezachpomormielecszczecinnieruchomosciwalbrzychlezajsklublinbedzinpoznanwielunmielnooleckostarachowicedkontopowiatwroclawrybniksuwalkileborkslupskgdanskostrowwlkptarnobrzegtourismwegrowkrakowglogowyou2pilanysamailwrocinfoagroautobeepshopprivlapypiszlodzcfolksecommerce-shopmazurypulawyskoczowrzeszowpomorskiezgierzkaliszolkuszlowiczostrowiecsosnowiecmazowszewodzislawbialowiezazgorzeleckatowicepabianicejelenia-gorawolominkarpaczsieradznowarudaczeladzkonskowolaskierniewiceswinoujscieturystykabieszczadycieszynketrzynolsztynbialystokbabia-goraprochowicewarszawastalowa-wolapolkowicegorlicegliwiceponiatowalimanowalubartowaugustowkobierzyceopocznognieznoszczytnokolobrzegshoparenapodhalebielskoklodzkostargardatwithplayitownnamecoorgnetedugovacorgcomproestnetedugovbiznameislaprofinforechtngrokmedaaaacacpaenglawjurbarbarsykeeneticavocatacctcloudnsorgcomsecplonetedugov123paginaweborgcomnetintedugovnomepublidkinbarsygovx443cloudnsorgmilcomnetedugovcooporgmilcomschnetedugovnamecomcannetlibassoaemclantmcontstoreorgcomnomrecwwwbarsyfirminfoshopartsstackitmyddnswebspacelima-cityacincooxorgedugovbarsybrendlyhbvpsvpsspectrumlandinghostingacppmordoviamcprecbgorgmilcomspbnetintedumsknovgovbirrasmcdirmytismircloudvladimirnalchikadygeyamarinepyatigorskmyjinobashkiriaeurodirvladikavkazna4ugroznykustanaikalmykiacldmaildagestaniranbuildcanvaliaravalwixdevelopmentappwritemigrationneedleverceldatabasestackitcodereplravendbonporterlovableaccoorgmilnetgovcoopmedorgcompubschnetedugovservicemecomygovorggovtvmedorgcomnetedugovinfoedgfacbmlonihkutwpsryxzbdtmacfhppmyspreadshopbrandpartiorgcomfhvpress123minsidaitcouldbeworlanbibkommunalforbundfhskiopsyskomvuxkomforbnaturbruksgymnloginlineorgcomnetedugovenscaledeuusentbotdaorgmilcomnetgovnowteleporthashbangplatformlovablebarsyshopwarebasehoplixbarsyonlinemsf5gitappgitpagecofigma-govcaffeinefigmacanvasoltstputerbarsysupportchatgptsquareomniweopensocialcpanelnotionnovecorewpsquaredpreviewjelecyonbyensrhtfastvpspieboxconvexjouwwebheyflowplatformshloginlinemadethissourcecraftclouderaorgorgcomartedugouvunivmeorgcomnetedugovsurveysstatichfheiyuxs4allprojectmyfastubervibehostapp-ionosdeployagentmecoorgcomschnetedugovbizcncostoreorgmilcomneteduembaixadaconsuladokiraranohoprincipesaotomeheliohobarsystorebaseshopwaresellfyabkhaziavologdamordoviapenzalenugsochinavoiexnetspbmsknovnorth-kazakhstanashgabadkareliaarmeniageorgiavladimirnalchikivanovobukharaadygeyakhakassiakalugakrasnodarjambylaktyubinsktroitskbryanskobninskkurganazerbaijanpokrovskbashkiriatselinogradvladikavkazmurmansktulatuvamangyshlaktashkentchimkentgroznykaragandatermezarkhangelskkustanaikalmykiabalashoveast-kazakhstankaracoldagestantogliattibarsyredorgcomgobedumirenknightpointaccoorgjelasticdiscoursecleverappsschacmiincogoornetonlineshopcogoorgmilcomwebnicnetintedugovbiznametestcoorgmilcomnomnetedugovorangecloudpersoindorgcomfinnatnetgovensmincomtourismintlinfox0611oyaorgmilcomnetedugovquickconnectvpnplusnettprequalifymeaddrmyaddrntdllwadlnctvavdrk12orgmilpolbeltelcomwebgennetedutskkepgovbbsbiznameinfocoorgmilcompronetedugovbiznameinfobetter-thanworse-thansakurafromdyndnson-the-webmymailerorgmilurlcomneteduidvgovmydnsgameclubebizmeneacsccogotvorhotelmilmobiinfovodteiflgplkmsmsbcckhincndnvncoztltmkckppzpdprvcvkvlvcrkrkscxuzchernovtsyrivneyaltaodesavolynrovnolutskltdinforgcomnetedugovbizvinnicazhitomirternopilpoltavakropyvnytskyizaporizhzhiasevastopolsebastopoluzhgoroduzhhorodkharkovkharkivvinnytsiakhmelnytskyizaporizhzhecrimeaodessazhytomyrnikolaevcherkassydonetskluganskluhanskkirovogradivano-frankivskchernivtsikrymkievkyivlvivsumyzakarpattiamykolaivcherkasychernigovkhersonchernihivdnipropetrovskdnepropetrovskkhmelnitskiyneacsccogoorusorgmilcomedugovvmdhmyspreadshopadimono-ipbarsybytemarkbarsyonlinelayershiftnh-servretrosnubapicampaignservicelugaffinitylotteryweeklylotteryraffleentrygluglugsmeaccoindependent-inquestnimsitecopropymntltdorgplcschnetgovnhsbarsyindependent-commissionindependent-reviewpolicepublic-inquiryindependent-panelconnhospindependent-inquiryroyal-commissionoraclegovcloudappscck12libccphxcclibpvtparochchtrcck12libcceatonk12coglibtecgendstmusann-arborwashtenawcck12glghcck12sealibforksolympiabainbridge-islkeyporthoquiamyarrow-pointcentraliaport-townsendsequimport-ludlowrentonsilverdalebremertonredmondsheltonbellevueport-orchardport-angeleskingstonchehalisaberdeengig-harborseattlepoulsboidmdndsddemenegacalamaiavawapailalflnmdcncscohnhmihiviwiriinmntnmocoutvtctmtgunjokakwvnvprarorasmskstxwynykyazisadninsnngosrvis-bymircloudservernamepointtoenscaledland-4-salefreeddnsstuff-4-saleazure-apinoipcloudnsgolffanheliohostazurewebsitesgvorgmilcomgubneteducoorgcomnetd0egvorgmilcomnetedugovmydnsiacostoree12orgmilcomnomwebgobbibrectecnetintedugovraremprendefirminfoartseducok12orgcomnethidnsidacaiiosonlahanamhanoicamauhueorgcompronetintedugovbizbacninhtayninhhoabinhnamdinhtravinhhaiphongvinhlonghaiduongquangnamquangtrithuathienhuequangninhbacgianghaugiangquangbinhsoctrangbentrethanhphohochiminhdanangkontumhatinhkhanhhoathanhhoahealthgialailaocaiyenbaibackanngheanlonganphuyenphuthocanthodaklakdongnainameinfovinhphucdongthapkiengiangtiengiangquangngailaichaulangsonlamdongdaknonghagiangangiangcaobangbinhduongninhthuanbinhthuanbaclieuthaibinhninhbinhbinhdinhtuyenquanghungyenbaria-vungtauthainguyendienbienbinhphuocschbizputerimagine-proxyorgcomnetedugovcloud66advisormypetsdyndnsxn--8dbq2axn--4dbgdty6cxn--5dbhl8dxn--hebda8bxn--80auxn--d1atxn--c1avgxn--o1acxn--o1achxn--90azhxn--55qx5dxn--uc0atvxn--od0algxn--wcvs22dxn--gmqw5axn--mxtq1mxn--12c1fe0brxn--h3cuzk1dixn--12co0c3b4evaxn--12cfi8ixb8lxn--o3cyx2axn--m3ch0j3axn--j1adpxn--90amcxn--90a1afxn--h1ahnxn--j1ael8bxn--h1alizxn--c1avgxn--j1aefxn--80aaa0cvacxn--41acaffeineexeopentunnelbotdashtelebitorgtmaccoagricorgmilnomwebnicngonetaltedugovlawnisschoolgrondaraccoorgmilcomschnetedugovbizinfoprg1-zeropstritonstackitlimazeropsaccoorgmilgovяспборгкоммскбизмирсамаракрымсочиакодпроргобрупрצהלממשלישובאקדמיהองค์กรธุรกิจรัฐบาลศึกษาทหารเน็ต教育網絡組織公司政府個人닷넷한국澳门新闻澳門联通家電嘉里招聘通販닷컴삼성コムგეбгрфеюadcdbdgdidmdsdtdaebedeeegeiejekemenepereseveyegabacalamanauavapaqasazacfbfafgfnfpfwftfbgcgagggegkgngmgsgpgvgtgugilmlnlalclglplsltlhmimjmkmmmomambmcmdmfmgmzmpmsmtmgbbblbsbecccacnclcmcvctcscmhkhghchbhthphshlinikifigiaibicivisikninhnmncnbngnsnpnvntnjoionomobocoaofodorosotoptstttytatbtetgtithtmtltrusuvuaucueuguhulumunufjdjbjtjsjlkmkhkfkdkcktkukskpkgpmpnpkpjpgqaqmqiqsvtvcvbvmvlvrwpwtwzwbwcwawgwkwmwtrsrprgrfrercrbrarnrmrlrkrirhrwsusrssspsgsesbsaslsmsissxmxaxcxuypysylymykygybycyuztzsznzmzkzdzczbzazελευ世界台灣购物公益点看臺灣网络書籍在线网站手机机构大拿游戏信息台湾谷歌慈善商标香港中国餐厅网址中國商城食品微博政务移动集团公司八卦商店健康网店政府时尚佛山中信娱乐广东企业homedepotengineeringاماراتrepublicankuokgroupversicherungchannelcitadelxn--pgbs0dhxn--b4w605ferdstatebankwebsitexn--mgb9awbf亚马逊淡马锡alibabaxn--ngbc5azdxn--mgbbh1axn--45br5cyltoshibabuildworldcloudtradeguideplacespacedancemoviephoneprimesmilebiblestyleappleazurestoreskypegripexn--l1accdrivelottehorsehouseleasechasereisestadahondaomegaaetnaamicaninjanokiamediadeltavodkaedekaosakapizzaslingemailgmailtirolshelltmallfinallegaltotalhotelamfamforumrehabmusicciticricohcoachwatchboschearthfaithirishmiamiarchidubaiguccipraxiみんなストアセールcanonsalononionnikonepsonkoelngreensevencrownikanoradioaudioweiboglobopromogalloyahoociscorodeovideomangobingotokyovolvolottokyotophotosmartsportquesttrusthyattjetztadultcymrubaidutushuxn--kprw13dubankclickblackmerckgroupsharpcheapnowtvxn--h2brj9cקוםհայоргсрбмонкомбелмкдқазрусукрمصرقطرعربكومdadcfdmedwedredphdthdbidpidkrdmsdltdiceonewmeglemoerwecfageacbanbambaaaammakianraspacpaaxawtfbcgaegongingaigvigorgdogdhlmilrilonlaolloluoljllcalgalnflafltelsrlfrllplkimibmcamcombommomifmabbjcbscbcabnabtabmlbpubabcbbcnecincpncllcstcwtcpwcnyckfhbzhovhmoiskiobisbitcifyituipinvinwinxincbnbcnmanfangdnmenrenkpnmtnyunrunfununobiojioriohbogmofooboooooacoecoceongoproartistottnttbbtcateatlatvetpetbetnethktmitfitintjothotgotdotbotprueduicujnjyouinknhktdkappsapgapmapdnptopgopllpjmpzipvipripesqtrvdtvitvdevmovgovhivnrwlawsewnewbmwwownowhowdvrftrmtrsfrbarcartvscrseusawsupsubssbsadsddsldssasbmsmlsxxxboxfoxgmxtjxsextaxbuyflydiysoyjoyskypaydaygayxyzanzbizwebersenerpokerlameractortatarsolarລາວคอมไทยtourslocusnexuslexusgiftsbeatsboatspartspressglassswissकॉमनेटtiresgivescodeshomesgamestunesshoescardswalesloansvegastoolsdealsautosparisファッションworkssucksrocksxeroxforexfedexpartylillymoneystudyrugbytoraytoday中文网xn--unup4y天主教飞利浦新加坡enterprises我爱你嘉里大酒店christmasxn--fct429kholdingsxn--8y0a063axn--mgbx4cd0ablifestyleabogadoallstatenetbankكاثوليكxn--s9brj9cxn--gk3at1ebestbuycharityxn--55qx5dmicrosoftpropertybasketballhomegoodscorsicajewelrygallerygrocerysurgerycountrybrusselsverisignferreroxn--czr694bhdfcbankcommbanksoftbankپاكستانپاکستانnextdirectالسعوديهالعليانxn--h2brj9c8cxn--80adxhksshikshaxn--mgbai9azgqp6jcuisinellabarclayscatholicxn--kpry57dcompanyxn--xhq521bblackfridayxn--mgba3a3ejtsandvikxn--d1acj3bacademydownloadمليسياxn--j1amhxn--w4r85el8fhu5dnraipirangaathletaxn--fhbeixn--mgbqly7cvafrzuerichxn--c2br7gஇலங்கைcontractorsxn--io0a7igraphicsinsurancetemasekxn--xkc2al3hye2amotorcyclesphotographydirectoryplumbingxn--vhquvclothingtrainingcleaningwilliamhilllightingxn--mgba3a4f16ashoppingcateringeducationokinawapicturesventuresproductionsxn--9et52uwalmartഭാരതംsupportrealestatecapitalonexn--nqv7fs00emaauspostfloristdentistxn--qxamgodaddybradescobargainsmitsubishikerryhotelsxn--9dbq2axn--3pxu8kimmobilienxn--fjq720axn--mgbtx2bholidaymckinseymadridbusinessbuildershelsinkixn--4gbrimмоскваالسعودیةcoffeedegreelacaixapartnersalsaceofficeabbvievoyageorangegeorgeonlinechromemobilekindlegoogleoraclecircleschulesecureinsurexn--mgba7c0bbn0aestatexn--mgbc0a9azcgcruisehangoutxn--vuq861bxn--42c2d9arexrothfirestoneuniversityxn--nnx388alifeinsuranceextraspaceонлайнvermögensberatersoftwarexn--fiqs8sxn--mgbab2bdxn--w4rs40ltiendaभारतम्africatoyotaotsukasakuracameracreditcardnagoyaconsultingnetworkjunipertheatermonsterprogressivepioneerxn--55qw42gracingdatingvotingvikinglivinggivingxn--bck1b9a5dre4cbrotherweatherjoburgفلسطينlplfinancialxn--clchc0ea0b2g2a9gcdfutbolschoolsocialglobaldentalwoodsidechanelairtelmatteltravelrealtorwebcamstreamభారత్unicomalstomxn--nodexn--6frz82gmuseumfurniturexn--rvc1e0am3exn--mix891faccenturexn--11b4c3dismailineustardiscountquebeccomsecclinicservicesxn--y9a3aqxn--c1avgswatchchurchsearchالاردنmarketingcontacthealthmonashshoujisanofitaipeiamericanexpresssuzukiアマゾンクラウドポイントbhartiグーグルxn--mgberp4a5d4armemorialxn--1qqw23alondonmormoninstitutevisionbostonnortoncouponmaisonamazonvirginberlindesigndurbanolayannissananquanxihuanhitachikaufengardenreisenbayerntechnologydatsunxn--90a3aclatinocasinostudiophysioxn--ngbe9e0apharmacytattootaobaoaramcoexpertreportabbottdirectselectimamatfairwindspictettargetmarketintuittravelersinsurancecreditdupontryukyusuppliesxn--tckwebnpparibasschmidtmerckmsdyodobashirestaurantbridgestonecricketxn--fpcrj9c3dbostikbroadwayattorneylefrakemerckxn--fiq228c5hscareersfarmerswinnersflowersxn--wgbh1cguitarsxn--54b7fta0ccxn--p1acfmakeupgalluplandroverxn--kcrx77d1x4agoldpointbauhausxn--mgbayh7gpahiphopplaystationxn--mgba3a4fraxn--eckvdtc9dhyundaixn--gckr3f0fistanbulticketsmarketsflightschintaireviewsxn--3e0b707ewindowsxn--fiqz9sfinancialxn--fzys8d69uvgmابوظبيdiscoverreviewবাংলাxn--5su34j936bgsgmoscowobserverapartmentsдетиارامكوсайтeurovisionxn--i1b6b1a6a2exn--xkc2dl3a5ee0hتونسموقعبارتڀارتشبكةعمانبيتكعراقreadkredbondlandbandfundfoodprodgoldfordtubecafesafelifeggeeieeefreefagepagegugezonewinememenamegamesaleablebikenikelikecarecbreherefiresaveloveliveblueartedatesitevotecaseluxebofamodaltdaasdatiaayogasinavanashiaasiajavabbvatevavivadatazaraarpacasavisasncfprofmaifsurfgolfdvagsongbingpingwangkpmggoogblogpohlfailcooldellcalldeallidlsarlfilmteamroomfarmimdbarabclubhdfcicbchsbcgmbhrichtechfishdishcashminiernikddiaudiwikimobitaxicitikiwidesiqponskinloanakdnwienopenporncerntownimmolimoolloinfonicofidolegosaxozeroaerovivoautovotomotofastbestresthostpostnextlgbtchatseatgiftmeetdietreitmintrentgentspotscotguruitausohumenucyoubanklinkpinkdclktalksilkbookseekworkrsvpaarpjeepshopcoophelpcamppccwshowbeerstarruhrflirweirhaircarsparsjprshausplusnewstipstoysjobskidsfanspicsdocsxboxamexsexynavycitysonyarmyallybabyplaydeliverybuzzgbizlamborghiniphilipsලංකාಭಾರತfitnessexpresslanxesspfizercenterwalterlawyersoccercareerkosherbrokerlockerdealerdoctorauthorxn--mgbqly7c0a67fbcvermögensberatungjaguarxn--pssy2uxn--hxt814eflickrrepairrogersairbusxn--mgbai9a5eva00beventsyachtsxn--t60b56aভাৰতভারতभारतभारोतviajeshermeshughesxn--j1aefसंगठनvillasଭାରତclaimshotelsભારતzapposphotosjuegoscondostatamotorsgratistennisਭਾਰਤtkmaxxtjmaxxschaeffleryandexxn--80aswgrealtysafetybeautyluxuryxn--3ds443gsupplyfamilyxn--o3cw4hhockeysydneyxn--90aenissayalipayenergycomputeragencyxn--rovu88b電訊盈科xn--gecrj9cstatefarmaccountantaquarelleolayangroup香格里拉xn--p1ai组织机构xn--1ck2e1bxn--mgbt3dhdschwarzموريتانياabudhabinowruzkomatsufujitsuhospitalxn--80asehdbxn--mgbtf8flxn--j6w193gxn--yfro4i67oprudentialxn--flw351ecruisescoursesrecipesxn--e1a4cferrarixn--ses554gxn--wgbl6awatchesstaplessinglesxn--mgbcpq6gpa1axn--otu796dpropertiescreditunionxn--mgbah1a3hjkrdstockholmhisamitsuالسعوديةstcgroupdomainsoriginscouponsbloombergclubmedfroganslimitedxn--80aqecdr1aexposedinternationalequipmentbarclaycardxn--q7ce6axn--mgbi4ecexpprotectionassociatesconstructionxn--cck2b3bxn--45q11candroidfoundationישראלxn--mgbca7dzdocliniqueboutiqueengineerxn--qxa6asystemsfirmdalefashionauctionxn--nqv7finfinitirentalsreliancetradingweddingfishinghostinggentingbookingcookingxn--3hcrj9cgraingerxn--czrs0tdemocratsamsungyokohamaxn--h2breg3evexn--nyqy26alundbeckmelbournevacationssolutionsfrontierxn--vermgensberatung-pwbmanagementxn--cg4bkixn--mgb2ddeslincolnhamburgsandvikcoromantblockbusterairforcebarefootxn--4dbrk0ceinvestmentsfeedbackcommunityxn--ngbrxالبحرينdiamondsamsterdamhealthcareredumbrellaxn--mxtq1mxn--2scrj9cagakhanxn--mgbpl2fhкатоликcaravanசிங்கப்பூர்richardlimortgageamericanfamilyxn--fzc2c9e2cscholarshipssaarlandxn--imr513nvlaanderensamsclubgoodyearkitchenஇந்தியாweatherchannelallfinanzxn--kput3iالسعودیۃxn--90aisxn--efvy88hالجزائرxn--mgbaam7a8hexchangejpmorganxn--tiq49xqyjfidelitysecurityxn--mk1bu44cwanggouxn--fiq64bxn--6qq986b3xlxn--mgbbh1a71exn--80ao21amarshallsxn--5tzm5gtravelerspanasoniclatrobeyoutubeaccountantsxn--rhqv96gxn--cckwcxetdanalyticsxn--ygbi2ammxبازاربھارتسوريةorganicfreseniusسورياxn--9krt00axn--qcka1pmcxn--jlq480n2rgdeloittesciencefinancexn--jvr189mxn--30rr7yhomesensehotmailbaseballfootballleclercboehringerxn--q9jyb4cxn--mix082fاليمنهمراهpolitieسودانايرانایرانnetflixyamaxunxn--lgbbat1ad8jcollegestoragecapetowncolognekerrypropertiesxn--mgbgu82axn--ogbpf8flxn--czru2dwhoswhociprianilasallexn--g2xx48cforsalebanamexaudiblexn--vermgensberater-ctbxn--zfr164bericssonvanguardxn--45brj9cindustriestheatremarriottxn--3bst00mcomparexn--mgberp4a5d4a87gcapitaldigitalالمغربbarcelonashangrilaxn--d1alfcalvinkleinwwwcitysapporokawasakinagoyasendaikobekitakyushuyokohamackjp",Jse=621,eoe=625,Uj=Pl.length,jj=t1.length,zj=new Uint32Array(jj),S0=new Uint32Array(jj),p3=new Int32Array(Uj).fill(-1);for(let e=0,t=0;e<Uj;e+=1)for(let n=e1[e];n<e1[e+1];n+=1){zj[n]=t;const r=t+t1[n];let a=5381;for(let s=r-1;s>=t;s-=1)a=a*33^h3.charCodeAt(s);S0[n]=a>>>0,t1[n]===1&&h3.charCodeAt(t)===42&&(p3[e]=n),t=r}let yo=-1,m3=0,g3=0;function z6(e,t,n,r){if(t1[e]!==r)return!1;const a=zj[e];for(let s=0;s<r;s+=1)if(h3.charCodeAt(a+s)!==t.charCodeAt(n+s))return!1;return!0}function F6(e,t,n,r,a){let s=e1[e],i=e1[e+1];for(;s<i;){const u=s+i>>>1,c=S0[u];if(c<t)s=u+1;else if(c>t)i=u;else{for(let f=u;f>=s&&S0[f]===t;f-=1)if(z6(f,n,r,a))return f;for(let f=u+1;f<i&&S0[f]===t;f+=1)if(z6(f,n,r,a))return f;return-1}}return-1}function $6(e,t,n){let r=t,a=e.length,s=5381;yo=-1;for(let u=e.length-1;u>=0;u-=1){const c=e.charCodeAt(u);if(c===46){const f=u+1;let h=F6(r,s>>>0,e,f,a-f);if(h===-1&&(h=p3[r]),h===-1)return yo!==-1;r=j6[h],(Pl[r]&n)!==0&&(yo=r,m3=f,g3=a),a=u,s=5381}else s=s*33^c}let i=F6(r,s>>>0,e,0,a);return i===-1&&(i=p3[r]),i!==-1&&(r=j6[i],(Pl[r]&n)!==0&&(yo=r,m3=0,g3=a)),yo!==-1}function gNe(e,t,n){if(Qse(e,t,n))return;const r=(t.allowPrivateDomains?2:0)|(t.allowIcannDomains?1:0);if($6(e,eoe,r)){n.isIcann=(Pl[yo]&1)!==0,n.isPrivate=(Pl[yo]&2)!==0,n.publicSuffix=e.slice(g3+1);return}if($6(e,Jse,r)){n.isIcann=(Pl[yo]&1)!==0,n.isPrivate=(Pl[yo]&2)!==0,n.publicSuffix=e.slice(m3);return}n.isIcann=!1,n.isPrivate=!1;const a=e.lastIndexOf(".");n.publicSuffix=a===-1?e:e.slice(a+1)}const toe=()=>C.jsxs("div",{className:"hidden h-full w-[17%] min-w-40 max-w-64 shrink-0 flex-col gap-1 border-r border-line p-3 md:flex",children:[C.jsx("div",{className:"mb-3 h-6 w-24 rounded bg-surface-sunken"}),Array.from({length:6}).map((e,t)=>C.jsxs("div",{className:"flex items-center gap-2 py-1.5",children:[C.jsx("div",{className:"size-5 shrink-0 rounded bg-surface-sunken"}),C.jsx("div",{className:"h-3.5 flex-1 rounded bg-surface-sunken"})]},t))]}),noe=()=>C.jsx("div",{className:"min-w-0 flex-1",children:Array.from({length:8}).map((e,t)=>C.jsxs("div",{className:"flex items-start gap-3 border-b border-line py-2 pl-5 pr-4",children:[C.jsx("div",{className:"mt-0.5 size-7 shrink-0 rounded-full bg-surface-sunken"}),C.jsxs("div",{className:"flex-1 space-y-1.5",children:[C.jsxs("div",{className:"flex justify-between gap-2",children:[C.jsx("div",{className:"h-3.5 w-28 rounded bg-surface-sunken"}),C.jsx("div",{className:"h-3 w-12 rounded bg-surface-sunken"})]}),C.jsx("div",{className:"h-3.5 w-48 rounded bg-surface-sunken"}),C.jsx("div",{className:"h-3 w-full rounded bg-surface-sunken"})]})]},t))}),wv=()=>C.jsxs("div",{className:"flex h-full animate-pulse bg-canvas","aria-hidden":"true",children:[C.jsx(toe,{}),C.jsx(noe,{})]}),Dk="6311b4acca9854239fda71b99cdace6c81e95b8b",roe="2026-09-04T11:51:37.486Z",aoe=Dk.slice(0,7),soe=/^[0-9a-f]{40}$/.test(Dk),ooe=soe?`https://github.com/remit-mail/reader/commit/${Dk}`:void 0,ioe="https://github.com/remit-mail/reader/issues/new";class xv extends Error{constructor(t,n,r){super(t),this.status=n,this.body=r,this.name="ApiError"}status;body}const v3=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Fj=e=>{const t=e instanceof xv?e.body:e;if(!v3(t))return;const{code:n,details:r}=t;if(typeof n=="string")return{code:n,details:v3(r)?r:void 0}},loe=(e,t)=>{if(v3(e)&&e.message!==void 0&&e.message!==null){const n=String(e.message);if(n)return n}return`Request failed with status ${t}`},uoe=(e,t)=>new xv(loe(e,t),t,e),ns=e=>{if(e instanceof xv)return e.status;if(e&&typeof e=="object"){const t=e;if(typeof t.status=="number")return t.status;if(typeof t.statusCode=="number")return t.statusCode}},$j=e=>ns(e)!==void 0,Cv=e=>{const t=ns(e);return t!==void 0&&t>=500&&t<=599},Ev=e=>!!(typeof DOMException<"u"&&e instanceof DOMException&&e.name==="AbortError"||e&&typeof e=="object"&&"name"in e&&e.name==="AbortError"),coe=()=>typeof navigator<"u"&&navigator.onLine===!1,Bj=e=>Ev(e)||$j(e)?!1:e instanceof yk?!0:coe(),doe=e=>!$j(e)&&!Ev(e)&&!Bj(e),Hj=e=>Cv(e)||doe(e),foe=e=>ns(e)===401,hoe=(e,t)=>{if(t?.softError===!0)return!0;const n=t?.softErrorStatuses;if(!Array.isArray(n))return!1;const r=ns(e);return r!==void 0&&n.includes(r)},Lk=(e,t,n="nobody")=>Cv(e)?!0:Ev(e)||Bj(e)?!1:n==="user"&&foe(e)||Hj(e)?!0:!hoe(e,t),poe={softError:!0},qj=(...e)=>({softErrorStatuses:e}),moe=e=>ns(e)===404,goe=e=>Cv(e),y3=new Set;let Vj=null,Wj=null;const voe=e=>{Wj=e},yoe=e=>e instanceof Error?e:new Error(Gj(e)),Gj=e=>e instanceof Error?e.message||e.name:typeof e=="string"?e:e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"?e.message:"An unexpected server error occurred.",boe=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():`fatal-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,Vi=(e,t)=>{const n={error:e,message:Gj(e),correlationId:boe(),at:Date.now(),recoverable:t?.recoverable??goe(e),stack:e instanceof Error?e.stack:void 0,componentStack:t?.componentStack};Vj=n,_oe(`Fatal: ${n.message} [${n.correlationId}]`),Wj?.recordError(yoe(e),{fatal:"true",correlationId:n.correlationId});for(const r of y3)r(n);return n},Soe=e=>(y3.add(e),()=>{y3.delete(e)}),woe=()=>Vj,xoe=20,w0=[],Coe=new Set(["ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications"]);function Eoe(e){return typeof e!="string"?!1:Coe.has(e.replace(/\.\s*$/,""))}function x0(e){w0.push(e),w0.length>xoe&&w0.shift()}function _oe(e){x0(e)}function koe(e){return e.map(t=>{if(typeof t=="string")return t;if(t instanceof Error)return`${t.name}: ${t.message}`;try{return JSON.stringify(t)}catch{return String(t)}}).join(" ")}function Aoe(){const e=console.error.bind(console);console.error=(...t)=>{x0(koe(t)),e(...t)},window.addEventListener("error",t=>{Eoe(t.message)||(x0(`Uncaught ${t.error instanceof Error?`${t.error.name}: ${t.error.message}`:String(t.message)} (${t.filename}:${t.lineno})`),Vi(t.error??t.message))}),window.addEventListener("unhandledrejection",t=>{const n=t.reason,r=n instanceof Error?`${n.name}: ${n.message}`:String(n);x0(`Unhandled rejection: ${r}`),Vi(n)})}function Ioe(){return w0.slice()}const Roe=8,Tc=[];function Toe(e){const t=e.split(/[?#]/)[0],n=Tc[Tc.length-1];n&&n.path===t||(Tc.push({path:t,timestamp:new Date().toISOString()}),Tc.length>Roe&&Tc.shift())}function Ooe(){return Tc.slice()}const vw=7500,B6=`
149
+ … (truncated — the copy action on this screen has the full report)`;function n1(e){return{appShortSha:aoe,appCommitUrl:ooe,appBuildTime:roe,userAgent:navigator.userAgent,viewport:`${window.innerWidth}×${window.innerHeight}`,timestamp:new Date().toISOString(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,href:window.location.href,recentErrors:Ioe(),requests:xee(),routes:Ooe(),failingRequest:Cee(),errorMessage:e?.errorMessage,stack:e?.stack,componentStack:e?.componentStack,quarantine:e?.quarantine,title:e?.title}}function yw(e){return["```",e,"```"].join(`
150
+ `)}function Kj(e){const t=/T(\d{2}:\d{2}:\d{2})/.exec(e);return t?t[1]:e}function Noe(e){return`- **Version**: ${e.appCommitUrl?`[\`${e.appShortSha}\`](${e.appCommitUrl})`:`\`${e.appShortSha}\``} built ${e.appBuildTime}`}function Moe(e){const t=e.status===0?"no response (transport failure)":`${e.status}`;return["## Failing request",`- **Endpoint**: \`${e.path}\``,`- **Method**: ${e.method}`,`- **Status**: ${t}`,`- **Correlation id**: ${e.correlationId??"(none)"}`,""]}function Poe(e){return e.length===0?["## Recent API requests","(none)",""]:["## Recent API requests","| Time | Method | Path | Status | Duration | Correlation |","| --- | --- | --- | --- | --- | --- |",...e.map(n=>{const r=n.status===0?"ERR":`${n.status}`;return`| ${Kj(n.timestamp)} | ${n.method} | \`${n.path}\` | ${r} | ${n.durationMs}ms | ${n.correlationId??""} |`}),""]}function Doe(e){return e.length===0?["## Navigation trail","(none)",""]:["## Navigation trail",...e.map(n=>`- ${Kj(n.timestamp)} \`${n.path}\``),""]}function Yj(e,t){const n=e.recentErrors.length>0?e.recentErrors.map(s=>` - ${s}`).join(`
151
+ `):" (none)",r=["## Environment",Noe(e),`- **Browser**: ${e.userAgent}`,`- **Viewport**: ${e.viewport}`,`- **Time**: ${e.timestamp} (${e.timezone})`,"","## URL",e.href,""];if(e.errorMessage&&r.push("## Error",e.errorMessage,""),e.failingRequest&&r.push(...Moe(e.failingRequest)),e.quarantine){const s=t?.quarantineStructure??e.quarantine.structure;r.push(e.quarantine.head,"",yw(s),"",e.quarantine.disclaimer,"")}const a=t?.stack??e.stack;return a&&r.push("## Stacktrace",yw(a),""),e.componentStack&&r.push("## Component stack",yw(e.componentStack),""),r.push(...Poe(e.requests)),r.push(...Doe(e.routes)),r.push("## Recent console errors",n,"","## Steps to reproduce","1. ","","## Expected behaviour","","## Actual behaviour",""),r.join(`
152
+ `)}function Loe(e){if(e.title)return e.title;if(!e.errorMessage)return"Bug: ";const t=e.errorMessage.split(`
153
+ `)[0].trim();return`Bug: ${t.length>120?`${t.slice(0,117)}…`:t}`}function pg(e,t){const n=new URLSearchParams({title:Loe(e),body:Yj(e,t)});return`${ioe}?${n.toString()}`}function Uoe(e){return Yj(e)}function Uk(e){const t=pg(e);if(t.length<=vw)return t;const n={...e,componentStack:void 0},r=[];e.stack&&r.push(["stack",e.stack]),e.quarantine?.structure&&r.push(["quarantineStructure",e.quarantine.structure]),r.sort((s,i)=>i[1].length-s[1].length);let a={};for(const[s,i]of r){if(pg(n,a).length<=vw)break;let u=0,c=i.length,f=0;for(;u<=c;){const h=u+c>>1;pg(n,{...a,[s]:i.slice(0,h)+B6}).length<=vw?(f=h,u=h+1):c=h-1}a={...a,[s]:i.slice(0,f)+B6}}return pg(n,a)}function vNe(){const e=Uk(n1());window.open(e,"_blank","noopener,noreferrer")}const joe="/mail",Zj=()=>{const[e,t]=E.useState(()=>woe());return E.useEffect(()=>Soe(t),[]),e?C.jsx(Xj,{fatal:e}):null},H6=e=>({errorMessage:e.message,stack:e.stack,componentStack:e.componentStack}),Xj=({fatal:e,onRetry:t})=>{xk({id:"fatal-error",open:!0});const[n,r]=E.useState(!1),a=()=>{window.location.reload()},s=()=>{if(t){t();return}a()},i=()=>{const f=Uk(n1(H6(e)));window.open(f,"_blank","noopener,noreferrer")},u=async()=>{const f=Uoe(n1(H6(e)));await navigator.clipboard.writeText(f),r(!0),window.setTimeout(()=>r(!1),2e3)},c=e.recoverable?"The server returned an unexpected error. This is not your fault — nothing was saved or sent. Retry, or report a bug so we can fix it.":"Something went wrong and this page can't recover. This is not your fault — nothing was saved or sent. Go to your inbox, or report a bug so we can fix it.";return C.jsxs("div",{role:"alert","aria-live":"assertive","data-testid":"fatal-error-overlay",className:"fixed inset-0 z-[1000] flex flex-col items-center justify-center gap-6 bg-red-700 p-6 text-center text-white",children:[C.jsx(Sk,{className:"size-16 shrink-0","aria-hidden":"true"}),C.jsxs("div",{className:"max-w-lg space-y-3",children:[C.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:"Something broke"}),C.jsx("p",{className:"text-base text-red-50",children:c}),C.jsx("p",{className:"break-words font-mono text-sm text-red-100",children:e.message}),C.jsxs("p",{className:"font-mono text-xs text-red-200",children:["Reference: ",e.correlationId]})]}),C.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3",children:[e.recoverable?C.jsx("button",{type:"button",onClick:s,className:"inline-flex min-h-11 items-center rounded-md bg-white px-5 text-sm font-semibold text-red-700 transition-colors hover:bg-red-50",children:"Retry"}):C.jsx("a",{href:joe,className:"inline-flex min-h-11 items-center rounded-md bg-white px-5 text-sm font-semibold text-red-700 transition-colors hover:bg-red-50",children:"Go to inbox"}),C.jsx("button",{type:"button",onClick:i,className:"inline-flex min-h-11 items-center rounded-md border border-white/70 px-5 text-sm font-semibold text-white transition-colors hover:bg-white/10",children:"Report a bug"}),C.jsx("button",{type:"button",onClick:u,className:"inline-flex min-h-11 items-center rounded-md border border-white/70 px-5 text-sm font-semibold text-white transition-colors hover:bg-white/10",children:n?"Copied":"Copy full details"})]})]})},zoe=({betterAuthEnabled:e,cognitoConfigured:t})=>e?"betterAuth":t?"cognito":"none",Qj=e=>zoe(e)==="cognito"?jre:void 0,Foe="Fetch Error",jk=(e,t)=>{if(e&&typeof e=="object"&&t in e){const n=e[t];if(typeof n=="string"&&n.trim().length>0)return n}},zk=e=>jk(e,"message"),$oe=e=>Ev(e)?!1:jk(e,"statusText")===Foe?!0:ns(e)===void 0,Boe=e=>{if($oe(e))return"network";const t=ns(e);return t===void 0||t===404||t>=500?"fatal":zk(e)?"validation":"fatal"},Hoe="Can't reach the server. You may be offline — check your connection and try again.",qoe=(e,t)=>t==="network"?Hoe:zk(e)??"Please check your details and try again.",Voe=e=>{const t=ns(e);if(t===void 0)return"no response";const n=jk(e,"statusText");return n?`${t} ${n}`:String(t)},Woe=(e,t)=>{const n=Voe(e),r=ns(e)===404?"The endpoint did not respond as expected — check that the backend is running and up to date (see the deployment guide's troubleshooting section).":"The server returned an unexpected response.",a=zk(e),s=a?` Server said: ${a}.`:"";return`${t.method} ${t.path} failed: ${n}. ${r}${s}`},Goe=(e,t)=>{Vi(new Error(Woe(e,t)),{recoverable:!1})},Koe={method:"POST",path:"/api/auth/sign-up/email"},Yoe={method:"POST",path:"/api/auth/sign-in/email"},Zoe=()=>{const[e,t]=E.useState("signIn"),[n,r]=E.useState(""),[a,s]=E.useState(""),[i,u]=E.useState(""),[c,f]=E.useState(null),[h,m]=E.useState(!1),[g,y]=E.useState(!1),S=g?"signIn":e,w=(_,k)=>{if(kee(_)){y(!0),t("signIn");return}const A=Boe(_);if(A==="fatal"){Goe(_,k);return}f(qoe(_,A))},x=async _=>{if(_.preventDefault(),h)return;f(null),m(!0);const k=S==="signUp"?Koe:Yoe,A=await(S==="signUp"?Fh.signUp.email({email:a,password:i,name:n}):Fh.signIn.email({email:a,password:i})).then(R=>R.error??null,R=>R);m(!1),A&&w(A,k)};return C.jsxs(C.Fragment,{children:[C.jsx(Zj,{}),C.jsxs(uj,{children:[C.jsx(dj,{}),C.jsxs("form",{onSubmit:x,className:"mt-6 flex flex-col gap-4 rounded-lg border border-line bg-surface p-7 shadow-lg",children:[g?C.jsx(K0,{tone:"info",children:"New signups are currently closed. Sign in with an existing account, or contact your administrator for access."}):C.jsxs("div",{className:"flex gap-1",children:[C.jsx(en,{size:"sm",variant:S==="signIn"?"secondary":"ghost","aria-pressed":S==="signIn",onClick:()=>t("signIn"),children:"Sign in"}),C.jsx(en,{size:"sm",variant:S==="signUp"?"secondary":"ghost","aria-pressed":S==="signUp",onClick:()=>t("signUp"),children:"Create account"})]}),c&&C.jsx(K0,{tone:"danger",children:c}),S==="signUp"&&C.jsxs("div",{className:"flex flex-col gap-1 text-sm",children:[C.jsx("label",{htmlFor:"ba-name",className:"text-fg-muted",children:"Name"}),C.jsx(ts,{id:"ba-name",type:"text",autoComplete:"name",value:n,onChange:_=>r(_.target.value),placeholder:"Your name",required:!0})]}),C.jsxs("div",{className:"flex flex-col gap-1 text-sm",children:[C.jsx("label",{htmlFor:"ba-email",className:"text-fg-muted",children:"Email"}),C.jsx(ts,{id:"ba-email",type:"email",autoComplete:"email",value:a,onChange:_=>s(_.target.value),placeholder:"you@example.com",required:!0})]}),C.jsxs("div",{className:"flex flex-col gap-1 text-sm",children:[C.jsx("label",{htmlFor:"ba-password",className:"text-fg-muted",children:"Password"}),C.jsx($ae,{id:"ba-password",autoComplete:S==="signUp"?"new-password":"current-password",value:i,onChange:_=>u(_.target.value),placeholder:"Your password",required:!0})]}),C.jsx(en,{type:"submit",children:S==="signUp"?"Create account":"Sign in"})]}),C.jsx(cj,{note:Qj({betterAuthEnabled:fv(),cognitoConfigured:!1})})]})]})},Xoe=({children:e})=>{const{data:t,isPending:n}=Fh.useSession();return n?C.jsx(wv,{}):t?C.jsx(C.Fragment,{children:e}):C.jsx(Zoe,{})},Qoe=({children:e,fallback:t=null})=>{const{data:n}=Fh.useSession();if(!n)return C.jsx(C.Fragment,{children:t});const r=async()=>{await Fh.signOut(),bk()};return C.jsx(C.Fragment,{children:e({email:n.user.email??null,signOut:r})})},r1={configure:()=>{},getToken:Uee,resetToken:bk,Shell:Xoe,Account:Qoe};var bw,q6;function Joe(){if(q6)return bw;q6=1;function e(){this.__data__=[],this.size=0}return bw=e,bw}var Sw,V6;function Rp(){if(V6)return Sw;V6=1;function e(t,n){return t===n||t!==t&&n!==n}return Sw=e,Sw}var ww,W6;function _v(){if(W6)return ww;W6=1;var e=Rp();function t(n,r){for(var a=n.length;a--;)if(e(n[a][0],r))return a;return-1}return ww=t,ww}var xw,G6;function eie(){if(G6)return xw;G6=1;var e=_v(),t=Array.prototype,n=t.splice;function r(a){var s=this.__data__,i=e(s,a);if(i<0)return!1;var u=s.length-1;return i==u?s.pop():n.call(s,i,1),--this.size,!0}return xw=r,xw}var Cw,K6;function tie(){if(K6)return Cw;K6=1;var e=_v();function t(n){var r=this.__data__,a=e(r,n);return a<0?void 0:r[a][1]}return Cw=t,Cw}var Ew,Y6;function nie(){if(Y6)return Ew;Y6=1;var e=_v();function t(n){return e(this.__data__,n)>-1}return Ew=t,Ew}var _w,Z6;function rie(){if(Z6)return _w;Z6=1;var e=_v();function t(n,r){var a=this.__data__,s=e(a,n);return s<0?(++this.size,a.push([n,r])):a[s][1]=r,this}return _w=t,_w}var kw,X6;function kv(){if(X6)return kw;X6=1;var e=Joe(),t=eie(),n=tie(),r=nie(),a=rie();function s(i){var u=-1,c=i==null?0:i.length;for(this.clear();++u<c;){var f=i[u];this.set(f[0],f[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=a,kw=s,kw}var Aw,Q6;function aie(){if(Q6)return Aw;Q6=1;var e=kv();function t(){this.__data__=new e,this.size=0}return Aw=t,Aw}var Iw,J6;function sie(){if(J6)return Iw;J6=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return Iw=e,Iw}var Rw,eN;function oie(){if(eN)return Rw;eN=1;function e(t){return this.__data__.get(t)}return Rw=e,Rw}var Tw,tN;function iie(){if(tN)return Tw;tN=1;function e(t){return this.__data__.has(t)}return Tw=e,Tw}var Ow,nN;function Jj(){if(nN)return Ow;nN=1;var e=typeof ng=="object"&&ng&&ng.Object===Object&&ng;return Ow=e,Ow}var Nw,rN;function js(){if(rN)return Nw;rN=1;var e=Jj(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Nw=n,Nw}var Mw,aN;function Av(){if(aN)return Mw;aN=1;var e=js(),t=e.Symbol;return Mw=t,Mw}var Pw,sN;function lie(){if(sN)return Pw;sN=1;var e=Av(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,a=e?e.toStringTag:void 0;function s(i){var u=n.call(i,a),c=i[a];try{i[a]=void 0;var f=!0}catch{}var h=r.call(i);return f&&(u?i[a]=c:delete i[a]),h}return Pw=s,Pw}var Dw,oN;function uie(){if(oN)return Dw;oN=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Dw=n,Dw}var Lw,iN;function Dd(){if(iN)return Lw;iN=1;var e=Av(),t=lie(),n=uie(),r="[object Null]",a="[object Undefined]",s=e?e.toStringTag:void 0;function i(u){return u==null?u===void 0?a:r:s&&s in Object(u)?t(u):n(u)}return Lw=i,Lw}var Uw,lN;function Do(){if(lN)return Uw;lN=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Uw=e,Uw}var jw,uN;function Fk(){if(uN)return jw;uN=1;var e=Dd(),t=Do(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",s="[object Proxy]";function i(u){if(!t(u))return!1;var c=e(u);return c==r||c==a||c==n||c==s}return jw=i,jw}var zw,cN;function cie(){if(cN)return zw;cN=1;var e=js(),t=e["__core-js_shared__"];return zw=t,zw}var Fw,dN;function die(){if(dN)return Fw;dN=1;var e=cie(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return Fw=n,Fw}var $w,fN;function ez(){if(fN)return $w;fN=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return $w=n,$w}var Bw,hN;function fie(){if(hN)return Bw;hN=1;var e=Fk(),t=die(),n=Do(),r=ez(),a=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,i=Function.prototype,u=Object.prototype,c=i.toString,f=u.hasOwnProperty,h=RegExp("^"+c.call(f).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(g){if(!n(g)||t(g))return!1;var y=e(g)?h:s;return y.test(r(g))}return Bw=m,Bw}var Hw,pN;function hie(){if(pN)return Hw;pN=1;function e(t,n){return t?.[n]}return Hw=e,Hw}var qw,mN;function mu(){if(mN)return qw;mN=1;var e=fie(),t=hie();function n(r,a){var s=t(r,a);return e(s)?s:void 0}return qw=n,qw}var Vw,gN;function $k(){if(gN)return Vw;gN=1;var e=mu(),t=js(),n=e(t,"Map");return Vw=n,Vw}var Ww,vN;function Iv(){if(vN)return Ww;vN=1;var e=mu(),t=e(Object,"create");return Ww=t,Ww}var Gw,yN;function pie(){if(yN)return Gw;yN=1;var e=Iv();function t(){this.__data__=e?e(null):{},this.size=0}return Gw=t,Gw}var Kw,bN;function mie(){if(bN)return Kw;bN=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Kw=e,Kw}var Yw,SN;function gie(){if(SN)return Yw;SN=1;var e=Iv(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function a(s){var i=this.__data__;if(e){var u=i[s];return u===t?void 0:u}return r.call(i,s)?i[s]:void 0}return Yw=a,Yw}var Zw,wN;function vie(){if(wN)return Zw;wN=1;var e=Iv(),t=Object.prototype,n=t.hasOwnProperty;function r(a){var s=this.__data__;return e?s[a]!==void 0:n.call(s,a)}return Zw=r,Zw}var Xw,xN;function yie(){if(xN)return Xw;xN=1;var e=Iv(),t="__lodash_hash_undefined__";function n(r,a){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=e&&a===void 0?t:a,this}return Xw=n,Xw}var Qw,CN;function bie(){if(CN)return Qw;CN=1;var e=pie(),t=mie(),n=gie(),r=vie(),a=yie();function s(i){var u=-1,c=i==null?0:i.length;for(this.clear();++u<c;){var f=i[u];this.set(f[0],f[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=a,Qw=s,Qw}var Jw,EN;function Sie(){if(EN)return Jw;EN=1;var e=bie(),t=kv(),n=$k();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Jw=r,Jw}var ex,_N;function wie(){if(_N)return ex;_N=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return ex=e,ex}var tx,kN;function Rv(){if(kN)return tx;kN=1;var e=wie();function t(n,r){var a=n.__data__;return e(r)?a[typeof r=="string"?"string":"hash"]:a.map}return tx=t,tx}var nx,AN;function xie(){if(AN)return nx;AN=1;var e=Rv();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return nx=t,nx}var rx,IN;function Cie(){if(IN)return rx;IN=1;var e=Rv();function t(n){return e(this,n).get(n)}return rx=t,rx}var ax,RN;function Eie(){if(RN)return ax;RN=1;var e=Rv();function t(n){return e(this,n).has(n)}return ax=t,ax}var sx,TN;function _ie(){if(TN)return sx;TN=1;var e=Rv();function t(n,r){var a=e(this,n),s=a.size;return a.set(n,r),this.size+=a.size==s?0:1,this}return sx=t,sx}var ox,ON;function Bk(){if(ON)return ox;ON=1;var e=Sie(),t=xie(),n=Cie(),r=Eie(),a=_ie();function s(i){var u=-1,c=i==null?0:i.length;for(this.clear();++u<c;){var f=i[u];this.set(f[0],f[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=a,ox=s,ox}var ix,NN;function kie(){if(NN)return ix;NN=1;var e=kv(),t=$k(),n=Bk(),r=200;function a(s,i){var u=this.__data__;if(u instanceof e){var c=u.__data__;if(!t||c.length<r-1)return c.push([s,i]),this.size=++u.size,this;u=this.__data__=new n(c)}return u.set(s,i),this.size=u.size,this}return ix=a,ix}var lx,MN;function Hk(){if(MN)return lx;MN=1;var e=kv(),t=aie(),n=sie(),r=oie(),a=iie(),s=kie();function i(u){var c=this.__data__=new e(u);this.size=c.size}return i.prototype.clear=t,i.prototype.delete=n,i.prototype.get=r,i.prototype.has=a,i.prototype.set=s,lx=i,lx}var ux,PN;function Aie(){if(PN)return ux;PN=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return ux=t,ux}var cx,DN;function Iie(){if(DN)return cx;DN=1;function e(t){return this.__data__.has(t)}return cx=e,cx}var dx,LN;function Rie(){if(LN)return dx;LN=1;var e=Bk(),t=Aie(),n=Iie();function r(a){var s=-1,i=a==null?0:a.length;for(this.__data__=new e;++s<i;)this.add(a[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,dx=r,dx}var fx,UN;function Tie(){if(UN)return fx;UN=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(n(t[r],r,t))return!0;return!1}return fx=e,fx}var hx,jN;function Oie(){if(jN)return hx;jN=1;function e(t,n){return t.has(n)}return hx=e,hx}var px,zN;function tz(){if(zN)return px;zN=1;var e=Rie(),t=Tie(),n=Oie(),r=1,a=2;function s(i,u,c,f,h,m){var g=c&r,y=i.length,S=u.length;if(y!=S&&!(g&&S>y))return!1;var w=m.get(i),x=m.get(u);if(w&&x)return w==u&&x==i;var _=-1,k=!0,A=c&a?new e:void 0;for(m.set(i,u),m.set(u,i);++_<y;){var R=i[_],N=u[_];if(f)var O=g?f(N,R,_,u,i,m):f(R,N,_,i,u,m);if(O!==void 0){if(O)continue;k=!1;break}if(A){if(!t(u,function(T,P){if(!n(A,P)&&(R===T||h(R,T,c,f,m)))return A.push(P)})){k=!1;break}}else if(!(R===N||h(R,N,c,f,m))){k=!1;break}}return m.delete(i),m.delete(u),k}return px=s,px}var mx,FN;function nz(){if(FN)return mx;FN=1;var e=js(),t=e.Uint8Array;return mx=t,mx}var gx,$N;function Nie(){if($N)return gx;$N=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a,s){r[++n]=[s,a]}),r}return gx=e,gx}var vx,BN;function Mie(){if(BN)return vx;BN=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a){r[++n]=a}),r}return vx=e,vx}var yx,HN;function Pie(){if(HN)return yx;HN=1;var e=Av(),t=nz(),n=Rp(),r=tz(),a=Nie(),s=Mie(),i=1,u=2,c="[object Boolean]",f="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",y="[object RegExp]",S="[object Set]",w="[object String]",x="[object Symbol]",_="[object ArrayBuffer]",k="[object DataView]",A=e?e.prototype:void 0,R=A?A.valueOf:void 0;function N(O,T,P,L,q,j,U){switch(P){case k:if(O.byteLength!=T.byteLength||O.byteOffset!=T.byteOffset)return!1;O=O.buffer,T=T.buffer;case _:return!(O.byteLength!=T.byteLength||!j(new t(O),new t(T)));case c:case f:case g:return n(+O,+T);case h:return O.name==T.name&&O.message==T.message;case y:case w:return O==T+"";case m:var H=a;case S:var Z=L&i;if(H||(H=s),O.size!=T.size&&!Z)return!1;var se=U.get(O);if(se)return se==T;L|=u,U.set(O,T);var B=r(H(O),H(T),L,q,j,U);return U.delete(O),B;case x:if(R)return R.call(O)==R.call(T)}return!1}return yx=N,yx}var bx,qN;function rz(){if(qN)return bx;qN=1;function e(t,n){for(var r=-1,a=n.length,s=t.length;++r<a;)t[s+r]=n[r];return t}return bx=e,bx}var Sx,VN;function Lo(){if(VN)return Sx;VN=1;var e=Array.isArray;return Sx=e,Sx}var wx,WN;function az(){if(WN)return wx;WN=1;var e=rz(),t=Lo();function n(r,a,s){var i=a(r);return t(r)?i:e(i,s(r))}return wx=n,wx}var xx,GN;function Die(){if(GN)return xx;GN=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,s=0,i=[];++r<a;){var u=t[r];n(u,r,t)&&(i[s++]=u)}return i}return xx=e,xx}var Cx,KN;function sz(){if(KN)return Cx;KN=1;function e(){return[]}return Cx=e,Cx}var Ex,YN;function oz(){if(YN)return Ex;YN=1;var e=Die(),t=sz(),n=Object.prototype,r=n.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(i){return i==null?[]:(i=Object(i),e(a(i),function(u){return r.call(i,u)}))}:t;return Ex=s,Ex}var _x,ZN;function Lie(){if(ZN)return _x;ZN=1;function e(t,n){for(var r=-1,a=Array(t);++r<t;)a[r]=n(r);return a}return _x=e,_x}var kx,XN;function gu(){if(XN)return kx;XN=1;function e(t){return t!=null&&typeof t=="object"}return kx=e,kx}var Ax,QN;function Uie(){if(QN)return Ax;QN=1;var e=Dd(),t=gu(),n="[object Arguments]";function r(a){return t(a)&&e(a)==n}return Ax=r,Ax}var Ix,JN;function qk(){if(JN)return Ix;JN=1;var e=Uie(),t=gu(),n=Object.prototype,r=n.hasOwnProperty,a=n.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(i){return t(i)&&r.call(i,"callee")&&!a.call(i,"callee")};return Ix=s,Ix}var mh={exports:{}},Rx,eM;function jie(){if(eM)return Rx;eM=1;function e(){return!1}return Rx=e,Rx}mh.exports;var tM;function Vk(){return tM||(tM=1,(function(e,t){var n=js(),r=jie(),a=t&&!t.nodeType&&t,s=a&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===a,u=i?n.Buffer:void 0,c=u?u.isBuffer:void 0,f=c||r;e.exports=f})(mh,mh.exports)),mh.exports}var Tx,nM;function Tv(){if(nM)return Tx;nM=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,a){var s=typeof r;return a=a??e,!!a&&(s=="number"||s!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<a}return Tx=n,Tx}var Ox,rM;function Wk(){if(rM)return Ox;rM=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Ox=t,Ox}var Nx,aM;function zie(){if(aM)return Nx;aM=1;var e=Dd(),t=Wk(),n=gu(),r="[object Arguments]",a="[object Array]",s="[object Boolean]",i="[object Date]",u="[object Error]",c="[object Function]",f="[object Map]",h="[object Number]",m="[object Object]",g="[object RegExp]",y="[object Set]",S="[object String]",w="[object WeakMap]",x="[object ArrayBuffer]",_="[object DataView]",k="[object Float32Array]",A="[object Float64Array]",R="[object Int8Array]",N="[object Int16Array]",O="[object Int32Array]",T="[object Uint8Array]",P="[object Uint8ClampedArray]",L="[object Uint16Array]",q="[object Uint32Array]",j={};j[k]=j[A]=j[R]=j[N]=j[O]=j[T]=j[P]=j[L]=j[q]=!0,j[r]=j[a]=j[x]=j[s]=j[_]=j[i]=j[u]=j[c]=j[f]=j[h]=j[m]=j[g]=j[y]=j[S]=j[w]=!1;function U(H){return n(H)&&t(H.length)&&!!j[e(H)]}return Nx=U,Nx}var Mx,sM;function Fie(){if(sM)return Mx;sM=1;function e(t){return function(n){return t(n)}}return Mx=e,Mx}var gh={exports:{}};gh.exports;var oM;function $ie(){return oM||(oM=1,(function(e,t){var n=Jj(),r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===r,i=s&&n.process,u=(function(){try{var c=a&&a.require&&a.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}})();e.exports=u})(gh,gh.exports)),gh.exports}var Px,iM;function Gk(){if(iM)return Px;iM=1;var e=zie(),t=Fie(),n=$ie(),r=n&&n.isTypedArray,a=r?t(r):e;return Px=a,Px}var Dx,lM;function iz(){if(lM)return Dx;lM=1;var e=Lie(),t=qk(),n=Lo(),r=Vk(),a=Tv(),s=Gk(),i=Object.prototype,u=i.hasOwnProperty;function c(f,h){var m=n(f),g=!m&&t(f),y=!m&&!g&&r(f),S=!m&&!g&&!y&&s(f),w=m||g||y||S,x=w?e(f.length,String):[],_=x.length;for(var k in f)(h||u.call(f,k))&&!(w&&(k=="length"||y&&(k=="offset"||k=="parent")||S&&(k=="buffer"||k=="byteLength"||k=="byteOffset")||a(k,_)))&&x.push(k);return x}return Dx=c,Dx}var Lx,uM;function Kk(){if(uM)return Lx;uM=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,a=typeof r=="function"&&r.prototype||e;return n===a}return Lx=t,Lx}var Ux,cM;function lz(){if(cM)return Ux;cM=1;function e(t,n){return function(r){return t(n(r))}}return Ux=e,Ux}var jx,dM;function Bie(){if(dM)return jx;dM=1;var e=lz(),t=e(Object.keys,Object);return jx=t,jx}var zx,fM;function Hie(){if(fM)return zx;fM=1;var e=Kk(),t=Bie(),n=Object.prototype,r=n.hasOwnProperty;function a(s){if(!e(s))return t(s);var i=[];for(var u in Object(s))r.call(s,u)&&u!="constructor"&&i.push(u);return i}return zx=a,zx}var Fx,hM;function Ov(){if(hM)return Fx;hM=1;var e=Fk(),t=Wk();function n(r){return r!=null&&t(r.length)&&!e(r)}return Fx=n,Fx}var $x,pM;function uz(){if(pM)return $x;pM=1;var e=iz(),t=Hie(),n=Ov();function r(a){return n(a)?e(a):t(a)}return $x=r,$x}var Bx,mM;function qie(){if(mM)return Bx;mM=1;var e=az(),t=oz(),n=uz();function r(a){return e(a,n,t)}return Bx=r,Bx}var Hx,gM;function Vie(){if(gM)return Hx;gM=1;var e=qie(),t=1,n=Object.prototype,r=n.hasOwnProperty;function a(s,i,u,c,f,h){var m=u&t,g=e(s),y=g.length,S=e(i),w=S.length;if(y!=w&&!m)return!1;for(var x=y;x--;){var _=g[x];if(!(m?_ in i:r.call(i,_)))return!1}var k=h.get(s),A=h.get(i);if(k&&A)return k==i&&A==s;var R=!0;h.set(s,i),h.set(i,s);for(var N=m;++x<y;){_=g[x];var O=s[_],T=i[_];if(c)var P=m?c(T,O,_,i,s,h):c(O,T,_,s,i,h);if(!(P===void 0?O===T||f(O,T,u,c,h):P)){R=!1;break}N||(N=_=="constructor")}if(R&&!N){var L=s.constructor,q=i.constructor;L!=q&&"constructor"in s&&"constructor"in i&&!(typeof L=="function"&&L instanceof L&&typeof q=="function"&&q instanceof q)&&(R=!1)}return h.delete(s),h.delete(i),R}return Hx=a,Hx}var qx,vM;function Wie(){if(vM)return qx;vM=1;var e=mu(),t=js(),n=e(t,"DataView");return qx=n,qx}var Vx,yM;function Gie(){if(yM)return Vx;yM=1;var e=mu(),t=js(),n=e(t,"Promise");return Vx=n,Vx}var Wx,bM;function Kie(){if(bM)return Wx;bM=1;var e=mu(),t=js(),n=e(t,"Set");return Wx=n,Wx}var Gx,SM;function Yie(){if(SM)return Gx;SM=1;var e=mu(),t=js(),n=e(t,"WeakMap");return Gx=n,Gx}var Kx,wM;function Zie(){if(wM)return Kx;wM=1;var e=Wie(),t=$k(),n=Gie(),r=Kie(),a=Yie(),s=Dd(),i=ez(),u="[object Map]",c="[object Object]",f="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",y=i(e),S=i(t),w=i(n),x=i(r),_=i(a),k=s;return(e&&k(new e(new ArrayBuffer(1)))!=g||t&&k(new t)!=u||n&&k(n.resolve())!=f||r&&k(new r)!=h||a&&k(new a)!=m)&&(k=function(A){var R=s(A),N=R==c?A.constructor:void 0,O=N?i(N):"";if(O)switch(O){case y:return g;case S:return u;case w:return f;case x:return h;case _:return m}return R}),Kx=k,Kx}var Yx,xM;function Xie(){if(xM)return Yx;xM=1;var e=Hk(),t=tz(),n=Pie(),r=Vie(),a=Zie(),s=Lo(),i=Vk(),u=Gk(),c=1,f="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,y=g.hasOwnProperty;function S(w,x,_,k,A,R){var N=s(w),O=s(x),T=N?h:a(w),P=O?h:a(x);T=T==f?m:T,P=P==f?m:P;var L=T==m,q=P==m,j=T==P;if(j&&i(w)){if(!i(x))return!1;N=!0,L=!1}if(j&&!L)return R||(R=new e),N||u(w)?t(w,x,_,k,A,R):n(w,x,T,_,k,A,R);if(!(_&c)){var U=L&&y.call(w,"__wrapped__"),H=q&&y.call(x,"__wrapped__");if(U||H){var Z=U?w.value():w,se=H?x.value():x;return R||(R=new e),A(Z,se,_,k,R)}}return j?(R||(R=new e),r(w,x,_,k,A,R)):!1}return Yx=S,Yx}var Zx,CM;function cz(){if(CM)return Zx;CM=1;var e=Xie(),t=gu();function n(r,a,s,i,u){return r===a?!0:r==null||a==null||!t(r)&&!t(a)?r!==r&&a!==a:e(r,a,s,i,n,u)}return Zx=n,Zx}var Xx={exports:{}},Qx={};var EM;function Qie(){if(EM)return Qx;EM=1;var e=Ip(),t=Bee();function n(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var r=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,s=e.useRef,i=e.useEffect,u=e.useMemo,c=e.useDebugValue;return Qx.useSyncExternalStoreWithSelector=function(f,h,m,g,y){var S=s(null);if(S.current===null){var w={hasValue:!1,value:null};S.current=w}else w=S.current;S=u(function(){function _(O){if(!k){if(k=!0,A=O,O=g(O),y!==void 0&&w.hasValue){var T=w.value;if(y(T,O))return R=T}return R=O}if(T=R,r(A,O))return T;var P=g(O);return y!==void 0&&y(T,P)?(A=O,T):(A=O,R=P)}var k=!1,A,R,N=m===void 0?null:m;return[function(){return _(h())},N===null?void 0:function(){return _(N())}]},[h,m,g,y]);var x=a(f,S[0],S[1]);return i(function(){w.hasValue=!0,w.value=x},[x]),c(x),x},Qx}var _M;function Jie(){return _M||(_M=1,Xx.exports=Qie()),Xx.exports}var dz=Jie();var ye=function(){return ye=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ye.apply(this,arguments)};function Yk(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function vt(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Tt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,s=[],i;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)s.push(a.value)}catch(u){i={error:u}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function cn(e,t,n){if(arguments.length===2)for(var r=0,a=t.length,s;r<a;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Ft;(function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"})(Ft||(Ft={}));var Ql;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(Ql||(Ql={}));var b3=Ft.Start,Zk=Ft.Stop,Tp=Ft.Raise,Nv=Ft.Send,fz=Ft.Cancel,ele=Ft.NullEvent,Xk=Ft.Assign;Ft.After;Ft.DoneState;var hz=Ft.Log,tle=Ft.Init,S3=Ft.Invoke;Ft.ErrorExecution;var kM=Ft.ErrorPlatform,nle=Ft.ErrorCustom,Qk=Ft.Update,rle=Ft.Choose,ale=Ft.Pure,pz=".",AM={},w3="xstate.guard",sle="",mg;function Jk(e,t,n){n===void 0&&(n=pz);var r=Ah(e,n),a=Ah(t,n);return Mt(a)?Mt(r)?a===r:!1:Mt(r)?r in a:Object.keys(r).every(function(s){return s in a?Jk(r[s],a[s]):!1})}function mz(e){try{return Mt(e)||typeof e=="number"?"".concat(e):e.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function x3(e,t){try{return Ld(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function ole(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function Ah(e,t){if(ole(e))return e.value;if(Ld(e))return a1(e);if(typeof e!="string")return e;var n=x3(e,t);return a1(n)}function a1(e){if(e.length===1)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function vh(e,t){for(var n={},r=Object.keys(e),a=0;a<r.length;a++){var s=r[a];n[s]=t(e[s],s,e,a)}return n}function IM(e,t,n){var r,a,s={};try{for(var i=vt(Object.keys(e)),u=i.next();!u.done;u=i.next()){var c=u.value,f=e[c];n(f)&&(s[c]=t(f,c,e))}}catch(h){r={error:h}}finally{try{u&&!u.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}return s}var ile=function(e){return function(t){var n,r,a=t;try{for(var s=vt(e),i=s.next();!i.done;i=s.next()){var u=i.value;a=a[u]}}catch(c){n={error:c}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a}};function lle(e,t){return function(n){var r,a,s=n;try{for(var i=vt(e),u=i.next();!u.done;u=i.next()){var c=u.value;s=s[t][c]}}catch(f){r={error:f}}finally{try{u&&!u.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}return s}}function C0(e){if(!e)return[[]];if(Mt(e))return[[e]];var t=vn(Object.keys(e).map(function(n){var r=e[n];return typeof r!="string"&&(!r||!Object.keys(r).length)?[[n]]:C0(e[n]).map(function(a){return[n].concat(a)})}));return t}function vn(e){var t;return(t=[]).concat.apply(t,cn([],Tt(e),!1))}function gz(e){return Ld(e)?e:[e]}function qa(e){return e===void 0?[]:gz(e)}function s1(e,t,n){var r,a;if(Pt(e))return e(t,n.data);var s={};try{for(var i=vt(Object.keys(e)),u=i.next();!u.done;u=i.next()){var c=u.value,f=e[c];Pt(f)?s[c]=f(t,n.data):s[c]=f}}catch(h){r={error:h}}finally{try{u&&!u.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}return s}function ule(e){return/^(done|error)\./.test(e)}function RM(e){return!!(e instanceof Promise||e!==null&&(Pt(e)||typeof e=="object")&&Pt(e.then))}function cle(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function dle(e,t){var n,r,a=Tt([[],[]],2),s=a[0],i=a[1];try{for(var u=vt(e),c=u.next();!c.done;c=u.next()){var f=c.value;t(f)?s.push(f):i.push(f)}}catch(h){n={error:h}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return[s,i]}function vz(e,t){return vh(e.states,function(n,r){if(n){var a=(Mt(t)?void 0:t[r])||(n?n.current:void 0);if(a)return{current:a,states:vz(n,a)}}})}function fle(e,t){return{current:t,states:vz(e,t)}}function TM(e,t,n,r){var a=e&&n.reduce(function(s,i){var u,c,f=i.assignment,h={state:r,action:i,_event:t},m={};if(Pt(f))m=f(s,t.data,h);else try{for(var g=vt(Object.keys(f)),y=g.next();!y.done;y=g.next()){var S=y.value,w=f[S];m[S]=Pt(w)?w(s,t.data,h):w}}catch(x){u={error:x}}finally{try{y&&!y.done&&(c=g.return)&&c.call(g)}finally{if(u)throw u.error}}return Object.assign({},s,m)},e);return a}var hle=function(){};function Ld(e){return Array.isArray(e)}function Pt(e){return typeof e=="function"}function Mt(e){return typeof e=="string"}function yz(e,t){if(e)return Mt(e)?{type:w3,name:e,predicate:t?t[e]:void 0}:Pt(e)?{type:w3,name:e.name,predicate:e}:e}function ple(e){try{return"subscribe"in e&&Pt(e.subscribe)}catch{return!1}}var Mi=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();mg={},mg[Mi]=function(){return this},mg[Symbol.observable]=function(){return this};function ld(e){return!!e&&"__xstatenode"in e}function mle(e){return!!e&&typeof e.send=="function"}var gle=(function(){var e=0;return function(){return e++,e.toString(16)}})();function Mv(e,t){return Mt(e)||typeof e=="number"?ye({type:e},t):e}function ir(e,t){if(!Mt(e)&&"$$type"in e&&e.$$type==="scxml")return e;var n=Mv(e);return ye({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function gc(e,t){var n=gz(t).map(function(r){return typeof r>"u"||typeof r=="string"||ld(r)?{target:r,event:e}:ye(ye({},r),{event:e})});return n}function vle(e){if(!(e===void 0||e===sle))return qa(e)}function bz(e,t,n,r,a){var s=e.options.guards,i={state:a,cond:t,_event:r};if(t.type===w3)return(s?.[t.name]||t.predicate)(n,r.data,i);var u=s?.[t.type];if(!u)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return u(n,r.data,i)}function Sz(e){return typeof e=="string"?{type:e}:e}function Ih(e,t,n){var r=function(){},a=typeof e=="object",s=a?e:null;return{next:((a?e.next:e)||r).bind(s),error:((a?e.error:t)||r).bind(s),complete:((a?e.complete:n)||r).bind(s)}}function gg(e,t){return"".concat(e,":invocation[").concat(t,"]")}function C3(e){return(e.type===Tp||e.type===Nv&&e.to===Ql.Internal)&&typeof e.delay!="number"}var Bl=ir({type:tle});function o1(e,t){return t&&t[e]||void 0}function ud(e,t){var n;if(Mt(e)||typeof e=="number"){var r=o1(e,t);Pt(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(Pt(e))n={type:e.name||e.toString(),exec:e};else{var r=o1(e.type,t);if(Pt(r))n=ye(ye({},e),{exec:r});else if(r){var a=r.type||e.type;n=ye(ye(ye({},r),e),{type:a})}else n=e}return n}var bo=function(e,t){if(!e)return[];var n=Ld(e)?e:[e];return n.map(function(r){return ud(r,t)})};function Pv(e){var t=ud(e);return ye(ye({id:Mt(e)?e:t.id},t),{type:t.type})}function wz(e,t){return{type:Tp,event:typeof e=="function"?e:Mv(e),delay:t?t.delay:void 0,id:t?.id}}function xz(e,t,n,r){var a={_event:n},s=ir(Pt(e.event)?e.event(t,n.data,a):e.event),i;if(Mt(e.delay)){var u=r&&r[e.delay];i=Pt(u)?u(t,n.data,a):u}else i=Pt(e.delay)?e.delay(t,n.data,a):e.delay;return ye(ye({},e),{type:Tp,_event:s,delay:i})}function Dv(e,t){return{to:t?t.to:void 0,type:Nv,event:Pt(e)?e:Mv(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:Pt(e)?e.name:mz(e)}}function Cz(e,t,n,r){var a={_event:n},s=ir(Pt(e.event)?e.event(t,n.data,a):e.event),i;if(Mt(e.delay)){var u=r&&r[e.delay];i=Pt(u)?u(t,n.data,a):u}else i=Pt(e.delay)?e.delay(t,n.data,a):e.delay;var c=Pt(e.to)?e.to(t,n.data,a):e.to;return ye(ye({},e),{to:c,_event:s,event:s.data,delay:i})}function Ez(e,t){return Dv(e,ye(ye({},t),{to:Ql.Parent}))}function _z(){return Ez(Qk)}var kz=function(e,t,n){return ye(ye({},e),{value:Mt(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Az=function(e){return{type:fz,sendId:e}};function Iz(e){var t=Pv(e);return{type:Ft.Start,activity:t,exec:void 0}}function Rz(e){var t=Pt(e)?e:Pv(e);return{type:Ft.Stop,activity:t,exec:void 0}}function Tz(e,t,n){var r=Pt(e.activity)?e.activity(t,n.data):e.activity,a=typeof r=="string"?{id:r}:r,s={type:Ft.Stop,activity:a};return s}var Oz=function(e){return{type:Xk,assignment:e}};function Nz(e,t){var n=t?"#".concat(t):"";return"".concat(Ft.After,"(").concat(e,")").concat(n)}function yh(e,t){var n="".concat(Ft.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Rh(e,t){var n="".concat(Ft.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function jc(e,t){var n="".concat(Ft.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Mz(e,t){return Dv(function(n,r){return r},ye(ye({},t),{to:e}))}function yle(e){return{type:Ft.Choose,conds:e}}var ble=function(e){var t,n,r=[];try{for(var a=vt(e),s=a.next();!s.done;s=a.next())for(var i=s.value,u=0;u<i.actions.length;){if(i.actions[u].type===Xk){r.push(i.actions[u]),i.actions.splice(u,1);continue}u++}}catch(c){t={error:c}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r};function Gh(e,t,n,r,a,s,i){i===void 0&&(i=!1);var u=i?[]:ble(a),c=u.length?TM(n,r,u,t):n,f=i?[n]:void 0,h=[];function m(S,w){var x;switch(w.type){case Tp:{var _=xz(w,c,r,e.options.delays);return s&&typeof _.delay=="number"&&s(_,c,r),_}case Nv:var k=Cz(w,c,r,e.options.delays);return s&&k.to!==Ql.Internal&&(S==="entry"?h.push(k):s(k,c,r)),k;case hz:{var A=kz(w,c,r);return s?.(A,c,r),A}case rle:{var R=w,N=(x=R.conds.find(function(B){var X=yz(B.cond,e.options.guards);return!X||bz(e,X,c,r,s?void 0:t)}))===null||x===void 0?void 0:x.actions;if(!N)return[];var O=Tt(Gh(e,t,c,r,[{type:S,actions:bo(qa(N),e.options.actions)}],s,i),2),T=O[0],P=O[1];return c=P,f?.push(c),T}case ale:{var N=w.get(c,r.data);if(!N)return[];var L=Tt(Gh(e,t,c,r,[{type:S,actions:bo(qa(N),e.options.actions)}],s,i),2),q=L[0],j=L[1];return c=j,f?.push(c),q}case Zk:{var A=Tz(w,c,r);return s?.(A,n,r),A}case Xk:{c=TM(c,r,[w],s?void 0:t),f?.push(c);break}default:var U=ud(w,e.options.actions),H=U.exec;if(s)s(U,c,r);else if(H&&f){var Z=f.length-1,se=ye(ye({},U),{exec:function(B){for(var X=[],re=1;re<arguments.length;re++)X[re-1]=arguments[re];H.apply(void 0,cn([f[Z]],Tt(X),!1))}});U=se}return U}}function g(S){var w,x,_=[];try{for(var k=vt(S.actions),A=k.next();!A.done;A=k.next()){var R=A.value,N=m(S.type,R);N&&(_=_.concat(N))}}catch(O){w={error:O}}finally{try{A&&!A.done&&(x=k.return)&&x.call(k)}finally{if(w)throw w.error}}return h.forEach(function(O){s(O,c,r)}),h.length=0,_}var y=vn(a.map(g));return[y,c]}const Pz=Object.freeze(Object.defineProperty({__proto__:null,after:Nz,assign:Oz,cancel:Az,choose:yle,done:yh,doneInvoke:Rh,error:jc,forwardTo:Mz,getActionFunction:o1,initEvent:Bl,raise:wz,resolveActions:Gh,resolveLog:kz,resolveRaise:xz,resolveSend:Cz,resolveStop:Tz,send:Dv,sendParent:Ez,sendUpdate:_z,start:Iz,stop:Rz,toActionObject:ud,toActionObjects:bo,toActivityDefinition:Pv},Symbol.toStringTag,{value:"Module"}));var i1=[],Oc=function(e,t){i1.push(e);var n=t(e);return i1.pop(),n},Sle=function(e){return e(i1[i1.length-1])};function Dz(e){var t;return t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},t[Mi]=function(){return this},t}function wle(e,t,n,r){var a,s=Sz(e.src),i=(a=t?.options.services)===null||a===void 0?void 0:a[s.type],u=e.data?s1(e.data,n,r):void 0,c=i?eA(i,e.id,u):Dz(e.id);return c.meta=e,c}function eA(e,t,n){var r=Dz(t);if(r.deferred=!0,ld(e)){var a=r.state=Oc(void 0,function(){return(n?e.withContext(n):e).initialState});r.getSnapshot=function(){return a}}return r}function xle(e){try{return typeof e.send=="function"}catch{return!1}}function Cle(e){return xle(e)&&"id"in e}function Ele(e){var t;return ye((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t[Mi]=function(){return this},t),e)}var l1=function(e){return e.type==="atomic"||e.type==="final"};function Lz(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function Kh(e){return Lz(e).filter(function(t){return t.type!=="history"})}function Uz(e){var t=[e];return l1(e)?t:t.concat(vn(Kh(e).map(Uz)))}function bh(e,t){var n,r,a,s,i,u,c,f,h=new Set(e),m=E3(h),g=new Set(t);try{for(var y=vt(g),S=y.next();!S.done;S=y.next())for(var w=S.value,x=w.parent;x&&!g.has(x);)g.add(x),x=x.parent}catch(L){n={error:L}}finally{try{S&&!S.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}var _=E3(g);try{for(var k=vt(g),A=k.next();!A.done;A=k.next()){var w=A.value;if(w.type==="compound"&&(!_.get(w)||!_.get(w).length))m.get(w)?m.get(w).forEach(function(q){return g.add(q)}):w.initialStateNodes.forEach(function(q){return g.add(q)});else if(w.type==="parallel")try{for(var R=(i=void 0,vt(Kh(w))),N=R.next();!N.done;N=R.next()){var O=N.value;g.has(O)||(g.add(O),m.get(O)?m.get(O).forEach(function(q){return g.add(q)}):O.initialStateNodes.forEach(function(q){return g.add(q)}))}}catch(q){i={error:q}}finally{try{N&&!N.done&&(u=R.return)&&u.call(R)}finally{if(i)throw i.error}}}}catch(L){a={error:L}}finally{try{A&&!A.done&&(s=k.return)&&s.call(k)}finally{if(a)throw a.error}}try{for(var T=vt(g),P=T.next();!P.done;P=T.next())for(var w=P.value,x=w.parent;x&&!g.has(x);)g.add(x),x=x.parent}catch(L){c={error:L}}finally{try{P&&!P.done&&(f=T.return)&&f.call(T)}finally{if(c)throw c.error}}return g}function jz(e,t){var n=t.get(e);if(!n)return{};if(e.type==="compound"){var r=n[0];if(r){if(l1(r))return r.key}else return{}}var a={};return n.forEach(function(s){a[s.key]=jz(s,t)}),a}function E3(e){var t,n,r=new Map;try{for(var a=vt(e),s=a.next();!s.done;s=a.next()){var i=s.value;r.has(i)||r.set(i,[]),i.parent&&(r.has(i.parent)||r.set(i.parent,[]),r.get(i.parent).push(i))}}catch(u){t={error:u}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r}function _le(e,t){var n=bh([e],t);return jz(e,E3(n))}function Sh(e,t){return Array.isArray(e)?e.some(function(n){return n===t}):e instanceof Set?e.has(t):!1}function kle(e){return cn([],Tt(new Set(vn(cn([],Tt(e.map(function(t){return t.ownEvents})),!1)))),!1)}function E0(e,t){return t.type==="compound"?Kh(t).some(function(n){return n.type==="final"&&Sh(e,n)}):t.type==="parallel"?Kh(t).every(function(n){return E0(e,n)}):!1}function Ale(e){return e===void 0&&(e=[]),e.reduce(function(t,n){return n.meta!==void 0&&(t[n.id]=n.meta),t},{})}function OM(e){return new Set(vn(e.map(function(t){return t.tags})))}function zz(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(Mt(e)||Mt(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(a){return zz(e[a],t[a])})}function Ile(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function Rle(e,t){var n=e.exec,r=ye(ye({},e),{exec:n!==void 0?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return r}var Va=(function(){function e(t){var n=this,r;this.actions=[],this.activities=AM,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||AM,this.meta=Ale(t.configuration),this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,this.tags=(r=Array.isArray(t.tags)?new Set(t.tags):t.tags)!==null&&r!==void 0?r:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return kle(n.configuration)}})}return e.from=function(t,n){if(t instanceof e)return t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,events:[],configuration:[],transitions:[],children:{}}):t;var r=Bl;return new e({value:t,context:n,_event:r,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=Bl;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(t,n){var r=this;if(t===void 0&&(t=this.value),n===void 0&&(n="."),Mt(t))return[t];var a=Object.keys(t);return a.concat.apply(a,cn([],Tt(a.map(function(s){return r.toStrings(t[s],n).map(function(i){return s+n+i})})),!1))},e.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var n=t.tags;t.machine;var r=Yk(t,["configuration","transitions","tags","machine"]);return ye(ye({},r),{tags:Array.from(n)})},e.prototype.matches=function(t){return Jk(t,this.value)},e.prototype.hasTag=function(t){return this.tags.has(t)},e.prototype.can=function(t){var n;hle(!!this.machine);var r=(n=this.machine)===null||n===void 0?void 0:n.getTransitionData(this,t);return!!r?.transitions.length&&r.transitions.some(function(a){return a.target!==void 0||a.actions.length})},e})(),Tle={deferEvents:!1},NM=(function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=ye(ye({},Tle),t)}return e.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents){this.schedule(t);return}this.process(t)}this.flushEvents()},e.prototype.schedule=function(t){if(!this.initialized||this.processingEvent){this.queue.push(t);return}if(this.queue.length!==0)throw new Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},e.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(n){throw this.clear(),n}finally{this.processingEvent=!1}},e})(),Jx=new Map,Ole=0,Kf={bookId:function(){return"x:".concat(Ole++)},register:function(e,t){return Jx.set(e,t),e},get:function(e){return Jx.get(e)},free:function(e){Jx.delete(e)}};function tA(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function Nle(){var e=tA();if(e&&"__xstate__"in e)return e.__xstate__}function Mle(e){if(tA()){var t=Nle();t&&t.register(e)}}function Ple(e,t){t===void 0&&(t={});var n=e.initialState,r=new Set,a=[],s=!1,i=function(){if(!s){for(s=!0;a.length>0;){var f=a.shift();n=e.transition(n,f,c),r.forEach(function(h){return h.next(n)})}s=!1}},u=Ele({id:t.id,send:function(f){a.push(f),i()},getSnapshot:function(){return n},subscribe:function(f,h,m){var g=Ih(f,h,m);return r.add(g),g.next(n),{unsubscribe:function(){r.delete(g)}}}}),c={parent:t.parent,self:u,id:t.id||"anonymous",observers:r};return n=e.start?e.start(c):n,u}var _3={sync:!1,autoForward:!1},jn;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(jn||(jn={}));var Dle=(function(){function e(t,n){n===void 0&&(n=e.defaultOptions);var r=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=jn.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(h,m){if(Ld(h))return r.batch(h),r.state;var g=ir(Mv(h,m));if(r.status===jn.Stopped)return r.state;if(r.status!==jn.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(g.name,'" was sent to uninitialized service "').concat(r.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
154
+ Event: `).concat(JSON.stringify(g.data)));return r.scheduler.schedule(function(){r.forward(g);var y=r._nextState(g);r.update(y,g)}),r._state},this.sendTo=function(h,m,g){var y=r.parent&&(m===Ql.Parent||r.parent.id===m),S=y?r.parent:Mt(m)?m===Ql.Internal?r:r.children.get(m)||Kf.get(m):mle(m)?m:void 0;if(!S){if(!y)throw new Error("Unable to send event to child '".concat(m,"' from service '").concat(r.id,"'."));return}if("machine"in S){if(r.status!==jn.Stopped||r.parent!==S||r.state.done){var w=ye(ye({},h),{name:h.name===nle?"".concat(jc(r.id)):h.name,origin:r.sessionId});!g&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([S,w]):S.send(w)}}else!g&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([S,h.data]):S.send(h.data)},this._exec=function(h,m,g,y){y===void 0&&(y=r.machine.options.actions);var S=h.exec||o1(h.type,y),w=Pt(S)?S:S?S.exec:h.exec;if(w)try{return w(m,g.data,r.machine.config.predictableActionArguments?{action:h,_event:g}:{action:h,state:r.state,_event:g})}catch(Z){throw r.parent&&r.parent.send({type:"xstate.error",data:Z}),Z}switch(h.type){case Tp:{var x=h;r.defer(x);break}case Nv:var _=h;if(typeof _.delay=="number"){r.defer(_);return}else _.to?r.sendTo(_._event,_.to,g===Bl):r.send(_._event);break;case fz:r.cancel(h.sendId);break;case b3:{if(r.status!==jn.Running)return;var k=h.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[k.id||k.type])break;if(k.type===Ft.Invoke){var A=Sz(k.src),R=r.machine.options.services?r.machine.options.services[A.type]:void 0,N=k.id,O=k.data,T="autoForward"in k?k.autoForward:!!k.forward;if(!R)return;var P=O?s1(O,m,g):void 0;if(typeof R=="string")return;var L=Pt(R)?R(m,g.data,{data:P,src:A,meta:k.meta}):R;if(!L)return;var q=void 0;ld(L)&&(L=P?L.withContext(P):L,q={autoForward:T}),r.spawn(L,N,q)}else r.spawnActivity(k);break}case Zk:{r.stopChild(h.activity.id);break}case hz:var j=h,U=j.label,H=j.value;U?r.logger(U,H):r.logger(H);break}};var a=ye(ye({},e.defaultOptions),n),s=a.clock,i=a.logger,u=a.parent,c=a.id,f=c!==void 0?c:t.id;this.id=f,this.logger=i,this.clock=s,this.parent=u,this.options=a,this.scheduler=new NM({deferEvents:this.options.deferEvents}),this.sessionId=Kf.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:Oc(this,function(){return t._initialState=t.machine.initialState,t._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(t,n){var r,a;try{for(var s=vt(t.actions),i=s.next();!i.done;i=s.next()){var u=i.value;this.exec(u,t,n)}}catch(c){r={error:c}}finally{try{i&&!i.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}},e.prototype.update=function(t,n){var r,a,s,i,u,c,f,h,m=this;if(t._sessionid=this.sessionId,this._state=t,(!this.machine.config.predictableActionArguments||n===Bl)&&this.options.execute)this.execute(this.state);else for(var g=void 0;g=this._outgoingQueue.shift();)g[0].send(g[1]);if(this.children.forEach(function(L){m.state.children[L.id]=L}),this.devTools&&this.devTools.send(n.data,t),t.event)try{for(var y=vt(this.eventListeners),S=y.next();!S.done;S=y.next()){var w=S.value;w(t.event)}}catch(L){r={error:L}}finally{try{S&&!S.done&&(a=y.return)&&a.call(y)}finally{if(r)throw r.error}}try{for(var x=vt(this.listeners),_=x.next();!_.done;_=x.next()){var w=_.value;w(t,t.event)}}catch(L){s={error:L}}finally{try{_&&!_.done&&(i=x.return)&&i.call(x)}finally{if(s)throw s.error}}try{for(var k=vt(this.contextListeners),A=k.next();!A.done;A=k.next()){var R=A.value;R(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(L){u={error:L}}finally{try{A&&!A.done&&(c=k.return)&&c.call(k)}finally{if(u)throw u.error}}if(this.state.done){var N=t.configuration.find(function(L){return L.type==="final"&&L.parent===m.machine}),O=N&&N.doneData?s1(N.doneData,t.context,n):void 0;this._doneEvent=Rh(this.id,O);try{for(var T=vt(this.doneListeners),P=T.next();!P.done;P=T.next()){var w=P.value;w(this._doneEvent)}}catch(L){f={error:L}}finally{try{P&&!P.done&&(h=T.return)&&h.call(T)}finally{if(f)throw f.error}}this._stop(),this._stopChildren(),Kf.free(this.sessionId)}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===jn.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,n,r){var a=this,s=Ih(t,n,r);this.listeners.add(s.next),this.status!==jn.NotStarted&&s.next(this.state);var i=function(){a.doneListeners.delete(i),a.stopListeners.delete(i),s.complete()};return this.status===jn.Stopped?s.complete():(this.onDone(i),this.onStop(i)),{unsubscribe:function(){a.listeners.delete(s.next),a.doneListeners.delete(i),a.stopListeners.delete(i)}}},e.prototype.onEvent=function(t){return this.eventListeners.add(t),this},e.prototype.onSend=function(t){return this.sendListeners.add(t),this},e.prototype.onChange=function(t){return this.contextListeners.add(t),this},e.prototype.onStop=function(t){return this.stopListeners.add(t),this},e.prototype.onDone=function(t){return this.status===jn.Stopped&&this._doneEvent?t(this._doneEvent):this.doneListeners.add(t),this},e.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},e.prototype.start=function(t){var n=this;if(this.status===jn.Running)return this;this.machine._init(),Kf.register(this.sessionId,this),this.initialized=!0,this.status=jn.Running;var r=t===void 0?this.initialState:Oc(this,function(){return Ile(t)?n.machine.resolveState(t):n.machine.resolveState(Va.from(t,n.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){n.update(r,Bl)}),this},e.prototype._stopChildren=function(){this.children.forEach(function(t){Pt(t.stop)&&t.stop()}),this.children.clear()},e.prototype._stop=function(){var t,n,r,a,s,i,u,c,f,h;try{for(var m=vt(this.listeners),g=m.next();!g.done;g=m.next()){var y=g.value;this.listeners.delete(y)}}catch(T){t={error:T}}finally{try{g&&!g.done&&(n=m.return)&&n.call(m)}finally{if(t)throw t.error}}try{for(var S=vt(this.stopListeners),w=S.next();!w.done;w=S.next()){var y=w.value;y(),this.stopListeners.delete(y)}}catch(T){r={error:T}}finally{try{w&&!w.done&&(a=S.return)&&a.call(S)}finally{if(r)throw r.error}}try{for(var x=vt(this.contextListeners),_=x.next();!_.done;_=x.next()){var y=_.value;this.contextListeners.delete(y)}}catch(T){s={error:T}}finally{try{_&&!_.done&&(i=x.return)&&i.call(x)}finally{if(s)throw s.error}}try{for(var k=vt(this.doneListeners),A=k.next();!A.done;A=k.next()){var y=A.value;this.doneListeners.delete(y)}}catch(T){u={error:T}}finally{try{A&&!A.done&&(c=k.return)&&c.call(k)}finally{if(u)throw u.error}}if(!this.initialized)return this;this.initialized=!1,this.status=jn.Stopped,this._initialState=void 0;try{for(var R=vt(Object.keys(this.delayedEventsMap)),N=R.next();!N.done;N=R.next()){var O=N.value;this.clock.clearTimeout(this.delayedEventsMap[O])}}catch(T){f={error:T}}finally{try{N&&!N.done&&(h=R.return)&&h.call(R)}finally{if(f)throw f.error}}this.scheduler.clear(),this.scheduler=new NM({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var t=this,n=this.scheduler;return this._stop(),n.schedule(function(){var r;if(!(!((r=t._state)===null||r===void 0)&&r.done)){var a=ir({type:"xstate.stop"}),s=Oc(t,function(){var i=vn(cn([],Tt(t.state.configuration),!1).sort(function(m,g){return g.order-m.order}).map(function(m){return bo(m.onExit,t.machine.options.actions)})),u=Tt(Gh(t.machine,t.state,t.state.context,a,[{type:"exit",actions:i}],t.machine.config.predictableActionArguments?t._exec:void 0,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),c=u[0],f=u[1],h=new Va({value:t.state.value,context:f,_event:a,_sessionid:t.sessionId,historyValue:void 0,history:t.state,actions:c.filter(function(m){return!C3(m)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});return h.changed=!0,h});t.update(s,a),t._stopChildren(),Kf.free(t.sessionId)}}),this},e.prototype.batch=function(t){var n=this;if(!(this.status===jn.NotStarted&&this.options.deferEvents)){if(this.status!==jn.Running)throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}if(t.length){var r=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var a,s,i=n.state,u=!1,c=[],f=function(y){var S=ir(y);n.forward(S),i=Oc(n,function(){return n.machine.transition(i,S,void 0,r||void 0)}),c.push.apply(c,cn([],Tt(n.machine.config.predictableActionArguments?i.actions:i.actions.map(function(w){return Rle(w,i)})),!1)),u=u||!!i.changed};try{for(var h=vt(t),m=h.next();!m.done;m=h.next()){var g=m.value;f(g)}}catch(y){a={error:y}}finally{try{m&&!m.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}i.changed=u,i.actions=c,n.update(i,ir(t[t.length-1]))})}},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype._nextState=function(t,n){var r=this;n===void 0&&(n=!!this.machine.config.predictableActionArguments&&this._exec);var a=ir(t);if(a.name.indexOf(kM)===0&&!this.state.nextEvents.some(function(i){return i.indexOf(kM)===0}))throw a.data.data;var s=Oc(this,function(){return r.machine.transition(r.state,a,void 0,n||void 0)});return s},e.prototype.nextState=function(t){return this._nextState(t,!1)},e.prototype.forward=function(t){var n,r;try{for(var a=vt(this.forwardTo),s=a.next();!s.done;s=a.next()){var i=s.value,u=this.children.get(i);if(!u)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(i,"'."));u.send(t)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},e.prototype.defer=function(t){var n=this,r=this.clock.setTimeout(function(){"to"in t&&t.to?n.sendTo(t._event,t.to,!0):n.send(t._event)},t.delay);t.id&&(this.delayedEventsMap[t.id]=r)},e.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},e.prototype.exec=function(t,n,r){r===void 0&&(r=this.machine.options.actions),this._exec(t,n.context,n._event,r)},e.prototype.removeChild=function(t){var n;this.children.delete(t),this.forwardTo.delete(t),(n=this.state)===null||n===void 0||delete n.children[t]},e.prototype.stopChild=function(t){var n=this.children.get(t);n&&(this.removeChild(t),Pt(n.stop)&&n.stop())},e.prototype.spawn=function(t,n,r){if(this.status!==jn.Running)return eA(t,n);if(RM(t))return this.spawnPromise(Promise.resolve(t),n);if(Pt(t))return this.spawnCallback(t,n);if(Cle(t))return this.spawnActor(t,n);if(ple(t))return this.spawnObservable(t,n);if(ld(t))return this.spawnMachine(t,ye(ye({},r),{id:n}));if(cle(t))return this.spawnBehavior(t,n);throw new Error('Unable to spawn entity "'.concat(n,'" of type "').concat(typeof t,'".'))},e.prototype.spawnMachine=function(t,n){var r=this;n===void 0&&(n={});var a=new e(t,ye(ye({},this.options),{parent:this,id:n.id||t.id})),s=ye(ye({},_3),n);s.sync&&a.onTransition(function(u){r.send(Qk,{state:u,id:a.id})});var i=a;return this.children.set(a.id,i),s.autoForward&&this.forwardTo.add(a.id),a.onDone(function(u){r.removeChild(a.id),r.send(ir(u,{origin:a.id}))}).start(),i},e.prototype.spawnBehavior=function(t,n){var r=Ple(t,{id:n,parent:this});return this.children.set(n,r),r},e.prototype.spawnPromise=function(t,n){var r,a=this,s=!1,i;t.then(function(c){s||(i=c,a.removeChild(n),a.send(ir(Rh(n,c),{origin:n})))},function(c){if(!s){a.removeChild(n);var f=jc(n,c);try{a.send(ir(f,{origin:n}))}catch{a.devTools&&a.devTools.send(f,a.state),a.machine.strict&&a.stop()}}});var u=(r={id:n,send:function(){},subscribe:function(c,f,h){var m=Ih(c,f,h),g=!1;return t.then(function(y){g||(m.next(y),!g&&m.complete())},function(y){g||m.error(y)}),{unsubscribe:function(){return g=!0}}},stop:function(){s=!0},toJSON:function(){return{id:n}},getSnapshot:function(){return i}},r[Mi]=function(){return this},r);return this.children.set(n,u),u},e.prototype.spawnCallback=function(t,n){var r,a=this,s=!1,i=new Set,u=new Set,c,f=function(g){c=g,u.forEach(function(y){return y(g)}),!s&&a.send(ir(g,{origin:n}))},h;try{h=t(f,function(g){i.add(g)})}catch(g){this.send(jc(n,g))}if(RM(h))return this.spawnPromise(h,n);var m=(r={id:n,send:function(g){return i.forEach(function(y){return y(g)})},subscribe:function(g){var y=Ih(g);return u.add(y.next),{unsubscribe:function(){u.delete(y.next)}}},stop:function(){s=!0,Pt(h)&&h()},toJSON:function(){return{id:n}},getSnapshot:function(){return c}},r[Mi]=function(){return this},r);return this.children.set(n,m),m},e.prototype.spawnObservable=function(t,n){var r,a=this,s,i=t.subscribe(function(c){s=c,a.send(ir(c,{origin:n}))},function(c){a.removeChild(n),a.send(ir(jc(n,c),{origin:n}))},function(){a.removeChild(n),a.send(ir(Rh(n),{origin:n}))}),u=(r={id:n,send:function(){},subscribe:function(c,f,h){return t.subscribe(c,f,h)},stop:function(){return i.unsubscribe()},getSnapshot:function(){return s},toJSON:function(){return{id:n}}},r[Mi]=function(){return this},r);return this.children.set(n,u),u},e.prototype.spawnActor=function(t,n){return this.children.set(n,t),t},e.prototype.spawnActivity=function(t){var n=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(n){var r=n(this.state.context,t);this.spawnEffect(t.id,r)}},e.prototype.spawnEffect=function(t,n){var r;this.children.set(t,(r={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:n||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}},r[Mi]=function(){return this},r))},e.prototype.attachDev=function(){var t=tA();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var n=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(ye(ye({name:this.id,autoPause:!0,stateSanitizer:function(r){return{value:r.value,context:r.context,actions:r.actions}}},n),{features:ye({jump:!1,skip:!1},n?n.features:void 0)}),this.machine),this.devTools.init(this.state)}Mle(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[Mi]=function(){return this},e.prototype.getSnapshot=function(){return this.status===jn.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,n){return setTimeout(t,n)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},e.interpret=Fz,e})(),Lle=function(e){return Mt(e)?ye(ye({},_3),{name:e}):ye(ye(ye({},_3),{name:gle()}),e)};function Yf(e,t){var n=Lle(t);return Sle(function(r){return r?r.spawn(e,n.name,n):eA(e,n.name)})}function Fz(e,t){var n=new Dle(e,t);return n}function Ule(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function vg(e){return ye(ye({type:S3},e),{toJSON:function(){e.onDone,e.onError;var t=Yk(e,["onDone","onError"]);return ye(ye({},t),{type:S3,src:Ule(e.src)})}})}var yg="",k3="#",e2="*",vc={},yc=function(e){return e[0]===k3},jle=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},zle=(function(){function e(t,n,r,a){r===void 0&&(r="context"in t?t.context:void 0);var s=this,i;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign(jle(),n),this.parent=a?.parent,this.key=this.config.key||a?.key||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:pz),this.id=this.config.id||cn([this.machine.key],Tt(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(i=this.config.schema)!==null&&i!==void 0?i:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?vh(this.config.states,function(f,h){var m,g=new e(f,{},void 0,{parent:s,key:h});return Object.assign(s.idMap,ye((m={},m[g.id]=g,m),g.idMap)),g}):vc;var u=0;function c(f){var h,m;f.order=u++;try{for(var g=vt(Lz(f)),y=g.next();!y.done;y=g.next()){var S=y.value;c(S)}}catch(w){h={error:w}}finally{try{y&&!y.done&&(m=g.return)&&m.call(g)}finally{if(h)throw h.error}}}c(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(function(f){var h=f.event;return h===yg}):yg in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=qa(this.config.entry||this.config.onEntry).map(function(f){return ud(f)}),this.onExit=qa(this.config.exit||this.config.onExit).map(function(f){return ud(f)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=qa(this.config.invoke).map(function(f,h){var m,g;if(ld(f)){var y=gg(s.id,h);return s.machine.options.services=ye((m={},m[y]=f,m),s.machine.options.services),vg({src:y,id:y})}else if(Mt(f.src)){var y=f.id||gg(s.id,h);return vg(ye(ye({},f),{id:y,src:f.src}))}else if(ld(f.src)||Pt(f.src)){var y=f.id||gg(s.id,h);return s.machine.options.services=ye((g={},g[y]=f.src,g),s.machine.options.services),vg(ye(ye({id:y},f),{src:y}))}else{var S=f.src;return vg(ye(ye({id:gg(s.id,h)},f),{src:S}))}}),this.activities=qa(this.config.activities).concat(this.invoke).map(function(f){return Pv(f)}),this.transition=this.transition.bind(this),this.tags=qa(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Uz(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,n){var r=this.options,a=r.actions,s=r.activities,i=r.guards,u=r.services,c=r.delays;return new e(this.config,{actions:ye(ye({},a),t.actions),activities:ye(ye({},s),t.activities),guards:ye(ye({},i),t.guards),services:ye(ye({},u),t.services),delays:ye(ye({},c),t.delays)},n??this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return Pt(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:vh(this.states,function(t){return t.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce(function(n,r){return n[r.eventType]=n[r.eventType]||[],n[r.eventType].push(r),n},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var n=t===yg,r=this.transitions.filter(function(a){var s=a.eventType===t;return n?s:s||a.eventType===e2});return this.__cache.candidates[t]=r,r},e.prototype.getDelayedTransitions=function(){var t=this,n=this.config.after;if(!n)return[];var r=function(s,i){var u=Pt(s)?"".concat(t.id,":delay[").concat(i,"]"):s,c=Nz(u,t.id);return t.onEntry.push(Dv(c,{delay:s})),t.onExit.push(Az(c)),c},a=Ld(n)?n.map(function(s,i){var u=r(s.delay,i);return ye(ye({},s),{event:u})}):vn(Object.keys(n).map(function(s,i){var u=n[s],c=Mt(u)?{target:u}:u,f=isNaN(+s)?s:+s,h=r(f,i);return qa(c).map(function(m){return ye(ye({},m),{event:h,delay:f})})}));return a.map(function(s){var i=s.delay;return ye(ye({},t.formatTransition(s)),{delay:i})})},e.prototype.getStateNodes=function(t){var n,r=this;if(!t)return[];var a=t instanceof Va?t.value:Ah(t,this.delimiter);if(Mt(a)){var s=this.getStateNode(a).initial;return s!==void 0?this.getStateNodes((n={},n[a]=s,n)):[this,this.states[a]]}var i=Object.keys(a),u=[this];return u.push.apply(u,cn([],Tt(vn(i.map(function(c){return r.getStateNode(c).getStateNodes(a[c])}))),!1)),u},e.prototype.handles=function(t){var n=mz(t);return this.events.includes(n)},e.prototype.resolveState=function(t){var n=t instanceof Va?t:Va.create(t),r=Array.from(bh([],this.getStateNodes(n.value)));return new Va(ye(ye({},n),{value:this.resolve(n.value),configuration:r,done:E0(r,this),tags:OM(r),machine:this.machine}))},e.prototype.transitionLeafNode=function(t,n,r){var a=this.getStateNode(t),s=a.next(n,r);return!s||!s.transitions.length?this.next(n,r):s},e.prototype.transitionCompoundNode=function(t,n,r){var a=Object.keys(t),s=this.getStateNode(a[0]),i=s._transition(t[a[0]],n,r);return!i||!i.transitions.length?this.next(n,r):i},e.prototype.transitionParallelNode=function(t,n,r){var a,s,i={};try{for(var u=vt(Object.keys(t)),c=u.next();!c.done;c=u.next()){var f=c.value,h=t[f];if(h){var m=this.getStateNode(f),g=m._transition(h,n,r);g&&(i[f]=g)}}}catch(_){a={error:_}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(a)throw a.error}}var y=Object.keys(i).map(function(_){return i[_]}),S=vn(y.map(function(_){return _.transitions})),w=y.some(function(_){return _.transitions.length>0});if(!w)return this.next(n,r);var x=vn(Object.keys(i).map(function(_){return i[_].configuration}));return{transitions:S,exitSet:vn(y.map(function(_){return _.exitSet})),configuration:x,source:n,actions:vn(Object.keys(i).map(function(_){return i[_].actions}))}},e.prototype._transition=function(t,n,r){return Mt(t)?this.transitionLeafNode(t,n,r):Object.keys(t).length===1?this.transitionCompoundNode(t,n,r):this.transitionParallelNode(t,n,r)},e.prototype.getTransitionData=function(t,n){return this._transition(t.value,t,ir(n))},e.prototype.next=function(t,n){var r,a,s=this,i=n.name,u=[],c=[],f;try{for(var h=vt(this.getCandidates(i)),m=h.next();!m.done;m=h.next()){var g=m.value,y=g.cond,S=g.in,w=t.context,x=S?Mt(S)&&yc(S)?t.matches(Ah(this.getStateNodeById(S).path,this.delimiter)):Jk(Ah(S,this.delimiter),ile(this.path.slice(0,-2))(t.value)):!0,_=!1;try{_=!y||bz(this.machine,y,w,n,t)}catch(R){throw new Error("Unable to evaluate guard '".concat(y.name||y.type,"' in transition for event '").concat(i,"' in state node '").concat(this.id,`':
155
+ `).concat(R.message))}if(_&&x){g.target!==void 0&&(c=g.target),u.push.apply(u,cn([],Tt(g.actions),!1)),f=g;break}}}catch(R){r={error:R}}finally{try{m&&!m.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}if(f){if(!c.length)return{transitions:[f],exitSet:[],configuration:t.value?[this]:[],source:t,actions:u};var k=vn(c.map(function(R){return s.getRelativeStateNodes(R,t.historyValue)})),A=!!f.internal;return{transitions:[f],exitSet:A?[]:vn(c.map(function(R){return s.getPotentiallyReenteringNodes(R)})),configuration:k,source:t,actions:u}}},e.prototype.getPotentiallyReenteringNodes=function(t){if(this.order<t.order)return[this];for(var n=[],r=this,a=t;r&&r!==a;)n.push(r),r=r.parent;return r!==a?[]:(n.push(a),n)},e.prototype.getActions=function(t,n,r,a,s,i,u){var c,f,h,m,g=this,y=i?bh([],this.getStateNodes(i.value)):[],S=new Set;try{for(var w=vt(Array.from(t).sort(function(j,U){return j.order-U.order})),x=w.next();!x.done;x=w.next()){var _=x.value;(!Sh(y,_)||Sh(r.exitSet,_)||_.parent&&S.has(_.parent))&&S.add(_)}}catch(j){c={error:j}}finally{try{x&&!x.done&&(f=w.return)&&f.call(w)}finally{if(c)throw c.error}}try{for(var k=vt(y),A=k.next();!A.done;A=k.next()){var _=A.value;(!Sh(t,_)||Sh(r.exitSet,_.parent))&&r.exitSet.push(_)}}catch(j){h={error:j}}finally{try{A&&!A.done&&(m=k.return)&&m.call(k)}finally{if(h)throw h.error}}r.exitSet.sort(function(j,U){return U.order-j.order});var R=Array.from(S).sort(function(j,U){return j.order-U.order}),N=new Set(r.exitSet),O=vn(R.map(function(j){var U=[];if(j.type!=="final")return U;var H=j.parent;if(!H.parent)return U;U.push(yh(j.id,j.doneData),yh(H.id,j.doneData?s1(j.doneData,a,s):void 0));var Z=H.parent;return Z.type==="parallel"&&Kh(Z).every(function(se){return E0(r.configuration,se)})&&U.push(yh(Z.id)),U})),T=R.map(function(j){var U=j.onEntry,H=j.activities.map(function(Z){return Iz(Z)});return{type:"entry",actions:bo(u?cn(cn([],Tt(U),!1),Tt(H),!1):cn(cn([],Tt(H),!1),Tt(U),!1),g.machine.options.actions)}}).concat({type:"state_done",actions:O.map(function(j){return wz(j)})}),P=Array.from(N).map(function(j){return{type:"exit",actions:bo(cn(cn([],Tt(j.onExit),!1),Tt(j.activities.map(function(U){return Rz(U)})),!1),g.machine.options.actions)}}),L=P.concat({type:"transition",actions:bo(r.actions,this.machine.options.actions)}).concat(T);if(n){var q=bo(vn(cn([],Tt(t),!1).sort(function(j,U){return U.order-j.order}).map(function(j){return j.onExit})),this.machine.options.actions).filter(function(j){return!C3(j)});return L.concat({type:"stop",actions:q})}return L},e.prototype.transition=function(t,n,r,a){t===void 0&&(t=this.initialState);var s=ir(n),i;if(t instanceof Va)i=r===void 0?t:this.resolveState(Va.from(t,r));else{var u=Mt(t)?this.resolve(a1(this.getResolvedPath(t))):this.resolve(t),c=r??this.machine.context;i=this.resolveState(Va.from(u,c))}if(this.strict&&!this.events.includes(s.name)&&!ule(s.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(s.name,"'"));var f=this._transition(i.value,i,s)||{transitions:[],configuration:[],exitSet:[],source:i,actions:[]},h=bh([],this.getStateNodes(i.value)),m=f.configuration.length?bh(h,f.configuration):h;return f.configuration=cn([],Tt(m),!1),this.resolveTransition(f,i,i.context,a,s)},e.prototype.resolveRaisedTransition=function(t,n,r,a){var s,i=t.actions;return t=this.transition(t,n,void 0,a),t._event=r,t.event=r.data,(s=t.actions).unshift.apply(s,cn([],Tt(i),!1)),t},e.prototype.resolveTransition=function(t,n,r,a,s){var i,u,c,f,h=this;s===void 0&&(s=Bl);var m=t.configuration,g=!n||t.transitions.length>0,y=g?t.configuration:n?n.configuration:[],S=E0(y,this),w=g?_le(this.machine,m):void 0,x=n?n.historyValue?n.historyValue:t.source?this.machine.historyValue(n.value):void 0:void 0,_=this.getActions(new Set(y),S,t,r,s,n,a),k=n?ye({},n.activities):{};try{for(var A=vt(_),R=A.next();!R.done;R=A.next()){var N=R.value;try{for(var O=(c=void 0,vt(N.actions)),T=O.next();!T.done;T=O.next()){var P=T.value;P.type===b3?k[P.activity.id||P.activity.type]=P:P.type===Zk&&(k[P.activity.id||P.activity.type]=!1)}}catch(J){c={error:J}}finally{try{T&&!T.done&&(f=O.return)&&f.call(O)}finally{if(c)throw c.error}}}}catch(J){i={error:J}}finally{try{R&&!R.done&&(u=A.return)&&u.call(A)}finally{if(i)throw i.error}}var L=Tt(Gh(this,n,r,s,_,a,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),q=L[0],j=L[1],U=Tt(dle(q,C3),2),H=U[0],Z=U[1],se=q.filter(function(J){var oe;return J.type===b3&&((oe=J.activity)===null||oe===void 0?void 0:oe.type)===S3}),B=se.reduce(function(J,oe){return J[oe.activity.id]=wle(oe.activity,h.machine,j,s),J},n?ye({},n.children):{}),X=new Va({value:w||n.value,context:j,_event:s,_sessionid:n?n._sessionid:null,historyValue:w?x?fle(x,w):void 0:n?n.historyValue:void 0,history:!w||t.source?n:void 0,actions:w?Z:[],activities:w?k:n?n.activities:{},events:[],configuration:y,transitions:t.transitions,children:B,done:S,tags:OM(y),machine:this}),re=r!==j;X.changed=s.name===Qk||re;var de=X.history;de&&delete de.history;var we=!S&&(this._transient||m.some(function(J){return J._transient}));if(!g&&(!we||s.name===yg))return X;var z=X;if(!S)for(we&&(z=this.resolveRaisedTransition(z,{type:ele},s,a));H.length;){var W=H.shift();z=this.resolveRaisedTransition(z,W._event,s,a)}var G=z.changed||(de?!!z.actions.length||re||typeof de.value!=typeof z.value||!zz(z.value,de.value):void 0);return z.changed=G,z.history=de,z},e.prototype.getStateNode=function(t){if(yc(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var n=this.states[t];if(!n)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return n},e.prototype.getStateNodeById=function(t){var n=yc(t)?t.slice(k3.length):t;if(n===this.id)return this;var r=this.machine.idMap[n];if(!r)throw new Error("Child state node '#".concat(n,"' does not exist on machine '").concat(this.id,"'"));return r},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&yc(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var n=x3(t,this.delimiter).slice(),r=this;n.length;){var a=n.shift();if(!a.length)break;r=r.getStateNode(a)}return r},e.prototype.resolve=function(t){var n,r=this;if(!t)return this.initialStateValue||vc;switch(this.type){case"parallel":return vh(this.initialStateValue,function(s,i){return s?r.getStateNode(i).resolve(t[i]||s):vc});case"compound":if(Mt(t)){var a=this.getStateNode(t);return a.type==="parallel"||a.type==="compound"?(n={},n[t]=a.initialStateValue,n):t}return Object.keys(t).length?vh(t,function(s,i){return s?r.getStateNode(i).resolve(s):vc}):this.initialStateValue||{};default:return t||vc}},e.prototype.getResolvedPath=function(t){if(yc(t)){var n=this.machine.idMap[t.slice(k3.length)];if(!n)throw new Error("Unable to find state node '".concat(t,"'"));return n.path}return x3(t,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var n;if(this.type==="parallel")n=IM(this.states,function(r){return r.initialStateValue||vc},function(r){return r.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));n=l1(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else n={};return this.__cache.initialStateValue=n,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(t,n){this._init();var r=this.getStateNodes(t);return this.resolveTransition({configuration:r,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,n??this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var t;if(this.type==="history"){var n=this.config;Mt(n.target)?t=yc(n.target)?a1(this.machine.getStateNodeById(n.target).path.slice(this.path.length-1)):n.target:t=n.target}return t},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(t,n,r){return r===void 0&&(r=!0),r?t.type==="history"?t.resolveHistory(n):t.initialStateNodes:[t]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var t=this;if(l1(this))return[this];if(this.type==="compound"&&!this.initial)return[this];var n=C0(this.initialStateValue);return vn(n.map(function(r){return t.getFromRelativePath(r)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var n=Tt(t),r=n[0],a=n.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(r,"' from node with no states"));var s=this.getStateNode(r);if(s.type==="history")return s.resolveHistory();if(!this.states[r])throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return this.states[r].getFromRelativePath(a)},e.prototype.historyValue=function(t){if(Object.keys(this.states).length)return{current:t||this.initialStateValue,states:IM(this.states,function(n,r){if(!t)return n.historyValue();var a=Mt(t)?void 0:t[r];return n.historyValue(a||n.initialStateValue)},function(n){return!n.history})}},e.prototype.resolveHistory=function(t){var n=this;if(this.type!=="history")return[this];var r=this.parent;if(!t){var a=this.target;return a?vn(C0(a).map(function(i){return r.getFromRelativePath(i)})):r.initialStateNodes}var s=lle(r.path,"states")(t).current;return Mt(s)?[r.getStateNode(s)]:vn(C0(s).map(function(i){return n.history==="deep"?r.getFromRelativePath(i):[r.states[i[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var t=this,n=vn(Object.keys(this.states).map(function(r){return t.states[r].stateIds}));return[this.id].concat(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var t,n,r,a;if(this.__cache.events)return this.__cache.events;var s=this.states,i=new Set(this.ownEvents);if(s)try{for(var u=vt(Object.keys(s)),c=u.next();!c.done;c=u.next()){var f=c.value,h=s[f];if(h.states)try{for(var m=(r=void 0,vt(h.events)),g=m.next();!g.done;g=m.next()){var y=g.value;i.add("".concat(y))}}catch(S){r={error:S}}finally{try{g&&!g.done&&(a=m.return)&&a.call(m)}finally{if(r)throw r.error}}}}catch(S){t={error:S}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter(function(n){return!(!n.target&&!n.actions.length&&n.internal)}).map(function(n){return n.eventType}));return Array.from(t)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(t){var n=this;if(t!==void 0)return t.map(function(r){if(!Mt(r))return r;var a=r[0]===n.delimiter;if(a&&!n.parent)return n.getStateNodeByPath(r.slice(1));var s=a?n.key+r:r;if(n.parent)try{var i=n.parent.getStateNodeByPath(s);return i}catch(u){throw new Error("Invalid transition definition for state node '".concat(n.id,`':
156
+ `).concat(u.message))}else return n.getStateNodeByPath(s)})},e.prototype.formatTransition=function(t){var n=this,r=vle(t.target),a="internal"in t?t.internal:r?r.some(function(c){return Mt(c)&&c[0]===n.delimiter}):!0,s=this.machine.options.guards,i=this.resolveTarget(r),u=ye(ye({},t),{actions:bo(qa(t.actions)),cond:yz(t.cond,s),target:i,source:this,internal:a,eventType:t.event,toJSON:function(){return ye(ye({},u),{target:u.target?u.target.map(function(c){return"#".concat(c.id)}):void 0,source:"#".concat(n.id)})}});return u},e.prototype.formatTransitions=function(){var t,n,r=this,a;if(!this.config.on)a=[];else if(Array.isArray(this.config.on))a=this.config.on;else{var s=this.config.on,i=e2,u=s[i],c=u===void 0?[]:u,f=Yk(s,[typeof i=="symbol"?i:i+""]);a=vn(Object.keys(f).map(function(k){var A=gc(k,f[k]);return A}).concat(gc(e2,c)))}var h=this.config.always?gc("",this.config.always):[],m=this.config.onDone?gc(String(yh(this.id)),this.config.onDone):[],g=vn(this.invoke.map(function(k){var A=[];return k.onDone&&A.push.apply(A,cn([],Tt(gc(String(Rh(k.id)),k.onDone)),!1)),k.onError&&A.push.apply(A,cn([],Tt(gc(String(jc(k.id)),k.onError)),!1)),A})),y=this.after,S=vn(cn(cn(cn(cn([],Tt(m),!1),Tt(g),!1),Tt(a),!1),Tt(h),!1).map(function(k){return qa(k).map(function(A){return r.formatTransition(A)})}));try{for(var w=vt(y),x=w.next();!x.done;x=w.next()){var _=x.value;S.push(_)}}catch(k){t={error:k}}finally{try{x&&!x.done&&(n=w.return)&&n.call(w)}finally{if(t)throw t.error}}return S},e})();function Ud(e,t){return new zle(e,t)}var uo=Oz,Lv=_z,Fle=Mz,$le=E.useLayoutEffect;function MM(e){var t=E.useRef();return t.current||(t.current={v:e()}),t.current.v}var u1=function(){return u1=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},u1.apply(this,arguments)},Ble=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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},Hle=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,s=[],i;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)s.push(a.value)}catch(u){i={error:u}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s};function qle(e,t){var n=MM(function(){return typeof e=="function"?e():e}),r=t.context,a=t.guards,s=t.actions,i=t.activities,u=t.services,c=t.delays;t.state;var f=Ble(t,["context","guards","actions","activities","services","delays","state"]),h=MM(function(){var m={context:r,guards:a,actions:s,activities:i,services:u,delays:c},g=n.withConfig(m,function(){return u1(u1({},n.context),r)});return Fz(g,f)});return $le(function(){Object.assign(h.machine.options.actions,s),Object.assign(h.machine.options.guards,a),Object.assign(h.machine.options.activities,i),Object.assign(h.machine.options.services,u),Object.assign(h.machine.options.delays,c)},[s,a,i,u,c]),h}function Vle(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Hle(t,2),a=r[0],s=a===void 0?{}:a,i=r[1],u=qle(e,s);return E.useEffect(function(){if(i){var c=u.subscribe(Ih(i));return function(){c.unsubscribe()}}},[i]),E.useEffect(function(){var c=s.state;return u.start(c?Va.create(c):void 0),function(){u.stop(),u.status=jn.NotStarted}},[]),u}function Wle(e){return e.status!==0?e.getSnapshot():e.machine.initialState}function Gle(e){return"state"in e&&"machine"in e}function Kle(e){return"state"in e}var Yle=function(e,t){return e===t},Zle=function(e,t){if(Gle(e)){if(e.status===0&&t.current)return t.current;var n=Wle(e);return t.current=e.status===0?n:null,n}return Kle(e)?e.state:void 0};function Xle(e,t,n,r){n===void 0&&(n=Yle);var a=E.useRef(null),s=E.useCallback(function(c){var f=e.subscribe(c).unsubscribe;return f},[e]),i=E.useCallback(function(){return Zle(e,a)},[e,r]),u=dz.useSyncExternalStoreWithSelector(s,i,i,t,n);return u}const Qle=e=>{if(e instanceof Oa)return e;if(e instanceof Error){if(e.name==="InvalidStateError"){const{message:t,recoverySuggestion:n}=ad[Wt.PasskeyAlreadyExists];return new Oa({name:Wt.PasskeyAlreadyExists,message:t,recoverySuggestion:n,underlyingError:e})}if(e.name==="NotAllowedError"){const{message:t,recoverySuggestion:n}=ad[Wt.PasskeyRegistrationCanceled];return new Oa({name:Wt.PasskeyRegistrationCanceled,message:t,recoverySuggestion:n,underlyingError:e})}}return FL(e)},Jle=async e=>{try{const t=$L();Rd(t,Wt.PasskeyNotSupported);const n=dZ(e),r=await navigator.credentials.create({publicKey:n});return gZ(r),fZ(r)}catch(t){throw Qle(t)}},eue=e=>Pn(Qn,Xn("StartWebAuthnRegistration"),dr(),{...Jn,...e}),tue=e=>Pn(Qn,Xn("CompleteWebAuthnRegistration"),dr(),{...Jn,...e});async function nue(){const e=Kt.getConfig().Auth?.Cognito;dt(e);const{userPoolEndpoint:t,userPoolId:n}=e,{tokens:r}=await sv();Id(r);const a=eue({endpointResolver:xt({endpointOverride:t})}),{CredentialCreationOptions:s}=await a({region:wt(n),userAgentValue:Lt(tt.StartWebAuthnRegistration)},{AccessToken:r.accessToken.toString()});mZ(s);const i=await Jle(s);await tue({endpointResolver:xt({endpointOverride:t})})({region:wt(n),userAgentValue:Lt(tt.CompleteWebAuthnRegistration)},{AccessToken:r.accessToken.toString(),Credential:i})}const rue=e=>Pn(Qn,Xn("ListWebAuthnCredentials"),dr(),{...Jn,...e});async function aue(e,t){const n=e.getConfig().Auth?.Cognito;dt(n);const{userPoolEndpoint:r,userPoolId:a}=n,{tokens:s}=await e.Auth.fetchAuthSession();Id(s);const i=rue({endpointResolver:xt({endpointOverride:r})}),{Credentials:u=[],NextToken:c}=await i({region:wt(a),userAgentValue:Lt(tt.ListWebAuthnCredentials)},{AccessToken:s.accessToken.toString(),MaxResults:t?.pageSize,NextToken:t?.nextToken});return{credentials:u.map(h=>({credentialId:h.CredentialId,friendlyCredentialName:h.FriendlyCredentialName,relyingPartyId:h.RelyingPartyId,authenticatorAttachment:h.AuthenticatorAttachment,authenticatorTransports:h.AuthenticatorTransports,createdAt:h.CreatedAt?new Date(h.CreatedAt*1e3):void 0})),nextToken:c}}async function nA(e){return aue(Kt,e)}const rA=e=>e.context.actorRef?.getSnapshot(),Yh=e=>rA(e)?.context,sue={category:Na.AI,apis:[po.CreateConversation,po.DeleteConversation,po.ListConversations,po.UpdateConversation,po.OnMessage,po.SendMessage,po.Generation]},oue={apis:[tt.DeleteUser,tt.UpdatePassword],category:Na.Auth},iue={apis:[tt.SignUp,tt.ConfirmSignUp,tt.ResendSignUpCode,tt.SignIn,tt.ConfirmSignIn,tt.FetchUserAttributes,tt.SignOut,tt.ResetPassword,tt.ConfirmResetPassword,tt.SignInWithRedirect],category:Na.Auth},lue={apis:[Wa.UploadData],category:Na.Storage},uue={apis:[jE.NotifyMessageInteraction],category:Na.InAppMessaging},cue={category:Na.Geo,apis:[Eh.SearchByText,Eh.SearchForSuggestions,Eh.SearchByPlaceId]},due={category:Na.Geo,apis:[]},fue={apis:[Wa.UploadData],category:Na.Storage},hue={apis:[Wa.UploadData,Wa.Copy,Wa.GetUrl,Wa.List,Wa.Remove,Wa.GetDataAccess,Wa.ListCallerAccessGrants],category:Na.Storage};function da(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function _o(e){return typeof e=="string"||typeof e=="object"&&Object.prototype.toString.call(e)==="[object String]"}function pue(e){return da(e)&&Object.prototype.toString.call(e)==="[object Map]"}function mue(e){return da(e)&&Object.prototype.toString.call(e)==="[object Set]"}function aA(e){if(e==null)return!0;if(da(e)&&(pue(e)||mue(e)))return!e.size;if(da(e)&&(_o(e)||Array.isArray(e)))return!e.length;for(const t in e)if(ko(e,t))return!1;return!0}function gue(e){return Array.isArray(e)&&aA(e)}function vue(...e){return e.every(gue)}function $z(e){return da(e)&&aA(e)}function yue(...e){return e.every($z)}function ko(e,t){return e!=null&&Object.prototype.hasOwnProperty.call(e,t)}function Ao(e){return typeof e=="function"}const Gt=(e,t)=>t?`${e}--${t}`:"",Gr=(e,t,n)=>n?`${e}--${t}`:"";function bue(...e){}function Sue(e,t){const n={},r={};return Object.entries(e).forEach(([a,s])=>{t(a)?n[a]=s:r[a]=s}),[n,r]}const Bz=({payload:e},t,n)=>{const{data:r,event:a}=e,{send:s}=t,{onSignIn:i,onSignOut:u}=n??{};switch(a){case"signedIn":{Ao(i)&&i(e);break}case"signInWithRedirect":{s("SIGN_IN_WITH_REDIRECT");break}case"signedOut":{Ao(u)&&u(),s("SIGN_OUT");break}case"tokenRefresh_failure":{if(r?.error?.name===Hi.NetworkError)return;s("SIGN_OUT");break}}},wue=(e,t=Bz)=>{const n=r=>t(r,e);return Os.listen("auth",n,"authenticator-hub-handler")},Hz=["+1","+7","+20","+27","+30","+31","+32","+33","+34","+36","+39","+40","+41","+43","+44","+45","+46","+47","+48","+49","+51","+52","+53","+54","+55","+56","+57","+58","+60","+61","+62","+63","+64","+65","+66","+81","+82","+84","+86","+90","+91","+92","+93","+94","+95","+98","+212","+213","+216","+218","+220","+221","+222","+223","+224","+225","+226","+227","+228","+229","+230","+231","+232","+233","+234","+235","+236","+237","+238","+239","+240","+241","+242","+243","+244","+245","+246","+248","+249","+250","+251","+252","+253","+254","+255","+256","+257","+258","+260","+261","+262","+263","+264","+265","+266","+267","+268","+269","+290","+291","+297","+298","+299","+345","+350","+351","+352","+353","+354","+355","+356","+357","+358","+359","+370","+371","+372","+373","+374","+375","+376","+377","+378","+379","+380","+381","+382","+385","+386","+387","+389","+420","+421","+423","+500","+501","+502","+503","+504","+505","+506","+507","+508","+509","+537","+590","+591","+593","+594","+595","+596","+597","+598","+599","+670","+672","+673","+674","+675","+676","+677","+678","+679","+680","+681","+682","+683","+685","+686","+687","+688","+689","+690","+691","+692","+850","+852","+853","+855","+856","+872","+880","+886","+960","+961","+962","+963","+964","+965","+966","+967","+968","+970","+971","+972","+973","+974","+975","+976","+977","+992","+993","+994","+995","+996","+998"],Uv={birthdate:{label:"Birthdate",placeholder:"Enter your Birthdate",type:"date",autocomplete:"bday",isRequired:!0},confirmation_code:{label:"Confirmation Code",placeholder:"Enter your Confirmation Code",type:"text",autocomplete:"one-time-code",isRequired:!0},confirm_password:{label:"Confirm Password",placeholder:"Please confirm your Password",type:"password",autocomplete:"new-password",isRequired:!0},email:{label:"Email",placeholder:"Enter your Email",type:"email",autocomplete:"username",isRequired:!0},family_name:{label:"Family Name",placeholder:"Enter your Family Name",type:"text",autocomplete:"family-name",isRequired:!0},given_name:{label:"Given Name",placeholder:"Enter your Given Name",type:"text",autocomplete:"given-name",isRequired:!0},middle_name:{label:"Middle Name",placeholder:"Enter your Middle Name",type:"text",autocomplete:"additional-name",isRequired:!0},name:{label:"Name",placeholder:"Enter your Name",type:"text",autocomplete:"name",isRequired:!0},nickname:{label:"Nickname",placeholder:"Enter your Nickname",type:"text",autocomplete:"tel",isRequired:!0},password:{label:"Password",placeholder:"Enter your Password",type:"password",autocomplete:"new-password",isRequired:!0},phone_number:{label:"Phone Number",placeholder:"Enter your Phone Number",type:"tel",autocomplete:"tel",dialCode:"+1",dialCodeList:Hz,isRequired:!0},preferred_username:{label:"Preferred Username",placeholder:"Enter your Preferred Username",type:"text",isRequired:!0},profile:{label:"Profile",placeholder:"Add your Profile",type:"url",autocomplete:"url",isRequired:!0},website:{label:"Website",placeholder:"Add your Website",type:"url",autocomplete:"url",isRequired:!0},username:{label:"Username",placeholder:"Enter your Username",type:"text",autocomplete:"username",isRequired:!0}},xue=["^","$","*",".","[","]","{","}","(",")","?",'"',"!","@","#","%","&","/","\\",",",">","<","'",":",";","|","_","~","`","=","+","-"," "],Cue=(e,t)=>{if(t?.matches("federatedSignIn")){if(e.matches("signUpActor"))return"signUp";if(e.matches("signInActor"))return"signIn"}switch(!0){case e.matches("idle"):return"idle";case e.matches("setup"):return"setup";case e.matches("signOut"):return"signOut";case e.matches("authenticated"):return"authenticated";case t?.matches("confirmSignUp"):case t?.matches("resendSignUpCode"):return"confirmSignUp";case t?.matches("confirmSignIn"):return"confirmSignIn";case t?.matches("setupTotp.edit"):case t?.matches("setupTotp.submit"):return"setupTotp";case t?.matches("signIn.submit"):return t?.context.selectedAuthMethod!=null?"signInSelectAuthFactor":"signIn";case t?.matches("signIn.selectMethod"):return"signInSelectAuthFactor";case t?.matches("passkeyPrompt"):return"passkeyPrompt";case t?.matches("signIn"):return"signIn";case t?.matches("signUp"):case t?.matches("autoSignIn"):return"signUp";case t?.matches("forceChangePassword"):return"forceNewPassword";case t?.matches("forgotPassword"):return"forgotPassword";case t?.matches("confirmResetPassword"):return"confirmResetPassword";case t?.matches("selectUserAttributes"):return"verifyUser";case t?.matches("confirmVerifyUserAttribute"):return"confirmVerifyUser";case t?.matches("setupEmail"):return"setupEmail";case t?.matches("selectMfaType"):return"selectMfaType";case e.matches("getCurrentUser"):case t?.matches("fetchUserAttributes"):return"transition";default:return null}},Eue=e=>{const t=n=>r=>e({type:n,data:r});return{initializeMachine:t("INIT"),resendCode:t("RESEND"),selectAuthMethod:t("SELECT_METHOD"),signOut:t("SIGN_OUT"),submitForm:t("SUBMIT"),toShowAuthMethods:t("SHOW_AUTH_METHODS"),updateForm:t("CHANGE"),updateBlur:t("BLUR"),toFederatedSignIn:t("FEDERATED_SIGN_IN"),toForgotPassword:t("FORGOT_PASSWORD"),toSignIn:t("SIGN_IN"),toSignUp:t("SIGN_UP"),skipVerification:t("SKIP")}},_ue=e=>{const t=Yh(e)??{},{allowedMfaTypes:n,availableAuthMethods:r,challengeName:a,codeDeliveryDetails:s,preferredChallenge:i,remoteError:u,selectedAuthMethod:c,validationError:f,totpSecretCode:h=null,unverifiedUserAttributes:m,username:g}=t,{socialProviders:y=[],loginMechanisms:S}=e.context?.config??{},w=S?.[0],x=t?.user??e.context?.user,_=!!(f&&Object.keys(f).length>0),k=rA(e),A=e.hasTag("pending")||k?.hasTag("pending"),R=Cue(e,k),N=(T=>{switch(T){case"idle":case"setup":return"configuring";case"authenticated":return"authenticated";default:return"unauthenticated"}})(R);return{allowedMfaTypes:n,authStatus:N,availableAuthMethods:r,challengeName:a,codeDeliveryDetails:s,error:u,hasValidationErrors:_,isPending:A,loginMechanism:w,preferredChallenge:i,route:R,selectedAuthMethod:c,socialProviders:y,totpSecretCode:h,unverifiedUserAttributes:m,user:x,username:g,validationErrors:f}},kue=({send:e,state:t})=>{const n=Eue(e),r=_ue(t);return{...n,...r}};var zc;(function(e){e.Apple="Apple",e.Amazon="Amazon",e.Facebook="Facebook",e.Google="Google"})(zc||(zc={}));var PM;(function(e){e.Email="email",e.PhoneNumber="phone_number"})(PM||(PM={}));const Aue=["birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website"],Iue=["username","email","phone_number"],qz=[...Iue,...Aue,"confirmation_code","password","confirm_password"],Rue=e=>qz.includes(e),Vz=e=>qz.includes(e),Tue=e=>Array.isArray(e),Oue=e=>e?Tue(e)?e:[e]:null,Nue=e=>{const t=e.trim().split("");for(let n=0;n<t.length;n++)n>0&&n<t.length-1&&(t[n]="*");return t.join("")},Mue=e=>{if(e.length<4)return e;const t=e.split("");for(let n=0;n<t.length-4;n++)t[n]="*";return t.join("")},Pue=e=>{const t=e.split("@");return`${Nue(t[0])}@${t[1]}`},Due=(e,t)=>e==="Phone Number"?Mue(t):Pue(t),Lue=e=>xue.some(t=>e.includes(t)),Uue=(e,t,n)=>encodeURI(`otpauth://totp/${e}:${t}?secret=${n}&issuer=${e}`);function jue(e,...t){return Object.entries(e).reduce((n,[r,a])=>({...n,[r]:t.includes(r)?a:a?.trim()}),{})}const zue={ADD_PROFILE:"Add your Profile",ADD_WEBSITE:"Add your Website",BACK_SIGN_IN:"Back to Sign In",BIRTHDATE:"Birthdate",CHANGE_PASSWORD:"Change Password",CHANGING_PASSWORD:"Changing",CODE:"Code",CODE_ARRIVAL:"It may take a minute to arrive",CODE_EMAILED:"Your code is on the way. To log in, enter the code we emailed to",CODE_SENT:"Your code is on the way. To log in, enter the code we sent you",CODE_TEXTED:"Your code is on the way. To log in, enter the code we texted to",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Please confirm your Password",CONFIRM_RESET_PASSWORD_HEADING:"Reset your Password",CONFIRM_SIGNUP_HEADING:"Confirm Sign Up",CONFIRM_SMS:"Confirm SMS Code",CONFIRM_EMAIL:"Confirm Email Code",CONFIRM_MFA_DEFAULT:"Confirm MFA Code",CONFIRM_TOTP:"Confirm TOTP Code",CONFIRM:"Confirm",CONFIRMATION_CODE:"Confirmation Code",CONFIRMING:"Confirming",CONTINUE:"Continue",CONTINUE_WITHOUT_PASSKEY:"Continue without a Passkey",CREATE_ACCOUNT:"Create Account",CREATE_ACCOUNT_WITH_EMAIL_OTP:"Create account with Email OTP",CREATE_ACCOUNT_WITH_PASSWORD:"Create account with Password",CREATE_ACCOUNT_WITH_SMS_OTP:"Create account with SMS OTP",CREATE_PASSKEY:"Create a Passkey",CREATING_ACCOUNT:"Creating Account",EMAIL_ADDRESS:"Email",EMAIL_OTP:"Email Message",ENTER_BIRTHDATE:"Enter your Birthdate",ENTER_CODE:"Enter your code",ENTER_CONFIRMATION_CODE:"Enter your Confirmation Code",ENTER_EMAIL:"Enter your Email",ENTER_FAMILY_NAME:"Enter your Family Name",ENTER_GIVEN_NAME:"Enter your Given Name",ENTER_MIDDLE_NAME:"Enter your Middle Name",ENTER_NAME:"Enter your Name",ENTER_NICK_NAME:"Enter your Nickname",ENTER_PASSWORD:"Enter your Password",ENTER_PHONE_NUMBER:"Enter your Phone Number",ENTER_PREFERRED_USERNAME:"Enter your Preferred Username",ENTER_USERNAME:"Enter your username",ENTER_USERNAME_FIRST:"Please enter your username first",EXISTING_PASSKEYS:"Existing Passkeys",FAMILY_NAME:"Family Name",GIVEN_NAME:"Given Name",FORGOT_PASSWORD:"Forgot Password?",FORGOT_YOUR_PASSWORD:"Forgot your password?",HIDE_PASSWORD:"Hide password",LOADING:"Loading",LOGIN_NAME:"Username",MIDDLE_NAME:"Middle Name",MFA_SETUP_SELECTION:"Multi-Factor Authentication Setup",MFA_SELECTION:"Multi-Factor Authentication",NAME:"Name",NICKNAME:"Nickname",NEW_PASSWORD:"New password",OR:"or",OTHER_SIGN_IN_OPTIONS:"Other sign-in options",PASSKEY_AUTHENTICATION_CANCELED:"Passkey authentication was canceled. Please try again or use a different sign-in method.",PASSKEY_CREATED_SUCCESS:"Passkey created successfully!",PASSKEY_LABEL:"Passkey",PASSKEY_PROMPT_DESCRIPTION:"Passkeys are WebAuthn credentials that validate your identity using biometric data like touch or facial recognition or device authentication like passwords or PINs, serving as a secure password replacement.",PASSKEY_PROMPT_HEADING:"Sign in faster with Passkey",PASSKEY_REGISTERED:"Your passkey has been successfully registered.",PASSKEY_REGISTRATION_FAILED:"Failed to create passkey. Please try again.",PASSWORD:"Password",PASSWORDLESS_NOT_ENABLED:"Passwordless authentication is not enabled for this account. Please contact your administrator or use password sign-in.",PHONE_NUMBER:"Phone Number",PREFERRED_USERNAME:"Preferred Username",PROFILE:"Profile",REGISTERING:"Registering",RESEND_CODE:"Resend Code",RESET_PASSWORD_HEADING:"Reset your password",RESET_PASSWORD:"Reset Password",SEND_CODE:"Send code",CODE_DELIVERY_FAILED:"Unable to send verification code. Please try again.",VERIFICATION_CODE_EXPIRED:"Your verification code has expired. Please request a new code.",VERIFICATION_CODE_INVALID:"The verification code you entered is incorrect. Please try again.",SENDING:"Sending",SELECT_MFA_TYPE:"Select MFA Type",SETUP_ANOTHER_PASSKEY:"Setup another Passkey",SETUP_EMAIL:"Setup Email",SETUP_TOTP:"Setup TOTP",SHOW_PASSWORD:"Show password",SIGN_IN_BUTTON:"Sign in",SIGN_IN_TAB:"Sign In",SIGN_IN_WITH_AMAZON:"Sign In with Amazon",SIGN_IN_WITH_APPLE:"Sign In with Apple",SIGN_IN_WITH_EMAIL:"Sign In with Email",SIGN_IN_WITH_FACEBOOK:"Sign In with Facebook",SIGN_IN_WITH_GOOGLE:"Sign In with Google",SIGN_IN_WITH_PASSKEY:"Sign In with Passkey",SIGN_IN_WITH_PASSWORD:"Sign In with Password",SIGN_IN_WITH_SMS:"Sign In with SMS",SIGN_IN:"Sign in to your account",SIGN_UP_BUTTON:"Create a new account",SIGNING_IN_BUTTON:"Signing in",SKIP:"Skip",SMS_MFA:"Text Message (SMS)",SUBMIT:"Submit",SUBMITTING:"Submitting",SOFTWARE_TOKEN_MFA:"Authenticator App (TOTP)",UPPERCASE_COPY:"COPY",USERNAME:"Username",VERIFY_CONTACT:"Verify Contact",VERIFY_HEADING:"Account recovery requires verified contact information",VERIFY:"Verify",WE_EMAILED:"We Emailed You",WE_SENT_CODE:"We Sent A Code",WE_TEXTED:"We Texted You",WEBSITE:"Website"},_0={...zue},Ce={..._0};function be(e){return RL.get(e)}const sA=e=>{const t=e?.context.config?.loginMechanisms,[n]=t??["username"];return n},Fue=e=>{const t={...e};for(const[n,r]of Object.entries(e)){const{label:a,placeholder:s}=r;t[n]={...r,label:a?be(a):void 0,placeholder:s?be(s):void 0}}return t},$ue=e=>Object.entries(e).sort((t,n)=>{const r=t[1].order||Number.MAX_VALUE,a=n[1].order||Number.MAX_VALUE;return r-a}).filter(t=>t[1]!==void 0),Bue="+1",Io=e=>{let t=Uv[e];const{type:n}=t;return n==="tel"&&(t={...t,dialCode:Bue}),t},jv=e=>{const t=sA(e);return{...Io(t),autocomplete:"username"}},k0=e=>({confirmation_code:{...Io("confirmation_code"),label:"Code *",placeholder:"Code"}}),Hue=e=>{const t=e.context.actorRef?.getSnapshot()?.context,n=t?.availableAuthMethods,r=t?.preferredChallenge,a=!n?.length||n.length===1&&n[0]==="PASSWORD"||n.length>1&&(!r||r==="PASSWORD"),s={username:{...jv(e)}};return a&&(s.password={...Io("password"),autocomplete:"current-password"}),s},que=e=>{const{loginMechanisms:t,signUpAttributes:n}=e.context.config,r=sA(e),s=e.context.actorRef?.getSnapshot()?.context?.availableAuthMethods,i=s&&s.length>1,u=Array.from(new Set([...t,"password","confirm_password",...n])),c={};for(const f of u)if(Vz(f)){const h=f===r?jv(e):Io(f),m=i&&(f==="email"||f==="phone_number"||f==="password"||f==="confirm_password");c[f]={...h,...m&&{isRequired:!1}}}else console.debug(`Authenticator does not have a default implementation for ${f}. Customize SignUp FormFields to add your own.`);return c},Vue=e=>({confirmation_code:{...Io("confirmation_code"),placeholder:"Enter your code"}}),Wue=e=>{const t=sA(e),{label:n}=Uv[t];return{username:{...jv(e),label:`Enter your ${n.toLowerCase()}`,placeholder:`Enter your ${n.toLowerCase()}`}}},Gue=e=>({...k0(),password:{...Io("password"),label:"New Password",placeholder:"New Password"},confirm_password:{...Io("confirm_password"),label:"Confirm Password",placeholder:"Confirm Password"}}),Kue=e=>{const t=rA(e),{missingAttributes:n}=t.context,r=Array.from(new Set(["password","confirm_password",...n??[]])),a={};for(const s of r)Vz(s)?a[s]={...Io(s)}:console.debug(`Authenticator does not have a default implementation for ${s}. Customize ForceNewPassword FormFields to add your own.`);return a},Yue=e=>({email:Io("email")}),Zue={signIn:Hue,signUp:que,confirmSignUp:Vue,confirmSignIn:k0,forceNewPassword:Kue,forgotPassword:Wue,confirmResetPassword:Gue,confirmVerifyUser:k0,setupEmail:Yue,setupTotp:k0},Xue=(e,t)=>{const n=Zue[e];return n(t)},Que=(e,t)=>{const n=Yh(t)?.formFields?.[e];return!n||Object.keys(n).length===0?{}:Object.entries(n).reduce((r,[a,s])=>{if((e==="signIn"||e==="forgotPassword")&&a==="username"){const u={...jv(t),...s};return{...r,[a]:u}}else if(Rue(a)){const u={...Uv[a],...s};return{...r,[a]:u}}else return{...r,[a]:s}},{})},Jue=(e,t)=>{const n=Xue(e,t),r=Que(e,t),a={...n,...r};return delete a.QR,Fue(a)},ece=e=>e.map(t=>{const n=t[0],r={...t[1],order:void 0};return[n,r]}),tce=(e,t)=>{const n=Jue(e,t);return ece($ue(n))},nce=e=>{switch(e){case"EMAIL_OTP":return be(Ce.CONFIRM_EMAIL);case"SMS_MFA":return be(Ce.CONFIRM_SMS);case"SOFTWARE_TOKEN_MFA":return be(Ce.CONFIRM_TOTP);default:return be(Ce.CONFIRM_MFA_DEFAULT)}},rce=e=>{const{DeliveryMedium:t,Destination:n}=e??{},r=t==="EMAIL",a=t==="SMS",s=be(Ce.CODE_ARRIVAL);return r||a?`${be(r?Ce.CODE_EMAILED:Ce.CODE_TEXTED)} ${n}. ${s}.`:`${be(Ce.CODE_SENT)}. ${s}.`},ace=e=>{const{DeliveryMedium:t}=e??{},n=t==="EMAIL";return be(!n&&t==="SMS"?Ce.WE_SENT_CODE:n?Ce.WE_EMAILED:Ce.WE_TEXTED)},sce={amazon:"Amazon",apple:"Apple",facebook:"Facebook",google:"Google"},oce=(e,t)=>be(`Sign ${e==="signIn"?"In":"Up"} with ${sce[t]}`),ice=e=>be(e==="MFA_SETUP"?Ce.MFA_SETUP_SELECTION:Ce.MFA_SELECTION),lce=e=>{switch(e){case"email":return be(Ce.EMAIL_ADDRESS);case"phone_number":return be(Ce.PHONE_NUMBER);default:return be(Ce.USERNAME)}},uce=e=>{switch(e){case"EMAIL":return be(_0.EMAIL_OTP);case"SMS":return be(_0.SMS_MFA);case"TOTP":return be(_0.SOFTWARE_TOKEN_MFA);default:return be(e)}},$n={getBackToSignInText:()=>be(Ce.BACK_SIGN_IN),getChangePasswordText:()=>be(Ce.CHANGE_PASSWORD),getChangingText:()=>be(Ce.CHANGING_PASSWORD),getConfirmText:()=>be(Ce.CONFIRM),getConfirmingText:()=>be(Ce.CONFIRMING),getContinueText:()=>be(Ce.CONTINUE),getCopyText:()=>be(Ce.UPPERCASE_COPY),getHidePasswordText:()=>be(Ce.HIDE_PASSWORD),getLoadingText:()=>be(Ce.LOADING),getOrText:()=>be(Ce.OR),getResendCodeText:()=>be(Ce.RESEND_CODE),getSendCodeText:()=>be(Ce.SEND_CODE),getSendingText:()=>be(Ce.SENDING),getShowPasswordText:()=>be(Ce.SHOW_PASSWORD),getSubmitText:()=>be(Ce.SUBMIT),getSubmittingText:()=>be(Ce.SUBMITTING),getSignInTabText:()=>be(Ce.SIGN_IN_TAB),getSignUpTabText:()=>be(Ce.CREATE_ACCOUNT),getForgotPasswordText:e=>be(e?Ce.FORGOT_PASSWORD:Ce.FORGOT_YOUR_PASSWORD),getSigningInText:()=>be(Ce.SIGNING_IN_BUTTON),getSignInText:()=>be(Ce.SIGN_IN_BUTTON),getCreatingAccountText:()=>be(Ce.CREATING_ACCOUNT),getCreateAccountText:()=>be(Ce.CREATE_ACCOUNT),getCreateAccountWithEmailText:()=>be(Ce.CREATE_ACCOUNT_WITH_EMAIL_OTP),getCreateAccountWithPasswordText:()=>be(Ce.CREATE_ACCOUNT_WITH_PASSWORD),getCreateAccountWithSmsText:()=>be(Ce.CREATE_ACCOUNT_WITH_SMS_OTP),getDeliveryMessageText:rce,getDeliveryMethodText:ace,getChallengeText:nce,getResetYourPasswordText:()=>be(Ce.RESET_PASSWORD),getSetupEmailText:()=>be(Ce.SETUP_EMAIL),getSetupTotpText:()=>be(Ce.SETUP_TOTP),getSetupTotpInstructionsText:()=>be("Copy and paste the secret key below into an authenticator app and then enter the code in the text field below."),getCopiedText:()=>be("COPIED"),getSignInWithFederationText:oce,getMfaTypeLabelByValue:uce,getSelectMfaTypeByChallengeName:ice,getSelectMfaTypeText:()=>be(Ce.SELECT_MFA_TYPE),getSkipText:()=>be(Ce.SKIP),getVerifyText:()=>be(Ce.VERIFY),getVerifyContactText:()=>be(Ce.VERIFY_CONTACT),getAccountRecoveryInfoText:()=>be(Ce.VERIFY_HEADING),getPasskeyPromptHeadingText:()=>be(Ce.PASSKEY_PROMPT_HEADING),getPasskeyPromptDescriptionText:()=>be(Ce.PASSKEY_PROMPT_DESCRIPTION),getCreatePasskeyText:()=>be(Ce.CREATE_PASSKEY),getRegisteringText:()=>be(Ce.REGISTERING),getContinueWithoutPasskeyText:()=>be(Ce.CONTINUE_WITHOUT_PASSKEY),getPasskeyCreatedSuccessText:()=>be(Ce.PASSKEY_CREATED_SUCCESS),getPasskeyRegisteredText:()=>be(Ce.PASSKEY_REGISTERED),getPasskeyRegistrationFailedText:()=>be(Ce.PASSKEY_REGISTRATION_FAILED),getPasskeyLabelText:()=>be(Ce.PASSKEY_LABEL),getExistingPasskeysText:()=>be(Ce.EXISTING_PASSKEYS),getSetupAnotherPasskeyText:()=>be(Ce.SETUP_ANOTHER_PASSKEY),getSignInWithPasswordText:()=>be(Ce.SIGN_IN_WITH_PASSWORD),getSignInWithEmailText:()=>be(Ce.SIGN_IN_WITH_EMAIL),getSignInWithSmsText:()=>be(Ce.SIGN_IN_WITH_SMS),getSignInWithPasskeyText:()=>be(Ce.SIGN_IN_WITH_PASSKEY),getOtherSignInOptionsText:()=>be(Ce.OTHER_SIGN_IN_OPTIONS),getEnterUsernameFirstText:()=>be(Ce.ENTER_USERNAME_FIRST),getUsernameLabelByLoginMechanism:lce,getInvalidEmailText:()=>be("Please enter a valid email"),getRequiredFieldText:()=>be("This field is required")};var t2,DM;function Wz(){if(DM)return t2;DM=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,s=Array(a);++r<a;)s[r]=n(t[r],r,t);return s}return t2=e,t2}var n2,LM;function cce(){if(LM)return n2;LM=1;var e=Hk(),t=cz(),n=1,r=2;function a(s,i,u,c){var f=u.length,h=f,m=!c;if(s==null)return!h;for(s=Object(s);f--;){var g=u[f];if(m&&g[2]?g[1]!==s[g[0]]:!(g[0]in s))return!1}for(;++f<h;){g=u[f];var y=g[0],S=s[y],w=g[1];if(m&&g[2]){if(S===void 0&&!(y in s))return!1}else{var x=new e;if(c)var _=c(S,w,y,s,i,x);if(!(_===void 0?t(w,S,n|r,c,x):_))return!1}}return!0}return n2=a,n2}var r2,UM;function Gz(){if(UM)return r2;UM=1;var e=Do();function t(n){return n===n&&!e(n)}return r2=t,r2}var a2,jM;function dce(){if(jM)return a2;jM=1;var e=Gz(),t=uz();function n(r){for(var a=t(r),s=a.length;s--;){var i=a[s],u=r[i];a[s]=[i,u,e(u)]}return a}return a2=n,a2}var s2,zM;function Kz(){if(zM)return s2;zM=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return s2=e,s2}var o2,FM;function fce(){if(FM)return o2;FM=1;var e=cce(),t=dce(),n=Kz();function r(a){var s=t(a);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(i){return i===a||e(i,a,s)}}return o2=r,o2}var i2,$M;function oA(){if($M)return i2;$M=1;var e=Dd(),t=gu(),n="[object Symbol]";function r(a){return typeof a=="symbol"||t(a)&&e(a)==n}return i2=r,i2}var l2,BM;function iA(){if(BM)return l2;BM=1;var e=Lo(),t=oA(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function a(s,i){if(e(s))return!1;var u=typeof s;return u=="number"||u=="symbol"||u=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||i!=null&&s in Object(i)}return l2=a,l2}var u2,HM;function hce(){if(HM)return u2;HM=1;var e=Bk(),t="Expected a function";function n(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var s=function(){var i=arguments,u=a?a.apply(this,i):i[0],c=s.cache;if(c.has(u))return c.get(u);var f=r.apply(this,i);return s.cache=c.set(u,f)||c,f};return s.cache=new(n.Cache||e),s}return n.Cache=e,u2=n,u2}var c2,qM;function pce(){if(qM)return c2;qM=1;var e=hce(),t=500;function n(r){var a=e(r,function(i){return s.size===t&&s.clear(),i}),s=a.cache;return a}return c2=n,c2}var d2,VM;function mce(){if(VM)return d2;VM=1;var e=pce(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(a){var s=[];return a.charCodeAt(0)===46&&s.push(""),a.replace(t,function(i,u,c,f){s.push(c?f.replace(n,"$1"):u||i)}),s});return d2=r,d2}var f2,WM;function gce(){if(WM)return f2;WM=1;var e=Av(),t=Wz(),n=Lo(),r=oA(),a=e?e.prototype:void 0,s=a?a.toString:void 0;function i(u){if(typeof u=="string")return u;if(n(u))return t(u,i)+"";if(r(u))return s?s.call(u):"";var c=u+"";return c=="0"&&1/u==-1/0?"-0":c}return f2=i,f2}var h2,GM;function lA(){if(GM)return h2;GM=1;var e=gce();function t(n){return n==null?"":e(n)}return h2=t,h2}var p2,KM;function zv(){if(KM)return p2;KM=1;var e=Lo(),t=iA(),n=mce(),r=lA();function a(s,i){return e(s)?s:t(s,i)?[s]:n(r(s))}return p2=a,p2}var m2,YM;function Op(){if(YM)return m2;YM=1;var e=oA();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return m2=t,m2}var g2,ZM;function uA(){if(ZM)return g2;ZM=1;var e=zv(),t=Op();function n(r,a){a=e(a,r);for(var s=0,i=a.length;r!=null&&s<i;)r=r[t(a[s++])];return s&&s==i?r:void 0}return g2=n,g2}var v2,XM;function vce(){if(XM)return v2;XM=1;var e=uA();function t(n,r,a){var s=n==null?void 0:e(n,r);return s===void 0?a:s}return v2=t,v2}var y2,QM;function yce(){if(QM)return y2;QM=1;function e(t,n){return t!=null&&n in Object(t)}return y2=e,y2}var b2,JM;function bce(){if(JM)return b2;JM=1;var e=zv(),t=qk(),n=Lo(),r=Tv(),a=Wk(),s=Op();function i(u,c,f){c=e(c,u);for(var h=-1,m=c.length,g=!1;++h<m;){var y=s(c[h]);if(!(g=u!=null&&f(u,y)))break;u=u[y]}return g||++h!=m?g:(m=u==null?0:u.length,!!m&&a(m)&&r(y,m)&&(n(u)||t(u)))}return b2=i,b2}var S2,e8;function Sce(){if(e8)return S2;e8=1;var e=yce(),t=bce();function n(r,a){return r!=null&&t(r,a,e)}return S2=n,S2}var w2,t8;function wce(){if(t8)return w2;t8=1;var e=cz(),t=vce(),n=Sce(),r=iA(),a=Gz(),s=Kz(),i=Op(),u=1,c=2;function f(h,m){return r(h)&&a(m)?s(i(h),m):function(g){var y=t(g,h);return y===void 0&&y===m?n(g,h):e(m,y,u|c)}}return w2=f,w2}var x2,n8;function cA(){if(n8)return x2;n8=1;function e(t){return t}return x2=e,x2}var C2,r8;function xce(){if(r8)return C2;r8=1;function e(t){return function(n){return n?.[t]}}return C2=e,C2}var E2,a8;function Cce(){if(a8)return E2;a8=1;var e=uA();function t(n){return function(r){return e(r,n)}}return E2=t,E2}var _2,s8;function Ece(){if(s8)return _2;s8=1;var e=xce(),t=Cce(),n=iA(),r=Op();function a(s){return n(s)?e(r(s)):t(s)}return _2=a,_2}var k2,o8;function _ce(){if(o8)return k2;o8=1;var e=fce(),t=wce(),n=cA(),r=Lo(),a=Ece();function s(i){return typeof i=="function"?i:i==null?n:typeof i=="object"?r(i)?t(i[0],i[1]):e(i):a(i)}return k2=s,k2}var A2,i8;function Yz(){if(i8)return A2;i8=1;var e=mu(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return A2=t,A2}var I2,l8;function dA(){if(l8)return I2;l8=1;var e=Yz();function t(n,r,a){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):n[r]=a}return I2=t,I2}var R2,u8;function Zz(){if(u8)return R2;u8=1;var e=dA(),t=Rp(),n=Object.prototype,r=n.hasOwnProperty;function a(s,i,u){var c=s[i];(!(r.call(s,i)&&t(c,u))||u===void 0&&!(i in s))&&e(s,i,u)}return R2=a,R2}var T2,c8;function kce(){if(c8)return T2;c8=1;var e=Zz(),t=zv(),n=Tv(),r=Do(),a=Op();function s(i,u,c,f){if(!r(i))return i;u=t(u,i);for(var h=-1,m=u.length,g=m-1,y=i;y!=null&&++h<m;){var S=a(u[h]),w=c;if(S==="__proto__"||S==="constructor"||S==="prototype")return i;if(h!=g){var x=y[S];w=f?f(x,S,y):void 0,w===void 0&&(w=r(x)?x:n(u[h+1])?[]:{})}e(y,S,w),y=y[S]}return i}return T2=s,T2}var O2,d8;function Ace(){if(d8)return O2;d8=1;var e=uA(),t=kce(),n=zv();function r(a,s,i){for(var u=-1,c=s.length,f={};++u<c;){var h=s[u],m=e(a,h);i(m,h)&&t(f,n(h,a),m)}return f}return O2=r,O2}var N2,f8;function fA(){if(f8)return N2;f8=1;var e=lz(),t=e(Object.getPrototypeOf,Object);return N2=t,N2}var M2,h8;function Ice(){if(h8)return M2;h8=1;var e=rz(),t=fA(),n=oz(),r=sz(),a=Object.getOwnPropertySymbols,s=a?function(i){for(var u=[];i;)e(u,n(i)),i=t(i);return u}:r;return M2=s,M2}var P2,p8;function Rce(){if(p8)return P2;p8=1;function e(t){var n=[];if(t!=null)for(var r in Object(t))n.push(r);return n}return P2=e,P2}var D2,m8;function Tce(){if(m8)return D2;m8=1;var e=Do(),t=Kk(),n=Rce(),r=Object.prototype,a=r.hasOwnProperty;function s(i){if(!e(i))return n(i);var u=t(i),c=[];for(var f in i)f=="constructor"&&(u||!a.call(i,f))||c.push(f);return c}return D2=s,D2}var L2,g8;function hA(){if(g8)return L2;g8=1;var e=iz(),t=Tce(),n=Ov();function r(a){return n(a)?e(a,!0):t(a)}return L2=r,L2}var U2,v8;function Oce(){if(v8)return U2;v8=1;var e=az(),t=Ice(),n=hA();function r(a){return e(a,n,t)}return U2=r,U2}var j2,y8;function Nce(){if(y8)return j2;y8=1;var e=Wz(),t=_ce(),n=Ace(),r=Oce();function a(s,i){if(s==null)return{};var u=e(r(s),function(c){return[c]});return i=t(i),n(s,u,function(c,f){return i(c,f[0])})}return j2=a,j2}var Mce=Nce();const Pce=_d(Mce),Dce=!0,Lce="",Zh=(e,t)=>`${e}${t}`.replace(/[^A-Z0-9+]/gi,""),Uce=(e,t)=>{switch(t){case"address":case"birthdate":case"email":case"family_name":case"gender":case"given_name":case"locale":case"middle_name":case"name":case"nickname":case"phone_number":case"picture":case"preferred_username":case"profile":case"updated_at":case"website":case"zoneinfo":return!0;default:return t.startsWith("custom:")}},jce=e=>{const{phone_number:t,...n}=Pce(e,Uce);if(_o(t)&&t!==Lce){const{country_code:r}=e;return{...n,phone_number:Zh(r,t)}}return n},zce=(e,t,n,r)=>{const{password:a,...s}=t,i=jce(s),u=r&&r!=="PASSWORD";let c=i;r==="SMS_OTP"&&i.email&&(c={...i,email:""});const f={autoSignIn:u?{enabled:!0,authFlowType:"USER_AUTH",preferredChallenge:r}:Dce,userAttributes:{...n==="phone_number"?{...c,phone_number:e}:c}};return{username:e,password:u?void 0:a,options:f}},Fce=({formValues:e,loginMechanisms:t})=>{const n=e.__authMethod;if(n==="SMS_OTP"){const{country_code:a,phone_number:s}=e;return Zh(a,s)}if(n==="EMAIL_OTP")return e.email;if(t.includes("username"))return e.username;const r=t[0];if(r==="phone_number"){const{country_code:a,phone_number:s}=e;return Zh(a,s)}return e[r]},$ce=(e,t)=>{const n=[],r=t!==void 0;n.push("PASSWORD"),(r||e?.emailOtpEnabled)&&n.push("EMAIL_OTP"),(r||e?.smsOtpEnabled)&&n.push("SMS_OTP"),(r||e?.webAuthnEnabled)&&n.push("WEB_AUTHN");const a=t??[],s=n.filter(i=>!a.includes(i));if(s.length===0)throw new Error("InvalidPasswordlessSettings: All authentication methods are hidden");return s},{assign:lt}=Pz,Bce=lt({actorDoneData:void 0}),Hce=lt({challengeName:void 0}),qce=lt({missingAttributes:void 0}),Vce=lt({remoteError:void 0}),Wce=lt({formValues:e=>({username:e.formValues?.username})}),Gce=lt({touched:{}}),Kce=lt({user:void 0}),Yce=lt({validationError:{}}),Zce=lt({totpSecretCode:(e,{data:t})=>{const{sharedSecret:n}=t.nextStep?.totpSetupDetails??{};return n}}),Xce=lt({allowedMfaTypes:(e,{data:t})=>t.nextStep?.allowedMFATypes}),Qce=lt({step:"SIGN_IN"}),Jce=lt({step:"SHOULD_CONFIRM_USER_ATTRIBUTE"}),ede=lt({step:"CONFIRM_ATTRIBUTE_COMPLETE"}),tde=lt({challengeName:(e,{data:t})=>{const{signInStep:n}=t.nextStep;switch(n){case"CONFIRM_SIGN_IN_WITH_SMS_CODE":return"SMS_MFA";case"CONFIRM_SIGN_IN_WITH_TOTP_CODE":return"SOFTWARE_TOKEN_MFA";case"CONFIRM_SIGN_IN_WITH_EMAIL_CODE":return"EMAIL_OTP";case"CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION":case"CONTINUE_SIGN_IN_WITH_EMAIL_SETUP":case"CONTINUE_SIGN_IN_WITH_TOTP_SETUP":return"MFA_SETUP";case"CONTINUE_SIGN_IN_WITH_MFA_SELECTION":return"SELECT_MFA_TYPE";default:return}}}),nde=lt({username:({formValues:e,loginMechanisms:t})=>{const n=t[0],{username:r,country_code:a}=e;return n==="phone_number"?Zh(a,r):r}}),rde=lt({username:Fce}),ade=lt({username:({formValues:e,loginMechanisms:t})=>{const n=t[0],{username:r,country_code:a}=e;return n==="phone_number"?Zh(a,r):r}}),sde=lt({step:(e,{data:t})=>t.nextStep.signInStep==="DONE"?"SIGN_IN_COMPLETE":t.nextStep.signInStep}),ode=lt({step:(e,{data:t})=>t.nextStep.signUpStep==="DONE"?"SIGN_UP_COMPLETE":t.nextStep.signUpStep}),ide=lt({step:(e,{data:t})=>t.nextStep.resetPasswordStep==="DONE"?"RESET_PASSWORD_COMPLETE":t.nextStep.resetPasswordStep}),lde=lt({missingAttributes:(e,{data:t})=>t.nextStep?.missingAttributes}),ude=lt({validationError:(e,{data:t})=>t}),cde=lt({remoteError:(e,{data:t})=>{if(t.name==="NoUserPoolError")return"Configuration error (see console) – please contact the administrator";const n=t?.message||"";return n.includes("USER_AUTH flow not enabled")?be(Ce.PASSWORDLESS_NOT_ENABLED):n.includes("Cannot send code to either")?be(Ce.CODE_DELIVERY_FAILED):n.includes("Invalid code or auth state")?be(Ce.VERIFICATION_CODE_INVALID):n.includes("session is expired")?be(Ce.VERIFICATION_CODE_EXPIRED):n.includes("ceremony has been canceled")?be(Ce.PASSKEY_AUTHENTICATION_CANCELED):n||t}}),dde=lt({user:(e,{data:t})=>t}),b8=e=>({Destination:e.destination,DeliveryMedium:e.deliveryMedium,AttributeName:e.attributName}),fde=lt({codeDeliveryDetails:(e,{data:t})=>t?.nextStep?.codeDeliveryDetails?b8(t.nextStep.codeDeliveryDetails):b8(t)}),hde=lt({formValues:(e,{data:t})=>{const{name:n,value:r}=t;return{...e.formValues,[n]:r}}}),pde=lt({formValues:(e,{data:t})=>jue({...e.formValues,...t},"password")}),mde=lt({touched:(e,{data:t})=>({...e.touched,[t.name]:!0})}),gde=lt({unverifiedUserAttributes:(e,{data:t})=>{const n=t||e.fetchedUserAttributes;if(!n)return{};const{email:r,phone_number:a}=n;return{...r&&{email:r},...a&&{phone_number:a}}}}),vde=lt({selectedUserAttribute:void 0}),yde=lt({selectedUserAttribute:e=>e.formValues?.unverifiedAttr}),bde=lt({step:"CONFIRM_SIGN_UP"}),Sde=lt({selectedAuthMethod:(e,{data:t})=>t.method}),wde=lt({selectedAuthMethod:(e,{data:t})=>t?.__authMethod||"PASSWORD"}),xde=lt({step:"SELECT_AUTH_METHOD"}),Cde=lt({fetchedUserAttributes:(e,t)=>t.data}),Ede=lt({hasExistingPasskeys:(e,t)=>t.data}),_de=lt({hasExistingPasskeys:!1}),Np={clearActorDoneData:Bce,clearChallengeName:Hce,clearError:Vce,clearFormValues:Wce,clearHasExistingPasskeys:_de,clearMissingAttributes:qce,clearSelectedUserAttribute:vde,clearTouched:Gce,clearUser:Kce,clearValidationError:Yce,handleBlur:mde,handleInput:hde,handleSubmit:pde,setAllowedMfaTypes:Xce,setChallengeName:tde,setCodeDeliveryDetails:fde,setFetchedUserAttributes:Cde,setFieldErrors:ude,setHasExistingPasskeys:Ede,setMissingAttributes:lde,setNextResetPasswordStep:ide,setNextSignInStep:sde,setNextSignUpStep:ode,setRemoteError:cde,setConfirmAttributeCompleteStep:ede,setConfirmSignUpSignUpStep:bde,setSelectAuthMethodStep:xde,setSelectedAuthMethod:Sde,setSelectedAuthMethodFromForm:wde,setShouldVerifyUserAttributeStep:Jce,setSelectedUserAttribute:yde,setSignInStep:Qce,setTotpSecretCode:Zce,setUser:dde,setUnverifiedUserAttributes:gde,setUsernameForgotPassword:nde,setUsernameSignIn:ade,setUsernameSignUp:rde},kde=["CONFIRM_SIGN_IN_WITH_SMS_CODE","CONFIRM_SIGN_IN_WITH_TOTP_CODE","CONFIRM_SIGN_IN_WITH_EMAIL_CODE"],Ade=(e,{data:t})=>t?.nextStep.signInStep==="CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",Ide=(e,{data:t})=>t?.nextStep?.signInStep==="RESET_PASSWORD",Rde=(e,{data:t})=>t?.nextStep.signInStep==="CONFIRM_SIGN_UP",Tde=(e,{data:t})=>t?.nextStep.signUpStep==="COMPLETE_AUTO_SIGN_IN",Ode=(e,{data:t})=>t?.nextStep.signUpStep==="DONE"&&e.step==="CONFIRM_SIGN_UP",Nde=(e,{data:t})=>t?.nextStep.signInStep==="DONE",Mde=(e,{data:t})=>t?.nextStep.signUpStep==="DONE",Pde=(e,{data:t})=>t?.nextStep.resetPasswordStep==="DONE",Dde=(e,{data:t})=>t?.step==="CONFIRM_ATTRIBUTE_COMPLETE",Lde=(e,{data:t})=>t?.step==="CONFIRM_ATTRIBUTE_WITH_CODE",Ude=(e,{data:t})=>t?.step==="SHOULD_CONFIRM_USER_ATTRIBUTE",jde=(e,{data:t})=>t?.step==="RESET_PASSWORD",zde=(e,{data:t})=>t?.step==="CONFIRM_SIGN_UP",Fde=({step:e})=>kde.includes(e),$de=({step:e})=>e==="CONTINUE_SIGN_IN_WITH_TOTP_SETUP",Bde=({step:e})=>e==="CONTINUE_SIGN_IN_WITH_EMAIL_SETUP",Hde=({step:e})=>["CONTINUE_SIGN_IN_WITH_MFA_SELECTION","CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION"].includes(e),qde=({step:e})=>e==="RESET_PASSWORD",Vde=({step:e})=>e==="CONFIRM_RESET_PASSWORD_WITH_CODE",Wde=({step:e})=>e==="CONFIRM_SIGN_UP",Gde=(e,t)=>{const n=t.data||e.fetchedUserAttributes;if(!n)return!1;const{email:r,phone_number:a,phone_number_verified:s,email_verified:i}=n;return!r&&!a?!1:(i===void 0||i==="false")&&(s===void 0||s==="false")},Kde=(e,{data:t})=>t.message==="User is already confirmed.",Yde=({availableAuthMethods:e,preferredChallenge:t,selectedAuthMethod:n})=>e&&e.length>1&&(!t||n===null),Zde=({passwordless:e,hasExistingPasskeys:t})=>{const{passkeyRegistrationPrompts:n}=e||{};return!n||t?!1:typeof n=="boolean"?n:n.afterSignin==="ALWAYS"},Xde=({passwordless:e,hasExistingPasskeys:t})=>{const{passkeyRegistrationPrompts:n}=e||{};return!n||t?!1:typeof n=="boolean"?n:n.afterSignup==="ALWAYS"},Qde=({passwordless:e})=>e?.passkeyRegistrationPrompts!=null,Jde=({selectedAuthMethod:e,step:t})=>e!=null&&t==="SELECT_AUTH_METHOD",Fv={hasCompletedAttributeConfirmation:Dde,hasCompletedResetPassword:Pde,hasCompletedSignIn:Nde,hasCompletedSignUp:Mde,hasPasskeyRegistrationPrompts:Qde,isConfirmSignUpStep:zde,isConfirmUserAttributeStep:Lde,isResetPasswordStep:jde,isShouldConfirmUserAttributeStep:Ude,isUserAlreadyConfirmed:Kde,shouldAutoSignIn:Tde,shouldManualSignIn:Ode,shouldConfirmResetPassword:Vde,shouldConfirmSignIn:Fde,shouldConfirmSignInWithNewPassword:Ade,shouldConfirmSignUp:Wde,shouldConfirmSignUpFromSignIn:Rde,shouldResetPassword:qde,shouldResetPasswordFromSignIn:Ide,shouldReturnToSelectMethod:Jde,shouldSelectAuthMethod:Yde,shouldSetupTotp:$de,shouldSetupEmail:Bde,shouldSelectMfaType:Hde,shouldVerifyAttribute:Gde,shouldPromptPasskeyRegistration:Zde,shouldPromptPasskeyRegistrationAfterSignup:Xde};var z2,S8;function Xz(){if(S8)return z2;S8=1;var e=dA(),t=Rp();function n(r,a,s){(s!==void 0&&!t(r[a],s)||s===void 0&&!(a in r))&&e(r,a,s)}return z2=n,z2}var F2,w8;function efe(){if(w8)return F2;w8=1;function e(t){return function(n,r,a){for(var s=-1,i=Object(n),u=a(n),c=u.length;c--;){var f=u[t?c:++s];if(r(i[f],f,i)===!1)break}return n}}return F2=e,F2}var $2,x8;function tfe(){if(x8)return $2;x8=1;var e=efe(),t=e();return $2=t,$2}var wh={exports:{}};wh.exports;var C8;function nfe(){return C8||(C8=1,(function(e,t){var n=js(),r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===r,i=s?n.Buffer:void 0,u=i?i.allocUnsafe:void 0;function c(f,h){if(h)return f.slice();var m=f.length,g=u?u(m):new f.constructor(m);return f.copy(g),g}e.exports=c})(wh,wh.exports)),wh.exports}var B2,E8;function rfe(){if(E8)return B2;E8=1;var e=nz();function t(n){var r=new n.constructor(n.byteLength);return new e(r).set(new e(n)),r}return B2=t,B2}var H2,_8;function afe(){if(_8)return H2;_8=1;var e=rfe();function t(n,r){var a=r?e(n.buffer):n.buffer;return new n.constructor(a,n.byteOffset,n.length)}return H2=t,H2}var q2,k8;function sfe(){if(k8)return q2;k8=1;function e(t,n){var r=-1,a=t.length;for(n||(n=Array(a));++r<a;)n[r]=t[r];return n}return q2=e,q2}var V2,A8;function ofe(){if(A8)return V2;A8=1;var e=Do(),t=Object.create,n=(function(){function r(){}return function(a){if(!e(a))return{};if(t)return t(a);r.prototype=a;var s=new r;return r.prototype=void 0,s}})();return V2=n,V2}var W2,I8;function ife(){if(I8)return W2;I8=1;var e=ofe(),t=fA(),n=Kk();function r(a){return typeof a.constructor=="function"&&!n(a)?e(t(a)):{}}return W2=r,W2}var G2,R8;function lfe(){if(R8)return G2;R8=1;var e=Ov(),t=gu();function n(r){return t(r)&&e(r)}return G2=n,G2}var K2,T8;function ufe(){if(T8)return K2;T8=1;var e=Dd(),t=fA(),n=gu(),r="[object Object]",a=Function.prototype,s=Object.prototype,i=a.toString,u=s.hasOwnProperty,c=i.call(Object);function f(h){if(!n(h)||e(h)!=r)return!1;var m=t(h);if(m===null)return!0;var g=u.call(m,"constructor")&&m.constructor;return typeof g=="function"&&g instanceof g&&i.call(g)==c}return K2=f,K2}var Y2,O8;function Qz(){if(O8)return Y2;O8=1;function e(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return Y2=e,Y2}var Z2,N8;function cfe(){if(N8)return Z2;N8=1;var e=Zz(),t=dA();function n(r,a,s,i){var u=!s;s||(s={});for(var c=-1,f=a.length;++c<f;){var h=a[c],m=i?i(s[h],r[h],h,s,r):void 0;m===void 0&&(m=r[h]),u?t(s,h,m):e(s,h,m)}return s}return Z2=n,Z2}var X2,M8;function dfe(){if(M8)return X2;M8=1;var e=cfe(),t=hA();function n(r){return e(r,t(r))}return X2=n,X2}var Q2,P8;function ffe(){if(P8)return Q2;P8=1;var e=Xz(),t=nfe(),n=afe(),r=sfe(),a=ife(),s=qk(),i=Lo(),u=lfe(),c=Vk(),f=Fk(),h=Do(),m=ufe(),g=Gk(),y=Qz(),S=dfe();function w(x,_,k,A,R,N,O){var T=y(x,k),P=y(_,k),L=O.get(P);if(L){e(x,k,L);return}var q=N?N(T,P,k+"",x,_,O):void 0,j=q===void 0;if(j){var U=i(P),H=!U&&c(P),Z=!U&&!H&&g(P);q=P,U||H||Z?i(T)?q=T:u(T)?q=r(T):H?(j=!1,q=t(P,!0)):Z?(j=!1,q=n(P,!0)):q=[]:m(P)||s(P)?(q=T,s(T)?q=S(T):(!h(T)||f(T))&&(q=a(P))):j=!1}j&&(O.set(P,q),R(q,P,A,N,O),O.delete(P)),e(x,k,q)}return Q2=w,Q2}var J2,D8;function hfe(){if(D8)return J2;D8=1;var e=Hk(),t=Xz(),n=tfe(),r=ffe(),a=Do(),s=hA(),i=Qz();function u(c,f,h,m,g){c!==f&&n(f,function(y,S){if(g||(g=new e),a(y))r(c,f,S,h,u,m,g);else{var w=m?m(i(c,S),y,S+"",c,f,g):void 0;w===void 0&&(w=y),t(c,S,w)}},s)}return J2=u,J2}var eC,L8;function pfe(){if(L8)return eC;L8=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return eC=e,eC}var tC,U8;function mfe(){if(U8)return tC;U8=1;var e=pfe(),t=Math.max;function n(r,a,s){return a=t(a===void 0?r.length-1:a,0),function(){for(var i=arguments,u=-1,c=t(i.length-a,0),f=Array(c);++u<c;)f[u]=i[a+u];u=-1;for(var h=Array(a+1);++u<a;)h[u]=i[u];return h[a]=s(f),e(r,this,h)}}return tC=n,tC}var nC,j8;function gfe(){if(j8)return nC;j8=1;function e(t){return function(){return t}}return nC=e,nC}var rC,z8;function vfe(){if(z8)return rC;z8=1;var e=gfe(),t=Yz(),n=cA(),r=t?function(a,s){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:n;return rC=r,rC}var aC,F8;function yfe(){if(F8)return aC;F8=1;var e=800,t=16,n=Date.now;function r(a){var s=0,i=0;return function(){var u=n(),c=t-(u-i);if(i=u,c>0){if(++s>=e)return arguments[0]}else s=0;return a.apply(void 0,arguments)}}return aC=r,aC}var sC,$8;function bfe(){if($8)return sC;$8=1;var e=vfe(),t=yfe(),n=t(e);return sC=n,sC}var oC,B8;function Sfe(){if(B8)return oC;B8=1;var e=cA(),t=mfe(),n=bfe();function r(a,s){return n(t(a,s,e),a+"")}return oC=r,oC}var iC,H8;function wfe(){if(H8)return iC;H8=1;var e=Rp(),t=Ov(),n=Tv(),r=Do();function a(s,i,u){if(!r(u))return!1;var c=typeof i;return(c=="number"?t(u)&&n(i,u.length):c=="string"&&i in u)?e(u[i],s):!1}return iC=a,iC}var lC,q8;function xfe(){if(q8)return lC;q8=1;var e=Sfe(),t=wfe();function n(r){return e(function(a,s){var i=-1,u=s.length,c=u>1?s[u-1]:void 0,f=u>2?s[2]:void 0;for(c=r.length>3&&typeof c=="function"?(u--,c):void 0,f&&t(s[0],s[1],f)&&(c=u<3?void 0:c,u=1),a=Object(a);++i<u;){var h=s[i];h&&r(a,h,i,c)}return a})}return lC=n,lC}var uC,V8;function Cfe(){if(V8)return uC;V8=1;var e=hfe(),t=xfe(),n=t(function(r,a,s){e(r,a,s)});return uC=n,uC}var Efe=Cfe();const _fe=_d(Efe),$v=async(e,t,n,r)=>{const a=await Promise.all(r.map(i=>i(e,t,n))),s=_fe({},...a);return aA(s)?Promise.resolve():Promise.reject(s)},kfe=8,Afe=e=>Array.isArray(e),Ife=e=>{if(e)return Afe(e)?Object.entries(e).map(([t,n])=>Object.keys(n)[0]):Object.keys(e)},Wi={async getAmplifyConfig(){const e=uU.getConfig(),t=e.Auth?.Cognito,{loginWith:n,userAttributes:r}=e.Auth?.Cognito??{},a=n?Object.entries(n).filter(([f,h])=>f!=="oauth").filter(([f,h])=>!!h).map(f=>f[0]==="phone"?"phone_number":f[0]):void 0,s=Ife(r),i=n?.oauth?.providers?n.oauth.providers?.map(f=>f.toString().toLowerCase()):void 0,u=e.Auth?.Cognito?.passwordless,c={emailOtpEnabled:u?.emailOtpEnabled??u?.email_otp_enabled===!0,smsOtpEnabled:u?.smsOtpEnabled??u?.sms_otp_enabled===!0,webAuthnEnabled:!!(u?.webAuthn??u?.web_authn),preferredChallenge:u?.preferredChallenge??u?.preferred_challenge};return{...t,loginMechanisms:a,signUpAttributes:s,socialProviders:i,passwordlessCapabilities:c}},getCurrentUser:lv,handleSignIn:mk,handleSignUp:ZX,handleConfirmSignIn:JL,handleConfirmSignUp:rQ,handleForgotPasswordSubmit:JX,handleForgotPassword:QL,handleResendSignUpCode:tQ,async validateCustomSignUp(e,t){},async validateFormPassword(e,t,n){const{password:r}=e,{password:a}=t;if(!a||!n)return null;const s=[],i=n.minLength??kfe;return r.length<i&&s.push(`Password must have at least ${i} characters`),n.requireLowercase&&!/[a-z]/.test(r)&&s.push("Password must have lower case letters"),n.requireUppercase&&!/[A-Z]/.test(r)&&s.push("Password must have upper case letters"),n.requireNumbers&&!/[0-9]/.test(r)&&s.push("Password must have numbers"),n.requireSpecialCharacters&&!Lue(r)&&s.push("Password must have special characters"),s.length!==0?{password:s}:null},async validateConfirmPassword(e,t){const{password:n,confirm_password:r}=e,{confirm_password:a,password:s}=t;if(!n&&!r)return null;if((n||r)&&n!==r&&(a&&s||n?.length>=6&&r?.length>=6))return{confirm_password:"Your passwords must match"}},async validatePreferredUsername(e,t){},async validateRequiredFieldsForAuthMethod(e){const t=e.__authMethod;if(!t)return null;if(t==="EMAIL_OTP"&&!e.email)return{email:"Email is required for Email OTP sign up"};if(t==="SMS_OTP"&&!e.phone_number)return{phone_number:"Phone number is required for SMS OTP sign up"};if(t==="PASSWORD"){const n={};return e.password||(n.password="Password is required"),e.confirm_password||(n.confirm_password="Confirm Password is required"),Object.keys(n).length>0?n:null}return null}};function Rfe({services:e}){return Ud({id:"forgotPasswordActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldResetPassword",target:"confirmResetPassword"},{cond:"shouldConfirmResetPassword",target:"confirmResetPassword"},{target:"forgotPassword"}]},forgotPassword:{initial:"edit",entry:"sendUpdate",exit:["clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:"pending",entry:["sendUpdate","clearError","setUsernameForgotPassword"],invoke:{src:"handleResetPassword",onDone:{actions:["setCodeDeliveryDetails","setNextResetPasswordStep"],target:"#forgotPasswordActor.confirmResetPassword"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmResetPassword:{type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},RESEND:"resendCode",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},resendCode:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"handleResetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"handleConfirmResetPassword",onDone:[{cond:"hasCompletedResetPassword",actions:"setNextResetPasswordStep",target:"#forgotPasswordActor.resolved"},{actions:"setSignInStep",target:"#forgotPasswordActor.resolved"}],onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final",data:({step:t})=>({step:t})}}},{actions:{...Np,sendUpdate:Lv()},guards:Fv,services:{handleResetPassword({username:t}){return e.handleForgotPassword({username:t})},handleConfirmResetPassword({formValues:t,username:n}){const{confirmation_code:r,password:a}=t;return e.handleForgotPasswordSubmit({confirmationCode:r,newPassword:a,username:n})},validateFields(t){return $v(t.formValues,t.touched,t.passwordSettings,[Wi.validateFormPassword,Wi.validateConfirmPassword])}}})}const Jz=e=>({entry:["sendUpdate","clearError"],invoke:{src:"signInWithRedirect",onDone:{target:e},onError:{actions:"setRemoteError",target:e}}}),Tfe=e=>["CONTINUE_SIGN_IN_WITH_MFA_SELECTION","CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION"].includes(e)?"mfa_type":e==="CONTINUE_SIGN_IN_WITH_EMAIL_SETUP"?"email":"confirmation_code",A0={onDone:[{cond:"hasCompletedSignIn",actions:"setNextSignInStep",target:"#signInActor.fetchUserAttributes"},{cond:"shouldConfirmSignInWithNewPassword",actions:["setMissingAttributes","setNextSignInStep"],target:"#signInActor.forceChangePassword"},{cond:"shouldResetPasswordFromSignIn",actions:"setNextSignInStep",target:"#signInActor.resetPassword"},{cond:"shouldConfirmSignUpFromSignIn",actions:"setNextSignInStep",target:"#signInActor.resendSignUpCode"},{actions:["setChallengeName","setMissingAttributes","setNextSignInStep","setTotpSecretCode","setAllowedMfaTypes","setCodeDeliveryDetails"],target:"#signInActor.init"}],onError:{actions:"setRemoteError",target:"edit"}},bg=e=>({initial:"edit",exit:e,states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"},RESEND:{target:"resend"}}},submit:{tags:"pending",entry:["sendUpdate","clearError"],invoke:{src:"confirmSignIn",...A0}},resend:{tags:"pending",entry:["sendUpdate","clearError"],invoke:{src:"resendSignInCode",onDone:{actions:["setCodeDeliveryDetails","sendUpdate"],target:"edit"},onError:{actions:"setRemoteError",target:"edit"}}}}});function Ofe({services:e}){return Ud({id:"signInActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldConfirmSignIn",target:"confirmSignIn"},{cond:"shouldSetupTotp",target:"setupTotp"},{cond:"shouldSetupEmail",target:"setupEmail"},{cond:"shouldSelectMfaType",target:"selectMfaType"},{cond:({step:t})=>t==="CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",actions:"setActorDoneData",target:"forceChangePassword"},{target:"signIn"}]},federatedSignIn:{...Jz("signIn")},fetchUserAttributes:{invoke:{src:"fetchUserAttributes",onDone:[{cond:"hasPasskeyRegistrationPrompts",actions:"setFetchedUserAttributes",target:"checkPasskeys"},{actions:"setFetchedUserAttributes",target:"evaluatePasskeyPrompt"}],onError:{actions:"setConfirmAttributeCompleteStep",target:"#signInActor.resolved"}}},checkPasskeys:{invoke:{src:async()=>{try{const t=await nA();return t.credentials&&t.credentials.length>0}catch{return!1}},onDone:{actions:"setHasExistingPasskeys",target:"evaluatePasskeyPrompt"},onError:{actions:"clearHasExistingPasskeys",target:"evaluatePasskeyPrompt"}}},evaluatePasskeyPrompt:{always:[{cond:"shouldPromptPasskeyRegistration",target:"#signInActor.passkeyPrompt"},{cond:"shouldVerifyAttribute",actions:["setShouldVerifyUserAttributeStep","setUnverifiedUserAttributes"],target:"#signInActor.resolved"},{actions:"setConfirmAttributeCompleteStep",target:"#signInActor.resolved"}]},resendSignUpCode:{invoke:{src:"handleResendSignUpCode",onDone:{actions:"setCodeDeliveryDetails",target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"#signInActor.signIn"}}},resetPassword:{invoke:{src:"resetPassword",onDone:[{actions:"setCodeDeliveryDetails",target:"#signInActor.resolved"}],onError:{actions:["setRemoteError","sendUpdate"]}}},signIn:{initial:"edit",exit:"clearTouched",states:{edit:{entry:"sendUpdate",on:{CHANGE:{actions:"handleInput"},FEDERATED_SIGN_IN:{target:"#signInActor.federatedSignIn"},SHOW_AUTH_METHODS:{actions:"setUsernameSignIn",target:"selectMethod"},SUBMIT:[{cond:"shouldSelectAuthMethod",actions:"handleSubmit",target:"selectMethod"},{actions:"handleSubmit",target:"submit"}]}},selectMethod:{entry:["sendUpdate","setSelectAuthMethodStep","setUsernameSignIn"],on:{SELECT_METHOD:{actions:"setSelectedAuthMethod",target:"submit"},SUBMIT:{actions:["handleSubmit","setSelectedAuthMethodFromForm"],target:"submit"},SIGN_IN:{target:"edit"}}},submit:{tags:"pending",entry:["clearError","sendUpdate","setUsernameSignIn"],exit:"clearFormValues",invoke:{src:"handleSignIn",onDone:A0.onDone,onError:[{cond:"shouldReturnToSelectMethod",actions:"setRemoteError",target:"selectMethod"},A0.onError]}}}},confirmSignIn:{...bg(["clearChallengeName","clearFormValues","clearError","clearTouched"])},forceChangePassword:{entry:"sendUpdate",type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{SIGN_IN:{actions:"setSignInStep",target:"#signInActor.resolved"},CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submit:{initial:"edit",entry:"clearError",states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{actions:"clearValidationError",target:"pending"},onError:{actions:"setFieldErrors",target:"edit"}}},pending:{tags:"pending",entry:["sendUpdate","clearError"],invoke:{src:"handleForceChangePassword",...A0}}}}}},setupTotp:{...bg(["clearFormValues","clearError","clearTouched"])},setupEmail:{...bg(["clearFormValues","clearError","clearTouched"])},selectMfaType:{...bg(["clearFormValues","clearError","clearTouched"])},passkeyPrompt:{entry:"sendUpdate",on:{SUBMIT:{actions:"setConfirmAttributeCompleteStep",target:"resolved"},SKIP:{actions:"setConfirmAttributeCompleteStep",target:"resolved"}}},resolved:{type:"final",data:t=>({codeDeliveryDetails:t.codeDeliveryDetails,remoteError:t.remoteError,step:t.step,unverifiedUserAttributes:t.unverifiedUserAttributes,username:t.username})}}},{actions:{...Np,sendUpdate:Lv()},guards:Fv,services:{async fetchUserAttributes(){return sU()},resetPassword({username:t}){return QL({username:t})},handleResendSignUpCode({username:t}){return e.handleResendSignUpCode({username:t})},resendSignInCode({username:t,selectedAuthMethod:n,availableAuthMethods:r,preferredChallenge:a}){const s=n??a??r?.[0]??"PASSWORD";return e.handleSignIn({username:t,options:{authFlowType:"USER_AUTH",preferredChallenge:s}})},handleSignIn({formValues:t,username:n,selectedAuthMethod:r,availableAuthMethods:a,preferredChallenge:s}){const i=r??s??a?.[0]??"PASSWORD";if(i==="PASSWORD"){const{password:u}=t;return e.handleSignIn({username:n,password:u})}else return e.handleSignIn({username:n,options:{authFlowType:"USER_AUTH",preferredChallenge:i}})},confirmSignIn({formValues:t,step:n}){const r=Tfe(n),{[r]:a}=t;return e.handleConfirmSignIn({challengeResponse:a})},async handleForceChangePassword({formValues:t}){let{password:n,phone_number:r,country_code:a,confirm_password:s,username:i,...u}=t,c;return r&&(c=`${a}${r}`.replace(/[^A-Z0-9+]/gi,""),u={...u,phone_number:c}),JL({challengeResponse:n,options:{userAttributes:u}})},signInWithRedirect(t,{data:n}){return aU(n)},async validateFields(t){return $v(t.formValues,t.touched,t.passwordSettings,[Wi.validateFormPassword,Wi.validateConfirmPassword])}}})}const Nfe={onDone:[{actions:"setCodeDeliveryDetails",target:"#signUpActor.resolved"}],onError:{actions:["setRemoteError","sendUpdate"]}},Mfe={onDone:[{cond:"hasCompletedSignIn",actions:"setNextSignInStep",target:"#signUpActor.fetchUserAttributes"},{cond:"shouldConfirmSignInWithNewPassword",actions:"setNextSignInStep",target:"#signUpActor.resolved"},{cond:"shouldResetPasswordFromSignIn",actions:"setNextSignInStep",target:"#signUpActor.resetPassword"},{cond:"shouldConfirmSignUpFromSignIn",actions:"setNextSignInStep",target:"#signUpActor.resendSignUpCode"},{actions:["setNextSignInStep","setChallengeName","setMissingAttributes","setTotpSecretCode","setAllowedMfaTypes"],target:"#signUpActor.resolved"}],onError:{actions:"setRemoteError",target:"#signUpActor.resolved"}};function Pfe({services:e}){return Ud({id:"signUpActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldConfirmSignUp",target:"confirmSignUp"},{target:"signUp"}]},autoSignIn:{tags:"pending",invoke:{src:"autoSignIn",...Mfe}},fetchUserAttributes:{invoke:{src:"fetchUserAttributes",onDone:[{cond:"hasPasskeyRegistrationPrompts",actions:"setFetchedUserAttributes",target:"checkPasskeys"},{actions:"setFetchedUserAttributes",target:"evaluatePasskeyPrompt"}],onError:{actions:"setConfirmAttributeCompleteStep",target:"#signUpActor.resolved"}}},checkPasskeys:{invoke:{src:async()=>{try{const t=await nA();return t.credentials&&t.credentials.length>0}catch{return!1}},onDone:{actions:"setHasExistingPasskeys",target:"evaluatePasskeyPrompt"},onError:{actions:"clearHasExistingPasskeys",target:"evaluatePasskeyPrompt"}}},evaluatePasskeyPrompt:{always:[{cond:"shouldPromptPasskeyRegistrationAfterSignup",target:"#signUpActor.passkeyPrompt"},{cond:"shouldVerifyAttribute",actions:["setShouldVerifyUserAttributeStep","setUnverifiedUserAttributes"],target:"#signUpActor.resolved"},{actions:"setConfirmAttributeCompleteStep",target:"#signUpActor.resolved"}]},federatedSignIn:{...Jz("signUp")},resetPassword:{invoke:{src:"resetPassword",...Nfe}},resendSignUpCode:{tags:"pending",entry:"sendUpdate",exit:"sendUpdate",invoke:{src:"resendSignUpCode",onDone:{actions:["setCodeDeliveryDetails","sendUpdate"],target:"#signUpActor.confirmSignUp"},onError:[{cond:"isUserAlreadyConfirmed",target:"#signUpActor.resolved"},{actions:["setRemoteError","sendUpdate"],target:"#signUpActor.confirmSignUp"}]}},signUp:{type:"parallel",exit:"clearTouched",on:{FEDERATED_SIGN_IN:{target:"federatedSignIn"}},states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateSignUp",onDone:{actions:"clearValidationError",target:"valid"},onError:{actions:"setFieldErrors",target:"invalid"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{BLUR:{actions:"handleBlur",target:".pending"},CHANGE:{actions:"handleInput",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:["sendUpdate"],on:{SUBMIT:{actions:["setSelectedAuthMethodFromForm","handleSubmit"],target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateSignUp",onDone:{target:"handleSignUp",actions:"clearValidationError"},onError:{actions:"setFieldErrors",target:"idle"}}},handleSignUp:{tags:"pending",entry:["setUsernameSignUp","clearError"],exit:"sendUpdate",invoke:{src:"handleSignUp",onDone:[{cond:"hasCompletedSignUp",actions:"setNextSignUpStep",target:"#signUpActor.resolved"},{cond:"shouldAutoSignIn",actions:"setNextSignUpStep",target:"#signUpActor.autoSignIn"},{actions:["setCodeDeliveryDetails","setNextSignUpStep"],target:"#signUpActor.init"}],onError:{actions:["sendUpdate","setRemoteError"],target:"idle"}}}}}}},confirmSignUp:{initial:"edit",entry:"sendUpdate",states:{edit:{on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"},RESEND:"#signUpActor.resendSignUpCode"}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"confirmSignUp",onDone:[{cond:"shouldAutoSignIn",actions:["setNextSignUpStep","clearFormValues"],target:"#signUpActor.autoSignIn"},{cond:"shouldManualSignIn",actions:["clearFormValues","setSignInStep"],target:"#signUpActor.resolved"},{actions:"setNextSignUpStep",target:"#signUpActor.init"}],onError:{actions:["setRemoteError","sendUpdate"],target:"edit"}}}}},passkeyPrompt:{entry:"sendUpdate",on:{SKIP:{actions:"setConfirmAttributeCompleteStep",target:"resolved"},SUBMIT:{actions:"setConfirmAttributeCompleteStep",target:"resolved"}}},resolved:{type:"final",data:t=>({challengeName:t.challengeName,missingAttributes:t.missingAttributes,remoteError:t.remoteError,step:t.step,totpSecretCode:t.totpSecretCode,username:t.username,unverifiedUserAttributes:t.unverifiedUserAttributes,allowedMfaTypes:t.allowedMfaTypes})}}},{actions:{...Np,sendUpdate:Lv()},guards:Fv,services:{autoSignIn(){return pk()},async fetchUserAttributes(){return sU()},confirmSignUp({formValues:t,username:n}){const{confirmation_code:r}=t,a={username:n,confirmationCode:r};return e.handleConfirmSignUp(a)},resendSignUpCode({username:t}){return e.handleResendSignUpCode({username:t})},signInWithRedirect(t,{data:n}){return aU(n)},handleSignUp(t){const{formValues:n,loginMechanisms:r,username:a,selectedAuthMethod:s,preferredChallenge:i}=t,u=r[0],f=zce(a,n,u,s??i);return e.handleSignUp(f)},async validateSignUp(t){return $v(t.formValues,t.touched,t.passwordSettings,[e.validateFormPassword,e.validateConfirmPassword,e.validatePreferredUsername,e.validateRequiredFieldsForAuthMethod,e.validateCustomSignUp])}}})}const Dfe=()=>Ud({initial:"pending",id:"signOutActor",predictableActionArguments:!0,states:{pending:{tags:"pending",invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:()=>PQ()}});function Lfe(){return Ud({id:"verifyUserAttributesActor",initial:"selectUserAttributes",predictableActionArguments:!0,states:{selectUserAttributes:{initial:"edit",exit:["clearError","clearTouched","sendUpdate"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:{target:"#verifyUserAttributesActor.resolved"},CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"sendUserAttributeVerificationCode",onDone:{actions:["setSelectedUserAttribute","setCodeDeliveryDetails"],target:"#verifyUserAttributesActor.confirmVerifyUserAttribute"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmVerifyUserAttribute:{initial:"edit",exit:["clearError","clearFormValues","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#verifyUserAttributesActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"confirmVerifyUserAttribute",onDone:{actions:["setConfirmAttributeCompleteStep","clearSelectedUserAttribute"],target:"#verifyUserAttributesActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},resolved:{type:"final",data:({step:e})=>({step:e})}}},{actions:{...Np,sendUpdate:Lv()},services:{sendUserAttributeVerificationCode({formValues:{unverifiedAttr:e}}){return jQ({userAttributeKey:e})},async confirmVerifyUserAttribute({formValues:{confirmation_code:e},selectedUserAttribute:t}){return oQ({confirmationCode:e,userAttributeKey:t})},async validateFields(e){return $v(e.formValues,e.touched,e.passwordSettings,[Wi.validateFormPassword,Wi.validateConfirmPassword])}}})}const Sg=(e,t)=>{const n=$ce(e.passwordlessCapabilities,e.config?.passwordless?.hiddenAuthMethods),r=e.config?.passwordless?.preferredAuthMethod??e.passwordlessCapabilities?.preferredChallenge;return{...e.actorDoneData,step:e?.actorDoneData?.step??t,formValues:{},touched:{},validationError:{},formFields:e.config?.formFields,loginMechanisms:e.config?.loginMechanisms,passwordSettings:e.config?.passwordSettings,signUpAttributes:e.config?.signUpAttributes,socialProviders:e.config?.socialProviders,availableAuthMethods:n,preferredChallenge:r,passwordless:e.config?.passwordless}},{choose:Ufe,stop:jfe}=Pz,Zf=e=>jfe(e),zfe={on:{INIT:{actions:"configure",target:"getConfig"},SIGN_OUT:"#authenticator.signOut"}},Ffe={always:{actions:"configure",target:"getConfig"}};function $fe(e){const{useNextWaitConfig:t,...n}=e??{};return Ud({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:Wi,actorRef:void 0,hasSetup:!1},predictableActionArguments:!0,states:{idle:{invoke:{src:"handleGetCurrentUser",onDone:{actions:"setUser",target:"setup"},onError:{target:"setup"}}},setup:{initial:"initConfig",states:{initConfig:t?Ffe:zfe,getConfig:{invoke:{src:"getAmplifyConfig",onDone:[{actions:["applyAmplifyConfig","setHasSetup"],cond:"hasUser",target:"#authenticator.authenticated"},{actions:["applyAmplifyConfig","setHasSetup"],target:"goToInitialState"}]}},goToInitialState:{always:[{cond:"isInitialStateSignUp",target:"#authenticator.signUpActor"},{cond:"isInitialStateResetPassword",target:"#authenticator.forgotPasswordActor"},{target:"#authenticator.signInActor"}]}}},getCurrentUser:{invoke:{src:"handleGetCurrentUser",onDone:{actions:"setUser",target:"#authenticator.authenticated"},onError:{target:"#authenticator.setup"}}},signInActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignInActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:Zf("signInActor")}},on:{FORGOT_PASSWORD:"forgotPasswordActor",SELECT_METHOD:{actions:"forwardToActor"},SHOW_AUTH_METHODS:{actions:"forwardToActor"},SIGN_IN:"signInActor",SIGN_UP:"signUpActor","done.invoke.signInActor":[{cond:"hasCompletedAttributeConfirmation",target:"#authenticator.getCurrentUser"},{cond:"isShouldConfirmUserAttributeStep",actions:"setActorDoneData",target:"#authenticator.verifyUserAttributesActor"},{cond:"isResetPasswordStep",actions:"setActorDoneData",target:"#authenticator.forgotPasswordActor"},{cond:"isConfirmSignUpStep",actions:"setActorDoneData",target:"#authenticator.signUpActor"}]}},signUpActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignUpActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:Zf("signUpActor")}},on:{SIGN_IN:"signInActor","done.invoke.signUpActor":[{cond:"hasCompletedAttributeConfirmation",target:"#authenticator.getCurrentUser"},{cond:"isShouldConfirmUserAttributeStep",actions:"setActorDoneData",target:"#authenticator.verifyUserAttributesActor"},{cond:"isConfirmUserAttributeStep",target:"#authenticator.verifyUserAttributesActor"},{actions:"setActorDoneData",target:"#authenticator.signInActor"}]}},forgotPasswordActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnForgotPasswordActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:Zf("forgotPasswordActor")}},on:{SIGN_IN:"signInActor","done.invoke.forgotPasswordActor":[{target:"#authenticator.signInActor"}]}},verifyUserAttributesActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnVerifyUserAttributesActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:Zf("verifyUserAttributesActor")}},on:{"done.invoke.verifyUserAttributesActor":[{actions:"setActorDoneData",target:"#authenticator.getCurrentUser"}]}},authenticated:{initial:"idle",states:{idle:{on:{TOKEN_REFRESH:"refreshUser"}},refreshUser:{invoke:{src:"#authenticator.getCurrentUser",onDone:{actions:"setUser",target:"idle"},onError:{target:"#authenticator.signOut"}}}},on:{SIGN_OUT:"signOut"}},signOut:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignOutActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:Zf("signOutActor")}},on:{"done.invoke.signOutActor":{actions:"clearUser",target:"setup.getConfig"}}}},on:{SIGN_IN_WITH_REDIRECT:{target:"#authenticator.getCurrentUser"},CHANGE:{actions:"forwardToActor"},BLUR:{actions:"forwardToActor"},SUBMIT:{actions:"forwardToActor"},FEDERATED_SIGN_IN:{actions:"forwardToActor"},RESEND:{actions:"forwardToActor"},SIGN_IN:{actions:"forwardToActor"},SKIP:{actions:"forwardToActor"}}},{actions:{...Np,forwardToActor:Ufe([{cond:"hasActor",actions:Fle(({actorRef:a})=>a)}]),setActorDoneData:uo({actorDoneData:(a,s)=>({challengeName:s.data.challengeName,codeDeliveryDetails:s.data.codeDeliveryDetails,missingAttributes:s.data.missingAttributes,remoteError:s.data.remoteError,username:s.data.username,step:s.data.step,totpSecretCode:s.data.totpSecretCode,unverifiedUserAttributes:s.data.unverifiedUserAttributes,allowedMfaTypes:s.data.allowedMfaTypes})}),applyAmplifyConfig:uo({passwordlessCapabilities:(a,{data:s})=>s.passwordlessCapabilities,config(a,{data:s}){const{loginMechanisms:i=s.loginMechanisms??[],signUpAttributes:u=s.signUpAttributes??[],socialProviders:c=s.socialProviders??[],initialState:f,formFields:h,passwordSettings:m=s.passwordFormat??{},passwordless:g}=a.config;return i.length===0&&i.push("username"),{formFields:Bfe(h)??{},initialState:f,loginMechanisms:i,passwordSettings:m,passwordless:g,signUpAttributes:u,socialProviders:c}}}),spawnSignInActor:uo({actorRef:(a,s)=>{const{services:i}=a,u=Ofe({services:i}).withContext(Sg(a,"SIGN_IN"));return Yf(u,{name:"signInActor"})}}),spawnSignUpActor:uo({actorRef:(a,s)=>{const{services:i}=a,u=Pfe({services:i}).withContext(Sg(a,"SIGN_UP"));return Yf(u,{name:"signUpActor"})}}),spawnForgotPasswordActor:uo({actorRef:(a,s)=>{const{services:i}=a,u=Rfe({services:i}).withContext(Sg(a,"FORGOT_PASSWORD"));return Yf(u,{name:"forgotPasswordActor"})}}),spawnVerifyUserAttributesActor:uo({actorRef:a=>{const s=Lfe().withContext(Sg(a));return Yf(s,{name:"verifyUserAttributesActor"})}}),spawnSignOutActor:uo({actorRef:a=>{const s=Dfe().withContext({user:a?.user});return Yf(s,{name:"signOutActor"})}}),configure:uo((a,s)=>{const{services:i,...u}=$z(n)?s.data??{}:n;return{services:{...Wi,...i},config:u}}),setHasSetup:uo({hasSetup:!0})},guards:{...Fv,hasActor:({actorRef:a})=>!!a,isInitialStateSignUp:({config:a})=>a.initialState==="signUp",isInitialStateResetPassword:({config:a})=>a.initialState==="forgotPassword",shouldSetup:({hasSetup:a})=>!a,hasUser:({user:a})=>!!a},services:{getAmplifyConfig:({services:a})=>a.getAmplifyConfig(),handleGetCurrentUser:({services:a})=>a.getCurrentUser()}})}function Bfe(e){return e&&Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(n=>{let r=e[t][n];r.required=r.isRequired})}),e}const Hfe={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},qfe={red:{10:{value:"hsl(0, 75%, 95%)"},20:{value:"hsl(0, 75%, 85%)"},40:{value:"hsl(0, 75%, 75%)"},60:{value:"hsl(0, 50%, 50%)"},80:{value:"hsl(0, 95%, 30%)"},90:{value:"hsl(0, 100%, 20%)"},100:{value:"hsl(0, 100%, 15%)"}},orange:{10:{value:"hsl(30, 75%, 95%)"},20:{value:"hsl(30, 75%, 85%)"},40:{value:"hsl(30, 75%, 75%)"},60:{value:"hsl(30, 50%, 50%)"},80:{value:"hsl(30, 95%, 30%)"},90:{value:"hsl(30, 100%, 20%)"},100:{value:"hsl(30, 100%, 15%)"}},yellow:{10:{value:"hsl(60, 75%, 95%)"},20:{value:"hsl(60, 75%, 85%)"},40:{value:"hsl(60, 75%, 75%)"},60:{value:"hsl(60, 50%, 50%)"},80:{value:"hsl(60, 95%, 30%)"},90:{value:"hsl(60, 100%, 20%)"},100:{value:"hsl(60, 100%, 15%)"}},green:{10:{value:"hsl(130, 60%, 95%)"},20:{value:"hsl(130, 60%, 90%)"},40:{value:"hsl(130, 44%, 63%)"},60:{value:"hsl(130, 43%, 46%)"},80:{value:"hsl(130, 33%, 37%)"},90:{value:"hsl(130, 27%, 29%)"},100:{value:"hsl(130, 22%, 23%)"}},teal:{10:{value:"hsl(190, 75%, 95%)"},20:{value:"hsl(190, 75%, 85%)"},40:{value:"hsl(190, 70%, 70%)"},60:{value:"hsl(190, 50%, 50%)"},80:{value:"hsl(190, 95%, 30%)"},90:{value:"hsl(190, 100%, 20%)"},100:{value:"hsl(190, 100%, 15%)"}},blue:{10:{value:"hsl(220, 95%, 95%)"},20:{value:"hsl(220, 85%, 85%)"},40:{value:"hsl(220, 70%, 70%)"},60:{value:"hsl(220, 50%, 50%)"},80:{value:"hsl(220, 95%, 30%)"},90:{value:"hsl(220, 100%, 20%)"},100:{value:"hsl(220, 100%, 15%)"}},purple:{10:{value:"hsl(300, 95%, 95%)"},20:{value:"hsl(300, 85%, 85%)"},40:{value:"hsl(300, 70%, 70%)"},60:{value:"hsl(300, 50%, 50%)"},80:{value:"hsl(300, 95%, 30%)"},90:{value:"hsl(300, 100%, 20%)"},100:{value:"hsl(300, 100%, 15%)"}},pink:{10:{value:"hsl(340, 95%, 95%)"},20:{value:"hsl(340, 90%, 85%)"},40:{value:"hsl(340, 70%, 70%)"},60:{value:"hsl(340, 50%, 50%)"},80:{value:"hsl(340, 95%, 30%)"},90:{value:"hsl(340, 100%, 20%)"},100:{value:"hsl(340, 100%, 15%)"}},neutral:{10:{value:"hsl(210, 5%, 98%)"},20:{value:"hsl(210, 5%, 94%)"},40:{value:"hsl(210, 5%, 87%)"},60:{value:"hsl(210, 10%, 58%)"},80:{value:"hsl(210, 10%, 40%)"},90:{value:"hsl(210, 25%, 25%)"},100:{value:"hsl(210, 50%, 10%)"}},primary:{10:{value:"{colors.teal.10.value}"},20:{value:"{colors.teal.20.value}"},40:{value:"{colors.teal.40.value}"},60:{value:"{colors.teal.60.value}"},80:{value:"{colors.teal.80.value}"},90:{value:"{colors.teal.90.value}"},100:{value:"{colors.teal.100.value}"}},secondary:{10:{value:"{colors.purple.10.value}"},20:{value:"{colors.purple.20.value}"},40:{value:"{colors.purple.40.value}"},60:{value:"{colors.purple.60.value}"},80:{value:"{colors.purple.80.value}"},90:{value:"{colors.purple.90.value}"},100:{value:"{colors.purple.100.value}"}},font:{primary:{value:"{colors.neutral.100.value}"},secondary:{value:"{colors.neutral.90.value}"},tertiary:{value:"{colors.neutral.80.value}"},disabled:{value:"{colors.neutral.60.value}"},inverse:{value:"{colors.white.value}"},interactive:{value:"{colors.primary.80.value}"},hover:{value:"{colors.primary.90.value}"},focus:{value:"{colors.primary.100.value}"},active:{value:"{colors.primary.100.value}"},info:{value:"{colors.blue.90.value}"},warning:{value:"{colors.orange.90.value}"},error:{value:"{colors.red.90.value}"},success:{value:"{colors.green.90.value}"}},background:{primary:{value:"{colors.white.value}"},secondary:{value:"{colors.neutral.10.value}"},tertiary:{value:"{colors.neutral.20.value}"},quaternary:{value:"{colors.neutral.60.value}"},disabled:{value:"{colors.background.tertiary.value}"},info:{value:"{colors.blue.10.value}"},warning:{value:"{colors.orange.10.value}"},error:{value:"{colors.red.10.value}"},success:{value:"{colors.green.10.value}"}},border:{primary:{value:"{colors.neutral.60.value}"},secondary:{value:"{colors.neutral.40.value}"},tertiary:{value:"{colors.neutral.20.value}"},disabled:{value:"{colors.border.tertiary.value}"},pressed:{value:"{colors.primary.100.value}"},focus:{value:"{colors.primary.100.value}"},error:{value:"{colors.red.80.value}"},info:{value:"{colors.blue.80.value}"},success:{value:"{colors.green.80.value}"},warning:{value:"{colors.orange.80.value}"}},shadow:{primary:{value:"hsla(210, 50%, 10%, 0.25)"},secondary:{value:"hsla(210, 50%, 10%, 0.15)"},tertiary:{value:"hsla(210, 50%, 10%, 0.05)"}},overlay:{5:{value:"hsla(0, 0%, 0%, 0.05)"},10:{value:"hsla(0, 0%, 0%, 0.1)"},20:{value:"hsla(0, 0%, 0%, 0.2)"},30:{value:"hsla(0, 0%, 0%, 0.3)"},40:{value:"hsla(0, 0%, 0%, 0.4)"},50:{value:"hsla(0, 0%, 0%, 0.5)"},60:{value:"hsla(0, 0%, 0%, 0.6)"},70:{value:"hsla(0, 0%, 0%, 0.7)"},80:{value:"hsla(0, 0%, 0%, 0.8)"},90:{value:"hsla(0, 0%, 0%, 0.9)"}},black:{value:"hsl(0, 0%, 0%)"},white:{value:"hsl(0, 0%, 100%)"},transparent:{value:"transparent"}},Vfe={alignItems:{value:"center"},justifyContent:{value:"space-between"},color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.medium.value}"},icon:{size:{value:"{fontSizes.xl.value}"}},heading:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}}},Wfe={message:{backgroundColor:{value:"{colors.background.secondary.value}"},borderRadius:{value:"{radii.large.value}"},gap:{value:"{space.small.value}"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.small.value}"},user:{backgroundColor:{value:"{colors.background.secondary.value}"}},assistant:{backgroundColor:{value:"{colors.primary.10.value}"}},sender:{gap:{value:"{space.small.value}"},username:{color:{value:"{colors.font.primary.value}"},fontSize:{value:"inherit"},fontWeight:{value:"{fontWeights.bold.value}"}},timestamp:{color:{value:"{colors.font.tertiary.value}"},fontSize:{value:"inherit"},fontWeight:{value:"inherit"}}},body:{gap:{value:"{space.xs.value}"}},actions:{gap:{value:"{space.xs.value}"}}},form:{gap:{value:"{space.small.value}"},padding:{value:"{space.small.value}"}},attachment:{borderColor:{value:"{colors.border.secondary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.small.value}"},fontSize:{value:"{fontSizes.small.value}"},paddingBlock:{value:"{space.xxxs.value}"},paddingInline:{value:"{space.xs.value}"},gap:{value:"{space.xs.value}"},list:{padding:{value:"{space.xs.value}"},paddingBlockStart:{value:"0"},gap:{value:"{space.xxs.value}"}},name:{color:{value:"{colors.font.primary.value}"},fontSize:{value:"{fontSizes.small.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},size:{color:{value:"{colors.font.tertiary.value}"},fontSize:{value:"{fontSizes.small.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},remove:{padding:{value:"{space.xxs.value}"}},image:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"}}}},Gfe={menu:{width:{value:"100%"},marginBlockStart:{value:"{space.xxxs}"},backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderWidth:{value:"{borderWidths.small}"},borderStyle:{value:"solid"},borderRadius:{value:"{radii.small}"},options:{display:{value:"flex"},flexDirection:{value:"column"},maxHeight:{value:"300px"}},option:{backgroundColor:{value:"{colors.background.primary}"},color:{value:"currentcolor"},cursor:{value:"pointer"},transitionDuration:{value:"{time.short}"},transitionProperty:{value:"background-color, color"},transitionTimingFunction:{value:"ease"},_active:{backgroundColor:{value:"{colors.primary.80}"},color:{value:"{colors.white}"}}},_empty:{display:{value:"flex"}},_loading:{alignItems:{value:"center"},display:{value:"flex"},gap:{value:"{space.xxxs}"}},spaceShared:{paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"}}}},Kfe={maxWidth:{value:"60rem"},modal:{width:{value:"{space.relative.full}"},height:{value:"{space.relative.full}"},backgroundColor:{value:"{colors.overlay.50.value}"},top:{value:"{space.zero}"},left:{value:"{space.zero}"}},container:{widthMax:{value:"30rem"}},router:{borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},boxShadow:{value:"{shadows.medium.value}"}},footer:{paddingBottom:{value:"{space.medium.value}"}},form:{padding:{value:"{space.xl.value}"}},state:{inactive:{backgroundColor:{value:"{colors.background.secondary.value}"}}},orContainer:{color:{value:"{colors.neutral.80.value}"},orLine:{backgroundColor:{value:"{colors.background.primary.value}"}}}},Yfe={color:{value:"{colors.font.tertiary.value}"},lineHeight:{value:1},fontWeight:{value:"{fontWeights.semibold.value}"},fontSize:{value:"{fontSizes.small.value}"},textAlign:{value:"center"},width:{value:"{fontSizes.xxl.value}"},height:{value:"{fontSizes.xxl.value}"},backgroundColor:{value:"{colors.background.tertiary}"},borderRadius:{value:"100%"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.medium.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"},borderColor:{value:"{colors.border.info.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"},borderColor:{value:"{colors.border.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"},borderColor:{value:"{colors.border.success.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"},borderColor:{value:"{colors.border.error.value}"}},small:{fontSize:{value:"{fontSizes.xs.value}"},width:{value:"{fontSizes.xl.value}"},height:{value:"{fontSizes.xl.value}"}},large:{fontSize:{value:"{fontSizes.medium.value}"},width:{value:"{fontSizes.xxxl.value}"},height:{value:"{fontSizes.xxxl.value}"}}},Zfe={color:{value:"{colors.font.primary.value}"},lineHeight:{value:1},fontWeight:{value:"{fontWeights.semibold.value}"},fontSize:{value:"{fontSizes.small.value}"},textAlign:{value:"center"},paddingVertical:{value:"{space.xs.value}"},paddingHorizontal:{value:"{space.small.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},borderRadius:{value:"{radii.xl.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},small:{fontSize:{value:"{fontSizes.xs.value}"},paddingVertical:{value:"{space.xxs.value}"},paddingHorizontal:{value:"{space.xs.value}"}},large:{fontSize:{value:"{fontSizes.medium.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"}}},Xfe={flexDirection:{value:"row"},flexWrap:{value:"wrap"},gap:{value:"0"},color:{value:"{colors.font.tertiary}"},item:{flexDirection:{value:"row"},color:{value:"inherit"},fontSize:{value:"inherit"},alignItems:{value:"center"},lineHeight:{value:"1"}},separator:{color:{value:"inherit"},fontSize:{value:"inherit"},paddingInline:{value:"{space.xxs}"}},link:{color:{value:"{components.link.color}"},fontSize:{value:"inherit"},fontWeight:{value:"normal"},textDecoration:{value:"none"},paddingInline:{value:"{space.xs}"},paddingBlock:{value:"{space.xxs}"},current:{color:{value:"inherit"},fontSize:{value:"inherit"},fontWeight:{value:"normal"},textDecoration:{value:"none"}}}},Qfe={fontWeight:{value:"{fontWeights.bold.value}"},transitionDuration:{value:"{components.fieldcontrol.transitionDuration.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},lineHeight:{value:"{components.fieldcontrol.lineHeight.value}"},paddingBlockStart:{value:"{components.fieldcontrol.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.paddingInlineEnd.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},borderWidth:{value:"{components.fieldcontrol.borderWidth.value}"},borderStyle:{value:"{components.fieldcontrol.borderStyle.value}"},borderRadius:{value:"{components.fieldcontrol.borderRadius.value}"},color:{value:"{colors.font.primary.value}"},_hover:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.primary.10.value}"},borderColor:{value:"{colors.primary.60.value}"}},_focus:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.primary.10.value}"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{color:{value:"{colors.font.active.value}"},backgroundColor:{value:"{colors.primary.20.value}"},borderColor:{value:"{colors.primary.100.value}"}},_loading:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},outlined:{info:{borderColor:{value:"{colors.blue.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.blue.100}"},_hover:{borderColor:{value:"{colors.blue.60.value}"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"}},_focus:{borderColor:{value:"{colors.blue.100.value}"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"},boxShadow:{value:"{components.fieldcontrol.info._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.blue.100.value}"},backgroundColor:{value:"{colors.blue.20.value}"},color:{value:"{colors.blue.100.value}"}}},warning:{borderColor:{value:"{colors.orange.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.orange.100}"},_hover:{borderColor:{value:"{colors.orange.60.value}"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"}},_focus:{borderColor:{value:"{colors.orange.100.value}"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"},boxShadow:{value:"{components.fieldcontrol.warning._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.orange.100.value}"},backgroundColor:{value:"{colors.orange.20.value}"},color:{value:"{colors.orange.100.value}"}}},success:{borderColor:{value:"{colors.green.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.green.100}"},_hover:{borderColor:{value:"{colors.green.60.value}"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"}},_focus:{borderColor:{value:"{colors.green.100.value}"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"},boxShadow:{value:"{components.fieldcontrol.success._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.green.100.value}"},backgroundColor:{value:"{colors.green.20.value}"},color:{value:"{colors.green.100.value}"}}},error:{borderColor:{value:"{colors.red.80.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.red.100}"},_hover:{borderColor:{value:"{colors.red.80.value}"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"}},_focus:{borderColor:{value:"{colors.red.100.value}"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.red.100.value}"},backgroundColor:{value:"{colors.red.20.value}"},color:{value:"{colors.red.100.value}"}}},overlay:{borderColor:{value:"{colors.overlay.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.primary.value}"},_hover:{borderColor:{value:"{colors.overlay.60.value}"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.neutral.90.value}"}},_focus:{borderColor:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.neutral.90.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.neutral.100.value}"}}}},primary:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.primary.80.value}"},color:{value:"{colors.font.inverse.value}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.100.value}"},color:{value:"{colors.font.inverse.value}"}},info:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.info._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.100.value}"},color:{value:"{colors.font.inverse.value}"}}},warning:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.100.value}"},color:{value:"{colors.font.inverse.value}"}}},error:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.100.value}"},color:{value:"{colors.font.inverse.value}"}}},success:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.success._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.100.value}"},color:{value:"{colors.font.inverse.value}"}}},overlay:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.70}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"}}}},menu:{borderWidth:{value:"{space.zero.value}"},backgroundColor:{value:"transparent"},justifyContent:{value:"start"},_hover:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.primary.80.value}"}},_focus:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.primary.80.value}"}},_active:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.primary.90.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"}}},link:{backgroundColor:{value:"transparent"},borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.interactive.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.10.value}"},color:{value:"{colors.font.hover.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.10.value}"},color:{value:"{colors.font.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.20.value}"},color:{value:"{colors.font.active.value}"}},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},info:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.blue.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"},boxShadow:{value:"{components.fieldcontrol.info._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.20.value}"},color:{value:"{colors.blue.100.value}"}}},warning:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.orange.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"},boxShadow:{value:"{components.fieldcontrol.warning._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.20.value}"},color:{value:"{colors.orange.100.value}"}}},success:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.green.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"},boxShadow:{value:"{components.fieldcontrol.success._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.20.value}"},color:{value:"{colors.green.100.value}"}}},error:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.red.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.20.value}"},color:{value:"{colors.red.100.value}"}}},overlay:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.neutral.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.overlay.80.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.overlay.90.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.overlay.90.value}"}}}},warning:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.red.60}"},borderWidth:{value:"{borderWidths.small}"},color:{value:"{colors.red.60}"},_hover:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.font.error}"}},_focus:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.red.80}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"{colors.red.100}"},backgroundColor:{value:"{colors.red.20}"},color:{value:"{colors.red.100}"}},_disabled:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}}},destructive:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.red.60}"},color:{value:"{colors.font.inverse}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.100}"},color:{value:"{colors.font.inverse}"}}},small:{fontSize:{value:"{components.fieldcontrol.small.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.small.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.small.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.small.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.small.paddingInlineEnd.value}"}},large:{fontSize:{value:"{components.fieldcontrol.large.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.large.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.large.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.large.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.large.paddingInlineEnd.value}"}},loaderWrapper:{alignItems:{value:"center"},gap:{value:"{space.xs.value}"}}},Jfe={backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"none"},padding:{value:"{space.medium.value}"},outlined:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},boxShadow:{value:"{components.card.boxShadow.value}"}},elevated:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"{shadows.medium.value}"}}},ehe={cursor:{value:"pointer"},alignItems:{value:"center"},_disabled:{cursor:{value:"not-allowed"}},button:{position:{value:"relative"},alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.font.inverse.value}"},before:{width:{value:"100%"},height:{value:"100%"},borderWidth:{value:"{borderWidths.medium.value}"},borderRadius:{value:"20%"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"}},_focus:{outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{borderColor:{value:"{colors.border.error.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}}},icon:{backgroundColor:{value:"{colors.primary.80.value}"},borderRadius:{value:"20%"},opacity:{value:"{opacities.0.value}"},transform:{value:"scale(0)"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.short.value}"},transitionTimingFunction:{value:"ease-in-out"},_checked:{opacity:{value:"{opacities.100.value}"},transform:{value:"scale(1)"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}},_indeterminate:{opacity:{value:"{opacities.100.value}"},transform:{value:"scale(1)"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}}},label:{color:{value:"{components.text.color.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"}}}},the={alignItems:{value:"flex-start"},alignContent:{value:"center"},flexDirection:{value:"column"},justifyContent:{value:"center"}},nhe={pagination:{current:{color:{value:"{components.pagination.current.color}"},backgroundColor:{value:"{components.pagination.current.backgroundColor}"}},button:{color:{value:"{components.pagination.button.color}"},_hover:{backgroundColor:{value:"{components.pagination.button.hover.backgroundColor}"},color:{value:"{components.pagination.button.hover.color}"}},_disabled:{color:{value:"{components.pagination.button.disabled.color}"}}}},search:{input:{color:{value:"{components.searchfield.color}"}},button:{color:{value:"{components.searchfield.button.color}"},_active:{backgroundColor:{value:"{components.searchfield.button._active.backgroundColor}"},borderColor:{value:"{components.searchfield.button._active.borderColor}"},color:{value:"{components.searchfield.button._active.color}"}},_disabled:{backgroundColor:{value:"{components.searchfield.button._disabled.backgroundColor}"},borderColor:{value:"{components.searchfield.button._disabled.borderColor}"},color:{value:"{components.searchfield.button._disabled.color}"}},_focus:{backgroundColor:{value:"{components.searchfield.button._focus.backgroundColor}"},borderColor:{value:"{components.searchfield.button._focus.borderColor}"},color:{value:"{components.searchfield.button._focus.color}"}},_hover:{backgroundColor:{value:"{components.searchfield.button._hover.backgroundColor}"},borderColor:{value:"{components.searchfield.button._hover.borderColor}"},color:{value:"{components.searchfield.button._hover.color}"}}}}},rhe={fontSize:{value:"{fontSizes.xs}"},gap:{value:"{space.relative.medium}"},svg:{path:{fill:{value:"{colors.font.primary}"}}},toolTip:{bottom:{value:"{space.large}"},color:{value:"{colors.teal.100}"},fontSize:{value:"{fontSizes.xxs}"}}},ahe={height:{value:"{space.relative.full.value}"}},she={borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.medium.value}"},label:{color:{value:"{colors.font.tertiary.value}"},paddingInline:{value:"{space.medium.value}"},fontSize:{value:"{fontSizes.small.value}"},backgroundColor:{value:"{colors.background.primary.value}"}},small:{borderWidth:{value:"{borderWidths.small.value}"}},large:{borderWidth:{value:"{borderWidths.large.value}"}},opacity:{value:"{opacities.60.value}"}},ohe={backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},color:{value:"{colors.font.primary}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.primary.10}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.primary}"}},_disabled:{backgroundColor:{value:"{colors.background.disabled}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.disabled}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.disabled}"}},accepted:{backgroundColor:{value:"{colors.background.success}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.success}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.success}"}},rejected:{backgroundColor:{value:"{colors.background.error}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.error}"}}},ihe={backgroundColor:{value:"{colors.background.primary.value}"},item:{borderColor:{value:"{colors.border.secondary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderRadius:{value:"{radii.small.value}"},trigger:{alignItems:{value:"center"},backgroundColor:{value:"{colors.background.primary.value}"},color:{value:"inherit"},gap:{value:"{space.small.value}"},justifyContent:{value:"space-between"},paddingBlock:{value:"{space.xs.value}"},paddingInline:{value:"{space.small.value}"},_hover:{color:{value:"inherit"},backgroundColor:{value:"{colors.overlay.5.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0",offsetY:"0",blurRadius:"0",spreadRadius:"2px",color:"{colors.border.focus.value}"}}}},content:{color:{value:"inherit"},paddingInline:{value:"{space.small.value}"},paddingBlockEnd:{value:"{space.small.value}"},paddingBlockStart:{value:"{space.xxxs.value}"}},icon:{color:{value:"{colors.font.tertiary.value}"},transitionDuration:{value:"{time.medium.value}"},transitionTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}}}},lhe={gap:{value:"{space.xs.value}"},fontSize:{value:"{fontSizes.medium.value}"},flexDirection:{value:"column"},small:{gap:{value:"{space.xxxs.value}"},fontSize:{value:"{fontSizes.small.value}"}},large:{gap:{value:"{space.small.value}"},fontSize:{value:"{fontSizes.large.value}"}},label:{color:{value:"{colors.font.secondary.value}"}}},uhe={borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.small.value}"},color:{value:"{colors.font.primary.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"},fontSize:{value:"{components.field.fontSize.value}"},lineHeight:{value:"{lineHeights.medium.value}"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},small:{fontSize:{value:"{components.field.small.fontSize.value}"},paddingBlockStart:{value:"{space.xxs.value}"},paddingBlockEnd:{value:"{space.xxs.value}"},paddingInlineStart:{value:"{space.small.value}"},paddingInlineEnd:{value:"{space.small.value}"}},large:{fontSize:{value:"{components.field.large.fontSize.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}},quiet:{borderStyle:{value:"none"},borderInlineStart:{value:"none"},borderInlineEnd:{value:"none"},borderBlockStart:{value:"none"},borderRadius:{value:"0"},_focus:{borderBlockEndColor:{value:"transparent"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_error:{borderBlockEndColor:{value:"{colors.border.error.value}"},_focus:{borderBlockEndColor:{value:"transparent"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.focus.value}"}}},_disabled:{color:{value:"{colors.font.disabled.value}"},cursor:{value:"not-allowed"},borderColor:{value:"{colors.transparent.value}"},backgroundColor:{value:"{colors.background.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},color:{value:"{colors.font.error.value}"},_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.error.value}"}}}},info:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.blue.100.value}"}}}},warning:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.orange.100.value}"}}}},success:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.green.100.value}"}}}},overlay:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.overlay.90.value}"}}}}},che={gap:{value:"{space.zero.value}"},vertical:{alignItems:{value:"center"}},outer:{alignItems:{value:"center"}}},dhe={backgroundColor:{value:"transparent"},borderRadius:{value:"{radii.xs.value}"},flexDirection:{value:"column"},gap:{value:"{components.field.gap.value}"},legend:{color:{value:"{colors.font.primary.value}"},fontSize:{value:"{components.field.fontSize.value}"},fontWeight:{value:"{fontWeights.bold.value}"},lineHeight:{value:"{lineHeights.medium.value}"},small:{fontSize:"{components.field.small.fontSize.value}"},large:{fontSize:"{components.field.large.fontSize.value}"}},outlined:{padding:"{space.medium.value}",borderColor:"{colors.neutral.40.value}",borderWidth:"{borderWidths.small.value}",borderStyle:"solid",small:{padding:"{space.small.value}"},large:{padding:"{space.large.value}"}},small:{gap:"{components.field.small.gap.value}"},large:{gap:"{components.field.large.gap.value}"}},fhe={error:{color:{value:"{colors.font.error.value}"},fontSize:{value:"{fontSizes.small.value}"}},description:{color:{value:"{colors.font.secondary.value}"},fontStyle:{value:"italic"},fontSize:{value:"{fontSizes.small.value}"}}},hhe={dropzone:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.primary.10}"},borderRadius:{value:"{components.fileuploader.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.fileuploader.dropzone.borderStyle}"},borderWidth:{value:"{borderWidths.medium}"}},icon:{color:{value:"{colors.border.primary}"},fontSize:{value:"{fontSizes.xxl}"}},text:{color:{value:"{colors.font.tertiary}"},fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"}}},file:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"},gap:{value:"{space.small}"},alignItems:{value:"baseline"},name:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},size:{fontSize:{value:"{fontSizes.small}"},fontWeight:{value:"{fontWeights.normal}"},color:{value:"{colors.font.tertiary}"}},image:{width:{value:"{space.xxl}"},height:{value:"{space.xxl}"},backgroundColor:{value:"{colors.background.secondary}"},color:{value:"{colors.font.tertiary}"},borderRadius:{value:"{radii.small}"}}},filelist:{flexDirection:{value:"column"},gap:{value:"{space.small}"}},loader:{strokeLinecap:{value:"round"},strokeEmpty:{value:"{colors.border.secondary}"},strokeFilled:{value:"{components.loader.strokeFilled}"},strokeWidth:{value:"{borderWidths.large}"}},previewer:{backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},borderRadius:{value:"{radii.small}"},paddingBlock:{value:"{space.zero}"},paddingInline:{value:"{space.zero}"},maxHeight:{value:"40rem"},maxWidth:{value:"auto"},text:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},body:{paddingBlock:{value:"{space.medium}"},paddingInline:{value:"{space.medium}"},gap:{value:"{space.small}"}},footer:{justifyContent:{value:"flex-end"}}}},phe={gap:{value:"{space.medium.value}"},justifyContent:{value:"normal"},alignItems:{value:"stretch"},alignContent:{value:"normal"},flexWrap:{value:"nowrap"}},mhe={color:{value:"{colors.font.primary.value}"},lineHeight:{value:"{lineHeights.small.value}"},1:{fontSize:{value:"{fontSizes.xxxxl.value}"},fontWeight:{value:"{fontWeights.light.value}"}},2:{fontSize:{value:"{fontSizes.xxxl.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},3:{fontSize:{value:"{fontSizes.xxl.value}"},fontWeight:{value:"{fontWeights.medium.value}"}},4:{fontSize:{value:"{fontSizes.xl.value}"},fontWeight:{value:"{fontWeights.semibold.value}"}},5:{fontSize:{value:"{fontSizes.large.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},6:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.extrabold.value}"}}},ghe={highlighted:{fontWeight:{value:"{fontWeights.bold}"}}},vhe={lineHeight:{value:1},height:{value:"1em"}},yhe={color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},bhe={maxWidth:{value:"100%"},height:{value:"auto"},objectFit:{value:"initial"},objectPosition:{value:"initial"}},She={banner:{height:{value:"150px "},width:{value:"400px "}},button:{backgroundColor:{value:"#e8e8e8"},borderRadius:{value:"5px"},color:{value:"black"}},dialog:{height:{value:"50vh"},minHeight:{value:"400px"},minWidth:{value:"400px"},width:{value:"30vw"}},header:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.extrabold.value}"}}},whe={active:{color:{value:"{colors.font.active.value}"}},color:{value:"{colors.font.interactive.value}"},focus:{color:{value:"{colors.font.focus.value}"}},hover:{color:{value:"{colors.font.hover.value}"}},visited:{color:{value:"{colors.font.interactive.value}"}}},xhe={cameraModule:{backgroundColor:{value:"{colors.background.primary.value}"}}},Che={width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},fontSize:{value:"{fontSizes.xs.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeFilled:{value:"{colors.primary.80.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"},fontSize:{value:"{fontSizes.xxs.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"},fontSize:{value:"{fontSizes.small.value}"}},linear:{width:{value:"100%"},minWidth:{value:"5rem"},fontSize:{value:"{fontSizes.xxs.value}"},strokeWidth:{value:"{fontSizes.xxs.value}"},strokeFilled:{value:"{colors.primary.80.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{strokeWidth:{value:"{fontSizes.xxxs.value}"},fontSize:{value:"{fontSizes.xxxs.value}"}},large:{strokeWidth:{value:"{fontSizes.xs.value}"},fontSize:{value:"{fontSizes.xs.value}"}}},text:{fill:{value:"{colors.font.primary.value}"}}},Ehe={backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.medium.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},boxShadow:{value:"{shadows.large.value}"},flexDirection:{value:"column"},gap:{value:"{space.zero.value}"},maxWidth:{value:"30rem"},minWidth:{value:"14rem"},small:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"}},large:{width:{value:"{fontSizes.xxxl.value}"},height:{value:"{fontSizes.xxxl.value}"}},item:{minHeight:{value:"2.5rem"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}}},_he={alignItems:{value:"center"},backgroundColor:{value:"{colors.background.tertiary.value}"},borderColor:{value:"transparent"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.xs.value}"},color:{value:"{colors.font.primary.value}"},justifyContent:{value:"flex-start"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.medium.value}"},lineHeight:{value:"{lineHeights.small.value}"},icon:{size:{value:"{fontSizes.xl.value}"}},heading:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},dismiss:{gap:{value:"{space.xxs.value}"}},plain:{color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}}},outlined:{color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.primary.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.info.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.error.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.success.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.warning.value}"}}},filled:{color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.secondary.value}"},borderColor:{value:"transparent"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"},borderColor:{value:"transparent"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"},borderColor:{value:"transparent"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"},borderColor:{value:"transparent"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"},borderColor:{value:"transparent"}}}},khe={current:{alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.font.inverse.value}"},fontSize:{value:"{fontSizes.small.value}"},backgroundColor:{value:"{colors.overlay.40.value}"}},button:{color:{value:"{colors.font.primary.value}"},paddingInlineStart:{value:"{space.xxs.value}"},paddingInlineEnd:{value:"{space.xxs.value}"},transitionProperty:{value:"background-color"},transitionDuration:{value:"{time.medium.value}"},hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.font.primary.value}"}},disabled:{color:{value:"{colors.font.disabled.value}"}}},ellipsis:{alignItems:{value:"baseline"},justifyContent:{value:"center"},paddingInlineStart:{value:"{space.xs.value}"},paddingInlineEnd:{value:"{space.xs.value}"}},itemContainer:{marginLeft:{value:"{space.xxxs.value}"},marginRight:{value:"{space.xxxs.value}"}},itemShared:{height:{value:"{fontSizes.xxl.value}"},minWidth:{value:"{fontSizes.xxl.value}"},borderRadius:{value:"{fontSizes.medium.value}"}}},Ahe={color:{value:"{components.fieldcontrol.color.value}"},button:{color:{value:"{components.button.color.value}"},_active:{backgroundColor:{value:"{components.button._active.backgroundColor.value}"},borderColor:{value:"{components.button._active.borderColor.value}"},color:{value:"{components.button._active.color.value}"}},_disabled:{backgroundColor:{value:"{components.button._disabled.backgroundColor.value}"},borderColor:{value:"{components.button._disabled.borderColor.value}"},color:{value:"{components.button._disabled.color.value}"}},_error:{color:{value:"{components.button.outlined.error.color.value}"},backgroundColor:{value:"{components.button.outlined.error.backgroundColor.value}"},borderColor:{value:"{components.button.outlined.error.borderColor.value}"},_active:{borderColor:{value:"{components.button.outlined.error._active.borderColor.value}"},backgroundColor:{value:"{components.button.outlined.error._active.backgroundColor.value}"},color:{value:"{components.button.outlined.error._active.color.value}"}},_focus:{borderColor:{value:"{components.button.outlined.error._focus.borderColor.value}"},backgroundColor:{value:"{components.button.outlined.error._focus.backgroundColor.value}"},color:{value:"{components.button.outlined.error._focus.color.value}"},boxShadow:{value:"{components.button.outlined.error._focus.boxShadow.value}"}},_hover:{borderColor:{value:"{components.button.outlined.error._hover.borderColor.value}"},backgroundColor:{value:"{components.button.outlined.error._hover.backgroundColor.value}"},color:{value:"{components.button.outlined.error._hover.color.value}"}}},_focus:{backgroundColor:{value:"{components.button._focus.backgroundColor.value}"},borderColor:{value:"{components.button._focus.borderColor.value}"},color:{value:"{components.button._focus.color.value}"}},_hover:{backgroundColor:{value:"{components.button._hover.backgroundColor.value}"},borderColor:{value:"{components.button._hover.borderColor.value}"},color:{value:"{components.button._hover.color.value}"}}}},Ihe={color:{value:"{components.fieldcontrol.color}"},borderColor:{value:"{components.fieldcontrol.borderColor}"},fontSize:{value:"{components.fieldcontrol.fontSize}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor}"}}},Rhe={borderRadius:{value:"{radii.small.value}"},transitionDuration:{value:"{time.long.value}"},startColor:{value:"{colors.background.secondary.value}"},endColor:{value:"{colors.background.tertiary.value}"},small:{height:{value:"{space.small.value}"}},default:{height:{value:"{space.medium.value}"}},large:{height:{value:"{space.large.value}"}}},The={alignItems:{value:"center"},justifyContent:{value:"flex-start"},gap:{value:"inherit"},_disabled:{cursor:{value:"not-allowed"}},button:{alignItems:{value:"center"},justifyContent:{value:"center"},width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},boxSizing:{value:"border-box"},borderWidth:{value:"{borderWidths.medium.value}"},borderStyle:{value:"solid"},borderRadius:{value:"50%"},borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.background.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},padding:{value:"{borderWidths.medium.value}"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"}},_checked:{color:{value:"{colors.primary.80.value}"},_disabled:{color:{value:"{colors.background.disabled.value}"}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"},backgroundColor:{value:"{colors.background.primary.value}"}}},label:{color:{value:"{components.text.color.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"}}}},Ohe={radio:{borderWidth:{value:"{components.radio.button.borderWidth}"},borderColor:{value:"{components.radio.button.borderColor}"},backgroundColor:{value:"{components.radio.button.backgroundColor}"},_checked:{color:{value:"{components.radio.button._checked.color}"}},label:{color:{value:"{components.radio.label.color}"}}},legend:{color:{value:"{components.fieldset.legend.color}"},fontWeight:{value:"{fontWeights.normal}"}}},Nhe={large:{size:{value:"{fontSizes.xxxl.value}"}},default:{size:{value:"{fontSizes.xl.value}"}},small:{size:{value:"{fontSizes.small.value}"}},filled:{color:{value:"{colors.secondary.80.value}"}},empty:{color:{value:"{colors.background.tertiary.value}"}}},Mhe={color:{value:"{components.fieldcontrol.color.value}"},button:{color:{value:"{components.button.color.value}"},backgroundColor:{value:"{colors.background.primary.value}"},_active:{backgroundColor:{value:"{components.button._active.backgroundColor.value}"},borderColor:{value:"{components.button._active.borderColor.value}"},color:{value:"{components.button._active.color.value}"}},_disabled:{backgroundColor:{value:"{components.button._disabled.backgroundColor.value}"},borderColor:{value:"{components.button._disabled.borderColor.value}"},color:{value:"{components.button._disabled.color.value}"}},_focus:{backgroundColor:{value:"{components.button._focus.backgroundColor.value}"},borderColor:{value:"{components.button._focus.borderColor.value}"},color:{value:"{components.button._focus.color.value}"}},_hover:{backgroundColor:{value:"{components.button._hover.backgroundColor.value}"},borderColor:{value:"{components.button._hover.borderColor.value}"},color:{value:"{components.button._hover.color.value}"}}}},Phe={color:{value:"{components.fieldcontrol.color}"},backgroundColor:{value:"{colors.background.primary.value}"},paddingInlineEnd:{value:"{space.xxl.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"{colors.background.disabled.value}"}},wrapper:{flex:{value:"1"},display:{value:"block"},position:{value:"relative"},cursor:{value:"pointer"}},iconWrapper:{alignItems:{value:"center"},position:{value:"absolute"},top:{value:"50%"},right:{value:"{space.medium.value}"},transform:{value:"translateY(-50%)"},pointerEvents:{value:"none"},small:{right:{value:"{space.xs.value}"}},large:{right:{value:"{space.medium.value}"}}},option:{backgroundColor:{value:"transparent"},color:{value:"{colors.font.primary.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"}}},whiteSpace:{value:"nowrap"},minWidth:{value:"6.5rem"},small:{minWidth:{value:"5.5rem"},paddingInlineEnd:{value:"{space.xl.value}"}},large:{minWidth:{value:"7.5rem"},paddingInlineEnd:{value:"{space.xxl.value}"}},expanded:{paddingBlock:{value:"{space.xs.value}"},paddingInline:{value:"{space.small.value}"},option:{paddingBlock:{value:"{space.xs.value}"},paddingInline:{value:"{space.small.value}"}}}},Dhe={borderColor:{value:"{components.fieldcontrol.borderColor}"},color:{value:"{components.fieldcontrol.color}"},flexDirection:{value:"column"},fontSize:{value:"{components.fieldcontrol.fontSize}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor}"}},label:{color:{value:"{components.field.label.color}"}}},Lhe={paddingBlock:{value:"{space.xs.value}"},track:{backgroundColor:{value:"{colors.background.quaternary.value}"},borderRadius:{value:"9999px"},height:{value:"0.375rem"},minWidth:{value:"10rem"}},range:{backgroundColor:{value:"{colors.primary.80.value}"},borderRadius:{value:"9999px"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}},thumb:{width:{value:"1.25rem"},height:{value:"1.25rem"},backgroundColor:{value:"{colors.background.primary.value}"},boxShadow:{value:"{shadows.small.value}"},borderRadius:{value:"50%"},borderWidth:{value:"{borderWidths.medium.value}"},borderColor:{value:"{colors.border.primary.value}"},borderStyle:{value:"solid"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"},borderColor:{value:"transparent"},boxShadow:{value:"none"}},_hover:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.focus.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}}},small:{track:{height:{value:"0.25rem"}},thumb:{width:{value:"1rem"},height:{value:"1rem"}}},large:{track:{height:{value:"0.625rem"}},thumb:{width:{value:"1.5rem"},height:{value:"1.5rem"}}}},Uhe={borderColor:{value:"{components.fieldcontrol.borderColor}"},flexDirection:{value:"column"},input:{color:{value:"{components.fieldcontrol.color}"},fontSize:{value:"{components.fieldcontrol.fontSize}"},textAlign:{value:"center"}},button:{color:{value:"{components.button.color}"},backgroundColor:{value:"{colors.transparent}"},_active:{color:{value:"{components.button._active.color}"},backgroundColor:{value:"{components.button._active.backgroundColor}"}},_focus:{color:{value:"{components.button._focus.color}"},backgroundColor:{value:"{components.button._focus.backgroundColor}"}},_disabled:{color:{value:"{components.button._disabled.color}"},backgroundColor:{value:"{components.fieldcontrol._disabled.backgroundColor}"}},_hover:{color:{value:"{components.button._hover.color}"},backgroundColor:{value:"{components.button._hover.backgroundColor}"}}}},jhe={dropzone:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.primary.10}"},borderRadius:{value:"{components.storagemanager.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.storagemanager.dropzone.borderStyle}"},borderWidth:{value:"{borderWidths.medium}"}},icon:{color:{value:"{colors.border.primary}"},fontSize:{value:"{fontSizes.xxl}"}},text:{color:{value:"{colors.font.tertiary}"},fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"}}},file:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"},gap:{value:"{space.small}"},alignItems:{value:"baseline"},name:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},size:{fontSize:{value:"{fontSizes.small}"},fontWeight:{value:"{fontWeights.normal}"},color:{value:"{colors.font.tertiary}"}},image:{width:{value:"{space.xxl}"},height:{value:"{space.xxl}"},backgroundColor:{value:"{colors.background.secondary}"},color:{value:"{colors.font.tertiary}"},borderRadius:{value:"{radii.small}"}}},filelist:{flexDirection:{value:"column"},gap:{value:"{space.small}"}},loader:{strokeLinecap:{value:"round"},strokeEmpty:{value:"{colors.border.secondary}"},strokeFilled:{value:"{components.loader.strokeFilled}"},strokeWidth:{value:"{borderWidths.large}"}},previewer:{backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},borderRadius:{value:"{radii.small}"},paddingBlock:{value:"{space.zero}"},paddingInline:{value:"{space.zero}"},maxHeight:{value:"40rem"},maxWidth:{value:"auto"},text:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},body:{paddingBlock:{value:"{space.medium}"},paddingInline:{value:"{space.medium}"},gap:{value:"{space.small}"}},footer:{justifyContent:{value:"flex-end"}}}},zhe={_disabled:{opacity:{value:"{opacities.60.value}"}},_focused:{shadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},fontSize:{value:"{fontSizes.medium.value}"},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}},label:{padding:{value:"{space.xs.value}"}},thumb:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderRadius:{value:"{radii.xxxl.value}"},checked:{transform:{value:"{transforms.slideX.medium.value}"}},transition:{duration:{value:"{time.medium.value}"}},width:{value:"{space.relative.medium.value}"}},track:{backgroundColor:{value:"{colors.background.quaternary.value}"},borderRadius:{value:"{radii.xxxl.value}"},checked:{backgroundColor:{value:"{colors.primary.80.value}"}},height:{value:"{space.relative.medium.value}"},padding:{value:"{outlineWidths.medium.value}"},transition:{duration:{value:"{time.short.value}"}},width:{value:"{space.relative.xl.value}"},_error:{backgroundColor:{value:"{colors.background.error.value}"}}}},Fhe={borderCollapse:{value:"collapse"},display:{value:"table"},width:{value:"100%"},head:{display:{value:"table-header-group"},verticalAlign:{value:"middle"}},body:{display:{value:"table-row-group"},verticalAlign:{value:"middle"}},foot:{display:{value:"table-footer-group"},verticalAlign:{value:"middle"}},row:{display:{value:"table-row"},verticalAlign:{value:"middle"},hover:{backgroundColor:{value:"{colors.background.tertiary.value}"}},striped:{backgroundColor:{value:"{colors.background.secondary.value}"}}},header:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},data:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.normal.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},caption:{captionSide:{value:"bottom"},color:{value:"{colors.font.primary.value}"},display:{value:"table-caption"},fontSize:{value:"{fontSizes.medium.value}"},textAlign:{value:"center"},wordBreak:{value:"break-all"},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}}}},$he={backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"},gap:{value:"0"},item:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"},color:{value:"{colors.font.secondary.value}"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"},textAlign:{value:"center"},transitionDuration:{value:"{time.medium.value}"},_hover:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"none"},color:{value:"{colors.font.hover.value}"}},_focus:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"{borderWidths.medium}",color:"{colors.border.focus.value}"}},color:{value:"{colors.font.focus.value}"}},_active:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.font.interactive.value}"},boxShadow:{value:"none"},color:{value:"{colors.font.interactive.value}"}},_disabled:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"},boxShadow:{value:"none"},color:{value:"{colors.font.disabled.value}"}}},panel:{backgroundColor:{value:"transparent"},paddingInline:{value:"0"},paddingBlock:{value:"{space.small.value}"}}},Bhe={color:{value:"{colors.font.primary.value}"},primary:{color:{value:"{colors.font.primary.value}"}},secondary:{color:{value:"{colors.font.secondary.value}"}},tertiary:{color:{value:"{colors.font.tertiary.value}"}},error:{color:{value:"{colors.font.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"}},success:{color:{value:"{colors.font.success.value}"}},info:{color:{value:"{colors.font.info.value}"}}},Hhe={color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},qhe={color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},Vhe={borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.font.primary.value}"},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.font.primary.value}"}},_active:{backgroundColor:{value:"{colors.transparent.value}"}},_disabled:{backgroundColor:{value:"{colors.transparent.value}"},borderColor:{value:"{colors.border.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{borderColor:{value:"{colors.border.pressed.value}"},color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.overlay.20.value}"},_hover:{backgroundColor:{value:"{colors.overlay.30.value}"}}},primary:{backgroundColor:{value:"{colors.transparent.value}"},borderWidth:{value:"{borderWidths.small.value}"},_focus:{borderColor:{value:"{colors.border.focus.value}"},backgroundColor:{value:"{colors.transparent.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"},color:{value:"{colors.font.primary.value}"}},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.font.primary.value}"}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.primary.80.value}"},borderColor:{value:"{colors.primary.80.value}"},color:{value:"{colors.background.primary.value}"},_focus:{backgroundColor:{value:"{colors.border.focus.value}"},borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.background.primary.value}"}},_hover:{borderColor:{value:"{colors.primary.60.value}"},backgroundColor:{value:"{colors.primary.60.value}"},boxShadow:{value:"{colors.primary.60.value}"},color:{value:"{colors.background.primary.value}"}}}},link:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"},_hover:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_focus:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_disabled:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"},_focus:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"}},_hover:{color:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.transparent.value}"}}}}},Whe={alignItems:{value:"center"},alignContent:{value:"center"},justifyContent:{value:"flex-start"}},Ghe={accordion:ihe,aiConversation:Wfe,alert:Vfe,authenticator:Kfe,autocomplete:Gfe,avatar:Yfe,badge:Zfe,breadcrumbs:Xfe,button:Qfe,card:Jfe,checkbox:ehe,checkboxfield:the,collection:nhe,copy:rhe,countrycodeselect:ahe,divider:she,dropzone:ohe,field:lhe,fieldcontrol:uhe,fieldgroup:che,fieldmessages:fhe,fieldset:dhe,fileuploader:hhe,flex:phe,heading:mhe,icon:vhe,highlightmatch:ghe,image:bhe,inappmessaging:She,input:yhe,link:whe,liveness:xhe,loader:Che,menu:Ehe,message:_he,pagination:khe,passwordfield:Ahe,phonenumberfield:Ihe,placeholder:Rhe,radio:The,radiogroup:Ohe,rating:Nhe,searchfield:Mhe,select:Phe,selectfield:Dhe,sliderfield:Lhe,stepperfield:Uhe,storagemanager:jhe,switchfield:zhe,table:Fhe,tabs:$he,text:Bhe,textareafield:Hhe,textfield:qhe,togglebutton:Vhe,togglebuttongroup:Whe},Khe={default:{variable:{value:`'InterVariable', 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont,
157
+ 'Helvetica Neue', 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans',
158
+ sans-serif`},static:{value:`'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
159
+ 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif`}}},co={xxxs:{value:"0.375rem"},xxs:{value:"0.5rem"},xs:{value:"0.75rem"},small:{value:"0.875rem"},medium:{value:"1rem"},large:{value:"1.25rem"},xl:{value:"1.5rem"},xxl:{value:"2rem"},xxxl:{value:"2.5rem"},xxxxl:{value:"3rem"}},Yhe={hairline:{value:100},thin:{value:200},light:{value:300},normal:{value:400},medium:{value:500},semibold:{value:600},bold:{value:700},extrabold:{value:800},black:{value:900}},Zhe={small:{value:"1.25"},medium:{value:"1.5"},large:{value:"2"}},Xhe={0:{value:"0"},10:{value:"0.1"},20:{value:"0.2"},30:{value:"0.3"},40:{value:"0.4"},50:{value:"0.5"},60:{value:"0.6"},70:{value:"0.7"},80:{value:"0.8"},90:{value:"0.9"},100:{value:"1"}},Qhe={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},Jhe={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},epe={xs:{value:"0.125rem"},small:{value:"0.25rem"},medium:{value:"0.5rem"},large:{value:"1rem"},xl:{value:"2rem"},xxl:{value:"4rem"},xxxl:{value:"8rem"}},tpe={small:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"4px",color:"{colors.shadow.tertiary.value}"}},medium:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"6px",color:"{colors.shadow.secondary.value}"}},large:{value:{offsetX:"0px",offsetY:"4px",blurRadius:"12px",color:"{colors.shadow.primary.value}"}}},fo={zero:{value:"0"},xxxs:{value:"0.25rem"},xxs:{value:"0.375rem"},xs:{value:"0.5rem"},small:{value:"0.75rem"},medium:{value:"1rem"},large:{value:"1.5rem"},xl:{value:"2.0rem"},xxl:{value:"3.0rem"},xxxl:{value:"4.5rem"},relative:{xxxs:{value:"0.25em"},xxs:{value:"0.375em"},xs:{value:"0.5em"},small:{value:"0.75em"},medium:{value:"1em"},large:{value:"1.5em"},xl:{value:"2.0em"},xxl:{value:"3.0em"},xxxl:{value:"4.5em"},full:{value:"100%"}}},npe={short:{value:"100ms"},medium:{value:"250ms"},long:{value:"500ms"}},rpe={slideX:{small:{value:"translateX(0.5em)"},medium:{value:"translateX(1em)"},large:{value:"translateX(2em)"}}},ape={components:Ghe,borderWidths:Hfe,colors:qfe,fonts:Khe,fontSizes:co,fontWeights:Yhe,lineHeights:Zhe,opacities:Xhe,outlineOffsets:Qhe,outlineWidths:Jhe,radii:epe,shadows:tpe,space:fo,time:npe,transforms:rpe};co.xxs,co.xs,co.small,co.medium,co.large,co.xl,co.xxl,co.xxxl,fo.xxxs,fo.xs,fo.small,fo.medium,fo.large,fo.xl,fo.xxl,fo.xxxl;const spe={values:{base:0,small:480,medium:768,large:992,xl:1280,xxl:1536},defaultBreakpoint:"base"},eF={tokens:ape,breakpoints:spe,name:"default-theme"};var cC,W8;function ope(){if(W8)return cC;W8=1;function e(t,n,r,a){var s=-1,i=t==null?0:t.length;for(a&&i&&(r=t[++s]);++s<i;)r=n(r,t[s],s,t);return r}return cC=e,cC}var dC,G8;function ipe(){if(G8)return dC;G8=1;function e(t){return function(n){return t?.[n]}}return dC=e,dC}var fC,K8;function lpe(){if(K8)return fC;K8=1;var e=ipe(),t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},n=e(t);return fC=n,fC}var hC,Y8;function upe(){if(Y8)return hC;Y8=1;var e=lpe(),t=lA(),n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",a="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",i=r+a+s,u="["+i+"]",c=RegExp(u,"g");function f(h){return h=t(h),h&&h.replace(n,e).replace(c,"")}return hC=f,hC}var pC,Z8;function cpe(){if(Z8)return pC;Z8=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(n){return n.match(e)||[]}return pC=t,pC}var mC,X8;function dpe(){if(X8)return mC;X8=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(n){return e.test(n)}return mC=t,mC}var gC,Q8;function fpe(){if(Q8)return gC;Q8=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,s="\\u2700-\\u27bf",i="a-z\\xdf-\\xf6\\xf8-\\xff",u="\\xac\\xb1\\xd7\\xf7",c="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",f="\\u2000-\\u206f",h=" \\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",m="A-Z\\xc0-\\xd6\\xd8-\\xde",g="\\ufe0e\\ufe0f",y=u+c+f+h,S="['’]",w="["+y+"]",x="["+a+"]",_="\\d+",k="["+s+"]",A="["+i+"]",R="[^"+e+y+_+s+i+m+"]",N="\\ud83c[\\udffb-\\udfff]",O="(?:"+x+"|"+N+")",T="[^"+e+"]",P="(?:\\ud83c[\\udde6-\\uddff]){2}",L="[\\ud800-\\udbff][\\udc00-\\udfff]",q="["+m+"]",j="\\u200d",U="(?:"+A+"|"+R+")",H="(?:"+q+"|"+R+")",Z="(?:"+S+"(?:d|ll|m|re|s|t|ve))?",se="(?:"+S+"(?:D|LL|M|RE|S|T|VE))?",B=O+"?",X="["+g+"]?",re="(?:"+j+"(?:"+[T,P,L].join("|")+")"+X+B+")*",de="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",we="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",z=X+B+re,W="(?:"+[k,P,L].join("|")+")"+z,G=RegExp([q+"?"+A+"+"+Z+"(?="+[w,q,"$"].join("|")+")",H+"+"+se+"(?="+[w,q+U,"$"].join("|")+")",q+"?"+U+"+"+Z,q+"+"+se,we,de,_,W].join("|"),"g");function J(oe){return oe.match(G)||[]}return gC=J,gC}var vC,J8;function hpe(){if(J8)return vC;J8=1;var e=cpe(),t=dpe(),n=lA(),r=fpe();function a(s,i,u){return s=n(s),i=u?void 0:i,i===void 0?t(s)?r(s):e(s):s.match(i)||[]}return vC=a,vC}var yC,eP;function ppe(){if(eP)return yC;eP=1;var e=ope(),t=upe(),n=hpe(),r="['’]",a=RegExp(r,"g");function s(i){return function(u){return e(n(t(u).replace(a,"")),i,"")}}return yC=s,yC}var bC,tP;function mpe(){if(tP)return bC;tP=1;var e=ppe(),t=e(function(n,r,a){return n+(a?"-":"")+r.toLowerCase()});return bC=t,bC}var gpe=mpe();const tF=_d(gpe),vpe=/\{([^}]+)\}/g;function nF(e){const t=new RegExp(vpe);if(typeof e=="string")return t.test(e);if(typeof e=="object"){let n=!1;for(const r in e)if(ko(e,r)){const a=e[r];if(nF(a)){n=!0;break}}return n}return!1}const ype="amplify";function A3(e){return Object.entries(e).map(([t,n])=>{const r=Bv(n)?n.toString():rF({value:n});return`${tF(t)}:${r}; `}).join(" ")}function pA({path:e=[]}){return`${tF([ype,...e].join(" "))}`}const bpe=["offsetX","offsetY","blurRadius","spreadRadius","color"];function rF(e){const{value:t}=e;return _o(t)?rP(t):nP(t)?bpe.map(n=>rP(nP(e)?e[n]:t[n])).join(" "):t}function Bv(e){return da(e)&&ko(e,"value")}function nP(e){return da(e)&&ko(e,"offsetX")}function rP(e){if(!e)return"";if(nF(e)){const t=e.replace(/\{|\}/g,"").replace(".value","").split(".");return`var(--${pA({path:t})})`}return e}const aP=({token:e,path:t})=>{const n=`--${pA({path:t})}`,{value:r}=e,a=rF(e);return{name:n,original:r,path:t,value:a,toString:()=>`var(${n})`}};function I3({tokens:e,path:t=[],setupToken:n}){if(ko(e,"value"))return n({token:e,path:t});const r={};for(const a in e)if(ko(e,a)){const s=e[a],i=da(s)?s:{value:s};r[a]=I3({tokens:i,path:t.concat(a),setupToken:n})}return r}function R3(e,t){t=t||[];for(var n in e)ko(e,n)&&(da(e[n])&&"value"in e[n]?t.push(e[n]):da(e[n])&&R3(e[n],t));return t}function aF(e,t,n){if(e==null)return{};var r,a,s,i,u,c,f=e[0]||{},h=1,m=e.length;for(n=n||[],typeof f!="object"&&(f={});h<m;h++)if((u=e[h])!=null){for(i in u)if(ko(u,i)&&i!=="__proto__"&&(r=f[i],s=u[i],f!==s))if(s&&(da(s)||(a=Array.isArray(s)))){a?(a=!1,c=r&&Array.isArray(r)?r:[]):c=r&&da(r)?r:{};var g=n.slice(0);g.push(i),f[i]=aF([c,s],t,g)}else s!==void 0&&(f[i]=s)}return f}function sP(e,t){return t?`${e} { ${Object.entries(t).map(([n,r])=>`--${n}:${r}; `).join(" ")}}
160
+ `:""}function Ai(e,t){let n="";const{_modifiers:r={},_element:a={},_vars:s,...i}=t;if(Object.keys(i).length){const[u,c]=Sue(i,f=>f.startsWith(":")||f.startsWith("["));Object.entries(u).forEach(([f,h])=>{const{_modifiers:m={},_element:g={},_vars:y,...S}=h;n+=`${e}${f} { ${A3(S)} }
161
+ `,n+=sP(`${e}${f}`,y)}),n+=`${e} { ${A3(c)} }
162
+ `}return n+=sP(e,s),Object.entries(r).forEach(([u,c])=>{c&&Object.keys(c).length&&(n+=Ai(`${e}--${u}`,c))}),Object.entries(a).forEach(([u,c])=>{c&&Object.keys(c).length&&(n+=Ai(`${e}__${u}`,c))}),n}function Spe({theme:e,components:t}){let n="";const{tokens:r,name:a,breakpoints:s}=e;return t.forEach(({name:i,theme:u,overrides:c})=>{const f=`amplify-${i}`,h=`[data-amplify-theme="${a}"] .${f}`,m=Ao(u)?u(r):u;n+=Ai(h,m),c&&c.forEach(g=>{const y=Ao(g.theme)?g.theme(r):g.theme;if("mediaQuery"in g&&(n+=`@media (${g.mediaQuery}) {
163
+ ${Ai(h,y)}
164
+ }`),"breakpoint"in g){const S=s.values[g.breakpoint];n+=`
165
+ @media (min-width: ${S}px) {
166
+ ${Ai(h,y)}
167
+ }`}"selector"in g&&(n+=Ai(`${g.selector} .${f}`,y)),"colorMode"in g&&(n+=`
168
+ @media (prefers-color-scheme: ${g.colorMode}) {
169
+ ${Ai(`[data-amplify-theme="${a}"][data-amplify-color-mode="system"] .${f}`,y)}
170
+ }
171
+ `,n+=Ai(`[data-amplify-theme="${a}"][data-amplify-color-mode="${g.colorMode}"] .${f}`,y))})}),n}function oP({keys:e,value:t}){return e.reduce((n,r)=>({...n,[r]:{value:`{colors.${t}.${r}.value}`}}),{})}function wpe({animations:e,tokens:t}){let n="";return Object.entries(e).forEach(([r,a])=>{n+=`
172
+ @keyframes ${r} {`,Object.entries(a).forEach(([s,i])=>{n+=`
173
+ ${s} {
174
+ `;const u=Ao(i)?i(t):i;n+=A3(u),n+=`
175
+ }`}),n+=`
176
+ }`}),n}function Hv(e,t=eF){const n=aF([{},t,{...e,components:{}}]),{primaryColor:r,secondaryColor:a}=n;_o(r)&&(n.tokens.colors.primary=oP({keys:Object.keys(n.tokens.colors[r]),value:r})),_o(a)&&(n.tokens.colors.secondary=oP({keys:Object.keys(n.tokens.colors[a]),value:a}));const s=I3({tokens:n.tokens,setupToken:aP}),{breakpoints:i,name:u}=n;let c=`[data-amplify-theme="${u}"] {
177
+ `+R3(s).map(h=>`${h.name}: ${h.value};`).join(`
178
+ `)+`
179
+ }
180
+ `;e?.components&&(c+=Spe({theme:{...n,tokens:s},components:e.components}));let f=[];return n.animations&&(c+=wpe({animations:n.animations,tokens:s})),n.overrides&&(f=n.overrides.map(h=>{const m=I3({tokens:h.tokens,setupToken:aP}),g=R3(m).map(y=>`${y.name}: ${y.value};`).join(`
181
+ `);if("selector"in h&&(c+=`
182
+ ${h.selector} {
183
+ ${g}
184
+ }
185
+ `),"mediaQuery"in h&&(c+=`
186
+ @media (${h.mediaQuery}) {
187
+ [data-amplify-theme="${u}"] {
188
+ ${g}
189
+ }
190
+ }
191
+ `),"breakpoint"in h){const y=n.breakpoints.values[h.breakpoint];c+=`
192
+ @media (min-width: ${y}px) {
193
+ [data-amplify-theme="${u}"] {
194
+ ${g}
195
+ }
196
+ }
197
+ `}return"colorMode"in h&&(c+=`
198
+ @media (prefers-color-scheme: ${h.colorMode}) {
199
+ [data-amplify-theme="${u}"][data-amplify-color-mode="system"] {
200
+ ${g}
201
+ color-scheme: ${h.colorMode};
202
+ }
203
+ }
204
+ `,c+=`
205
+ [data-amplify-theme="${u}"][data-amplify-color-mode="${h.colorMode}"] {
206
+ ${g}
207
+ color-scheme: ${h.colorMode};
208
+ }
209
+ `),{...h,tokens:m}})),{tokens:s,breakpoints:i,name:u,cssText:c,containerProps:({colorMode:h}={})=>({"data-amplify-theme":u,"data-amplify-color-mode":h}),overrides:f}}const Ve=(...e)=>{const t=[];for(const n of e)if(n){if(_o(n)){t.push(n);continue}if(typeof n=="number"){t.push(n.toString());continue}if(Array.isArray(n)){t.push(Ve(...n));continue}if(da(n)){if(n.toString!==Object.prototype.toString&&n.toString()!=="[object Object]"){t.push(n.toString());continue}for(const r in n)ko(n,r)&&n[r]&&t.push(r)}}return t.join(" ")},ce={Alert:"amplify-alert",AlertIcon:"amplify-alert__icon",AlertHeading:"amplify-alert__heading",AlertBody:"amplify-alert__body",AlertDismiss:"amplify-alert__dismiss",Button:"amplify-button",ButtonLoaderWrapper:"amplify-button__loader-wrapper",CountryCodeSelect:"amplify-countrycodeselect",DialCodeSelect:"amplify-dialcodeselect",Divider:"amplify-divider",Field:"amplify-field",FieldDescription:"amplify-field__description",FieldErrorMessage:"amplify-field__error-message",FieldGroup:"amplify-field-group",FieldGroupControl:"amplify-field-group__control",FieldGroupOuterEnd:"amplify-field-group__outer-end",FieldGroupOuterStart:"amplify-field-group__outer-start",FieldGroupInnerEnd:"amplify-field-group__inner-end",FieldGroupInnerStart:"amplify-field-group__inner-start",FieldGroupHasInnerEnd:"amplify-field-group--has-inner-end",FieldGroupHasInnerStart:"amplify-field-group--has-inner-start",FieldShowPassword:"amplify-field__show-password",FieldGroupFieldWrapper:"amplify-field-group__field-wrapper",Fieldset:"amplify-fieldset",FieldsetLegend:"amplify-fieldset__legend",Flex:"amplify-flex",Heading:"amplify-heading",Icon:"amplify-icon",Input:"amplify-input",Label:"amplify-label",Loader:"amplify-loader",LoaderLabel:"amplify-loader__label",PasswordField:"amplify-passwordfield",PhoneNumberField:"amplify-phonenumberfield",Radio:"amplify-radio",RadioButton:"amplify-radio__button",RadioInput:"amplify-radio__input",RadioLabel:"amplify-radio__label",RadioGroupField:"amplify-radiogroupfield",RadioGroup:"amplify-radiogroup",Select:"amplify-select",SelectField:"amplify-selectfield",SelectWrapper:"amplify-select__wrapper",SelectIcon:"amplify-select__icon",Tabs:"amplify-tabs",TabsList:"amplify-tabs__list",TabsItem:"amplify-tabs__item",TabsPanel:"amplify-tabs__panel",Text:"amplify-text",TextField:"amplify-textfield",VisuallyHidden:"amplify-visually-hidden"},xpe=({componentName:e,packageName:t,version:n})=>{const r=[`ui-${t}`,n];switch(e){case"AIConversation":{io({...sue,additionalDetails:[[e],r]});break}case"Authenticator":{io({...iue,additionalDetails:[[e],r]});break}case"ChangePassword":case"DeleteUser":{io({...oue,additionalDetails:[["AccountSettings"],r]});break}case"FileUploader":{io({...lue,additionalDetails:[[e],r]});break}case"InAppMessaging":{io({...uue,additionalDetails:[[e],r]});break}case"LocationSearch":{io({...cue,additionalDetails:[[e],r]});break}case"MapView":{io({...due,additionalDetails:[[e],r]});break}case"StorageManager":{io({...fue,additionalDetails:[[e],r]});break}case"StorageBrowser":{io({...hue,additionalDetails:[[e],r]});break}}return bue},T3=F.createContext(null),Cpe=e=>(t,n)=>{Bz(t,n,e)};function sF({children:e}){const[t,n]=F.useState("configuring");F.useEffect(()=>{lv().then(()=>{n("authenticated")}).catch(()=>{n("unauthenticated")})},[]);const r=E.useContext(T3),a=Vle($fe),s=E.useMemo(()=>r??{authStatus:t,service:a},[t,r,a]),{service:i}=s;return E.useEffect(()=>wue(i,Cpe({onSignIn:()=>{n("authenticated")},onSignOut:()=>{n("unauthenticated")}})),[i]),F.createElement(T3.Provider,{value:s},e)}const Epe="`useAuthenticator` must be used inside an `Authenticator.Provider`.",_pe=["confirmResetPassword","confirmSignIn","confirmSignUp","confirmVerifyUser","forceNewPassword","forgotPassword","selectMfaType","setupEmail","setupTotp","signIn","signUp","verifyUser"],kpe=e=>_pe.some(t=>t===e),Ape=()=>!1;function Ipe(e,t){return e.length!==t.length?!1:e.every((n,r)=>{const a=t[r];return vue(n,a)||yue(n,a)?!0:n===a})}const Rpe=e=>(t,n)=>{const r=e(t),a=e(n);return Ipe(r,a)},Tpe=e=>({...Yh(e)?.formFields?.setupTotp?.QR}),Ope=e=>e.flatMap(([t,n])=>({name:t,...n})),Npe=(e={})=>e&&Object.entries(e).map(([t,n])=>!_o(n)||!t?{}:{name:t,label:n,type:"radio",value:n}),Mpe=(e=[])=>e.map(t=>({name:"mfa_type",label:$n.getMfaTypeLabelByValue(t),type:"radio",value:t})),Ppe=(e,t)=>kpe(e)?e==="verifyUser"?Npe(Yh(t).unverifiedUserAttributes):e==="selectMfaType"?Mpe(Yh(t).allowedMfaTypes):Ope(tce(e,t)):[];function Ct(e){const t=F.useContext(T3);if(!t)throw new Error(Epe);const{service:n}=t,{send:r}=n,a=E.useCallback(w=>({...kue({send:r,state:w})}),[r]),s=e?Rpe(e):Ape,{authStatus:i}=t,u=Xle(n,a,s),{route:c,totpSecretCode:f,user:h,...m}=u,g=n.getSnapshot(),y=c==="setupTotp"?Tpe(g):null,S=Ppe(c,g);return{...m,authStatus:i,route:c,totpSecretCode:f,user:h,fields:S,QRFields:y}}const Dpe=({route:e})=>[e];function Lpe(e){const{route:t,initializeMachine:n}=Ct(Dpe),r=F.useRef(!1);F.useEffect(()=>{!r.current&&t==="setup"&&(n(e),r.current=!0)},[n,t,e])}const Upe=({shouldWarn:e,message:t})=>{E.useEffect(()=>{},[e,t])};function jpe({componentName:e,packageName:t,version:n}){E.useEffect(()=>xpe({componentName:e,packageName:t,version:n}),[e,t,n])}const oF=E.createContext({theme:Hv(),colorMode:void 0}),mA={alignContent:"alignContent",alignItems:"alignItems",alignSelf:"alignSelf",area:"gridArea",aspectRatio:"aspectRatio",autoColumns:"gridAutoColumns",autoFlow:"gridAutoFlow",autoRows:"gridAutoRows",backgroundColor:"backgroundColor",backgroundImage:"backgroundImage",basis:"flexBasis",border:"border",borderRadius:"borderRadius",borderColor:"borderColor",borderWidth:"borderWidth",borderStyle:"borderStyle",bottom:"bottom",boxShadow:"boxShadow",color:"color",column:"gridColumn",columnEnd:"gridColumnEnd",columnGap:"columnGap",columnSpan:"gridColumn",columnStart:"gridColumnStart",direction:"flexDirection",display:"display",flex:"flex",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:"fontStyle",fontWeight:"fontWeight",gap:"gap",grow:"flexGrow",height:"height",justifyContent:"justifyContent",left:"left",letterSpacing:"letterSpacing",lineHeight:"lineHeight",margin:"margin",marginBlock:"marginBlock",marginBlockEnd:"marginBlockEnd",marginBlockStart:"marginBlockStart",marginBottom:"marginBlockEnd",marginInline:"marginInline",marginInlineEnd:"marginInlineEnd",marginInlineStart:"marginInlineStart",marginLeft:"marginInlineStart",marginRight:"marginInlineEnd",marginTop:"marginBlockStart",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",objectFit:"objectFit",objectPosition:"objectPosition",opacity:"opacity",order:"order",overflow:"overflow",padding:"padding",paddingBlock:"paddingBlock",paddingBlockEnd:"paddingBlockEnd",paddingBlockStart:"paddingBlockStart",paddingBottom:"paddingBlockEnd",paddingInline:"paddingInline",paddingInlineEnd:"paddingInlineEnd",paddingInlineStart:"paddingInlineStart",paddingLeft:"paddingInlineStart",paddingRight:"paddingInlineEnd",paddingTop:"paddingBlockStart",position:"position",resize:"resize",right:"right",row:"gridRow",rowEnd:"gridRowEnd",rowGap:"rowGap",rowSpan:"gridRow",rowStart:"gridRowStart",shrink:"flexShrink",templateAreas:"gridTemplateAreas",templateColumns:"gridTemplateColumns",templateRows:"gridTemplateRows",textAlign:"textAlign",textDecoration:"textDecoration",textTransform:"textTransform",top:"top",transform:"transform",transformOrigin:"transformOrigin",width:"width",whiteSpace:"whiteSpace",wrap:"flexWrap"},gA={Alert:{dismissButtonLabel:"Dismiss alert"},PhoneNumberField:{countryCodeLabel:"Country code"},PasswordField:{passwordIsHidden:"Password is hidden",passwordIsShown:"Password is shown",showPassword:"Show password"}},O3={backgroundColor:"colors",borderColor:"colors",borderWidth:"borderWidths",color:"colors",borderRadius:"radii",fontSize:"fontSizes",fontWeight:"fontWeights",fontFamily:"fonts",lineHeight:"lineHeights",opacity:"opacities",boxShadow:"shadows",transform:"transforms",left:"space",right:"space",top:"space",bottom:"space",height:"space",width:"space",letterSpacing:"space",margin:"space",marginBlock:"space",marginBlockEnd:"space",marginBlockStart:"space",marginInline:"space",marginInlineEnd:"space",marginInlineStart:"space",marginLeft:"space",marginRight:"space",marginTop:"space",marginBottom:"space",maxHeight:"space",maxWidth:"space",minHeight:"space",minWidth:"space",padding:"space",paddingBlock:"space",paddingBlockEnd:"space",paddingBlockStart:"space",paddingInline:"space",paddingInlineEnd:"space",paddingInlineStart:"space",paddingLeft:"space",paddingRight:"space",paddingTop:"space",paddingBottom:"space",gap:"space",columnGap:"space",rowGap:"space"},zpe=e=>e in O3,iF=e=>typeof e=="string"&&e.length===0,iP=e=>e==null||iF(e),qv=e=>Object.keys(e),vA=(e,t,n)=>{if(typeof t!="string")return t;if(t.includes(" "))return t.split(" ").map(r=>vA(e,r,n)).join(" ");if(zpe(e)){const r=t.split("."),a=O3[e];let s=n[a];for(let i=0;i<r.length;i++){if(s){s=s[r[i]];continue}break}return Bv(s)?`var(--${pA({path:[O3[e],...r]})})`:t}return t},Fpe=({breakpoint:e,breakpoints:t,values:n})=>{const r=n[e];if(r!==void 0)return r;const a=qv(t).sort((i,u)=>t[u]-t[i]),s=a.slice(a.indexOf(e));for(const i of s){const u=n[i];if(u!==void 0)return u}return null},$pe=e=>qv(e).reduce((t,n)=>n in eF.breakpoints.values?{...t,[n]:e[n]}:t,{}),Bpe=({breakpoint:e,breakpoints:t,values:n})=>{let r={};const a=qv(t).sort((s,i)=>t[s]-t[i]);return Array.isArray(n)?n.forEach((s,i)=>{r[a[i]]=s}):typeof n=="object"&&(r=$pe(n)),Fpe({breakpoint:e,breakpoints:t,values:r})},Hpe=({breakpoints:e})=>{const t=qv(e).sort((n,r)=>e[r]-e[n]);return t.map((n,r)=>{let a="";const s=e[n],i=t[r-1],u=i?e[i]-1:null;return s>=0&&(a=`(min-width: ${s}px)`),u!==null&&(a&&(a+=" and "),a+=`(max-width: ${u}px)`),{breakpoint:n,query:a,maxWidth:u,minWidth:s}})},qpe=typeof window>"u"?E.useEffect:E.useLayoutEffect,Vpe=({breakpoints:e,defaultBreakpoint:t})=>{const r=typeof window<"u"&&typeof window.matchMedia<"u"?window.matchMedia:null,a=E.useMemo(()=>Hpe({breakpoints:e}),[e]),[s,i]=E.useState(t),u=E.useCallback((c,f)=>{c&&i(f)},[i]);return qpe(()=>{if(!r)return;const c=a.map(({query:f,breakpoint:h})=>{const m=r(f);u(m.matches,h);const g=y=>{y.matches&&i(h)};return m.addEventListener("change",g),()=>m.removeEventListener("change",g)});return()=>{c.forEach(f=>f())}},[e,i,r,a]),E.useDebugValue(s,c=>c),s},Wpe=e=>typeof e>"u"||typeof e.theme>"u"?Hv():e.theme,Gpe=()=>{const e=E.useContext(oF);return Wpe(e)},Kpe=({value:e,propKey:t,tokens:n})=>Bv(e)?e.toString():_o(e)?_o(t)?vA(t,e,n):e:null,Ype=e=>e==="auto"||typeof e=="number"&&!isNaN(e)||typeof e=="string"&&!isNaN(parseFloat(e)),SC=e=>e==="auto"?"auto":`span ${e}`,lP=e=>Ype(e)?SC(e):Array.isArray(e)?e.map(t=>SC(t)):typeof e=="object"&&e!=null?Object.entries(e).reduce((t,[n,r])=>({...t,[n]:SC(r)}),{}):null,Zpe=e=>{const{rowSpan:t,columnSpan:n,row:r,column:a,...s}=e,{rowFromSpanValue:i,columnFromSpanValue:u}=E.useMemo(()=>({rowFromSpanValue:lP(t),columnFromSpanValue:lP(n)}),[t,n]);return{row:iP(r)?i:r,column:iP(a)?u:a,...s}},Xpe=e=>e in mA,Qpe=({props:e={},style:t={},breakpoint:n,breakpoints:r,tokens:a})=>{const s={};return Object.keys(e).filter(i=>e[i]!==null).forEach(i=>{if(Xpe(i)){const u=e[i];if(u==null||iF(u))return;const c=mA[i];let f="";Bv(u)?f=u.toString():typeof u=="string"?f=vA(i,u,a):typeof u=="number"?f=u:typeof u=="object"&&(f=Kpe({propKey:i,tokens:a,value:Bpe({values:u,breakpoint:n,breakpoints:r})})),t={...t,[c]:f}}else typeof e[i]<"u"&&(s[i]=e[i])}),{propStyles:t,nonStyleProps:s}},Jpe=(e,t)=>{const{breakpoints:{values:n,defaultBreakpoint:r},tokens:a}=Gpe(),s=Vpe({breakpoints:n,defaultBreakpoint:r}),i=Zpe(e);return E.useMemo(()=>Qpe({props:i,style:t,breakpoint:s,breakpoints:n,tokens:a}),[i,t,n,s,a])},Yt=e=>E.forwardRef(e),eme=({as:e="div",children:t,testId:n,ariaLabel:r,isDisabled:a,style:s,inert:i,...u},c)=>{const{propStyles:f,nonStyleProps:h}=Jpe(u,s);return E.createElement(e,{"aria-label":r,"data-testid":n,disabled:a,ref:c,inert:i?"":null,style:f,...h},t)},We=Yt(eme);We.displayName="View";const Xf={minX:0,minY:0,width:24,height:24},tme=({className:e,as:t="svg",fill:n="currentColor",pathData:r,viewBox:a=Xf,children:s,paths:i,...u},c)=>{const f=a.minX??Xf.minX,h=a.minY??Xf.minY,m=a.width??Xf.width,g=a.height??Xf.height;let y;return s&&(y=s),i&&(y=i.map((S,w)=>E.createElement("path",{...S,key:w}))),r&&(y=E.createElement("path",{d:r,fill:n})),E.createElement(We,{as:t,className:Ve(ce.Icon,e),ref:c,viewBox:`${f} ${h} ${m} ${g}`,...u},y)},lF=Yt(tme);lF.displayName="Icon";const nme=E.createContext({});function Vv(e){const t=E.useContext(nme);if(e&&t)return t[e]}const rme=e=>{const{className:t,...n}=e;return E.createElement(We,{as:"span",width:"1em",height:"1em",className:Ve(ce.Icon,t),...n},E.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z",fill:"currentColor"})))},ame=e=>{const{className:t,...n}=e;return E.createElement(We,{as:"span",width:"1em",height:"1em",className:Ve(ce.Icon,t),...n},E.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:"currentColor"})))},sme=e=>{const{className:t,...n}=e;return E.createElement(We,{as:"span",width:"1em",height:"1em",className:Ve(ce.Icon,t),...n},E.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.createElement("path",{d:"M11 7H13V9H11V7ZM11 11H13V17H11V11ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z",fill:"currentColor"})))},ome=e=>{const{className:t,...n}=e;return E.createElement(We,{as:"span",width:"1em",height:"1em",className:Ve(ce.Icon,t),...n},E.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.createElement("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})))},uF=({variation:e,ariaHidden:t,ariaLabel:n,role:r})=>{const a=Vv("alert");let s;switch(e){case"info":s=a?.info??E.createElement(sme,{"aria-hidden":t,"aria-label":n,role:r});break;case"error":s=a?.error??E.createElement(ame,{"aria-hidden":t,"aria-label":n,role:r});break;case"warning":s=a?.warning??E.createElement(ome,{"aria-hidden":t,"aria-label":n,role:r});break;case"success":s=a?.success??E.createElement(rme,{"aria-hidden":t,"aria-label":n,role:r});break}return s?E.createElement("span",{className:ce.AlertIcon},s):null};uF.displayName="AlertIcon";const ime=globalThis?.document?E.useLayoutEffect:()=>{},lme="amplify-id",ume=vU.useId||(()=>{});let cme=0;const Gi=e=>{const[t,n]=E.useState(ume());return ime(()=>{e||n(r=>r??String(cme++))},[e]),e??(t?`${lme}-${t}`:"")},cF=E.createContext({isFieldsetDisabled:!1}),Mp=e=>{let n=E.useContext(cF).isFieldsetDisabled;return(n===void 0||n===!1)&&(n=e),{isFieldsetDisabled:n}},dme=({className:e,children:t,...n},r)=>E.createElement(We,{className:Ve(ce.Flex,e),ref:r,...n},t),He=Yt(dme);He.displayName="Flex";const fme="linear-empty",hme="linear-filled",pme="circular-empty",mme="circular-filled",uP=8,N3=42,wg=2*N3*Math.PI,gme=({className:e,filledColor:t,emptyColor:n,size:r,variation:a,isDeterminate:s=!1,isPercentageTextHidden:i=!1,percentage:u=0,...c},f)=>{u=Math.min(u,100),u=Math.max(u,0);const h=`${u}%`,m=Ve(ce.Loader,Gt(ce.Loader,r),Gt(ce.Loader,a),Gr(ce.Loader,"determinate",s),e),g=E.createElement("g",null,E.createElement("line",{x1:"0",x2:"100%",y1:"50%",y2:"50%",style:{stroke:String(n)},"data-testid":fme}),E.createElement("line",{x1:"0",x2:s?h:"100%",y1:"50%",y2:"50%",style:{stroke:s&&u===0?"none":t?String(t):void 0},"data-testid":hme}),s?E.createElement("text",{"aria-live":"polite",className:Ve(ce.LoaderLabel,i?ce.VisuallyHidden:null),x:`${-1+u}%`,y:"200%"},h):null),y=E.createElement("g",null,E.createElement("circle",{cx:"50%",cy:"50%",r:`${N3}%`,strokeWidth:`${uP}%`,style:{stroke:String(n)},"data-testid":pme}),E.createElement("circle",{cx:"50%",cy:"50%",r:`${N3}%`,strokeWidth:`${uP}%`,style:{stroke:String(t),strokeDasharray:s?`${wg}% ${wg}%`:void 0,strokeDashoffset:s?`${wg-wg*u/100}%`:void 0},"data-testid":mme}),s?E.createElement("text",{"aria-live":"polite",className:Ve(ce.LoaderLabel,i?ce.VisuallyHidden:null),x:"130%",y:"80%"},h):null);return E.createElement(We,{as:"svg","aria-valuenow":s?u:void 0,className:m,ref:f,role:"progressbar",...c},a==="linear"?g:y)},dF=Yt(gme);dF.displayName="Loader";const vme=["link","primary",void 0],yme=({className:e,children:t,colorTheme:n,isFullWidth:r=!1,isDisabled:a,isLoading:s,loadingText:i="",size:u,type:c="button",variation:f,...h},m)=>{const g=vme.includes(f)&&n?`${f??"outlined"}--${n}`:void 0,{isFieldsetDisabled:y}=Mp(a??s??h.disabled),S=Ve(ce.Button,ce.FieldGroupControl,Gt(ce.Button,f),Gt(ce.Button,g),Gt(ce.Button,u),Gr(ce.Button,"disabled",y),Gr(ce.Button,"loading",s),Gr(ce.Button,"fullwidth",r),e);return E.createElement(We,{ref:m,as:"button",className:S,isDisabled:y,type:c,...h},s?E.createElement(He,{as:"span",className:ce.ButtonLoaderWrapper},E.createElement(dF,{size:u}),i||null):t)},dn=Yt(yme);dn.displayName="Button";const bme=e=>{const{className:t,size:n,...r}=e;return E.createElement(We,{as:"span",width:n??"1em",height:n??"1em",className:Ve(ce.Icon,t),...r},E.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n?{width:n,height:n}:void 0},E.createElement("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})))},Sme=({as:e="p",className:t,children:n,isTruncated:r,variation:a,...s},i)=>{const u=Ve(ce.Text,Gt(ce.Text,a),Gr(ce.Text,"truncated",r),t);return E.createElement(We,{as:e,className:u,ref:i,...s},n)},Ta=Yt(Sme);Ta.displayName="Text";const wme="qa-field-description",Wv=({descriptiveText:e,labelHidden:t,...n})=>e?E.createElement(Ta,{"data-testid":wme,className:Ve(ce.FieldDescription,{[ce.VisuallyHidden]:t}),...n},e):null;Wv.displayName="FieldDescription";const Gv=({errorMessage:e,hasError:t,...n})=>t&&e?E.createElement(Ta,{className:ce.FieldErrorMessage,...n},e):null;Gv.displayName="FieldErrorMessage";const xme=({children:e,className:t,visuallyHidden:n,...r},a)=>E.createElement(We,{as:"label",className:Ve(ce.Label,t,{[ce.VisuallyHidden]:n}),ref:a,...r},e),yA=Yt(xme);yA.displayName="Label";const Cme=({buttonRef:e,children:t,className:n,dismissButtonLabel:r=gA.Alert.dismissButtonLabel,hasIcon:a=!0,heading:s,isDismissible:i=!1,onDismiss:u,variation:c,...f},h)=>{const[m,g]=E.useState(!1),y=Vv("alert"),S=E.useCallback(()=>{g(!m),Ao(u)&&u()},[g,u,m]);return m?null:E.createElement(He,{className:Ve(ce.Alert,n,Gt(ce.Alert,c)),ref:h,role:"alert",...f},a&&E.createElement(uF,{variation:c,ariaHidden:!0}),E.createElement(We,{flex:"1"},s&&E.createElement(We,{className:ce.AlertHeading},s),E.createElement(We,{className:ce.AlertBody},t)),i&&E.createElement(dn,{ariaLabel:r,variation:"link",className:ce.AlertDismiss,onClick:S,ref:e},y?.close??E.createElement(bme,{"aria-hidden":"true"})))},fF=Yt(Cme);fF.displayName="Alert";const Hl=(e,t)=>e&&t?`${e}-${t}`:void 0,Eme=({children:e,className:t,innerEndComponent:n,innerStartComponent:r,orientation:a="horizontal",outerEndComponent:s,outerStartComponent:i,variation:u,...c},f)=>{const h=r!=null,m=n!=null,g=h?ce.FieldGroupHasInnerStart:null,y=m?ce.FieldGroupHasInnerEnd:null,S=Ve(ce.FieldGroup,g,y,Gt(ce.FieldGroup,a),t);return E.createElement(He,{className:S,ref:f,...c},i&&E.createElement(We,{className:Ve(ce.FieldGroupOuterStart,Gt(ce.FieldGroupOuterStart,u))},i),E.createElement(We,{className:Ve(ce.FieldGroupFieldWrapper,Gt(ce.FieldGroupFieldWrapper,a))},r&&E.createElement(We,{className:ce.FieldGroupInnerStart},r),e,n&&E.createElement(We,{className:ce.FieldGroupInnerEnd},n)),s&&E.createElement(We,{className:Ve(ce.FieldGroupOuterEnd,Gt(ce.FieldGroupOuterEnd,u))},s))},hF=Yt(Eme);hF.displayName="FieldGroup";const _me=({autoComplete:e,checked:t,className:n,defaultChecked:r,defaultValue:a,id:s,isDisabled:i,isReadOnly:u,isRequired:c,size:f,type:h="text",hasError:m=!1,value:g,variation:y,...S},w)=>{const x=Ve(ce.Input,ce.FieldGroupControl,Gt(ce.Input,y),Gr(ce.Input,"error",m),Gt(ce.Input,f),n),{isFieldsetDisabled:_}=Mp(i);return E.createElement(We,{"aria-invalid":m,as:"input",autoComplete:e,checked:t,className:x,defaultChecked:r,defaultValue:a,isDisabled:_,id:s,readOnly:u,ref:w,required:c,type:h,value:g,...S})},bA=Yt(_me);bA.displayName="Input";const kme=e=>e in mA,pF=e=>{const t={styleProps:{},rest:{}};return Object.keys(e).forEach(n=>{kme(n)?t.styleProps={...t.styleProps,[n]:e[n]}:t.rest={...t.rest,[n]:e[n]}}),t},SA=e=>{const t=e.filter(n=>n!==void 0).join(" ");return t.length>0?t:void 0},wA="error",xA="description",Ame=(e,t)=>{const{className:n,descriptiveText:r,errorMessage:a,hasError:s=!1,id:i,innerEndComponent:u,innerStartComponent:c,label:f,labelHidden:h=!1,outerEndComponent:m,outerStartComponent:g,size:y,testId:S,variation:w,inputStyles:x,..._}=e,k=Gi(i),A=Gi(),R=r?Hl(A,xA):void 0,N=s?Hl(A,wA):void 0,O=SA([N,R]),{styleProps:T,rest:P}=pF(_);return E.createElement(He,{className:Ve(ce.Field,Gt(ce.Field,y),ce.TextField,n),testId:S,...T},E.createElement(yA,{htmlFor:k,visuallyHidden:h},f),E.createElement(Wv,{id:R,labelHidden:h,descriptiveText:r}),E.createElement(hF,{outerStartComponent:g,outerEndComponent:m,innerStartComponent:c,innerEndComponent:u,variation:w},E.createElement(bA,{"aria-describedby":O,hasError:s,id:k,ref:t,size:y,variation:w,...x,...P})),E.createElement(Gv,{id:N,hasError:s,errorMessage:a}))},Pp=Yt(Ame);Pp.displayName="TextField";const Ime=({as:e="span",children:t,className:n,...r},a)=>E.createElement(We,{as:e,className:Ve(ce.VisuallyHidden,n),ref:a,...r},t),Kv=Yt(Ime);Kv.displayName="VisuallyHidden";const Rme=({className:e,orientation:t="horizontal",size:n,label:r,...a},s)=>{const i=Ve(ce.Divider,Gt(ce.Divider,t),Gt(ce.Divider,n),e);return E.createElement(We,{"aria-orientation":t,as:"hr",className:i,"data-label":r,ref:s,...a})},CA=Yt(Rme);CA.displayName="Divider";const Tme=e=>{const{className:t,...n}=e;return E.createElement(We,{as:"span",width:"1em",height:"1em",className:Ve(ce.Icon,t),...n},E.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.createElement("path",{d:"M16.59 8.58984L12 13.1698L7.41 8.58984L6 9.99984L12 15.9998L18 9.99984L16.59 8.58984Z",fill:"currentColor"})))},Ome=({children:e,className:t,isDisabled:n,legend:r,legendHidden:a,size:s,testId:i,variation:u="plain",...c},f)=>{const{isFieldsetDisabled:h}=Mp(n),m=E.useMemo(()=>({isFieldsetDisabled:h}),[h]),g=Ve(ce.Fieldset,Gt(ce.Fieldset,u),Gt(ce.Fieldset,s),t),y=Ve(ce.FieldsetLegend,Gt(ce.FieldsetLegend,s),{[ce.VisuallyHidden]:a});return E.createElement(cF.Provider,{value:m},E.createElement(He,{as:"fieldset",className:g,ref:f,disabled:h,testId:i,...c},E.createElement(Kv,{as:"legend"},r),E.createElement(We,{as:"div","aria-hidden":"true",className:y},r),e))},mF=Yt(Ome);mF.displayName="Fieldset";const Nme={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},Mme=({className:e,children:t,isTruncated:n,level:r=6,...a},s)=>E.createElement(We,{as:Nme[r],className:Ve(ce.Heading,Gt(ce.Heading,r),Gr(ce.Heading,"truncated",n),e),ref:s,...a},t),Or=Yt(Mme);Or.displayName="Heading";var Pme=E.createContext(void 0),Dme=e=>{const{dir:t,children:n}=e;return C.jsx(Pme.Provider,{value:t,children:n})};const Lme=e=>{const{className:t,...n}=e;return E.createElement(We,{as:"span",width:"1em",height:"1em",className:Ve(ce.Icon,t),...n},E.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.createElement("path",{d:"M12 6.0002C15.79 6.0002 19.17 8.1302 20.82 11.5002C20.23 12.7202 19.4 13.7702 18.41 14.6202L19.82 16.0302C21.21 14.8002 22.31 13.2602 23 11.5002C21.27 7.1102 17 4.0002 12 4.0002C10.73 4.0002 9.51 4.2002 8.36 4.5702L10.01 6.2202C10.66 6.0902 11.32 6.0002 12 6.0002ZM10.93 7.14019L13 9.2102C13.57 9.4602 14.03 9.9202 14.28 10.4902L16.35 12.5602C16.43 12.2202 16.49 11.8602 16.49 11.4902C16.5 9.0102 14.48 7.0002 12 7.0002C11.63 7.0002 11.28 7.05019 10.93 7.14019ZM2.01 3.8702L4.69 6.5502C3.06 7.8302 1.77 9.5302 1 11.5002C2.73 15.8902 7 19.0002 12 19.0002C13.52 19.0002 14.98 18.7102 16.32 18.1802L19.74 21.6002L21.15 20.1902L3.42 2.4502L2.01 3.8702ZM9.51 11.3702L12.12 13.9802C12.08 13.9902 12.04 14.0002 12 14.0002C10.62 14.0002 9.5 12.8802 9.5 11.5002C9.5 11.4502 9.51 11.4202 9.51 11.3702V11.3702ZM6.11 7.97019L7.86 9.7202C7.63 10.2702 7.5 10.8702 7.5 11.5002C7.5 13.9802 9.52 16.0002 12 16.0002C12.63 16.0002 13.23 15.8702 13.77 15.6402L14.75 16.6202C13.87 16.8602 12.95 17.0002 12 17.0002C8.21 17.0002 4.83 14.8702 3.18 11.5002C3.88 10.0702 4.9 8.89019 6.11 7.97019Z",fill:"currentColor"})))},Ume=e=>{const{className:t,...n}=e;return E.createElement(We,{as:"span",width:"1em",height:"1em",className:Ve(ce.Icon,t),...n},E.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.createElement("path",{d:"M12 6C15.79 6 19.17 8.13 20.82 11.5C19.17 14.87 15.79 17 12 17C8.21 17 4.83 14.87 3.18 11.5C4.83 8.13 8.21 6 12 6ZM12 4C7 4 2.73 7.11 1 11.5C2.73 15.89 7 19 12 19C17 19 21.27 15.89 23 11.5C21.27 7.11 17 4 12 4ZM12 9C13.38 9 14.5 10.12 14.5 11.5C14.5 12.88 13.38 14 12 14C10.62 14 9.5 12.88 9.5 11.5C9.5 10.12 10.62 9 12 9ZM12 7C9.52 7 7.5 9.02 7.5 11.5C7.5 13.98 9.52 16 12 16C14.48 16 16.5 13.98 16.5 11.5C16.5 9.02 14.48 7 12 7Z",fill:"currentColor"})))},{passwordIsHidden:jme,passwordIsShown:zme,showPassword:Fme}=gA.PasswordField,$me=({fieldType:e,passwordIsHiddenLabel:t=jme,passwordIsShownLabel:n=zme,showPasswordButtonLabel:r=Fme,size:a,hasError:s,...i},u)=>{const c=Vv("passwordField"),f=Ve(ce.FieldShowPassword,Gr(ce.FieldShowPassword,"error",s)),h=e==="password"?c?.visibility??E.createElement(Ume,{"aria-hidden":"true"}):c?.visibilityOff??E.createElement(Lme,{"aria-hidden":"true"});return E.createElement(dn,{"aria-checked":e!=="password",ariaLabel:r,className:f,colorTheme:s?"error":void 0,ref:u,role:"switch",size:a,...i},E.createElement(Kv,{"aria-live":"polite"},e==="password"?t:n),h)},gF=Yt($me);gF.displayName="ShowPasswordButton";const Bme=({autoComplete:e="current-password",label:t,className:n,hideShowPassword:r=!1,passwordIsHiddenLabel:a,passwordIsShownLabel:s,showPasswordButtonLabel:i,showPasswordButtonRef:u,size:c,hasError:f,...h},m)=>{const[g,y]=E.useState("password"),S=E.useCallback(()=>{y(g==="password"?"text":"password")},[y,g]);return E.createElement(Pp,{autoComplete:e,outerEndComponent:r?null:E.createElement(gF,{fieldType:g,onClick:S,passwordIsHiddenLabel:a,passwordIsShownLabel:s,ref:u,size:c,showPasswordButtonLabel:i,hasError:f}),size:c,type:g,label:t,className:Ve(ce.PasswordField,n),ref:m,hasError:f,...h})},EA=Yt(Bme);EA.displayName="PasswordField";const Hme=({autoComplete:e,className:t,size:n,variation:r,value:a,defaultValue:s,hasError:i,icon:u,iconColor:c,children:f,placeholder:h,isDisabled:m,isRequired:g,isMultiple:y=!1,selectSize:S=1,...w},x)=>{const k=a===void 0&&s===void 0&&h,A=y||S>1,R=Ve(ce.Select,ce.FieldGroupControl,Gt(ce.Select,n),Gt(ce.Select,r),Gr(ce.Select,"error",i),Gr(ce.Select,"expanded",A),t),N=Vv("select"),{isFieldsetDisabled:O}=Mp(m);return E.createElement(We,{className:ce.SelectWrapper},E.createElement(We,{"aria-invalid":i,as:"select",autoComplete:e,value:a,defaultValue:k?"":s,isDisabled:O,multiple:y,size:S,required:g,className:R,ref:x,...w},h&&E.createElement("option",{value:""},h),f),A?null:E.createElement(He,{className:Ve(ce.SelectIcon,Gt(ce.SelectIcon,n)),color:c,"aria-hidden":"true"},u??N?.expand??E.createElement(Tme,null)))},vF=Yt(Hme);vF.displayName="Select";const qme=({children:e,options:t})=>e?(t?.length&&console.warn("Amplify UI: <SelectField> component defaults to rendering children over `options`. When using the `options` prop, omit children."),e):t?.map((n,r)=>E.createElement("option",{label:n,value:n,key:`${n}-${r}`},n)),Vme=(e,t)=>{const{children:n,className:r,descriptiveText:a,errorMessage:s,hasError:i=!1,id:u,label:c,labelHidden:f=!1,options:h,size:m,testId:g,inputStyles:y,...S}=e,w=Gi(u),x=Gi(),_=a?Hl(x,xA):void 0,k=i?Hl(x,wA):void 0,A=SA([k,_]),{styleProps:R,rest:N}=pF(S);return E.createElement(He,{className:Ve(ce.Field,Gt(ce.Field,m),ce.SelectField,r),testId:g,...R},E.createElement(yA,{htmlFor:w,visuallyHidden:f},c),E.createElement(Wv,{id:_,labelHidden:f,descriptiveText:a}),E.createElement(vF,{"aria-describedby":A,hasError:i,id:w,ref:t,size:m,...N,...y},qme({children:n,options:h})),E.createElement(Gv,{id:k,hasError:i,errorMessage:s}))},yF=Yt(Vme);yF.displayName="SelectField";const Wme=({className:e,dialCodeList:t,isReadOnly:n,...r},a)=>{const s=t??Hz,i=E.useMemo(()=>s.map(u=>E.createElement("option",{key:u,value:u,disabled:n},u)),[s,n]);return E.createElement(yF,{"aria-disabled":n,autoComplete:"tel-country-code",className:Ve(ce.CountryCodeSelect,ce.DialCodeSelect,e),labelHidden:!0,ref:a,...r},i)},bF=Yt(Wme);bF.displayName="DialCodeSelect";const Gme=({autoComplete:e="tel-national",className:t,defaultDialCode:n,dialCodeLabel:r=gA.PhoneNumberField.countryCodeLabel,dialCodeList:a,dialCodeName:s,dialCodeRef:i,hasError:u,isDisabled:c,isReadOnly:f,onDialCodeChange:h,onInput:m,size:g,variation:y,...S},w)=>E.createElement(Pp,{outerStartComponent:E.createElement(bF,{defaultValue:n,dialCodeList:a,className:t,hasError:u,isDisabled:c,isReadOnly:f,label:r,name:s,onChange:h,ref:i,size:g,variation:y}),autoComplete:e,className:Ve(ce.PhoneNumberField,t),hasError:u,isDisabled:c,isReadOnly:f,onInput:m,ref:w,size:g,type:"tel",variation:y,...S}),SF=Yt(Gme);SF.displayName="PhoneNumberField";const Kme={name:"default"},wF=F.createContext(Kme),Yme=()=>E.useContext(wF),Zme=({children:e,className:t,id:n,isDisabled:r=!1,testId:a,value:s,labelPosition:i,...u},c)=>{const{currentValue:f,defaultValue:h,name:m,hasError:g,isGroupDisabled:y=!1,isRequired:S,isReadOnly:w,onChange:x,size:_,labelPosition:k}=Yme(),{isFieldsetDisabled:A}=Mp(y||r||w&&h!==s),R=f!==void 0?s===f:void 0,N=h!==void 0?s===h:void 0,O=i??k;return E.createElement(He,{as:"label",className:Ve(ce.Radio,Gr(ce.Radio,"disabled",A),O?`amplify-label-${O}`:null,t)},e&&E.createElement(Ta,{as:"span",className:Ve(ce.RadioLabel,Gr(ce.RadioLabel,"disabled",A))},e),E.createElement(bA,{checked:R,className:Ve(ce.VisuallyHidden,ce.RadioInput),defaultChecked:N,hasError:g,id:n,isDisabled:A,isReadOnly:w,isRequired:S,onChange:x,ref:c,type:"radio",name:m,value:s,...u}),E.createElement(He,{"aria-hidden":"true",as:"span",className:Ve(ce.RadioButton,Gt(ce.RadioButton,_)),testId:a}))},_A=Yt(Zme);_A.displayName="Radio";const Xme=({children:e,className:t,defaultValue:n,descriptiveText:r,errorMessage:a,hasError:s=!1,id:i,isDisabled:u,isRequired:c,isReadOnly:f,legend:h,legendHidden:m=!1,labelPosition:g,onChange:y,name:S,size:w,testId:x,value:_,variation:k,...A},R)=>{const N=Gi(i),O=Gi(),T=r?Hl(O,xA):void 0,P=s?Hl(O,wA):void 0,L=SA([P,T]),q=Hl(x,ce.RadioGroup),j=E.useMemo(()=>({currentValue:_,defaultValue:n,hasError:s,isRequired:c,isReadOnly:f,isGroupDisabled:u,onChange:y,size:w,name:S,labelPosition:g}),[n,s,u,c,f,y,w,S,_,g]);return E.createElement(mF,{className:Ve(ce.Field,Gt(ce.Field,w),ce.RadioGroupField,t),isDisabled:u,legend:h,legendHidden:m,ref:R,role:"radiogroup",size:w,testId:x,variation:k,...A},E.createElement(Wv,{id:T,labelHidden:m,descriptiveText:r}),E.createElement(He,{"aria-describedby":L,className:ce.RadioGroup,id:N,testId:q},E.createElement(wF.Provider,{value:j},e)),E.createElement(Gv,{id:P,hasError:s,errorMessage:a}))},kA=Yt(Xme);kA.displayName="RadioGroupField";const Yv=E.createContext({groupId:"",activeTab:"",setActiveTab:()=>{}}),xF="-",Qme=({className:e,value:t,children:n,onClick:r,as:a="button",role:s="tab",...i},u)=>{const{activeTab:c,setActiveTab:f,groupId:h}=E.useContext(Yv);let m=t;typeof m=="string"&&(m=m.replace(" ",xF));const g=c===t,y=S=>{Ao(r)&&r?.(S),f(t)};return E.createElement(We,{...i,role:s,as:a,id:`${h}-tab-${m}`,"aria-selected":g,"aria-controls":`${h}-panel-${m}`,tabIndex:g?void 0:-1,className:Ve(ce.TabsItem,Gr(ce.TabsItem,"active",c===t),e),ref:u,onClick:y},n)},AA=Yt(Qme);AA.displayName="Tabs.Item";const Jme=e=>E.isValidElement(e),ege=({className:e,children:t,indicatorPosition:n,spacing:r,role:a="tablist",...s},i)=>{const u=E.useRef(null),{activeTab:c,setActiveTab:f}=E.useContext(Yv);E.useImperativeHandle(i,()=>u.current);const h=E.useMemo(()=>E.Children.toArray(t).map(w=>{if(w&&Jme(w))return w.props.value}).filter(w=>!!w),[t]),m=h.indexOf(c),g=E.useCallback(()=>{let w=m===h.length-1?0:m+1;const x=u.current?.querySelectorAll("button")??[];for(;x[w].disabled;)w===h.length-1?w=0:w++;const _=h[w];if(_){f(_);const k=x[w];k?.focus(),k?.click()}},[m,f,h]),y=E.useCallback(()=>{let w=m===0?h.length-1:m-1;const x=u.current?.querySelectorAll("button")??[];for(;x[w].disabled;)w===0?w=h.length-1:w--;const _=h[w];if(_){f(_);const k=x[w];k?.focus(),k?.click()}},[m,f,h]),S=E.useCallback(w=>{switch(w.key){case"ArrowLeft":w.preventDefault(),w.stopPropagation(),y();break;case"ArrowUp":case"ArrowRight":w.preventDefault(),w.stopPropagation(),g();break}},[y,g]);return E.createElement(We,{...s,role:a,onKeyDown:S,className:Ve(ce.TabsList,n?Gt(ce.TabsList,n):null,r?Gt(ce.TabsList,r):null,e),ref:u},t)},IA=Yt(ege);IA.displayName="Tabs.List";const tge=({className:e,value:t,children:n,role:r="tabpanel",...a},s)=>{const{activeTab:i,isLazy:u,groupId:c}=E.useContext(Yv);if(u&&i!==t)return null;let f=t;return typeof f=="string"&&(f=f.replace(" ",xF)),E.createElement(We,{...a,role:r,id:`${c}-panel-${f}`,"aria-labelledby":`${c}-tab-${f}`,className:Ve(ce.TabsPanel,Gr(ce.TabsPanel,"active",i===t),e),ref:s},n)},RA=Yt(tge);RA.displayName="Tabs.Panel";const nge=({children:e,defaultValue:t,className:n,value:r,onValueChange:a,isLazy:s,...i},u)=>{const c=Gi(),f=r!==void 0,[h,m]=E.useState(()=>f?r:t),g=f?r:h??"",y=E.useCallback(w=>{Ao(a)&&a(w),f||m(w)},[a,f]),S=E.useMemo(()=>({activeTab:g,isLazy:s,setActiveTab:y,groupId:c}),[g,y,s,c]);return E.createElement(Yv.Provider,{value:S},E.createElement(We,{...i,ref:u,className:Ve(n,ce.Tabs)},e))},TA=Yt(nge);TA.displayName="Tabs.Container";const rge=({items:e,indicatorPosition:t,justifyContent:n,spacing:r,...a},s)=>E.createElement(TA,{...a,ref:s},E.createElement(IA,{indicatorPosition:t,justifyContent:n,spacing:r},e?.map(({value:i,label:u,content:c,...f})=>E.createElement(AA,{...f,key:i,value:i},u))),e?.map(({value:i,content:u,isDisabled:c})=>E.createElement(RA,{key:i,value:i,isDisabled:c},u))),Tl=Object.assign(Yt(rge),{Item:AA,List:IA,Panel:RA,Container:TA});Tl.displayName="Tabs";const wC=({errors:e,id:t,dataAttr:n})=>{if(!(e?.length>0))return null;const r=n?{[n]:!0}:{};return F.createElement(We,{...r,id:t},e.map(a=>F.createElement(Ta,{key:a,role:"alert",variation:"error"},be(a))))},age="6.15.4",sge=({message:e,shouldWarn:t})=>{Upe({message:e,shouldWarn:t})},CF=E.createContext(null),fa=()=>{const e=E.useContext(CF);if(!e)throw new Error("`useCustomComponents` cannot be used outside of a `CustomComponentsContext.Provider`");return e},oge=e=>{const t=new FormData(e.target);return Object.fromEntries(t)};function ha(){const{submitForm:e,updateBlur:t,updateForm:n}=Ct(i=>[i.submitForm,i.updateBlur,i.updateForm]),r=E.useCallback(({target:{name:i}})=>{t({name:i})},[t]),a=E.useCallback(({target:{checked:i,name:u,type:c,value:f}})=>{n({name:u,value:c==="checkbox"&&!i?void 0:f})},[n]),s=E.useCallback(i=>{i.preventDefault(),e(oge(i))},[e]);return{handleBlur:r,handleChange:a,handleSubmit:s}}const Xr=()=>{const{error:e}=Ct(t=>[t.error]);return F.createElement(F.Fragment,null,e?F.createElement(fF,{variation:"error",isDismissible:!0},be(e)):null)};function cP({autocomplete:e,dialCode:t,name:n,type:r,...a}){const{validationErrors:s}=Ct(({validationErrors:h})=>[h]),i=E.useMemo(()=>Oue(s[n]),[n,s]),u=i?.length>0,c=Gi(),f=u?c:void 0;return r==="tel"?E.createElement(E.Fragment,null,E.createElement(SF,{...a,name:n,defaultDialCode:t,dialCodeName:"country_code",autoComplete:e,hasError:u,"aria-describedby":f}),E.createElement(wC,{dataAttr:"data-amplify-sign-up-errors",errors:i,id:c})):r==="password"?E.createElement(E.Fragment,null,E.createElement(EA,{...a,name:n,autoCapitalize:"off",autoComplete:e,hasError:u,"aria-describedby":f}),E.createElement(wC,{dataAttr:"data-amplify-sign-up-errors",errors:i,id:c})):E.createElement(E.Fragment,null,E.createElement(Pp,{...a,name:n,autoCapitalize:"off",autoComplete:e,hasError:u,type:r,"aria-describedby":f}),E.createElement(wC,{dataAttr:"data-amplify-sign-up-errors",errors:i,id:c}))}function zs({includePassword:e}={}){const{fields:t}=Ct(({route:u})=>[u]),{selectedAuthMethod:n,preferredChallenge:r}=Ct(u=>[u.selectedAuthMethod,u.preferredChallenge]),a=n??r,s=e??(!a||a==="PASSWORD"),i=E.useRef(t.map((u,c)=>(u.name==="password"||u.name==="confirm_password")&&!s?E.createElement(cP,{key:c,...u,isRequired:!1}):E.createElement(cP,{key:c,...u})).filter(Boolean)).current;return E.createElement(E.Fragment,null,i)}function Zr({children:e,className:t,variation:n="default"}){Ct(({route:s})=>[s]);const{components:{Header:r,Footer:a}}=fa();return F.createElement(We,{className:t,"data-amplify-authenticator":"","data-variation":n},F.createElement(We,{"data-amplify-container":""},F.createElement(r,null),F.createElement(We,{"data-amplify-router":"","data-amplify-router-content":void 0},e),F.createElement(a,null)))}const{getDeliveryMessageText:ige,getDeliveryMethodText:lge,getConfirmingText:uge,getConfirmText:cge,getResendCodeText:dge}=$n;function Jl({className:e,variation:t}){const{isPending:n,resendCode:r,codeDeliveryDetails:a}=Ct(f=>[f.isPending,f.resendCode,f.codeDeliveryDetails]),{handleChange:s,handleSubmit:i}=ha(),{components:{ConfirmSignUp:{Header:u=Jl.Header,Footer:c=Jl.Footer}}}=fa();return F.createElement(Zr,{className:e,variation:t},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmsignup":"",method:"post",onChange:s,onSubmit:i},F.createElement(He,{as:"fieldset",direction:"column",isDisabled:n},F.createElement(u,null),F.createElement(He,{direction:"column"},F.createElement(Ta,{className:"amplify-authenticator__subtitle"},ige(a)),F.createElement(zs,null),F.createElement(Xr,null),F.createElement(dn,{variation:"primary",isDisabled:n,type:"submit",loadingText:uge(),isLoading:n},cge()),F.createElement(dn,{onClick:r,type:"button"},dge())),F.createElement(c,null))))}const fge=()=>{const{codeDeliveryDetails:e}=Ct(t=>[t.codeDeliveryDetails]);return F.createElement(Or,{level:4},lge(e))};Jl.Header=fge;Jl.Footer=function(){return null};const{getChangePasswordText:EF,getChangingText:hge,getBackToSignInText:pge}=$n,Qa=({className:e,variation:t})=>{const{isPending:n,toSignIn:r}=Ct(h=>[h.isPending,h.toSignIn]),{handleBlur:a,handleChange:s,handleSubmit:i}=ha(),{components:{ForceNewPassword:{FormFields:u=Qa.FormFields,Header:c=Qa.Header,Footer:f=Qa.Footer}}}=fa();return F.createElement(Zr,{className:e,variation:t},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-forcenewpassword":"",method:"post",onChange:s,onSubmit:i,onBlur:a},F.createElement(He,{as:"fieldset",direction:"column",isDisabled:n},F.createElement(c,null),F.createElement(u,null),F.createElement(Xr,null),F.createElement(dn,{isDisabled:n,type:"submit",variation:"primary",isLoading:n,loadingText:hge()},EF()),F.createElement(dn,{onClick:r,type:"button",variation:"link",size:"small"},pge()),F.createElement(f,null))))};Qa.FormFields=function(){return F.createElement(zs,null)};Qa.Header=function(){return F.createElement(Or,{level:4},EF())};Qa.Footer=function(){return null};var bc={},xC,dP;function mge(){return dP||(dP=1,xC=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),xC}var CC={},Ci={},fP;function vu(){if(fP)return Ci;fP=1;let e;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return Ci.getSymbolSize=function(r){if(!r)throw new Error('"version" cannot be null or undefined');if(r<1||r>40)throw new Error('"version" should be in range from 1 to 40');return r*4+17},Ci.getSymbolTotalCodewords=function(r){return t[r]},Ci.getBCHDigit=function(n){let r=0;for(;n!==0;)r++,n>>>=1;return r},Ci.setToSJISFunction=function(r){if(typeof r!="function")throw new Error('"toSJISFunc" is not a valid function.');e=r},Ci.isKanjiModeEnabled=function(){return typeof e<"u"},Ci.toSJIS=function(r){return e(r)},Ci}var EC={},hP;function OA(){return hP||(hP=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,a){if(e.isValid(r))return r;try{return t(r)}catch{return a}}})(EC)),EC}var _C,pP;function gge(){if(pP)return _C;pP=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const n=Math.floor(t/8);return(this.buffer[n]>>>7-t%8&1)===1},put:function(t,n){for(let r=0;r<n;r++)this.putBit((t>>>n-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},_C=e,_C}var kC,mP;function vge(){if(mP)return kC;mP=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,n,r,a){const s=t*this.size+n;this.data[s]=r,a&&(this.reservedBit[s]=!0)},e.prototype.get=function(t,n){return this.data[t*this.size+n]},e.prototype.xor=function(t,n,r){this.data[t*this.size+n]^=r},e.prototype.isReserved=function(t,n){return this.reservedBit[t*this.size+n]},kC=e,kC}var AC={},gP;function yge(){return gP||(gP=1,(function(e){const t=vu().getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const a=Math.floor(r/7)+2,s=t(r),i=s===145?26:Math.ceil((s-13)/(2*a-2))*2,u=[s-7];for(let c=1;c<a-1;c++)u[c]=u[c-1]-i;return u.push(6),u.reverse()},e.getPositions=function(r){const a=[],s=e.getRowColCoords(r),i=s.length;for(let u=0;u<i;u++)for(let c=0;c<i;c++)u===0&&c===0||u===0&&c===i-1||u===i-1&&c===0||a.push([s[u],s[c]]);return a}})(AC)),AC}var IC={},vP;function bge(){if(vP)return IC;vP=1;const e=vu().getSymbolSize,t=7;return IC.getPositions=function(r){const a=e(r);return[[0,0],[a-t,0],[0,a-t]]},IC}var RC={},yP;function Sge(){return yP||(yP=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(a){return a!=null&&a!==""&&!isNaN(a)&&a>=0&&a<=7},e.from=function(a){return e.isValid(a)?parseInt(a,10):void 0},e.getPenaltyN1=function(a){const s=a.size;let i=0,u=0,c=0,f=null,h=null;for(let m=0;m<s;m++){u=c=0,f=h=null;for(let g=0;g<s;g++){let y=a.get(m,g);y===f?u++:(u>=5&&(i+=t.N1+(u-5)),f=y,u=1),y=a.get(g,m),y===h?c++:(c>=5&&(i+=t.N1+(c-5)),h=y,c=1)}u>=5&&(i+=t.N1+(u-5)),c>=5&&(i+=t.N1+(c-5))}return i},e.getPenaltyN2=function(a){const s=a.size;let i=0;for(let u=0;u<s-1;u++)for(let c=0;c<s-1;c++){const f=a.get(u,c)+a.get(u,c+1)+a.get(u+1,c)+a.get(u+1,c+1);(f===4||f===0)&&i++}return i*t.N2},e.getPenaltyN3=function(a){const s=a.size;let i=0,u=0,c=0;for(let f=0;f<s;f++){u=c=0;for(let h=0;h<s;h++)u=u<<1&2047|a.get(f,h),h>=10&&(u===1488||u===93)&&i++,c=c<<1&2047|a.get(h,f),h>=10&&(c===1488||c===93)&&i++}return i*t.N3},e.getPenaltyN4=function(a){let s=0;const i=a.data.length;for(let c=0;c<i;c++)s+=a.data[c];return Math.abs(Math.ceil(s*100/i/5)-10)*t.N4};function n(r,a,s){switch(r){case e.Patterns.PATTERN000:return(a+s)%2===0;case e.Patterns.PATTERN001:return a%2===0;case e.Patterns.PATTERN010:return s%3===0;case e.Patterns.PATTERN011:return(a+s)%3===0;case e.Patterns.PATTERN100:return(Math.floor(a/2)+Math.floor(s/3))%2===0;case e.Patterns.PATTERN101:return a*s%2+a*s%3===0;case e.Patterns.PATTERN110:return(a*s%2+a*s%3)%2===0;case e.Patterns.PATTERN111:return(a*s%3+(a+s)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(a,s){const i=s.size;for(let u=0;u<i;u++)for(let c=0;c<i;c++)s.isReserved(c,u)||s.xor(c,u,n(a,c,u))},e.getBestMask=function(a,s){const i=Object.keys(e.Patterns).length;let u=0,c=1/0;for(let f=0;f<i;f++){s(f),e.applyMask(f,a);const h=e.getPenaltyN1(a)+e.getPenaltyN2(a)+e.getPenaltyN3(a)+e.getPenaltyN4(a);e.applyMask(f,a),h<c&&(c=h,u=f)}return u}})(RC)),RC}var xg={},bP;function _F(){if(bP)return xg;bP=1;const e=OA(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return xg.getBlocksCount=function(a,s){switch(s){case e.L:return t[(a-1)*4+0];case e.M:return t[(a-1)*4+1];case e.Q:return t[(a-1)*4+2];case e.H:return t[(a-1)*4+3];default:return}},xg.getTotalCodewordsCount=function(a,s){switch(s){case e.L:return n[(a-1)*4+0];case e.M:return n[(a-1)*4+1];case e.Q:return n[(a-1)*4+2];case e.H:return n[(a-1)*4+3];default:return}},xg}var TC={},Qf={},SP;function wge(){if(SP)return Qf;SP=1;const e=new Uint8Array(512),t=new Uint8Array(256);return(function(){let r=1;for(let a=0;a<255;a++)e[a]=r,t[r]=a,r<<=1,r&256&&(r^=285);for(let a=255;a<512;a++)e[a]=e[a-255]})(),Qf.log=function(r){if(r<1)throw new Error("log("+r+")");return t[r]},Qf.exp=function(r){return e[r]},Qf.mul=function(r,a){return r===0||a===0?0:e[t[r]+t[a]]},Qf}var wP;function xge(){return wP||(wP=1,(function(e){const t=wge();e.mul=function(r,a){const s=new Uint8Array(r.length+a.length-1);for(let i=0;i<r.length;i++)for(let u=0;u<a.length;u++)s[i+u]^=t.mul(r[i],a[u]);return s},e.mod=function(r,a){let s=new Uint8Array(r);for(;s.length-a.length>=0;){const i=s[0];for(let c=0;c<a.length;c++)s[c]^=t.mul(a[c],i);let u=0;for(;u<s.length&&s[u]===0;)u++;s=s.slice(u)}return s},e.generateECPolynomial=function(r){let a=new Uint8Array([1]);for(let s=0;s<r;s++)a=e.mul(a,new Uint8Array([1,t.exp(s)]));return a}})(TC)),TC}var OC,xP;function Cge(){if(xP)return OC;xP=1;const e=xge();function t(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(r){this.degree=r,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(r){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(r.length+this.degree);a.set(r);const s=e.mod(a,this.genPoly),i=this.degree-s.length;if(i>0){const u=new Uint8Array(this.degree);return u.set(s,i),u}return s},OC=t,OC}var NC={},MC={},PC={},CP;function kF(){return CP||(CP=1,PC.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),PC}var bs={},EP;function AF(){if(EP)return bs;EP=1;const e="[0-9]+",t="[A-Z $%*+\\-./:]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+`)(?:.|[\r
210
+ ]))+`;bs.KANJI=new RegExp(n,"g"),bs.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),bs.BYTE=new RegExp(r,"g"),bs.NUMERIC=new RegExp(e,"g"),bs.ALPHANUMERIC=new RegExp(t,"g");const a=new RegExp("^"+n+"$"),s=new RegExp("^"+e+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return bs.testKanji=function(c){return a.test(c)},bs.testNumeric=function(c){return s.test(c)},bs.testAlphanumeric=function(c){return i.test(c)},bs}var _P;function yu(){return _P||(_P=1,(function(e){const t=kF(),n=AF();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(s,i){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!t.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?s.ccBits[0]:i<27?s.ccBits[1]:s.ccBits[2]},e.getBestModeForData=function(s){return n.testNumeric(s)?e.NUMERIC:n.testAlphanumeric(s)?e.ALPHANUMERIC:n.testKanji(s)?e.KANJI:e.BYTE},e.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},e.isValid=function(s){return s&&s.bit&&s.ccBits};function r(a){if(typeof a!="string")throw new Error("Param is not a string");switch(a.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+a)}}e.from=function(s,i){if(e.isValid(s))return s;try{return r(s)}catch{return i}}})(MC)),MC}var kP;function Ege(){return kP||(kP=1,(function(e){const t=vu(),n=_F(),r=OA(),a=yu(),s=kF(),i=7973,u=t.getBCHDigit(i);function c(g,y,S){for(let w=1;w<=40;w++)if(y<=e.getCapacity(w,S,g))return w}function f(g,y){return a.getCharCountIndicator(g,y)+4}function h(g,y){let S=0;return g.forEach(function(w){const x=f(w.mode,y);S+=x+w.getBitsLength()}),S}function m(g,y){for(let S=1;S<=40;S++)if(h(g,S)<=e.getCapacity(S,y,a.MIXED))return S}e.from=function(y,S){return s.isValid(y)?parseInt(y,10):S},e.getCapacity=function(y,S,w){if(!s.isValid(y))throw new Error("Invalid QR Code version");typeof w>"u"&&(w=a.BYTE);const x=t.getSymbolTotalCodewords(y),_=n.getTotalCodewordsCount(y,S),k=(x-_)*8;if(w===a.MIXED)return k;const A=k-f(w,y);switch(w){case a.NUMERIC:return Math.floor(A/10*3);case a.ALPHANUMERIC:return Math.floor(A/11*2);case a.KANJI:return Math.floor(A/13);case a.BYTE:default:return Math.floor(A/8)}},e.getBestVersionForData=function(y,S){let w;const x=r.from(S,r.M);if(Array.isArray(y)){if(y.length>1)return m(y,x);if(y.length===0)return 1;w=y[0]}else w=y;return c(w.mode,w.getLength(),x)},e.getEncodedBits=function(y){if(!s.isValid(y)||y<7)throw new Error("Invalid QR Code version");let S=y<<12;for(;t.getBCHDigit(S)-u>=0;)S^=i<<t.getBCHDigit(S)-u;return y<<12|S}})(NC)),NC}var DC={},AP;function _ge(){if(AP)return DC;AP=1;const e=vu(),t=1335,n=21522,r=e.getBCHDigit(t);return DC.getEncodedBits=function(s,i){const u=s.bit<<3|i;let c=u<<10;for(;e.getBCHDigit(c)-r>=0;)c^=t<<e.getBCHDigit(c)-r;return(u<<10|c)^n},DC}var LC={},UC,IP;function kge(){if(IP)return UC;IP=1;const e=yu();function t(n){this.mode=e.NUMERIC,this.data=n.toString()}return t.getBitsLength=function(r){return 10*Math.floor(r/3)+(r%3?r%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(r){let a,s,i;for(a=0;a+3<=this.data.length;a+=3)s=this.data.substr(a,3),i=parseInt(s,10),r.put(i,10);const u=this.data.length-a;u>0&&(s=this.data.substr(a),i=parseInt(s,10),r.put(i,u*3+1))},UC=t,UC}var jC,RP;function Age(){if(RP)return jC;RP=1;const e=yu(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(r){this.mode=e.ALPHANUMERIC,this.data=r}return n.getBitsLength=function(a){return 11*Math.floor(a/2)+6*(a%2)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(a){let s;for(s=0;s+2<=this.data.length;s+=2){let i=t.indexOf(this.data[s])*45;i+=t.indexOf(this.data[s+1]),a.put(i,11)}this.data.length%2&&a.put(t.indexOf(this.data[s]),6)},jC=n,jC}var zC,TP;function Ige(){return TP||(TP=1,zC=function(t){for(var n=[],r=t.length,a=0;a<r;a++){var s=t.charCodeAt(a);if(s>=55296&&s<=56319&&r>a+1){var i=t.charCodeAt(a+1);i>=56320&&i<=57343&&(s=(s-55296)*1024+i-56320+65536,a+=1)}if(s<128){n.push(s);continue}if(s<2048){n.push(s>>6|192),n.push(s&63|128);continue}if(s<55296||s>=57344&&s<65536){n.push(s>>12|224),n.push(s>>6&63|128),n.push(s&63|128);continue}if(s>=65536&&s<=1114111){n.push(s>>18|240),n.push(s>>12&63|128),n.push(s>>6&63|128),n.push(s&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer}),zC}var FC,OP;function Rge(){if(OP)return FC;OP=1;const e=Ige(),t=yu();function n(r){this.mode=t.BYTE,this.data=new Uint8Array(e(r))}return n.getBitsLength=function(a){return a*8},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(r){for(let a=0,s=this.data.length;a<s;a++)r.put(this.data[a],8)},FC=n,FC}var $C,NP;function Tge(){if(NP)return $C;NP=1;const e=yu(),t=vu();function n(r){this.mode=e.KANJI,this.data=r}return n.getBitsLength=function(a){return a*13},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(r){let a;for(a=0;a<this.data.length;a++){let s=t.toSJIS(this.data[a]);if(s>=33088&&s<=40956)s-=33088;else if(s>=57408&&s<=60351)s-=49472;else throw new Error("Invalid SJIS character: "+this.data[a]+`
211
+ Make sure your charset is UTF-8`);s=(s>>>8&255)*192+(s&255),r.put(s,13)}},$C=n,$C}var BC={exports:{}},MP;function Oge(){return MP||(MP=1,(function(e){var t={single_source_shortest_paths:function(n,r,a){var s={},i={};i[r]=0;var u=t.PriorityQueue.make();u.push(r,0);for(var c,f,h,m,g,y,S,w,x;!u.empty();){c=u.pop(),f=c.value,m=c.cost,g=n[f]||{};for(h in g)g.hasOwnProperty(h)&&(y=g[h],S=m+y,w=i[h],x=typeof i[h]>"u",(x||w>S)&&(i[h]=S,u.push(h,S),s[h]=f))}if(typeof a<"u"&&typeof i[a]>"u"){var _=["Could not find a path from ",r," to ",a,"."].join("");throw new Error(_)}return s},extract_shortest_path_from_predecessor_list:function(n,r){for(var a=[],s=r;s;)a.push(s),n[s],s=n[s];return a.reverse(),a},find_path:function(n,r,a){var s=t.single_source_shortest_paths(n,r,a);return t.extract_shortest_path_from_predecessor_list(s,a)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,a={},s;n=n||{};for(s in r)r.hasOwnProperty(s)&&(a[s]=r[s]);return a.queue=[],a.sorter=n.sorter||r.default_sorter,a},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var a={value:n,cost:r};this.queue.push(a),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(BC)),BC.exports}var PP;function Nge(){return PP||(PP=1,(function(e){const t=yu(),n=kge(),r=Age(),a=Rge(),s=Tge(),i=AF(),u=vu(),c=Oge();function f(_){return unescape(encodeURIComponent(_)).length}function h(_,k,A){const R=[];let N;for(;(N=_.exec(A))!==null;)R.push({data:N[0],index:N.index,mode:k,length:N[0].length});return R}function m(_){const k=h(i.NUMERIC,t.NUMERIC,_),A=h(i.ALPHANUMERIC,t.ALPHANUMERIC,_);let R,N;return u.isKanjiModeEnabled()?(R=h(i.BYTE,t.BYTE,_),N=h(i.KANJI,t.KANJI,_)):(R=h(i.BYTE_KANJI,t.BYTE,_),N=[]),k.concat(A,R,N).sort(function(T,P){return T.index-P.index}).map(function(T){return{data:T.data,mode:T.mode,length:T.length}})}function g(_,k){switch(k){case t.NUMERIC:return n.getBitsLength(_);case t.ALPHANUMERIC:return r.getBitsLength(_);case t.KANJI:return s.getBitsLength(_);case t.BYTE:return a.getBitsLength(_)}}function y(_){return _.reduce(function(k,A){const R=k.length-1>=0?k[k.length-1]:null;return R&&R.mode===A.mode?(k[k.length-1].data+=A.data,k):(k.push(A),k)},[])}function S(_){const k=[];for(let A=0;A<_.length;A++){const R=_[A];switch(R.mode){case t.NUMERIC:k.push([R,{data:R.data,mode:t.ALPHANUMERIC,length:R.length},{data:R.data,mode:t.BYTE,length:R.length}]);break;case t.ALPHANUMERIC:k.push([R,{data:R.data,mode:t.BYTE,length:R.length}]);break;case t.KANJI:k.push([R,{data:R.data,mode:t.BYTE,length:f(R.data)}]);break;case t.BYTE:k.push([{data:R.data,mode:t.BYTE,length:f(R.data)}])}}return k}function w(_,k){const A={},R={start:{}};let N=["start"];for(let O=0;O<_.length;O++){const T=_[O],P=[];for(let L=0;L<T.length;L++){const q=T[L],j=""+O+L;P.push(j),A[j]={node:q,lastCount:0},R[j]={};for(let U=0;U<N.length;U++){const H=N[U];A[H]&&A[H].node.mode===q.mode?(R[H][j]=g(A[H].lastCount+q.length,q.mode)-g(A[H].lastCount,q.mode),A[H].lastCount+=q.length):(A[H]&&(A[H].lastCount=q.length),R[H][j]=g(q.length,q.mode)+4+t.getCharCountIndicator(q.mode,k))}}N=P}for(let O=0;O<N.length;O++)R[N[O]].end=0;return{map:R,table:A}}function x(_,k){let A;const R=t.getBestModeForData(_);if(A=t.from(k,R),A!==t.BYTE&&A.bit<R.bit)throw new Error('"'+_+'" cannot be encoded with mode '+t.toString(A)+`.
212
+ Suggested mode is: `+t.toString(R));switch(A===t.KANJI&&!u.isKanjiModeEnabled()&&(A=t.BYTE),A){case t.NUMERIC:return new n(_);case t.ALPHANUMERIC:return new r(_);case t.KANJI:return new s(_);case t.BYTE:return new a(_)}}e.fromArray=function(k){return k.reduce(function(A,R){return typeof R=="string"?A.push(x(R,null)):R.data&&A.push(x(R.data,R.mode)),A},[])},e.fromString=function(k,A){const R=m(k,u.isKanjiModeEnabled()),N=S(R),O=w(N,A),T=c.find_path(O.map,"start","end"),P=[];for(let L=1;L<T.length-1;L++)P.push(O.table[T[L]].node);return e.fromArray(y(P))},e.rawSplit=function(k){return e.fromArray(m(k,u.isKanjiModeEnabled()))}})(LC)),LC}var DP;function Mge(){if(DP)return CC;DP=1;const e=vu(),t=OA(),n=gge(),r=vge(),a=yge(),s=bge(),i=Sge(),u=_F(),c=Cge(),f=Ege(),h=_ge(),m=yu(),g=Nge();function y(O,T){const P=O.size,L=s.getPositions(T);for(let q=0;q<L.length;q++){const j=L[q][0],U=L[q][1];for(let H=-1;H<=7;H++)if(!(j+H<=-1||P<=j+H))for(let Z=-1;Z<=7;Z++)U+Z<=-1||P<=U+Z||(H>=0&&H<=6&&(Z===0||Z===6)||Z>=0&&Z<=6&&(H===0||H===6)||H>=2&&H<=4&&Z>=2&&Z<=4?O.set(j+H,U+Z,!0,!0):O.set(j+H,U+Z,!1,!0))}}function S(O){const T=O.size;for(let P=8;P<T-8;P++){const L=P%2===0;O.set(P,6,L,!0),O.set(6,P,L,!0)}}function w(O,T){const P=a.getPositions(T);for(let L=0;L<P.length;L++){const q=P[L][0],j=P[L][1];for(let U=-2;U<=2;U++)for(let H=-2;H<=2;H++)U===-2||U===2||H===-2||H===2||U===0&&H===0?O.set(q+U,j+H,!0,!0):O.set(q+U,j+H,!1,!0)}}function x(O,T){const P=O.size,L=f.getEncodedBits(T);let q,j,U;for(let H=0;H<18;H++)q=Math.floor(H/3),j=H%3+P-8-3,U=(L>>H&1)===1,O.set(q,j,U,!0),O.set(j,q,U,!0)}function _(O,T,P){const L=O.size,q=h.getEncodedBits(T,P);let j,U;for(j=0;j<15;j++)U=(q>>j&1)===1,j<6?O.set(j,8,U,!0):j<8?O.set(j+1,8,U,!0):O.set(L-15+j,8,U,!0),j<8?O.set(8,L-j-1,U,!0):j<9?O.set(8,15-j-1+1,U,!0):O.set(8,15-j-1,U,!0);O.set(L-8,8,1,!0)}function k(O,T){const P=O.size;let L=-1,q=P-1,j=7,U=0;for(let H=P-1;H>0;H-=2)for(H===6&&H--;;){for(let Z=0;Z<2;Z++)if(!O.isReserved(q,H-Z)){let se=!1;U<T.length&&(se=(T[U]>>>j&1)===1),O.set(q,H-Z,se),j--,j===-1&&(U++,j=7)}if(q+=L,q<0||P<=q){q-=L,L=-L;break}}}function A(O,T,P){const L=new n;P.forEach(function(Z){L.put(Z.mode.bit,4),L.put(Z.getLength(),m.getCharCountIndicator(Z.mode,O)),Z.write(L)});const q=e.getSymbolTotalCodewords(O),j=u.getTotalCodewordsCount(O,T),U=(q-j)*8;for(L.getLengthInBits()+4<=U&&L.put(0,4);L.getLengthInBits()%8!==0;)L.putBit(0);const H=(U-L.getLengthInBits())/8;for(let Z=0;Z<H;Z++)L.put(Z%2?17:236,8);return R(L,O,T)}function R(O,T,P){const L=e.getSymbolTotalCodewords(T),q=u.getTotalCodewordsCount(T,P),j=L-q,U=u.getBlocksCount(T,P),H=L%U,Z=U-H,se=Math.floor(L/U),B=Math.floor(j/U),X=B+1,re=se-B,de=new c(re);let we=0;const z=new Array(U),W=new Array(U);let G=0;const J=new Uint8Array(O.buffer);for(let ge=0;ge<U;ge++){const Ee=ge<Z?B:X;z[ge]=J.slice(we,we+Ee),W[ge]=de.encode(z[ge]),we+=Ee,G=Math.max(G,Ee)}const oe=new Uint8Array(L);let pe=0,K,fe;for(K=0;K<G;K++)for(fe=0;fe<U;fe++)K<z[fe].length&&(oe[pe++]=z[fe][K]);for(K=0;K<re;K++)for(fe=0;fe<U;fe++)oe[pe++]=W[fe][K];return oe}function N(O,T,P,L){let q;if(Array.isArray(O))q=g.fromArray(O);else if(typeof O=="string"){let se=T;if(!se){const B=g.rawSplit(O);se=f.getBestVersionForData(B,P)}q=g.fromString(O,se||40)}else throw new Error("Invalid data");const j=f.getBestVersionForData(q,P);if(!j)throw new Error("The amount of data is too big to be stored in a QR Code");if(!T)T=j;else if(T<j)throw new Error(`
213
+ The chosen QR Code version cannot contain this amount of data.
214
+ Minimum version required to store current data is: `+j+`.
215
+ `);const U=A(T,P,q),H=e.getSymbolSize(T),Z=new r(H);return y(Z,T),S(Z),w(Z,T),_(Z,P,0),T>=7&&x(Z,T),k(Z,U),isNaN(L)&&(L=i.getBestMask(Z,_.bind(null,Z,P))),i.applyMask(L,Z),_(Z,P,L),{modules:Z,version:T,errorCorrectionLevel:P,maskPattern:L,segments:q}}return CC.create=function(T,P){if(typeof T>"u"||T==="")throw new Error("No input text");let L=t.M,q,j;return typeof P<"u"&&(L=t.from(P.errorCorrectionLevel,t.M),q=f.from(P.version),j=i.from(P.maskPattern),P.toSJISFunc&&e.setToSJISFunction(P.toSJISFunc)),N(T,q,L,j)},CC}var HC={},qC={},LP;function IF(){return LP||(LP=1,(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(s){return[s,s]}))),r.length===6&&r.push("F","F");const a=parseInt(r.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:a&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const a=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,s=r.width&&r.width>=21?r.width:void 0,i=r.scale||4;return{width:s,scale:s?4:i,margin:a,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,a){return a.width&&a.width>=r+a.margin*2?a.width/(r+a.margin*2):a.scale},e.getImageWidth=function(r,a){const s=e.getScale(r,a);return Math.floor((r+a.margin*2)*s)},e.qrToImageData=function(r,a,s){const i=a.modules.size,u=a.modules.data,c=e.getScale(i,s),f=Math.floor((i+s.margin*2)*c),h=s.margin*c,m=[s.color.light,s.color.dark];for(let g=0;g<f;g++)for(let y=0;y<f;y++){let S=(g*f+y)*4,w=s.color.light;if(g>=h&&y>=h&&g<f-h&&y<f-h){const x=Math.floor((g-h)/c),_=Math.floor((y-h)/c);w=m[u[x*i+_]?1:0]}r[S++]=w.r,r[S++]=w.g,r[S++]=w.b,r[S]=w.a}}})(qC)),qC}var UP;function Pge(){return UP||(UP=1,(function(e){const t=IF();function n(a,s,i){a.clearRect(0,0,s.width,s.height),s.style||(s.style={}),s.height=i,s.width=i,s.style.height=i+"px",s.style.width=i+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(s,i,u){let c=u,f=i;typeof c>"u"&&(!i||!i.getContext)&&(c=i,i=void 0),i||(f=r()),c=t.getOptions(c);const h=t.getImageWidth(s.modules.size,c),m=f.getContext("2d"),g=m.createImageData(h,h);return t.qrToImageData(g.data,s,c),n(m,f,h),m.putImageData(g,0,0),f},e.renderToDataURL=function(s,i,u){let c=u;typeof c>"u"&&(!i||!i.getContext)&&(c=i,i=void 0),c||(c={});const f=e.render(s,i,c),h=c.type||"image/png",m=c.rendererOpts||{};return f.toDataURL(h,m.quality)}})(HC)),HC}var VC={},jP;function Dge(){if(jP)return VC;jP=1;const e=IF();function t(a,s){const i=a.a/255,u=s+'="'+a.hex+'"';return i<1?u+" "+s+'-opacity="'+i.toFixed(2).slice(1)+'"':u}function n(a,s,i){let u=a+s;return typeof i<"u"&&(u+=" "+i),u}function r(a,s,i){let u="",c=0,f=!1,h=0;for(let m=0;m<a.length;m++){const g=Math.floor(m%s),y=Math.floor(m/s);!g&&!f&&(f=!0),a[m]?(h++,m>0&&g>0&&a[m-1]||(u+=f?n("M",g+i,.5+y+i):n("m",c,0),c=0,f=!1),g+1<s&&a[m+1]||(u+=n("h",h),h=0)):c++}return u}return VC.render=function(s,i,u){const c=e.getOptions(i),f=s.modules.size,h=s.modules.data,m=f+c.margin*2,g=c.color.light.a?"<path "+t(c.color.light,"fill")+' d="M0 0h'+m+"v"+m+'H0z"/>':"",y="<path "+t(c.color.dark,"stroke")+' d="'+r(h,f,c.margin)+'"/>',S='viewBox="0 0 '+m+" "+m+'"',x='<svg xmlns="http://www.w3.org/2000/svg" '+(c.width?'width="'+c.width+'" height="'+c.width+'" ':"")+S+' shape-rendering="crispEdges">'+g+y+`</svg>
216
+ `;return typeof u=="function"&&u(null,x),x},VC}var zP;function Lge(){if(zP)return bc;zP=1;const e=mge(),t=Mge(),n=Pge(),r=Dge();function a(s,i,u,c,f){const h=[].slice.call(arguments,1),m=h.length,g=typeof h[m-1]=="function";if(!g&&!e())throw new Error("Callback required as last argument");if(g){if(m<2)throw new Error("Too few arguments provided");m===2?(f=u,u=i,i=c=void 0):m===3&&(i.getContext&&typeof f>"u"?(f=c,c=void 0):(f=c,c=u,u=i,i=void 0))}else{if(m<1)throw new Error("Too few arguments provided");return m===1?(u=i,i=c=void 0):m===2&&!i.getContext&&(c=u,u=i,i=void 0),new Promise(function(y,S){try{const w=t.create(u,c);y(s(w,i,c))}catch(w){S(w)}})}try{const y=t.create(u,c);f(null,s(y,i,c))}catch(y){f(y)}}return bc.create=t.create,bc.toCanvas=a.bind(null,n.render),bc.toDataURL=a.bind(null,n.renderToDataURL),bc.toString=a.bind(null,function(s,i,u){return r.render(s,u)}),bc}var Uge=Lge();const jge=_d(Uge),zge=e=>e==="signIn"||e==="signUp",NA=e=>!!e&&(e==="EMAIL_OTP"||e==="SMS_MFA"),{getConfirmText:Fge,getConfirmingText:$ge,getBackToSignInText:Bge,getResendCodeText:Hge}=$n,Zv=()=>{const{isPending:e,toSignIn:t,challengeName:n,resendCode:r,selectedAuthMethod:a,availableAuthMethods:s}=Ct(c=>[c.isPending,c.toSignIn,c.challengeName,c.resendCode,c.selectedAuthMethod,c.availableAuthMethods]),i=!!a&&a!=="PASSWORD"||!!s?.some(c=>c!=="PASSWORD"),u=NA(n)&&i&&r;return F.createElement(He,{direction:"column"},F.createElement(dn,{isDisabled:e,type:"submit",variation:"primary",isLoading:e,loadingText:$ge()},Fge()),u&&F.createElement(dn,{onClick:r,type:"button"},Hge()),F.createElement(dn,{onClick:t,type:"button",variation:"link",size:"small"},Bge()))},qge=new ur("SetupTotp-logger"),{getSetupTotpText:Vge,getCopiedText:Wge,getLoadingText:Gge}=$n,Ki=({className:e,variation:t})=>{const{totpSecretCode:n,isPending:r,username:a,QRFields:s}=Ct(R=>[R.isPending,R.totpSecretCode,R.username]),{handleChange:i,handleSubmit:u}=ha(),{components:{SetupTotp:{Header:c=Ki.Header,Footer:f=Ki.Footer}}}=fa(),[h,m]=E.useState(!0),[g,y]=E.useState(),[S,w]=E.useState("COPY"),{totpIssuer:x="AWSCognito",totpUsername:_=a}=s??{},k=E.useCallback(async()=>{try{const R=Uue(x,_,n),N=await jge.toDataURL(R);y(N)}catch(R){qge.error(R)}finally{m(!1)}},[x,_,n]);E.useEffect(()=>{g||k()},[k,g]);const A=()=>{navigator.clipboard.writeText(n),w(Wge())};return E.createElement(Zr,{className:e,variation:t},E.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-setup-totp":"",method:"post",onChange:i,onSubmit:u},E.createElement(He,{as:"fieldset",direction:"column",isDisabled:r},E.createElement(c,null),E.createElement(He,{direction:"column"},h?E.createElement("p",null,Gge(),"…"):E.createElement("img",{"data-amplify-qrcode":!0,src:g,alt:"qr code",width:"228",height:"228"}),E.createElement(He,{"data-amplify-copy":!0},E.createElement("div",null,n),E.createElement(He,{"data-amplify-copy-svg":!0,onClick:A},E.createElement("div",{"data-amplify-copy-tooltip":!0},S),E.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},E.createElement("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM15 5H8C6.9 5 6.01 5.9 6.01 7L6 21C6 22.1 6.89 23 7.99 23H19C20.1 23 21 22.1 21 21V11L15 5ZM8 21V7H14V12H19V21H8Z"})))),E.createElement(zs,null),E.createElement(Xr,null)),E.createElement(Zv,null),E.createElement(f,null))))};Ki.Header=function(){return E.createElement(Or,{level:3},Vge())};Ki.Footer=function(){return null};const{getSubmitText:Kge,getSubmittingText:Yge}=$n,Xv=e=>{const{cancelButtonSendType:t,cancelButtonText:n,submitButtonText:r}=e,{isPending:a,resendCode:s,skipVerification:i,toSignIn:u}=Ct(m=>[m.isPending]),c=()=>{switch(t){case"SKIP":i();break;case"RESEND":s();break;case"SIGN_IN":u();break;default:return}},f=a?F.createElement(F.Fragment,null,Yge(),"…"):F.createElement(F.Fragment,null,Kge()),h=r??f;return F.createElement(He,{direction:"column"},F.createElement(dn,{variation:"primary",isDisabled:a,type:"submit"},h),F.createElement(He,{direction:"column",alignItems:"center"},F.createElement(dn,{onClick:c,type:"button",variation:"link",size:"small"},n)))},Zge=()=>F.createElement("svg",{"aria-label":"Apple icon",className:"amplify-icon federated-sign-in-icon",fill:"#000",preserveAspectRatio:"xMidYMid",stroke:"#000",strokeWidth:"0",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"})),Xge=()=>F.createElement("svg",{"aria-label":"Google icon",className:"amplify-icon federated-sign-in-icon",viewBox:"0 0 256 262",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},F.createElement("path",{d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",fill:"#4285F4"}),F.createElement("path",{d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",fill:"#34A853"}),F.createElement("path",{d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",fill:"#FBBC05"}),F.createElement("path",{d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",fill:"#EB4335"})),Qge=()=>F.createElement(lF,{className:"federated-sign-in-icon",ariaLabel:"Facebook icon",viewBox:{minX:0,minY:0,width:279,height:538},pathData:"M82.3409742,538 L82.3409742,292.936652 L0,292.936652 L0,196.990154 L82.2410458,196.990154 L82.2410458,126.4295 C82.2410458,44.575144 132.205229,0 205.252865,0 C240.227794,0 270.306232,2.59855099 279,3.79788222 L279,89.2502322 L228.536175,89.2502322 C188.964542,89.2502322 181.270057,108.139699 181.270057,135.824262 L181.270057,196.89021 L276.202006,196.89021 L263.810888,292.836708 L181.16913,292.836708 L181.16913,538 L82.3409742,538 Z",fill:"#1877F2"}),Jge=()=>F.createElement("svg",{"aria-label":"Amazon icon",className:"amplify-icon federated-sign-in-icon",viewBox:"0 0 243 264",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},F.createElement("path",{d:"M230.826 208.039C227.468 203.683 208.551 205.982 200.056 206.998C197.471 207.321 197.076 205.042 199.407 203.405C214.475 192.665 239.201 195.766 242.082 199.364C244.966 202.982 241.337 228.071 227.173 240.049C225.001 241.888 222.93 240.904 223.898 238.468C227.077 230.431 234.205 212.419 230.826 208.039ZM123.769 264C71.0234 264 39.0764 241.955 14.7853 217.542C9.97339 212.706 3.71799 206.296 0.311513 200.691C-1.09773 198.372 2.59096 195.022 5.04421 196.844C35.239 219.268 79.1012 239.538 122.53 239.538C151.82 239.538 188.046 227.47 217.669 214.868C222.147 212.966 222.147 219.18 221.512 221.061C221.183 222.032 206.515 236.221 186.247 247.047C167.304 257.166 143.397 264 123.769 264Z",fill:"#F2541B"}),F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M142.943 111.185C142.943 124.756 143.268 136.054 136.406 148.123C130.856 157.913 122.027 163.95 112.222 163.95C98.8288 163.95 90.9806 153.772 90.9806 138.693C90.9806 109.036 117.677 103.647 142.943 103.647V111.185ZM178.166 196.081C175.858 198.15 171.635 198.22 169.914 196.894C157.974 187.684 149.89 173.688 149.89 173.688C130.706 193.156 117.127 199 92.2879 199C62.8772 199 40 180.905 40 144.729C40 116.461 55.3552 97.2408 77.2563 87.823C96.2094 79.5256 122.684 78.0173 142.943 75.7517C142.943 75.7517 144.633 53.933 138.699 45.9806C134.098 39.8163 126.272 36.9329 119.089 36.9329C106.127 36.8829 93.61 43.9051 91.1262 57.4188C90.4136 61.2829 87.5533 64.5261 84.54 64.206L51.0823 60.5922C48.5156 60.2951 45.0381 57.6639 45.8636 53.3081C53.644 12.3684 90.7373 0 123.989 0C140.983 0 163.21 4.51651 176.608 17.3349C193.597 33.1648 191.969 54.2755 191.969 77.2722V131.51C191.969 147.835 198.768 154.987 205.151 163.775C207.376 166.953 207.886 170.714 205.04 173.032C197.902 178.999 178.166 196.081 178.166 196.081Z",fill:"#F2541B"})),Cg=e=>{const{icon:t,provider:n,text:r}=e,{toFederatedSignIn:a}=Ct(),s=u=>{u.preventDefault(),a({provider:n})};let i;return t==="facebook"?i=F.createElement(Qge,null):t==="google"?i=F.createElement(Xge,null):t==="amazon"?i=F.createElement(Jge,null):t==="apple"&&(i=F.createElement(Zge,null)),F.createElement(dn,{onClick:s,className:"federated-sign-in-button",gap:"1rem"},i,F.createElement(Ta,{as:"span"},r))},{getSignInWithFederationText:Eg,getOrText:e0e}=$n;function RF(){const{route:e,socialProviders:t}=Ct(({route:n,socialProviders:r})=>[n,r]);return t.length===0?null:F.createElement(He,{direction:"column",padding:"0 0 1rem 0",className:"federated-sign-in-container"},t.map(n=>{switch(n){case"amazon":return F.createElement(Cg,{icon:"amazon",key:n,provider:zc.Amazon,text:Eg(e,n)});case"apple":return F.createElement(Cg,{icon:"apple",key:n,provider:zc.Apple,text:Eg(e,n)});case"facebook":return F.createElement(Cg,{icon:"facebook",key:n,provider:zc.Facebook,text:Eg(e,n)});case"google":return F.createElement(Cg,{icon:"google",key:n,provider:zc.Google,text:Eg(e,n)});default:console.error(`Authenticator does not support ${n}. Please open an issue: https://github.com/aws-amplify/amplify-ui/issues/choose`)}}),F.createElement(CA,{size:"small",label:e0e()}))}const{getSignInText:_g,getSigningInText:t0e,getForgotPasswordText:n0e,getSignInWithEmailText:r0e,getSignInWithSmsText:a0e,getSignInWithPasskeyText:s0e,getOtherSignInOptionsText:o0e,getEnterUsernameFirstText:i0e}=$n;function Ro(){const{isPending:e,availableAuthMethods:t,preferredChallenge:n,toShowAuthMethods:r}=Ct(_=>[_.isPending,_.availableAuthMethods,_.preferredChallenge,_.toShowAuthMethods]),{handleChange:a,handleSubmit:s}=ha(),[i,u]=F.useState(""),{components:{SignIn:{Header:c=Ro.Header,Footer:f=Ro.Footer}}}=fa(),m=t&&t.length>1&&n,g=i.trim().length>0,y=F.useCallback(_=>{const{name:k,value:A}=_.target;k==="username"&&typeof A=="string"&&u(A),a(_)},[a]),S=()=>{if(!n)return _g();switch(n){case"EMAIL_OTP":return r0e();case"SMS_OTP":return a0e();case"WEB_AUTHN":return s0e();default:return _g()}},w=_=>{_.preventDefault(),s(_)},x=_=>{_.preventDefault(),r()};return F.createElement(We,null,F.createElement(c,null),F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-signin":"",method:"post",onSubmit:m?w:s,onChange:y},F.createElement(RF,null),F.createElement(He,{direction:"column"},F.createElement(He,{as:"fieldset",direction:"column",isDisabled:e},F.createElement(Kv,null,F.createElement("legend",null,_g())),F.createElement(zs,null)),F.createElement(Xr,null),F.createElement(dn,{isDisabled:e,type:"submit",variation:"primary",isLoading:e,loadingText:t0e()},m?S():_g()),m&&F.createElement(dn,{onClick:x,size:"small",variation:"link",isDisabled:e||!g,title:g?void 0:i0e()},o0e()),F.createElement(f,null))))}const l0e=()=>{const{toForgotPassword:e}=Ct(t=>[t.toForgotPassword]);return F.createElement(We,{"data-amplify-footer":""},F.createElement(dn,{onClick:e,size:"small",variation:"link"},n0e()))};Ro.Footer=l0e;Ro.Header=function(){return null};const{getCreateAccountText:FP,getCreatingAccountText:u0e,getCreateAccountWithEmailText:c0e,getCreateAccountWithPasswordText:d0e,getCreateAccountWithSmsText:f0e,getOrText:h0e}=$n;function Ja(){const{hasValidationErrors:e,isPending:t,availableAuthMethods:n,preferredChallenge:r,selectedAuthMethod:a}=Ct(A=>[A.hasValidationErrors,A.isPending,A.availableAuthMethods,A.preferredChallenge,A.selectedAuthMethod]),{handleChange:s,handleBlur:i,handleSubmit:u}=ha(),{components:{SignUp:{Header:c=Ja.Header,FormFields:f=Ja.FormFields,Footer:h=Ja.Footer}}}=fa(),m=n?.filter(A=>A!=="WEB_AUTHN"),g=m&&m.length>1,y=r&&r!=="WEB_AUTHN"?r:"PASSWORD",S=m?.filter(A=>A!==y)??[],x=(a??y)!=="PASSWORD",_=A=>{switch(A){case"EMAIL_OTP":return c0e();case"SMS_OTP":return f0e();case"PASSWORD":return g?d0e():FP();default:return FP()}},k=A=>R=>{R.preventDefault();const N=R.target.closest("form");if(N){if(!N.__authMethod){const O=document.createElement("input");O.name="__authMethod",N.appendChild(O)}N.__authMethod.type="hidden",N.__authMethod.value=A,N.requestSubmit()}};return F.createElement(We,null,F.createElement(c,null),F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-signup":"",method:"post",onChange:s,onSubmit:u,onBlur:i},F.createElement(RF,null),F.createElement(He,{as:"fieldset",direction:"column",isDisabled:t},F.createElement(He,{direction:"column"},F.createElement(f,{includePassword:!x}),F.createElement(Xr,null)),F.createElement(dn,{isDisabled:(!g||S.length==0)&&e||t,isFullWidth:!0,type:"submit",variation:"primary",isLoading:t,loadingText:u0e(),onClick:k(y)},_(y)),g&&S.length>0&&F.createElement(F.Fragment,null,F.createElement(He,{justifyContent:"center",padding:"medium 0"},h0e()),S.map(A=>F.createElement(dn,{key:A,isDisabled:t,isFullWidth:!0,type:"button",variation:"primary",onClick:k(A)},_(A)))),F.createElement(h,null))))}Ja.Header=function(){return null};Ja.FormFields=function(){return F.createElement(zs,null)};Ja.Footer=function(){return null};const{getSignInTabText:p0e,getSignUpTabText:m0e}=$n,g0e=({className:e,hideSignUp:t,variation:n})=>{const{route:r,toSignIn:a,toSignUp:s}=Ct(i=>[i.route,i.toSignIn,i.toSignUp]);return F.createElement(Zr,{className:e,variation:n},t?F.createElement(We,{"data-amplify-router-content":""},r==="signIn"&&F.createElement(Ro,null)):F.createElement(Tl.Container,{value:r,isLazy:!0,onValueChange:i=>{i!==r&&(i==="signIn"?a():s())}},F.createElement(Tl.List,{spacing:"equal",indicatorPosition:"top"},F.createElement(Tl.Item,{value:"signIn"},p0e()),F.createElement(Tl.Item,{value:"signUp"},m0e())),F.createElement(Tl.Panel,{value:"signIn","data-amplify-router-content":""},F.createElement(Ro,null)),F.createElement(Tl.Panel,{value:"signUp","data-amplify-router-content":""},F.createElement(Ja,null))))},{getAccountRecoveryInfoText:v0e,getSkipText:y0e}=$n,eu=({className:e,variation:t})=>{const{isPending:n}=Ct(u=>[u.isPending]),{handleChange:r,handleSubmit:a}=ha(),{components:{ConfirmVerifyUser:{Header:s=eu.Header,Footer:i=eu.Footer}}}=fa();return F.createElement(Zr,{className:e,variation:t},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmverifyuser":"",method:"post",onChange:r,onSubmit:a},F.createElement(He,{as:"fieldset",direction:"column",isDisabled:n},F.createElement(s,null),F.createElement(He,{direction:"column"},F.createElement(zs,null)),F.createElement(Xr,null),F.createElement(Xv,{cancelButtonText:y0e(),cancelButtonSendType:"SKIP"}),F.createElement(i,null))))};eu.Header=function(){return F.createElement(Or,{level:3},v0e())};eu.Footer=function(){return null};const{getSkipText:b0e,getVerifyText:S0e,getVerifyContactText:w0e,getAccountRecoveryInfoText:x0e}=$n,C0e=e=>Object.entries(e).map(([t,n],r)=>{const a=Uv[t].label;return F.createElement(_A,{name:"unverifiedAttr",value:t,key:t,defaultChecked:r===0},be(a),":"," ",Due(a,n))}),tu=({className:e,variation:t})=>{const{components:{VerifyUser:{Header:n=tu.Header,Footer:r=tu.Footer}}}=fa(),{isPending:a,unverifiedUserAttributes:s}=Ct(({isPending:h,unverifiedUserAttributes:m})=>[h,m]),{handleChange:i,handleSubmit:u}=ha(),c=a?F.createElement(F.Fragment,null,"Verifying…"):F.createElement(F.Fragment,null,S0e()),f=F.createElement(kA,{legend:w0e(),name:"verify_context",isDisabled:a,legendHidden:!0},C0e(s));return F.createElement(Zr,{className:e,variation:t},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-verifyuser":"",method:"post",onChange:i,onSubmit:u},F.createElement(He,{as:"fieldset",direction:"column",isDisabled:a},F.createElement(n,null),f,F.createElement(Xr,null),F.createElement(Xv,{cancelButtonText:b0e(),cancelButtonSendType:"SKIP",submitButtonText:c}),F.createElement(r,null))))};tu.Header=function(){return F.createElement(Or,{level:3},x0e())};tu.Footer=function(){return null};const{getChallengeText:E0e,getDeliveryMessageText:_0e,getDeliveryMethodText:k0e}=$n,nu=({className:e,variation:t})=>{const{isPending:n,challengeName:r,codeDeliveryDetails:a}=Ct(h=>[h.isPending,h.challengeName,h.codeDeliveryDetails]),{handleChange:s,handleSubmit:i}=ha(),{components:{ConfirmSignIn:{Header:u=nu.Header,Footer:c=nu.Footer}}}=fa(),f=NA(r)&&a;return F.createElement(Zr,{className:e,variation:t},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmsignin":"",method:"post",onChange:s,onSubmit:i},F.createElement(He,{as:"fieldset",direction:"column",isDisabled:n},F.createElement(u,null),F.createElement(He,{direction:"column"},f&&F.createElement(Ta,{className:"amplify-authenticator__subtitle"},_0e(a)),F.createElement(zs,null),F.createElement(Xr,null)),F.createElement(Zv,null),F.createElement(c,null))))};function A0e(){const{challengeName:e,codeDeliveryDetails:t}=Ct(({challengeName:r,codeDeliveryDetails:a})=>[r,a]),n=NA(e)&&t;return F.createElement(F.Fragment,null,F.createElement(Or,{level:3},E0e(e)),n&&F.createElement(Or,{level:5},k0e(t)))}nu.Header=A0e;nu.Footer=function(){return null};const{getResendCodeText:I0e,getResetYourPasswordText:R0e}=$n,ru=({className:e,variation:t})=>{const{isPending:n}=Ct(c=>[c.isPending]),{handleBlur:r,handleChange:a,handleSubmit:s}=ha(),{components:{ConfirmResetPassword:{Header:i=ru.Header,Footer:u=ru.Footer}}}=fa();return F.createElement(Zr,{className:e,variation:t},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmresetpassword":"",method:"post",onSubmit:s,onChange:a,onBlur:r},F.createElement(He,{as:"fieldset",direction:"column",isDisabled:n},F.createElement(i,null),F.createElement(He,{direction:"column"},F.createElement(zs,null)),F.createElement(Xr,null),F.createElement(Xv,{cancelButtonSendType:"RESEND",cancelButtonText:I0e()}),F.createElement(u,null))))};ru.Header=function(){const t=R0e();return F.createElement(Or,{level:3},t)};ru.Footer=function(){return null};const{getBackToSignInText:T0e,getSendingText:O0e,getSendCodeText:N0e,getResetYourPasswordText:M0e}=$n,Yi=({className:e,variation:t})=>{const{isPending:n}=Ct(u=>[u.isPending]),{handleChange:r,handleSubmit:a}=ha(),{components:{ForgotPassword:{Header:s=Yi.Header,Footer:i=Yi.Footer}}}=fa();return F.createElement(Zr,{className:e,variation:t},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-forgotpassword":"",method:"post",onChange:r,onSubmit:a},F.createElement(He,{as:"fieldset",direction:"column",isDisabled:n},F.createElement(s,null),F.createElement(He,{direction:"column"},F.createElement(zs,null)),F.createElement(Xr,null),F.createElement(Xv,{cancelButtonText:T0e(),cancelButtonSendType:"SIGN_IN",submitButtonText:n?F.createElement(F.Fragment,null,O0e(),"…"):F.createElement(F.Fragment,null,N0e())}),F.createElement(i,null))))};Yi.Header=function(){return F.createElement(Or,{level:3},M0e())};Yi.Footer=function(){return null};const{getMfaTypeLabelByValue:P0e,getSelectMfaTypeByChallengeName:D0e,getSelectMfaTypeText:L0e}=$n,Zi=({className:e,variation:t})=>{const{isPending:n,allowedMfaTypes:r=[]}=Ct(c=>[c.isPending,c.allowedMfaTypes]),{handleChange:a,handleSubmit:s}=ha(),{components:{SelectMfaType:{Header:i=Zi.Header,Footer:u=Zi.Footer}}}=fa();return E.createElement(Zr,{className:e,variation:t},E.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-select-mfa-type":"",method:"post",onChange:a,onSubmit:s},E.createElement(He,{as:"fieldset",direction:"column",isDisabled:n},E.createElement(i,null),E.createElement(He,{direction:"column"},E.createElement(kA,{name:"mfa_type",legend:L0e(),legendHidden:!0,isDisabled:n,isRequired:!0},r.map((c,f)=>E.createElement(_A,{name:"mfa_type",key:c,value:c,defaultChecked:f===0},P0e(c)))),E.createElement(Xr,null)),E.createElement(Zv,null),E.createElement(u,null))))};Zi.Header=function(){const{challengeName:t}=Ct(n=>[n.challengeName]);return E.createElement(Or,{level:3},D0e(t))};Zi.Footer=function(){return null};const{getSetupEmailText:U0e}=$n,Xi=({className:e,variation:t})=>{const{isPending:n}=Ct(u=>[u.isPending]),{handleChange:r,handleSubmit:a}=ha(),{components:{SetupEmail:{Header:s=Xi.Header,Footer:i=Xi.Footer}}}=fa();return E.createElement(Zr,{className:e,variation:t},E.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-setup-email":"",method:"post",onChange:r,onSubmit:a},E.createElement(He,{as:"fieldset",direction:"column",isDisabled:n},E.createElement(s,null),E.createElement(He,{direction:"column"},E.createElement(zs,null),E.createElement(Xr,null)),E.createElement(Zv,null),E.createElement(i,null))))};Xi.Header=function(){return E.createElement(Or,{level:3},U0e())};Xi.Footer=function(){return null};const{getSignInWithPasswordText:M3,getSignInWithEmailText:j0e,getSignInWithSmsText:z0e,getSignInWithPasskeyText:F0e,getSigningInText:$0e,getBackToSignInText:B0e,getOrText:H0e,getUsernameLabelByLoginMechanism:q0e}=$n,V0e=e=>{switch(e){case"EMAIL_OTP":return j0e();case"SMS_OTP":return z0e();case"WEB_AUTHN":return F0e();case"PASSWORD":return M3();default:return M3()}},W0e=({className:e,variation:t})=>{const{isPending:n,username:r,availableAuthMethods:a,toSignIn:s,selectAuthMethod:i,loginMechanism:u}=Ct(w=>[w.isPending,w.username,w.availableAuthMethods,w.toSignIn,w.selectAuthMethod,w.loginMechanism]),{handleChange:c,handleSubmit:f}=ha(),h=a??[],m=h.includes("PASSWORD"),g=h.filter(w=>w!=="PASSWORD"),y=w=>{i({method:w})},S=q0e(u);return F.createElement(Zr,{className:e,variation:t},F.createElement("form",{"data-amplify-form":!0,"data-amplify-authenticator-signinselect":!0,method:"post",onSubmit:f,onChange:c},F.createElement(He,{direction:"column"},F.createElement(Pp,{label:S,name:"username",value:r,isReadOnly:!0,isDisabled:!0}),m&&F.createElement(F.Fragment,null,F.createElement(EA,{label:"Password",name:"password",autoComplete:"current-password",isDisabled:n}),F.createElement(dn,{isDisabled:n,type:"submit",variation:"primary",isFullWidth:!0,isLoading:n,loadingText:$0e()},M3())),m&&g.length>0&&F.createElement(CA,{label:H0e()}),g.length>0&&F.createElement(He,{direction:"column",gap:"0.5rem"},g.map(w=>F.createElement(dn,{key:w,variation:"primary",isFullWidth:!0,isDisabled:n,onClick:()=>y(w)},V0e(w)))),F.createElement(Xr,null),F.createElement(dn,{onClick:s,size:"small",variation:"link",isDisabled:n},B0e()))))},G0e=e=>{const{className:t,...n}=e;return E.createElement(We,{as:"span",width:"1em",height:"1em",className:Ve(ce.Icon,t),...n},E.createElement("svg",{width:"54",height:"54",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.createElement("path",{d:"M22.9333 38.9333L41.7333 20.1333L38 16.4L22.9333 31.4667L15.3333 23.8667L11.6 27.6L22.9333 38.9333ZM26.6667 53.3333C22.9778 53.3333 19.5111 52.6333 16.2667 51.2333C13.0222 49.8333 10.2 47.9333 7.8 45.5333C5.4 43.1333 3.5 40.3111 2.1 37.0667C0.7 33.8222 0 30.3556 0 26.6667C0 22.9778 0.7 19.5111 2.1 16.2667C3.5 13.0222 5.4 10.2 7.8 7.8C10.2 5.4 13.0222 3.5 16.2667 2.1C19.5111 0.7 22.9778 0 26.6667 0C30.3556 0 33.8222 0.7 37.0667 2.1C40.3111 3.5 43.1333 5.4 45.5333 7.8C47.9333 10.2 49.8333 13.0222 51.2333 16.2667C52.6333 19.5111 53.3333 22.9778 53.3333 26.6667C53.3333 30.3556 52.6333 33.8222 51.2333 37.0667C49.8333 40.3111 47.9333 43.1333 45.5333 45.5333C43.1333 47.9333 40.3111 49.8333 37.0667 51.2333C33.8222 52.6333 30.3556 53.3333 26.6667 53.3333Z",fill:"currentColor"})))},K0e=e=>{const{className:t,...n}=e;return E.createElement(We,{as:"span",width:"1em",height:"1em",className:Ve(ce.Icon,t),...n},E.createElement("svg",{width:"195",height:"128",viewBox:"0 0 195 128",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.createElement("circle",{cx:"60",cy:"36",r:"31",stroke:"#00404D",strokeWidth:"2"}),E.createElement("path",{d:"M60 69C84.4313 69 105.396 83.8504 114.357 105.021C116.774 110.729 115.382 116.168 111.798 120.23C108.191 124.319 102.358 127 96 127H24C17.6416 127 11.8094 124.319 8.20215 120.23C4.61836 116.168 3.22626 110.729 5.64258 105.021C14.6036 83.8504 35.5687 69 60 69Z",stroke:"#00404D",strokeWidth:"2"}),E.createElement("circle",{cx:"122",cy:"26",r:"25",fill:"#E9F9FC",stroke:"#00404D",strokeWidth:"2"}),E.createElement("mask",{id:"path-4-inside-1_4178_10171",fill:"white"},E.createElement("path",{d:"M121.951 13.927C124.887 13.927 127.658 14.5348 130.262 15.7503C132.866 16.9658 135.04 18.7222 136.786 21.0197C136.98 21.2601 137.042 21.4738 136.973 21.6608C136.903 21.8478 136.786 22.0081 136.619 22.1417C136.453 22.2753 136.259 22.3354 136.038 22.322C135.816 22.3086 135.622 22.1951 135.456 21.9814C133.932 19.8977 131.972 18.3015 129.576 17.1928C127.18 16.0842 124.638 15.5299 121.951 15.5299C119.264 15.5299 116.743 16.0842 114.388 17.1928C112.034 18.3015 110.081 19.8977 108.529 21.9814C108.363 22.2218 108.169 22.3554 107.947 22.3821C107.726 22.4088 107.532 22.3554 107.366 22.2218C107.172 22.0883 107.054 21.9213 107.012 21.7209C106.971 21.5206 107.033 21.3135 107.199 21.0998C108.917 18.8291 111.071 17.066 113.661 15.8104C116.251 14.5548 119.015 13.927 121.951 13.927ZM121.951 17.6937C125.691 17.6937 128.904 18.8959 131.591 21.3002C134.279 23.7045 135.622 26.6831 135.622 30.2361C135.622 31.5719 135.13 32.6872 134.147 33.5821C133.164 34.477 131.965 34.9245 130.553 34.9245C129.14 34.9245 127.928 34.477 126.917 33.5821C125.906 32.6872 125.4 31.5719 125.4 30.2361C125.4 29.3546 125.061 28.6132 124.382 28.0122C123.703 27.4111 122.893 27.1106 121.951 27.1106C121.009 27.1106 120.199 27.4111 119.52 28.0122C118.841 28.6132 118.502 29.3546 118.502 30.2361C118.502 32.8274 119.299 34.9913 120.891 36.7277C122.484 38.4642 124.541 39.6797 127.062 40.3742C127.311 40.4544 127.478 40.588 127.561 40.775C127.644 40.962 127.658 41.1623 127.602 41.376C127.547 41.563 127.436 41.7233 127.27 41.8569C127.104 41.9905 126.896 42.0305 126.647 41.9771C123.766 41.2825 121.411 39.9001 119.582 37.8297C117.754 35.7593 116.84 33.2281 116.84 30.2361C116.84 28.9004 117.339 27.7784 118.336 26.8701C119.333 25.9618 120.538 25.5077 121.951 25.5077C123.364 25.5077 124.569 25.9618 125.566 26.8701C126.563 27.7784 127.062 28.9004 127.062 30.2361C127.062 31.1177 127.408 31.859 128.101 32.4601C128.794 33.0612 129.611 33.3617 130.553 33.3617C131.495 33.3617 132.298 33.0612 132.963 32.4601C133.628 31.859 133.96 31.1177 133.96 30.2361C133.96 27.1373 132.783 24.5326 130.428 22.4222C128.073 20.3117 125.261 19.2565 121.993 19.2565C118.724 19.2565 115.912 20.3117 113.557 22.4222C111.202 24.5326 110.025 27.1239 110.025 30.1961C110.025 30.8372 110.087 31.6386 110.212 32.6004C110.337 33.5621 110.635 34.6841 111.106 35.9664C111.189 36.2068 111.182 36.4205 111.085 36.6075C110.988 36.7945 110.828 36.9281 110.607 37.0082C110.385 37.0884 110.171 37.0817 109.963 36.9882C109.755 36.8947 109.61 36.7411 109.526 36.5274C109.111 35.4855 108.813 34.4503 108.633 33.4218C108.453 32.3933 108.363 31.3314 108.363 30.2361C108.363 26.6831 109.7 23.7045 112.373 21.3002C115.046 18.8959 118.239 17.6937 121.951 17.6937ZM121.951 10C123.724 10 125.455 10.207 127.145 10.6211C128.835 11.0352 130.47 11.6296 132.049 12.4043C132.298 12.5379 132.443 12.6982 132.485 12.8852C132.526 13.0722 132.506 13.2592 132.423 13.4462C132.339 13.6332 132.201 13.7801 132.007 13.8869C131.813 13.9938 131.578 13.9804 131.301 13.8469C129.832 13.1256 128.316 12.5713 126.75 12.1839C125.185 11.7965 123.585 11.6029 121.951 11.6029C120.344 11.6029 118.765 11.7832 117.214 12.1438C115.663 12.5045 114.18 13.0722 112.768 13.8469C112.546 13.9804 112.324 14.0138 112.103 13.947C111.881 13.8803 111.715 13.74 111.604 13.5263C111.493 13.3126 111.466 13.1189 111.521 12.9453C111.576 12.7716 111.715 12.618 111.937 12.4844C113.488 11.683 115.109 11.0686 116.798 10.6411C118.488 10.2137 120.206 10 121.951 10ZM121.951 21.5807C124.527 21.5807 126.744 22.4155 128.6 24.0852C130.456 25.7548 131.384 27.8051 131.384 30.2361C131.384 30.4766 131.308 30.6702 131.155 30.8172C131.003 30.9641 130.802 31.0376 130.553 31.0376C130.331 31.0376 130.137 30.9641 129.971 30.8172C129.805 30.6702 129.722 30.4766 129.722 30.2361C129.722 28.2326 128.953 26.5562 127.415 25.2072C125.878 23.8581 124.056 23.1835 121.951 23.1835C119.846 23.1835 118.038 23.8581 116.528 25.2072C115.018 26.5562 114.264 28.2326 114.264 30.2361C114.264 32.4 114.651 34.2366 115.427 35.746C116.203 37.2553 117.339 38.7714 118.834 40.2941C119.001 40.4544 119.084 40.6414 119.084 40.8551C119.084 41.0688 119.001 41.2558 118.834 41.4161C118.668 41.5764 118.474 41.6565 118.253 41.6565C118.031 41.6565 117.837 41.5764 117.671 41.4161C116.037 39.7598 114.783 38.0701 113.91 36.347C113.038 34.624 112.601 32.587 112.601 30.2361C112.601 27.8051 113.516 25.7548 115.344 24.0852C117.172 22.4155 119.375 21.5807 121.951 21.5807ZM121.909 29.4347C122.159 29.4347 122.36 29.5148 122.512 29.6751C122.664 29.8354 122.741 30.0224 122.741 30.2361C122.741 32.2397 123.488 33.8826 124.984 35.1649C126.48 36.4472 128.226 37.0884 130.22 37.0884C130.386 37.0884 130.622 37.075 130.927 37.0483C131.231 37.0216 131.55 36.9815 131.882 36.9281C132.132 36.8747 132.346 36.9081 132.526 37.0283C132.706 37.1485 132.824 37.3288 132.88 37.5692C132.935 37.7829 132.893 37.9699 132.755 38.1302C132.616 38.2905 132.436 38.3974 132.215 38.4508C131.716 38.5844 131.28 38.6578 130.906 38.6712C130.532 38.6846 130.303 38.6912 130.22 38.6912C127.755 38.6912 125.615 37.8898 123.8 36.2869C121.986 34.6841 121.078 32.6671 121.078 30.2361C121.078 30.0224 121.155 29.8354 121.307 29.6751C121.459 29.5148 121.66 29.4347 121.909 29.4347Z"})),E.createElement("path",{d:"M121.951 13.927C124.887 13.927 127.658 14.5348 130.262 15.7503C132.866 16.9658 135.04 18.7222 136.786 21.0197C136.98 21.2601 137.042 21.4738 136.973 21.6608C136.903 21.8478 136.786 22.0081 136.619 22.1417C136.453 22.2753 136.259 22.3354 136.038 22.322C135.816 22.3086 135.622 22.1951 135.456 21.9814C133.932 19.8977 131.972 18.3015 129.576 17.1928C127.18 16.0842 124.638 15.5299 121.951 15.5299C119.264 15.5299 116.743 16.0842 114.388 17.1928C112.034 18.3015 110.081 19.8977 108.529 21.9814C108.363 22.2218 108.169 22.3554 107.947 22.3821C107.726 22.4088 107.532 22.3554 107.366 22.2218C107.172 22.0883 107.054 21.9213 107.012 21.7209C106.971 21.5206 107.033 21.3135 107.199 21.0998C108.917 18.8291 111.071 17.066 113.661 15.8104C116.251 14.5548 119.015 13.927 121.951 13.927ZM121.951 17.6937C125.691 17.6937 128.904 18.8959 131.591 21.3002C134.279 23.7045 135.622 26.6831 135.622 30.2361C135.622 31.5719 135.13 32.6872 134.147 33.5821C133.164 34.477 131.965 34.9245 130.553 34.9245C129.14 34.9245 127.928 34.477 126.917 33.5821C125.906 32.6872 125.4 31.5719 125.4 30.2361C125.4 29.3546 125.061 28.6132 124.382 28.0122C123.703 27.4111 122.893 27.1106 121.951 27.1106C121.009 27.1106 120.199 27.4111 119.52 28.0122C118.841 28.6132 118.502 29.3546 118.502 30.2361C118.502 32.8274 119.299 34.9913 120.891 36.7277C122.484 38.4642 124.541 39.6797 127.062 40.3742C127.311 40.4544 127.478 40.588 127.561 40.775C127.644 40.962 127.658 41.1623 127.602 41.376C127.547 41.563 127.436 41.7233 127.27 41.8569C127.104 41.9905 126.896 42.0305 126.647 41.9771C123.766 41.2825 121.411 39.9001 119.582 37.8297C117.754 35.7593 116.84 33.2281 116.84 30.2361C116.84 28.9004 117.339 27.7784 118.336 26.8701C119.333 25.9618 120.538 25.5077 121.951 25.5077C123.364 25.5077 124.569 25.9618 125.566 26.8701C126.563 27.7784 127.062 28.9004 127.062 30.2361C127.062 31.1177 127.408 31.859 128.101 32.4601C128.794 33.0612 129.611 33.3617 130.553 33.3617C131.495 33.3617 132.298 33.0612 132.963 32.4601C133.628 31.859 133.96 31.1177 133.96 30.2361C133.96 27.1373 132.783 24.5326 130.428 22.4222C128.073 20.3117 125.261 19.2565 121.993 19.2565C118.724 19.2565 115.912 20.3117 113.557 22.4222C111.202 24.5326 110.025 27.1239 110.025 30.1961C110.025 30.8372 110.087 31.6386 110.212 32.6004C110.337 33.5621 110.635 34.6841 111.106 35.9664C111.189 36.2068 111.182 36.4205 111.085 36.6075C110.988 36.7945 110.828 36.9281 110.607 37.0082C110.385 37.0884 110.171 37.0817 109.963 36.9882C109.755 36.8947 109.61 36.7411 109.526 36.5274C109.111 35.4855 108.813 34.4503 108.633 33.4218C108.453 32.3933 108.363 31.3314 108.363 30.2361C108.363 26.6831 109.7 23.7045 112.373 21.3002C115.046 18.8959 118.239 17.6937 121.951 17.6937ZM121.951 10C123.724 10 125.455 10.207 127.145 10.6211C128.835 11.0352 130.47 11.6296 132.049 12.4043C132.298 12.5379 132.443 12.6982 132.485 12.8852C132.526 13.0722 132.506 13.2592 132.423 13.4462C132.339 13.6332 132.201 13.7801 132.007 13.8869C131.813 13.9938 131.578 13.9804 131.301 13.8469C129.832 13.1256 128.316 12.5713 126.75 12.1839C125.185 11.7965 123.585 11.6029 121.951 11.6029C120.344 11.6029 118.765 11.7832 117.214 12.1438C115.663 12.5045 114.18 13.0722 112.768 13.8469C112.546 13.9804 112.324 14.0138 112.103 13.947C111.881 13.8803 111.715 13.74 111.604 13.5263C111.493 13.3126 111.466 13.1189 111.521 12.9453C111.576 12.7716 111.715 12.618 111.937 12.4844C113.488 11.683 115.109 11.0686 116.798 10.6411C118.488 10.2137 120.206 10 121.951 10ZM121.951 21.5807C124.527 21.5807 126.744 22.4155 128.6 24.0852C130.456 25.7548 131.384 27.8051 131.384 30.2361C131.384 30.4766 131.308 30.6702 131.155 30.8172C131.003 30.9641 130.802 31.0376 130.553 31.0376C130.331 31.0376 130.137 30.9641 129.971 30.8172C129.805 30.6702 129.722 30.4766 129.722 30.2361C129.722 28.2326 128.953 26.5562 127.415 25.2072C125.878 23.8581 124.056 23.1835 121.951 23.1835C119.846 23.1835 118.038 23.8581 116.528 25.2072C115.018 26.5562 114.264 28.2326 114.264 30.2361C114.264 32.4 114.651 34.2366 115.427 35.746C116.203 37.2553 117.339 38.7714 118.834 40.2941C119.001 40.4544 119.084 40.6414 119.084 40.8551C119.084 41.0688 119.001 41.2558 118.834 41.4161C118.668 41.5764 118.474 41.6565 118.253 41.6565C118.031 41.6565 117.837 41.5764 117.671 41.4161C116.037 39.7598 114.783 38.0701 113.91 36.347C113.038 34.624 112.601 32.587 112.601 30.2361C112.601 27.8051 113.516 25.7548 115.344 24.0852C117.172 22.4155 119.375 21.5807 121.951 21.5807ZM121.909 29.4347C122.159 29.4347 122.36 29.5148 122.512 29.6751C122.664 29.8354 122.741 30.0224 122.741 30.2361C122.741 32.2397 123.488 33.8826 124.984 35.1649C126.48 36.4472 128.226 37.0884 130.22 37.0884C130.386 37.0884 130.622 37.075 130.927 37.0483C131.231 37.0216 131.55 36.9815 131.882 36.9281C132.132 36.8747 132.346 36.9081 132.526 37.0283C132.706 37.1485 132.824 37.3288 132.88 37.5692C132.935 37.7829 132.893 37.9699 132.755 38.1302C132.616 38.2905 132.436 38.3974 132.215 38.4508C131.716 38.5844 131.28 38.6578 130.906 38.6712C130.532 38.6846 130.303 38.6912 130.22 38.6912C127.755 38.6912 125.615 37.8898 123.8 36.2869C121.986 34.6841 121.078 32.6671 121.078 30.2361C121.078 30.0224 121.155 29.8354 121.307 29.6751C121.459 29.5148 121.66 29.4347 121.909 29.4347Z",fill:"#00404D",stroke:"#00404D",strokeWidth:"4",mask:"url(#path-4-inside-1_4178_10171)"}),E.createElement("circle",{cx:"167.5",cy:"49.5",r:"19.5",fill:"#E9F9FC",stroke:"#00404D",strokeWidth:"2"}),E.createElement("path",{d:"M167.89 43.65L161.26 54.18H167.89",stroke:"#00404D",strokeWidth:"2"}),E.createElement("path",{d:"M167.5 60.42C173.316 60.42 178.03 55.7056 178.03 49.89V48.72",stroke:"#00404D",strokeWidth:"2"}),E.createElement("circle",{cx:"173.74",cy:"43.26",r:"1",fill:"#00404D",stroke:"#00404D",strokeWidth:"1.12"}),E.createElement("circle",{cx:"160.48",cy:"43.26",r:"1",fill:"#00404D",stroke:"#00404D",strokeWidth:"1.12"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104 112C116.129 112 126.457 104.288 130.347 93.5H147.5L155.5 101.5L168 89L180.5 101.5L193 89L180.5 76.5H130.984C127.705 64.6779 116.866 56 104 56C88.536 56 76 68.536 76 84C76 99.464 88.536 112 104 112ZM104 98C111.732 98 118 91.732 118 84C118 76.268 111.732 70 104 70C96.268 70 90 76.268 90 84C90 91.732 96.268 98 104 98Z",fill:"#BCECF5"}),E.createElement("path",{d:"M130.347 93.5V92.5H129.645L129.407 93.1608L130.347 93.5ZM147.5 93.5L148.207 92.7929L147.914 92.5H147.5V93.5ZM155.5 101.5L154.793 102.207L155.5 102.914L156.207 102.207L155.5 101.5ZM168 89L168.707 88.2929L168 87.5858L167.293 88.2929L168 89ZM180.5 101.5L179.793 102.207L180.5 102.914L181.207 102.207L180.5 101.5ZM193 89L193.707 89.7071L194.414 89L193.707 88.2929L193 89ZM180.5 76.5L181.207 75.7929L180.914 75.5H180.5V76.5ZM130.984 76.5L130.021 76.7673L130.224 77.5H130.984V76.5ZM129.407 93.1608C125.655 103.565 115.694 111 104 111V113C116.564 113 127.259 105.011 131.288 93.8392L129.407 93.1608ZM147.5 92.5H130.347V94.5H147.5V92.5ZM156.207 100.793L148.207 92.7929L146.793 94.2071L154.793 102.207L156.207 100.793ZM167.293 88.2929L154.793 100.793L156.207 102.207L168.707 89.7071L167.293 88.2929ZM181.207 100.793L168.707 88.2929L167.293 89.7071L179.793 102.207L181.207 100.793ZM192.293 88.2929L179.793 100.793L181.207 102.207L193.707 89.7071L192.293 88.2929ZM179.793 77.2071L192.293 89.7071L193.707 88.2929L181.207 75.7929L179.793 77.2071ZM130.984 77.5H180.5V75.5H130.984V77.5ZM104 57C116.405 57 126.859 65.3669 130.021 76.7673L131.948 76.2327C128.552 63.9889 117.327 55 104 55V57ZM77 84C77 69.0883 89.0883 57 104 57V55C87.9837 55 75 67.9837 75 84H77ZM104 111C89.0883 111 77 98.9117 77 84H75C75 100.016 87.9837 113 104 113V111ZM117 84C117 91.1797 111.18 97 104 97V99C112.284 99 119 92.2843 119 84H117ZM104 71C111.18 71 117 76.8203 117 84H119C119 75.7157 112.284 69 104 69V71ZM91 84C91 76.8203 96.8203 71 104 71V69C95.7157 69 89 75.7157 89 84H91ZM104 97C96.8203 97 91 91.1797 91 84H89C89 92.2843 95.7157 99 104 99V97Z",fill:"#00404D"}),E.createElement("path",{d:"M138.5 57V66",stroke:"#00404D",strokeWidth:"2"}),E.createElement("path",{d:"M139 104V124",stroke:"#00404D",strokeWidth:"2"}),E.createElement("path",{d:"M134 61.5L143 61.5",stroke:"#00404D",strokeWidth:"2"}),E.createElement("path",{d:"M129 114L149 114",stroke:"#00404D",strokeWidth:"2"})))},{getPasskeyPromptHeadingText:Y0e,getPasskeyPromptDescriptionText:Z0e,getCreatePasskeyText:X0e,getRegisteringText:Q0e,getContinueWithoutPasskeyText:J0e,getPasskeyCreatedSuccessText:e1e,getPasskeyRegisteredText:t1e,getPasskeyRegistrationFailedText:n1e,getPasskeyLabelText:r1e,getExistingPasskeysText:a1e,getSetupAnotherPasskeyText:s1e,getContinueText:o1e}=$n;function i1e({className:e,variation:t}){const[n,r]=F.useState(!1),[a,s]=F.useState(null),[i,u]=F.useState(!1),[c,f]=F.useState([]),{submitForm:h,isPending:m}=Ct(_=>[_.submitForm,_.isPending]),g=F.useCallback(async()=>{try{const _=await nA();f(_.credentials||[])}catch{}},[]);F.useEffect(()=>{n&&g()},[n,g]);const y=F.useCallback(()=>{h({type:"SKIP"})},[h]),S=F.useCallback(()=>{h({type:"SUBMIT"})},[h]),w=F.useCallback(async()=>{try{s(null),u(!0),await nue(),r(!0)}catch(_){const k=_,A=k.name??"",R=k.message??"";if(A==="PasskeyRegistrationCanceled"||A==="NotAllowedError"||R.includes("canceled")||R.includes("cancelled")||R.includes("ceremony has been canceled")||R.includes("not allowed")){y();return}s(n1e())}finally{u(!1)}},[y]);if(n)return F.createElement(Zr,{className:e,variation:t},F.createElement(He,{direction:"column",padding:"large","data-amplify-authenticator-passkeyprompt":""},F.createElement(He,{direction:"column",gap:"xs"},F.createElement(G0e,{className:"amplify-authenticator__passkey-success-icon"}),F.createElement(Or,{level:4},e1e()),F.createElement(Ta,null,t1e())),c.length>0&&F.createElement(We,{marginTop:"large"},F.createElement(Or,{level:5},a1e()),F.createElement(He,{direction:"column",gap:"xs",marginTop:"xs"},c.map((_,k)=>F.createElement(We,{key:_.credentialId,className:"amplify-authenticator__passkey-credential-item"},F.createElement(Ta,{fontSize:"small"},_.friendlyCredentialName??`${r1e()} ${k+1}`))))),F.createElement(He,{direction:"column",gap:"medium",marginTop:"large"},F.createElement(dn,{onClick:()=>{r(!1),w()},variation:"link"},s1e()),F.createElement(dn,{onClick:()=>S(),variation:"primary",isFullWidth:!0},o1e()))));const x=m||i;return F.createElement(Zr,{className:e,variation:t},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-passkeyprompt":""},F.createElement(He,{direction:"column",gap:"medium"},F.createElement(Or,{level:4},Y0e()),F.createElement(Ta,null,Z0e()),F.createElement(He,{justifyContent:"center"},F.createElement(K0e,{className:"amplify-authenticator__passkey-icon"})),F.createElement(He,{direction:"column",gap:"medium"},F.createElement(dn,{onClick:()=>{w()},variation:"primary",isDisabled:x,isLoading:i,loadingText:Q0e()},X0e()),F.createElement(dn,{onClick:y,variation:"link",isDisabled:x},J0e()),a&&F.createElement(Ta,{className:"amplify-authenticator__passkey-error"},a),F.createElement(Xr,null)))))}function $P(){return null}const l1e=e=>{switch(e){case"authenticated":case"idle":case"setup":case"transition":return $P;case"confirmSignUp":return Jl;case"confirmSignIn":return nu;case"selectMfaType":return Zi;case"setupEmail":return Xi;case"setupTotp":return Ki;case"signIn":case"signUp":return g0e;case"signInSelectAuthFactor":return W0e;case"passkeyPrompt":return i1e;case"forceNewPassword":return Qa;case"forgotPassword":return Yi;case"confirmResetPassword":return ru;case"verifyUser":return tu;case"confirmVerifyUser":return eu;default:return console.warn(`Unhandled Authenticator route - please open an issue: ${e}`),$P}};function u1e({className:e,hideSignUp:t,variation:n}){const{route:r}=Ct(({route:s})=>[s]),a=E.useMemo(()=>l1e(r),[r]);return F.createElement(a,{className:e,hideSignUp:zge(r)?t:void 0,variation:n})}const c1e={Header:()=>null,SignIn:{Header:Ro.Header,Footer:Ro.Footer},SignUp:{Header:Ja.Header,FormFields:Ja.FormFields,Footer:Ja.Footer},ConfirmSignUp:{Header:Jl.Header,Footer:Jl.Footer},SelectMfaType:{Header:Zi.Header,Footer:Zi.Footer},SetupEmail:{Header:Xi.Header,Footer:Xi.Footer},SetupTotp:{Header:Ki.Header,Footer:Ki.Footer},ConfirmResetPassword:{Header:ru.Header,Footer:ru.Footer},ConfirmSignIn:{Header:nu.Header,Footer:nu.Footer},VerifyUser:{Header:tu.Header,Footer:tu.Footer},ConfirmVerifyUser:{Header:eu.Header,Footer:eu.Footer},ForceNewPassword:{Header:Qa.Header,Footer:Qa.Footer,FormFields:Qa.FormFields},ForgotPassword:{Header:Yi.Header,Footer:Yi.Footer},Footer:()=>null};function d1e({children:e,className:t,components:n,formFields:r,hideSignUp:a,initialState:s,loginMechanisms:i,passwordSettings:u,passwordless:c,signUpAttributes:f,services:h,socialProviders:m,variation:g}){sge({message:"The `passwordSettings` prop has been deprecated and will be removed in a future major version of Amplify UI.",shouldWarn:!1});const{route:y,signOut:S,user:w}=Ct(({route:k,signOut:A,user:R})=>[k,A,R]);Lpe({initialState:s,loginMechanisms:i,passwordSettings:u,passwordless:c,services:h,signUpAttributes:f,socialProviders:m,formFields:r});const x=E.useMemo(()=>({components:{...c1e,...n}}),[n]);return y==="authenticated"||y==="signOut"?e?E.createElement(E.Fragment,null,Ao(e)?e({signOut:S,user:w}):e):null:E.createElement(CF.Provider,{value:x},E.createElement(u1e,{className:t,hideSignUp:a,variation:g}))}function Fs(e){return jpe({componentName:"Authenticator",packageName:"react",version:age}),E.createElement(sF,null,E.createElement(d1e,{...e}))}Fs.Provider=sF;Fs.ForgotPassword=Yi;Fs.SetupTotp=Ki;Fs.SignIn=Ro;Fs.SignUp=Ja;Fs.ForceNewPassword=Qa;Fs.SelectMfaType=Zi;Fs.SetupEmail=Xi;const TF=({cssText:e,...t})=>e===void 0||/<\/style/i.test(e)?null:E.createElement("style",{...t,dangerouslySetInnerHTML:{__html:e}});TF.displayName="Style";const OF=({theme:e,...t})=>{if(!e)return null;const{name:n,cssText:r}=e;return E.createElement(TF,{...t,cssText:r,id:`amplify-theme-${n}`})};OF.displayName="ThemeStyle";function f1e({children:e,colorMode:t,direction:n="ltr",nonce:r,theme:a}){const s=E.useMemo(()=>({theme:Hv(a),colorMode:t}),[a,t]);return E.createElement(oF.Provider,{value:s},E.createElement(Dme,{dir:n},E.createElement("div",{"data-amplify-theme":s.theme.name,"data-amplify-color-mode":t,dir:n},e),a?E.createElement(OF,{theme:s.theme,nonce:r}):null))}const h1e=({configured:e,authStatus:t})=>t==="authenticated",p1e=e=>e?e.signInDetails?.loginId??e.username??null:null,m1e=({children:e,fallback:t=null})=>{const{authStatus:n,signOut:r,user:a}=Ct(s=>[s.authStatus,s.signOut,s.user]);return h1e({configured:!0,authStatus:n})?C.jsx(C.Fragment,{children:e({email:p1e(a),signOut:()=>r()})}):C.jsx(C.Fragment,{children:t})},g1e=({children:e,fallback:t=null})=>dv()?C.jsx(m1e,{fallback:t,children:e}):C.jsx(C.Fragment,{children:t}),BP='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Uo=e=>`var(${e})`,gn=Uo("--accent"),v1e=Uo("--accent-hover"),HP=Uo("--accent-soft"),Jf=Uo("--accent-fg"),qP=Uo("--surface"),Sc=Uo("--fg"),y1e=Uo("--surface-sunken"),kg=Uo("--fg-muted"),eh=Uo("--line"),b1e=Hv({name:"remit",tokens:{colors:{brand:{primary:{10:{value:HP},20:{value:HP},40:{value:gn},60:{value:gn},80:{value:gn},90:{value:gn},100:{value:gn}}},background:{primary:{value:qP},secondary:{value:y1e}},font:{primary:{value:Sc},secondary:{value:kg},tertiary:{value:kg},interactive:{value:gn},inverse:{value:Jf},hover:{value:gn},focus:{value:gn},active:{value:gn}},border:{primary:{value:eh},secondary:{value:eh},focus:{value:gn}}},fonts:{default:{variable:{value:BP},static:{value:BP}}},radii:{small:{value:"3px"},medium:{value:"5px"},large:{value:"7px"}},components:{authenticator:{router:{borderColor:{value:eh},borderWidth:{value:"1px"},boxShadow:{value:"0 10px 30px -10px rgb(15 23 42 / 0.18), 0 4px 12px -6px rgb(15 23 42 / 0.1)"},backgroundColor:{value:qP}},form:{padding:{value:"1.75rem"}},orContainer:{color:{value:kg}}},button:{color:{value:Sc},primary:{backgroundColor:{value:gn},color:{value:Jf},_hover:{backgroundColor:{value:v1e},color:{value:Jf}},_focus:{backgroundColor:{value:gn},color:{value:Jf}},_active:{backgroundColor:{value:gn},color:{value:Jf}}},link:{color:{value:gn},_hover:{color:{value:gn},backgroundColor:{value:"transparent"}},_focus:{color:{value:gn},backgroundColor:{value:"transparent"}},_active:{color:{value:gn},backgroundColor:{value:"transparent"}}}},fieldcontrol:{color:{value:Sc},borderColor:{value:eh},_focus:{borderColor:{value:gn},boxShadow:{value:`0 0 0 2px ${gn}`}}},field:{label:{color:{value:Sc}}},tabs:{borderColor:{value:eh},item:{color:{value:kg},backgroundColor:{value:"transparent"},_active:{color:{value:gn},borderColor:{value:gn},backgroundColor:{value:"transparent"}},_hover:{color:{value:gn}},_focus:{color:{value:gn}}}},heading:{color:{value:Sc}},text:{color:{value:Sc}}}}}),S1e={signIn:{username:{placeholder:"Enter your username"},password:{placeholder:"Enter your password"}},signUp:{username:{placeholder:"Enter your username"},password:{placeholder:"Enter your password"},confirm_password:{placeholder:"Confirm your password"}}},w1e=()=>C.jsx(K0,{tone:"warning",className:"fixed top-0 left-0 right-0 z-50 h-7 sm:h-10 overflow-hidden border-x-0 border-t-0",children:C.jsxs("span",{className:"flex items-center gap-2",children:[C.jsx("strong",{className:"font-semibold shrink-0",children:"Local dev"}),C.jsx("span",{className:"truncate hidden sm:inline",children:"— Cognito not configured. Set VITE_COGNITO_USER_POOL_ID and VITE_COGNITO_CLIENT_ID in .env.local to enable sign-in."}),C.jsx("span",{className:"truncate sm:hidden",children:"— no Cognito; signed out"})]})}),x1e=()=>C.jsx(cj,{note:Qj({betterAuthEnabled:!1,cognitoConfigured:dv()})}),C1e=({children:e})=>{const{authStatus:t}=Ct(n=>[n.authStatus]);return t==="authenticated"?C.jsx(C.Fragment,{children:e}):t==="configuring"?C.jsx(wv,{}):C.jsx(f1e,{theme:b1e,children:C.jsxs(uj,{children:[C.jsx(dj,{}),C.jsx(Fs,{hideSignUp:!1,formFields:S1e,components:{Footer:x1e}})]})})},E1e=({children:e})=>dv()?C.jsx(Fs.Provider,{children:C.jsx(C1e,{children:e})}):C.jsxs("div",{className:"pt-7 sm:pt-10 [&_#main-content]:h-[calc(100dvh-1.75rem)] sm:[&_#main-content]:h-[calc(100dvh-2.5rem)]",children:[C.jsx(w1e,{}),e]}),NF=60;let Xc=null;const MF=()=>Math.floor(Date.now()/1e3),_1e=e=>e!==null&&e.expiresAt-NF>MF(),k1e=async()=>{const t=(await sv()).tokens?.idToken;return t?(Xc={value:t.toString(),expiresAt:t.payload.exp??MF()+NF},Xc.value):(Xc=null,null)},A1e=async()=>dv()?_1e(Xc)?Xc.value:k1e():null,I1e=()=>{Xc=null},c1={configure:cU,getToken:A1e,resetToken:I1e,Shell:E1e,Account:g1e},R1e=({children:e})=>fv()?C.jsx(r1.Shell,{children:e}):C.jsx(c1.Shell,{children:e}),T1e=e=>fv()?C.jsx(r1.Account,{...e}):C.jsx(c1.Account,{...e}),O1e={configure:cU,getToken:()=>fv()?r1.getToken():c1.getToken(),resetToken:()=>{r1.resetToken(),c1.resetToken()},Shell:R1e,Account:T1e};var jd=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(){}},N1e=class extends jd{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},MA=new N1e,M1e={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},P1e=class{#e=M1e;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Dl=new P1e;function D1e(e){setTimeout(e,0)}var L1e=typeof window>"u"||"Deno"in globalThis;function Ar(){}function U1e(e,t){return typeof e=="function"?e(t):e}function P3(e){return typeof e=="number"&&e>=0&&e!==1/0}function PF(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Fi(e,t){return typeof e=="function"?e(t):e}function ua(e,t){return typeof e=="function"?e(t):e}function VP(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:s,queryKey:i,stale:u}=e;if(i){if(r){if(t.queryHash!==PA(i,t.options))return!1}else if(!Xh(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||a&&a!==t.state.fetchStatus||s&&!s(t))}function WP(e,t){const{exact:n,status:r,predicate:a,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(au(t.options.mutationKey)!==au(s))return!1}else if(!Xh(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function PA(e,t){return(t?.queryKeyHashFn||au)(e)}function au(e){return JSON.stringify(e,(t,n)=>D3(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Xh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Xh(e[n],t[n])):!1}var j1e=Object.prototype.hasOwnProperty;function DF(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=GP(e)&&GP(t);if(!r&&!(D3(e)&&D3(t)))return t;const s=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),u=i.length,c=r?new Array(u):{};let f=0;for(let h=0;h<u;h++){const m=r?h:i[h],g=e[m],y=t[m];if(g===y){c[m]=g,(r?h<s:j1e.call(e,m))&&f++;continue}if(g===null||y===null||typeof g!="object"||typeof y!="object"){c[m]=y;continue}const S=DF(g,y,n+1);c[m]=S,S===g&&f++}return s===u&&f===s?e:c}function d1(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function GP(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function D3(e){if(!KP(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!KP(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function KP(e){return Object.prototype.toString.call(e)==="[object Object]"}function z1e(e){return new Promise(t=>{Dl.setTimeout(t,e)})}function L3(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?DF(e,t):t}function F1e(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function $1e(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var DA=Symbol();function LF(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===DA?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function LA(e,t){return typeof e=="function"?e(...t):!!e}function B1e(e,t,n){let r=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??=t(),r||(r=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var Qh=(()=>{let e=()=>L1e;return{isServer(){return e()},setIsServer(t){e=t}}})();function U3(){let e,t;const n=new Promise((a,s)=>{e=a,t=s});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var H1e=D1e;function q1e(){let e=[],t=0,n=u=>{u()},r=u=>{u()},a=H1e;const s=u=>{t?e.push(u):a(()=>{n(u)})},i=()=>{const u=e;e=[],u.length&&a(()=>{r(()=>{u.forEach(c=>{n(c)})})})};return{batch:u=>{let c;t++;try{c=u()}finally{t--,t||i()}return c},batchCalls:u=>(...c)=>{s(()=>{u(...c)})},schedule:s,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{a=u}}}var Fn=q1e(),V1e=class extends jd{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&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)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},f1=new V1e;function W1e(e){return Math.min(1e3*2**e,3e4)}function UF(e){return(e??"online")==="online"?f1.isOnline():!0}var j3=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function jF(e){let t=!1,n=0,r;const a=U3(),s=()=>a.status!=="pending",i=w=>{if(!s()){const x=new j3(w);g(x),e.onCancel?.(x)}},u=()=>{t=!0},c=()=>{t=!1},f=()=>MA.isFocused()&&(e.networkMode==="always"||f1.isOnline())&&e.canRun(),h=()=>UF(e.networkMode)&&e.canRun(),m=w=>{s()||(r?.(),a.resolve(w))},g=w=>{s()||(r?.(),a.reject(w))},y=()=>new Promise(w=>{r=x=>{(s()||f())&&w(x)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),S=()=>{if(s())return;let w;const x=n===0?e.initialPromise:void 0;try{w=x??e.fn()}catch(_){w=Promise.reject(_)}Promise.resolve(w).then(m).catch(_=>{if(s())return;const k=e.retry??(Qh.isServer()?0:3),A=e.retryDelay??W1e,R=typeof A=="function"?A(n,_):A,N=k===!0||typeof k=="number"&&n<k||typeof k=="function"&&k(n,_);if(t||!N){g(_);return}n++,e.onFail?.(n,_),z1e(R).then(()=>f()?void 0:y()).then(()=>{t?g(_):S()})})};return{promise:a,status:()=>a.status,cancel:i,continue:()=>(r?.(),a),cancelRetry:u,continueRetry:c,canStart:h,start:()=>(h()?S():y().then(S),a)}}var zF=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),P3(this.gcTime)&&(this.#e=Dl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qh.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Dl.clearTimeout(this.#e),this.#e=void 0)}};function G1e(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],i=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},c=0;const f=async()=>{let h=!1;const m=S=>{B1e(S,()=>t.signal,()=>h=!0)},g=LF(t.options,t.fetchOptions),y=async(S,w,x)=>{if(h)return Promise.reject(t.signal.reason);if(w==null&&S.pages.length)return Promise.resolve(S);const k=(()=>{const O={client:t.client,queryKey:t.queryKey,pageParam:w,direction:x?"backward":"forward",meta:t.options.meta};return m(O),O})(),A=await g(k),{maxPages:R}=t.options,N=x?$1e:F1e;return{pages:N(S.pages,A,R),pageParams:N(S.pageParams,w,R)}};if(a&&s.length){const S=a==="backward",w=S?FF:z3,x={pages:s,pageParams:i},_=w(r,x);u=await y(x,_,S)}else{const S=e??s.length;do{const w=c===0?i[0]??r.initialPageParam:z3(r,u);if(c>0&&w==null)break;u=await y(u,w),c++}while(c<S)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function z3(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 FF(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function yNe(e,t){return t?z3(e,t)!=null:!1}function bNe(e,t){return!t||!e.getPreviousPageParam?!1:FF(e,t)!=null}var K1e=class extends zF{#e;#t;#n;#r;#s;#a;#i;#o;constructor(e){super(),this.#o=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#r=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=ZP(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#i,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=ZP(this.options);t.data!==void 0&&(this.setState(YP(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const n=L3(this.state.data,e,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:"setState",state:e})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Ar).catch(Ar):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>ua(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===DA||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Fi(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!PF(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#o||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const c=this.observers.find(f=>f.options.queryFn);c&&this.setOptions(c.options)}const n=new AbortController,r=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},a=()=>{const c=LF(this.options,t),h=(()=>{const m={client:this.#s,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#o=!1,this.options.persister?this.options.persister(c,h,this):c(h)},i=(()=>{const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:a};return r(c),c})();(this.#e==="infinite"?G1e(this.options.pages):this.options.behavior)?.onFetch(i,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==i.fetchOptions?.meta)&&this.#l({type:"fetch",meta:i.fetchOptions?.meta}),this.#a=jF({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:c=>{c instanceof j3&&c.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(c,f)=>{this.#l({type:"failed",failureCount:c,error:f})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0});try{const c=await this.#a.start();if(c===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(c),this.#r.config.onSuccess?.(c,this),this.#r.config.onSettled?.(c,this.state.error,this),c}catch(c){if(c instanceof j3){if(c.silent)return this.#a.promise;if(c.revert){if(this.state.data===void 0)throw c;return this.state.data}}throw this.#l({type:"error",error:c}),this.#r.config.onError?.(c,this),this.#r.config.onSettled?.(this.state.data,c,this),c}finally{this.scheduleGc()}}#l(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...$F(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...YP(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?r:void 0,r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Fn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function $F(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:UF(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function YP(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ZP(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Y1e=class extends jd{constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.#i=U3(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#s;#a;#i;#o;#c;#l;#p;#d;#f;#u;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),XP(this.#t,this.options)?this.#h():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return F3(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return F3(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ua(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#t.setOptions(this.options),t._defaulted&&!d1(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&QP(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||ua(this.options.enabled,this.#t)!==ua(t.enabled,this.#t)||Fi(this.options.staleTime,this.#t)!==Fi(t.staleTime,this.#t))&&this.#g();const a=this.#v();r&&(this.#t!==n||ua(this.options.enabled,this.#t)!==ua(t.enabled,this.#t)||a!==this.#u)&&this.#y(a)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return X1e(this,n)&&(this.#r=n,this.#a=this.options,this.#s=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#i.status==="pending"&&this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#x();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Ar)),t}#g(){this.#S();const e=Fi(this.options.staleTime,this.#t);if(Qh.isServer()||this.#r.isStale||!P3(e))return;const n=PF(this.#r.dataUpdatedAt,e)+1;this.#d=Dl.setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#u=e,!(Qh.isServer()||ua(this.options.enabled,this.#t)===!1||!P3(this.#u)||this.#u===0)&&(this.#f=Dl.setInterval(()=>{(this.options.refetchIntervalInBackground||MA.isFocused())&&this.#h()},this.#u))}#b(){this.#g(),this.#y(this.#v())}#S(){this.#d!==void 0&&(Dl.clearTimeout(this.#d),this.#d=void 0)}#w(){this.#f!==void 0&&(Dl.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){const n=this.#t,r=this.options,a=this.#r,s=this.#s,i=this.#a,c=e!==n?e.state:this.#n,{state:f}=e;let h={...f},m=!1,g;if(t._optimisticResults){const P=this.hasListeners(),L=!P&&XP(e,t),q=P&&QP(e,n,t,r);(L||q)&&(h={...h,...$F(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:y,errorUpdatedAt:S,status:w}=h;g=h.data;let x=!1;if(t.placeholderData!==void 0&&g===void 0&&w==="pending"){let P;a?.isPlaceholderData&&t.placeholderData===i?.placeholderData?(P=a.data,x=!0):P=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,P!==void 0&&(w="success",g=L3(a?.data,P,t),m=!0)}if(t.select&&g!==void 0&&!x)if(a&&g===s?.data&&t.select===this.#c)g=this.#l;else try{this.#c=t.select,g=t.select(g),g=L3(a?.data,g,t),this.#l=g,this.#o=null}catch(P){this.#o=P}this.#o&&(y=this.#o,g=this.#l,S=Date.now(),w="error");const _=h.fetchStatus==="fetching",k=w==="pending",A=w==="error",R=k&&_,N=g!==void 0,T={status:w,fetchStatus:h.fetchStatus,isPending:k,isSuccess:w==="success",isError:A,isInitialLoading:R,isLoading:R,data:g,dataUpdatedAt:h.dataUpdatedAt,error:y,errorUpdatedAt:S,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:h.dataUpdateCount>c.dataUpdateCount||h.errorUpdateCount>c.errorUpdateCount,isFetching:_,isRefetching:_&&!k,isLoadingError:A&&!N,isPaused:h.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:A&&N,isStale:UA(e,t),refetch:this.refetch,promise:this.#i,isEnabled:ua(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const P=T.data!==void 0,L=T.status==="error"&&!P,q=H=>{L?H.reject(T.error):P&&H.resolve(T.data)},j=()=>{const H=this.#i=T.promise=U3();q(H)},U=this.#i;switch(U.status){case"pending":e.queryHash===n.queryHash&&q(U);break;case"fulfilled":(L||T.data!==U.value)&&j();break;case"rejected":(!L||T.error!==U.reason)&&j();break}}return T}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#s=this.#t.state,this.#a=this.options,this.#s.data!==void 0&&(this.#p=this.#t),d1(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#m.size)return!0;const s=new Set(a??this.#m);return this.options.throwOnError&&s.add("error"),Object.keys(this.#r).some(i=>{const u=i;return this.#r[u]!==e[u]&&s.has(u)})};this.#C({listeners:n()})}#x(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#C(e){Fn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Z1e(e,t){return ua(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&ua(t.retryOnMount,e)===!1)}function XP(e,t){return Z1e(e,t)||e.state.data!==void 0&&F3(e,t,t.refetchOnMount)}function F3(e,t,n){if(ua(t.enabled,e)!==!1&&Fi(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&UA(e,t)}return!1}function QP(e,t,n,r){return(e!==t||ua(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&UA(e,n)}function UA(e,t){return ua(t.enabled,e)!==!1&&e.isStaleByTime(Fi(t.staleTime,e))}function X1e(e,t){return!d1(e.getCurrentResult(),t)}var Q1e=class extends zF{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||BF(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#s({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=jF({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,i)=>{this.#s({type:"failed",failureCount:s,error:i})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",a=!this.#r.canStart();try{if(r)t();else{this.#s({type:"pending",variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const i=await this.options.onMutate?.(e,n);i!==this.state.context&&this.#s({type:"pending",context:i,variables:e,isPaused:a})}const s=await this.#r.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#s({type:"success",data:s}),s}catch(s){try{await this.#n.config.onError?.(s,e,this.state.context,this,n)}catch(i){Promise.reject(i)}try{await this.options.onError?.(s,e,this.state.context,n)}catch(i){Promise.reject(i)}try{await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n)}catch(i){Promise.reject(i)}try{await this.options.onSettled?.(void 0,s,e,this.state.context,n)}catch(i){Promise.reject(i)}throw this.#s({type:"error",error:s}),s}finally{this.#n.runNext(this)}}#s(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Fn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function BF(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var HF=class extends jd{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new Q1e({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Ag(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Ag(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Ag(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Ag(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Fn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>WP(t,n))}findAll(e={}){return this.getAll().filter(t=>WP(e,t))}notify(e){Fn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Fn.batch(()=>Promise.all(e.map(t=>t.continue().catch(Ar))))}};function Ag(e){return e.options.scope?.id}var J1e=class extends jd{#e;#t=void 0;#n;#r;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),d1(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&au(n.mutationKey)!==au(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#s(),this.#a(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#s(),this.#a()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#s(){const t=this.#n?.state??BF();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#a(t){Fn.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#r.onSuccess?.(t.data,n,r,a)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(t.data,null,n,r,a)}catch(s){Promise.reject(s)}}else if(t?.type==="error"){try{this.#r.onError?.(t.error,n,r,a)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(void 0,t.error,n,r,a)}catch(s){Promise.reject(s)}}}this.listeners.forEach(n=>{n(this.#t)})})}},qF=class extends jd{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,a=t.queryHash??PA(r,t);let s=this.get(a);return s||(s=new K1e({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Fn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>VP(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>VP(e,n)):t}notify(e){Fn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Fn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Fn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},eve=class{#e;#t;#n;#r;#s;#a;#i;#o;constructor(e={}){this.#e=e.queryCache||new qF,this.#t=e.mutationCache||new HF,this.#n=e.defaultOptions||{},this.#r=new Map,this.#s=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#i=MA.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=f1.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#i?.(),this.#i=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Fi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(r.queryHash)?.state.data,i=U1e(t,s);if(i!==void 0)return this.#e.build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Fn.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Fn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Fn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Fn.batch(()=>this.#e.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Ar).catch(Ar)}invalidateQueries(e,t={}){return Fn.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Fn.batch(()=>this.#e.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let s=a.fetch(void 0,n);return n.throwOnError||(s=s.catch(Ar)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Ar)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Fi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ar).catch(Ar)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ar).catch(Ar)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return f1.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(au(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Xh(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#s.set(au(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],n={};return t.forEach(r=>{Xh(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=PA(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===DA&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},VF=E.createContext(void 0),zd=e=>{const t=E.useContext(VF);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},tve=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),C.jsx(VF.Provider,{value:e,children:t})),WF=E.createContext(!1),nve=()=>E.useContext(WF);WF.Provider;function rve(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ave=E.createContext(rve()),sve=()=>E.useContext(ave),ove=(e,t,n)=>{const r=n?.state.error&&typeof e.throwOnError=="function"?LA(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},ive=e=>{E.useEffect(()=>{e.clearReset()},[e])},lve=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||LA(n,[e.error,r])),uve=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},cve=(e,t)=>e.isLoading&&e.isFetching&&!t,dve=(e,t)=>e?.suspense&&t.isPending,JP=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function fve(e,t,n){const r=nve(),a=sve(),s=zd(),i=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(i);const u=s.getQueryCache().get(i.queryHash),c=e.subscribed!==!1;i._optimisticResults=r?"isRestoring":c?"optimistic":void 0,uve(i),ove(i,a,u),ive(a);const f=!s.getQueryCache().get(i.queryHash),[h]=E.useState(()=>new t(s,i)),m=h.getOptimisticResult(i),g=!r&&c;if(E.useSyncExternalStore(E.useCallback(y=>{const S=g?h.subscribe(Fn.batchCalls(y)):Ar;return h.updateResult(),S},[h,g]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),E.useEffect(()=>{h.setOptions(i)},[i,h]),dve(i,m))throw JP(i,h,a);if(lve({result:m,errorResetBoundary:a,throwOnError:i.throwOnError,query:u,suspense:i.suspense}))throw m.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(i,m),i.experimental_prefetchInRender&&!Qh.isServer()&&cve(m,r)&&(f?JP(i,h,a):u?.promise)?.catch(Ar).finally(()=>{h.updateResult()}),i.notifyOnChangeProps?m:h.trackResult(m)}function Jh(e,t){return fve(e,Y1e)}function jA(e,t){const n=zd(),[r]=E.useState(()=>new J1e(n,e));E.useEffect(()=>{r.setOptions(e)},[r,e]);const a=E.useSyncExternalStore(E.useCallback(i=>r.subscribe(Fn.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=E.useCallback((i,u)=>{r.mutate(i,u).catch(Ar)},[r]);if(a.error&&LA(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}const hve="modulepreload",pve=function(e){return"/"+e},e7={},Ke=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let c=function(f){return Promise.all(f.map(h=>Promise.resolve(h).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),u=i?.nonce||i?.getAttribute("nonce");a=c(n.map(f=>{if(f=pve(f),f in e7)return;e7[f]=!0;const h=f.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${m}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":hve,h||(g.as="script"),g.crossOrigin="",g.href=f,u&&g.setAttribute("nonce",u),document.head.appendChild(g),h)return new Promise((y,S)=>{g.addEventListener("load",y),g.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${f}`)))})}))}function s(i){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=i,window.dispatchEvent(u),!u.defaultPrevented)throw i}return a.then(i=>{for(const u of i||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})};var t7=E.use,Fc=typeof window<"u"?E.useLayoutEffect:E.useEffect;function WC(e){const t=E.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function mve(e,t,n={},r={}){E.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!="function")return;const a=new IntersectionObserver(([s])=>{t(s)},n);return a.observe(e.current),()=>{a.disconnect()}},[t,n,r.disabled,e])}function gve(e){const t=E.useRef(null);return E.useImperativeHandle(e,()=>t.current,[]),t}const GF=!1;function ep(e){return e[e.length-1]}function vve(e){return typeof e=="function"}function Ll(e,t){return vve(e)?e(t):e}const KF=Object.prototype.hasOwnProperty,n7=Object.prototype.propertyIsEnumerable;function YF(e){for(const t in e)if(KF.call(e,t))return!0;return!1}const yve=()=>Object.create(null),Il=(e,t)=>Ul(e,t,yve);function Ul(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;const a=t,s=s7(e)&&s7(a);if(!s&&!(h1(e)&&h1(a)))return a;const i=s?e:r7(e);if(!i)return a;const u=s?a:r7(a);if(!u)return a;const c=i.length,f=u.length,h=s?new Array(f):n();let m=0;for(let g=0;g<f;g++){const y=s?g:u[g],S=e[y],w=a[y];if(S===w){h[y]=S,(s?g<c:KF.call(e,y))&&m++;continue}if(S===null||w===null||typeof S!="object"||typeof w!="object"){h[y]=w;continue}const x=Ul(S,w,n,r+1);h[y]=x,x===S&&m++}return c===f&&m===c?e:h}function r7(e){const t=Object.getOwnPropertyNames(e);for(const a of t)if(!n7.call(e,a))return!1;const n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;const r=t;for(const a of n){if(!n7.call(e,a))return!1;r.push(a)}return r}function h1(e){if(!a7(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!a7(n)||!n.hasOwnProperty("isPrototypeOf"))}function a7(e){return Object.prototype.toString.call(e)==="[object Object]"}function s7(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ql(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,a=e.length;r<a;r++)if(!ql(e[r],t[r],n))return!1;return!0}if(h1(e)&&h1(t)){const r=n?.ignoreUndefined??!0;if(n?.partial){for(const i in t)if((!r||t[i]!==void 0)&&!ql(e[i],t[i],n))return!1;return!0}let a=0;if(!r)a=Object.keys(e).length;else for(const i in e)e[i]!==void 0&&a++;let s=0;for(const i in t)if((!r||t[i]!==void 0)&&(s++,s>a||!ql(e[i],t[i],n)))return!1;return a===s}return!1}function cd(e){let t,n;const r=new Promise((a,s)=>{t=a,n=s});return r.status="pending",r.resolve=a=>{r.status="resolved",r.value=a,t(a),e?.(a)},r.reject=a=>{r.status="rejected",n(a)},r}function bve(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function tp(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}const Sve=/[\x00-\x1f\x7f"<>`{}]/g;function wve(e){return e.replace(Sve,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function o7(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return wve(t)}const xve=["http:","https:","mailto:","tel:"];function p1(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function th(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,r="",a;for(;(a=t.exec(e))!==null;)r+=o7(e.slice(n,a.index))+a[0],n=t.lastIndex;r=r+o7(n?e.slice(n):e);let s=!1;return r.startsWith("//")&&(s=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:s}}function Cve(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function Eve(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Co(){throw new Error("Invariant failed")}function np(e){const t=new Map;let n,r;const a=s=>{s.next&&(s.prev?(s.prev.next=s.next,s.next.prev=s.prev,s.next=void 0,r&&(r.next=s,s.prev=r)):(s.next.prev=void 0,n=s.next,s.next=void 0,r&&(s.prev=r,r.next=s)),r=s)};return{get(s){const i=t.get(s);if(i)return a(i),i.value},set(s,i){if(t.size>=e&&n){const c=n;t.delete(c.key),c.next&&(n=c.next,c.next.prev=void 0),c===r&&(r=void 0)}const u=t.get(s);if(u)u.value=i,a(u);else{const c={key:s,value:i,prev:r};r&&(r.next=c),r=c,n||(n=c),t.set(s,c)}},clear(){t.clear(),n=void 0,r=void 0}}}const Ui=4,ZF=5;function _ve(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function XF(e,t,n=new Uint16Array(6)){const r=e.indexOf("/",t),a=r===-1?e.length:r,s=e.substring(t,a);if(!s||!s.includes("$"))return n[0]=0,n[1]=t,n[2]=t,n[3]=a,n[4]=a,n[5]=a,n;if(s==="$"){const u=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=u,n[4]=u,n[5]=u,n}if(s.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=a,n[4]=a,n[5]=a,n;const i=_ve(s);if(i){const[u,c]=i,f=s.charCodeAt(u+1);if(f===45){if(u+2<s.length&&s.charCodeAt(u+2)===36){const h=u+3,m=c;if(h<m)return n[0]=3,n[1]=t+u,n[2]=t+h,n[3]=t+m,n[4]=t+c+1,n[5]=a,n}}else if(f===36){const h=u+1,m=u+2;return m===c?(n[0]=2,n[1]=t+u,n[2]=t+h,n[3]=t+m,n[4]=t+c+1,n[5]=e.length,n):(n[0]=1,n[1]=t+u,n[2]=t+m,n[3]=t+c,n[4]=t+c+1,n[5]=a,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=a,n[4]=a,n[5]=a,n}function Qv(e,t,n,r,a,s,i){i?.(n);let u=r;{const c=n.fullPath??n.from,f=c.length,h=n.options?.caseSensitive??e,m=n.options?.params?.parse??n.options?.parseParams;for(;u<f;){const y=XF(c,u,t);let S;const w=u,x=y[5];switch(u=x+1,s++,y[0]){case 0:{const _=c.substring(y[2],y[3]);if(h){const k=a.static?.get(_);if(k)S=k;else{a.static??=new Map;const A=jl(n.fullPath??n.from);A.parent=a,A.depth=s,S=A,a.static.set(_,A)}}else{const k=_.toLowerCase(),A=a.staticInsensitive?.get(k);if(A)S=A;else{a.staticInsensitive??=new Map;const R=jl(n.fullPath??n.from);R.parent=a,R.depth=s,S=R,a.staticInsensitive.set(k,R)}}break}case 1:{const _=c.substring(w,y[1]),k=c.substring(y[4],x),A=h&&!!(_||k),R=_?A?_:_.toLowerCase():void 0,N=k?A?k:k.toLowerCase():void 0,O=!m&&a.dynamic?.find(T=>!T.parse&&T.caseSensitive===A&&T.prefix===R&&T.suffix===N);if(O)S=O;else{const T=KC(1,n.fullPath??n.from,A,R,N);S=T,T.depth=s,T.parent=a,a.dynamic??=[],a.dynamic.push(T)}break}case 3:{const _=c.substring(w,y[1]),k=c.substring(y[4],x),A=h&&!!(_||k),R=_?A?_:_.toLowerCase():void 0,N=k?A?k:k.toLowerCase():void 0,O=!m&&a.optional?.find(T=>!T.parse&&T.caseSensitive===A&&T.prefix===R&&T.suffix===N);if(O)S=O;else{const T=KC(3,n.fullPath??n.from,A,R,N);S=T,T.parent=a,T.depth=s,a.optional??=[],a.optional.push(T)}break}case 2:{const _=c.substring(w,y[1]),k=c.substring(y[4],x),A=h&&!!(_||k),R=_?A?_:_.toLowerCase():void 0,N=k?A?k:k.toLowerCase():void 0,O=KC(2,n.fullPath??n.from,A,R,N);S=O,O.parent=a,O.depth=s,a.wildcard??=[],a.wildcard.push(O)}}a=S}if(m&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const y=jl(n.fullPath??n.from);y.kind=ZF,y.parent=a,s++,y.depth=s,a.pathless??=[],a.pathless.push(y),a=y}const g=(n.path||!n.children)&&!n.isRoot;if(g&&c.endsWith("/")){const y=jl(n.fullPath??n.from);y.kind=Ui,y.parent=a,s++,y.depth=s,a.index=y,a=y}a.parse=m??null,a.priority=n.options?.params?.priority??0,g&&!a.route&&(a.route=n,a.fullPath=n.fullPath??n.from)}if(n.children)for(const c of n.children)Qv(e,t,c,u,a,s,i)}function GC(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Ii(e){if(e.pathless)for(const t of e.pathless)Ii(t);if(e.static)for(const t of e.static.values())Ii(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())Ii(t);if(e.dynamic?.length){e.dynamic.sort(GC);for(const t of e.dynamic)Ii(t)}if(e.optional?.length){e.optional.sort(GC);for(const t of e.optional)Ii(t)}if(e.wildcard?.length){e.wildcard.sort(GC);for(const t of e.wildcard)Ii(t)}}function jl(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function KC(e,t,n,r,a){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:a}}function kve(e,t){const n=jl("/"),r=new Uint16Array(6);for(const a of e)Qv(!1,r,a,1,n,0);Ii(n),t.masksTree=n,t.flatCache=np(1e3)}function Ave(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const r=zA(e,t.masksTree);return t.flatCache.set(e,r),r}function Ive(e,t,n,r,a){e||="/",r||="/";const s=t?`case\0${e}`:e;let i=a.singleCache.get(s);return i||(i=jl("/"),Qv(t,new Uint16Array(6),{from:e},1,i,0),a.singleCache.set(s,i)),zA(r,i,n)}function Rve(e,t,n=!1){const r=n?e:`nofuzz\0${e}`,a=t.matchCache.get(r);if(a!==void 0)return a;e||="/";let s;try{s=zA(e,t.segmentTree,n)}catch(i){if(i instanceof URIError)s=null;else throw i}return s&&(s.branch=JF(s.route)),t.matchCache.set(r,s),s}function Tve(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function Ove(e,t=!1,n){const r=jl(e.fullPath),a=new Uint16Array(6),s={},i={};let u=0;return Qv(t,a,e,1,r,0,c=>{if(n?.(c,u),c.id in s&&Co(),s[c.id]=c,u!==0&&c.path){const f=Tve(c.fullPath);(!i[f]||c.fullPath.endsWith("/"))&&(i[f]=c)}u++}),Ii(r),{processedTree:{segmentTree:r,singleCache:np(1e3),matchCache:np(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:i}}function zA(e,t,n=!1){const r=e.split("/"),a=Mve(e,r,t,n);if(!a)return null;const[s]=QF(e,r,a);return{route:a.node.route,rawParams:s}}function QF(e,t,n){const r=Nve(n.node);let a=null;const s=Object.create(null);let i=n.extract?.part??0,u=n.extract?.node??0,c=n.extract?.path??0,f=n.extract?.segment??0;for(;u<r.length;i++,u++,c++,f++){const h=r[u];if(h.kind===Ui)break;if(h.kind===ZF){f--,i--,c--;continue}const m=t[i],g=c;if(m&&(c+=m.length),h.kind===1){a??=n.node.fullPath.split("/");const y=a[f],S=h.prefix?.length??0;if(y.charCodeAt(S)===123){const w=h.suffix?.length??0,x=y.substring(S+2,y.length-w-1),_=m.substring(S,m.length-w);s[x]=decodeURIComponent(_)}else{const w=y.substring(1);s[w]=decodeURIComponent(m)}}else if(h.kind===3){if(n.skipped&1<<u){i--,c=g-1;continue}a??=n.node.fullPath.split("/");const y=a[f],S=h.prefix?.length??0,w=h.suffix?.length??0,x=y.substring(S+3,y.length-w-1),_=h.suffix||h.prefix?m.substring(S,m.length-w):m;_&&(s[x]=decodeURIComponent(_))}else if(h.kind===2){const y=h,S=e.substring(g+(y.prefix?.length??0),e.length-(y.suffix?.length??0)),w=decodeURIComponent(S);s["*"]=w,s._splat=w;break}}return n.rawParams&&Object.assign(s,n.rawParams),[s,{part:i,node:u,path:c,segment:f}]}function JF(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Nve(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Mve(e,t,n,r){if(e==="/"&&n.index)return{node:n.index,skipped:0};const a=!ep(t),s=a&&e!=="/",i=t.length-(a?1:0),u=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let c=null,f=null;for(;u.length;){const h=u.pop(),{node:m,index:g,skipped:y,depth:S,statics:w,dynamics:x,optionals:_}=h;let{extract:k,rawParams:A}=h;if(m.kind===2&&m.route&&!Rg(f,h))continue;if(m.parse){if(!i7(e,t,h))continue;A=h.rawParams,k=h.extract}r&&m.route&&m.kind!==Ui&&Rg(c,h)&&(c=h);const R=g===i;if(R&&(m.route&&(!s||m.kind===Ui||m.kind===2)&&Rg(f,h)&&(f=h),!m.optional&&!m.wildcard&&!m.index&&!m.pathless))continue;const N=R?void 0:t[g];let O;if(R&&m.index){const T={node:m.index,index:g,skipped:y,depth:S+1,statics:w,dynamics:x,optionals:_,extract:k,rawParams:A};let P=!0;if(m.index.parse&&(i7(e,t,T)||(P=!1)),P){if(!x&&!_&&!y&&Pve(w,i))return T;Rg(f,T)&&(f=T)}}if(m.wildcard)for(let T=m.wildcard.length-1;T>=0;T--){const P=m.wildcard[T],{prefix:L,suffix:q}=P;if(!(L&&(R||!(P.caseSensitive?N:O??=N.toLowerCase()).startsWith(L)))){if(q){if(R)continue;const j=t.slice(g).join("/").slice(-q.length);if((P.caseSensitive?j:j.toLowerCase())!==q)continue}u.push({node:P,index:i,skipped:y,depth:S+1,statics:w,dynamics:x,optionals:_,extract:k,rawParams:A})}}if(m.optional){const T=y|1<<S,P=S+1;for(let L=m.optional.length-1;L>=0;L--){const q=m.optional[L];u.push({node:q,index:g,skipped:T,depth:P,statics:w,dynamics:x,optionals:_,extract:k,rawParams:A})}if(!R)for(let L=m.optional.length-1;L>=0;L--){const q=m.optional[L],{prefix:j,suffix:U}=q;if(j||U){const H=q.caseSensitive?N:O??=N.toLowerCase();if(j&&!H.startsWith(j)||U&&!H.endsWith(U))continue}u.push({node:q,index:g+1,skipped:y,depth:P,statics:w,dynamics:x,optionals:_+Ig(i,g),extract:k,rawParams:A})}}if(!R&&m.dynamic&&N)for(let T=m.dynamic.length-1;T>=0;T--){const P=m.dynamic[T],{prefix:L,suffix:q}=P;if(L||q){const j=P.caseSensitive?N:O??=N.toLowerCase();if(L&&!j.startsWith(L)||q&&!j.endsWith(q))continue}u.push({node:P,index:g+1,skipped:y,depth:S+1,statics:w,dynamics:x+Ig(i,g),optionals:_,extract:k,rawParams:A})}if(!R&&m.staticInsensitive){const T=m.staticInsensitive.get(O??=N.toLowerCase());T&&u.push({node:T,index:g+1,skipped:y,depth:S+1,statics:w+Ig(i,g),dynamics:x,optionals:_,extract:k,rawParams:A})}if(!R&&m.static){const T=m.static.get(N);T&&u.push({node:T,index:g+1,skipped:y,depth:S+1,statics:w+Ig(i,g),dynamics:x,optionals:_,extract:k,rawParams:A})}if(m.pathless){const T=S+1;for(let P=m.pathless.length-1;P>=0;P--){const L=m.pathless[P];u.push({node:L,index:g,skipped:y,depth:T,statics:w,dynamics:x,optionals:_,extract:k,rawParams:A})}}}if(f)return f;if(r&&c){let h=c.index;for(let g=0;g<c.index;g++)h+=t[g].length;const m=h===e.length?"/":e.slice(h);return c.rawParams??=Object.create(null),c.rawParams["**"]=decodeURIComponent(m),c}return null}function Ig(e,t){return 2**(e-t-1)}function Pve(e,t){return e===2**(t-1)-1}function i7(e,t,n){let r,a;try{[r,a]=QF(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=a,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Rg(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Ui)>(e.node.kind===Ui)||t.node.kind===Ui==(e.node.kind===Ui)&&t.depth>e.depth))):!0}function I0(e){return FA(e.filter(t=>t!==void 0).join("/"))}function FA(e){return e.replace(/\/{2,}/g,"/")}function e$(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function xo(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function t$(e){return xo(e$(e))}function m1(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function Dve(e,t,n){return m1(e,n)===m1(t,n)}function Lve({base:e,to:t,trailingSlash:n="never",cache:r}){const a=t.startsWith("/"),s=!a&&t===".";let i;if(r){i=a?t:s?e:e+"\0"+t;const f=r.get(i);if(f)return f}let u;if(s)u=e.split("/");else if(a)u=t.split("/");else{for(u=e.split("/");u.length>1&&ep(u)==="";)u.pop();const f=t.split("/");for(let h=0,m=f.length;h<m;h++){const g=f[h];g===""?h?h===m-1&&u.push(g):u=[g]:g===".."?u.pop():g==="."||u.push(g)}}u.length>1&&(ep(u)===""?n==="never"&&u.pop():n==="always"&&u.push(""));const c=FA(u.join("/"))||"/";return i&&r&&r.set(i,c),c}function Uve(e){const t=new Map(e.map(a=>[encodeURIComponent(a),a])),n=Array.from(t.keys()).map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(n,"g");return a=>a.replace(r,s=>t.get(s)??s)}function YC(e,t,n){const r=t[e];return typeof r!="string"?r:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(a=>u7(a,n)).join("/"):u7(r,n)}function l7({path:e,params:t,decoder:n,...r}){let a=!1;const s=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:s,isMissingParams:a};if(!e.includes("$"))return{interpolatedPath:e,usedParams:s,isMissingParams:a};const i=e.length;let u=0,c,f="";for(;u<i;){const h=u;c=XF(e,h,c);const m=c[5];if(u=m+1,h===m)continue;const g=c[0];if(g===0){f+="/"+e.substring(h,m);continue}if(g===2){const y=t._splat;s._splat=y,s["*"]=y;const S=e.substring(h,c[1]),w=e.substring(c[4],m);if(!y){a=!0,(S||w)&&(f+="/"+S+w);continue}const x=YC("_splat",t,n);f+="/"+S+x+w;continue}if(g===1){const y=e.substring(c[2],c[3]);!a&&!(y in t)&&(a=!0),s[y]=t[y];const S=e.substring(h,c[1]),w=e.substring(c[4],m),x=YC(y,t,n)??"undefined";f+="/"+S+x+w;continue}if(g===3){const y=e.substring(c[2],c[3]),S=t[y];if(S==null)continue;s[y]=S;const w=e.substring(h,c[1]),x=e.substring(c[4],m),_=YC(y,t,n)??"";f+="/"+w+_+x;continue}}return e.endsWith("/")&&(f+="/"),{usedParams:s,interpolatedPath:f||"/",isMissingParams:a}}function u7(e,t){const n=encodeURIComponent(e);return t?.(n)??n}function Sr(e){return e?.isNotFound===!0}function jve(){try{return sessionStorage}catch{return}}const zve="tsr-scroll-restoration-v1_3",n$=jve();function Fve(){try{return JSON.parse(n$?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function $ve(){try{n$?.setItem(zve,JSON.stringify(Nc))}catch{}}const Nc=Fve(),c7="data-scroll-restoration-id",Bve=e=>e.state.__TSR_key||e.href;function Hve(e){const t=e.getAttribute(c7);if(t)return`[${c7}="${t}"]`;let n="",r=e,a;for(;a=r.parentNode;){let s=1,i=r;for(;i=i.previousElementSibling;)s++;const u=`${r.localName}:nth-child(${s})`;n=n?`${u} > ${n}`:u,r=a}return n}let Tg=!1;const R0="window";function $3(e){try{return typeof e=="function"?e():document.querySelector(e)}catch{}}function d7(e){const t=new Set;for(const n of e){if(n===R0)continue;const r=$3(n);r&&t.add(r)}return t}function qve(e,t){const n=e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);const a=e.options.getScrollRestorationKey||Bve,s=new Set,i=u=>{const c=Nc[u]||={};for(const f of s)f===document?c[R0]={scrollX,scrollY}:f.isConnected&&(c[Hve(f)]={scrollX:f.scrollLeft,scrollY:f.scrollTop})};n&&!r.restoration&&(r.restoration=!0,Tg=!1,history.scrollRestoration="manual",document.addEventListener("scroll",u=>{Tg||s.add(u.target)},!0),e.subscribe("onBeforeLoad",u=>{u.fromLocation&&i(a(u.fromLocation)),s.clear()}),addEventListener("pagehide",()=>{i(a(e.stores.resolvedLocation.get()??e.stores.location.get())),$ve()})),!r.reset&&(r.reset=!0,e.subscribe("onRendered",u=>{const c=e.options.scrollRestorationBehavior,f=e.options.scrollToTopSelectors,h=r.next,m=r.hash;let g;if(s.clear(),r.next=!0,r.hash=!1,typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;const y=a(u.toLocation),S=u.fromLocation&&a(u.fromLocation);if(r.restoring&&S&&S!==y){const w=Nc[S];if(w){let x=Nc[y];for(const _ in w){if(_===R0){if(h)continue}else{const k=$3(_);if(!k||h&&f&&(g??=d7(f),g.has(k)))continue}x||(x=Nc[y]={}),x[_]??=w[_]}}}Tg=!0;try{const w=u.toLocation.hash,x=u.toLocation.state.__hashScrollIntoViewOptions??!0;let _=!1;if(h){!w&&f&&(g??=d7(f));const k=w&&x&&m,A=r.restoring?Nc[y]:void 0;if(A)for(const R in A){const{scrollX:N,scrollY:O}=A[R];if(R===R0){if(k)continue;scrollTo({top:O,left:N,behavior:c}),_=!0}else{const T=$3(R);T&&(T.scrollLeft=N,T.scrollTop=O,g?.delete(T))}}if(!w){const R={top:0,left:0,behavior:c};if(_||scrollTo(R),g)for(const N of g)N.scrollTo(R)}}!_&&w&&x&&document.getElementById(w)?.scrollIntoView(x)}finally{Tg=!1}}))}function Vve(e,t=String){const n=new URLSearchParams;for(const r in e){const a=e[r];a!==void 0&&n.set(r,t(a))}return n.toString()}function ZC(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function Wve(e){const t=new URLSearchParams(e),n=Object.create(null);for(const[r,a]of t.entries()){const s=n[r];s==null?n[r]=ZC(a):Array.isArray(s)?s.push(ZC(a)):n[r]=[s,ZC(a)]}return n}const Gve=Yve(JSON.parse),Kve=Zve(JSON.stringify,JSON.parse);function Yve(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=Wve(t);for(const r in n){const a=n[r];if(typeof a=="string")try{n[r]=e(a)}catch{}}return n}}function Zve(e,t){const n=typeof t=="function";function r(a){if(typeof a=="object"&&a!==null)try{return e(a)}catch{}else if(n&&typeof a=="string")try{return t(a),e(a)}catch{}return a}return a=>{const s=Vve(a,r);return s?`?${s}`:""}}const Vl="__root__";function Dp(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Vr(e){return e instanceof Response&&!!e.options}function Xve(e){return{input:({url:t})=>{for(const n of e)t=B3(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=r$(e[n],t);return t}}}function Qve(e){const t=t$(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),a=`${r}/`;return{input:({url:s})=>{const i=e.caseSensitive?s.pathname:s.pathname.toLowerCase();return i===r?s.pathname="/":i.startsWith(a)&&(s.pathname=s.pathname.slice(n.length)),s},output:({url:s})=>(s.pathname=I0(["/",t,s.pathname]),s)}}function B3(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function r$(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Jve(e,t){const{createMutableStore:n,createReadonlyStore:r,batch:a,init:s}=t,i=new Map,u=new Map,c=new Map,f=n(e.status),h=n(e.loadedAt),m=n(e.isLoading),g=n(e.isTransitioning),y=n(e.location),S=n(e.resolvedLocation),w=n(e.statusCode),x=n(e.redirect),_=n([]),k=n([]),A=n([]),R=r(()=>XC(i,_.get())),N=r(()=>XC(u,k.get())),O=r(()=>XC(c,A.get())),T=r(()=>_.get()[0]),P=r(()=>_.get().some(X=>i.get(X)?.get().status==="pending")),L=r(()=>({locationHref:y.get().href,resolvedLocationHref:S.get()?.href,status:f.get()})),q=r(()=>({status:f.get(),loadedAt:h.get(),isLoading:m.get(),isTransitioning:g.get(),matches:R.get(),location:y.get(),resolvedLocation:S.get(),statusCode:w.get(),redirect:x.get()})),j=np(64);function U(X){let re=j.get(X);return re||(re=r(()=>{const de=_.get();for(const we of de){const z=i.get(we);if(z&&z.routeId===X)return z.get()}}),j.set(X,re)),re}const H={status:f,loadedAt:h,isLoading:m,isTransitioning:g,location:y,resolvedLocation:S,statusCode:w,redirect:x,matchesId:_,pendingIds:k,cachedIds:A,matches:R,pendingMatches:N,cachedMatches:O,firstId:T,hasPending:P,matchRouteDeps:L,matchStores:i,pendingMatchStores:u,cachedMatchStores:c,__store:q,getRouteMatchStore:U,setMatches:Z,setPending:se,setCached:B};Z(e.matches),s?.(H);function Z(X){QC(X,i,_,n,a)}function se(X){QC(X,u,k,n,a)}function B(X){QC(X,c,A,n,a)}return H}function XC(e,t){const n=[];for(const r of t){const a=e.get(r);a&&n.push(a.get())}return n}function QC(e,t,n,r,a){const s=e.map(u=>u.id),i=new Set(s);a(()=>{for(const u of t.keys())i.has(u)||t.delete(u);for(const u of e){const c=t.get(u.id);if(!c){const f=r(u);f.routeId=u.routeId,t.set(u.id,f);continue}c.routeId=u.routeId,c.get()!==u&&c.set(u)}Eve(n.get(),s)||n.set(s)})}const H3=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},eye=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Jv=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Wl=(e,t,n=!0)=>{const r={...e.router.options.context??{}},a=n?t:t-1;for(let s=0;s<=a;s++){const i=e.matches[s];if(!i)continue;const u=e.router.getMatch(i.id);u&&Object.assign(r,u.__routeContext,u.__beforeLoadContext)}return r},f7=(e,t)=>{if(!e.matches.length)return;const n=t.routeId,r=e.matches.findIndex(i=>i.routeId===e.router.routeTree.id),a=r>=0?r:0;let s=n?e.matches.findIndex(i=>i.routeId===n):e.firstBadMatchIndex??e.matches.length-1;s<0&&(s=a);for(let i=s;i>=0;i--){const u=e.matches[i];if(e.router.looseRoutesById[u.routeId].options.notFoundComponent)return i}return n?s:a},ji=(e,t,n)=>{if(!(!Vr(n)&&!Sr(n)))throw Vr(n)&&n.redirectHandled&&!n.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:Vr(n)?"redirected":Sr(n)?"notFound":r.status==="pending"?"success":r.status,context:Wl(e,t.index),isFetching:!1,error:n})),Sr(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Vr(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n))),n},a$=(e,t)=>{const n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},h7=(e,t,n)=>{const r=Wl(e,n);e.updateMatch(t,a=>({...a,context:r}))},nh=(e,t,n)=>{const{id:r,routeId:a}=e.matches[t],s=e.router.looseRoutesById[a];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,ji(e,e.router.getMatch(r),n);try{s.options.onError?.(n)}catch(i){n=i,ji(e,e.router.getMatch(r),n)}e.updateMatch(r,i=>(i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loadPromise?.resolve(),{...i,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Vr(n)&&!Sr(n)&&(e.serialError??=n)},s$=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const a=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Jv(e,t)&&(n.options.loader||n.options.beforeLoad||i$(n))&&typeof a=="number"&&a!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){const s=setTimeout(()=>{H3(e)},a);r._nonReactive.pendingTimeout=s}},tye=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;s$(e,t,n,r);const a=()=>{const s=e.router.getMatch(t);s.preload&&(s.status==="redirected"||s.status==="notFound")&&ji(e,s,s.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(a):a()},nye=(e,t,n,r)=>{const a=e.router.getMatch(t);let s=a._nonReactive.loadPromise;a._nonReactive.loadPromise=cd(()=>{s?.resolve(),s=void 0});const{paramsError:i,searchError:u}=a;i&&nh(e,n,i),u&&nh(e,n,u),s$(e,t,r,a);const c=new AbortController;let f=!1;const h=()=>{f||(f=!0,e.updateMatch(t,R=>({...R,isFetching:"beforeLoad",fetchCount:R.fetchCount+1,abortController:c})))},m=()=>{a._nonReactive.beforeLoadPromise?.resolve(),a._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,R=>({...R,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{h(),m()});return}a._nonReactive.beforeLoadPromise=cd();const g={...Wl(e,n,!1),...a.__routeContext},{search:y,params:S,cause:w}=a,x=Jv(e,t),_={search:y,abortController:c,params:S,preload:x,context:g,location:e.location,navigate:R=>e.router.navigate({...R,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:x?"preload":w,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},k=R=>{if(R===void 0){e.router.batch(()=>{h(),m()});return}(Vr(R)||Sr(R))&&(h(),nh(e,n,R)),e.router.batch(()=>{h(),e.updateMatch(t,N=>({...N,__beforeLoadContext:R})),m()})};let A;try{if(A=r.options.beforeLoad(_),tp(A))return h(),A.catch(R=>{nh(e,n,R)}).then(k)}catch(R){h(),nh(e,n,R)}k(A)},rye=(e,t)=>{const{id:n,routeId:r}=e.matches[t],a=e.router.looseRoutesById[r],s=()=>u(),i=()=>nye(e,n,t,a),u=()=>{if(a$(e,n))return;const c=tye(e,n,a);return tp(c)?c.then(i):i()};return s()},aye=(e,t,n)=>{const r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const a={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(a),n.options.scripts?.(a),n.options.headers?.(a)]).then(([s,i,u])=>({meta:s?.meta,links:s?.links,headScripts:s?.scripts,headers:u,scripts:i,styles:s?.styles}))},o$=(e,t,n,r,a)=>{const s=t[r-1],{params:i,loaderDeps:u,abortController:c,cause:f}=e.router.getMatch(n),h=Wl(e,r),m=Jv(e,n);return{params:i,deps:u,preload:!!m,parentMatchPromise:s,abortController:c,context:h,location:e.location,navigate:g=>e.router.navigate({...g,_fromLocation:e.location}),cause:m?"preload":f,route:a,...e.router.options.additionalContext}},p7=async(e,t,n,r,a)=>{try{const s=e.router.getMatch(n);try{(!(GF??e.router.isServer)||s.ssr===!0)&&rp(a);const i=a.options.loader,u=typeof i=="function"?i:i?.handler,c=u?.(o$(e,t,n,r,a)),f=!!u&&tp(c);if((f||a._lazyPromise||a._componentsPromise||a.options.head||a.options.scripts||a.options.headers||s._nonReactive.minPendingPromise)&&e.updateMatch(n,m=>({...m,isFetching:"loader"})),u){const m=f?await c:c;ji(e,e.router.getMatch(n),m),m!==void 0&&e.updateMatch(n,g=>({...g,loaderData:m}))}a._lazyPromise&&await a._lazyPromise;const h=s._nonReactive.minPendingPromise;h&&await h,a._componentsPromise&&await a._componentsPromise,e.updateMatch(n,m=>({...m,error:void 0,context:Wl(e,r),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(i){let u=i;if(u?.name==="AbortError"){if(s.abortController.signal.aborted){s._nonReactive.loaderPromise?.resolve(),s._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,f=>({...f,status:f.status==="pending"?"success":f.status,isFetching:!1,context:Wl(e,r)}));return}const c=s._nonReactive.minPendingPromise;c&&await c,Sr(i)&&await a.options.notFoundComponent?.preload?.(),ji(e,e.router.getMatch(n),i);try{a.options.onError?.(i)}catch(f){u=f,ji(e,e.router.getMatch(n),f)}!Vr(u)&&!Sr(u)&&await rp(a,["errorComponent"]),e.updateMatch(n,f=>({...f,error:u,context:Wl(e,r),status:"error",isFetching:!1}))}}catch(s){const i=e.router.getMatch(n);i&&(i._nonReactive.loaderPromise=void 0),ji(e,i,s)}},sye=async(e,t,n)=>{async function r(y,S,w,x,_){const k=Date.now()-S.updatedAt,A=y?_.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:_.options.staleTime??e.router.options.defaultStaleTime??0,R=_.options.shouldReload,N=typeof R=="function"?R(o$(e,t,a,n,_)):R,{status:O,invalid:T}=x,P=k>=A&&(!!e.forceStaleReload||x.cause==="enter"||w!==void 0&&w!==x.id);i=O==="success"&&(T||(N??P)),y&&_.options.preload===!1||(i&&!e.sync&&h?(u=!0,(async()=>{try{await p7(e,t,a,n,_);const L=e.router.getMatch(a);L._nonReactive.loaderPromise?.resolve(),L._nonReactive.loadPromise?.resolve(),L._nonReactive.loaderPromise=void 0,L._nonReactive.loadPromise=void 0}catch(L){Vr(L)&&await e.router.navigate(L.options)}})()):O!=="success"||i?await p7(e,t,a,n,_):h7(e,a,n))}const{id:a,routeId:s}=e.matches[n];let i=!1,u=!1;const c=e.router.looseRoutesById[s],f=c.options.loader,h=((typeof f=="function"?void 0:f?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(a$(e,a)){if(!e.router.getMatch(a))return e.matches[n];h7(e,a,n)}else{const y=e.router.getMatch(a),S=e.router.stores.matchesId.get()[n],w=(S&&e.router.stores.matchStores.get(S)||null)?.routeId===s?S:e.router.stores.matches.get().find(_=>_.routeId===s)?.id,x=Jv(e,a);if(y._nonReactive.loaderPromise){if(y.status==="success"&&!e.sync&&!y.preload&&h)return y;await y._nonReactive.loaderPromise;const _=e.router.getMatch(a),k=_._nonReactive.error||_.error;k&&ji(e,_,k),_.status==="pending"&&await r(x,y,w,_,c)}else{const _=x&&!e.router.stores.matchStores.has(a),k=e.router.getMatch(a);k._nonReactive.loaderPromise=cd(),_!==k.preload&&e.updateMatch(a,A=>({...A,preload:_})),await r(x,y,w,k,c)}}const m=e.router.getMatch(a);u||(m._nonReactive.loaderPromise?.resolve(),m._nonReactive.loadPromise?.resolve(),m._nonReactive.loadPromise=void 0),clearTimeout(m._nonReactive.pendingTimeout),m._nonReactive.pendingTimeout=void 0,u||(m._nonReactive.loaderPromise=void 0),m._nonReactive.dehydrated=void 0;const g=u?m.isFetching:!1;return g!==m.isFetching||m.invalid!==!1?(e.updateMatch(a,y=>({...y,isFetching:g,invalid:!1})),e.router.getMatch(a)):m};async function m7(e){const t=e,n=[];eye(t.router)&&H3(t);let r;for(let g=0;g<t.matches.length;g++){try{const y=rye(t,g);tp(y)&&await y}catch(y){if(Vr(y))throw y;if(Sr(y))r=y;else if(!t.preload)throw y;break}if(t.serialError||t.firstBadMatchIndex!=null)break}const a=t.firstBadMatchIndex??t.matches.length,s=r&&!t.preload?f7(t,r):void 0,i=r&&t.preload?0:s!==void 0?Math.min(s+1,a):a;let u,c;for(let g=0;g<i;g++)n.push(sye(t,n,g));try{await Promise.all(n)}catch{const g=await Promise.allSettled(n);for(const y of g){if(y.status!=="rejected")continue;const S=y.reason;if(Vr(S))throw S;Sr(S)?u??=S:c??=S}if(c!==void 0)throw c}const f=u??(r&&!t.preload?r:void 0);let h=t.firstBadMatchIndex!==void 0?t.firstBadMatchIndex:t.matches.length-1;if(!f&&r&&t.preload)return t.matches;if(f){const g=f7(t,f);g===void 0&&Co();const y=t.matches[g],S=t.router.looseRoutesById[y.routeId],w=t.router.options?.defaultNotFoundComponent;!S.options.notFoundComponent&&w&&(S.options.notFoundComponent=w),f.routeId=y.routeId;const x=y.routeId===t.router.routeTree.id;t.updateMatch(y.id,_=>({..._,...x?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:f},isFetching:!1})),h=g,await rp(S,["notFoundComponent"])}else if(!t.preload){const g=t.matches[0];g.globalNotFound||t.router.getMatch(g.id)?.globalNotFound&&t.updateMatch(g.id,y=>({...y,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const g=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await rp(g,["errorComponent"])}for(let g=0;g<=h;g++){const{id:y,routeId:S}=t.matches[g],w=t.router.looseRoutesById[S];try{const x=aye(t,y,w);if(x){const _=await x;t.updateMatch(y,k=>({...k,..._}))}}catch(x){console.error(`Error executing head for route ${S}:`,x)}}const m=H3(t);if(tp(m)&&await m,f)throw f;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function g7(e,t){const n=t.map(r=>e.options[r]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function rp(e,t=T0){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(r=>{const{id:a,...s}=r.options;Object.assign(e.options,s),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const n=()=>e._componentsLoaded?void 0:t===T0?(()=>{if(e._componentsPromise===void 0){const r=g7(e,T0);r?e._componentsPromise=r.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():g7(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function i$(e){for(const t of T0)if(e.options[t]?.preload)return!0;return!1}const T0=["component","errorComponent","pendingComponent","notFoundComponent"];var $i="__TSR_index",v7="popstate",y7="beforeunload";function oye(e){let t=e.getLocation();const n=new Set,r=i=>{t=e.getLocation(),n.forEach(u=>u({location:t,action:i}))},a=i=>{e.notifyOnIndexChange??!0?r(i):t=e.getLocation()},s=async({task:i,navigateOpts:u,...c})=>{if(u?.ignoreBlocker??!1){i();return}const f=e.getBlockers?.()??[],h=c.type==="PUSH"||c.type==="REPLACE";if(typeof document<"u"&&f.length&&h)for(const m of f){const g=g1(c.path,c.state);if(await m.blockerFn({currentLocation:t,nextLocation:g,action:c.type})){e.onBlocked?.();return}}i()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:i=>(n.add(i),()=>{n.delete(i)}),push:(i,u,c)=>{const f=t.state[$i];u=b7(f+1,u),s({task:()=>{e.pushState(i,u),r({type:"PUSH"})},navigateOpts:c,type:"PUSH",path:i,state:u})},replace:(i,u,c)=>{const f=t.state[$i];u=b7(f,u),s({task:()=>{e.replaceState(i,u),r({type:"REPLACE"})},navigateOpts:c,type:"REPLACE",path:i,state:u})},go:(i,u)=>{s({task:()=>{e.go(i),a({type:"GO",index:i})},navigateOpts:u,type:"GO"})},back:i=>{s({task:()=>{e.back(i?.ignoreBlocker??!1),a({type:"BACK"})},navigateOpts:i,type:"BACK"})},forward:i=>{s({task:()=>{e.forward(i?.ignoreBlocker??!1),a({type:"FORWARD"})},navigateOpts:i,type:"FORWARD"})},canGoBack:()=>t.state[$i]!==0,createHref:i=>e.createHref(i),block:i=>{if(!e.setBlockers)return()=>{};const u=e.getBlockers?.()??[];return e.setBlockers([...u,i]),()=>{const c=e.getBlockers?.()??[];e.setBlockers?.(c.filter(f=>f!==i))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function b7(e,t){t||(t={});const n=$A();return{...t,key:n,__TSR_key:n,[$i]:e}}function iye(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let a=[];const s=()=>a,i=P=>a=P,u=(P=>P),c=(()=>g1(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const P=$A();t.history.replaceState({[$i]:0,key:P,__TSR_key:P},"")}let f=c(),h,m=!1,g=!1,y=!1,S=!1;const w=()=>f;let x,_;const k=()=>{x&&(T._ignoreSubscribers=!0,(x.isPush?t.history.pushState:t.history.replaceState)(x.state,"",x.href),T._ignoreSubscribers=!1,x=void 0,_=void 0,h=void 0)},A=(P,L,q)=>{const j=u(L);_||(h=f),f=g1(L,q),x={href:j,state:q,isPush:x?.isPush||P==="push"},_||(_=Promise.resolve().then(()=>k()))},R=P=>{f=c(),T.notify({type:P})},N=async()=>{if(g){g=!1;return}const P=c(),L=P.state[$i]-f.state[$i],q=L===1,j=L===-1,U=!q&&!j||m;m=!1;const H=U?"GO":j?"BACK":"FORWARD",Z=U?{type:"GO",index:L}:{type:j?"BACK":"FORWARD"};if(y)y=!1;else{const se=s();if(typeof document<"u"&&se.length){for(const B of se)if(await B.blockerFn({currentLocation:f,nextLocation:P,action:H})){g=!0,t.history.go(1),T.notify(Z);return}}}f=c(),T.notify(Z)},O=P=>{if(S){S=!1;return}let L=!1;const q=s();if(typeof document<"u"&&q.length)for(const j of q){const U=j.enableBeforeUnload??!0;if(U===!0){L=!0;break}if(typeof U=="function"&&U()===!0){L=!0;break}}if(L)return P.preventDefault(),P.returnValue=""},T=oye({getLocation:w,getLength:()=>t.history.length,pushState:(P,L)=>A("push",P,L),replaceState:(P,L)=>A("replace",P,L),back:P=>(P&&(y=!0),S=!0,t.history.back()),forward:P=>{P&&(y=!0),S=!0,t.history.forward()},go:P=>{m=!0,t.history.go(P)},createHref:P=>u(P),flush:k,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(y7,O,{capture:!0}),t.removeEventListener(v7,N)},onBlocked:()=>{h&&f!==h&&(f=h)},getBlockers:s,setBlockers:i,notifyOnIndexChange:!1});return t.addEventListener(y7,O,{capture:!0}),t.addEventListener(v7,N),t.history.pushState=function(...P){const L=n.apply(t.history,P);return T._ignoreSubscribers||R("PUSH"),L},t.history.replaceState=function(...P){const L=r.apply(t.history,P);return T._ignoreSubscribers||R("REPLACE"),L},T}function lye(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function g1(e,t){const n=lye(e),r=n.indexOf("#"),a=n.indexOf("?"),s=$A();return{href:n,pathname:n.substring(0,r>0?a>0?Math.min(r,a):r:a>0?a:n.length),hash:r>-1?n.substring(r):"",search:a>-1?n.slice(a,r===-1?void 0:r):"",state:t||{[$i]:0,key:s,__TSR_key:s}}}function $A(){return(Math.random()+1).toString(36).substring(7)}function Qc(e,t){const n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var uye=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=n=>n(),this.update=n=>{const r=this.options,a=this.basepath??r?.basepath??"/",s=this.basepath===void 0,i=r?.rewrite;if(this.options={...r,...n},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Uve(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=iye()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let h;this.resolvePathCache=np(1e3),h=this.buildRouteTree(),this.setRoutes(h)}if(!this.stores&&this.latestLocation){const h=this.getStoreConfig(this);this.batch=h.batch,this.stores=Jve(dye(this.latestLocation),h),qve(this)}let u=!1;const c=this.options.basepath??"/",f=this.options.rewrite;if(s||a!==c||i!==f){this.basepath=c;const h=[],m=t$(c);m&&m!=="/"&&h.push(Qve({basepath:c})),f&&h.push(f),this.rewrite=h.length===0?void 0:h.length===1?h[0]:Xve(h),this.history&&this.updateLatestLocation(),u=!0}u&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=Ove(this.routeTree,this.options.caseSensitive,(r,a)=>{r.init({originalIndex:a})});return this.options.routeMasks&&kve(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,r)=>{const a={eventType:n,fn:r};return this.subscribers.add(a),()=>{this.subscribers.delete(a)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const a=({pathname:c,search:f,hash:h,href:m,state:g})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(c)){const _=this.options.parseSearch(f),k=this.options.stringifySearch(_);return{href:c+k+h,publicHref:c+k+h,pathname:th(c).path,external:!1,searchStr:k,search:Il(r?.search,_),hash:th(h.slice(1)).path,state:Ul(r?.state,g)}}const y=new URL(m,this.origin),S=B3(this.rewrite,y),w=this.options.parseSearch(S.search),x=this.options.stringifySearch(w);return S.search=x,{href:S.href.replace(S.origin,""),publicHref:m,pathname:th(S.pathname).path,external:!!this.rewrite&&S.origin!==this.origin,searchStr:x,search:Il(r?.search,w),hash:th(S.hash.slice(1)).path,state:Ul(r?.state,g)}},s=a(n),{__tempLocation:i,__tempKey:u}=s.state;if(i&&(!u||u===this.tempLocationKey)){const c=a(i);return c.state.key=s.state.key,c.state.__TSR_key=s.state.__TSR_key,delete c.state.__tempLocation,{...c,maskedLocation:s}}return s},this.resolvePathWithBase=(n,r)=>Lve({base:n,to:r.includes("//")?FA(r):r,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,r,a)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},a):this.matchRoutesInternal(n,r),this.getMatchedRoutes=n=>fye({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(n=>{this.cancelMatch(n)}),this.stores.matchesId.get().forEach(n=>{if(this.stores.pendingMatchStores.has(n))return;const r=this.stores.matchStores.get(n)?.get();r&&(r.status==="pending"||r.isFetching==="loader")&&this.cancelMatch(n)})},this.buildLocation=n=>{const r=(s={})=>{const i=s._fromLocation||this.pendingBuiltLocation||this.latestLocation,u=this.matchRoutesLightweight(i);s.from;const c=s.unsafeRelative==="path"?i.pathname:s.from??u.fullPath,f=s.to?`${s.to}`:void 0,h=u.search,m=Object.assign(Object.create(null),u.params),g=f?.charCodeAt(0)===47?"/":this.resolvePathWithBase(c,"."),y=f?this.resolvePathWithBase(g,f):g,S=s.params===!1||s.params===null?Object.create(null):(s.params??!0)===!0?m:Object.assign(m,Ll(s.params,m)),w=this.routesByPath[xo(y)];let x;if(w)x=this.getRouteBranch(w);else if(y.includes("$"))x=[];else{const j=this.getMatchedRoutes(y);x=j.matchedRoutes,this.options.notFoundRoute&&(!j.foundRoute||j.foundRoute.path!=="/"&&j.routeParams["**"])&&(x=[...x,this.options.notFoundRoute])}if(x.length&&YF(S))for(const j of x){const U=j.options.params?.stringify??j.options.stringifyParams;if(U)try{Object.assign(S,U(S))}catch{}}const _=n.leaveParams?y:th(l7({path:y,params:S,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let k=h;if(n._includeValidateSearch&&this.options.search?.strict){const j={};x.forEach(U=>{if(U.options.validateSearch)try{Object.assign(j,O0(U.options.validateSearch,{...j,...k}))}catch{}}),k=j}k=hye({search:k,dest:s,destRoutes:x,_includeValidateSearch:n._includeValidateSearch}),k=Il(h,k);const A=this.options.stringifySearch(k),R=s.hash===!0?i.hash:s.hash?Ll(s.hash,i.hash):void 0,N=R?`#${R}`:"";let O=s.state===!0?i.state:s.state?Ll(s.state,i.state):{};O=Ul(i.state,O);const T=`${_}${A}${N}`;let P,L,q=!1;if(this.rewrite){const j=new URL(T,this.origin),U=r$(this.rewrite,j);P=j.href.replace(j.origin,""),U.origin!==this.origin?(L=U.href,q=!0):L=U.pathname+U.search+U.hash}else P=Cve(T),L=P;return{publicHref:L,href:P,pathname:_,search:k,searchStr:A,state:O,hash:R??"",external:q,unmaskOnReload:s.unmaskOnReload}},a=(s={},i)=>{const u=r(s);let c=i?r(i):void 0;if(!c){const f=Object.create(null);if(this.options.routeMasks){const h=Ave(u.pathname,this.processedTree);if(h){Object.assign(f,h.rawParams);const{from:m,params:g,...y}=h.route,S=g===!1||g===null?Object.create(null):(g??!0)===!0?f:Object.assign(f,Ll(g,f));i={from:n.from,...y,params:S},c=r(i)}}}return c&&(u.maskedLocation=c),u};return n.mask?a(n,{from:n.from,...n.mask}):a(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:r,...a})=>{let s;const i=()=>{const f=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];f.forEach(m=>{a.state[m]=this.latestLocation.state[m]});const h=ql(a.state,this.latestLocation.state);return f.forEach(m=>{delete a.state[m]}),h},u=xo(this.latestLocation.href)===xo(a.href);let c=this.commitLocationPromise;if(this.commitLocationPromise=cd(()=>{c?.resolve(),c=void 0}),u&&i())this.load();else{let{maskedLocation:f,hashScrollIntoView:h,...m}=a;f&&(m={...f,state:{...f.state,__tempKey:void 0,__tempLocation:{...m,search:m.searchStr,state:{...m.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(m.unmaskOnReload??this.options.unmaskOnReload??!1)&&(m.state.__tempKey=this.tempLocationKey)),m.state.__hashScrollIntoViewOptions=h??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,s=a.replace?"REPLACE":"PUSH",this.history[s==="REPLACE"?"replace":"push"](m.publicHref,m.state,{ignoreBlocker:r})}return this._scroll.next=a.resetScroll??!0,this.history.subscribers.size||this.load(s?{action:{type:s}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:a,viewTransition:s,ignoreBlocker:i,href:u,...c}={})=>{if(u){const m=this.history.location.state.__TSR_index,g=g1(u,{__TSR_index:n?m:m+1}),y=new URL(g.pathname,this.origin);c.to=B3(this.rewrite,y).pathname,c.search=this.options.parseSearch(g.search),c.hash=g.hash.slice(1)}const f=this.buildLocation({...c,_includeValidateSearch:!0});this.pendingBuiltLocation=f;const h=this.commitLocation({...f,viewTransition:s,replace:n,resetScroll:r,hashScrollIntoView:a,ignoreBlocker:i});return queueMicrotask(()=>{this.pendingBuiltLocation===f&&(this.pendingBuiltLocation=void 0)}),h},this.navigate=async({to:n,reloadDocument:r,href:a,publicHref:s,...i})=>{let u=!1;if(a)try{new URL(`${a}`),u=!0}catch{}if(u&&!r&&(r=!0),r){if(n!==void 0||!a){const f=this.buildLocation({to:n,...i});a=a??f.publicHref,s=s??f.publicHref}const c=!u&&s?s:a;if(p1(c,this.protocolAllowlist))return;if(!i.ignoreBlocker){const f=this.history.getBlockers?.()??[];for(const h of f)if(h?.blockerFn&&await h.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return}i.replace?window.location.replace(c):window.location.href=c;return}return this.buildAndCommitLocation({...i,href:a,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation),r=this.stores.cachedMatches.get().filter(a=>!n.some(s=>s.id===a.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(n),this.stores.setCached(r)})},this.load=async n=>{const r=n?.action?.type;let a,s,i;const u=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(f=>{this.startTransition(async()=>{try{this.beforeLoad(),r&&(this._scroll.hash=r==="PUSH"||r==="REPLACE");const h=this.latestLocation,m=Qc(h,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...m}),this.emit({type:"onBeforeLoad",...m}),await m7({router:this,sync:n?.sync,forceStaleReload:u.href===h.href,matches:this.stores.pendingMatches.get(),location:h,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let g=null,y=null,S=null,w=null;this.batch(()=>{const x=this.stores.pendingMatches.get(),_=x.length,k=this.stores.matches.get();g=_?k.filter(N=>!this.stores.pendingMatchStores.has(N.id)):null;const A=new Set;for(const N of this.stores.pendingMatchStores.values())N.routeId&&A.add(N.routeId);const R=new Set;for(const N of this.stores.matchStores.values())N.routeId&&R.add(N.routeId);y=_?k.filter(N=>!A.has(N.routeId)):null,S=_?x.filter(N=>!R.has(N.routeId)):null,w=_?x.filter(N=>R.has(N.routeId)):k,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),_&&(this.stores.setMatches(x),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...g.filter(N=>N.status!=="error"&&N.status!=="notFound"&&N.status!=="redirected")]),this.clearExpiredCache())});for(const[x,_]of[[y,"onLeave"],[S,"onEnter"],[w,"onStay"]])if(x)for(const k of x)this.looseRoutesById[k.routeId].options[_]?.(k)})})}})}catch(h){Vr(h)?(a=h,this.navigate({...a.options,replace:!0,ignoreBlocker:!0})):Sr(h)&&(s=h);const m=a?a.status:s?404:this.stores.matches.get().some(g=>g.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(m),this.stores.redirect.set(a)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),f()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let c;this.hasNotFoundMatch()?c=404:this.stores.matches.get().some(f=>f.status==="error")&&(c=500),c!==void 0&&this.stores.statusCode.set(c)},this.startViewTransition=n=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let a;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const s=this.latestLocation,i=this.stores.resolvedLocation.get(),u=typeof r.types=="function"?r.types(Qc(s,i)):r.types;if(u===!1){n();return}a={update:n,types:u}}else a=n;document.startViewTransition(a)}else n()},this.updateMatch=(n,r)=>{this.startTransition(()=>{const a=this.stores.pendingMatchStores.get(n);if(a){a.set(r);return}const s=this.stores.matchStores.get(n);if(s){s.set(r);return}const i=this.stores.cachedMatchStores.get(n);if(i){const u=r(i.get());u.status==="redirected"?this.stores.cachedMatchStores.delete(n)&&this.stores.cachedIds.set(c=>c.filter(f=>f!==n)):i.set(u)}})},this.getMatch=n=>this.stores.cachedMatchStores.get(n)?.get()??this.stores.pendingMatchStores.get(n)?.get()??this.stores.matchStores.get(n)?.get(),this.invalidate=n=>{const r=a=>n?.filter?.(a)??!0?{...a,invalid:!0,...n?.forcePending||a.status==="error"||a.status==="notFound"?{status:"pending",error:void 0}:void 0}:a;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(r)),this.stores.setCached(this.stores.cachedMatches.get().map(r)),this.stores.setPending(this.stores.pendingMatches.get().map(r))}),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const r=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const a=n.options._builtLocation??this.buildLocation(n.options),s=this.getParsedLocationHref(a);n.options.href=s,n.headers.set("Location",s)}else if(r)try{const a=new URL(r);if(this.origin&&a.origin===this.origin){const s=a.pathname+a.search+a.hash;n.options.href=s,n.headers.set("Location",s)}}catch{}if(n.options.href&&!n.options._builtLocation&&p1(n.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const r=n?.filter;r!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(a=>!r(a))):this.stores.setCached([])},this.clearExpiredCache=()=>{const n=Date.now(),r=a=>{const s=this.looseRoutesById[a.routeId];if(!s.options.loader)return!0;const i=(a.preload?s.options.preloadGcTime??this.options.defaultPreloadGcTime:s.options.gcTime??this.options.defaultGcTime)??300*1e3;return a.status==="error"?!0:n-a.updatedAt>=i};this.clearCache({filter:r})},this.loadRouteChunk=rp,this.preloadRoute=async n=>{const r=n._builtLocation??this.buildLocation(n);let a=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const s=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...s,...this.stores.cachedIds.get()]),u=a.filter(c=>!i.has(c.id));if(u.length){const c=this.stores.cachedMatches.get();this.stores.setCached([...c,...u])}try{return a=await m7({router:this,matches:a,location:r,preload:!0,updateMatch:(c,f)=>{s.has(c)?a=a.map(h=>h.id===c?f(h):h):this.updateMatch(c,f)}}),a}catch(c){if(Vr(c))return c.options.reloadDocument?void 0:await this.preloadRoute({...c.options,_fromLocation:r});Sr(c)||console.error(c);return}},this.matchRoute=(n,r)=>{const a={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},s=this.buildLocation(a);if(r?.pending&&this.stores.status.get()!=="pending")return!1;const i=(r?.pending===void 0?!this.stores.isLoading.get():r.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),u=Ive(s.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,i.pathname,this.processedTree);return!u||n.params&&!ql(u.rawParams,n.params,{partial:!0})?!1:r?.includeSearch??!0?ql(i.search,s.search,{partial:!0})?u.rawParams:!1:u.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(n=>n.status==="notFound"||n.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??Kve,parseSearch:e.parseSearch??Gve,protocolAllowlist:e.protocolAllowlist??xve}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=JF(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){const n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:a}=n;let{matchedRoutes:s}=n,i=!1;(r?r.path!=="/"&&a["**"]:xo(e.pathname))&&(this.options.notFoundRoute?s=[...s,this.options.notFoundRoute]:i=!0);const u=i?mye(this.options.notFoundMode,s):void 0,c=new Array(s.length),f=new Map;for(const h of this.stores.matchStores.values())h.routeId&&f.set(h.routeId,h.get());for(let h=0;h<s.length;h++){const m=s[h],g=c[h-1];let y,S,w;{const U=g?.search??e.search,H=g?._strictSearch??void 0;try{const Z=O0(m.options.validateSearch,{...U})??void 0;y={...U,...Z},S={...H,...Z},w=void 0}catch(Z){let se=Z;if(Z instanceof v1||(se=new v1(Z.message,{cause:Z})),t?.throwOnError)throw se;y=U,S={},w=se}}const x=m.options.loaderDeps?.({search:y})??"",_=x?JSON.stringify(x):"",{interpolatedPath:k,usedParams:A}=l7({path:m.fullPath,params:a,decoder:this.pathParamsDecoder,server:this.isServer}),R=m.id+k+_,N=this.getMatch(R),O=f.get(m.id),T=N?._strictParams??A;let P;if(!N)try{S7(m,T)}catch(U){if(Sr(U)||Vr(U)?P=U:P=new cye(U.message,{cause:U}),t?.throwOnError)throw P}Object.assign(a,T);const L=O?"stay":"enter";let q;if(N)q={...N,cause:L,params:O?.params??a,_strictParams:T,search:Il(O?O.search:N.search,y),_strictSearch:S};else{const U=m.options.loader||m.options.beforeLoad||m.lazyFn||i$(m)?"pending":"success";q={id:R,ssr:m.options.ssr,index:h,routeId:m.id,params:O?.params??a,_strictParams:T,pathname:k,updatedAt:Date.now(),search:O?Il(O.search,y):y,_strictSearch:S,searchError:void 0,status:U,isFetching:!1,error:void 0,paramsError:P,__routeContext:void 0,_nonReactive:{loadPromise:cd()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:L,loaderDeps:O?Ul(O.loaderDeps,x):x,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:m.options.staticData||{},fullPath:m.fullPath}}t?.preload||(q.globalNotFound=u===m.id),q.searchError=w;const j=this.getParentContext(g);q.context={...j,...q.__routeContext,...q.__beforeLoadContext},c[h]=q}for(let h=0;h<c.length;h++){const m=c[h],g=this.looseRoutesById[m.routeId],y=this.getMatch(m.id),S=f.get(m.routeId);if(m.params=S?Il(S.params,a):a,!y){const w=c[h-1],x=this.getParentContext(w);if(g.options.context){const _={deps:m.loaderDeps,params:m.params,context:x??{},location:e,navigate:k=>this.navigate({...k,_fromLocation:e}),buildLocation:this.buildLocation,cause:m.cause,abortController:m.abortController,preload:!!m.preload,matches:c,routeId:g.id};m.__routeContext=g.options.context(_)??void 0}m.context={...x,...m.__routeContext,...m.__beforeLoadContext}}}return c}matchRoutesLightweight(e){const t=ep(this.stores.matchesId.get()),n=this.lightweightCache.get(e);if(n&&n[0]===t)return n[1];const{matchedRoutes:r,routeParams:a}=this.getMatchedRoutes(e.pathname),s=ep(r),i={...e.search};for(const m of r)try{Object.assign(i,O0(m.options.validateSearch,i))}catch{}const u=t&&this.stores.matchStores.get(t)?.get(),c=u&&u.routeId===s.id&&u.pathname===e.pathname;let f;if(c)f=u.params;else{const m=Object.assign(Object.create(null),a);for(const g of r)try{S7(g,m)}catch{}f=m}const h={matchedRoutes:r,fullPath:s.fullPath,search:i,params:f};return this.lightweightCache.set(e,[t,h]),h}},v1=class extends Error{},cye=class extends Error{};function dye(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function O0(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new v1("Async validation not supported");if(n.issues)throw new v1(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function fye({pathname:e,routesById:t,processedTree:n}){const r=Object.create(null),a=xo(e);let s;const i=Rve(a,n,!0);return i&&(s=i.route,Object.assign(r,i.rawParams)),{matchedRoutes:i?.branch||[t.__root__],routeParams:r,foundRoute:s}}function hye({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return pye(n)(e,t,r??!1)}function pye(e){let t,n;const r=[];for(const s of e){const i=s.options;if("search"in i)i.search?.middlewares&&r.push(...i.search.middlewares);else if(i.preSearchFilters||i.postSearchFilters){const c=({search:f,next:h})=>{const m=h(i.preSearchFilters?i.preSearchFilters.reduce((g,y)=>y(g),f):f);return i.postSearchFilters?i.postSearchFilters.reduce((g,y)=>y(g),m):m};r.push(c)}const u=i.validateSearch;if(u){const c=({search:f,next:h,meta:m})=>{const g=h(f);if(n)try{const y=O0(u,g);if(m&&y)for(const S in y)S in g||(m.defaulted||=new Map).set(S,y[S]);return{...g,...y}}catch{}return g};r.push(c)}}const a=(s,i,u)=>{if(s>=r.length){if(!t.search)return{};if(t.search===!0)return i;const f=Ll(t.search,i);return u&&(u.explicit=f),f}const c=(f,h)=>{if(h){const m=u||{};return{search:a(s+1,f,m),meta:m}}return a(s+1,f,u)};return r[s]({search:i,next:c,meta:u})};return function(i,u,c){return t=u,n=c,a(0,i)}}function mye(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.children)return r.id}return Vl}function S7(e,t){const n=e.options.params?.parse??e.options.parseParams;if(n){const r=n(t);if(r===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(t,r)}}const gye="Error preloading route! ☝️";var l$=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const n=this.options,r=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=Vl:this.parentRoute||Co();let a=r?Vl:n?.path;a&&a!=="/"&&(a=e$(a));const s=n?.id||a;let i=r?Vl:I0([this.parentRoute.id==="__root__"?"":this.parentRoute.id,s]);a==="__root__"&&(a="/"),i!=="__root__"&&(i=I0(["/",i]));const u=i==="__root__"?"/":I0([this.parentRoute.fullPath,a]);this._path=a,this._id=i,this._fullPath=u,this._to=xo(u)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>Dp({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},vye=class extends l${constructor(e){super(e)}};function BA(e){const t=e.errorComponent??HA;return C.jsx(yye,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?E.createElement(t,{error:n,reset:r}):e.children})}var yye=class extends E.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){const n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function HA({error:e}){const[t,n]=E.useState(!1);return C.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[C.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[C.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),C.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),C.jsx("div",{style:{height:".25rem"}}),t?C.jsx("div",{children:C.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?C.jsx("code",{children:e.message}):null})}):null]})}function bye({children:e,fallback:t=null}){return u$()?C.jsx(F.Fragment,{children:e}):C.jsx(F.Fragment,{children:t})}function u$(){return F.useSyncExternalStore(Sye,()=>!0,()=>!1)}function Sye(){return()=>{}}var c$=E.createContext(null);function xr(e){return E.useContext(c$)}var ey=E.createContext(void 0),wye=E.createContext(void 0),hn=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(hn||{});function xye({update:e,notify:t,unwatched:n}){return{link:r,unlink:a,propagate:s,checkDirty:i,shallowPropagate:u};function r(f,h,m){const g=h.depsTail;if(g!==void 0&&g.dep===f)return;const y=g!==void 0?g.nextDep:h.deps;if(y!==void 0&&y.dep===f){y.version=m,h.depsTail=y;return}const S=f.subsTail;if(S!==void 0&&S.version===m&&S.sub===h)return;const w=h.depsTail=f.subsTail={version:m,dep:f,sub:h,prevDep:g,nextDep:y,prevSub:S,nextSub:void 0};y!==void 0&&(y.prevDep=w),g!==void 0?g.nextDep=w:h.deps=w,S!==void 0?S.nextSub=w:f.subs=w}function a(f,h=f.sub){const m=f.dep,g=f.prevDep,y=f.nextDep,S=f.nextSub,w=f.prevSub;return y!==void 0?y.prevDep=g:h.depsTail=g,g!==void 0?g.nextDep=y:h.deps=y,S!==void 0?S.prevSub=w:m.subsTail=w,w!==void 0?w.nextSub=S:(m.subs=S)===void 0&&n(m),y}function s(f){let h=f.nextSub,m;e:do{const g=f.sub;let y=g.flags;if(y&60?y&12?y&4?!(y&48)&&c(f,g)?(g.flags=y|40,y&=1):y=0:g.flags=y&-9|32:y=0:g.flags=y|32,y&2&&t(g),y&1){const S=g.subs;if(S!==void 0){const w=(f=S).nextSub;w!==void 0&&(m={value:h,prev:m},h=w);continue}}if((f=h)!==void 0){h=f.nextSub;continue}for(;m!==void 0;)if(f=m.value,m=m.prev,f!==void 0){h=f.nextSub;continue e}break}while(!0)}function i(f,h){let m,g=0,y=!1;e:do{const S=f.dep,w=S.flags;if(h.flags&16)y=!0;else if((w&17)===17){if(e(S)){const x=S.subs;x.nextSub!==void 0&&u(x),y=!0}}else if((w&33)===33){(f.nextSub!==void 0||f.prevSub!==void 0)&&(m={value:f,prev:m}),f=S.deps,h=S,++g;continue}if(!y){const x=f.nextDep;if(x!==void 0){f=x;continue}}for(;g--;){const x=h.subs,_=x.nextSub!==void 0;if(_?(f=m.value,m=m.prev):f=x,y){if(e(h)){_&&u(x),h=f.sub;continue}y=!1}else h.flags&=-33;h=f.sub;const k=f.nextDep;if(k!==void 0){f=k;continue e}}return y}while(!0)}function u(f){do{const h=f.sub,m=h.flags;(m&48)===32&&(h.flags=m|16,(m&6)===2&&t(h))}while((f=f.nextSub)!==void 0)}function c(f,h){let m=h.depsTail;for(;m!==void 0;){if(m===f)return!0;m=m.prevDep}return!1}}function Cye(e,t,n){const r=typeof e=="object",a=r?e:void 0;return{next:(r?e.next:e)?.bind(a),error:(r?e.error:t)?.bind(a),complete:(r?e.complete:n)?.bind(a)}}const q3=[];let N0=0;const{link:w7,unlink:Eye,propagate:_ye,checkDirty:d$,shallowPropagate:x7}=xye({update(e){return e._update()},notify(e){q3[V3++]=e,e.flags&=~hn.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=hn.Mutable|hn.Dirty,y1(e))}});let Og=0,V3=0,Cs,W3=0;function f$(e){try{++W3,e()}finally{--W3||h$()}}function y1(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=Eye(n,e)}function h$(){if(!(W3>0)){for(;Og<V3;){const e=q3[Og];q3[Og++]=void 0,e.notify()}Og=0,V3=0}}function C7(e,t){const n=typeof e=="function",r=e,a={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?hn.None:hn.Mutable,get(){return Cs!==void 0&&w7(a,Cs,N0),a._snapshot},subscribe(s){const i=Cye(s),u={current:!1},c=kye(()=>{a.get(),u.current?i.next?.(a._snapshot):u.current=!0});return{unsubscribe:()=>{c.stop()}}},_update(s){const i=Cs,u=t?.compare??Object.is;if(n)Cs=a,++N0,a.depsTail=void 0;else if(s===void 0)return!1;n&&(a.flags=hn.Mutable|hn.RecursedCheck);try{const c=a._snapshot,f=typeof s=="function"?s(c):s===void 0&&n?r(c):s;return c===void 0||!u(c,f)?(a._snapshot=f,!0):!1}finally{Cs=i,n&&(a.flags&=~hn.RecursedCheck),y1(a)}}};return n?(a.flags=hn.Mutable|hn.Dirty,a.get=function(){const s=a.flags;if(s&hn.Dirty||s&hn.Pending&&d$(a.deps,a)){if(a._update()){const i=a.subs;i!==void 0&&x7(i)}}else s&hn.Pending&&(a.flags=s&~hn.Pending);return Cs!==void 0&&w7(a,Cs,N0),a._snapshot}):a.set=function(s){if(a._update(s)){const i=a.subs;i!==void 0&&(_ye(i),x7(i),h$())}},a}function kye(e){const t=()=>{const r=Cs;Cs=n,++N0,n.depsTail=void 0,n.flags=hn.Watching|hn.RecursedCheck;try{return e()}finally{Cs=r,n.flags&=~hn.RecursedCheck,y1(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:hn.Watching|hn.RecursedCheck,notify(){const r=this.flags;r&hn.Dirty||r&hn.Pending&&d$(this.deps,this)?t():this.flags=hn.Watching},stop(){this.flags=hn.None,this.depsTail=void 0,y1(this)}};return t(),n}function Aye(e,t){return e===t}function wr(e,t,n=Aye){const r=E.useCallback(i=>{if(!e)return()=>{};const{unsubscribe:u}=e.subscribe(i);return u},[e]),a=E.useCallback(()=>e?.get(),[e]);return dz.useSyncExternalStoreWithSelector(r,a,a,t,n)}var JC={get(){},subscribe(){return{unsubscribe(){}}}};function qA(e,t){const n=E.useRef();return r=>{const a=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=Ul(n.current,a):a}}function bu(e){const t=xr(),n=E.useContext(e.from?wye:ey),r=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),a=qA(e,t),s=wr(r??JC,i=>i?a(i):JC);if(s!==JC)return s;(e.shouldThrow??!0)&&Co()}function p$(e){return bu({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function m$(e){const{select:t,...n}=e;return bu({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function Jc(e){return bu({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function ty(e){return bu({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function $s(e){const t=xr();return E.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function wNe(e){const t=xr(),n=$s(),r=E.useRef(null);return Fc(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}function g$(e){return bu({...e,select:t=>e.select?e.select(t.context):t.context})}function Iye(e,t){const n=xr(),r=gve(t),{activeProps:a,inactiveProps:s,activeOptions:i,to:u,preload:c,preloadDelay:f,preloadIntentProximity:h,hashScrollIntoView:m,replace:g,startTransition:y,resetScroll:S,viewTransition:w,children:x,target:_,disabled:k,style:A,className:R,onClick:N,onBlur:O,onFocus:T,onMouseEnter:P,onMouseLeave:L,onTouchStart:q,ignoreBlocker:j,params:U,search:H,hash:Z,state:se,mask:B,reloadDocument:X,unsafeRelative:re,from:de,_fromLocation:we,...z}=e,W=u$(),G=E.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),J=wr(n.stores.location,pt=>pt,(pt,rn)=>pt.href===rn.href),oe=E.useMemo(()=>{const pt={_fromLocation:J,...G};return n.buildLocation(pt)},[n,J,G]),pe=oe.maskedLocation?oe.maskedLocation.publicHref:oe.publicHref,K=oe.maskedLocation?oe.maskedLocation.external:oe.external,fe=E.useMemo(()=>Pye(pe,K,n.history,k),[k,K,pe,n.history]),ge=E.useMemo(()=>{if(fe?.external)return p1(fe.href,n.protocolAllowlist)?void 0:fe.href;if(!Dye(u)&&!(typeof u!="string"||u.indexOf(":")===-1))try{return new URL(u),p1(u,n.protocolAllowlist)?void 0:u}catch{}},[u,fe,n.protocolAllowlist]),Ee=E.useMemo(()=>{if(ge)return!1;if(i?.exact){if(!Dve(J.pathname,oe.pathname,n.basepath))return!1}else{const pt=m1(J.pathname,n.basepath),rn=m1(oe.pathname,n.basepath);if(!(pt.startsWith(rn)&&(pt.length===rn.length||pt[rn.length]==="/")))return!1}return(i?.includeSearch??!0)&&!ql(J.search,oe.search,{partial:!i?.exact,ignoreUndefined:!i?.explicitUndefined})?!1:i?.includeHash?W&&J.hash===oe.hash:!0},[i?.exact,i?.explicitUndefined,i?.includeHash,i?.includeSearch,J,ge,W,oe.hash,oe.pathname,oe.search,n.basepath]),Te=Ee?Ll(a,{})??Rye:eE,Ue=Ee?eE:Ll(s,{})??eE,je=[R,Te.className,Ue.className].filter(Boolean).join(" "),ke=(A||Te.style||Ue.style)&&{...A,...Te.style,...Ue.style},[Ut,Me]=E.useState(!1),Bn=E.useRef(!1),Zt=e.reloadDocument||ge?!1:c??n.options.defaultPreload,Dn=f??n.options.defaultPreloadDelay??0,fr=E.useCallback(()=>{n.preloadRoute({...G,_builtLocation:oe}).catch(pt=>{console.warn(pt),console.warn(gye)})},[n,G,oe]);mve(r,E.useCallback(pt=>{pt?.isIntersecting&&fr()},[fr]),Mye,{disabled:!!k||Zt!=="viewport"}),E.useEffect(()=>{Bn.current||!k&&Zt==="render"&&(fr(),Bn.current=!0)},[k,fr,Zt]);const Er=pt=>{const rn=pt.currentTarget.getAttribute("target"),Mr=_!==void 0?_:rn;if(!k&&!Uye(pt)&&!pt.defaultPrevented&&(!Mr||Mr==="_self")&&pt.button===0){pt.preventDefault(),Fee.flushSync(()=>{Me(!0)});const La=n.subscribe("onResolved",()=>{La(),Me(!1)});n.navigate({...G,replace:g,resetScroll:S,hashScrollIntoView:m,startTransition:y,viewTransition:w,ignoreBlocker:j})}};if(ge)return{...z,ref:r,href:ge,...x&&{children:x},..._&&{target:_},...k&&{disabled:k},...A&&{style:A},...R&&{className:R},...N&&{onClick:N},...O&&{onBlur:O},...T&&{onFocus:T},...P&&{onMouseEnter:P},...L&&{onMouseLeave:L},...q&&{onTouchStart:q}};const os=pt=>{if(k||Zt!=="intent")return;if(!Dn){fr();return}const rn=pt.currentTarget;if(rh.has(rn))return;const Mr=setTimeout(()=>{rh.delete(rn),fr()},Dn);rh.set(rn,Mr)},Fo=pt=>{k||Zt!=="intent"||fr()},nn=pt=>{if(k||!Zt||!Dn)return;const rn=pt.currentTarget,Mr=rh.get(rn);Mr&&(clearTimeout(Mr),rh.delete(rn))};return{...z,...Te,...Ue,href:fe?.href,ref:r,onClick:wc([N,Er]),onBlur:wc([O,nn]),onFocus:wc([T,os]),onMouseEnter:wc([P,os]),onMouseLeave:wc([L,nn]),onTouchStart:wc([q,Fo]),disabled:!!k,target:_,...ke&&{style:ke},...je&&{className:je},...k&&Tye,...Ee&&Oye,...W&&Ut&&Nye}}var eE={},Rye={className:"active"},Tye={role:"link","aria-disabled":!0},Oye={"data-status":"active","aria-current":"page"},Nye={"data-transitioning":"transitioning"},rh=new WeakMap,Mye={rootMargin:"100px"},wc=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function Pye(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function Dye(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}function Lye(e){return E.forwardRef(function(n,r){return C.jsx(VA,{...n,_asChild:e,ref:r})})}var VA=E.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:a,...s}=Iye(r,t),i=typeof r.children=="function"?r.children({isActive:s["data-status"]==="active"}):r.children;if(!n){const{disabled:u,...c}=s;return E.createElement("a",c,i)}return E.createElement(n,s,i)});function Uye(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var jye=class extends l${constructor(t){super(t),this.useMatch=n=>bu({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>g$({...n,from:this.id}),this.useSearch=n=>ty({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>Jc({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>m$({...n,from:this.id}),this.useLoaderData=n=>p$({...n,from:this.id}),this.useNavigate=()=>$s({from:this.fullPath}),this.Link=F.forwardRef((n,r)=>C.jsx(VA,{ref:r,from:this.fullPath,...n}))}};function zye(e){return new jye(e)}function Fye(){return e=>Bye(e)}var $ye=class extends vye{constructor(e){super(e),this.useMatch=t=>bu({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>g$({...t,from:this.id}),this.useSearch=t=>ty({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Jc({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>m$({...t,from:this.id}),this.useLoaderData=t=>p$({...t,from:this.id}),this.useNavigate=()=>$s({from:this.fullPath}),this.Link=F.forwardRef((t,n)=>C.jsx(VA,{ref:n,from:this.fullPath,...t}))}};function Bye(e){return new $ye(e)}function qe(e){return new Hye(e,{silent:!0}).createRoute}var Hye=class{constructor(e,t){this.path=e,this.createRoute=n=>{const r=zye(n);return r.isRoot=!1,r},this.silent=t?.silent}};function Xe(e,t){let n,r,a,s;const i=()=>(n||(n=e().then(c=>{n=void 0,r=c[t??"default"]}).catch(c=>{if(a=c,bve(a)&&a instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const f=`tanstack_router_reload:${a.message}`;sessionStorage.getItem(f)||(sessionStorage.setItem(f,"1"),s=!0)}})),n),u=function(f){if(s)throw window.location.reload(),new Promise(()=>{});if(a)throw a;if(!r)if(t7)t7(i());else throw i();return E.createElement(r,f)};return u.preload=i,u}function qye(e){const t=xr(),n=`not-found-${wr(t.stores.location,r=>r.pathname)}-${wr(t.stores.status,r=>r)}`;return C.jsx(BA,{getResetKey:()=>n,onCatch:(r,a)=>{if(Sr(r))e.onCatch?.(r,a);else throw r},errorComponent:({error:r})=>{if(Sr(r))return e.fallback?.(r);throw r},children:e.children})}function Vye(){return C.jsx("p",{children:"Not Found"})}function Mc(e){return C.jsx(C.Fragment,{children:e.children})}function v$(e,t,n){return t.options.notFoundComponent?C.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?C.jsx(e.options.defaultNotFoundComponent,{...n}):C.jsx(Vye,{})}function Wye(e){return null}function Gye(){return Wye(xr()),null}var Kye=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,Yye=(e,t)=>e[0]===t[0]&&e[1]===t[1],y$=E.memo(function({matchId:t}){const n=xr(),r=n.stores.matchStores.get(t);r||Co();const a=wr(n.stores.loadedAt,i=>i),s=wr(r,i=>i,Kye);return C.jsx(Zye,{router:n,matchId:t,resetKey:a,matchState:E.useMemo(()=>{const i=s.routeId,u=n.routesById[i].parentRoute?.id;return{routeId:i,ssr:s.ssr,_displayPending:s._displayPending,parentRouteId:u}},[s._displayPending,s.routeId,s.ssr,n.routesById])})});function Zye({router:e,matchId:t,resetKey:n,matchState:r}){const a=e.routesById[r.routeId],s=a.options.pendingComponent??e.options.defaultPendingComponent,i=s?C.jsx(s,{}):null,u=a.options.errorComponent??e.options.defaultErrorComponent,c=a.options.onCatch??e.options.defaultOnCatch,f=a.isRoot?a.options.notFoundComponent??e.options.notFoundRoute?.options.component:a.options.notFoundComponent,h=r.ssr===!1||r.ssr==="data-only",m=(!a.isRoot||a.options.wrapInSuspense||h)&&(a.options.wrapInSuspense??s??(a.options.errorComponent?.preload||h))?E.Suspense:Mc,g=u?BA:Mc,y=f?qye:Mc;return C.jsxs(a.isRoot?a.options.shellComponent??Mc:Mc,{children:[C.jsx(ey.Provider,{value:t,children:C.jsx(m,{fallback:i,children:C.jsx(g,{getResetKey:()=>n,errorComponent:u||HA,onCatch:(S,w)=>{if(Sr(S))throw S.routeId??=r.routeId,S;c?.(S,w)},children:C.jsx(y,{fallback:S=>{if(S.routeId??=r.routeId,!f||S.routeId&&S.routeId!==r.routeId||!S.routeId&&!a.isRoot)throw S;return E.createElement(f,S)},children:h||r._displayPending?C.jsx(bye,{fallback:i,children:C.jsx(E7,{matchId:t})}):C.jsx(E7,{matchId:t})})})})}),r.parentRouteId===Vl?C.jsxs(C.Fragment,{children:[C.jsx(Xye,{}),e.options.scrollRestoration&&GF?C.jsx(Gye,{}):null]}):null]})}function Xye(){const e=xr(),t=E.useRef();return Fc(()=>{const n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:"onRendered",...Qc(e.stores.location.get(),r??n)}),t.current=n},[wr(e.stores.resolvedLocation,n=>n?.state.__TSR_key),e]),null}var E7=E.memo(function({matchId:t}){const n=xr(),r=(h,m)=>n.getMatch(h.id)?._nonReactive[m]??h._nonReactive[m],a=n.stores.matchStores.get(t);a||Co();const s=wr(a,h=>h),i=s.routeId,u=n.routesById[i],c=E.useMemo(()=>{const h=(n.routesById[i].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:i,loaderDeps:s.loaderDeps,params:s._strictParams,search:s._strictSearch});return h?JSON.stringify(h):void 0},[i,s.loaderDeps,s._strictParams,s._strictSearch,n.options.defaultRemountDeps,n.routesById]),f=E.useMemo(()=>{const h=u.options.component??n.options.defaultComponent;return h?C.jsx(h,{},c):C.jsx(b$,{})},[c,u.options.component,n.options.defaultComponent]);if(s._displayPending)throw r(s,"displayPendingPromise");if(s._forcePending)throw r(s,"minPendingPromise");if(s.status==="pending"){const h=u.options.pendingMinMs??n.options.defaultPendingMinMs;if(h){const m=n.getMatch(s.id);if(m&&!m._nonReactive.minPendingPromise){const g=cd();m._nonReactive.minPendingPromise=g,setTimeout(()=>{g.resolve(),m._nonReactive.minPendingPromise=void 0},h)}}throw r(s,"loadPromise")}if(s.status==="notFound")return Sr(s.error)||Co(),v$(n,u,s.error);if(s.status==="redirected")throw Vr(s.error)||Co(),r(s,"loadPromise");if(s.status==="error")throw s.error;return f}),b$=E.memo(function(){const t=xr(),n=E.useContext(ey);let r,a=!1,s;{const f=n?t.stores.matchStores.get(n):void 0;[r,a]=wr(f,h=>[h?.routeId,h?.globalNotFound??!1],Yye),s=wr(t.stores.matchesId,h=>h[h.findIndex(m=>m===n)+1])}const i=r?t.routesById[r]:void 0,u=t.options.defaultPendingComponent?C.jsx(t.options.defaultPendingComponent,{}):null;if(a)return i||Co(),v$(t,i,void 0);if(!s)return null;const c=C.jsx(y$,{matchId:s});return r===Vl?C.jsx(E.Suspense,{fallback:u,children:c}):c});function Qye(){const e=xr(),t=E.useRef({router:e,mounted:!1}),[n,r]=E.useState(!1),a=wr(e.stores.isLoading,m=>m),s=wr(e.stores.hasPending,m=>m),i=WC(a),u=a||n||s,c=WC(u),f=a||s,h=WC(f);return e.startTransition=m=>{r(!0),E.startTransition(()=>{m(),r(!1)})},E.useEffect(()=>{const m=e.history.subscribe(e.load),g=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return xo(e.latestLocation.publicHref)!==xo(g.publicHref)&&e.commitLocation({...g,replace:!0}),()=>{m()}},[e,e.history]),Fc(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(g){console.error(g)}})()},[e]),Fc(()=>{i&&!a&&e.emit({type:"onLoad",...Qc(e.stores.location.get(),e.stores.resolvedLocation.get())})},[i,e,a]),Fc(()=>{h&&!f&&e.emit({type:"onBeforeRouteMount",...Qc(e.stores.location.get(),e.stores.resolvedLocation.get())})},[f,h,e]),Fc(()=>{if(c&&!u){const m=Qc(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...m}),f$(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())})}},[u,c,e]),null}function Jye(){const e=xr(),t=e.routesById[Vl].options.pendingComponent??e.options.defaultPendingComponent,n=t?C.jsx(t,{}):null,r=C.jsxs(typeof document<"u"&&e.ssr?Mc:E.Suspense,{fallback:n,children:[C.jsx(Qye,{}),C.jsx(ebe,{})]});return e.options.InnerWrap?C.jsx(e.options.InnerWrap,{children:r}):r}function ebe(){const e=xr(),t=wr(e.stores.firstId,a=>a),n=wr(e.stores.loadedAt,a=>a),r=t?C.jsx(y$,{matchId:t}):null;return C.jsx(ey.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:C.jsx(BA,{getResetKey:()=>n,errorComponent:HA,onCatch:void 0,children:r})})}var tbe=e=>({createMutableStore:C7,createReadonlyStore:C7,batch:f$}),nbe=e=>new rbe(e),rbe=class extends uye{constructor(e){super(e,tbe)}};function abe({router:e,children:t,...n}){YF(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=C.jsx(c$.Provider,{value:e,children:t});return e.options.Wrap?C.jsx(e.options.Wrap,{children:r}):r}function sbe({router:e,...t}){return C.jsx(abe,{router:e,...t,children:C.jsx(Jye,{})})}function obe(e){const t=xr({warn:e?.router===void 0}),n=e?.router||t;return wr(n.stores.__store,qA(e,n))}function S$(e){const t=xr();return wr(t.stores.location,qA(e,t))}var tE={exports:{}},ah={},nE={exports:{}},rE={};var _7;function ibe(){return _7||(_7=1,(function(e){function t(B,X){var re=B.length;B.push(X);e:for(;0<re;){var de=re-1>>>1,we=B[de];if(0<a(we,X))B[de]=X,B[re]=we,re=de;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var X=B[0],re=B.pop();if(re!==X){B[0]=re;e:for(var de=0,we=B.length,z=we>>>1;de<z;){var W=2*(de+1)-1,G=B[W],J=W+1,oe=B[J];if(0>a(G,re))J<we&&0>a(oe,G)?(B[de]=oe,B[J]=re,de=J):(B[de]=G,B[W]=re,de=W);else if(J<we&&0>a(oe,re))B[de]=oe,B[J]=re,de=J;else break e}}return X}function a(B,X){var re=B.sortIndex-X.sortIndex;return re!==0?re:B.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var c=[],f=[],h=1,m=null,g=3,y=!1,S=!1,w=!1,x=!1,_=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function R(B){for(var X=n(f);X!==null;){if(X.callback===null)r(f);else if(X.startTime<=B)r(f),X.sortIndex=X.expirationTime,t(c,X);else break;X=n(f)}}function N(B){if(w=!1,R(B),!S)if(n(c)!==null)S=!0,O||(O=!0,U());else{var X=n(f);X!==null&&se(N,X.startTime-B)}}var O=!1,T=-1,P=5,L=-1;function q(){return x?!0:!(e.unstable_now()-L<P)}function j(){if(x=!1,O){var B=e.unstable_now();L=B;var X=!0;try{e:{S=!1,w&&(w=!1,k(T),T=-1),y=!0;var re=g;try{t:{for(R(B),m=n(c);m!==null&&!(m.expirationTime>B&&q());){var de=m.callback;if(typeof de=="function"){m.callback=null,g=m.priorityLevel;var we=de(m.expirationTime<=B);if(B=e.unstable_now(),typeof we=="function"){m.callback=we,R(B),X=!0;break t}m===n(c)&&r(c),R(B)}else r(c);m=n(c)}if(m!==null)X=!0;else{var z=n(f);z!==null&&se(N,z.startTime-B),X=!1}}break e}finally{m=null,g=re,y=!1}X=void 0}}finally{X?U():O=!1}}}var U;if(typeof A=="function")U=function(){A(j)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,Z=H.port2;H.port1.onmessage=j,U=function(){Z.postMessage(null)}}else U=function(){_(j,0)};function se(B,X){T=_(function(){B(e.unstable_now())},X)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(B){switch(g){case 1:case 2:case 3:var X=3;break;default:X=g}var re=g;g=X;try{return B()}finally{g=re}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(B,X){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var re=g;g=B;try{return X()}finally{g=re}},e.unstable_scheduleCallback=function(B,X,re){var de=e.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?de+re:de):re=de,B){case 1:var we=-1;break;case 2:we=250;break;case 5:we=1073741823;break;case 4:we=1e4;break;default:we=5e3}return we=re+we,B={id:h++,callback:X,priorityLevel:B,startTime:re,expirationTime:we,sortIndex:-1},re>de?(B.sortIndex=re,t(f,B),n(c)===null&&B===n(f)&&(w?(k(T),T=-1):w=!0,se(N,re-de))):(B.sortIndex=we,t(c,B),S||y||(S=!0,O||(O=!0,U()))),B},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(B){var X=g;return function(){var re=g;g=X;try{return B.apply(this,arguments)}finally{g=re}}}})(rE)),rE}var k7;function lbe(){return k7||(k7=1,nE.exports=ibe()),nE.exports}var A7;function ube(){if(A7)return ah;A7=1;var e=lbe(),t=Ip(),n=xU();function r(o){var l="https://react.dev/errors/"+o;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)l+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+o+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var l=o,d=o;if(o.alternate)for(;l.return;)l=l.return;else{o=l;do l=o,(l.flags&4098)!==0&&(d=l.return),o=l.return;while(o)}return l.tag===3?d:null}function i(o){if(o.tag===13){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function u(o){if(o.tag===31){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function c(o){if(s(o)!==o)throw Error(r(188))}function f(o){var l=o.alternate;if(!l){if(l=s(o),l===null)throw Error(r(188));return l!==o?null:o}for(var d=o,p=l;;){var v=d.return;if(v===null)break;var b=v.alternate;if(b===null){if(p=v.return,p!==null){d=p;continue}break}if(v.child===b.child){for(b=v.child;b;){if(b===d)return c(v),o;if(b===p)return c(v),l;b=b.sibling}throw Error(r(188))}if(d.return!==p.return)d=v,p=b;else{for(var I=!1,M=v.child;M;){if(M===d){I=!0,d=v,p=b;break}if(M===p){I=!0,p=v,d=b;break}M=M.sibling}if(!I){for(M=b.child;M;){if(M===d){I=!0,d=b,p=v;break}if(M===p){I=!0,p=b,d=v;break}M=M.sibling}if(!I)throw Error(r(189))}}if(d.alternate!==p)throw Error(r(190))}if(d.tag!==3)throw Error(r(188));return d.stateNode.current===d?o:l}function h(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o;for(o=o.child;o!==null;){if(l=h(o),l!==null)return l;o=o.sibling}return null}var m=Object.assign,g=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),A=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function U(o){return o===null||typeof o!="object"?null:(o=j&&o[j]||o["@@iterator"],typeof o=="function"?o:null)}var H=Symbol.for("react.client.reference");function Z(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===H?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case w:return"Fragment";case _:return"Profiler";case x:return"StrictMode";case N:return"Suspense";case O:return"SuspenseList";case L:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case S:return"Portal";case A:return o.displayName||"Context";case k:return(o._context.displayName||"Context")+".Consumer";case R:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case T:return l=o.displayName||null,l!==null?l:Z(o.type)||"Memo";case P:l=o._payload,o=o._init;try{return Z(o(l))}catch{}}return null}var se=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},de=[],we=-1;function z(o){return{current:o}}function W(o){0>we||(o.current=de[we],de[we]=null,we--)}function G(o,l){we++,de[we]=o.current,o.current=l}var J=z(null),oe=z(null),pe=z(null),K=z(null);function fe(o,l){switch(G(pe,l),G(oe,o),G(J,null),l.nodeType){case 9:case 11:o=(o=l.documentElement)&&(o=o.namespaceURI)?G4(o):0;break;default:if(o=l.tagName,l=l.namespaceURI)l=G4(l),o=K4(l,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}W(J),G(J,o)}function ge(){W(J),W(oe),W(pe)}function Ee(o){o.memoizedState!==null&&G(K,o);var l=J.current,d=K4(l,o.type);l!==d&&(G(oe,o),G(J,d))}function Te(o){oe.current===o&&(W(J),W(oe)),K.current===o&&(W(K),Pf._currentValue=re)}var Ue,je;function ke(o){if(Ue===void 0)try{throw Error()}catch(d){var l=d.stack.trim().match(/\n( *(at )?)/);Ue=l&&l[1]||"",je=-1<d.stack.indexOf(`
217
+ at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
218
+ `+Ue+o+je}var Ut=!1;function Me(o,l){if(!o||Ut)return"";Ut=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(l){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(ae){var ne=ae}Reflect.construct(o,[],ue)}else{try{ue.call()}catch(ae){ne=ae}o.call(ue.prototype)}}else{try{throw Error()}catch(ae){ne=ae}(ue=o())&&typeof ue.catch=="function"&&ue.catch(function(){})}}catch(ae){if(ae&&ne&&typeof ae.stack=="string")return[ae.stack,ne.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=p.DetermineComponentFrameRoot(),I=b[0],M=b[1];if(I&&M){var $=I.split(`
219
+ `),te=M.split(`
220
+ `);for(v=p=0;p<$.length&&!$[p].includes("DetermineComponentFrameRoot");)p++;for(;v<te.length&&!te[v].includes("DetermineComponentFrameRoot");)v++;if(p===$.length||v===te.length)for(p=$.length-1,v=te.length-1;1<=p&&0<=v&&$[p]!==te[v];)v--;for(;1<=p&&0<=v;p--,v--)if($[p]!==te[v]){if(p!==1||v!==1)do if(p--,v--,0>v||$[p]!==te[v]){var ie=`
221
+ `+$[p].replace(" at new "," at ");return o.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",o.displayName)),ie}while(1<=p&&0<=v);break}}}finally{Ut=!1,Error.prepareStackTrace=d}return(d=o?o.displayName||o.name:"")?ke(d):""}function Bn(o,l){switch(o.tag){case 26:case 27:case 5:return ke(o.type);case 16:return ke("Lazy");case 13:return o.child!==l&&l!==null?ke("Suspense Fallback"):ke("Suspense");case 19:return ke("SuspenseList");case 0:case 15:return Me(o.type,!1);case 11:return Me(o.type.render,!1);case 1:return Me(o.type,!0);case 31:return ke("Activity");default:return""}}function Zt(o){try{var l="",d=null;do l+=Bn(o,d),d=o,o=o.return;while(o);return l}catch(p){return`
222
+ Error generating stack: `+p.message+`
223
+ `+p.stack}}var Dn=Object.prototype.hasOwnProperty,fr=e.unstable_scheduleCallback,Er=e.unstable_cancelCallback,os=e.unstable_shouldYield,Fo=e.unstable_requestPaint,nn=e.unstable_now,pt=e.unstable_getCurrentPriorityLevel,rn=e.unstable_ImmediatePriority,Mr=e.unstable_UserBlockingPriority,La=e.unstable_NormalPriority,_u=e.unstable_LowPriority,ku=e.unstable_IdlePriority,$o=e.log,Au=e.unstable_setDisableYieldValue,is=null,hr=null;function Ua(o){if(typeof $o=="function"&&Au(o),hr&&typeof hr.setStrictMode=="function")try{hr.setStrictMode(is,o)}catch{}}var pr=Math.clz32?Math.clz32:Bo,Bd=Math.log,Iu=Math.LN2;function Bo(o){return o>>>=0,o===0?32:31-(Bd(o)/Iu|0)|0}var _r=256,Ho=262144,nl=4194304;function ls(o){var l=o&42;if(l!==0)return l;switch(o&-o){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function qo(o,l,d){var p=o.pendingLanes;if(p===0)return 0;var v=0,b=o.suspendedLanes,I=o.pingedLanes;o=o.warmLanes;var M=p&134217727;return M!==0?(p=M&~b,p!==0?v=ls(p):(I&=M,I!==0?v=ls(I):d||(d=M&~o,d!==0&&(v=ls(d))))):(M=p&~b,M!==0?v=ls(M):I!==0?v=ls(I):d||(d=p&~o,d!==0&&(v=ls(d)))),v===0?0:l!==0&&l!==v&&(l&b)===0&&(b=v&-v,d=l&-l,b>=d||b===32&&(d&4194048)!==0)?l:v}function Vo(o,l){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&l)===0}function Ru(o,l){switch(o){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32: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 l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rl(){var o=nl;return nl<<=1,(nl&62914560)===0&&(nl=4194304),o}function Pr(o){for(var l=[],d=0;31>d;d++)l.push(o);return l}function ma(o,l){o.pendingLanes|=l,l!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Hd(o,l,d,p,v,b){var I=o.pendingLanes;o.pendingLanes=d,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=d,o.entangledLanes&=d,o.errorRecoveryDisabledLanes&=d,o.shellSuspendCounter=0;var M=o.entanglements,$=o.expirationTimes,te=o.hiddenUpdates;for(d=I&~d;0<d;){var ie=31-pr(d),ue=1<<ie;M[ie]=0,$[ie]=-1;var ne=te[ie];if(ne!==null)for(te[ie]=null,ie=0;ie<ne.length;ie++){var ae=ne[ie];ae!==null&&(ae.lane&=-536870913)}d&=~ue}p!==0&&Tu(o,p,0),b!==0&&v===0&&o.tag!==0&&(o.suspendedLanes|=b&~(I&~l))}function Tu(o,l,d){o.pendingLanes|=l,o.suspendedLanes&=~l;var p=31-pr(l);o.entangledLanes|=l,o.entanglements[p]=o.entanglements[p]|1073741824|d&261930}function Hp(o,l){var d=o.entangledLanes|=l;for(o=o.entanglements;d;){var p=31-pr(d),v=1<<p;v&l|o[p]&l&&(o[p]|=l),d&=~v}}function qd(o,l){var d=l&-l;return d=(d&42)!==0?1:al(d),(d&(o.suspendedLanes|l))!==0?0:d}function al(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;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:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function Ou(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Nu(){var o=X.p;return o!==0?o:(o=window.event,o===void 0?32:v5(o.type))}function qp(o,l){var d=X.p;try{return X.p=o,l()}finally{X.p=d}}var Dr=Math.random().toString(36).slice(2),Ln="__reactFiber$"+Dr,mr="__reactProps$"+Dr,Dt="__reactContainer$"+Dr,us="__reactEvents$"+Dr,My="__reactListeners$"+Dr,Vp="__reactHandles$"+Dr,Mu="__reactResources$"+Dr,Wo="__reactMarker$"+Dr;function Pu(o){delete o[Ln],delete o[mr],delete o[us],delete o[My],delete o[Vp]}function Go(o){var l=o[Ln];if(l)return l;for(var d=o.parentNode;d;){if(l=d[Dt]||d[Ln]){if(d=l.alternate,l.child!==null||d!==null&&d.child!==null)for(o=t5(o);o!==null;){if(d=o[Ln])return d;o=t5(o)}return l}o=d,d=o.parentNode}return null}function Ko(o){if(o=o[Ln]||o[Dt]){var l=o.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return o}return null}function sl(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o.stateNode;throw Error(r(33))}function Yo(o){var l=o[Mu];return l||(l=o[Mu]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Xt(o){o[Wo]=!0}var ol=new Set,cs={};function Bs(o,l){ga(o,l),ga(o+"Capture",l)}function ga(o,l){for(cs[o]=l,o=0;o<l.length;o++)ol.add(l[o])}var Py=RegExp("^[: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]*$"),Vd={},Wd={};function Du(o){return Dn.call(Wd,o)?!0:Dn.call(Vd,o)?!1:Py.test(o)?Wd[o]=!0:(Vd[o]=!0,!1)}function Zo(o,l,d){if(Du(l))if(d===null)o.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":o.removeAttribute(l);return;case"boolean":var p=l.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){o.removeAttribute(l);return}}o.setAttribute(l,""+d)}}function Hs(o,l,d){if(d===null)o.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(l);return}o.setAttribute(l,""+d)}}function gr(o,l,d,p){if(p===null)o.removeAttribute(d);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(d);return}o.setAttributeNS(l,d,""+p)}}function Hn(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Qr(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Dy(o,l,d){var p=Object.getOwnPropertyDescriptor(o.constructor.prototype,l);if(!o.hasOwnProperty(l)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var v=p.get,b=p.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return v.call(this)},set:function(I){d=""+I,b.call(this,I)}}),Object.defineProperty(o,l,{enumerable:p.enumerable}),{getValue:function(){return d},setValue:function(I){d=""+I},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function Gd(o){if(!o._valueTracker){var l=Qr(o)?"checked":"value";o._valueTracker=Dy(o,l,""+o[l])}}function Kd(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var d=l.getValue(),p="";return o&&(p=Qr(o)?o.checked?"true":"false":o.value),o=p,o!==d?(l.setValue(o),!0):!1}function il(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var Wp=/[\n"\\]/g;function Lr(o){return o.replace(Wp,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function Lu(o,l,d,p,v,b,I,M){o.name="",I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?o.type=I:o.removeAttribute("type"),l!=null?I==="number"?(l===0&&o.value===""||o.value!=l)&&(o.value=""+Hn(l)):o.value!==""+Hn(l)&&(o.value=""+Hn(l)):I!=="submit"&&I!=="reset"||o.removeAttribute("value"),l!=null?Yd(o,I,Hn(l)):d!=null?Yd(o,I,Hn(d)):p!=null&&o.removeAttribute("value"),v==null&&b!=null&&(o.defaultChecked=!!b),v!=null&&(o.checked=v&&typeof v!="function"&&typeof v!="symbol"),M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?o.name=""+Hn(M):o.removeAttribute("name")}function Gp(o,l,d,p,v,b,I,M){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(o.type=b),l!=null||d!=null){if(!(b!=="submit"&&b!=="reset"||l!=null)){Gd(o);return}d=d!=null?""+Hn(d):"",l=l!=null?""+Hn(l):d,M||l===o.value||(o.value=l),o.defaultValue=l}p=p??v,p=typeof p!="function"&&typeof p!="symbol"&&!!p,o.checked=M?o.checked:!!p,o.defaultChecked=!!p,I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(o.name=I),Gd(o)}function Yd(o,l,d){l==="number"&&il(o.ownerDocument)===o||o.defaultValue===""+d||(o.defaultValue=""+d)}function qs(o,l,d,p){if(o=o.options,l){l={};for(var v=0;v<d.length;v++)l["$"+d[v]]=!0;for(d=0;d<o.length;d++)v=l.hasOwnProperty("$"+o[d].value),o[d].selected!==v&&(o[d].selected=v),v&&p&&(o[d].defaultSelected=!0)}else{for(d=""+Hn(d),l=null,v=0;v<o.length;v++){if(o[v].value===d){o[v].selected=!0,p&&(o[v].defaultSelected=!0);return}l!==null||o[v].disabled||(l=o[v])}l!==null&&(l.selected=!0)}}function ll(o,l,d){if(l!=null&&(l=""+Hn(l),l!==o.value&&(o.value=l),d==null)){o.defaultValue!==l&&(o.defaultValue=l);return}o.defaultValue=d!=null?""+Hn(d):""}function Uu(o,l,d,p){if(l==null){if(p!=null){if(d!=null)throw Error(r(92));if(se(p)){if(1<p.length)throw Error(r(93));p=p[0]}d=p}d==null&&(d=""),l=d}d=Hn(l),o.defaultValue=d,p=o.textContent,p===d&&p!==""&&p!==null&&(o.value=p),Gd(o)}function me(o,l){if(l){var d=o.firstChild;if(d&&d===o.lastChild&&d.nodeType===3){d.nodeValue=l;return}}o.textContent=l}var D=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Q(o,l,d){var p=l.indexOf("--")===0;d==null||typeof d=="boolean"||d===""?p?o.setProperty(l,""):l==="float"?o.cssFloat="":o[l]="":p?o.setProperty(l,d):typeof d!="number"||d===0||D.has(l)?l==="float"?o.cssFloat=d:o[l]=(""+d).trim():o[l]=d+"px"}function he(o,l,d){if(l!=null&&typeof l!="object")throw Error(r(62));if(o=o.style,d!=null){for(var p in d)!d.hasOwnProperty(p)||l!=null&&l.hasOwnProperty(p)||(p.indexOf("--")===0?o.setProperty(p,""):p==="float"?o.cssFloat="":o[p]="");for(var v in l)p=l[v],l.hasOwnProperty(v)&&d[v]!==p&&Q(o,v,p)}else for(var b in l)l.hasOwnProperty(b)&&Q(o,b,l[b])}function Oe(o){if(o.indexOf("-")===-1)return!1;switch(o){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 ze=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Qe=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Et(o){return Qe.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function _t(){}var qn=null;function Vn(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var ds=null,bn=null;function WI(o){var l=Ko(o);if(l&&(o=l.stateNode)){var d=o[mr]||null;e:switch(o=l.stateNode,l.type){case"input":if(Lu(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name),l=d.name,d.type==="radio"&&l!=null){for(d=o;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll('input[name="'+Lr(""+l)+'"][type="radio"]'),l=0;l<d.length;l++){var p=d[l];if(p!==o&&p.form===o.form){var v=p[mr]||null;if(!v)throw Error(r(90));Lu(p,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(l=0;l<d.length;l++)p=d[l],p.form===o.form&&Kd(p)}break e;case"textarea":ll(o,d.value,d.defaultValue);break e;case"select":l=d.value,l!=null&&qs(o,!!d.multiple,l,!1)}}}var Ly=!1;function GI(o,l,d){if(Ly)return o(l,d);Ly=!0;try{var p=o(l);return p}finally{if(Ly=!1,(ds!==null||bn!==null)&&(Pm(),ds&&(l=ds,o=bn,bn=ds=null,WI(l),o)))for(l=0;l<o.length;l++)WI(o[l])}}function Zd(o,l){var d=o.stateNode;if(d===null)return null;var p=d[mr]||null;if(p===null)return null;d=p[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(o=o.type,p=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!p;break e;default:o=!1}if(o)return null;if(d&&typeof d!="function")throw Error(r(231,l,typeof d));return d}var Vs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uy=!1;if(Vs)try{var Xd={};Object.defineProperty(Xd,"passive",{get:function(){Uy=!0}}),window.addEventListener("test",Xd,Xd),window.removeEventListener("test",Xd,Xd)}catch{Uy=!1}var Xo=null,jy=null,Kp=null;function KI(){if(Kp)return Kp;var o,l=jy,d=l.length,p,v="value"in Xo?Xo.value:Xo.textContent,b=v.length;for(o=0;o<d&&l[o]===v[o];o++);var I=d-o;for(p=1;p<=I&&l[d-p]===v[b-p];p++);return Kp=v.slice(o,1<p?1-p:void 0)}function Yp(o){var l=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&l===13&&(o=13)):o=l,o===10&&(o=13),32<=o||o===13?o:0}function Zp(){return!0}function YI(){return!1}function Ur(o){function l(d,p,v,b,I){this._reactName=d,this._targetInst=v,this.type=p,this.nativeEvent=b,this.target=I,this.currentTarget=null;for(var M in o)o.hasOwnProperty(M)&&(d=o[M],this[M]=d?d(b):b[M]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?Zp:YI,this.isPropagationStopped=YI,this}return m(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=Zp)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Zp)},persist:function(){},isPersistent:Zp}),l}var ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xp=Ur(ul),Qd=m({},ul,{view:0,detail:0}),cV=Ur(Qd),zy,Fy,Jd,Qp=m({},Qd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:By,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Jd&&(Jd&&o.type==="mousemove"?(zy=o.screenX-Jd.screenX,Fy=o.screenY-Jd.screenY):Fy=zy=0,Jd=o),zy)},movementY:function(o){return"movementY"in o?o.movementY:Fy}}),ZI=Ur(Qp),dV=m({},Qp,{dataTransfer:0}),fV=Ur(dV),hV=m({},Qd,{relatedTarget:0}),$y=Ur(hV),pV=m({},ul,{animationName:0,elapsedTime:0,pseudoElement:0}),mV=Ur(pV),gV=m({},ul,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),vV=Ur(gV),yV=m({},ul,{data:0}),XI=Ur(yV),bV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},SV={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"},wV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xV(o){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(o):(o=wV[o])?!!l[o]:!1}function By(){return xV}var CV=m({},Qd,{key:function(o){if(o.key){var l=bV[o.key]||o.key;if(l!=="Unidentified")return l}return o.type==="keypress"?(o=Yp(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?SV[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:By,charCode:function(o){return o.type==="keypress"?Yp(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Yp(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),EV=Ur(CV),_V=m({},Qp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),QI=Ur(_V),kV=m({},Qd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:By}),AV=Ur(kV),IV=m({},ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),RV=Ur(IV),TV=m({},Qp,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),OV=Ur(TV),NV=m({},ul,{newState:0,oldState:0}),MV=Ur(NV),PV=[9,13,27,32],Hy=Vs&&"CompositionEvent"in window,ef=null;Vs&&"documentMode"in document&&(ef=document.documentMode);var DV=Vs&&"TextEvent"in window&&!ef,JI=Vs&&(!Hy||ef&&8<ef&&11>=ef),eR=" ",tR=!1;function nR(o,l){switch(o){case"keyup":return PV.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rR(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var ju=!1;function LV(o,l){switch(o){case"compositionend":return rR(l);case"keypress":return l.which!==32?null:(tR=!0,eR);case"textInput":return o=l.data,o===eR&&tR?null:o;default:return null}}function UV(o,l){if(ju)return o==="compositionend"||!Hy&&nR(o,l)?(o=KI(),Kp=jy=Xo=null,ju=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return JI&&l.locale!=="ko"?null:l.data;default:return null}}var jV={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 aR(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l==="input"?!!jV[o.type]:l==="textarea"}function sR(o,l,d,p){ds?bn?bn.push(p):bn=[p]:ds=p,l=$m(l,"onChange"),0<l.length&&(d=new Xp("onChange","change",null,d,p),o.push({event:d,listeners:l}))}var tf=null,nf=null;function zV(o){$4(o,0)}function Jp(o){var l=sl(o);if(Kd(l))return o}function oR(o,l){if(o==="change")return l}var iR=!1;if(Vs){var qy;if(Vs){var Vy="oninput"in document;if(!Vy){var lR=document.createElement("div");lR.setAttribute("oninput","return;"),Vy=typeof lR.oninput=="function"}qy=Vy}else qy=!1;iR=qy&&(!document.documentMode||9<document.documentMode)}function uR(){tf&&(tf.detachEvent("onpropertychange",cR),nf=tf=null)}function cR(o){if(o.propertyName==="value"&&Jp(nf)){var l=[];sR(l,nf,o,Vn(o)),GI(zV,l)}}function FV(o,l,d){o==="focusin"?(uR(),tf=l,nf=d,tf.attachEvent("onpropertychange",cR)):o==="focusout"&&uR()}function $V(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Jp(nf)}function BV(o,l){if(o==="click")return Jp(l)}function HV(o,l){if(o==="input"||o==="change")return Jp(l)}function qV(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var Jr=typeof Object.is=="function"?Object.is:qV;function rf(o,l){if(Jr(o,l))return!0;if(typeof o!="object"||o===null||typeof l!="object"||l===null)return!1;var d=Object.keys(o),p=Object.keys(l);if(d.length!==p.length)return!1;for(p=0;p<d.length;p++){var v=d[p];if(!Dn.call(l,v)||!Jr(o[v],l[v]))return!1}return!0}function dR(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function fR(o,l){var d=dR(o);o=0;for(var p;d;){if(d.nodeType===3){if(p=o+d.textContent.length,o<=l&&p>=l)return{node:d,offset:l-o};o=p}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=dR(d)}}function hR(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?hR(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function pR(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var l=il(o.document);l instanceof o.HTMLIFrameElement;){try{var d=typeof l.contentWindow.location.href=="string"}catch{d=!1}if(d)o=l.contentWindow;else break;l=il(o.document)}return l}function Wy(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}var VV=Vs&&"documentMode"in document&&11>=document.documentMode,zu=null,Gy=null,af=null,Ky=!1;function mR(o,l,d){var p=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;Ky||zu==null||zu!==il(p)||(p=zu,"selectionStart"in p&&Wy(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),af&&rf(af,p)||(af=p,p=$m(Gy,"onSelect"),0<p.length&&(l=new Xp("onSelect","select",null,l,d),o.push({event:l,listeners:p}),l.target=zu)))}function cl(o,l){var d={};return d[o.toLowerCase()]=l.toLowerCase(),d["Webkit"+o]="webkit"+l,d["Moz"+o]="moz"+l,d}var Fu={animationend:cl("Animation","AnimationEnd"),animationiteration:cl("Animation","AnimationIteration"),animationstart:cl("Animation","AnimationStart"),transitionrun:cl("Transition","TransitionRun"),transitionstart:cl("Transition","TransitionStart"),transitioncancel:cl("Transition","TransitionCancel"),transitionend:cl("Transition","TransitionEnd")},Yy={},gR={};Vs&&(gR=document.createElement("div").style,"AnimationEvent"in window||(delete Fu.animationend.animation,delete Fu.animationiteration.animation,delete Fu.animationstart.animation),"TransitionEvent"in window||delete Fu.transitionend.transition);function dl(o){if(Yy[o])return Yy[o];if(!Fu[o])return o;var l=Fu[o],d;for(d in l)if(l.hasOwnProperty(d)&&d in gR)return Yy[o]=l[d];return o}var vR=dl("animationend"),yR=dl("animationiteration"),bR=dl("animationstart"),WV=dl("transitionrun"),GV=dl("transitionstart"),KV=dl("transitioncancel"),SR=dl("transitionend"),wR=new Map,Zy="abort auxClick beforeToggle 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(" ");Zy.push("scrollEnd");function ja(o,l){wR.set(o,l),Bs(l,[o])}var em=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},va=[],$u=0,Xy=0;function tm(){for(var o=$u,l=Xy=$u=0;l<o;){var d=va[l];va[l++]=null;var p=va[l];va[l++]=null;var v=va[l];va[l++]=null;var b=va[l];if(va[l++]=null,p!==null&&v!==null){var I=p.pending;I===null?v.next=v:(v.next=I.next,I.next=v),p.pending=v}b!==0&&xR(d,v,b)}}function nm(o,l,d,p){va[$u++]=o,va[$u++]=l,va[$u++]=d,va[$u++]=p,Xy|=p,o.lanes|=p,o=o.alternate,o!==null&&(o.lanes|=p)}function Qy(o,l,d,p){return nm(o,l,d,p),rm(o)}function fl(o,l){return nm(o,null,null,l),rm(o)}function xR(o,l,d){o.lanes|=d;var p=o.alternate;p!==null&&(p.lanes|=d);for(var v=!1,b=o.return;b!==null;)b.childLanes|=d,p=b.alternate,p!==null&&(p.childLanes|=d),b.tag===22&&(o=b.stateNode,o===null||o._visibility&1||(v=!0)),o=b,b=b.return;return o.tag===3?(b=o.stateNode,v&&l!==null&&(v=31-pr(d),o=b.hiddenUpdates,p=o[v],p===null?o[v]=[l]:p.push(l),l.lane=d|536870912),b):null}function rm(o){if(50<Af)throw Af=0,iS=null,Error(r(185));for(var l=o.return;l!==null;)o=l,l=o.return;return o.tag===3?o.stateNode:null}var Bu={};function YV(o,l,d,p){this.tag=o,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ea(o,l,d,p){return new YV(o,l,d,p)}function Jy(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Ws(o,l){var d=o.alternate;return d===null?(d=ea(o.tag,l,o.key,o.mode),d.elementType=o.elementType,d.type=o.type,d.stateNode=o.stateNode,d.alternate=o,o.alternate=d):(d.pendingProps=l,d.type=o.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=o.flags&65011712,d.childLanes=o.childLanes,d.lanes=o.lanes,d.child=o.child,d.memoizedProps=o.memoizedProps,d.memoizedState=o.memoizedState,d.updateQueue=o.updateQueue,l=o.dependencies,d.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},d.sibling=o.sibling,d.index=o.index,d.ref=o.ref,d.refCleanup=o.refCleanup,d}function CR(o,l){o.flags&=65011714;var d=o.alternate;return d===null?(o.childLanes=0,o.lanes=l,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=d.childLanes,o.lanes=d.lanes,o.child=d.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=d.memoizedProps,o.memoizedState=d.memoizedState,o.updateQueue=d.updateQueue,o.type=d.type,l=d.dependencies,o.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),o}function am(o,l,d,p,v,b){var I=0;if(p=o,typeof o=="function")Jy(o)&&(I=1);else if(typeof o=="string")I=eG(o,d,J.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case L:return o=ea(31,d,l,v),o.elementType=L,o.lanes=b,o;case w:return hl(d.children,v,b,l);case x:I=8,v|=24;break;case _:return o=ea(12,d,l,v|2),o.elementType=_,o.lanes=b,o;case N:return o=ea(13,d,l,v),o.elementType=N,o.lanes=b,o;case O:return o=ea(19,d,l,v),o.elementType=O,o.lanes=b,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case A:I=10;break e;case k:I=9;break e;case R:I=11;break e;case T:I=14;break e;case P:I=16,p=null;break e}I=29,d=Error(r(130,o===null?"null":typeof o,"")),p=null}return l=ea(I,d,l,v),l.elementType=o,l.type=p,l.lanes=b,l}function hl(o,l,d,p){return o=ea(7,o,p,l),o.lanes=d,o}function eb(o,l,d){return o=ea(6,o,null,l),o.lanes=d,o}function ER(o){var l=ea(18,null,null,0);return l.stateNode=o,l}function tb(o,l,d){return l=ea(4,o.children!==null?o.children:[],o.key,l),l.lanes=d,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}var _R=new WeakMap;function ya(o,l){if(typeof o=="object"&&o!==null){var d=_R.get(o);return d!==void 0?d:(l={value:o,source:l,stack:Zt(l)},_R.set(o,l),l)}return{value:o,source:l,stack:Zt(l)}}var Hu=[],qu=0,sm=null,sf=0,ba=[],Sa=0,Qo=null,fs=1,hs="";function Gs(o,l){Hu[qu++]=sf,Hu[qu++]=sm,sm=o,sf=l}function kR(o,l,d){ba[Sa++]=fs,ba[Sa++]=hs,ba[Sa++]=Qo,Qo=o;var p=fs;o=hs;var v=32-pr(p)-1;p&=~(1<<v),d+=1;var b=32-pr(l)+v;if(30<b){var I=v-v%5;b=(p&(1<<I)-1).toString(32),p>>=I,v-=I,fs=1<<32-pr(l)+v|d<<v|p,hs=b+o}else fs=1<<b|d<<v|p,hs=o}function nb(o){o.return!==null&&(Gs(o,1),kR(o,1,0))}function rb(o){for(;o===sm;)sm=Hu[--qu],Hu[qu]=null,sf=Hu[--qu],Hu[qu]=null;for(;o===Qo;)Qo=ba[--Sa],ba[Sa]=null,hs=ba[--Sa],ba[Sa]=null,fs=ba[--Sa],ba[Sa]=null}function AR(o,l){ba[Sa++]=fs,ba[Sa++]=hs,ba[Sa++]=Qo,fs=l.id,hs=l.overflow,Qo=o}var tr=null,an=null,mt=!1,Jo=null,wa=!1,ab=Error(r(519));function ei(o){var l=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw of(ya(l,o)),ab}function IR(o){var l=o.stateNode,d=o.type,p=o.memoizedProps;switch(l[Ln]=o,l[mr]=p,d){case"dialog":ct("cancel",l),ct("close",l);break;case"iframe":case"object":case"embed":ct("load",l);break;case"video":case"audio":for(d=0;d<Rf.length;d++)ct(Rf[d],l);break;case"source":ct("error",l);break;case"img":case"image":case"link":ct("error",l),ct("load",l);break;case"details":ct("toggle",l);break;case"input":ct("invalid",l),Gp(l,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":ct("invalid",l);break;case"textarea":ct("invalid",l),Uu(l,p.value,p.defaultValue,p.children)}d=p.children,typeof d!="string"&&typeof d!="number"&&typeof d!="bigint"||l.textContent===""+d||p.suppressHydrationWarning===!0||V4(l.textContent,d)?(p.popover!=null&&(ct("beforetoggle",l),ct("toggle",l)),p.onScroll!=null&&ct("scroll",l),p.onScrollEnd!=null&&ct("scrollend",l),p.onClick!=null&&(l.onclick=_t),l=!0):l=!1,l||ei(o,!0)}function RR(o){for(tr=o.return;tr;)switch(tr.tag){case 5:case 31:case 13:wa=!1;return;case 27:case 3:wa=!0;return;default:tr=tr.return}}function Vu(o){if(o!==tr)return!1;if(!mt)return RR(o),mt=!0,!1;var l=o.tag,d;if((d=l!==3&&l!==27)&&((d=l===5)&&(d=o.type,d=!(d!=="form"&&d!=="button")||xS(o.type,o.memoizedProps)),d=!d),d&&an&&ei(o),RR(o),l===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));an=e5(o)}else if(l===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));an=e5(o)}else l===27?(l=an,pi(o.type)?(o=AS,AS=null,an=o):an=l):an=tr?Ca(o.stateNode.nextSibling):null;return!0}function pl(){an=tr=null,mt=!1}function sb(){var o=Jo;return o!==null&&($r===null?$r=o:$r.push.apply($r,o),Jo=null),o}function of(o){Jo===null?Jo=[o]:Jo.push(o)}var ob=z(null),ml=null,Ks=null;function ti(o,l,d){G(ob,l._currentValue),l._currentValue=d}function Ys(o){o._currentValue=ob.current,W(ob)}function ib(o,l,d){for(;o!==null;){var p=o.alternate;if((o.childLanes&l)!==l?(o.childLanes|=l,p!==null&&(p.childLanes|=l)):p!==null&&(p.childLanes&l)!==l&&(p.childLanes|=l),o===d)break;o=o.return}}function lb(o,l,d,p){var v=o.child;for(v!==null&&(v.return=o);v!==null;){var b=v.dependencies;if(b!==null){var I=v.child;b=b.firstContext;e:for(;b!==null;){var M=b;b=v;for(var $=0;$<l.length;$++)if(M.context===l[$]){b.lanes|=d,M=b.alternate,M!==null&&(M.lanes|=d),ib(b.return,d,o),p||(I=null);break e}b=M.next}}else if(v.tag===18){if(I=v.return,I===null)throw Error(r(341));I.lanes|=d,b=I.alternate,b!==null&&(b.lanes|=d),ib(I,d,o),I=null}else I=v.child;if(I!==null)I.return=v;else for(I=v;I!==null;){if(I===o){I=null;break}if(v=I.sibling,v!==null){v.return=I.return,I=v;break}I=I.return}v=I}}function Wu(o,l,d,p){o=null;for(var v=l,b=!1;v!==null;){if(!b){if((v.flags&524288)!==0)b=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var I=v.alternate;if(I===null)throw Error(r(387));if(I=I.memoizedProps,I!==null){var M=v.type;Jr(v.pendingProps.value,I.value)||(o!==null?o.push(M):o=[M])}}else if(v===K.current){if(I=v.alternate,I===null)throw Error(r(387));I.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(o!==null?o.push(Pf):o=[Pf])}v=v.return}o!==null&&lb(l,o,d,p),l.flags|=262144}function om(o){for(o=o.firstContext;o!==null;){if(!Jr(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function gl(o){ml=o,Ks=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function nr(o){return TR(ml,o)}function im(o,l){return ml===null&&gl(o),TR(o,l)}function TR(o,l){var d=l._currentValue;if(l={context:l,memoizedValue:d,next:null},Ks===null){if(o===null)throw Error(r(308));Ks=l,o.dependencies={lanes:0,firstContext:l},o.flags|=524288}else Ks=Ks.next=l;return d}var ZV=typeof AbortController<"u"?AbortController:function(){var o=[],l=this.signal={aborted:!1,addEventListener:function(d,p){o.push(p)}};this.abort=function(){l.aborted=!0,o.forEach(function(d){return d()})}},XV=e.unstable_scheduleCallback,QV=e.unstable_NormalPriority,kn={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ub(){return{controller:new ZV,data:new Map,refCount:0}}function lf(o){o.refCount--,o.refCount===0&&XV(QV,function(){o.controller.abort()})}var uf=null,cb=0,Gu=0,Ku=null;function JV(o,l){if(uf===null){var d=uf=[];cb=0,Gu=hS(),Ku={status:"pending",value:void 0,then:function(p){d.push(p)}}}return cb++,l.then(OR,OR),l}function OR(){if(--cb===0&&uf!==null){Ku!==null&&(Ku.status="fulfilled");var o=uf;uf=null,Gu=0,Ku=null;for(var l=0;l<o.length;l++)(0,o[l])()}}function eW(o,l){var d=[],p={status:"pending",value:null,reason:null,then:function(v){d.push(v)}};return o.then(function(){p.status="fulfilled",p.value=l;for(var v=0;v<d.length;v++)(0,d[v])(l)},function(v){for(p.status="rejected",p.reason=v,v=0;v<d.length;v++)(0,d[v])(void 0)}),p}var NR=B.S;B.S=function(o,l){m4=nn(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&JV(o,l),NR!==null&&NR(o,l)};var vl=z(null);function db(){var o=vl.current;return o!==null?o:Qt.pooledCache}function lm(o,l){l===null?G(vl,vl.current):G(vl,l.pool)}function MR(){var o=db();return o===null?null:{parent:kn._currentValue,pool:o}}var Yu=Error(r(460)),fb=Error(r(474)),um=Error(r(542)),cm={then:function(){}};function PR(o){return o=o.status,o==="fulfilled"||o==="rejected"}function DR(o,l,d){switch(d=o[d],d===void 0?o.push(l):d!==l&&(l.then(_t,_t),l=d),l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,UR(o),o;default:if(typeof l.status=="string")l.then(_t,_t);else{if(o=Qt,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=l,o.status="pending",o.then(function(p){if(l.status==="pending"){var v=l;v.status="fulfilled",v.value=p}},function(p){if(l.status==="pending"){var v=l;v.status="rejected",v.reason=p}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,UR(o),o}throw bl=l,Yu}}function yl(o){try{var l=o._init;return l(o._payload)}catch(d){throw d!==null&&typeof d=="object"&&typeof d.then=="function"?(bl=d,Yu):d}}var bl=null;function LR(){if(bl===null)throw Error(r(459));var o=bl;return bl=null,o}function UR(o){if(o===Yu||o===um)throw Error(r(483))}var Zu=null,cf=0;function dm(o){var l=cf;return cf+=1,Zu===null&&(Zu=[]),DR(Zu,o,l)}function df(o,l){l=l.props.ref,o.ref=l!==void 0?l:null}function fm(o,l){throw l.$$typeof===g?Error(r(525)):(o=Object.prototype.toString.call(l),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":o)))}function jR(o){function l(Y,V){if(o){var ee=Y.deletions;ee===null?(Y.deletions=[V],Y.flags|=16):ee.push(V)}}function d(Y,V){if(!o)return null;for(;V!==null;)l(Y,V),V=V.sibling;return null}function p(Y){for(var V=new Map;Y!==null;)Y.key!==null?V.set(Y.key,Y):V.set(Y.index,Y),Y=Y.sibling;return V}function v(Y,V){return Y=Ws(Y,V),Y.index=0,Y.sibling=null,Y}function b(Y,V,ee){return Y.index=ee,o?(ee=Y.alternate,ee!==null?(ee=ee.index,ee<V?(Y.flags|=67108866,V):ee):(Y.flags|=67108866,V)):(Y.flags|=1048576,V)}function I(Y){return o&&Y.alternate===null&&(Y.flags|=67108866),Y}function M(Y,V,ee,le){return V===null||V.tag!==6?(V=eb(ee,Y.mode,le),V.return=Y,V):(V=v(V,ee),V.return=Y,V)}function $(Y,V,ee,le){var Fe=ee.type;return Fe===w?ie(Y,V,ee.props.children,le,ee.key):V!==null&&(V.elementType===Fe||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===P&&yl(Fe)===V.type)?(V=v(V,ee.props),df(V,ee),V.return=Y,V):(V=am(ee.type,ee.key,ee.props,null,Y.mode,le),df(V,ee),V.return=Y,V)}function te(Y,V,ee,le){return V===null||V.tag!==4||V.stateNode.containerInfo!==ee.containerInfo||V.stateNode.implementation!==ee.implementation?(V=tb(ee,Y.mode,le),V.return=Y,V):(V=v(V,ee.children||[]),V.return=Y,V)}function ie(Y,V,ee,le,Fe){return V===null||V.tag!==7?(V=hl(ee,Y.mode,le,Fe),V.return=Y,V):(V=v(V,ee),V.return=Y,V)}function ue(Y,V,ee){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return V=eb(""+V,Y.mode,ee),V.return=Y,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case y:return ee=am(V.type,V.key,V.props,null,Y.mode,ee),df(ee,V),ee.return=Y,ee;case S:return V=tb(V,Y.mode,ee),V.return=Y,V;case P:return V=yl(V),ue(Y,V,ee)}if(se(V)||U(V))return V=hl(V,Y.mode,ee,null),V.return=Y,V;if(typeof V.then=="function")return ue(Y,dm(V),ee);if(V.$$typeof===A)return ue(Y,im(Y,V),ee);fm(Y,V)}return null}function ne(Y,V,ee,le){var Fe=V!==null?V.key:null;if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return Fe!==null?null:M(Y,V,""+ee,le);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case y:return ee.key===Fe?$(Y,V,ee,le):null;case S:return ee.key===Fe?te(Y,V,ee,le):null;case P:return ee=yl(ee),ne(Y,V,ee,le)}if(se(ee)||U(ee))return Fe!==null?null:ie(Y,V,ee,le,null);if(typeof ee.then=="function")return ne(Y,V,dm(ee),le);if(ee.$$typeof===A)return ne(Y,V,im(Y,ee),le);fm(Y,ee)}return null}function ae(Y,V,ee,le,Fe){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return Y=Y.get(ee)||null,M(V,Y,""+le,Fe);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case y:return Y=Y.get(le.key===null?ee:le.key)||null,$(V,Y,le,Fe);case S:return Y=Y.get(le.key===null?ee:le.key)||null,te(V,Y,le,Fe);case P:return le=yl(le),ae(Y,V,ee,le,Fe)}if(se(le)||U(le))return Y=Y.get(ee)||null,ie(V,Y,le,Fe,null);if(typeof le.then=="function")return ae(Y,V,ee,dm(le),Fe);if(le.$$typeof===A)return ae(Y,V,ee,im(V,le),Fe);fm(V,le)}return null}function Ie(Y,V,ee,le){for(var Fe=null,It=null,De=V,rt=V=0,ht=null;De!==null&&rt<ee.length;rt++){De.index>rt?(ht=De,De=null):ht=De.sibling;var Rt=ne(Y,De,ee[rt],le);if(Rt===null){De===null&&(De=ht);break}o&&De&&Rt.alternate===null&&l(Y,De),V=b(Rt,V,rt),It===null?Fe=Rt:It.sibling=Rt,It=Rt,De=ht}if(rt===ee.length)return d(Y,De),mt&&Gs(Y,rt),Fe;if(De===null){for(;rt<ee.length;rt++)De=ue(Y,ee[rt],le),De!==null&&(V=b(De,V,rt),It===null?Fe=De:It.sibling=De,It=De);return mt&&Gs(Y,rt),Fe}for(De=p(De);rt<ee.length;rt++)ht=ae(De,Y,rt,ee[rt],le),ht!==null&&(o&&ht.alternate!==null&&De.delete(ht.key===null?rt:ht.key),V=b(ht,V,rt),It===null?Fe=ht:It.sibling=ht,It=ht);return o&&De.forEach(function(bi){return l(Y,bi)}),mt&&Gs(Y,rt),Fe}function $e(Y,V,ee,le){if(ee==null)throw Error(r(151));for(var Fe=null,It=null,De=V,rt=V=0,ht=null,Rt=ee.next();De!==null&&!Rt.done;rt++,Rt=ee.next()){De.index>rt?(ht=De,De=null):ht=De.sibling;var bi=ne(Y,De,Rt.value,le);if(bi===null){De===null&&(De=ht);break}o&&De&&bi.alternate===null&&l(Y,De),V=b(bi,V,rt),It===null?Fe=bi:It.sibling=bi,It=bi,De=ht}if(Rt.done)return d(Y,De),mt&&Gs(Y,rt),Fe;if(De===null){for(;!Rt.done;rt++,Rt=ee.next())Rt=ue(Y,Rt.value,le),Rt!==null&&(V=b(Rt,V,rt),It===null?Fe=Rt:It.sibling=Rt,It=Rt);return mt&&Gs(Y,rt),Fe}for(De=p(De);!Rt.done;rt++,Rt=ee.next())Rt=ae(De,Y,rt,Rt.value,le),Rt!==null&&(o&&Rt.alternate!==null&&De.delete(Rt.key===null?rt:Rt.key),V=b(Rt,V,rt),It===null?Fe=Rt:It.sibling=Rt,It=Rt);return o&&De.forEach(function(dG){return l(Y,dG)}),mt&&Gs(Y,rt),Fe}function Vt(Y,V,ee,le){if(typeof ee=="object"&&ee!==null&&ee.type===w&&ee.key===null&&(ee=ee.props.children),typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case y:e:{for(var Fe=ee.key;V!==null;){if(V.key===Fe){if(Fe=ee.type,Fe===w){if(V.tag===7){d(Y,V.sibling),le=v(V,ee.props.children),le.return=Y,Y=le;break e}}else if(V.elementType===Fe||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===P&&yl(Fe)===V.type){d(Y,V.sibling),le=v(V,ee.props),df(le,ee),le.return=Y,Y=le;break e}d(Y,V);break}else l(Y,V);V=V.sibling}ee.type===w?(le=hl(ee.props.children,Y.mode,le,ee.key),le.return=Y,Y=le):(le=am(ee.type,ee.key,ee.props,null,Y.mode,le),df(le,ee),le.return=Y,Y=le)}return I(Y);case S:e:{for(Fe=ee.key;V!==null;){if(V.key===Fe)if(V.tag===4&&V.stateNode.containerInfo===ee.containerInfo&&V.stateNode.implementation===ee.implementation){d(Y,V.sibling),le=v(V,ee.children||[]),le.return=Y,Y=le;break e}else{d(Y,V);break}else l(Y,V);V=V.sibling}le=tb(ee,Y.mode,le),le.return=Y,Y=le}return I(Y);case P:return ee=yl(ee),Vt(Y,V,ee,le)}if(se(ee))return Ie(Y,V,ee,le);if(U(ee)){if(Fe=U(ee),typeof Fe!="function")throw Error(r(150));return ee=Fe.call(ee),$e(Y,V,ee,le)}if(typeof ee.then=="function")return Vt(Y,V,dm(ee),le);if(ee.$$typeof===A)return Vt(Y,V,im(Y,ee),le);fm(Y,ee)}return typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint"?(ee=""+ee,V!==null&&V.tag===6?(d(Y,V.sibling),le=v(V,ee),le.return=Y,Y=le):(d(Y,V),le=eb(ee,Y.mode,le),le.return=Y,Y=le),I(Y)):d(Y,V)}return function(Y,V,ee,le){try{cf=0;var Fe=Vt(Y,V,ee,le);return Zu=null,Fe}catch(De){if(De===Yu||De===um)throw De;var It=ea(29,De,null,Y.mode);return It.lanes=le,It.return=Y,It}}}var Sl=jR(!0),zR=jR(!1),ni=!1;function hb(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pb(o,l){o=o.updateQueue,l.updateQueue===o&&(l.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function ri(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function ai(o,l,d){var p=o.updateQueue;if(p===null)return null;if(p=p.shared,(Nt&2)!==0){var v=p.pending;return v===null?l.next=l:(l.next=v.next,v.next=l),p.pending=l,l=rm(o),xR(o,null,d),l}return nm(o,p,l,d),rm(o)}function ff(o,l,d){if(l=l.updateQueue,l!==null&&(l=l.shared,(d&4194048)!==0)){var p=l.lanes;p&=o.pendingLanes,d|=p,l.lanes=d,Hp(o,d)}}function mb(o,l){var d=o.updateQueue,p=o.alternate;if(p!==null&&(p=p.updateQueue,d===p)){var v=null,b=null;if(d=d.firstBaseUpdate,d!==null){do{var I={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};b===null?v=b=I:b=b.next=I,d=d.next}while(d!==null);b===null?v=b=l:b=b.next=l}else v=b=l;d={baseState:p.baseState,firstBaseUpdate:v,lastBaseUpdate:b,shared:p.shared,callbacks:p.callbacks},o.updateQueue=d;return}o=d.lastBaseUpdate,o===null?d.firstBaseUpdate=l:o.next=l,d.lastBaseUpdate=l}var gb=!1;function hf(){if(gb){var o=Ku;if(o!==null)throw o}}function pf(o,l,d,p){gb=!1;var v=o.updateQueue;ni=!1;var b=v.firstBaseUpdate,I=v.lastBaseUpdate,M=v.shared.pending;if(M!==null){v.shared.pending=null;var $=M,te=$.next;$.next=null,I===null?b=te:I.next=te,I=$;var ie=o.alternate;ie!==null&&(ie=ie.updateQueue,M=ie.lastBaseUpdate,M!==I&&(M===null?ie.firstBaseUpdate=te:M.next=te,ie.lastBaseUpdate=$))}if(b!==null){var ue=v.baseState;I=0,ie=te=$=null,M=b;do{var ne=M.lane&-536870913,ae=ne!==M.lane;if(ae?(ft&ne)===ne:(p&ne)===ne){ne!==0&&ne===Gu&&(gb=!0),ie!==null&&(ie=ie.next={lane:0,tag:M.tag,payload:M.payload,callback:null,next:null});e:{var Ie=o,$e=M;ne=l;var Vt=d;switch($e.tag){case 1:if(Ie=$e.payload,typeof Ie=="function"){ue=Ie.call(Vt,ue,ne);break e}ue=Ie;break e;case 3:Ie.flags=Ie.flags&-65537|128;case 0:if(Ie=$e.payload,ne=typeof Ie=="function"?Ie.call(Vt,ue,ne):Ie,ne==null)break e;ue=m({},ue,ne);break e;case 2:ni=!0}}ne=M.callback,ne!==null&&(o.flags|=64,ae&&(o.flags|=8192),ae=v.callbacks,ae===null?v.callbacks=[ne]:ae.push(ne))}else ae={lane:ne,tag:M.tag,payload:M.payload,callback:M.callback,next:null},ie===null?(te=ie=ae,$=ue):ie=ie.next=ae,I|=ne;if(M=M.next,M===null){if(M=v.shared.pending,M===null)break;ae=M,M=ae.next,ae.next=null,v.lastBaseUpdate=ae,v.shared.pending=null}}while(!0);ie===null&&($=ue),v.baseState=$,v.firstBaseUpdate=te,v.lastBaseUpdate=ie,b===null&&(v.shared.lanes=0),ui|=I,o.lanes=I,o.memoizedState=ue}}function FR(o,l){if(typeof o!="function")throw Error(r(191,o));o.call(l)}function $R(o,l){var d=o.callbacks;if(d!==null)for(o.callbacks=null,o=0;o<d.length;o++)FR(d[o],l)}var Xu=z(null),hm=z(0);function BR(o,l){o=ao,G(hm,o),G(Xu,l),ao=o|l.baseLanes}function vb(){G(hm,ao),G(Xu,Xu.current)}function yb(){ao=hm.current,W(Xu),W(hm)}var ta=z(null),xa=null;function si(o){var l=o.alternate;G(En,En.current&1),G(ta,o),xa===null&&(l===null||Xu.current!==null||l.memoizedState!==null)&&(xa=o)}function bb(o){G(En,En.current),G(ta,o),xa===null&&(xa=o)}function HR(o){o.tag===22?(G(En,En.current),G(ta,o),xa===null&&(xa=o)):oi()}function oi(){G(En,En.current),G(ta,ta.current)}function na(o){W(ta),xa===o&&(xa=null),W(En)}var En=z(0);function pm(o){for(var l=o;l!==null;){if(l.tag===13){var d=l.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||_S(d)||kS(d)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Zs=0,nt=null,Ht=null,An=null,mm=!1,Qu=!1,wl=!1,gm=0,mf=0,Ju=null,tW=0;function Sn(){throw Error(r(321))}function Sb(o,l){if(l===null)return!1;for(var d=0;d<l.length&&d<o.length;d++)if(!Jr(o[d],l[d]))return!1;return!0}function wb(o,l,d,p,v,b){return Zs=b,nt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,B.H=o===null||o.memoizedState===null?kT:Lb,wl=!1,b=d(p,v),wl=!1,Qu&&(b=VR(l,d,p,v)),qR(o),b}function qR(o){B.H=yf;var l=Ht!==null&&Ht.next!==null;if(Zs=0,An=Ht=nt=null,mm=!1,mf=0,Ju=null,l)throw Error(r(300));o===null||In||(o=o.dependencies,o!==null&&om(o)&&(In=!0))}function VR(o,l,d,p){nt=o;var v=0;do{if(Qu&&(Ju=null),mf=0,Qu=!1,25<=v)throw Error(r(301));if(v+=1,An=Ht=null,o.updateQueue!=null){var b=o.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}B.H=AT,b=l(d,p)}while(Qu);return b}function nW(){var o=B.H,l=o.useState()[0];return l=typeof l.then=="function"?gf(l):l,o=o.useState()[0],(Ht!==null?Ht.memoizedState:null)!==o&&(nt.flags|=1024),l}function xb(){var o=gm!==0;return gm=0,o}function Cb(o,l,d){l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~d}function Eb(o){if(mm){for(o=o.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}mm=!1}Zs=0,An=Ht=nt=null,Qu=!1,mf=gm=0,Ju=null}function kr(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return An===null?nt.memoizedState=An=o:An=An.next=o,An}function _n(){if(Ht===null){var o=nt.alternate;o=o!==null?o.memoizedState:null}else o=Ht.next;var l=An===null?nt.memoizedState:An.next;if(l!==null)An=l,Ht=o;else{if(o===null)throw nt.alternate===null?Error(r(467)):Error(r(310));Ht=o,o={memoizedState:Ht.memoizedState,baseState:Ht.baseState,baseQueue:Ht.baseQueue,queue:Ht.queue,next:null},An===null?nt.memoizedState=An=o:An=An.next=o}return An}function vm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gf(o){var l=mf;return mf+=1,Ju===null&&(Ju=[]),o=DR(Ju,o,l),l=nt,(An===null?l.memoizedState:An.next)===null&&(l=l.alternate,B.H=l===null||l.memoizedState===null?kT:Lb),o}function ym(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return gf(o);if(o.$$typeof===A)return nr(o)}throw Error(r(438,String(o)))}function _b(o){var l=null,d=nt.updateQueue;if(d!==null&&(l=d.memoCache),l==null){var p=nt.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(l={data:p.data.map(function(v){return v.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),d===null&&(d=vm(),nt.updateQueue=d),d.memoCache=l,d=l.data[l.index],d===void 0)for(d=l.data[l.index]=Array(o),p=0;p<o;p++)d[p]=q;return l.index++,d}function Xs(o,l){return typeof l=="function"?l(o):l}function bm(o){var l=_n();return kb(l,Ht,o)}function kb(o,l,d){var p=o.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=d;var v=o.baseQueue,b=p.pending;if(b!==null){if(v!==null){var I=v.next;v.next=b.next,b.next=I}l.baseQueue=v=b,p.pending=null}if(b=o.baseState,v===null)o.memoizedState=b;else{l=v.next;var M=I=null,$=null,te=l,ie=!1;do{var ue=te.lane&-536870913;if(ue!==te.lane?(ft&ue)===ue:(Zs&ue)===ue){var ne=te.revertLane;if(ne===0)$!==null&&($=$.next={lane:0,revertLane:0,gesture:null,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null}),ue===Gu&&(ie=!0);else if((Zs&ne)===ne){te=te.next,ne===Gu&&(ie=!0);continue}else ue={lane:0,revertLane:te.revertLane,gesture:null,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},$===null?(M=$=ue,I=b):$=$.next=ue,nt.lanes|=ne,ui|=ne;ue=te.action,wl&&d(b,ue),b=te.hasEagerState?te.eagerState:d(b,ue)}else ne={lane:ue,revertLane:te.revertLane,gesture:te.gesture,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},$===null?(M=$=ne,I=b):$=$.next=ne,nt.lanes|=ue,ui|=ue;te=te.next}while(te!==null&&te!==l);if($===null?I=b:$.next=M,!Jr(b,o.memoizedState)&&(In=!0,ie&&(d=Ku,d!==null)))throw d;o.memoizedState=b,o.baseState=I,o.baseQueue=$,p.lastRenderedState=b}return v===null&&(p.lanes=0),[o.memoizedState,p.dispatch]}function Ab(o){var l=_n(),d=l.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=o;var p=d.dispatch,v=d.pending,b=l.memoizedState;if(v!==null){d.pending=null;var I=v=v.next;do b=o(b,I.action),I=I.next;while(I!==v);Jr(b,l.memoizedState)||(In=!0),l.memoizedState=b,l.baseQueue===null&&(l.baseState=b),d.lastRenderedState=b}return[b,p]}function WR(o,l,d){var p=nt,v=_n(),b=mt;if(b){if(d===void 0)throw Error(r(407));d=d()}else d=l();var I=!Jr((Ht||v).memoizedState,d);if(I&&(v.memoizedState=d,In=!0),v=v.queue,Tb(YR.bind(null,p,v,o),[o]),v.getSnapshot!==l||I||An!==null&&An.memoizedState.tag&1){if(p.flags|=2048,ec(9,{destroy:void 0},KR.bind(null,p,v,d,l),null),Qt===null)throw Error(r(349));b||(Zs&127)!==0||GR(p,l,d)}return d}function GR(o,l,d){o.flags|=16384,o={getSnapshot:l,value:d},l=nt.updateQueue,l===null?(l=vm(),nt.updateQueue=l,l.stores=[o]):(d=l.stores,d===null?l.stores=[o]:d.push(o))}function KR(o,l,d,p){l.value=d,l.getSnapshot=p,ZR(l)&&XR(o)}function YR(o,l,d){return d(function(){ZR(l)&&XR(o)})}function ZR(o){var l=o.getSnapshot;o=o.value;try{var d=l();return!Jr(o,d)}catch{return!0}}function XR(o){var l=fl(o,2);l!==null&&Br(l,o,2)}function Ib(o){var l=kr();if(typeof o=="function"){var d=o;if(o=d(),wl){Ua(!0);try{d()}finally{Ua(!1)}}}return l.memoizedState=l.baseState=o,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xs,lastRenderedState:o},l}function QR(o,l,d,p){return o.baseState=d,kb(o,Ht,typeof p=="function"?p:Xs)}function rW(o,l,d,p,v){if(xm(o))throw Error(r(485));if(o=l.action,o!==null){var b={payload:v,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(I){b.listeners.push(I)}};B.T!==null?d(!0):b.isTransition=!1,p(b),d=l.pending,d===null?(b.next=l.pending=b,JR(l,b)):(b.next=d.next,l.pending=d.next=b)}}function JR(o,l){var d=l.action,p=l.payload,v=o.state;if(l.isTransition){var b=B.T,I={};B.T=I;try{var M=d(v,p),$=B.S;$!==null&&$(I,M),eT(o,l,M)}catch(te){Rb(o,l,te)}finally{b!==null&&I.types!==null&&(b.types=I.types),B.T=b}}else try{b=d(v,p),eT(o,l,b)}catch(te){Rb(o,l,te)}}function eT(o,l,d){d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(function(p){tT(o,l,p)},function(p){return Rb(o,l,p)}):tT(o,l,d)}function tT(o,l,d){l.status="fulfilled",l.value=d,nT(l),o.state=d,l=o.pending,l!==null&&(d=l.next,d===l?o.pending=null:(d=d.next,l.next=d,JR(o,d)))}function Rb(o,l,d){var p=o.pending;if(o.pending=null,p!==null){p=p.next;do l.status="rejected",l.reason=d,nT(l),l=l.next;while(l!==p)}o.action=null}function nT(o){o=o.listeners;for(var l=0;l<o.length;l++)(0,o[l])()}function rT(o,l){return l}function aT(o,l){if(mt){var d=Qt.formState;if(d!==null){e:{var p=nt;if(mt){if(an){t:{for(var v=an,b=wa;v.nodeType!==8;){if(!b){v=null;break t}if(v=Ca(v.nextSibling),v===null){v=null;break t}}b=v.data,v=b==="F!"||b==="F"?v:null}if(v){an=Ca(v.nextSibling),p=v.data==="F!";break e}}ei(p)}p=!1}p&&(l=d[0])}}return d=kr(),d.memoizedState=d.baseState=l,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rT,lastRenderedState:l},d.queue=p,d=CT.bind(null,nt,p),p.dispatch=d,p=Ib(!1),b=Db.bind(null,nt,!1,p.queue),p=kr(),v={state:l,dispatch:null,action:o,pending:null},p.queue=v,d=rW.bind(null,nt,v,b,d),v.dispatch=d,p.memoizedState=o,[l,d,!1]}function sT(o){var l=_n();return oT(l,Ht,o)}function oT(o,l,d){if(l=kb(o,l,rT)[0],o=bm(Xs)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var p=gf(l)}catch(I){throw I===Yu?um:I}else p=l;l=_n();var v=l.queue,b=v.dispatch;return d!==l.memoizedState&&(nt.flags|=2048,ec(9,{destroy:void 0},aW.bind(null,v,d),null)),[p,b,o]}function aW(o,l){o.action=l}function iT(o){var l=_n(),d=Ht;if(d!==null)return oT(l,d,o);_n(),l=l.memoizedState,d=_n();var p=d.queue.dispatch;return d.memoizedState=o,[l,p,!1]}function ec(o,l,d,p){return o={tag:o,create:d,deps:p,inst:l,next:null},l=nt.updateQueue,l===null&&(l=vm(),nt.updateQueue=l),d=l.lastEffect,d===null?l.lastEffect=o.next=o:(p=d.next,d.next=o,o.next=p,l.lastEffect=o),o}function lT(){return _n().memoizedState}function Sm(o,l,d,p){var v=kr();nt.flags|=o,v.memoizedState=ec(1|l,{destroy:void 0},d,p===void 0?null:p)}function wm(o,l,d,p){var v=_n();p=p===void 0?null:p;var b=v.memoizedState.inst;Ht!==null&&p!==null&&Sb(p,Ht.memoizedState.deps)?v.memoizedState=ec(l,b,d,p):(nt.flags|=o,v.memoizedState=ec(1|l,b,d,p))}function uT(o,l){Sm(8390656,8,o,l)}function Tb(o,l){wm(2048,8,o,l)}function sW(o){nt.flags|=4;var l=nt.updateQueue;if(l===null)l=vm(),nt.updateQueue=l,l.events=[o];else{var d=l.events;d===null?l.events=[o]:d.push(o)}}function cT(o){var l=_n().memoizedState;return sW({ref:l,nextImpl:o}),function(){if((Nt&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}function dT(o,l){return wm(4,2,o,l)}function fT(o,l){return wm(4,4,o,l)}function hT(o,l){if(typeof l=="function"){o=o();var d=l(o);return function(){typeof d=="function"?d():l(null)}}if(l!=null)return o=o(),l.current=o,function(){l.current=null}}function pT(o,l,d){d=d!=null?d.concat([o]):null,wm(4,4,hT.bind(null,l,o),d)}function Ob(){}function mT(o,l){var d=_n();l=l===void 0?null:l;var p=d.memoizedState;return l!==null&&Sb(l,p[1])?p[0]:(d.memoizedState=[o,l],o)}function gT(o,l){var d=_n();l=l===void 0?null:l;var p=d.memoizedState;if(l!==null&&Sb(l,p[1]))return p[0];if(p=o(),wl){Ua(!0);try{o()}finally{Ua(!1)}}return d.memoizedState=[p,l],p}function Nb(o,l,d){return d===void 0||(Zs&1073741824)!==0&&(ft&261930)===0?o.memoizedState=l:(o.memoizedState=d,o=v4(),nt.lanes|=o,ui|=o,d)}function vT(o,l,d,p){return Jr(d,l)?d:Xu.current!==null?(o=Nb(o,d,p),Jr(o,l)||(In=!0),o):(Zs&42)===0||(Zs&1073741824)!==0&&(ft&261930)===0?(In=!0,o.memoizedState=d):(o=v4(),nt.lanes|=o,ui|=o,l)}function yT(o,l,d,p,v){var b=X.p;X.p=b!==0&&8>b?b:8;var I=B.T,M={};B.T=M,Db(o,!1,l,d);try{var $=v(),te=B.S;if(te!==null&&te(M,$),$!==null&&typeof $=="object"&&typeof $.then=="function"){var ie=eW($,p);vf(o,l,ie,sa(o))}else vf(o,l,p,sa(o))}catch(ue){vf(o,l,{then:function(){},status:"rejected",reason:ue},sa())}finally{X.p=b,I!==null&&M.types!==null&&(I.types=M.types),B.T=I}}function oW(){}function Mb(o,l,d,p){if(o.tag!==5)throw Error(r(476));var v=bT(o).queue;yT(o,v,l,re,d===null?oW:function(){return ST(o),d(p)})}function bT(o){var l=o.memoizedState;if(l!==null)return l;l={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xs,lastRenderedState:re},next:null};var d={};return l.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xs,lastRenderedState:d},next:null},o.memoizedState=l,o=o.alternate,o!==null&&(o.memoizedState=l),l}function ST(o){var l=bT(o);l.next===null&&(l=o.alternate.memoizedState),vf(o,l.next.queue,{},sa())}function Pb(){return nr(Pf)}function wT(){return _n().memoizedState}function xT(){return _n().memoizedState}function iW(o){for(var l=o.return;l!==null;){switch(l.tag){case 24:case 3:var d=sa();o=ri(d);var p=ai(l,o,d);p!==null&&(Br(p,l,d),ff(p,l,d)),l={cache:ub()},o.payload=l;return}l=l.return}}function lW(o,l,d){var p=sa();d={lane:p,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},xm(o)?ET(l,d):(d=Qy(o,l,d,p),d!==null&&(Br(d,o,p),_T(d,l,p)))}function CT(o,l,d){var p=sa();vf(o,l,d,p)}function vf(o,l,d,p){var v={lane:p,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null};if(xm(o))ET(l,v);else{var b=o.alternate;if(o.lanes===0&&(b===null||b.lanes===0)&&(b=l.lastRenderedReducer,b!==null))try{var I=l.lastRenderedState,M=b(I,d);if(v.hasEagerState=!0,v.eagerState=M,Jr(M,I))return nm(o,l,v,0),Qt===null&&tm(),!1}catch{}if(d=Qy(o,l,v,p),d!==null)return Br(d,o,p),_T(d,l,p),!0}return!1}function Db(o,l,d,p){if(p={lane:2,revertLane:hS(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},xm(o)){if(l)throw Error(r(479))}else l=Qy(o,d,p,2),l!==null&&Br(l,o,2)}function xm(o){var l=o.alternate;return o===nt||l!==null&&l===nt}function ET(o,l){Qu=mm=!0;var d=o.pending;d===null?l.next=l:(l.next=d.next,d.next=l),o.pending=l}function _T(o,l,d){if((d&4194048)!==0){var p=l.lanes;p&=o.pendingLanes,d|=p,l.lanes=d,Hp(o,d)}}var yf={readContext:nr,use:ym,useCallback:Sn,useContext:Sn,useEffect:Sn,useImperativeHandle:Sn,useLayoutEffect:Sn,useInsertionEffect:Sn,useMemo:Sn,useReducer:Sn,useRef:Sn,useState:Sn,useDebugValue:Sn,useDeferredValue:Sn,useTransition:Sn,useSyncExternalStore:Sn,useId:Sn,useHostTransitionStatus:Sn,useFormState:Sn,useActionState:Sn,useOptimistic:Sn,useMemoCache:Sn,useCacheRefresh:Sn};yf.useEffectEvent=Sn;var kT={readContext:nr,use:ym,useCallback:function(o,l){return kr().memoizedState=[o,l===void 0?null:l],o},useContext:nr,useEffect:uT,useImperativeHandle:function(o,l,d){d=d!=null?d.concat([o]):null,Sm(4194308,4,hT.bind(null,l,o),d)},useLayoutEffect:function(o,l){return Sm(4194308,4,o,l)},useInsertionEffect:function(o,l){Sm(4,2,o,l)},useMemo:function(o,l){var d=kr();l=l===void 0?null:l;var p=o();if(wl){Ua(!0);try{o()}finally{Ua(!1)}}return d.memoizedState=[p,l],p},useReducer:function(o,l,d){var p=kr();if(d!==void 0){var v=d(l);if(wl){Ua(!0);try{d(l)}finally{Ua(!1)}}}else v=l;return p.memoizedState=p.baseState=v,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:v},p.queue=o,o=o.dispatch=lW.bind(null,nt,o),[p.memoizedState,o]},useRef:function(o){var l=kr();return o={current:o},l.memoizedState=o},useState:function(o){o=Ib(o);var l=o.queue,d=CT.bind(null,nt,l);return l.dispatch=d,[o.memoizedState,d]},useDebugValue:Ob,useDeferredValue:function(o,l){var d=kr();return Nb(d,o,l)},useTransition:function(){var o=Ib(!1);return o=yT.bind(null,nt,o.queue,!0,!1),kr().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,l,d){var p=nt,v=kr();if(mt){if(d===void 0)throw Error(r(407));d=d()}else{if(d=l(),Qt===null)throw Error(r(349));(ft&127)!==0||GR(p,l,d)}v.memoizedState=d;var b={value:d,getSnapshot:l};return v.queue=b,uT(YR.bind(null,p,b,o),[o]),p.flags|=2048,ec(9,{destroy:void 0},KR.bind(null,p,b,d,l),null),d},useId:function(){var o=kr(),l=Qt.identifierPrefix;if(mt){var d=hs,p=fs;d=(p&~(1<<32-pr(p)-1)).toString(32)+d,l="_"+l+"R_"+d,d=gm++,0<d&&(l+="H"+d.toString(32)),l+="_"}else d=tW++,l="_"+l+"r_"+d.toString(32)+"_";return o.memoizedState=l},useHostTransitionStatus:Pb,useFormState:aT,useActionState:aT,useOptimistic:function(o){var l=kr();l.memoizedState=l.baseState=o;var d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=d,l=Db.bind(null,nt,!0,d),d.dispatch=l,[o,l]},useMemoCache:_b,useCacheRefresh:function(){return kr().memoizedState=iW.bind(null,nt)},useEffectEvent:function(o){var l=kr(),d={impl:o};return l.memoizedState=d,function(){if((Nt&2)!==0)throw Error(r(440));return d.impl.apply(void 0,arguments)}}},Lb={readContext:nr,use:ym,useCallback:mT,useContext:nr,useEffect:Tb,useImperativeHandle:pT,useInsertionEffect:dT,useLayoutEffect:fT,useMemo:gT,useReducer:bm,useRef:lT,useState:function(){return bm(Xs)},useDebugValue:Ob,useDeferredValue:function(o,l){var d=_n();return vT(d,Ht.memoizedState,o,l)},useTransition:function(){var o=bm(Xs)[0],l=_n().memoizedState;return[typeof o=="boolean"?o:gf(o),l]},useSyncExternalStore:WR,useId:wT,useHostTransitionStatus:Pb,useFormState:sT,useActionState:sT,useOptimistic:function(o,l){var d=_n();return QR(d,Ht,o,l)},useMemoCache:_b,useCacheRefresh:xT};Lb.useEffectEvent=cT;var AT={readContext:nr,use:ym,useCallback:mT,useContext:nr,useEffect:Tb,useImperativeHandle:pT,useInsertionEffect:dT,useLayoutEffect:fT,useMemo:gT,useReducer:Ab,useRef:lT,useState:function(){return Ab(Xs)},useDebugValue:Ob,useDeferredValue:function(o,l){var d=_n();return Ht===null?Nb(d,o,l):vT(d,Ht.memoizedState,o,l)},useTransition:function(){var o=Ab(Xs)[0],l=_n().memoizedState;return[typeof o=="boolean"?o:gf(o),l]},useSyncExternalStore:WR,useId:wT,useHostTransitionStatus:Pb,useFormState:iT,useActionState:iT,useOptimistic:function(o,l){var d=_n();return Ht!==null?QR(d,Ht,o,l):(d.baseState=o,[o,d.queue.dispatch])},useMemoCache:_b,useCacheRefresh:xT};AT.useEffectEvent=cT;function Ub(o,l,d,p){l=o.memoizedState,d=d(p,l),d=d==null?l:m({},l,d),o.memoizedState=d,o.lanes===0&&(o.updateQueue.baseState=d)}var jb={enqueueSetState:function(o,l,d){o=o._reactInternals;var p=sa(),v=ri(p);v.payload=l,d!=null&&(v.callback=d),l=ai(o,v,p),l!==null&&(Br(l,o,p),ff(l,o,p))},enqueueReplaceState:function(o,l,d){o=o._reactInternals;var p=sa(),v=ri(p);v.tag=1,v.payload=l,d!=null&&(v.callback=d),l=ai(o,v,p),l!==null&&(Br(l,o,p),ff(l,o,p))},enqueueForceUpdate:function(o,l){o=o._reactInternals;var d=sa(),p=ri(d);p.tag=2,l!=null&&(p.callback=l),l=ai(o,p,d),l!==null&&(Br(l,o,d),ff(l,o,d))}};function IT(o,l,d,p,v,b,I){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(p,b,I):l.prototype&&l.prototype.isPureReactComponent?!rf(d,p)||!rf(v,b):!0}function RT(o,l,d,p){o=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(d,p),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(d,p),l.state!==o&&jb.enqueueReplaceState(l,l.state,null)}function xl(o,l){var d=l;if("ref"in l){d={};for(var p in l)p!=="ref"&&(d[p]=l[p])}if(o=o.defaultProps){d===l&&(d=m({},d));for(var v in o)d[v]===void 0&&(d[v]=o[v])}return d}function TT(o){em(o)}function OT(o){console.error(o)}function NT(o){em(o)}function Cm(o,l){try{var d=o.onUncaughtError;d(l.value,{componentStack:l.stack})}catch(p){setTimeout(function(){throw p})}}function MT(o,l,d){try{var p=o.onCaughtError;p(d.value,{componentStack:d.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function zb(o,l,d){return d=ri(d),d.tag=3,d.payload={element:null},d.callback=function(){Cm(o,l)},d}function PT(o){return o=ri(o),o.tag=3,o}function DT(o,l,d,p){var v=d.type.getDerivedStateFromError;if(typeof v=="function"){var b=p.value;o.payload=function(){return v(b)},o.callback=function(){MT(l,d,p)}}var I=d.stateNode;I!==null&&typeof I.componentDidCatch=="function"&&(o.callback=function(){MT(l,d,p),typeof v!="function"&&(ci===null?ci=new Set([this]):ci.add(this));var M=p.stack;this.componentDidCatch(p.value,{componentStack:M!==null?M:""})})}function uW(o,l,d,p,v){if(d.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(l=d.alternate,l!==null&&Wu(l,d,v,!0),d=ta.current,d!==null){switch(d.tag){case 31:case 13:return xa===null?Dm():d.alternate===null&&wn===0&&(wn=3),d.flags&=-257,d.flags|=65536,d.lanes=v,p===cm?d.flags|=16384:(l=d.updateQueue,l===null?d.updateQueue=new Set([p]):l.add(p),cS(o,p,v)),!1;case 22:return d.flags|=65536,p===cm?d.flags|=16384:(l=d.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([p])},d.updateQueue=l):(d=l.retryQueue,d===null?l.retryQueue=new Set([p]):d.add(p)),cS(o,p,v)),!1}throw Error(r(435,d.tag))}return cS(o,p,v),Dm(),!1}if(mt)return l=ta.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=v,p!==ab&&(o=Error(r(422),{cause:p}),of(ya(o,d)))):(p!==ab&&(l=Error(r(423),{cause:p}),of(ya(l,d))),o=o.current.alternate,o.flags|=65536,v&=-v,o.lanes|=v,p=ya(p,d),v=zb(o.stateNode,p,v),mb(o,v),wn!==4&&(wn=2)),!1;var b=Error(r(520),{cause:p});if(b=ya(b,d),kf===null?kf=[b]:kf.push(b),wn!==4&&(wn=2),l===null)return!0;p=ya(p,d),d=l;do{switch(d.tag){case 3:return d.flags|=65536,o=v&-v,d.lanes|=o,o=zb(d.stateNode,p,o),mb(d,o),!1;case 1:if(l=d.type,b=d.stateNode,(d.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(ci===null||!ci.has(b))))return d.flags|=65536,v&=-v,d.lanes|=v,v=PT(v),DT(v,o,d,p),mb(d,v),!1}d=d.return}while(d!==null);return!1}var Fb=Error(r(461)),In=!1;function rr(o,l,d,p){l.child=o===null?zR(l,null,d,p):Sl(l,o.child,d,p)}function LT(o,l,d,p,v){d=d.render;var b=l.ref;if("ref"in p){var I={};for(var M in p)M!=="ref"&&(I[M]=p[M])}else I=p;return gl(l),p=wb(o,l,d,I,b,v),M=xb(),o!==null&&!In?(Cb(o,l,v),Qs(o,l,v)):(mt&&M&&nb(l),l.flags|=1,rr(o,l,p,v),l.child)}function UT(o,l,d,p,v){if(o===null){var b=d.type;return typeof b=="function"&&!Jy(b)&&b.defaultProps===void 0&&d.compare===null?(l.tag=15,l.type=b,jT(o,l,b,p,v)):(o=am(d.type,null,p,l,l.mode,v),o.ref=l.ref,o.return=l,l.child=o)}if(b=o.child,!Kb(o,v)){var I=b.memoizedProps;if(d=d.compare,d=d!==null?d:rf,d(I,p)&&o.ref===l.ref)return Qs(o,l,v)}return l.flags|=1,o=Ws(b,p),o.ref=l.ref,o.return=l,l.child=o}function jT(o,l,d,p,v){if(o!==null){var b=o.memoizedProps;if(rf(b,p)&&o.ref===l.ref)if(In=!1,l.pendingProps=p=b,Kb(o,v))(o.flags&131072)!==0&&(In=!0);else return l.lanes=o.lanes,Qs(o,l,v)}return $b(o,l,d,p,v)}function zT(o,l,d,p){var v=p.children,b=o!==null?o.memoizedState:null;if(o===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((l.flags&128)!==0){if(b=b!==null?b.baseLanes|d:d,o!==null){for(p=l.child=o.child,v=0;p!==null;)v=v|p.lanes|p.childLanes,p=p.sibling;p=v&~b}else p=0,l.child=null;return FT(o,l,b,d,p)}if((d&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},o!==null&&lm(l,b!==null?b.cachePool:null),b!==null?BR(l,b):vb(),HR(l);else return p=l.lanes=536870912,FT(o,l,b!==null?b.baseLanes|d:d,d,p)}else b!==null?(lm(l,b.cachePool),BR(l,b),oi(),l.memoizedState=null):(o!==null&&lm(l,null),vb(),oi());return rr(o,l,v,d),l.child}function bf(o,l){return o!==null&&o.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function FT(o,l,d,p,v){var b=db();return b=b===null?null:{parent:kn._currentValue,pool:b},l.memoizedState={baseLanes:d,cachePool:b},o!==null&&lm(l,null),vb(),HR(l),o!==null&&Wu(o,l,p,!0),l.childLanes=v,null}function Em(o,l){return l=km({mode:l.mode,children:l.children},o.mode),l.ref=o.ref,o.child=l,l.return=o,l}function $T(o,l,d){return Sl(l,o.child,null,d),o=Em(l,l.pendingProps),o.flags|=2,na(l),l.memoizedState=null,o}function cW(o,l,d){var p=l.pendingProps,v=(l.flags&128)!==0;if(l.flags&=-129,o===null){if(mt){if(p.mode==="hidden")return o=Em(l,p),l.lanes=536870912,bf(null,o);if(bb(l),(o=an)?(o=J4(o,wa),o=o!==null&&o.data==="&"?o:null,o!==null&&(l.memoizedState={dehydrated:o,treeContext:Qo!==null?{id:fs,overflow:hs}:null,retryLane:536870912,hydrationErrors:null},d=ER(o),d.return=l,l.child=d,tr=l,an=null)):o=null,o===null)throw ei(l);return l.lanes=536870912,null}return Em(l,p)}var b=o.memoizedState;if(b!==null){var I=b.dehydrated;if(bb(l),v)if(l.flags&256)l.flags&=-257,l=$T(o,l,d);else if(l.memoizedState!==null)l.child=o.child,l.flags|=128,l=null;else throw Error(r(558));else if(In||Wu(o,l,d,!1),v=(d&o.childLanes)!==0,In||v){if(p=Qt,p!==null&&(I=qd(p,d),I!==0&&I!==b.retryLane))throw b.retryLane=I,fl(o,I),Br(p,o,I),Fb;Dm(),l=$T(o,l,d)}else o=b.treeContext,an=Ca(I.nextSibling),tr=l,mt=!0,Jo=null,wa=!1,o!==null&&AR(l,o),l=Em(l,p),l.flags|=4096;return l}return o=Ws(o.child,{mode:p.mode,children:p.children}),o.ref=l.ref,l.child=o,o.return=l,o}function _m(o,l){var d=l.ref;if(d===null)o!==null&&o.ref!==null&&(l.flags|=4194816);else{if(typeof d!="function"&&typeof d!="object")throw Error(r(284));(o===null||o.ref!==d)&&(l.flags|=4194816)}}function $b(o,l,d,p,v){return gl(l),d=wb(o,l,d,p,void 0,v),p=xb(),o!==null&&!In?(Cb(o,l,v),Qs(o,l,v)):(mt&&p&&nb(l),l.flags|=1,rr(o,l,d,v),l.child)}function BT(o,l,d,p,v,b){return gl(l),l.updateQueue=null,d=VR(l,p,d,v),qR(o),p=xb(),o!==null&&!In?(Cb(o,l,b),Qs(o,l,b)):(mt&&p&&nb(l),l.flags|=1,rr(o,l,d,b),l.child)}function HT(o,l,d,p,v){if(gl(l),l.stateNode===null){var b=Bu,I=d.contextType;typeof I=="object"&&I!==null&&(b=nr(I)),b=new d(p,b),l.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=jb,l.stateNode=b,b._reactInternals=l,b=l.stateNode,b.props=p,b.state=l.memoizedState,b.refs={},hb(l),I=d.contextType,b.context=typeof I=="object"&&I!==null?nr(I):Bu,b.state=l.memoizedState,I=d.getDerivedStateFromProps,typeof I=="function"&&(Ub(l,d,I,p),b.state=l.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(I=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),I!==b.state&&jb.enqueueReplaceState(b,b.state,null),pf(l,p,b,v),hf(),b.state=l.memoizedState),typeof b.componentDidMount=="function"&&(l.flags|=4194308),p=!0}else if(o===null){b=l.stateNode;var M=l.memoizedProps,$=xl(d,M);b.props=$;var te=b.context,ie=d.contextType;I=Bu,typeof ie=="object"&&ie!==null&&(I=nr(ie));var ue=d.getDerivedStateFromProps;ie=typeof ue=="function"||typeof b.getSnapshotBeforeUpdate=="function",M=l.pendingProps!==M,ie||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(M||te!==I)&&RT(l,b,p,I),ni=!1;var ne=l.memoizedState;b.state=ne,pf(l,p,b,v),hf(),te=l.memoizedState,M||ne!==te||ni?(typeof ue=="function"&&(Ub(l,d,ue,p),te=l.memoizedState),($=ni||IT(l,d,$,p,ne,te,I))?(ie||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(l.flags|=4194308)):(typeof b.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=p,l.memoizedState=te),b.props=p,b.state=te,b.context=I,p=$):(typeof b.componentDidMount=="function"&&(l.flags|=4194308),p=!1)}else{b=l.stateNode,pb(o,l),I=l.memoizedProps,ie=xl(d,I),b.props=ie,ue=l.pendingProps,ne=b.context,te=d.contextType,$=Bu,typeof te=="object"&&te!==null&&($=nr(te)),M=d.getDerivedStateFromProps,(te=typeof M=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(I!==ue||ne!==$)&&RT(l,b,p,$),ni=!1,ne=l.memoizedState,b.state=ne,pf(l,p,b,v),hf();var ae=l.memoizedState;I!==ue||ne!==ae||ni||o!==null&&o.dependencies!==null&&om(o.dependencies)?(typeof M=="function"&&(Ub(l,d,M,p),ae=l.memoizedState),(ie=ni||IT(l,d,ie,p,ne,ae,$)||o!==null&&o.dependencies!==null&&om(o.dependencies))?(te||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(p,ae,$),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(p,ae,$)),typeof b.componentDidUpdate=="function"&&(l.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof b.componentDidUpdate!="function"||I===o.memoizedProps&&ne===o.memoizedState||(l.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||I===o.memoizedProps&&ne===o.memoizedState||(l.flags|=1024),l.memoizedProps=p,l.memoizedState=ae),b.props=p,b.state=ae,b.context=$,p=ie):(typeof b.componentDidUpdate!="function"||I===o.memoizedProps&&ne===o.memoizedState||(l.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||I===o.memoizedProps&&ne===o.memoizedState||(l.flags|=1024),p=!1)}return b=p,_m(o,l),p=(l.flags&128)!==0,b||p?(b=l.stateNode,d=p&&typeof d.getDerivedStateFromError!="function"?null:b.render(),l.flags|=1,o!==null&&p?(l.child=Sl(l,o.child,null,v),l.child=Sl(l,null,d,v)):rr(o,l,d,v),l.memoizedState=b.state,o=l.child):o=Qs(o,l,v),o}function qT(o,l,d,p){return pl(),l.flags|=256,rr(o,l,d,p),l.child}var Bb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hb(o){return{baseLanes:o,cachePool:MR()}}function qb(o,l,d){return o=o!==null?o.childLanes&~d:0,l&&(o|=aa),o}function VT(o,l,d){var p=l.pendingProps,v=!1,b=(l.flags&128)!==0,I;if((I=b)||(I=o!==null&&o.memoizedState===null?!1:(En.current&2)!==0),I&&(v=!0,l.flags&=-129),I=(l.flags&32)!==0,l.flags&=-33,o===null){if(mt){if(v?si(l):oi(),(o=an)?(o=J4(o,wa),o=o!==null&&o.data!=="&"?o:null,o!==null&&(l.memoizedState={dehydrated:o,treeContext:Qo!==null?{id:fs,overflow:hs}:null,retryLane:536870912,hydrationErrors:null},d=ER(o),d.return=l,l.child=d,tr=l,an=null)):o=null,o===null)throw ei(l);return kS(o)?l.lanes=32:l.lanes=536870912,null}var M=p.children;return p=p.fallback,v?(oi(),v=l.mode,M=km({mode:"hidden",children:M},v),p=hl(p,v,d,null),M.return=l,p.return=l,M.sibling=p,l.child=M,p=l.child,p.memoizedState=Hb(d),p.childLanes=qb(o,I,d),l.memoizedState=Bb,bf(null,p)):(si(l),Vb(l,M))}var $=o.memoizedState;if($!==null&&(M=$.dehydrated,M!==null)){if(b)l.flags&256?(si(l),l.flags&=-257,l=Wb(o,l,d)):l.memoizedState!==null?(oi(),l.child=o.child,l.flags|=128,l=null):(oi(),M=p.fallback,v=l.mode,p=km({mode:"visible",children:p.children},v),M=hl(M,v,d,null),M.flags|=2,p.return=l,M.return=l,p.sibling=M,l.child=p,Sl(l,o.child,null,d),p=l.child,p.memoizedState=Hb(d),p.childLanes=qb(o,I,d),l.memoizedState=Bb,l=bf(null,p));else if(si(l),kS(M)){if(I=M.nextSibling&&M.nextSibling.dataset,I)var te=I.dgst;I=te,p=Error(r(419)),p.stack="",p.digest=I,of({value:p,source:null,stack:null}),l=Wb(o,l,d)}else if(In||Wu(o,l,d,!1),I=(d&o.childLanes)!==0,In||I){if(I=Qt,I!==null&&(p=qd(I,d),p!==0&&p!==$.retryLane))throw $.retryLane=p,fl(o,p),Br(I,o,p),Fb;_S(M)||Dm(),l=Wb(o,l,d)}else _S(M)?(l.flags|=192,l.child=o.child,l=null):(o=$.treeContext,an=Ca(M.nextSibling),tr=l,mt=!0,Jo=null,wa=!1,o!==null&&AR(l,o),l=Vb(l,p.children),l.flags|=4096);return l}return v?(oi(),M=p.fallback,v=l.mode,$=o.child,te=$.sibling,p=Ws($,{mode:"hidden",children:p.children}),p.subtreeFlags=$.subtreeFlags&65011712,te!==null?M=Ws(te,M):(M=hl(M,v,d,null),M.flags|=2),M.return=l,p.return=l,p.sibling=M,l.child=p,bf(null,p),p=l.child,M=o.child.memoizedState,M===null?M=Hb(d):(v=M.cachePool,v!==null?($=kn._currentValue,v=v.parent!==$?{parent:$,pool:$}:v):v=MR(),M={baseLanes:M.baseLanes|d,cachePool:v}),p.memoizedState=M,p.childLanes=qb(o,I,d),l.memoizedState=Bb,bf(o.child,p)):(si(l),d=o.child,o=d.sibling,d=Ws(d,{mode:"visible",children:p.children}),d.return=l,d.sibling=null,o!==null&&(I=l.deletions,I===null?(l.deletions=[o],l.flags|=16):I.push(o)),l.child=d,l.memoizedState=null,d)}function Vb(o,l){return l=km({mode:"visible",children:l},o.mode),l.return=o,o.child=l}function km(o,l){return o=ea(22,o,null,l),o.lanes=0,o}function Wb(o,l,d){return Sl(l,o.child,null,d),o=Vb(l,l.pendingProps.children),o.flags|=2,l.memoizedState=null,o}function WT(o,l,d){o.lanes|=l;var p=o.alternate;p!==null&&(p.lanes|=l),ib(o.return,l,d)}function Gb(o,l,d,p,v,b){var I=o.memoizedState;I===null?o.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:p,tail:d,tailMode:v,treeForkCount:b}:(I.isBackwards=l,I.rendering=null,I.renderingStartTime=0,I.last=p,I.tail=d,I.tailMode=v,I.treeForkCount=b)}function GT(o,l,d){var p=l.pendingProps,v=p.revealOrder,b=p.tail;p=p.children;var I=En.current,M=(I&2)!==0;if(M?(I=I&1|2,l.flags|=128):I&=1,G(En,I),rr(o,l,p,d),p=mt?sf:0,!M&&o!==null&&(o.flags&128)!==0)e:for(o=l.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&WT(o,d,l);else if(o.tag===19)WT(o,d,l);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===l)break e;for(;o.sibling===null;){if(o.return===null||o.return===l)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(v){case"forwards":for(d=l.child,v=null;d!==null;)o=d.alternate,o!==null&&pm(o)===null&&(v=d),d=d.sibling;d=v,d===null?(v=l.child,l.child=null):(v=d.sibling,d.sibling=null),Gb(l,!1,v,d,b,p);break;case"backwards":case"unstable_legacy-backwards":for(d=null,v=l.child,l.child=null;v!==null;){if(o=v.alternate,o!==null&&pm(o)===null){l.child=v;break}o=v.sibling,v.sibling=d,d=v,v=o}Gb(l,!0,d,null,b,p);break;case"together":Gb(l,!1,null,null,void 0,p);break;default:l.memoizedState=null}return l.child}function Qs(o,l,d){if(o!==null&&(l.dependencies=o.dependencies),ui|=l.lanes,(d&l.childLanes)===0)if(o!==null){if(Wu(o,l,d,!1),(d&l.childLanes)===0)return null}else return null;if(o!==null&&l.child!==o.child)throw Error(r(153));if(l.child!==null){for(o=l.child,d=Ws(o,o.pendingProps),l.child=d,d.return=l;o.sibling!==null;)o=o.sibling,d=d.sibling=Ws(o,o.pendingProps),d.return=l;d.sibling=null}return l.child}function Kb(o,l){return(o.lanes&l)!==0?!0:(o=o.dependencies,!!(o!==null&&om(o)))}function dW(o,l,d){switch(l.tag){case 3:fe(l,l.stateNode.containerInfo),ti(l,kn,o.memoizedState.cache),pl();break;case 27:case 5:Ee(l);break;case 4:fe(l,l.stateNode.containerInfo);break;case 10:ti(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,bb(l),null;break;case 13:var p=l.memoizedState;if(p!==null)return p.dehydrated!==null?(si(l),l.flags|=128,null):(d&l.child.childLanes)!==0?VT(o,l,d):(si(l),o=Qs(o,l,d),o!==null?o.sibling:null);si(l);break;case 19:var v=(o.flags&128)!==0;if(p=(d&l.childLanes)!==0,p||(Wu(o,l,d,!1),p=(d&l.childLanes)!==0),v){if(p)return GT(o,l,d);l.flags|=128}if(v=l.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),G(En,En.current),p)break;return null;case 22:return l.lanes=0,zT(o,l,d,l.pendingProps);case 24:ti(l,kn,o.memoizedState.cache)}return Qs(o,l,d)}function KT(o,l,d){if(o!==null)if(o.memoizedProps!==l.pendingProps)In=!0;else{if(!Kb(o,d)&&(l.flags&128)===0)return In=!1,dW(o,l,d);In=(o.flags&131072)!==0}else In=!1,mt&&(l.flags&1048576)!==0&&kR(l,sf,l.index);switch(l.lanes=0,l.tag){case 16:e:{var p=l.pendingProps;if(o=yl(l.elementType),l.type=o,typeof o=="function")Jy(o)?(p=xl(o,p),l.tag=1,l=HT(null,l,o,p,d)):(l.tag=0,l=$b(null,l,o,p,d));else{if(o!=null){var v=o.$$typeof;if(v===R){l.tag=11,l=LT(null,l,o,p,d);break e}else if(v===T){l.tag=14,l=UT(null,l,o,p,d);break e}}throw l=Z(o)||o,Error(r(306,l,""))}}return l;case 0:return $b(o,l,l.type,l.pendingProps,d);case 1:return p=l.type,v=xl(p,l.pendingProps),HT(o,l,p,v,d);case 3:e:{if(fe(l,l.stateNode.containerInfo),o===null)throw Error(r(387));p=l.pendingProps;var b=l.memoizedState;v=b.element,pb(o,l),pf(l,p,null,d);var I=l.memoizedState;if(p=I.cache,ti(l,kn,p),p!==b.cache&&lb(l,[kn],d,!0),hf(),p=I.element,b.isDehydrated)if(b={element:p,isDehydrated:!1,cache:I.cache},l.updateQueue.baseState=b,l.memoizedState=b,l.flags&256){l=qT(o,l,p,d);break e}else if(p!==v){v=ya(Error(r(424)),l),of(v),l=qT(o,l,p,d);break e}else for(o=l.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,an=Ca(o.firstChild),tr=l,mt=!0,Jo=null,wa=!0,d=zR(l,null,p,d),l.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(pl(),p===v){l=Qs(o,l,d);break e}rr(o,l,p,d)}l=l.child}return l;case 26:return _m(o,l),o===null?(d=s5(l.type,null,l.pendingProps,null))?l.memoizedState=d:mt||(d=l.type,o=l.pendingProps,p=Bm(pe.current).createElement(d),p[Ln]=l,p[mr]=o,ar(p,d,o),Xt(p),l.stateNode=p):l.memoizedState=s5(l.type,o.memoizedProps,l.pendingProps,o.memoizedState),null;case 27:return Ee(l),o===null&&mt&&(p=l.stateNode=n5(l.type,l.pendingProps,pe.current),tr=l,wa=!0,v=an,pi(l.type)?(AS=v,an=Ca(p.firstChild)):an=v),rr(o,l,l.pendingProps.children,d),_m(o,l),o===null&&(l.flags|=4194304),l.child;case 5:return o===null&&mt&&((v=p=an)&&(p=$W(p,l.type,l.pendingProps,wa),p!==null?(l.stateNode=p,tr=l,an=Ca(p.firstChild),wa=!1,v=!0):v=!1),v||ei(l)),Ee(l),v=l.type,b=l.pendingProps,I=o!==null?o.memoizedProps:null,p=b.children,xS(v,b)?p=null:I!==null&&xS(v,I)&&(l.flags|=32),l.memoizedState!==null&&(v=wb(o,l,nW,null,null,d),Pf._currentValue=v),_m(o,l),rr(o,l,p,d),l.child;case 6:return o===null&&mt&&((o=d=an)&&(d=BW(d,l.pendingProps,wa),d!==null?(l.stateNode=d,tr=l,an=null,o=!0):o=!1),o||ei(l)),null;case 13:return VT(o,l,d);case 4:return fe(l,l.stateNode.containerInfo),p=l.pendingProps,o===null?l.child=Sl(l,null,p,d):rr(o,l,p,d),l.child;case 11:return LT(o,l,l.type,l.pendingProps,d);case 7:return rr(o,l,l.pendingProps,d),l.child;case 8:return rr(o,l,l.pendingProps.children,d),l.child;case 12:return rr(o,l,l.pendingProps.children,d),l.child;case 10:return p=l.pendingProps,ti(l,l.type,p.value),rr(o,l,p.children,d),l.child;case 9:return v=l.type._context,p=l.pendingProps.children,gl(l),v=nr(v),p=p(v),l.flags|=1,rr(o,l,p,d),l.child;case 14:return UT(o,l,l.type,l.pendingProps,d);case 15:return jT(o,l,l.type,l.pendingProps,d);case 19:return GT(o,l,d);case 31:return cW(o,l,d);case 22:return zT(o,l,d,l.pendingProps);case 24:return gl(l),p=nr(kn),o===null?(v=db(),v===null&&(v=Qt,b=ub(),v.pooledCache=b,b.refCount++,b!==null&&(v.pooledCacheLanes|=d),v=b),l.memoizedState={parent:p,cache:v},hb(l),ti(l,kn,v)):((o.lanes&d)!==0&&(pb(o,l),pf(l,null,null,d),hf()),v=o.memoizedState,b=l.memoizedState,v.parent!==p?(v={parent:p,cache:p},l.memoizedState=v,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=v),ti(l,kn,p)):(p=b.cache,ti(l,kn,p),p!==v.cache&&lb(l,[kn],d,!0))),rr(o,l,l.pendingProps.children,d),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function Js(o){o.flags|=4}function Yb(o,l,d,p,v){if((l=(o.mode&32)!==0)&&(l=!1),l){if(o.flags|=16777216,(v&335544128)===v)if(o.stateNode.complete)o.flags|=8192;else if(w4())o.flags|=8192;else throw bl=cm,fb}else o.flags&=-16777217}function YT(o,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!c5(l))if(w4())o.flags|=8192;else throw bl=cm,fb}function Am(o,l){l!==null&&(o.flags|=4),o.flags&16384&&(l=o.tag!==22?rl():536870912,o.lanes|=l,ac|=l)}function Sf(o,l){if(!mt)switch(o.tailMode){case"hidden":l=o.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?o.tail=null:d.sibling=null;break;case"collapsed":d=o.tail;for(var p=null;d!==null;)d.alternate!==null&&(p=d),d=d.sibling;p===null?l||o.tail===null?o.tail=null:o.tail.sibling=null:p.sibling=null}}function sn(o){var l=o.alternate!==null&&o.alternate.child===o.child,d=0,p=0;if(l)for(var v=o.child;v!==null;)d|=v.lanes|v.childLanes,p|=v.subtreeFlags&65011712,p|=v.flags&65011712,v.return=o,v=v.sibling;else for(v=o.child;v!==null;)d|=v.lanes|v.childLanes,p|=v.subtreeFlags,p|=v.flags,v.return=o,v=v.sibling;return o.subtreeFlags|=p,o.childLanes=d,l}function fW(o,l,d){var p=l.pendingProps;switch(rb(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sn(l),null;case 1:return sn(l),null;case 3:return d=l.stateNode,p=null,o!==null&&(p=o.memoizedState.cache),l.memoizedState.cache!==p&&(l.flags|=2048),Ys(kn),ge(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(o===null||o.child===null)&&(Vu(l)?Js(l):o===null||o.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,sb())),sn(l),null;case 26:var v=l.type,b=l.memoizedState;return o===null?(Js(l),b!==null?(sn(l),YT(l,b)):(sn(l),Yb(l,v,null,p,d))):b?b!==o.memoizedState?(Js(l),sn(l),YT(l,b)):(sn(l),l.flags&=-16777217):(o=o.memoizedProps,o!==p&&Js(l),sn(l),Yb(l,v,o,p,d)),null;case 27:if(Te(l),d=pe.current,v=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==p&&Js(l);else{if(!p){if(l.stateNode===null)throw Error(r(166));return sn(l),null}o=J.current,Vu(l)?IR(l):(o=n5(v,p,d),l.stateNode=o,Js(l))}return sn(l),null;case 5:if(Te(l),v=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==p&&Js(l);else{if(!p){if(l.stateNode===null)throw Error(r(166));return sn(l),null}if(b=J.current,Vu(l))IR(l);else{var I=Bm(pe.current);switch(b){case 1:b=I.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:b=I.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":b=I.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":b=I.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":b=I.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof p.is=="string"?I.createElement("select",{is:p.is}):I.createElement("select"),p.multiple?b.multiple=!0:p.size&&(b.size=p.size);break;default:b=typeof p.is=="string"?I.createElement(v,{is:p.is}):I.createElement(v)}}b[Ln]=l,b[mr]=p;e:for(I=l.child;I!==null;){if(I.tag===5||I.tag===6)b.appendChild(I.stateNode);else if(I.tag!==4&&I.tag!==27&&I.child!==null){I.child.return=I,I=I.child;continue}if(I===l)break e;for(;I.sibling===null;){if(I.return===null||I.return===l)break e;I=I.return}I.sibling.return=I.return,I=I.sibling}l.stateNode=b;e:switch(ar(b,v,p),v){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&Js(l)}}return sn(l),Yb(l,l.type,o===null?null:o.memoizedProps,l.pendingProps,d),null;case 6:if(o&&l.stateNode!=null)o.memoizedProps!==p&&Js(l);else{if(typeof p!="string"&&l.stateNode===null)throw Error(r(166));if(o=pe.current,Vu(l)){if(o=l.stateNode,d=l.memoizedProps,p=null,v=tr,v!==null)switch(v.tag){case 27:case 5:p=v.memoizedProps}o[Ln]=l,o=!!(o.nodeValue===d||p!==null&&p.suppressHydrationWarning===!0||V4(o.nodeValue,d)),o||ei(l,!0)}else o=Bm(o).createTextNode(p),o[Ln]=l,l.stateNode=o}return sn(l),null;case 31:if(d=l.memoizedState,o===null||o.memoizedState!==null){if(p=Vu(l),d!==null){if(o===null){if(!p)throw Error(r(318));if(o=l.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[Ln]=l}else pl(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;sn(l),o=!1}else d=sb(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=d),o=!0;if(!o)return l.flags&256?(na(l),l):(na(l),null);if((l.flags&128)!==0)throw Error(r(558))}return sn(l),null;case 13:if(p=l.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(v=Vu(l),p!==null&&p.dehydrated!==null){if(o===null){if(!v)throw Error(r(318));if(v=l.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[Ln]=l}else pl(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;sn(l),v=!1}else v=sb(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=v),v=!0;if(!v)return l.flags&256?(na(l),l):(na(l),null)}return na(l),(l.flags&128)!==0?(l.lanes=d,l):(d=p!==null,o=o!==null&&o.memoizedState!==null,d&&(p=l.child,v=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(v=p.alternate.memoizedState.cachePool.pool),b=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(b=p.memoizedState.cachePool.pool),b!==v&&(p.flags|=2048)),d!==o&&d&&(l.child.flags|=8192),Am(l,l.updateQueue),sn(l),null);case 4:return ge(),o===null&&vS(l.stateNode.containerInfo),sn(l),null;case 10:return Ys(l.type),sn(l),null;case 19:if(W(En),p=l.memoizedState,p===null)return sn(l),null;if(v=(l.flags&128)!==0,b=p.rendering,b===null)if(v)Sf(p,!1);else{if(wn!==0||o!==null&&(o.flags&128)!==0)for(o=l.child;o!==null;){if(b=pm(o),b!==null){for(l.flags|=128,Sf(p,!1),o=b.updateQueue,l.updateQueue=o,Am(l,o),l.subtreeFlags=0,o=d,d=l.child;d!==null;)CR(d,o),d=d.sibling;return G(En,En.current&1|2),mt&&Gs(l,p.treeForkCount),l.child}o=o.sibling}p.tail!==null&&nn()>Nm&&(l.flags|=128,v=!0,Sf(p,!1),l.lanes=4194304)}else{if(!v)if(o=pm(b),o!==null){if(l.flags|=128,v=!0,o=o.updateQueue,l.updateQueue=o,Am(l,o),Sf(p,!0),p.tail===null&&p.tailMode==="hidden"&&!b.alternate&&!mt)return sn(l),null}else 2*nn()-p.renderingStartTime>Nm&&d!==536870912&&(l.flags|=128,v=!0,Sf(p,!1),l.lanes=4194304);p.isBackwards?(b.sibling=l.child,l.child=b):(o=p.last,o!==null?o.sibling=b:l.child=b,p.last=b)}return p.tail!==null?(o=p.tail,p.rendering=o,p.tail=o.sibling,p.renderingStartTime=nn(),o.sibling=null,d=En.current,G(En,v?d&1|2:d&1),mt&&Gs(l,p.treeForkCount),o):(sn(l),null);case 22:case 23:return na(l),yb(),p=l.memoizedState!==null,o!==null?o.memoizedState!==null!==p&&(l.flags|=8192):p&&(l.flags|=8192),p?(d&536870912)!==0&&(l.flags&128)===0&&(sn(l),l.subtreeFlags&6&&(l.flags|=8192)):sn(l),d=l.updateQueue,d!==null&&Am(l,d.retryQueue),d=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),p=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(p=l.memoizedState.cachePool.pool),p!==d&&(l.flags|=2048),o!==null&&W(vl),null;case 24:return d=null,o!==null&&(d=o.memoizedState.cache),l.memoizedState.cache!==d&&(l.flags|=2048),Ys(kn),sn(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function hW(o,l){switch(rb(l),l.tag){case 1:return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return Ys(kn),ge(),o=l.flags,(o&65536)!==0&&(o&128)===0?(l.flags=o&-65537|128,l):null;case 26:case 27:case 5:return Te(l),null;case 31:if(l.memoizedState!==null){if(na(l),l.alternate===null)throw Error(r(340));pl()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 13:if(na(l),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(r(340));pl()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return W(En),null;case 4:return ge(),null;case 10:return Ys(l.type),null;case 22:case 23:return na(l),yb(),o!==null&&W(vl),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 24:return Ys(kn),null;case 25:return null;default:return null}}function ZT(o,l){switch(rb(l),l.tag){case 3:Ys(kn),ge();break;case 26:case 27:case 5:Te(l);break;case 4:ge();break;case 31:l.memoizedState!==null&&na(l);break;case 13:na(l);break;case 19:W(En);break;case 10:Ys(l.type);break;case 22:case 23:na(l),yb(),o!==null&&W(vl);break;case 24:Ys(kn)}}function wf(o,l){try{var d=l.updateQueue,p=d!==null?d.lastEffect:null;if(p!==null){var v=p.next;d=v;do{if((d.tag&o)===o){p=void 0;var b=d.create,I=d.inst;p=b(),I.destroy=p}d=d.next}while(d!==v)}}catch(M){zt(l,l.return,M)}}function ii(o,l,d){try{var p=l.updateQueue,v=p!==null?p.lastEffect:null;if(v!==null){var b=v.next;p=b;do{if((p.tag&o)===o){var I=p.inst,M=I.destroy;if(M!==void 0){I.destroy=void 0,v=l;var $=d,te=M;try{te()}catch(ie){zt(v,$,ie)}}}p=p.next}while(p!==b)}}catch(ie){zt(l,l.return,ie)}}function XT(o){var l=o.updateQueue;if(l!==null){var d=o.stateNode;try{$R(l,d)}catch(p){zt(o,o.return,p)}}}function QT(o,l,d){d.props=xl(o.type,o.memoizedProps),d.state=o.memoizedState;try{d.componentWillUnmount()}catch(p){zt(o,l,p)}}function xf(o,l){try{var d=o.ref;if(d!==null){switch(o.tag){case 26:case 27:case 5:var p=o.stateNode;break;case 30:p=o.stateNode;break;default:p=o.stateNode}typeof d=="function"?o.refCleanup=d(p):d.current=p}}catch(v){zt(o,l,v)}}function ps(o,l){var d=o.ref,p=o.refCleanup;if(d!==null)if(typeof p=="function")try{p()}catch(v){zt(o,l,v)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof d=="function")try{d(null)}catch(v){zt(o,l,v)}else d.current=null}function JT(o){var l=o.type,d=o.memoizedProps,p=o.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":d.autoFocus&&p.focus();break e;case"img":d.src?p.src=d.src:d.srcSet&&(p.srcset=d.srcSet)}}catch(v){zt(o,o.return,v)}}function Zb(o,l,d){try{var p=o.stateNode;DW(p,o.type,d,l),p[mr]=l}catch(v){zt(o,o.return,v)}}function e4(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&pi(o.type)||o.tag===4}function Xb(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||e4(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&pi(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Qb(o,l,d){var p=o.tag;if(p===5||p===6)o=o.stateNode,l?(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d).insertBefore(o,l):(l=d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,l.appendChild(o),d=d._reactRootContainer,d!=null||l.onclick!==null||(l.onclick=_t));else if(p!==4&&(p===27&&pi(o.type)&&(d=o.stateNode,l=null),o=o.child,o!==null))for(Qb(o,l,d),o=o.sibling;o!==null;)Qb(o,l,d),o=o.sibling}function Im(o,l,d){var p=o.tag;if(p===5||p===6)o=o.stateNode,l?d.insertBefore(o,l):d.appendChild(o);else if(p!==4&&(p===27&&pi(o.type)&&(d=o.stateNode),o=o.child,o!==null))for(Im(o,l,d),o=o.sibling;o!==null;)Im(o,l,d),o=o.sibling}function t4(o){var l=o.stateNode,d=o.memoizedProps;try{for(var p=o.type,v=l.attributes;v.length;)l.removeAttributeNode(v[0]);ar(l,p,d),l[Ln]=o,l[mr]=d}catch(b){zt(o,o.return,b)}}var eo=!1,Rn=!1,Jb=!1,n4=typeof WeakSet=="function"?WeakSet:Set,Wn=null;function pW(o,l){if(o=o.containerInfo,SS=Ym,o=pR(o),Wy(o)){if("selectionStart"in o)var d={start:o.selectionStart,end:o.selectionEnd};else e:{d=(d=o.ownerDocument)&&d.defaultView||window;var p=d.getSelection&&d.getSelection();if(p&&p.rangeCount!==0){d=p.anchorNode;var v=p.anchorOffset,b=p.focusNode;p=p.focusOffset;try{d.nodeType,b.nodeType}catch{d=null;break e}var I=0,M=-1,$=-1,te=0,ie=0,ue=o,ne=null;t:for(;;){for(var ae;ue!==d||v!==0&&ue.nodeType!==3||(M=I+v),ue!==b||p!==0&&ue.nodeType!==3||($=I+p),ue.nodeType===3&&(I+=ue.nodeValue.length),(ae=ue.firstChild)!==null;)ne=ue,ue=ae;for(;;){if(ue===o)break t;if(ne===d&&++te===v&&(M=I),ne===b&&++ie===p&&($=I),(ae=ue.nextSibling)!==null)break;ue=ne,ne=ue.parentNode}ue=ae}d=M===-1||$===-1?null:{start:M,end:$}}else d=null}d=d||{start:0,end:0}}else d=null;for(wS={focusedElem:o,selectionRange:d},Ym=!1,Wn=l;Wn!==null;)if(l=Wn,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,Wn=o;else for(;Wn!==null;){switch(l=Wn,b=l.alternate,o=l.flags,l.tag){case 0:if((o&4)!==0&&(o=l.updateQueue,o=o!==null?o.events:null,o!==null))for(d=0;d<o.length;d++)v=o[d],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&b!==null){o=void 0,d=l,v=b.memoizedProps,b=b.memoizedState,p=d.stateNode;try{var Ie=xl(d.type,v);o=p.getSnapshotBeforeUpdate(Ie,b),p.__reactInternalSnapshotBeforeUpdate=o}catch($e){zt(d,d.return,$e)}}break;case 3:if((o&1024)!==0){if(o=l.stateNode.containerInfo,d=o.nodeType,d===9)ES(o);else if(d===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":ES(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=l.sibling,o!==null){o.return=l.return,Wn=o;break}Wn=l.return}}function r4(o,l,d){var p=d.flags;switch(d.tag){case 0:case 11:case 15:no(o,d),p&4&&wf(5,d);break;case 1:if(no(o,d),p&4)if(o=d.stateNode,l===null)try{o.componentDidMount()}catch(I){zt(d,d.return,I)}else{var v=xl(d.type,l.memoizedProps);l=l.memoizedState;try{o.componentDidUpdate(v,l,o.__reactInternalSnapshotBeforeUpdate)}catch(I){zt(d,d.return,I)}}p&64&&XT(d),p&512&&xf(d,d.return);break;case 3:if(no(o,d),p&64&&(o=d.updateQueue,o!==null)){if(l=null,d.child!==null)switch(d.child.tag){case 27:case 5:l=d.child.stateNode;break;case 1:l=d.child.stateNode}try{$R(o,l)}catch(I){zt(d,d.return,I)}}break;case 27:l===null&&p&4&&t4(d);case 26:case 5:no(o,d),l===null&&p&4&&JT(d),p&512&&xf(d,d.return);break;case 12:no(o,d);break;case 31:no(o,d),p&4&&o4(o,d);break;case 13:no(o,d),p&4&&i4(o,d),p&64&&(o=d.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(d=CW.bind(null,d),HW(o,d))));break;case 22:if(p=d.memoizedState!==null||eo,!p){l=l!==null&&l.memoizedState!==null||Rn,v=eo;var b=Rn;eo=p,(Rn=l)&&!b?ro(o,d,(d.subtreeFlags&8772)!==0):no(o,d),eo=v,Rn=b}break;case 30:break;default:no(o,d)}}function a4(o){var l=o.alternate;l!==null&&(o.alternate=null,a4(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&Pu(l)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var fn=null,jr=!1;function to(o,l,d){for(d=d.child;d!==null;)s4(o,l,d),d=d.sibling}function s4(o,l,d){if(hr&&typeof hr.onCommitFiberUnmount=="function")try{hr.onCommitFiberUnmount(is,d)}catch{}switch(d.tag){case 26:Rn||ps(d,l),to(o,l,d),d.memoizedState?d.memoizedState.count--:d.stateNode&&(d=d.stateNode,d.parentNode.removeChild(d));break;case 27:Rn||ps(d,l);var p=fn,v=jr;pi(d.type)&&(fn=d.stateNode,jr=!1),to(o,l,d),Of(d.stateNode),fn=p,jr=v;break;case 5:Rn||ps(d,l);case 6:if(p=fn,v=jr,fn=null,to(o,l,d),fn=p,jr=v,fn!==null)if(jr)try{(fn.nodeType===9?fn.body:fn.nodeName==="HTML"?fn.ownerDocument.body:fn).removeChild(d.stateNode)}catch(b){zt(d,l,b)}else try{fn.removeChild(d.stateNode)}catch(b){zt(d,l,b)}break;case 18:fn!==null&&(jr?(o=fn,X4(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,d.stateNode),fc(o)):X4(fn,d.stateNode));break;case 4:p=fn,v=jr,fn=d.stateNode.containerInfo,jr=!0,to(o,l,d),fn=p,jr=v;break;case 0:case 11:case 14:case 15:ii(2,d,l),Rn||ii(4,d,l),to(o,l,d);break;case 1:Rn||(ps(d,l),p=d.stateNode,typeof p.componentWillUnmount=="function"&&QT(d,l,p)),to(o,l,d);break;case 21:to(o,l,d);break;case 22:Rn=(p=Rn)||d.memoizedState!==null,to(o,l,d),Rn=p;break;default:to(o,l,d)}}function o4(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{fc(o)}catch(d){zt(l,l.return,d)}}}function i4(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{fc(o)}catch(d){zt(l,l.return,d)}}function mW(o){switch(o.tag){case 31:case 13:case 19:var l=o.stateNode;return l===null&&(l=o.stateNode=new n4),l;case 22:return o=o.stateNode,l=o._retryCache,l===null&&(l=o._retryCache=new n4),l;default:throw Error(r(435,o.tag))}}function Rm(o,l){var d=mW(o);l.forEach(function(p){if(!d.has(p)){d.add(p);var v=EW.bind(null,o,p);p.then(v,v)}})}function zr(o,l){var d=l.deletions;if(d!==null)for(var p=0;p<d.length;p++){var v=d[p],b=o,I=l,M=I;e:for(;M!==null;){switch(M.tag){case 27:if(pi(M.type)){fn=M.stateNode,jr=!1;break e}break;case 5:fn=M.stateNode,jr=!1;break e;case 3:case 4:fn=M.stateNode.containerInfo,jr=!0;break e}M=M.return}if(fn===null)throw Error(r(160));s4(b,I,v),fn=null,jr=!1,b=v.alternate,b!==null&&(b.return=null),v.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)l4(l,o),l=l.sibling}var za=null;function l4(o,l){var d=o.alternate,p=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:zr(l,o),Fr(o),p&4&&(ii(3,o,o.return),wf(3,o),ii(5,o,o.return));break;case 1:zr(l,o),Fr(o),p&512&&(Rn||d===null||ps(d,d.return)),p&64&&eo&&(o=o.updateQueue,o!==null&&(p=o.callbacks,p!==null&&(d=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=d===null?p:d.concat(p))));break;case 26:var v=za;if(zr(l,o),Fr(o),p&512&&(Rn||d===null||ps(d,d.return)),p&4){var b=d!==null?d.memoizedState:null;if(p=o.memoizedState,d===null)if(p===null)if(o.stateNode===null){e:{p=o.type,d=o.memoizedProps,v=v.ownerDocument||v;t:switch(p){case"title":b=v.getElementsByTagName("title")[0],(!b||b[Wo]||b[Ln]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=v.createElement(p),v.head.insertBefore(b,v.querySelector("head > title"))),ar(b,p,d),b[Ln]=o,Xt(b),p=b;break e;case"link":var I=l5("link","href",v).get(p+(d.href||""));if(I){for(var M=0;M<I.length;M++)if(b=I[M],b.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&b.getAttribute("rel")===(d.rel==null?null:d.rel)&&b.getAttribute("title")===(d.title==null?null:d.title)&&b.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){I.splice(M,1);break t}}b=v.createElement(p),ar(b,p,d),v.head.appendChild(b);break;case"meta":if(I=l5("meta","content",v).get(p+(d.content||""))){for(M=0;M<I.length;M++)if(b=I[M],b.getAttribute("content")===(d.content==null?null:""+d.content)&&b.getAttribute("name")===(d.name==null?null:d.name)&&b.getAttribute("property")===(d.property==null?null:d.property)&&b.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&b.getAttribute("charset")===(d.charSet==null?null:d.charSet)){I.splice(M,1);break t}}b=v.createElement(p),ar(b,p,d),v.head.appendChild(b);break;default:throw Error(r(468,p))}b[Ln]=o,Xt(b),p=b}o.stateNode=p}else u5(v,o.type,o.stateNode);else o.stateNode=i5(v,p,o.memoizedProps);else b!==p?(b===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):b.count--,p===null?u5(v,o.type,o.stateNode):i5(v,p,o.memoizedProps)):p===null&&o.stateNode!==null&&Zb(o,o.memoizedProps,d.memoizedProps)}break;case 27:zr(l,o),Fr(o),p&512&&(Rn||d===null||ps(d,d.return)),d!==null&&p&4&&Zb(o,o.memoizedProps,d.memoizedProps);break;case 5:if(zr(l,o),Fr(o),p&512&&(Rn||d===null||ps(d,d.return)),o.flags&32){v=o.stateNode;try{me(v,"")}catch(Ie){zt(o,o.return,Ie)}}p&4&&o.stateNode!=null&&(v=o.memoizedProps,Zb(o,v,d!==null?d.memoizedProps:v)),p&1024&&(Jb=!0);break;case 6:if(zr(l,o),Fr(o),p&4){if(o.stateNode===null)throw Error(r(162));p=o.memoizedProps,d=o.stateNode;try{d.nodeValue=p}catch(Ie){zt(o,o.return,Ie)}}break;case 3:if(Vm=null,v=za,za=Hm(l.containerInfo),zr(l,o),za=v,Fr(o),p&4&&d!==null&&d.memoizedState.isDehydrated)try{fc(l.containerInfo)}catch(Ie){zt(o,o.return,Ie)}Jb&&(Jb=!1,u4(o));break;case 4:p=za,za=Hm(o.stateNode.containerInfo),zr(l,o),Fr(o),za=p;break;case 12:zr(l,o),Fr(o);break;case 31:zr(l,o),Fr(o),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,Rm(o,p)));break;case 13:zr(l,o),Fr(o),o.child.flags&8192&&o.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(Om=nn()),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,Rm(o,p)));break;case 22:v=o.memoizedState!==null;var $=d!==null&&d.memoizedState!==null,te=eo,ie=Rn;if(eo=te||v,Rn=ie||$,zr(l,o),Rn=ie,eo=te,Fr(o),p&8192)e:for(l=o.stateNode,l._visibility=v?l._visibility&-2:l._visibility|1,v&&(d===null||$||eo||Rn||Cl(o)),d=null,l=o;;){if(l.tag===5||l.tag===26){if(d===null){$=d=l;try{if(b=$.stateNode,v)I=b.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none";else{M=$.stateNode;var ue=$.memoizedProps.style,ne=ue!=null&&ue.hasOwnProperty("display")?ue.display:null;M.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(Ie){zt($,$.return,Ie)}}}else if(l.tag===6){if(d===null){$=l;try{$.stateNode.nodeValue=v?"":$.memoizedProps}catch(Ie){zt($,$.return,Ie)}}}else if(l.tag===18){if(d===null){$=l;try{var ae=$.stateNode;v?Q4(ae,!0):Q4($.stateNode,!1)}catch(Ie){zt($,$.return,Ie)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===o)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break e;for(;l.sibling===null;){if(l.return===null||l.return===o)break e;d===l&&(d=null),l=l.return}d===l&&(d=null),l.sibling.return=l.return,l=l.sibling}p&4&&(p=o.updateQueue,p!==null&&(d=p.retryQueue,d!==null&&(p.retryQueue=null,Rm(o,d))));break;case 19:zr(l,o),Fr(o),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,Rm(o,p)));break;case 30:break;case 21:break;default:zr(l,o),Fr(o)}}function Fr(o){var l=o.flags;if(l&2){try{for(var d,p=o.return;p!==null;){if(e4(p)){d=p;break}p=p.return}if(d==null)throw Error(r(160));switch(d.tag){case 27:var v=d.stateNode,b=Xb(o);Im(o,b,v);break;case 5:var I=d.stateNode;d.flags&32&&(me(I,""),d.flags&=-33);var M=Xb(o);Im(o,M,I);break;case 3:case 4:var $=d.stateNode.containerInfo,te=Xb(o);Qb(o,te,$);break;default:throw Error(r(161))}}catch(ie){zt(o,o.return,ie)}o.flags&=-3}l&4096&&(o.flags&=-4097)}function u4(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var l=o;u4(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),o=o.sibling}}function no(o,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)r4(o,l.alternate,l),l=l.sibling}function Cl(o){for(o=o.child;o!==null;){var l=o;switch(l.tag){case 0:case 11:case 14:case 15:ii(4,l,l.return),Cl(l);break;case 1:ps(l,l.return);var d=l.stateNode;typeof d.componentWillUnmount=="function"&&QT(l,l.return,d),Cl(l);break;case 27:Of(l.stateNode);case 26:case 5:ps(l,l.return),Cl(l);break;case 22:l.memoizedState===null&&Cl(l);break;case 30:Cl(l);break;default:Cl(l)}o=o.sibling}}function ro(o,l,d){for(d=d&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var p=l.alternate,v=o,b=l,I=b.flags;switch(b.tag){case 0:case 11:case 15:ro(v,b,d),wf(4,b);break;case 1:if(ro(v,b,d),p=b,v=p.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(te){zt(p,p.return,te)}if(p=b,v=p.updateQueue,v!==null){var M=p.stateNode;try{var $=v.shared.hiddenCallbacks;if($!==null)for(v.shared.hiddenCallbacks=null,v=0;v<$.length;v++)FR($[v],M)}catch(te){zt(p,p.return,te)}}d&&I&64&&XT(b),xf(b,b.return);break;case 27:t4(b);case 26:case 5:ro(v,b,d),d&&p===null&&I&4&&JT(b),xf(b,b.return);break;case 12:ro(v,b,d);break;case 31:ro(v,b,d),d&&I&4&&o4(v,b);break;case 13:ro(v,b,d),d&&I&4&&i4(v,b);break;case 22:b.memoizedState===null&&ro(v,b,d),xf(b,b.return);break;case 30:break;default:ro(v,b,d)}l=l.sibling}}function eS(o,l){var d=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==d&&(o!=null&&o.refCount++,d!=null&&lf(d))}function tS(o,l){o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&lf(o))}function Fa(o,l,d,p){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)c4(o,l,d,p),l=l.sibling}function c4(o,l,d,p){var v=l.flags;switch(l.tag){case 0:case 11:case 15:Fa(o,l,d,p),v&2048&&wf(9,l);break;case 1:Fa(o,l,d,p);break;case 3:Fa(o,l,d,p),v&2048&&(o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&lf(o)));break;case 12:if(v&2048){Fa(o,l,d,p),o=l.stateNode;try{var b=l.memoizedProps,I=b.id,M=b.onPostCommit;typeof M=="function"&&M(I,l.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch($){zt(l,l.return,$)}}else Fa(o,l,d,p);break;case 31:Fa(o,l,d,p);break;case 13:Fa(o,l,d,p);break;case 23:break;case 22:b=l.stateNode,I=l.alternate,l.memoizedState!==null?b._visibility&2?Fa(o,l,d,p):Cf(o,l):b._visibility&2?Fa(o,l,d,p):(b._visibility|=2,tc(o,l,d,p,(l.subtreeFlags&10256)!==0||!1)),v&2048&&eS(I,l);break;case 24:Fa(o,l,d,p),v&2048&&tS(l.alternate,l);break;default:Fa(o,l,d,p)}}function tc(o,l,d,p,v){for(v=v&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var b=o,I=l,M=d,$=p,te=I.flags;switch(I.tag){case 0:case 11:case 15:tc(b,I,M,$,v),wf(8,I);break;case 23:break;case 22:var ie=I.stateNode;I.memoizedState!==null?ie._visibility&2?tc(b,I,M,$,v):Cf(b,I):(ie._visibility|=2,tc(b,I,M,$,v)),v&&te&2048&&eS(I.alternate,I);break;case 24:tc(b,I,M,$,v),v&&te&2048&&tS(I.alternate,I);break;default:tc(b,I,M,$,v)}l=l.sibling}}function Cf(o,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var d=o,p=l,v=p.flags;switch(p.tag){case 22:Cf(d,p),v&2048&&eS(p.alternate,p);break;case 24:Cf(d,p),v&2048&&tS(p.alternate,p);break;default:Cf(d,p)}l=l.sibling}}var Ef=8192;function nc(o,l,d){if(o.subtreeFlags&Ef)for(o=o.child;o!==null;)d4(o,l,d),o=o.sibling}function d4(o,l,d){switch(o.tag){case 26:nc(o,l,d),o.flags&Ef&&o.memoizedState!==null&&tG(d,za,o.memoizedState,o.memoizedProps);break;case 5:nc(o,l,d);break;case 3:case 4:var p=za;za=Hm(o.stateNode.containerInfo),nc(o,l,d),za=p;break;case 22:o.memoizedState===null&&(p=o.alternate,p!==null&&p.memoizedState!==null?(p=Ef,Ef=16777216,nc(o,l,d),Ef=p):nc(o,l,d));break;default:nc(o,l,d)}}function f4(o){var l=o.alternate;if(l!==null&&(o=l.child,o!==null)){l.child=null;do l=o.sibling,o.sibling=null,o=l;while(o!==null)}}function _f(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var p=l[d];Wn=p,p4(p,o)}f4(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)h4(o),o=o.sibling}function h4(o){switch(o.tag){case 0:case 11:case 15:_f(o),o.flags&2048&&ii(9,o,o.return);break;case 3:_f(o);break;case 12:_f(o);break;case 22:var l=o.stateNode;o.memoizedState!==null&&l._visibility&2&&(o.return===null||o.return.tag!==13)?(l._visibility&=-3,Tm(o)):_f(o);break;default:_f(o)}}function Tm(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var p=l[d];Wn=p,p4(p,o)}f4(o)}for(o=o.child;o!==null;){switch(l=o,l.tag){case 0:case 11:case 15:ii(8,l,l.return),Tm(l);break;case 22:d=l.stateNode,d._visibility&2&&(d._visibility&=-3,Tm(l));break;default:Tm(l)}o=o.sibling}}function p4(o,l){for(;Wn!==null;){var d=Wn;switch(d.tag){case 0:case 11:case 15:ii(8,d,l);break;case 23:case 22:if(d.memoizedState!==null&&d.memoizedState.cachePool!==null){var p=d.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:lf(d.memoizedState.cache)}if(p=d.child,p!==null)p.return=d,Wn=p;else e:for(d=o;Wn!==null;){p=Wn;var v=p.sibling,b=p.return;if(a4(p),p===d){Wn=null;break e}if(v!==null){v.return=b,Wn=v;break e}Wn=b}}}var gW={getCacheForType:function(o){var l=nr(kn),d=l.data.get(o);return d===void 0&&(d=o(),l.data.set(o,d)),d},cacheSignal:function(){return nr(kn).controller.signal}},vW=typeof WeakMap=="function"?WeakMap:Map,Nt=0,Qt=null,ut=null,ft=0,jt=0,ra=null,li=!1,rc=!1,nS=!1,ao=0,wn=0,ui=0,El=0,rS=0,aa=0,ac=0,kf=null,$r=null,aS=!1,Om=0,m4=0,Nm=1/0,Mm=null,ci=null,Un=0,di=null,sc=null,so=0,sS=0,oS=null,g4=null,Af=0,iS=null;function sa(){return(Nt&2)!==0&&ft!==0?ft&-ft:B.T!==null?hS():Nu()}function v4(){if(aa===0)if((ft&536870912)===0||mt){var o=Ho;Ho<<=1,(Ho&3932160)===0&&(Ho=262144),aa=o}else aa=536870912;return o=ta.current,o!==null&&(o.flags|=32),aa}function Br(o,l,d){(o===Qt&&(jt===2||jt===9)||o.cancelPendingCommit!==null)&&(oc(o,0),fi(o,ft,aa,!1)),ma(o,d),((Nt&2)===0||o!==Qt)&&(o===Qt&&((Nt&2)===0&&(El|=d),wn===4&&fi(o,ft,aa,!1)),ms(o))}function y4(o,l,d){if((Nt&6)!==0)throw Error(r(327));var p=!d&&(l&127)===0&&(l&o.expiredLanes)===0||Vo(o,l),v=p?SW(o,l):uS(o,l,!0),b=p;do{if(v===0){rc&&!p&&fi(o,l,0,!1);break}else{if(d=o.current.alternate,b&&!yW(d)){v=uS(o,l,!1),b=!1;continue}if(v===2){if(b=l,o.errorRecoveryDisabledLanes&b)var I=0;else I=o.pendingLanes&-536870913,I=I!==0?I:I&536870912?536870912:0;if(I!==0){l=I;e:{var M=o;v=kf;var $=M.current.memoizedState.isDehydrated;if($&&(oc(M,I).flags|=256),I=uS(M,I,!1),I!==2){if(nS&&!$){M.errorRecoveryDisabledLanes|=b,El|=b,v=4;break e}b=$r,$r=v,b!==null&&($r===null?$r=b:$r.push.apply($r,b))}v=I}if(b=!1,v!==2)continue}}if(v===1){oc(o,0),fi(o,l,0,!0);break}e:{switch(p=o,b=v,b){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:fi(p,l,aa,!li);break e;case 2:$r=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(v=Om+300-nn(),10<v)){if(fi(p,l,aa,!li),qo(p,0,!0)!==0)break e;so=l,p.timeoutHandle=Y4(b4.bind(null,p,d,$r,Mm,aS,l,aa,El,ac,li,b,"Throttled",-0,0),v);break e}b4(p,d,$r,Mm,aS,l,aa,El,ac,li,b,null,-0,0)}}break}while(!0);ms(o)}function b4(o,l,d,p,v,b,I,M,$,te,ie,ue,ne,ae){if(o.timeoutHandle=-1,ue=l.subtreeFlags,ue&8192||(ue&16785408)===16785408){ue={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_t},d4(l,b,ue);var Ie=(b&62914560)===b?Om-nn():(b&4194048)===b?m4-nn():0;if(Ie=nG(ue,Ie),Ie!==null){so=b,o.cancelPendingCommit=Ie(A4.bind(null,o,l,b,d,p,v,I,M,$,ie,ue,null,ne,ae)),fi(o,b,I,!te);return}}A4(o,l,b,d,p,v,I,M,$)}function yW(o){for(var l=o;;){var d=l.tag;if((d===0||d===11||d===15)&&l.flags&16384&&(d=l.updateQueue,d!==null&&(d=d.stores,d!==null)))for(var p=0;p<d.length;p++){var v=d[p],b=v.getSnapshot;v=v.value;try{if(!Jr(b(),v))return!1}catch{return!1}}if(d=l.child,l.subtreeFlags&16384&&d!==null)d.return=l,l=d;else{if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function fi(o,l,d,p){l&=~rS,l&=~El,o.suspendedLanes|=l,o.pingedLanes&=~l,p&&(o.warmLanes|=l),p=o.expirationTimes;for(var v=l;0<v;){var b=31-pr(v),I=1<<b;p[b]=-1,v&=~I}d!==0&&Tu(o,d,l)}function Pm(){return(Nt&6)===0?(If(0),!1):!0}function lS(){if(ut!==null){if(jt===0)var o=ut.return;else o=ut,Ks=ml=null,Eb(o),Zu=null,cf=0,o=ut;for(;o!==null;)ZT(o.alternate,o),o=o.return;ut=null}}function oc(o,l){var d=o.timeoutHandle;d!==-1&&(o.timeoutHandle=-1,jW(d)),d=o.cancelPendingCommit,d!==null&&(o.cancelPendingCommit=null,d()),so=0,lS(),Qt=o,ut=d=Ws(o.current,null),ft=l,jt=0,ra=null,li=!1,rc=Vo(o,l),nS=!1,ac=aa=rS=El=ui=wn=0,$r=kf=null,aS=!1,(l&8)!==0&&(l|=l&32);var p=o.entangledLanes;if(p!==0)for(o=o.entanglements,p&=l;0<p;){var v=31-pr(p),b=1<<v;l|=o[v],p&=~b}return ao=l,tm(),d}function S4(o,l){nt=null,B.H=yf,l===Yu||l===um?(l=LR(),jt=3):l===fb?(l=LR(),jt=4):jt=l===Fb?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,ra=l,ut===null&&(wn=1,Cm(o,ya(l,o.current)))}function w4(){var o=ta.current;return o===null?!0:(ft&4194048)===ft?xa===null:(ft&62914560)===ft||(ft&536870912)!==0?o===xa:!1}function x4(){var o=B.H;return B.H=yf,o===null?yf:o}function C4(){var o=B.A;return B.A=gW,o}function Dm(){wn=4,li||(ft&4194048)!==ft&&ta.current!==null||(rc=!0),(ui&134217727)===0&&(El&134217727)===0||Qt===null||fi(Qt,ft,aa,!1)}function uS(o,l,d){var p=Nt;Nt|=2;var v=x4(),b=C4();(Qt!==o||ft!==l)&&(Mm=null,oc(o,l)),l=!1;var I=wn;e:do try{if(jt!==0&&ut!==null){var M=ut,$=ra;switch(jt){case 8:lS(),I=6;break e;case 3:case 2:case 9:case 6:ta.current===null&&(l=!0);var te=jt;if(jt=0,ra=null,ic(o,M,$,te),d&&rc){I=0;break e}break;default:te=jt,jt=0,ra=null,ic(o,M,$,te)}}bW(),I=wn;break}catch(ie){S4(o,ie)}while(!0);return l&&o.shellSuspendCounter++,Ks=ml=null,Nt=p,B.H=v,B.A=b,ut===null&&(Qt=null,ft=0,tm()),I}function bW(){for(;ut!==null;)E4(ut)}function SW(o,l){var d=Nt;Nt|=2;var p=x4(),v=C4();Qt!==o||ft!==l?(Mm=null,Nm=nn()+500,oc(o,l)):rc=Vo(o,l);e:do try{if(jt!==0&&ut!==null){l=ut;var b=ra;t:switch(jt){case 1:jt=0,ra=null,ic(o,l,b,1);break;case 2:case 9:if(PR(b)){jt=0,ra=null,_4(l);break}l=function(){jt!==2&&jt!==9||Qt!==o||(jt=7),ms(o)},b.then(l,l);break e;case 3:jt=7;break e;case 4:jt=5;break e;case 7:PR(b)?(jt=0,ra=null,_4(l)):(jt=0,ra=null,ic(o,l,b,7));break;case 5:var I=null;switch(ut.tag){case 26:I=ut.memoizedState;case 5:case 27:var M=ut;if(I?c5(I):M.stateNode.complete){jt=0,ra=null;var $=M.sibling;if($!==null)ut=$;else{var te=M.return;te!==null?(ut=te,Lm(te)):ut=null}break t}}jt=0,ra=null,ic(o,l,b,5);break;case 6:jt=0,ra=null,ic(o,l,b,6);break;case 8:lS(),wn=6;break e;default:throw Error(r(462))}}wW();break}catch(ie){S4(o,ie)}while(!0);return Ks=ml=null,B.H=p,B.A=v,Nt=d,ut!==null?0:(Qt=null,ft=0,tm(),wn)}function wW(){for(;ut!==null&&!os();)E4(ut)}function E4(o){var l=KT(o.alternate,o,ao);o.memoizedProps=o.pendingProps,l===null?Lm(o):ut=l}function _4(o){var l=o,d=l.alternate;switch(l.tag){case 15:case 0:l=BT(d,l,l.pendingProps,l.type,void 0,ft);break;case 11:l=BT(d,l,l.pendingProps,l.type.render,l.ref,ft);break;case 5:Eb(l);default:ZT(d,l),l=ut=CR(l,ao),l=KT(d,l,ao)}o.memoizedProps=o.pendingProps,l===null?Lm(o):ut=l}function ic(o,l,d,p){Ks=ml=null,Eb(l),Zu=null,cf=0;var v=l.return;try{if(uW(o,v,l,d,ft)){wn=1,Cm(o,ya(d,o.current)),ut=null;return}}catch(b){if(v!==null)throw ut=v,b;wn=1,Cm(o,ya(d,o.current)),ut=null;return}l.flags&32768?(mt||p===1?o=!0:rc||(ft&536870912)!==0?o=!1:(li=o=!0,(p===2||p===9||p===3||p===6)&&(p=ta.current,p!==null&&p.tag===13&&(p.flags|=16384))),k4(l,o)):Lm(l)}function Lm(o){var l=o;do{if((l.flags&32768)!==0){k4(l,li);return}o=l.return;var d=fW(l.alternate,l,ao);if(d!==null){ut=d;return}if(l=l.sibling,l!==null){ut=l;return}ut=l=o}while(l!==null);wn===0&&(wn=5)}function k4(o,l){do{var d=hW(o.alternate,o);if(d!==null){d.flags&=32767,ut=d;return}if(d=o.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!l&&(o=o.sibling,o!==null)){ut=o;return}ut=o=d}while(o!==null);wn=6,ut=null}function A4(o,l,d,p,v,b,I,M,$){o.cancelPendingCommit=null;do Um();while(Un!==0);if((Nt&6)!==0)throw Error(r(327));if(l!==null){if(l===o.current)throw Error(r(177));if(b=l.lanes|l.childLanes,b|=Xy,Hd(o,d,b,I,M,$),o===Qt&&(ut=Qt=null,ft=0),sc=l,di=o,so=d,sS=b,oS=v,g4=p,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,_W(La,function(){return N4(),null})):(o.callbackNode=null,o.callbackPriority=0),p=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||p){p=B.T,B.T=null,v=X.p,X.p=2,I=Nt,Nt|=4;try{pW(o,l,d)}finally{Nt=I,X.p=v,B.T=p}}Un=1,I4(),R4(),T4()}}function I4(){if(Un===1){Un=0;var o=di,l=sc,d=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||d){d=B.T,B.T=null;var p=X.p;X.p=2;var v=Nt;Nt|=4;try{l4(l,o);var b=wS,I=pR(o.containerInfo),M=b.focusedElem,$=b.selectionRange;if(I!==M&&M&&M.ownerDocument&&hR(M.ownerDocument.documentElement,M)){if($!==null&&Wy(M)){var te=$.start,ie=$.end;if(ie===void 0&&(ie=te),"selectionStart"in M)M.selectionStart=te,M.selectionEnd=Math.min(ie,M.value.length);else{var ue=M.ownerDocument||document,ne=ue&&ue.defaultView||window;if(ne.getSelection){var ae=ne.getSelection(),Ie=M.textContent.length,$e=Math.min($.start,Ie),Vt=$.end===void 0?$e:Math.min($.end,Ie);!ae.extend&&$e>Vt&&(I=Vt,Vt=$e,$e=I);var Y=fR(M,$e),V=fR(M,Vt);if(Y&&V&&(ae.rangeCount!==1||ae.anchorNode!==Y.node||ae.anchorOffset!==Y.offset||ae.focusNode!==V.node||ae.focusOffset!==V.offset)){var ee=ue.createRange();ee.setStart(Y.node,Y.offset),ae.removeAllRanges(),$e>Vt?(ae.addRange(ee),ae.extend(V.node,V.offset)):(ee.setEnd(V.node,V.offset),ae.addRange(ee))}}}}for(ue=[],ae=M;ae=ae.parentNode;)ae.nodeType===1&&ue.push({element:ae,left:ae.scrollLeft,top:ae.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M<ue.length;M++){var le=ue[M];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}Ym=!!SS,wS=SS=null}finally{Nt=v,X.p=p,B.T=d}}o.current=l,Un=2}}function R4(){if(Un===2){Un=0;var o=di,l=sc,d=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||d){d=B.T,B.T=null;var p=X.p;X.p=2;var v=Nt;Nt|=4;try{r4(o,l.alternate,l)}finally{Nt=v,X.p=p,B.T=d}}Un=3}}function T4(){if(Un===4||Un===3){Un=0,Fo();var o=di,l=sc,d=so,p=g4;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Un=5:(Un=0,sc=di=null,O4(o,o.pendingLanes));var v=o.pendingLanes;if(v===0&&(ci=null),Ou(d),l=l.stateNode,hr&&typeof hr.onCommitFiberRoot=="function")try{hr.onCommitFiberRoot(is,l,void 0,(l.current.flags&128)===128)}catch{}if(p!==null){l=B.T,v=X.p,X.p=2,B.T=null;try{for(var b=o.onRecoverableError,I=0;I<p.length;I++){var M=p[I];b(M.value,{componentStack:M.stack})}}finally{B.T=l,X.p=v}}(so&3)!==0&&Um(),ms(o),v=o.pendingLanes,(d&261930)!==0&&(v&42)!==0?o===iS?Af++:(Af=0,iS=o):Af=0,If(0)}}function O4(o,l){(o.pooledCacheLanes&=l)===0&&(l=o.pooledCache,l!=null&&(o.pooledCache=null,lf(l)))}function Um(){return I4(),R4(),T4(),N4()}function N4(){if(Un!==5)return!1;var o=di,l=sS;sS=0;var d=Ou(so),p=B.T,v=X.p;try{X.p=32>d?32:d,B.T=null,d=oS,oS=null;var b=di,I=so;if(Un=0,sc=di=null,so=0,(Nt&6)!==0)throw Error(r(331));var M=Nt;if(Nt|=4,h4(b.current),c4(b,b.current,I,d),Nt=M,If(0,!1),hr&&typeof hr.onPostCommitFiberRoot=="function")try{hr.onPostCommitFiberRoot(is,b)}catch{}return!0}finally{X.p=v,B.T=p,O4(o,l)}}function M4(o,l,d){l=ya(d,l),l=zb(o.stateNode,l,2),o=ai(o,l,2),o!==null&&(ma(o,2),ms(o))}function zt(o,l,d){if(o.tag===3)M4(o,o,d);else for(;l!==null;){if(l.tag===3){M4(l,o,d);break}else if(l.tag===1){var p=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(ci===null||!ci.has(p))){o=ya(d,o),d=PT(2),p=ai(l,d,2),p!==null&&(DT(d,p,l,o),ma(p,2),ms(p));break}}l=l.return}}function cS(o,l,d){var p=o.pingCache;if(p===null){p=o.pingCache=new vW;var v=new Set;p.set(l,v)}else v=p.get(l),v===void 0&&(v=new Set,p.set(l,v));v.has(d)||(nS=!0,v.add(d),o=xW.bind(null,o,l,d),l.then(o,o))}function xW(o,l,d){var p=o.pingCache;p!==null&&p.delete(l),o.pingedLanes|=o.suspendedLanes&d,o.warmLanes&=~d,Qt===o&&(ft&d)===d&&(wn===4||wn===3&&(ft&62914560)===ft&&300>nn()-Om?(Nt&2)===0&&oc(o,0):rS|=d,ac===ft&&(ac=0)),ms(o)}function P4(o,l){l===0&&(l=rl()),o=fl(o,l),o!==null&&(ma(o,l),ms(o))}function CW(o){var l=o.memoizedState,d=0;l!==null&&(d=l.retryLane),P4(o,d)}function EW(o,l){var d=0;switch(o.tag){case 31:case 13:var p=o.stateNode,v=o.memoizedState;v!==null&&(d=v.retryLane);break;case 19:p=o.stateNode;break;case 22:p=o.stateNode._retryCache;break;default:throw Error(r(314))}p!==null&&p.delete(l),P4(o,d)}function _W(o,l){return fr(o,l)}var jm=null,lc=null,dS=!1,zm=!1,fS=!1,hi=0;function ms(o){o!==lc&&o.next===null&&(lc===null?jm=lc=o:lc=lc.next=o),zm=!0,dS||(dS=!0,AW())}function If(o,l){if(!fS&&zm){fS=!0;do for(var d=!1,p=jm;p!==null;){if(o!==0){var v=p.pendingLanes;if(v===0)var b=0;else{var I=p.suspendedLanes,M=p.pingedLanes;b=(1<<31-pr(42|o)+1)-1,b&=v&~(I&~M),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(d=!0,j4(p,b))}else b=ft,b=qo(p,p===Qt?b:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(b&3)===0||Vo(p,b)||(d=!0,j4(p,b));p=p.next}while(d);fS=!1}}function kW(){D4()}function D4(){zm=dS=!1;var o=0;hi!==0&&UW()&&(o=hi);for(var l=nn(),d=null,p=jm;p!==null;){var v=p.next,b=L4(p,l);b===0?(p.next=null,d===null?jm=v:d.next=v,v===null&&(lc=d)):(d=p,(o!==0||(b&3)!==0)&&(zm=!0)),p=v}Un!==0&&Un!==5||If(o),hi!==0&&(hi=0)}function L4(o,l){for(var d=o.suspendedLanes,p=o.pingedLanes,v=o.expirationTimes,b=o.pendingLanes&-62914561;0<b;){var I=31-pr(b),M=1<<I,$=v[I];$===-1?((M&d)===0||(M&p)!==0)&&(v[I]=Ru(M,l)):$<=l&&(o.expiredLanes|=M),b&=~M}if(l=Qt,d=ft,d=qo(o,o===l?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),p=o.callbackNode,d===0||o===l&&(jt===2||jt===9)||o.cancelPendingCommit!==null)return p!==null&&p!==null&&Er(p),o.callbackNode=null,o.callbackPriority=0;if((d&3)===0||Vo(o,d)){if(l=d&-d,l===o.callbackPriority)return l;switch(p!==null&&Er(p),Ou(d)){case 2:case 8:d=Mr;break;case 32:d=La;break;case 268435456:d=ku;break;default:d=La}return p=U4.bind(null,o),d=fr(d,p),o.callbackPriority=l,o.callbackNode=d,l}return p!==null&&p!==null&&Er(p),o.callbackPriority=2,o.callbackNode=null,2}function U4(o,l){if(Un!==0&&Un!==5)return o.callbackNode=null,o.callbackPriority=0,null;var d=o.callbackNode;if(Um()&&o.callbackNode!==d)return null;var p=ft;return p=qo(o,o===Qt?p:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),p===0?null:(y4(o,p,l),L4(o,nn()),o.callbackNode!=null&&o.callbackNode===d?U4.bind(null,o):null)}function j4(o,l){if(Um())return null;y4(o,l,!0)}function AW(){zW(function(){(Nt&6)!==0?fr(rn,kW):D4()})}function hS(){if(hi===0){var o=Gu;o===0&&(o=_r,_r<<=1,(_r&261888)===0&&(_r=256)),hi=o}return hi}function z4(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Et(""+o)}function F4(o,l){var d=l.ownerDocument.createElement("input");return d.name=l.name,d.value=l.value,o.id&&d.setAttribute("form",o.id),l.parentNode.insertBefore(d,l),o=new FormData(o),d.parentNode.removeChild(d),o}function IW(o,l,d,p,v){if(l==="submit"&&d&&d.stateNode===v){var b=z4((v[mr]||null).action),I=p.submitter;I&&(l=(l=I[mr]||null)?z4(l.formAction):I.getAttribute("formAction"),l!==null&&(b=l,I=null));var M=new Xp("action","action",null,p,v);o.push({event:M,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(hi!==0){var $=I?F4(v,I):new FormData(v);Mb(d,{pending:!0,data:$,method:v.method,action:b},null,$)}}else typeof b=="function"&&(M.preventDefault(),$=I?F4(v,I):new FormData(v),Mb(d,{pending:!0,data:$,method:v.method,action:b},b,$))},currentTarget:v}]})}}for(var pS=0;pS<Zy.length;pS++){var mS=Zy[pS],RW=mS.toLowerCase(),TW=mS[0].toUpperCase()+mS.slice(1);ja(RW,"on"+TW)}ja(vR,"onAnimationEnd"),ja(yR,"onAnimationIteration"),ja(bR,"onAnimationStart"),ja("dblclick","onDoubleClick"),ja("focusin","onFocus"),ja("focusout","onBlur"),ja(WV,"onTransitionRun"),ja(GV,"onTransitionStart"),ja(KV,"onTransitionCancel"),ja(SR,"onTransitionEnd"),ga("onMouseEnter",["mouseout","mouseover"]),ga("onMouseLeave",["mouseout","mouseover"]),ga("onPointerEnter",["pointerout","pointerover"]),ga("onPointerLeave",["pointerout","pointerover"]),Bs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bs("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rf="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(" "),OW=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Rf));function $4(o,l){l=(l&4)!==0;for(var d=0;d<o.length;d++){var p=o[d],v=p.event;p=p.listeners;e:{var b=void 0;if(l)for(var I=p.length-1;0<=I;I--){var M=p[I],$=M.instance,te=M.currentTarget;if(M=M.listener,$!==b&&v.isPropagationStopped())break e;b=M,v.currentTarget=te;try{b(v)}catch(ie){em(ie)}v.currentTarget=null,b=$}else for(I=0;I<p.length;I++){if(M=p[I],$=M.instance,te=M.currentTarget,M=M.listener,$!==b&&v.isPropagationStopped())break e;b=M,v.currentTarget=te;try{b(v)}catch(ie){em(ie)}v.currentTarget=null,b=$}}}}function ct(o,l){var d=l[us];d===void 0&&(d=l[us]=new Set);var p=o+"__bubble";d.has(p)||(B4(l,o,2,!1),d.add(p))}function gS(o,l,d){var p=0;l&&(p|=4),B4(d,o,p,l)}var Fm="_reactListening"+Math.random().toString(36).slice(2);function vS(o){if(!o[Fm]){o[Fm]=!0,ol.forEach(function(d){d!=="selectionchange"&&(OW.has(d)||gS(d,!1,o),gS(d,!0,o))});var l=o.nodeType===9?o:o.ownerDocument;l===null||l[Fm]||(l[Fm]=!0,gS("selectionchange",!1,l))}}function B4(o,l,d,p){switch(v5(l)){case 2:var v=sG;break;case 8:v=oG;break;default:v=NS}d=v.bind(null,l,d,o),v=void 0,!Uy||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(v=!0),p?v!==void 0?o.addEventListener(l,d,{capture:!0,passive:v}):o.addEventListener(l,d,!0):v!==void 0?o.addEventListener(l,d,{passive:v}):o.addEventListener(l,d,!1)}function yS(o,l,d,p,v){var b=p;if((l&1)===0&&(l&2)===0&&p!==null)e:for(;;){if(p===null)return;var I=p.tag;if(I===3||I===4){var M=p.stateNode.containerInfo;if(M===v)break;if(I===4)for(I=p.return;I!==null;){var $=I.tag;if(($===3||$===4)&&I.stateNode.containerInfo===v)return;I=I.return}for(;M!==null;){if(I=Go(M),I===null)return;if($=I.tag,$===5||$===6||$===26||$===27){p=b=I;continue e}M=M.parentNode}}p=p.return}GI(function(){var te=b,ie=Vn(d),ue=[];e:{var ne=wR.get(o);if(ne!==void 0){var ae=Xp,Ie=o;switch(o){case"keypress":if(Yp(d)===0)break e;case"keydown":case"keyup":ae=EV;break;case"focusin":Ie="focus",ae=$y;break;case"focusout":Ie="blur",ae=$y;break;case"beforeblur":case"afterblur":ae=$y;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ae=ZI;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=fV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=AV;break;case vR:case yR:case bR:ae=mV;break;case SR:ae=RV;break;case"scroll":case"scrollend":ae=cV;break;case"wheel":ae=OV;break;case"copy":case"cut":case"paste":ae=vV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=QI;break;case"toggle":case"beforetoggle":ae=MV}var $e=(l&4)!==0,Vt=!$e&&(o==="scroll"||o==="scrollend"),Y=$e?ne!==null?ne+"Capture":null:ne;$e=[];for(var V=te,ee;V!==null;){var le=V;if(ee=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||ee===null||Y===null||(le=Zd(V,Y),le!=null&&$e.push(Tf(V,le,ee))),Vt)break;V=V.return}0<$e.length&&(ne=new ae(ne,Ie,null,d,ie),ue.push({event:ne,listeners:$e}))}}if((l&7)===0){e:{if(ne=o==="mouseover"||o==="pointerover",ae=o==="mouseout"||o==="pointerout",ne&&d!==qn&&(Ie=d.relatedTarget||d.fromElement)&&(Go(Ie)||Ie[Dt]))break e;if((ae||ne)&&(ne=ie.window===ie?ie:(ne=ie.ownerDocument)?ne.defaultView||ne.parentWindow:window,ae?(Ie=d.relatedTarget||d.toElement,ae=te,Ie=Ie?Go(Ie):null,Ie!==null&&(Vt=s(Ie),$e=Ie.tag,Ie!==Vt||$e!==5&&$e!==27&&$e!==6)&&(Ie=null)):(ae=null,Ie=te),ae!==Ie)){if($e=ZI,le="onMouseLeave",Y="onMouseEnter",V="mouse",(o==="pointerout"||o==="pointerover")&&($e=QI,le="onPointerLeave",Y="onPointerEnter",V="pointer"),Vt=ae==null?ne:sl(ae),ee=Ie==null?ne:sl(Ie),ne=new $e(le,V+"leave",ae,d,ie),ne.target=Vt,ne.relatedTarget=ee,le=null,Go(ie)===te&&($e=new $e(Y,V+"enter",Ie,d,ie),$e.target=ee,$e.relatedTarget=Vt,le=$e),Vt=le,ae&&Ie)t:{for($e=NW,Y=ae,V=Ie,ee=0,le=Y;le;le=$e(le))ee++;le=0;for(var Fe=V;Fe;Fe=$e(Fe))le++;for(;0<ee-le;)Y=$e(Y),ee--;for(;0<le-ee;)V=$e(V),le--;for(;ee--;){if(Y===V||V!==null&&Y===V.alternate){$e=Y;break t}Y=$e(Y),V=$e(V)}$e=null}else $e=null;ae!==null&&H4(ue,ne,ae,$e,!1),Ie!==null&&Vt!==null&&H4(ue,Vt,Ie,$e,!0)}}e:{if(ne=te?sl(te):window,ae=ne.nodeName&&ne.nodeName.toLowerCase(),ae==="select"||ae==="input"&&ne.type==="file")var It=oR;else if(aR(ne))if(iR)It=HV;else{It=$V;var De=FV}else ae=ne.nodeName,!ae||ae.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?te&&Oe(te.elementType)&&(It=oR):It=BV;if(It&&(It=It(o,te))){sR(ue,It,d,ie);break e}De&&De(o,ne,te),o==="focusout"&&te&&ne.type==="number"&&te.memoizedProps.value!=null&&Yd(ne,"number",ne.value)}switch(De=te?sl(te):window,o){case"focusin":(aR(De)||De.contentEditable==="true")&&(zu=De,Gy=te,af=null);break;case"focusout":af=Gy=zu=null;break;case"mousedown":Ky=!0;break;case"contextmenu":case"mouseup":case"dragend":Ky=!1,mR(ue,d,ie);break;case"selectionchange":if(VV)break;case"keydown":case"keyup":mR(ue,d,ie)}var rt;if(Hy)e:{switch(o){case"compositionstart":var ht="onCompositionStart";break e;case"compositionend":ht="onCompositionEnd";break e;case"compositionupdate":ht="onCompositionUpdate";break e}ht=void 0}else ju?nR(o,d)&&(ht="onCompositionEnd"):o==="keydown"&&d.keyCode===229&&(ht="onCompositionStart");ht&&(JI&&d.locale!=="ko"&&(ju||ht!=="onCompositionStart"?ht==="onCompositionEnd"&&ju&&(rt=KI()):(Xo=ie,jy="value"in Xo?Xo.value:Xo.textContent,ju=!0)),De=$m(te,ht),0<De.length&&(ht=new XI(ht,o,null,d,ie),ue.push({event:ht,listeners:De}),rt?ht.data=rt:(rt=rR(d),rt!==null&&(ht.data=rt)))),(rt=DV?LV(o,d):UV(o,d))&&(ht=$m(te,"onBeforeInput"),0<ht.length&&(De=new XI("onBeforeInput","beforeinput",null,d,ie),ue.push({event:De,listeners:ht}),De.data=rt)),IW(ue,o,te,d,ie)}$4(ue,l)})}function Tf(o,l,d){return{instance:o,listener:l,currentTarget:d}}function $m(o,l){for(var d=l+"Capture",p=[];o!==null;){var v=o,b=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||b===null||(v=Zd(o,d),v!=null&&p.unshift(Tf(o,v,b)),v=Zd(o,l),v!=null&&p.push(Tf(o,v,b))),o.tag===3)return p;o=o.return}return[]}function NW(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function H4(o,l,d,p,v){for(var b=l._reactName,I=[];d!==null&&d!==p;){var M=d,$=M.alternate,te=M.stateNode;if(M=M.tag,$!==null&&$===p)break;M!==5&&M!==26&&M!==27||te===null||($=te,v?(te=Zd(d,b),te!=null&&I.unshift(Tf(d,te,$))):v||(te=Zd(d,b),te!=null&&I.push(Tf(d,te,$)))),d=d.return}I.length!==0&&o.push({event:l,listeners:I})}var MW=/\r\n?/g,PW=/\u0000|\uFFFD/g;function q4(o){return(typeof o=="string"?o:""+o).replace(MW,`
224
+ `).replace(PW,"")}function V4(o,l){return l=q4(l),q4(o)===l}function qt(o,l,d,p,v,b){switch(d){case"children":typeof p=="string"?l==="body"||l==="textarea"&&p===""||me(o,p):(typeof p=="number"||typeof p=="bigint")&&l!=="body"&&me(o,""+p);break;case"className":Hs(o,"class",p);break;case"tabIndex":Hs(o,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":Hs(o,d,p);break;case"style":he(o,p,b);break;case"data":if(l!=="object"){Hs(o,"data",p);break}case"src":case"href":if(p===""&&(l!=="a"||d!=="href")){o.removeAttribute(d);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){o.removeAttribute(d);break}p=Et(""+p),o.setAttribute(d,p);break;case"action":case"formAction":if(typeof p=="function"){o.setAttribute(d,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(d==="formAction"?(l!=="input"&&qt(o,l,"name",v.name,v,null),qt(o,l,"formEncType",v.formEncType,v,null),qt(o,l,"formMethod",v.formMethod,v,null),qt(o,l,"formTarget",v.formTarget,v,null)):(qt(o,l,"encType",v.encType,v,null),qt(o,l,"method",v.method,v,null),qt(o,l,"target",v.target,v,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){o.removeAttribute(d);break}p=Et(""+p),o.setAttribute(d,p);break;case"onClick":p!=null&&(o.onclick=_t);break;case"onScroll":p!=null&&ct("scroll",o);break;case"onScrollEnd":p!=null&&ct("scrollend",o);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(d=p.__html,d!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=d}}break;case"multiple":o.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":o.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){o.removeAttribute("xlink:href");break}d=Et(""+p),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(d,""+p):o.removeAttribute(d);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(d,""):o.removeAttribute(d);break;case"capture":case"download":p===!0?o.setAttribute(d,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(d,p):o.removeAttribute(d);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?o.setAttribute(d,p):o.removeAttribute(d);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?o.removeAttribute(d):o.setAttribute(d,p);break;case"popover":ct("beforetoggle",o),ct("toggle",o),Zo(o,"popover",p);break;case"xlinkActuate":gr(o,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":gr(o,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":gr(o,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":gr(o,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":gr(o,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":gr(o,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":gr(o,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":gr(o,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":gr(o,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":Zo(o,"is",p);break;case"innerText":case"textContent":break;default:(!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(d=ze.get(d)||d,Zo(o,d,p))}}function bS(o,l,d,p,v,b){switch(d){case"style":he(o,p,b);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(d=p.__html,d!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=d}}break;case"children":typeof p=="string"?me(o,p):(typeof p=="number"||typeof p=="bigint")&&me(o,""+p);break;case"onScroll":p!=null&&ct("scroll",o);break;case"onScrollEnd":p!=null&&ct("scrollend",o);break;case"onClick":p!=null&&(o.onclick=_t);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!cs.hasOwnProperty(d))e:{if(d[0]==="o"&&d[1]==="n"&&(v=d.endsWith("Capture"),l=d.slice(2,v?d.length-7:void 0),b=o[mr]||null,b=b!=null?b[d]:null,typeof b=="function"&&o.removeEventListener(l,b,v),typeof p=="function")){typeof b!="function"&&b!==null&&(d in o?o[d]=null:o.hasAttribute(d)&&o.removeAttribute(d)),o.addEventListener(l,p,v);break e}d in o?o[d]=p:p===!0?o.setAttribute(d,""):Zo(o,d,p)}}}function ar(o,l,d){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ct("error",o),ct("load",o);var p=!1,v=!1,b;for(b in d)if(d.hasOwnProperty(b)){var I=d[b];if(I!=null)switch(b){case"src":p=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:qt(o,l,b,I,d,null)}}v&&qt(o,l,"srcSet",d.srcSet,d,null),p&&qt(o,l,"src",d.src,d,null);return;case"input":ct("invalid",o);var M=b=I=v=null,$=null,te=null;for(p in d)if(d.hasOwnProperty(p)){var ie=d[p];if(ie!=null)switch(p){case"name":v=ie;break;case"type":I=ie;break;case"checked":$=ie;break;case"defaultChecked":te=ie;break;case"value":b=ie;break;case"defaultValue":M=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(r(137,l));break;default:qt(o,l,p,ie,d,null)}}Gp(o,b,M,$,te,I,v,!1);return;case"select":ct("invalid",o),p=I=b=null;for(v in d)if(d.hasOwnProperty(v)&&(M=d[v],M!=null))switch(v){case"value":b=M;break;case"defaultValue":I=M;break;case"multiple":p=M;default:qt(o,l,v,M,d,null)}l=b,d=I,o.multiple=!!p,l!=null?qs(o,!!p,l,!1):d!=null&&qs(o,!!p,d,!0);return;case"textarea":ct("invalid",o),b=v=p=null;for(I in d)if(d.hasOwnProperty(I)&&(M=d[I],M!=null))switch(I){case"value":p=M;break;case"defaultValue":v=M;break;case"children":b=M;break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(91));break;default:qt(o,l,I,M,d,null)}Uu(o,p,v,b);return;case"option":for($ in d)d.hasOwnProperty($)&&(p=d[$],p!=null)&&($==="selected"?o.selected=p&&typeof p!="function"&&typeof p!="symbol":qt(o,l,$,p,d,null));return;case"dialog":ct("beforetoggle",o),ct("toggle",o),ct("cancel",o),ct("close",o);break;case"iframe":case"object":ct("load",o);break;case"video":case"audio":for(p=0;p<Rf.length;p++)ct(Rf[p],o);break;case"image":ct("error",o),ct("load",o);break;case"details":ct("toggle",o);break;case"embed":case"source":case"link":ct("error",o),ct("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(te in d)if(d.hasOwnProperty(te)&&(p=d[te],p!=null))switch(te){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:qt(o,l,te,p,d,null)}return;default:if(Oe(l)){for(ie in d)d.hasOwnProperty(ie)&&(p=d[ie],p!==void 0&&bS(o,l,ie,p,d,void 0));return}}for(M in d)d.hasOwnProperty(M)&&(p=d[M],p!=null&&qt(o,l,M,p,d,null))}function DW(o,l,d,p){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,b=null,I=null,M=null,$=null,te=null,ie=null;for(ae in d){var ue=d[ae];if(d.hasOwnProperty(ae)&&ue!=null)switch(ae){case"checked":break;case"value":break;case"defaultValue":$=ue;default:p.hasOwnProperty(ae)||qt(o,l,ae,null,p,ue)}}for(var ne in p){var ae=p[ne];if(ue=d[ne],p.hasOwnProperty(ne)&&(ae!=null||ue!=null))switch(ne){case"type":b=ae;break;case"name":v=ae;break;case"checked":te=ae;break;case"defaultChecked":ie=ae;break;case"value":I=ae;break;case"defaultValue":M=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(r(137,l));break;default:ae!==ue&&qt(o,l,ne,ae,p,ue)}}Lu(o,I,M,$,te,ie,b,v);return;case"select":ae=I=M=ne=null;for(b in d)if($=d[b],d.hasOwnProperty(b)&&$!=null)switch(b){case"value":break;case"multiple":ae=$;default:p.hasOwnProperty(b)||qt(o,l,b,null,p,$)}for(v in p)if(b=p[v],$=d[v],p.hasOwnProperty(v)&&(b!=null||$!=null))switch(v){case"value":ne=b;break;case"defaultValue":M=b;break;case"multiple":I=b;default:b!==$&&qt(o,l,v,b,p,$)}l=M,d=I,p=ae,ne!=null?qs(o,!!d,ne,!1):!!p!=!!d&&(l!=null?qs(o,!!d,l,!0):qs(o,!!d,d?[]:"",!1));return;case"textarea":ae=ne=null;for(M in d)if(v=d[M],d.hasOwnProperty(M)&&v!=null&&!p.hasOwnProperty(M))switch(M){case"value":break;case"children":break;default:qt(o,l,M,null,p,v)}for(I in p)if(v=p[I],b=d[I],p.hasOwnProperty(I)&&(v!=null||b!=null))switch(I){case"value":ne=v;break;case"defaultValue":ae=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==b&&qt(o,l,I,v,p,b)}ll(o,ne,ae);return;case"option":for(var Ie in d)ne=d[Ie],d.hasOwnProperty(Ie)&&ne!=null&&!p.hasOwnProperty(Ie)&&(Ie==="selected"?o.selected=!1:qt(o,l,Ie,null,p,ne));for($ in p)ne=p[$],ae=d[$],p.hasOwnProperty($)&&ne!==ae&&(ne!=null||ae!=null)&&($==="selected"?o.selected=ne&&typeof ne!="function"&&typeof ne!="symbol":qt(o,l,$,ne,p,ae));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var $e in d)ne=d[$e],d.hasOwnProperty($e)&&ne!=null&&!p.hasOwnProperty($e)&&qt(o,l,$e,null,p,ne);for(te in p)if(ne=p[te],ae=d[te],p.hasOwnProperty(te)&&ne!==ae&&(ne!=null||ae!=null))switch(te){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,l));break;default:qt(o,l,te,ne,p,ae)}return;default:if(Oe(l)){for(var Vt in d)ne=d[Vt],d.hasOwnProperty(Vt)&&ne!==void 0&&!p.hasOwnProperty(Vt)&&bS(o,l,Vt,void 0,p,ne);for(ie in p)ne=p[ie],ae=d[ie],!p.hasOwnProperty(ie)||ne===ae||ne===void 0&&ae===void 0||bS(o,l,ie,ne,p,ae);return}}for(var Y in d)ne=d[Y],d.hasOwnProperty(Y)&&ne!=null&&!p.hasOwnProperty(Y)&&qt(o,l,Y,null,p,ne);for(ue in p)ne=p[ue],ae=d[ue],!p.hasOwnProperty(ue)||ne===ae||ne==null&&ae==null||qt(o,l,ue,ne,p,ae)}function W4(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function LW(){if(typeof performance.getEntriesByType=="function"){for(var o=0,l=0,d=performance.getEntriesByType("resource"),p=0;p<d.length;p++){var v=d[p],b=v.transferSize,I=v.initiatorType,M=v.duration;if(b&&M&&W4(I)){for(I=0,M=v.responseEnd,p+=1;p<d.length;p++){var $=d[p],te=$.startTime;if(te>M)break;var ie=$.transferSize,ue=$.initiatorType;ie&&W4(ue)&&($=$.responseEnd,I+=ie*($<M?1:(M-te)/($-te)))}if(--p,l+=8*(b+I)/(v.duration/1e3),o++,10<o)break}}if(0<o)return l/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var SS=null,wS=null;function Bm(o){return o.nodeType===9?o:o.ownerDocument}function G4(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function K4(o,l){if(o===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&l==="foreignObject"?0:o}function xS(o,l){return o==="textarea"||o==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var CS=null;function UW(){var o=window.event;return o&&o.type==="popstate"?o===CS?!1:(CS=o,!0):(CS=null,!1)}var Y4=typeof setTimeout=="function"?setTimeout:void 0,jW=typeof clearTimeout=="function"?clearTimeout:void 0,Z4=typeof Promise=="function"?Promise:void 0,zW=typeof queueMicrotask=="function"?queueMicrotask:typeof Z4<"u"?function(o){return Z4.resolve(null).then(o).catch(FW)}:Y4;function FW(o){setTimeout(function(){throw o})}function pi(o){return o==="head"}function X4(o,l){var d=l,p=0;do{var v=d.nextSibling;if(o.removeChild(d),v&&v.nodeType===8)if(d=v.data,d==="/$"||d==="/&"){if(p===0){o.removeChild(v),fc(l);return}p--}else if(d==="$"||d==="$?"||d==="$~"||d==="$!"||d==="&")p++;else if(d==="html")Of(o.ownerDocument.documentElement);else if(d==="head"){d=o.ownerDocument.head,Of(d);for(var b=d.firstChild;b;){var I=b.nextSibling,M=b.nodeName;b[Wo]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&b.rel.toLowerCase()==="stylesheet"||d.removeChild(b),b=I}}else d==="body"&&Of(o.ownerDocument.body);d=v}while(d);fc(l)}function Q4(o,l){var d=o;o=0;do{var p=d.nextSibling;if(d.nodeType===1?l?(d._stashedDisplay=d.style.display,d.style.display="none"):(d.style.display=d._stashedDisplay||"",d.getAttribute("style")===""&&d.removeAttribute("style")):d.nodeType===3&&(l?(d._stashedText=d.nodeValue,d.nodeValue=""):d.nodeValue=d._stashedText||""),p&&p.nodeType===8)if(d=p.data,d==="/$"){if(o===0)break;o--}else d!=="$"&&d!=="$?"&&d!=="$~"&&d!=="$!"||o++;d=p}while(d)}function ES(o){var l=o.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var d=l;switch(l=l.nextSibling,d.nodeName){case"HTML":case"HEAD":case"BODY":ES(d),Pu(d);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(d.rel.toLowerCase()==="stylesheet")continue}o.removeChild(d)}}function $W(o,l,d,p){for(;o.nodeType===1;){var v=d;if(o.nodeName.toLowerCase()!==l.toLowerCase()){if(!p&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(p){if(!o[Wo])switch(l){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(b=o.getAttribute("rel"),b==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(b!==v.rel||o.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||o.getAttribute("title")!==(v.title==null?null:v.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(b=o.getAttribute("src"),(b!==(v.src==null?null:v.src)||o.getAttribute("type")!==(v.type==null?null:v.type)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&b&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(l==="input"&&o.type==="hidden"){var b=v.name==null?null:""+v.name;if(v.type==="hidden"&&o.getAttribute("name")===b)return o}else return o;if(o=Ca(o.nextSibling),o===null)break}return null}function BW(o,l,d){if(l==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!d||(o=Ca(o.nextSibling),o===null))return null;return o}function J4(o,l){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!l||(o=Ca(o.nextSibling),o===null))return null;return o}function _S(o){return o.data==="$?"||o.data==="$~"}function kS(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function HW(o,l){var d=o.ownerDocument;if(o.data==="$~")o._reactRetry=l;else if(o.data!=="$?"||d.readyState!=="loading")l();else{var p=function(){l(),d.removeEventListener("DOMContentLoaded",p)};d.addEventListener("DOMContentLoaded",p),o._reactRetry=p}}function Ca(o){for(;o!=null;o=o.nextSibling){var l=o.nodeType;if(l===1||l===3)break;if(l===8){if(l=o.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return o}var AS=null;function e5(o){o=o.nextSibling;for(var l=0;o;){if(o.nodeType===8){var d=o.data;if(d==="/$"||d==="/&"){if(l===0)return Ca(o.nextSibling);l--}else d!=="$"&&d!=="$!"&&d!=="$?"&&d!=="$~"&&d!=="&"||l++}o=o.nextSibling}return null}function t5(o){o=o.previousSibling;for(var l=0;o;){if(o.nodeType===8){var d=o.data;if(d==="$"||d==="$!"||d==="$?"||d==="$~"||d==="&"){if(l===0)return o;l--}else d!=="/$"&&d!=="/&"||l++}o=o.previousSibling}return null}function n5(o,l,d){switch(l=Bm(d),o){case"html":if(o=l.documentElement,!o)throw Error(r(452));return o;case"head":if(o=l.head,!o)throw Error(r(453));return o;case"body":if(o=l.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function Of(o){for(var l=o.attributes;l.length;)o.removeAttributeNode(l[0]);Pu(o)}var Ea=new Map,r5=new Set;function Hm(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var oo=X.d;X.d={f:qW,r:VW,D:WW,C:GW,L:KW,m:YW,X:XW,S:ZW,M:QW};function qW(){var o=oo.f(),l=Pm();return o||l}function VW(o){var l=Ko(o);l!==null&&l.tag===5&&l.type==="form"?ST(l):oo.r(o)}var uc=typeof document>"u"?null:document;function a5(o,l,d){var p=uc;if(p&&typeof l=="string"&&l){var v=Lr(l);v='link[rel="'+o+'"][href="'+v+'"]',typeof d=="string"&&(v+='[crossorigin="'+d+'"]'),r5.has(v)||(r5.add(v),o={rel:o,crossOrigin:d,href:l},p.querySelector(v)===null&&(l=p.createElement("link"),ar(l,"link",o),Xt(l),p.head.appendChild(l)))}}function WW(o){oo.D(o),a5("dns-prefetch",o,null)}function GW(o,l){oo.C(o,l),a5("preconnect",o,l)}function KW(o,l,d){oo.L(o,l,d);var p=uc;if(p&&o&&l){var v='link[rel="preload"][as="'+Lr(l)+'"]';l==="image"&&d&&d.imageSrcSet?(v+='[imagesrcset="'+Lr(d.imageSrcSet)+'"]',typeof d.imageSizes=="string"&&(v+='[imagesizes="'+Lr(d.imageSizes)+'"]')):v+='[href="'+Lr(o)+'"]';var b=v;switch(l){case"style":b=cc(o);break;case"script":b=dc(o)}Ea.has(b)||(o=m({rel:"preload",href:l==="image"&&d&&d.imageSrcSet?void 0:o,as:l},d),Ea.set(b,o),p.querySelector(v)!==null||l==="style"&&p.querySelector(Nf(b))||l==="script"&&p.querySelector(Mf(b))||(l=p.createElement("link"),ar(l,"link",o),Xt(l),p.head.appendChild(l)))}}function YW(o,l){oo.m(o,l);var d=uc;if(d&&o){var p=l&&typeof l.as=="string"?l.as:"script",v='link[rel="modulepreload"][as="'+Lr(p)+'"][href="'+Lr(o)+'"]',b=v;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=dc(o)}if(!Ea.has(b)&&(o=m({rel:"modulepreload",href:o},l),Ea.set(b,o),d.querySelector(v)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(d.querySelector(Mf(b)))return}p=d.createElement("link"),ar(p,"link",o),Xt(p),d.head.appendChild(p)}}}function ZW(o,l,d){oo.S(o,l,d);var p=uc;if(p&&o){var v=Yo(p).hoistableStyles,b=cc(o);l=l||"default";var I=v.get(b);if(!I){var M={loading:0,preload:null};if(I=p.querySelector(Nf(b)))M.loading=5;else{o=m({rel:"stylesheet",href:o,"data-precedence":l},d),(d=Ea.get(b))&&IS(o,d);var $=I=p.createElement("link");Xt($),ar($,"link",o),$._p=new Promise(function(te,ie){$.onload=te,$.onerror=ie}),$.addEventListener("load",function(){M.loading|=1}),$.addEventListener("error",function(){M.loading|=2}),M.loading|=4,qm(I,l,p)}I={type:"stylesheet",instance:I,count:1,state:M},v.set(b,I)}}}function XW(o,l){oo.X(o,l);var d=uc;if(d&&o){var p=Yo(d).hoistableScripts,v=dc(o),b=p.get(v);b||(b=d.querySelector(Mf(v)),b||(o=m({src:o,async:!0},l),(l=Ea.get(v))&&RS(o,l),b=d.createElement("script"),Xt(b),ar(b,"link",o),d.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},p.set(v,b))}}function QW(o,l){oo.M(o,l);var d=uc;if(d&&o){var p=Yo(d).hoistableScripts,v=dc(o),b=p.get(v);b||(b=d.querySelector(Mf(v)),b||(o=m({src:o,async:!0,type:"module"},l),(l=Ea.get(v))&&RS(o,l),b=d.createElement("script"),Xt(b),ar(b,"link",o),d.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},p.set(v,b))}}function s5(o,l,d,p){var v=(v=pe.current)?Hm(v):null;if(!v)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof d.precedence=="string"&&typeof d.href=="string"?(l=cc(d.href),d=Yo(v).hoistableStyles,p=d.get(l),p||(p={type:"style",instance:null,count:0,state:null},d.set(l,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(d.rel==="stylesheet"&&typeof d.href=="string"&&typeof d.precedence=="string"){o=cc(d.href);var b=Yo(v).hoistableStyles,I=b.get(o);if(I||(v=v.ownerDocument||v,I={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(o,I),(b=v.querySelector(Nf(o)))&&!b._p&&(I.instance=b,I.state.loading=5),Ea.has(o)||(d={rel:"preload",as:"style",href:d.href,crossOrigin:d.crossOrigin,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy},Ea.set(o,d),b||JW(v,o,d,I.state))),l&&p===null)throw Error(r(528,""));return I}if(l&&p!==null)throw Error(r(529,""));return null;case"script":return l=d.async,d=d.src,typeof d=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=dc(d),d=Yo(v).hoistableScripts,p=d.get(l),p||(p={type:"script",instance:null,count:0,state:null},d.set(l,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function cc(o){return'href="'+Lr(o)+'"'}function Nf(o){return'link[rel="stylesheet"]['+o+"]"}function o5(o){return m({},o,{"data-precedence":o.precedence,precedence:null})}function JW(o,l,d,p){o.querySelector('link[rel="preload"][as="style"]['+l+"]")?p.loading=1:(l=o.createElement("link"),p.preload=l,l.addEventListener("load",function(){return p.loading|=1}),l.addEventListener("error",function(){return p.loading|=2}),ar(l,"link",d),Xt(l),o.head.appendChild(l))}function dc(o){return'[src="'+Lr(o)+'"]'}function Mf(o){return"script[async]"+o}function i5(o,l,d){if(l.count++,l.instance===null)switch(l.type){case"style":var p=o.querySelector('style[data-href~="'+Lr(d.href)+'"]');if(p)return l.instance=p,Xt(p),p;var v=m({},d,{"data-href":d.href,"data-precedence":d.precedence,href:null,precedence:null});return p=(o.ownerDocument||o).createElement("style"),Xt(p),ar(p,"style",v),qm(p,d.precedence,o),l.instance=p;case"stylesheet":v=cc(d.href);var b=o.querySelector(Nf(v));if(b)return l.state.loading|=4,l.instance=b,Xt(b),b;p=o5(d),(v=Ea.get(v))&&IS(p,v),b=(o.ownerDocument||o).createElement("link"),Xt(b);var I=b;return I._p=new Promise(function(M,$){I.onload=M,I.onerror=$}),ar(b,"link",p),l.state.loading|=4,qm(b,d.precedence,o),l.instance=b;case"script":return b=dc(d.src),(v=o.querySelector(Mf(b)))?(l.instance=v,Xt(v),v):(p=d,(v=Ea.get(b))&&(p=m({},d),RS(p,v)),o=o.ownerDocument||o,v=o.createElement("script"),Xt(v),ar(v,"link",p),o.head.appendChild(v),l.instance=v);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(p=l.instance,l.state.loading|=4,qm(p,d.precedence,o));return l.instance}function qm(o,l,d){for(var p=d.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=p.length?p[p.length-1]:null,b=v,I=0;I<p.length;I++){var M=p[I];if(M.dataset.precedence===l)b=M;else if(b!==v)break}b?b.parentNode.insertBefore(o,b.nextSibling):(l=d.nodeType===9?d.head:d,l.insertBefore(o,l.firstChild))}function IS(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.title==null&&(o.title=l.title)}function RS(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.integrity==null&&(o.integrity=l.integrity)}var Vm=null;function l5(o,l,d){if(Vm===null){var p=new Map,v=Vm=new Map;v.set(d,p)}else v=Vm,p=v.get(d),p||(p=new Map,v.set(d,p));if(p.has(o))return p;for(p.set(o,null),d=d.getElementsByTagName(o),v=0;v<d.length;v++){var b=d[v];if(!(b[Wo]||b[Ln]||o==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var I=b.getAttribute(l)||"";I=o+I;var M=p.get(I);M?M.push(b):p.set(I,[b])}}return p}function u5(o,l,d){o=o.ownerDocument||o,o.head.insertBefore(d,l==="title"?o.querySelector("head > title"):null)}function eG(o,l,d){if(d===1||l.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;return l.rel==="stylesheet"?(o=l.disabled,typeof l.precedence=="string"&&o==null):!0;case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function c5(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function tG(o,l,d,p){if(d.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(d.state.loading&4)===0){if(d.instance===null){var v=cc(p.href),b=l.querySelector(Nf(v));if(b){l=b._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(o.count++,o=Wm.bind(o),l.then(o,o)),d.state.loading|=4,d.instance=b,Xt(b);return}b=l.ownerDocument||l,p=o5(p),(v=Ea.get(v))&&IS(p,v),b=b.createElement("link"),Xt(b);var I=b;I._p=new Promise(function(M,$){I.onload=M,I.onerror=$}),ar(b,"link",p),d.instance=b}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(d,l),(l=d.state.preload)&&(d.state.loading&3)===0&&(o.count++,d=Wm.bind(o),l.addEventListener("load",d),l.addEventListener("error",d))}}var TS=0;function nG(o,l){return o.stylesheets&&o.count===0&&Km(o,o.stylesheets),0<o.count||0<o.imgCount?function(d){var p=setTimeout(function(){if(o.stylesheets&&Km(o,o.stylesheets),o.unsuspend){var b=o.unsuspend;o.unsuspend=null,b()}},6e4+l);0<o.imgBytes&&TS===0&&(TS=62500*LW());var v=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&Km(o,o.stylesheets),o.unsuspend)){var b=o.unsuspend;o.unsuspend=null,b()}},(o.imgBytes>TS?50:800)+l);return o.unsuspend=d,function(){o.unsuspend=null,clearTimeout(p),clearTimeout(v)}}:null}function Wm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Km(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Gm=null;function Km(o,l){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Gm=new Map,l.forEach(rG,o),Gm=null,Wm.call(o))}function rG(o,l){if(!(l.state.loading&4)){var d=Gm.get(o);if(d)var p=d.get(null);else{d=new Map,Gm.set(o,d);for(var v=o.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<v.length;b++){var I=v[b];(I.nodeName==="LINK"||I.getAttribute("media")!=="not all")&&(d.set(I.dataset.precedence,I),p=I)}p&&d.set(null,p)}v=l.instance,I=v.getAttribute("data-precedence"),b=d.get(I)||p,b===p&&d.set(null,v),d.set(I,v),this.count++,p=Wm.bind(this),v.addEventListener("load",p),v.addEventListener("error",p),b?b.parentNode.insertBefore(v,b.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(v,o.firstChild)),l.state.loading|=4}}var Pf={$$typeof:A,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function aG(o,l,d,p,v,b,I,M,$){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Pr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pr(0),this.hiddenUpdates=Pr(null),this.identifierPrefix=p,this.onUncaughtError=v,this.onCaughtError=b,this.onRecoverableError=I,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=$,this.incompleteTransitions=new Map}function d5(o,l,d,p,v,b,I,M,$,te,ie,ue){return o=new aG(o,l,d,I,$,te,ie,ue,M),l=1,b===!0&&(l|=24),b=ea(3,null,null,l),o.current=b,b.stateNode=o,l=ub(),l.refCount++,o.pooledCache=l,l.refCount++,b.memoizedState={element:p,isDehydrated:d,cache:l},hb(b),o}function f5(o){return o?(o=Bu,o):Bu}function h5(o,l,d,p,v,b){v=f5(v),p.context===null?p.context=v:p.pendingContext=v,p=ri(l),p.payload={element:d},b=b===void 0?null:b,b!==null&&(p.callback=b),d=ai(o,p,l),d!==null&&(Br(d,o,l),ff(d,o,l))}function p5(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var d=o.retryLane;o.retryLane=d!==0&&d<l?d:l}}function OS(o,l){p5(o,l),(o=o.alternate)&&p5(o,l)}function m5(o){if(o.tag===13||o.tag===31){var l=fl(o,67108864);l!==null&&Br(l,o,67108864),OS(o,67108864)}}function g5(o){if(o.tag===13||o.tag===31){var l=sa();l=al(l);var d=fl(o,l);d!==null&&Br(d,o,l),OS(o,l)}}var Ym=!0;function sG(o,l,d,p){var v=B.T;B.T=null;var b=X.p;try{X.p=2,NS(o,l,d,p)}finally{X.p=b,B.T=v}}function oG(o,l,d,p){var v=B.T;B.T=null;var b=X.p;try{X.p=8,NS(o,l,d,p)}finally{X.p=b,B.T=v}}function NS(o,l,d,p){if(Ym){var v=MS(p);if(v===null)yS(o,l,p,Zm,d),y5(o,p);else if(lG(v,o,l,d,p))p.stopPropagation();else if(y5(o,p),l&4&&-1<iG.indexOf(o)){for(;v!==null;){var b=Ko(v);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var I=ls(b.pendingLanes);if(I!==0){var M=b;for(M.pendingLanes|=2,M.entangledLanes|=2;I;){var $=1<<31-pr(I);M.entanglements[1]|=$,I&=~$}ms(b),(Nt&6)===0&&(Nm=nn()+500,If(0))}}break;case 31:case 13:M=fl(b,2),M!==null&&Br(M,b,2),Pm(),OS(b,2)}if(b=MS(p),b===null&&yS(o,l,p,Zm,d),b===v)break;v=b}v!==null&&p.stopPropagation()}else yS(o,l,p,null,d)}}function MS(o){return o=Vn(o),PS(o)}var Zm=null;function PS(o){if(Zm=null,o=Go(o),o!==null){var l=s(o);if(l===null)o=null;else{var d=l.tag;if(d===13){if(o=i(l),o!==null)return o;o=null}else if(d===31){if(o=u(l),o!==null)return o;o=null}else if(d===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;o=null}else l!==o&&(o=null)}}return Zm=o,null}function v5(o){switch(o){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(pt()){case rn:return 2;case Mr:return 8;case La:case _u:return 32;case ku:return 268435456;default:return 32}default:return 32}}var DS=!1,mi=null,gi=null,vi=null,Df=new Map,Lf=new Map,yi=[],iG="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".split(" ");function y5(o,l){switch(o){case"focusin":case"focusout":mi=null;break;case"dragenter":case"dragleave":gi=null;break;case"mouseover":case"mouseout":vi=null;break;case"pointerover":case"pointerout":Df.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lf.delete(l.pointerId)}}function Uf(o,l,d,p,v,b){return o===null||o.nativeEvent!==b?(o={blockedOn:l,domEventName:d,eventSystemFlags:p,nativeEvent:b,targetContainers:[v]},l!==null&&(l=Ko(l),l!==null&&m5(l)),o):(o.eventSystemFlags|=p,l=o.targetContainers,v!==null&&l.indexOf(v)===-1&&l.push(v),o)}function lG(o,l,d,p,v){switch(l){case"focusin":return mi=Uf(mi,o,l,d,p,v),!0;case"dragenter":return gi=Uf(gi,o,l,d,p,v),!0;case"mouseover":return vi=Uf(vi,o,l,d,p,v),!0;case"pointerover":var b=v.pointerId;return Df.set(b,Uf(Df.get(b)||null,o,l,d,p,v)),!0;case"gotpointercapture":return b=v.pointerId,Lf.set(b,Uf(Lf.get(b)||null,o,l,d,p,v)),!0}return!1}function b5(o){var l=Go(o.target);if(l!==null){var d=s(l);if(d!==null){if(l=d.tag,l===13){if(l=i(d),l!==null){o.blockedOn=l,qp(o.priority,function(){g5(d)});return}}else if(l===31){if(l=u(d),l!==null){o.blockedOn=l,qp(o.priority,function(){g5(d)});return}}else if(l===3&&d.stateNode.current.memoizedState.isDehydrated){o.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Xm(o){if(o.blockedOn!==null)return!1;for(var l=o.targetContainers;0<l.length;){var d=MS(o.nativeEvent);if(d===null){d=o.nativeEvent;var p=new d.constructor(d.type,d);qn=p,d.target.dispatchEvent(p),qn=null}else return l=Ko(d),l!==null&&m5(l),o.blockedOn=d,!1;l.shift()}return!0}function S5(o,l,d){Xm(o)&&d.delete(l)}function uG(){DS=!1,mi!==null&&Xm(mi)&&(mi=null),gi!==null&&Xm(gi)&&(gi=null),vi!==null&&Xm(vi)&&(vi=null),Df.forEach(S5),Lf.forEach(S5)}function Qm(o,l){o.blockedOn===l&&(o.blockedOn=null,DS||(DS=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,uG)))}var Jm=null;function w5(o){Jm!==o&&(Jm=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Jm===o&&(Jm=null);for(var l=0;l<o.length;l+=3){var d=o[l],p=o[l+1],v=o[l+2];if(typeof p!="function"){if(PS(p||d)===null)continue;break}var b=Ko(d);b!==null&&(o.splice(l,3),l-=3,Mb(b,{pending:!0,data:v,method:d.method,action:p},p,v))}}))}function fc(o){function l($){return Qm($,o)}mi!==null&&Qm(mi,o),gi!==null&&Qm(gi,o),vi!==null&&Qm(vi,o),Df.forEach(l),Lf.forEach(l);for(var d=0;d<yi.length;d++){var p=yi[d];p.blockedOn===o&&(p.blockedOn=null)}for(;0<yi.length&&(d=yi[0],d.blockedOn===null);)b5(d),d.blockedOn===null&&yi.shift();if(d=(o.ownerDocument||o).$$reactFormReplay,d!=null)for(p=0;p<d.length;p+=3){var v=d[p],b=d[p+1],I=v[mr]||null;if(typeof b=="function")I||w5(d);else if(I){var M=null;if(b&&b.hasAttribute("formAction")){if(v=b,I=b[mr]||null)M=I.formAction;else if(PS(v)!==null)continue}else M=I.action;typeof M=="function"?d[p+1]=M:(d.splice(p,3),p-=3),w5(d)}}}function x5(){function o(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(I){return v=I})},focusReset:"manual",scroll:"manual"})}function l(){v!==null&&(v(),v=null),p||setTimeout(d,20)}function d(){if(!p&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,v=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(d,100),function(){p=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),v!==null&&(v(),v=null)}}}function LS(o){this._internalRoot=o}eg.prototype.render=LS.prototype.render=function(o){var l=this._internalRoot;if(l===null)throw Error(r(409));var d=l.current,p=sa();h5(d,p,o,l,null,null)},eg.prototype.unmount=LS.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var l=o.containerInfo;h5(o.current,2,null,o,null,null),Pm(),l[Dt]=null}};function eg(o){this._internalRoot=o}eg.prototype.unstable_scheduleHydration=function(o){if(o){var l=Nu();o={blockedOn:null,target:o,priority:l};for(var d=0;d<yi.length&&l!==0&&l<yi[d].priority;d++);yi.splice(d,0,o),d===0&&b5(o)}};var C5=t.version;if(C5!=="19.2.7")throw Error(r(527,C5,"19.2.7"));X.findDOMNode=function(o){var l=o._reactInternals;if(l===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=f(l),o=o!==null?h(o):null,o=o===null?null:o.stateNode,o};var cG={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tg.isDisabled&&tg.supportsFiber)try{is=tg.inject(cG),hr=tg}catch{}}return ah.createRoot=function(o,l){if(!a(o))throw Error(r(299));var d=!1,p="",v=TT,b=OT,I=NT;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(p=l.identifierPrefix),l.onUncaughtError!==void 0&&(v=l.onUncaughtError),l.onCaughtError!==void 0&&(b=l.onCaughtError),l.onRecoverableError!==void 0&&(I=l.onRecoverableError)),l=d5(o,1,!1,null,null,d,p,null,v,b,I,x5),o[Dt]=l.current,vS(o),new LS(l)},ah.hydrateRoot=function(o,l,d){if(!a(o))throw Error(r(299));var p=!1,v="",b=TT,I=OT,M=NT,$=null;return d!=null&&(d.unstable_strictMode===!0&&(p=!0),d.identifierPrefix!==void 0&&(v=d.identifierPrefix),d.onUncaughtError!==void 0&&(b=d.onUncaughtError),d.onCaughtError!==void 0&&(I=d.onCaughtError),d.onRecoverableError!==void 0&&(M=d.onRecoverableError),d.formState!==void 0&&($=d.formState)),l=d5(o,1,!0,l,d??null,p,v,$,b,I,M,x5),l.context=f5(null),d=l.current,p=sa(),p=al(p),v=ri(p),v.callback=null,ai(d,v,p),d=p,l.current.lanes=d,ma(l,d),ms(l),o[Dt]=l.current,vS(o),new eg(l)},ah.version="19.2.7",ah}var I7;function cbe(){if(I7)return tE.exports;I7=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),tE.exports=ube(),tE.exports}var dbe=cbe();const fbe={bodySerializer:e=>JSON.stringify(e,(t,n)=>typeof n=="bigint"?n.toString():n)};function hbe({onRequest:e,onSseError:t,onSseEvent:n,responseTransformer:r,responseValidator:a,sseDefaultRetryDelay:s,sseMaxRetryAttempts:i,sseMaxRetryDelay:u,sseSleepFn:c,url:f,...h}){let m;const g=c??(w=>new Promise(x=>setTimeout(x,w)));return{stream:async function*(){let w=s??3e3,x=0;const _=h.signal??new AbortController().signal;for(;!_.aborted;){x++;const k=h.headers instanceof Headers?h.headers:new Headers(h.headers);m!==void 0&&k.set("Last-Event-ID",m);try{const A={redirect:"follow",...h,body:h.serializedBody,headers:k,signal:_};let R=new Request(f,A);e&&(R=await e(f,A));const O=await(h.fetch??globalThis.fetch)(R);if(!O.ok)throw new Error(`SSE failed: ${O.status} ${O.statusText}`);if(!O.body)throw new Error("No body in SSE response");const T=O.body.pipeThrough(new TextDecoderStream).getReader();let P="";const L=()=>{try{T.cancel()}catch{}};_.addEventListener("abort",L);try{for(;;){const{done:q,value:j}=await T.read();if(q)break;P+=j,P=P.replace(/\r\n?/g,`
225
+ `);const U=P.split(`
226
+
227
+ `);P=U.pop()??"";for(const H of U){const Z=H.split(`
228
+ `),se=[];let B;for(const de of Z)if(de.startsWith("data:"))se.push(de.replace(/^data:\s*/,""));else if(de.startsWith("event:"))B=de.replace(/^event:\s*/,"");else if(de.startsWith("id:"))m=de.replace(/^id:\s*/,"");else if(de.startsWith("retry:")){const we=Number.parseInt(de.replace(/^retry:\s*/,""),10);Number.isNaN(we)||(w=we)}let X,re=!1;if(se.length){const de=se.join(`
229
+ `);try{X=JSON.parse(de),re=!0}catch{X=de}}re&&(a&&await a(X),r&&(X=await r(X))),n?.({data:X,event:B,id:m,retry:w}),se.length&&(yield X)}}}finally{_.removeEventListener("abort",L),T.releaseLock()}break}catch(A){if(t?.(A),i!==void 0&&x>=i)break;const R=Math.min(w*2**(x-1),u??3e4);await g(R)}}}()}}const pbe=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},mbe=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},gbe=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},w$=({allowReserved:e,explode:t,name:n,style:r,value:a})=>{if(!t){const u=(e?a:a.map(c=>encodeURIComponent(c))).join(mbe(r));switch(r){case"label":return`.${u}`;case"matrix":return`;${n}=${u}`;case"simple":return u;default:return`${n}=${u}`}}const s=pbe(r),i=a.map(u=>r==="label"||r==="simple"?e?u:encodeURIComponent(u):ny({allowReserved:e,name:n,value:u})).join(s);return r==="label"||r==="matrix"?s+i:i},ny=({allowReserved:e,name:t,value:n})=>{if(n==null)return"";if(typeof n=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?n:encodeURIComponent(n)}`},x$=({allowReserved:e,explode:t,name:n,style:r,value:a,valueOnly:s})=>{if(a instanceof Date)return s?a.toISOString():`${n}=${a.toISOString()}`;if(r!=="deepObject"&&!t){let c=[];Object.entries(a).forEach(([h,m])=>{c=[...c,h,e?m:encodeURIComponent(m)]});const f=c.join(",");switch(r){case"form":return`${n}=${f}`;case"label":return`.${f}`;case"matrix":return`;${n}=${f}`;default:return f}}const i=gbe(r),u=Object.entries(a).map(([c,f])=>ny({allowReserved:e,name:r==="deepObject"?`${n}[${c}]`:c,value:f})).join(i);return r==="label"||r==="matrix"?i+u:u},vbe=/\{[^{}]+\}/g,ybe=({path:e,url:t})=>{let n=t;const r=t.match(vbe);if(r)for(const a of r){let s=!1,i=a.substring(1,a.length-1),u="simple";i.endsWith("*")&&(s=!0,i=i.substring(0,i.length-1)),i.startsWith(".")?(i=i.substring(1),u="label"):i.startsWith(";")&&(i=i.substring(1),u="matrix");const c=e[i];if(c==null)continue;if(Array.isArray(c)){n=n.replace(a,w$({explode:s,name:i,style:u,value:c}));continue}if(typeof c=="object"){n=n.replace(a,x$({explode:s,name:i,style:u,value:c,valueOnly:!0}));continue}if(u==="matrix"){n=n.replace(a,`;${ny({name:i,value:c})}`);continue}const f=encodeURIComponent(u==="label"?`.${c}`:c);n=n.replace(a,f)}return n},bbe=({baseUrl:e,path:t,query:n,querySerializer:r,url:a})=>{const s=a.startsWith("/")?a:`/${a}`;let i=(e??"")+s;t&&(i=ybe({path:t,url:i}));let u=n?r(n):"";return u.startsWith("?")&&(u=u.substring(1)),u&&(i+=`?${u}`),i};function R7(e){const t=e.body!==void 0;if(t&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(t)return e.body}const Sbe=async(e,t)=>{const n=typeof t=="function"?await t(e):t;if(n)return e.scheme==="bearer"?`Bearer ${n}`:e.scheme==="basic"?`Basic ${btoa(n)}`:n},C$=({parameters:e={},...t}={})=>r=>{const a=[];if(r&&typeof r=="object")for(const s in r){const i=r[s];if(i==null)continue;const u=e[s]||t;if(Array.isArray(i)){const c=w$({allowReserved:u.allowReserved,explode:!0,name:s,style:"form",value:i,...u.array});c&&a.push(c)}else if(typeof i=="object"){const c=x$({allowReserved:u.allowReserved,explode:!0,name:s,style:"deepObject",value:i,...u.object});c&&a.push(c)}else{const c=ny({allowReserved:u.allowReserved,name:s,value:i});c&&a.push(c)}}return a.join("&")},wbe=e=>{if(!e)return"stream";const t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return"json";if(t==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(n=>t.startsWith(n)))return"blob";if(t.startsWith("text/"))return"text"}},xbe=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):!1;async function Cbe(e){for(const t of e.security??[]){if(xbe(e,t.name))continue;const n=await Sbe(t,e.auth);if(!n)continue;const r=t.name??"Authorization";switch(t.in){case"query":e.query||(e.query={}),e.query[r]=n;break;case"cookie":e.headers.append("Cookie",`${r}=${n}`);break;default:e.headers.set(r,n);break}}}const T7=e=>bbe({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:C$(e.querySerializer),url:e.url}),O7=(e,t)=>{const n={...e,...t};return n.baseUrl?.endsWith("/")&&(n.baseUrl=n.baseUrl.substring(0,n.baseUrl.length-1)),n.headers=E$(e.headers,t.headers),n},Ebe=e=>{const t=[];return e.forEach((n,r)=>{t.push([r,n])}),t},E$=(...e)=>{const t=new Headers;for(const n of e){if(!n)continue;const r=n instanceof Headers?Ebe(n):Object.entries(n);for(const[a,s]of r)if(s===null)t.delete(a);else if(Array.isArray(s))for(const i of s)t.append(a,i);else s!==void 0&&t.set(a,typeof s=="object"?JSON.stringify(s):s)}return t};class aE{fns=[];clear(){this.fns=[]}eject(t){const n=this.getInterceptorIndex(t);this.fns[n]&&(this.fns[n]=null)}exists(t){const n=this.getInterceptorIndex(t);return!!this.fns[n]}getInterceptorIndex(t){return typeof t=="number"?this.fns[t]?t:-1:this.fns.indexOf(t)}update(t,n){const r=this.getInterceptorIndex(t);return this.fns[r]?(this.fns[r]=n,t):!1}use(t){return this.fns.push(t),this.fns.length-1}}const _be=()=>({error:new aE,request:new aE,response:new aE}),kbe=C$({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Abe={"Content-Type":"application/json"},_$=(e={})=>({...fbe,headers:Abe,parseAs:"auto",querySerializer:kbe,...e}),Ibe=(e={})=>{let t=O7(_$(),e);const n=()=>({...t}),r=h=>(t=O7(t,h),n()),a=_be(),s=async h=>{const m={...t,...h,fetch:h.fetch??t.fetch??globalThis.fetch,headers:E$(t.headers,h.headers),serializedBody:void 0};m.security&&await Cbe(m),m.requestValidator&&await m.requestValidator(m),m.body!==void 0&&m.bodySerializer&&(m.serializedBody=m.bodySerializer(m.body)),(m.body===void 0||m.serializedBody==="")&&m.headers.delete("Content-Type");const g=m,y=T7(g);return{opts:g,url:y}},i=async h=>{const m=h.throwOnError??t.throwOnError,g=h.responseStyle??t.responseStyle;let y,S;try{const{opts:w,url:x}=await s(h),_={redirect:"follow",...w,body:R7(w)};y=new Request(x,_);for(const O of a.request.fns)O&&(y=await O(y,w));const k=w.fetch;S=await k(y);for(const O of a.response.fns)O&&(S=await O(S,y,w));const A={request:y,response:S};if(S.ok){const O=(w.parseAs==="auto"?wbe(S.headers.get("Content-Type")):w.parseAs)??"json";if(S.status===204||S.headers.get("Content-Length")==="0"){let P;switch(O){case"arrayBuffer":case"blob":case"text":P=await S[O]();break;case"formData":P=new FormData;break;case"stream":P=S.body;break;default:P={};break}return w.responseStyle==="data"?P:{data:P,...A}}let T;switch(O){case"arrayBuffer":case"blob":case"formData":case"text":T=await S[O]();break;case"json":{const P=await S.text();T=P?JSON.parse(P):{};break}case"stream":return w.responseStyle==="data"?S.body:{data:S.body,...A}}return O==="json"&&(w.responseValidator&&await w.responseValidator(T),w.responseTransformer&&(T=await w.responseTransformer(T))),w.responseStyle==="data"?T:{data:T,...A}}const R=await S.text();let N;try{N=JSON.parse(R)}catch{}throw N??R}catch(w){let x=w;for(const _ of a.error.fns)_&&(x=await _(x,S,y,h));if(x=x||{},m)throw x;return g==="data"?void 0:{error:x,request:y,response:S}}},u=h=>m=>i({...m,method:h}),c=h=>async m=>{const{opts:g,url:y}=await s(m);return hbe({...g,body:g.body,method:h,onRequest:async(S,w)=>{let x=new Request(S,w);for(const _ of a.request.fns)_&&(x=await _(x,g));return x},serializedBody:R7(g),url:y})};return{buildUrl:h=>T7({...t,...h}),connect:u("CONNECT"),delete:u("DELETE"),get:u("GET"),getConfig:n,head:u("HEAD"),interceptors:a,options:u("OPTIONS"),patch:u("PATCH"),post:u("POST"),put:u("PUT"),request:i,setConfig:r,sse:{connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),head:c("HEAD"),options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),trace:c("TRACE")},trace:u("TRACE")}},Ae=Ibe(_$({baseUrl:"https://api.remit.example.com"}));let N7=!1;const Rbe=e=>{N7||(Ae.interceptors.request.use(async t=>{const n=await e.getToken();return n&&t.headers.set("Authorization",`Bearer ${n}`),t}),N7=!0)},Tbe=({children:e})=>C.jsx(C.Fragment,{children:e}),Obe={configure:()=>{},getToken:async()=>null,resetToken:()=>{},Shell:Tbe,Account:({fallback:e=null})=>C.jsx(C.Fragment,{children:e})},k$=E.createContext(Obe),Nbe=k$.Provider,CNe=()=>E.useContext(k$),Mbe=(e,t)=>{Lk(e,t.meta,"nobody")&&Vi(e)},Pbe=(e,t,n,r)=>{Lk(e,r.meta,"user")&&Vi(e)},G3=e=>new TextEncoder().encode(e),A$={},K3={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),A$[e]=t,K3[t]=e}function Dbe(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const r=e.slice(n,n+2).toLowerCase();if(r in K3)t[n/2]=K3[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return t}function Gl(e){let t="";for(let n=0;n<e.byteLength;n++)t+=A$[e[n]];return t}const ap=e=>e instanceof Uint8Array?e:typeof e=="string"?G3(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),Lbe=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";class To{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){const n=new To({...t,headers:{...t.headers}});return n.query&&(n.query=Ube(n.query)),n}static isInstance(t){if(!t)return!1;const n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"}clone(){return To.clone(this)}}function Ube(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}class sp{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"}}const M7=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},Kl=e=>encodeURIComponent(e).replace(/[!'()*]/g,jbe),jbe=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function WA(e){const t=[];for(let n of Object.keys(e).sort()){const r=e[n];if(n=Kl(n),Array.isArray(r))for(let a=0,s=r.length;a<s;a++)t.push(`${n}=${Kl(r[a])}`);else{let a=n;(r||typeof r=="string")&&(a+=`=${Kl(r)}`),t.push(a)}}return t.join("&")}const Ng="[aws-rum-web:unknown.unknown]";class Se{static configure(t){Se.debugEnabled=t}static getCallerInfo(){var t,n;try{const r=new Error().stack;if(!r)return Ng;const a=r.split(`
230
+ `);if(a.length<4)return Ng;const s=a[3];if(!s)return Ng;const i=s.match(/at (?:(.+?)\s+\()?/);if(i&&i.length>=2){const u=i[1].trim(),c=u.split(".");if(c.length>=2){const f=(t=c[c.length-2])!==null&&t!==void 0?t:"unknown",h=(n=c[c.length-1])!==null&&n!==void 0?n:"unknown";return`[aws-rum-web:${f}.${h}]`}return`[aws-rum-web:${u}]`}}catch{}return Ng}static info(t,...n){if(!Se.debugEnabled)return;const r=this.getCallerInfo();console.info(r,t,...n)}static debug(t,...n){if(!Se.debugEnabled)return;const r=this.getCallerInfo();console.debug(r,t,...n)}static warn(t,...n){if(!Se.debugEnabled)return;const r=this.getCallerInfo();console.warn(r,t,...n)}static error(t,...n){if(!Se.debugEnabled)return;const r=this.getCallerInfo();console.error(r,t,...n)}}Se.debugEnabled=!1;const P7=2048,D7=.2,zbe=()=>typeof CompressionStream<"u",Fbe=async e=>{const t=new Blob([e]).stream().pipeThrough(new CompressionStream("gzip"));return new Uint8Array(await new Response(t).arrayBuffer())},$be=async e=>{const t=e.length;if(Se.debug(`compressIfBeneficial called, payload size: ${t}B`),!zbe())return Se.debug("CompressionStream not supported, skipping compression"),{body:e,compressed:!1};if(t<P7)return Se.debug(`Payload size ${t}B below threshold ${P7}B, skipping compression`),{body:e,compressed:!1};const n=await Fbe(e),r=1-n.length/t;return r>=D7?(Se.debug(`Compressed ${t}B -> ${n.length}B (${(r*100).toFixed(1)}% reduction)`),{body:n,compressed:!0}):(Se.debug(`Compression ratio ${(r*100).toFixed(1)}% below threshold ${D7*100}%, skipping`),{body:e,compressed:!1})},Bbe="POST",Hbe="application/json",qbe="text/plain;charset=UTF-8",Vbe=64e3;class Wbe{constructor(t,n){this.sendFetch=async r=>{var a,s;const i=JSON.stringify(L7(r)),u=(s=(a=this.config.compressionStrategy)===null||a===void 0?void 0:a.enabled)!==null&&s!==void 0?s:!1,{body:c,compressed:f}=u?await $be(i):{body:i,compressed:!1},h=await this.getHttpRequestOptions(r,c,Hbe,f);let m=new To(h);return this.signing&&(m=await this.signing.sign(m)),this.config.fetchRequestHandler.handle(m)},this.sendBeacon=async r=>{const a=JSON.stringify(L7(r));if(a.length>Vbe)throw new Error("Payload too large for sendBeacon");const s=await this.getHttpRequestOptions(r,a,qbe,!1);let i=new To(s);return this.signing&&(i=await this.signing.presign(i)),this.config.beaconRequestHandler.handle(i)},this.getHttpRequestOptions=async(r,a,s,i)=>{const u=this.config.endpoint.pathname.replace(/\/$/,""),c=Object.assign({"content-type":s,host:this.config.endpoint.host},this.config.headers);i&&(c["Content-Encoding"]="gzip");const f={method:Bbe,protocol:this.config.endpoint.protocol,port:Number(this.config.endpoint.port)||void 0,headers:c,hostname:this.config.endpoint.hostname,path:`${u}/appmonitors/${r.AppMonitorDetails.id}`,body:a};return this.signing?Object.assign(Object.assign({},f),{headers:Object.assign(Object.assign({},f.headers),{"X-Amz-Content-Sha256":await this.signing.hashAndEncode(a)})}):f},this.config=t,this.signing=n}}const L7=e=>{const t=[];e.RumEvents.forEach(r=>t.push(Gbe(r)));let n={BatchId:e.BatchId,AppMonitorDetails:e.AppMonitorDetails,UserDetails:e.UserDetails,RumEvents:t};return e.SessionMetadata&&(n=Object.assign(Object.assign({},n),{SessionMetadata:e.SessionMetadata})),e.Alias&&(n=Object.assign(Object.assign({},n),{Alias:e.Alias})),n},Gbe=e=>({id:e.id,timestamp:Math.round(e.timestamp.getTime()/1e3),type:e.type,metadata:e.metadata,details:e.details});class Kbe{handle(t){const n=this.sendBeacon(t);return new Promise((r,a)=>{n?r({response:new sp({statusCode:200})}):a()})}updateHttpClientConfig(t,n){}httpHandlerConfigs(){return{}}sendBeacon(t){let n=t.path;if(t.query){const s=WA(t.query);s&&(n+=`?${s}`)}const{port:r}=t,a=`${t.protocol}//${t.hostname}${r?`:${r}`:""}${n}`;return navigator.sendBeacon(a,t.body)}}const Ybe=(e=0)=>new Promise((t,n)=>{e&&setTimeout(()=>{const r=new Error(`Request did not complete within ${e} ms`);r.name="TimeoutError",n(r)},e)});let Zbe=class{constructor({fetchFunction:t,requestTimeout:n}={}){this.requestTimeout=n,this.fetchFunction=t}destroy(){}handle(t,{abortSignal:n}={}){const r=this.requestTimeout;if(n?.aborted){const g=new Error("Request aborted");return g.name="AbortError",Promise.reject(g)}let a=t.path;if(t.query){const g=WA(t.query);g&&(a+=`?${g}`)}const{port:s,method:i}=t,u=`${t.protocol}//${t.hostname}${s?`:${s}`:""}${a}`,f={body:i==="GET"||i==="HEAD"?void 0:t.body,headers:new Headers(t.headers),method:i};typeof AbortController<"u"&&(f.signal=n);const h=new Request(u,f),m=[this.fetchFunction.apply(window,[h]).then(g=>{const y=g.headers,S={};for(const x of y.entries())S[x[0]]=x[1];return g.body!==void 0?{response:new sp({headers:S,statusCode:g.status,body:g.body})}:g.blob().then(x=>({response:new sp({headers:S,statusCode:g.status,body:x})}))}),Ybe(r)];return n&&m.push(new Promise((g,y)=>{n.onabort=()=>{const S=new Error("Request aborted");S.name="AbortError",y(S)}})),Promise.race(m)}updateHttpClientConfig(t,n){}httpHandlerConfigs(){return{}}};const or=[];for(let e=0;e<256;++e)or.push((e+256).toString(16).slice(1));function Xbe(e,t=0){return(or[e[t+0]]+or[e[t+1]]+or[e[t+2]]+or[e[t+3]]+"-"+or[e[t+4]]+or[e[t+5]]+"-"+or[e[t+6]]+or[e[t+7]]+"-"+or[e[t+8]]+or[e[t+9]]+"-"+or[e[t+10]]+or[e[t+11]]+or[e[t+12]]+or[e[t+13]]+or[e[t+14]]+or[e[t+15]]).toLowerCase()}let sE;const Qbe=new Uint8Array(16);function Jbe(){if(!sE){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");sE=crypto.getRandomValues.bind(crypto)}return sE(Qbe)}const eSe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),U7={randomUUID:eSe};function tSe(e,t,n){e=e||{};const r=e.random??e.rng?.()??Jbe();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Xbe(r)}function Th(e,t,n){return U7.randomUUID&&!e?U7.randomUUID():tSe(e)}const GA=e=>{if(crypto)return crypto.getRandomValues(e);if(msCrypto)return msCrypto.getRandomValues(e);throw new Error("No crypto library found.")},I$=[];for(let e=0;e<256;e++)I$[e]=(e+256).toString(16).substr(1);const ry="X-Amzn-Trace-Id",ay="traceparent",nSe=2,rSe=32,aSe=16,sSe=4,R$=(e,t)=>Array.isArray(t)?t.some(n=>n.test(e)):t,T$={logicalServiceName:"rum.aws.amazon.com",urlsToInclude:[/.*/],urlsToExclude:[/cognito\-identity\.([^\.]*\.)?amazonaws\.com/,/sts\.([^\.]*\.)?amazonaws\.com/],stackTraceLength:200,recordAllRequests:!1,addXRayTraceIdHeader:!1},oSe=e=>200<=e&&e<300,O$=e=>Math.floor(e/100)===4,KA=e=>Math.floor(e/100)===5,YA=e=>e===429,N$=(e,t)=>{const n=t.urlsToInclude.some(a=>a.test(e)),r=t.urlsToExclude.some(a=>a.test(e));return n&&!r},$c=()=>Date.now()/1e3,iSe=(e,t,n)=>{const r={request:{}};return r.request.method=t?.method?t.method:"GET",r.request.traced=n,r.request.url=M0(e),r},M$=(e,t,n,r)=>({version:"1.0.0",name:e,origin:"AWS::RUM::AppMonitor",id:L$(),start_time:t,trace_id:n?hSe():fSe(),end_time:void 0,subsegments:[],in_progress:!1}),P$=(e,t,n)=>{const r={id:L$(),name:e,start_time:t,end_time:void 0,in_progress:!1,namespace:e.endsWith(".amazonaws.com")?"aws":"remote"};return n&&(r.http=n),r},D$=e=>{try{return e.hostname?e.hostname:e.url?new URL(e.url).hostname:new URL(e.toString()).hostname}catch{return window.location.hostname}},lSe=(e,t,n,r)=>{e.headers||(e.headers={}),r?e.headers[ay]=XA(t,n):e.headers[ry]=ZA(t,n)},uSe=(e,t,n,r)=>{r?e.set(ay,XA(t,n)):e.set(ry,ZA(t,n))},ZA=(e,t)=>"Root="+e+";Parent="+t+";Sampled=1",XA=(e,t)=>"00-"+e+"-"+t+"-01",cSe=e=>e?.length===sSe&&e[0].length===nSe&&e[1].length===rSe&&e[2].length===aSe&&(e[3]==="00"||e[3]==="01"),dSe=(e,t)=>{var n,r;const a={};if(e)if(t){const s=(n=e.get(ay))===null||n===void 0?void 0:n.split("-");s&&cSe(s)&&(a.traceId=s[1],a.segmentId=s[2])}else{const s=(r=e.get(ry))===null||r===void 0?void 0:r.split(";");s?.length===3&&(a.traceId=s[0].split("Root=")[1],a.segmentId=s[1].split("Parent=")[1])}return a},M0=e=>e.url?e.url:e.toString(),fSe=()=>`1-${pSe()}-${mSe()}`,hSe=()=>{const e=new Uint8Array(16);return GA(e),`${QA(e)}`},L$=()=>{const e=new Uint8Array(8);return GA(e),QA(e)},pSe=()=>Math.floor(Date.now()/1e3).toString(16),mSe=()=>{const e=new Uint8Array(12);return GA(e),QA(e)},QA=e=>{let t="";for(let n=0;n<e.length;n++)t+=I$[e[n]];return t};class gSe{constructor(t,n,r=a=>2e3*Math.pow(2,a-1)){this.handler=t,this.retries=n,this.backoff=r}async handle(t){let n=this.retries;for(;;)try{const r=await this.handler.handle(t);if(oSe(r.response.statusCode))return r;throw r.response.statusCode}catch(r){if(typeof r=="number"&&!YA(r)&&!KA(r))throw new Error(`${r}`);if(n<=0)throw r;n--,await this.sleep(this.backoff(this.retries-n))}}async sleep(t){return new Promise(n=>setTimeout(n,t))}updateHttpClientConfig(t,n){}httpHandlerConfigs(){return{}}}const dd="cwr_c",b1="cwr_i",S1="cwr_s",w1="cwr_u",vSe=3e4,ySe="arw-module",j7="CWR: Cannot dispatch; no AWS credentials.";class bSe{constructor(t,n,r,a,s){this.disableCodes=["403","404"],this.shouldPurgeCredentials=!0,this.dispatchFetch=async()=>{if(this.doRequest()){const i=this.createRequest();return Se.info(`Dispatching ${i.RumEvents.length} events via fetch`),this.rum.sendFetch(i).catch(this.handleReject)}},this.dispatchBeacon=async()=>{if(this.doRequest()){const i=this.createRequest();return Se.info(`Dispatching ${i.RumEvents.length} events via beacon`),this.rum.sendBeacon(i).catch(()=>this.rum.sendFetch(i))}},this.dispatchFetchFailSilent=async()=>this.dispatchFetch().catch(i=>{Se.error("Dispatch fetch failed silently:",i)}),this.dispatchBeaconFailSilent=async()=>this.dispatchBeacon().catch(i=>{Se.error("Dispatch beacon failed silently:",i)}),this.flushSync=()=>{if(document.visibilityState==="hidden"&&this.doRequest(!0)){let i=this.rum.sendBeacon,u=this.rum.sendFetch;this.config.useBeacon||([i,u]=[u,i]);const c=this.createRequest(!0);Se.debug(`Flushing ${c.RumEvents.length} events on page hide`),i(c).catch(()=>u(c)).catch(f=>{Se.error("Page hide flush failed:",f)})}},this.handleReject=i=>{throw i instanceof Error&&(i.message==="403"&&this.config.signing&&this.shouldPurgeCredentials?(this.shouldPurgeCredentials=!1,this.forceRebuildClient()):this.disableCodes.includes(i.message)&&(Se.error("Dispatch failed with status code:",i.message),this.disable())),i},this.defaultClientBuilder=(i,u,c,f)=>{const h=c&&this.signingConfigFactory?this.signingConfigFactory(c,u):void 0;return new Wbe({fetchRequestHandler:new gSe(new Zbe({fetchFunction:this.config.fetchFunction}),this.config.retries),beaconRequestHandler:new Kbe,endpoint:i,region:u,credentials:c,headers:this.headers,compressionStrategy:f},h)},this.applicationId=t,this.region=n,this.endpoint=r,this.eventCache=a,this.enabled=!0,this.buildClient=s.clientBuilder||this.defaultClientBuilder,this.config=s,this.headers=s.headers,this.startDispatchTimer(),s.signing?this.rum={sendFetch:()=>Promise.reject(new Error(j7)),sendBeacon:()=>Promise.reject(new Error(j7))}:this.rum=this.buildClient(this.endpoint,this.region,void 0,this.config.compressionStrategy),this.credentialStorageKey=this.config.cookieAttributes.unique?`${dd}_${t}`:dd,this.identityStorageKey=this.config.cookieAttributes.unique?`${b1}_${t}`:b1}enable(){this.enabled=!0,this.startDispatchTimer()}disable(){this.stopDispatchTimer(),this.enabled=!1,Se.warn("Dispatch disabled")}setAwsCredentials(t){this.credentialProvider=t,this.rum=this.buildClient(this.endpoint,this.region,t,this.config.compressionStrategy),typeof t=="function"&&t()}setCognitoCredentialProviderFactory(t){this.cognitoCredentialProviderFactory=t}setSigningConfigFactory(t){this.signingConfigFactory=t}setCognitoCredentials(t,n){this.identityPoolId=t,this.guestRoleArn=n,this.cognitoCredentialProviderFactory&&this.setAwsCredentials(this.cognitoCredentialProviderFactory(this.config,this.applicationId,t,n))}startDispatchTimer(){document.addEventListener("visibilitychange",this.flushSync),document.addEventListener("pagehide",this.flushSync),!(this.config.dispatchInterval<=0||this.dispatchTimerId)&&(this.dispatchTimerId=window.setInterval(this.dispatchFetchFailSilent,this.config.dispatchInterval))}stopDispatchTimer(){document.removeEventListener("visibilitychange",this.flushSync),document.removeEventListener("pagehide",this.flushSync),this.dispatchTimerId&&(window.clearInterval(this.dispatchTimerId),this.dispatchTimerId=void 0)}doRequest(t=!1){return this.enabled?t&&this.eventCache.hasCandidates()?!0:this.eventCache.hasEvents():!1}createRequest(t=!1){return{BatchId:Th(),AppMonitorDetails:this.eventCache.getAppMonitorDetails(),UserDetails:this.eventCache.getUserDetails(),SessionMetadata:JSON.stringify(this.eventCache.getCommonMetadata()),RumEvents:this.eventCache.getEventBatch(t),Alias:this.config.alias}}forceRebuildClient(){Se.warn("Removing credentials from local storage"),localStorage.removeItem(this.credentialStorageKey),this.identityPoolId?(Se.info("Rebuilding client with fresh cognito credentials"),localStorage.removeItem(this.identityStorageKey),this.setCognitoCredentials(this.identityPoolId,this.guestRoleArn)):this.credentialProvider&&(Se.info("Rebuilding client with most recently passed provider"),this.setAwsCredentials(this.credentialProvider))}}const U$={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),U$[e]=t}function SSe(e){let t="";for(let n=0;n<e.byteLength;n++)t+=U$[e[n]];return t}class wSe{format(t){const n=[];for(const s of Object.keys(t)){const i=G3(s);n.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(t[s]))}const r=new Uint8Array(n.reduce((s,i)=>s+i.byteLength,0));let a=0;for(const s of n)r.set(s,a),a+=s.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?ka.boolTrue:ka.boolFalse]);case"byte":return Uint8Array.from([ka.byte,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));return n.setUint8(0,ka.short),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,ka.integer),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":const a=new Uint8Array(9);return a[0]=ka.long,a.set(t.value.bytes,1),a;case"binary":const s=new DataView(new ArrayBuffer(3+t.value.byteLength));s.setUint8(0,ka.byteArray),s.setUint16(1,t.value.byteLength,!1);const i=new Uint8Array(s.buffer);return i.set(t.value,3),i;case"string":const u=G3(t.value),c=new DataView(new ArrayBuffer(3+u.byteLength));c.setUint8(0,ka.string),c.setUint16(1,u.byteLength,!1);const f=new Uint8Array(c.buffer);return f.set(u,3),f;case"timestamp":const h=new Uint8Array(9);return h[0]=ka.timestamp,h.set(JA.fromNumber(t.value.valueOf()).bytes,1),h;case"uuid":if(!xSe.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const m=new Uint8Array(17);return m[0]=ka.uuid,m.set(Dbe(t.value.replace(/-/g,"")),1),m}}}var ka;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(ka||(ka={}));const xSe=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class JA{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const n=new Uint8Array(8);for(let r=7,a=Math.abs(Math.round(t));r>-1&&a>0;r--,a/=256)n[r]=a;return t<0&&z7(n),new JA(n)}valueOf(){const t=this.bytes.slice(0),n=t[0]&128;return n&&z7(t),parseInt(Gl(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}}function z7(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}const CSe="X-Amz-Algorithm",ESe="X-Amz-Credential",j$="X-Amz-Date",_Se="X-Amz-SignedHeaders",kSe="X-Amz-Expires",z$="X-Amz-Signature",F$="X-Amz-Security-Token",$$="authorization",B$=j$.toLowerCase(),ASe="date",ISe=[$$,B$,ASe],RSe=z$.toLowerCase(),Y3="x-amz-content-sha256",TSe=F$.toLowerCase(),OSe={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},NSe=/^proxy-/,MSe=/^sec-/,oE="AWS4-HMAC-SHA256",PSe="AWS4-HMAC-SHA256-PAYLOAD",DSe="UNSIGNED-PAYLOAD",LSe=50,H$="aws4_request",USe=3600*24*7,jSe=({query:e={}})=>{const t=[],n={};for(const r of Object.keys(e)){if(r.toLowerCase()===RSe)continue;const a=Kl(r);t.push(a);const s=e[r];typeof s=="string"?n[a]=`${a}=${Kl(s)}`:Array.isArray(s)&&(n[a]=s.slice(0).reduce((i,u)=>i.concat([`${a}=${Kl(u)}`]),[]).sort().join("&"))}return t.sort().map(r=>n[r]).filter(r=>r).join("&")},zSe=e=>FSe(e).toISOString().replace(/\.\d{3}Z$/,"Z"),FSe=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;class $Se{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:t,credentials:n,region:r,service:a,sha256:s,uriEscapePath:i=!0}){this.service=a,this.sha256=s,this.uriEscapePath=i,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=M7(r),this.credentialProvider=M7(n)}createCanonicalRequest(t,n,r){const a=Object.keys(n).sort();return`${t.method}
231
+ ${this.getCanonicalPath(t)}
232
+ ${jSe(t)}
233
+ ${a.map(s=>`${s}:${n[s]}`).join(`
234
+ `)}
235
+
236
+ ${a.join(";")}
237
+ ${r}`}async createStringToSign(t,n,r,a){const s=new this.sha256;s.update(ap(r));const i=await s.digest();return`${a}
238
+ ${t}
239
+ ${n}
240
+ ${Gl(i)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const n=[];for(const s of t.split("/"))s?.length!==0&&s!=="."&&(s===".."?n.pop():n.push(s));const r=`${t?.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&t?.endsWith("/")?"/":""}`;return Kl(r).replace(/%2F/g,"/")}return t}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(t){const n=zSe(t).replace(/[-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}}getCanonicalHeaderList(t){return Object.keys(t).sort().join(";")}}const Mg={},iE=[],lE=(e,t,n)=>`${e}/${t}/${n}/${H$}`,BSe=async(e,t,n,r,a)=>{const s=await F7(e,t.secretAccessKey,t.accessKeyId),i=`${n}:${r}:${a}:${Gl(s)}:${t.sessionToken}`;if(i in Mg)return Mg[i];for(iE.push(i);iE.length>LSe;)delete Mg[iE.shift()];let u=`AWS4${t.secretAccessKey}`;for(const c of[n,r,a,H$])u=await F7(e,u,c);return Mg[i]=u},F7=(e,t,n)=>{const r=new e(t);return r.update(ap(n)),r.digest()},$7=({headers:e},t,n)=>{const r={};for(const a of Object.keys(e).sort()){if(e[a]==null)continue;const s=a.toLowerCase();(s in OSe||t?.has(s)||NSe.test(s)||MSe.test(s))&&(!n||n&&!n.has(s))||(r[s]=e[a].trim().replace(/\s+/g," "))}return r},uE=async({headers:e,body:t},n)=>{for(const r of Object.keys(e))if(r.toLowerCase()===Y3)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||Lbe(t)){const r=new n;return r.update(ap(t)),Gl(await r.digest())}return DSe},HSe=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},qSe=(e,t={})=>{const{headers:n,query:r={}}=To.clone(e);for(const a of Object.keys(n)){const s=a.toLowerCase();(s.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(s)||t.hoistableHeaders?.has(s))&&(r[a]=n[a],delete n[a])}return{...e,headers:n,query:r}},B7=e=>{e=To.clone(e);for(const t of Object.keys(e.headers))ISe.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};class VSe extends $Se{headerFormatter=new wSe;constructor({applyChecksum:t,credentials:n,region:r,service:a,sha256:s,uriEscapePath:i=!0}){super({applyChecksum:t,credentials:n,region:r,service:a,sha256:s,uriEscapePath:i})}async presign(t,n={}){const{signingDate:r=new Date,expiresIn:a=3600,unsignableHeaders:s,unhoistableHeaders:i,signableHeaders:u,hoistableHeaders:c,signingRegion:f,signingService:h}=n,m=await this.credentialProvider();this.validateResolvedCredentials(m);const g=f??await this.regionProvider(),{longDate:y,shortDate:S}=this.formatDate(r);if(a>USe)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const w=lE(S,g,h??this.service),x=qSe(B7(t),{unhoistableHeaders:i,hoistableHeaders:c});m.sessionToken&&(x.query[F$]=m.sessionToken),x.query[CSe]=oE,x.query[ESe]=`${m.accessKeyId}/${w}`,x.query[j$]=y,x.query[kSe]=a.toString(10);const _=$7(x,s,u);return x.query[_Se]=this.getCanonicalHeaderList(_),x.query[z$]=await this.getSignature(y,w,this.getSigningKey(m,g,S,h),this.createCanonicalRequest(x,_,await uE(t,this.sha256))),x}async sign(t,n){return typeof t=="string"?this.signString(t,n):t.headers&&t.payload?this.signEvent(t,n):t.message?this.signMessage(t,n):this.signRequest(t,n)}async signEvent({headers:t,payload:n},{signingDate:r=new Date,priorSignature:a,signingRegion:s,signingService:i,eventStreamCredentials:u}){const c=s??await this.regionProvider(),{shortDate:f,longDate:h}=this.formatDate(r),m=lE(f,c,i??this.service),g=await uE({headers:{},body:n},this.sha256),y=new this.sha256;y.update(t);const S=Gl(await y.digest()),w=[PSe,h,m,a,S,g].join(`
241
+ `);return this.signString(w,{signingDate:r,signingRegion:c,signingService:i,eventStreamCredentials:u})}async signMessage(t,{signingDate:n=new Date,signingRegion:r,signingService:a,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(t.message.headers),payload:t.message.body},{signingDate:n,signingRegion:r,signingService:a,priorSignature:t.priorSignature,eventStreamCredentials:s}).then(u=>({message:t.message,signature:u}))}async signString(t,{signingDate:n=new Date,signingRegion:r,signingService:a,eventStreamCredentials:s}={}){const i=s??await this.credentialProvider();this.validateResolvedCredentials(i);const u=r??await this.regionProvider(),{shortDate:c}=this.formatDate(n),f=new this.sha256(await this.getSigningKey(i,u,c,a));return f.update(ap(t)),Gl(await f.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:r,unsignableHeaders:a,signingRegion:s,signingService:i}={}){const u=await this.credentialProvider();this.validateResolvedCredentials(u);const c=s??await this.regionProvider(),f=B7(t),{longDate:h,shortDate:m}=this.formatDate(n),g=lE(m,c,i??this.service);f.headers[B$]=h,u.sessionToken&&(f.headers[TSe]=u.sessionToken);const y=await uE(f,this.sha256);!HSe(Y3,f.headers)&&this.applyChecksum&&(f.headers[Y3]=y);const S=$7(f,a,r),w=await this.getSignature(h,g,this.getSigningKey(u,c,m,i),this.createCanonicalRequest(f,S,y));return f.headers[$$]=`${oE} Credential=${u.accessKeyId}/${g}, SignedHeaders=${this.getCanonicalHeaderList(S)}, Signature=${w}`,f}async getSignature(t,n,r,a){const s=await this.createStringToSign(t,n,a,oE),i=new this.sha256(await r);return i.update(ap(s)),Gl(await i.digest())}getSigningKey(t,n,r,a){return BSe(this.sha256,t,r,n,a||this.service)}}const WSe="rum",GSe={expiresIn:60},KSe=(e,t)=>{const n=new VSe({applyChecksum:!0,credentials:e,region:t,service:WSe,uriEscapePath:!0,sha256:Zl});return{sign:async r=>await n.sign(r),presign:async r=>await n.presign(r,GSe),hashAndEncode:async r=>{const a=new Zl;return a.update(r),SSe(await a.digest()).toLowerCase()}}};function H7(e,t){return new Request(e,t)}function YSe(e=0){return new Promise((t,n)=>{e&&setTimeout(()=>{const r=new Error(`Request did not complete within ${e} ms`);r.name="TimeoutError",n(r)},e)})}const cE={supported:void 0};class sy{config;configProvider;static create(t){return typeof t?.handle=="function"?t:new sy(t)}constructor(t){typeof t=="function"?this.configProvider=t().then(n=>n||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config)),cE.supported===void 0&&(cE.supported=typeof Request<"u"&&"keepalive"in H7("https://[::1]"))}destroy(){}async handle(t,{abortSignal:n,requestTimeout:r}={}){this.config||(this.config=await this.configProvider);const a=r??this.config.requestTimeout,s=this.config.keepAlive===!0,i=this.config.credentials;if(n?.aborted){const k=q7(n);return Promise.reject(k)}let u=t.path;const c=WA(t.query||{});c&&(u+=`?${c}`),t.fragment&&(u+=`#${t.fragment}`);let f="";if(t.username!=null||t.password!=null){const k=t.username??"",A=t.password??"";f=`${k}:${A}@`}const{port:h,method:m}=t,g=`${t.protocol}//${f}${t.hostname}${h?`:${h}`:""}${u}`,y=m==="GET"||m==="HEAD"?void 0:t.body,S={body:y,headers:new Headers(t.headers),method:m,credentials:i};this.config?.cache&&(S.cache=this.config.cache),y&&(S.duplex="half"),typeof AbortController<"u"&&(S.signal=n),cE.supported&&(S.keepalive=s),typeof this.config.requestInit=="function"&&Object.assign(S,this.config.requestInit(t));let w=()=>{};const x=H7(g,S),_=[fetch(x).then(k=>{const A=k.headers,R={};for(const O of A.entries())R[O[0]]=O[1];return k.body!=null?{response:new sp({headers:R,reason:k.statusText,statusCode:k.status,body:k.body})}:k.blob().then(O=>({response:new sp({headers:R,reason:k.statusText,statusCode:k.status,body:O})}))}),YSe(a)];return n&&_.push(new Promise((k,A)=>{const R=()=>{const N=q7(n);A(N)};if(typeof n.addEventListener=="function"){const N=n;N.addEventListener("abort",R,{once:!0}),w=()=>N.removeEventListener("abort",R)}else n.onabort=R})),Promise.race(_).finally(w)}updateHttpClientConfig(t,n){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[t]=n,r))}httpHandlerConfigs(){return this.config??{}}}function q7(e){const t=e&&typeof e=="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){const a=new Error("Request aborted");return a.name="AbortError",a.cause=t,a}const r=new Error(String(t));return r.name="AbortError",r}const n=new Error("Request aborted");return n.name="AbortError",n}const dE=async e=>{const{value:t}=await e.body.getReader().read();return JSON.parse(String.fromCharCode.apply(null,t))},ZSe=async e=>{const{value:t}=await e.body.getReader().read();return String.fromCharCode.apply(null,t)},XSe="POST",QSe="application/x-www-form-urlencoded",JSe="https:",ewe="AssumeRoleWithWebIdentity",twe="2011-06-15";class nwe{constructor(t){this.assumeRoleWithWebIdentity=async n=>{try{const r=Object.assign(Object.assign({},n),{Action:ewe,Version:twe}),a=new URLSearchParams(Object.entries(r)).toString(),s=new To({method:XSe,headers:{"content-type":QSe,host:this.hostname},protocol:JSe,hostname:this.hostname,body:a}),{response:i}=await this.fetchRequestHandler.handle(s),u=await ZSe(i);return{accessKeyId:u.split("<AccessKeyId>")[1].split("</AccessKeyId>")[0],secretAccessKey:u.split("<SecretAccessKey>")[1].split("</SecretAccessKey>")[0],sessionToken:u.split("<SessionToken>")[1].split("</SessionToken>")[0],expiration:new Date(u.split("<Expiration>")[1].split("</Expiration>")[0])}}catch(r){throw new Error(`CWR: Failed to retrieve credentials from STS: ${r}`)}},this.hostname=`sts.${t.region}.amazonaws.com`,this.fetchRequestHandler=t.fetchRequestHandler}}const rwe="POST",awe="application/x-amz-json-1.1",swe="https:",owe="AWSCognitoIdentityService.GetId",iwe="AWSCognitoIdentityService.GetOpenIdToken",lwe="AWSCognitoIdentityService.GetCredentialsForIdentity";class uwe{constructor(t){var n;this.getId=async r=>{var a;let s=null;try{s=JSON.parse(localStorage.getItem(this.identityStorageKey))}catch(i){!((a=this.config)===null||a===void 0)&&a.debug&&Se.error("Failed to parse stored identity:",i)}if(s&&s.IdentityId)return Promise.resolve(s);try{const i=JSON.stringify(r),u=this.getHttpRequest(owe,i),c=await dE((await this.fetchRequestHandler.handle(u)).response);try{localStorage.setItem(this.identityStorageKey,JSON.stringify({IdentityId:c.IdentityId}))}catch(f){Se.error("Failed to store identity:",f)}return c}catch(i){throw new Error(`CWR: Failed to retrieve Cognito identity: ${i}`)}},this.getOpenIdToken=async r=>{try{const a=JSON.stringify(r),s=this.getHttpRequest(iwe,a),{response:i}=await this.fetchRequestHandler.handle(s);return this.validateOpenIdTokenResponse(await dE(i))}catch(a){throw localStorage.removeItem(this.identityStorageKey),new Error(`CWR: Failed to retrieve Cognito OpenId token: ${a}`)}},this.getCredentialsForIdentity=async r=>{try{const a=JSON.stringify({IdentityId:r}),s=this.getHttpRequest(lwe,a),{response:i}=await this.fetchRequestHandler.handle(s),{AccessKeyId:u,Expiration:c,SecretKey:f,SessionToken:h}=this.validateCredenentialsResponse(await dE(i));return{accessKeyId:u,secretAccessKey:f,sessionToken:h,expiration:new Date(c*1e3)}}catch(a){throw localStorage.removeItem(this.identityStorageKey),new Error(`CWR: Failed to retrieve credentials for Cognito identity: ${a}`)}},this.validateOpenIdTokenResponse=r=>{if("IdentityId"in r&&"Token"in r)return r;throw r&&"__type"in r&&"message"in r?new Error(`${r.__type}: ${r.message}`):new Error("Unknown OpenIdToken response")},this.validateCredenentialsResponse=r=>{if("IdentityId"in r&&"Credentials"in r)return r.Credentials;throw r&&"__type"in r&&"message"in r?new Error(`${r.__type}: ${r.message}`):new Error("Unknown Credentials response")},this.getHttpRequest=(r,a)=>new To({method:rwe,headers:{"content-type":awe,"x-amz-target":r},protocol:swe,hostname:this.hostname,body:a}),this.hostname=`cognito-identity.${t.region}.amazonaws.com`,this.fetchRequestHandler=t.fetchRequestHandler,this.config=t.clientConfig,this.identityStorageKey=!((n=t.clientConfig)===null||n===void 0)&&n.cookieAttributes.unique?`${b1}_${t.applicationId}`:b1}}class q${constructor(t,n){this.ChainAnonymousCredentialsProvider=async()=>this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider),this.AnonymousCredentialsProvider=async()=>new Promise((a,s)=>{if(this.renewCredentials())return s();a(this.credentials)}),this.AnonymousStorageCredentialsProvider=async()=>new Promise((a,s)=>{let i;try{i=JSON.parse(localStorage.getItem(this.credentialStorageKey))}catch{return s()}if(this.credentials=Object.assign(Object.assign({},i),{expiration:new Date(i.expiration)}),this.renewCredentials())return s();a(this.credentials)});const r=t.identityPoolId.split(":")[0];this.config=t,this.cognitoIdentityClient=new uwe({fetchRequestHandler:new sy,region:r,clientConfig:t,applicationId:n}),this.credentialStorageKey=this.config.cookieAttributes.unique?`${dd}_${n}`:dd}renewCredentials(){if(!this.credentials||!this.credentials.expiration)return!0;const t=new Date(this.credentials.expiration.getTime()-vSe);return new Date>t}}class cwe extends q${constructor(t,n){super(t,n),this.AnonymousCognitoCredentialsProvider=async()=>{let a=1;for(;;)try{const s=await this.cognitoIdentityClient.getId({IdentityPoolId:this.config.identityPoolId}),i=await this.cognitoIdentityClient.getOpenIdToken(s),u=await this.stsClient.assumeRoleWithWebIdentity({RoleArn:this.config.guestRoleArn,RoleSessionName:"cwr",WebIdentityToken:i.Token});this.credentials=u;try{localStorage.setItem(this.credentialStorageKey,JSON.stringify(u))}catch{}return Se.debug("AWS credentials fetched successfully"),u}catch(s){if(a)a--,Se.warn("AWS credential fetch failed, retrying");else throw Se.error("AWS credential fetch failed:",s),s}};const r=t.identityPoolId.split(":")[0];this.stsClient=new nwe({fetchRequestHandler:new sy,region:r})}}class dwe extends q${constructor(t,n){super(t,n),this.AnonymousCognitoCredentialsProvider=async()=>{let r=1;for(;;)try{const a=await this.cognitoIdentityClient.getId({IdentityPoolId:this.config.identityPoolId}),s=await this.cognitoIdentityClient.getCredentialsForIdentity(a.IdentityId);this.credentials=s;try{localStorage.setItem(this.credentialStorageKey,JSON.stringify(s))}catch{}return Se.debug("AWS credentials fetched successfully"),s}catch(a){if(r)r--,Se.warn("AWS credential fetch failed, retrying");else throw Se.error("AWS credential fetch failed:",a),a}}}}const pa="com.amazon.rum",fwe="com.amazonaws.rum",x1=`${pa}.http_event`,V$=`${pa}.xray_trace_event`,hwe=`${pa}.largest_contentful_paint_event`,pwe=`${pa}.first_input_delay_event`,mwe=`${pa}.cumulative_layout_shift_event`,gwe=`${pa}.interaction_to_next_paint_event`,Z3=`${pa}.performance_navigation_event`,W$=`${pa}.performance_resource_event`,vwe=`${pa}.dom_event`,ywe=`${pa}.js_error_event`,bwe=`${pa}.page_view_event`,X3=`${pa}.session_start_event`,V7=`${pa}.rrweb_event`;class Pa{constructor(t){this.enabled=!0,this.pluginId=Pa.generatePluginId(t)}static generatePluginId(t){return`${Pa.idPrefix}.${t}`}load(t){var n;this.context=t,(n=this.onload)===null||n===void 0||n.call(this)}getPluginId(){return this.pluginId}}Pa.idPrefix=fwe;class Swe{constructor(t){this.context=t,this.plugins=new Map}addPlugin(t){const n=t.getPluginId();if(this.hasPlugin(n))throw new Error(`Plugin "${n}" already defined in the PluginManager`);this.plugins.set(n,t),t.load(this.context),Se.debug(`Plugin loaded: ${n}`)}updatePlugin(t,n){var r;const a=this.getPlugin(t);(r=a?.update)===null||r===void 0||r.call(a,n)}enable(){this.plugins.forEach(t=>t.enable())}disable(){this.plugins.forEach(t=>t.disable())}flush(){this.plugins.forEach(t=>{var n;return(n=t.flush)===null||n===void 0?void 0:n.call(t)})}hasPlugin(t){return!!this.getPlugin(t)}record(t,n){const r=this.getPlugin(t);if(r?.record instanceof Function)r.record(n);else throw new Error("AWS RUM Client record: Invalid plugin ID")}getPlugin(t){var n;return(n=this.plugins.get(t))!==null&&n!==void 0?n:this.plugins.get(Pa.generatePluginId(t))}}const W7=(e,t,n,r,a)=>{let s=e+"=";s+=t||"",a!==void 0&&(s+=`; Expires=${a.toUTCString()}`),s+=`; Domain=${n.domain}`,s+=`; Path=${n.path}`,s+=`; SameSite=${n.sameSite}`,s+=n.secure?"; Secure":"",document.cookie=s},wwe=(e,t)=>{let n=e+"=";n+=`; Expires=${new Date(0)}`,n+=`; Domain=${t.domain}`,n+=`; Path=${t.path}`,n+=`; SameSite=${t.sameSite}`,n+=t.secure?"Secure":"",document.cookie=n},G7=e=>{const t=document.cookie.split("; ");for(const n of t){const r=n.split("=");if(r[0]===e)return r[1]}return""};var Oh;(function(e){e.Path="PATH",e.Hash="HASH",e.PathAndHash="PATH_AND_HASH"})(Oh||(Oh={}));const xwe=()=>{var e,t;const n=navigator.userAgentData;if(!n)return;const r=(e=n.brands)!==null&&e!==void 0?e:[],a=(t=r.find(s=>s.brand!=="Chromium"&&!s.brand.startsWith("Not")))!==null&&t!==void 0?t:r[0];return{browserName:a?.brand,browserVersion:a?.version,osName:n.platform,deviceType:n.mobile?"mobile":"desktop"}},Pg="00000000-0000-0000-0000-000000000000",Cwe="desktop",Ewe="web";class _we{constructor(t,n,r,a){this.isSessionIdManual=!1,this.isUserIdManual=!1,this.appMonitorDetails=t,this.config=n,this.recordEvent=r,this.pageManager=a,this.sessionCookieName=this.config.cookieAttributes.unique?`${S1}_${this.appMonitorDetails.id}`:S1,this.session={sessionId:Pg,record:this.sample(),eventCount:0},this.config.userId||this.initializeUser(),this.collectAttributes(),this.addSessionAttributes(this.config.sessionAttributes),this.getSessionFromCookie(),this.config.userId&&(this.isUserIdManual=!0,this.adoptUser(this.config.userId)),this.config.sessionId&&(this.isSessionIdManual=!0,this.adoptSession(this.config.sessionId))}isSampled(){return this.session.record}getSession(){return this.isSessionIdManual?(new Date>=this.sessionExpiry&&(this.session.eventCount=0,this.session.page=this.pageManager.getPage(),this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.storeSessionAsCookie()),this.session):(this.session.sessionId===Pg?this.createSession():new Date>=this.sessionExpiry&&this.createSession(),this.session)}getAttributes(){return this.attributes}addSessionAttributes(t){this.attributes=Object.assign(Object.assign({},this.attributes),t)}pinSessionId(t){if(!t){Se.warn("pinSessionId called with empty value; ignoring.");return}this.isSessionIdManual=!0,t!==this.session.sessionId&&this.adoptSession(t)}startSession(t){return t?.userId!==void 0&&(t.userId?(this.isUserIdManual=!0,t.userId!==this.userId&&this.adoptUser(t.userId)):Se.warn("startSession called with empty userId; ignoring user rotation.")),t?.sessionId!==void 0?t.sessionId?(this.isSessionIdManual=!0,this.adoptSession(t.sessionId),this.config.suppressSessionStartEvent||this.recordEvent(X3,{version:"1.0.0"})):(Se.warn("startSession called with empty sessionId; minting a fresh session."),this.isSessionIdManual=!1,this.createSession()):(this.isSessionIdManual=!1,this.createSession()),this.session.sessionId}getUserId(){return this.isUserIdManual?this.userId:this.useCookies()?this.userId:Pg}pinUserId(t){if(!t){Se.warn("pinUserId called with empty value; ignoring.");return}this.isUserIdManual=!0,t!==this.userId&&this.adoptUser(t)}incrementSessionEventCount(){this.session.eventCount++,this.renewSession()}isLimitExceeded(){return this.session.eventCount>=this.config.sessionEventLimit&&this.config.sessionEventLimit>0}canRecord(){return this.session.record&&!this.isLimitExceeded()}initializeUser(){let t="";this.userExpiry=new Date,this.userExpiry.setDate(this.userExpiry.getDate()+this.config.userIdRetentionDays),this.config.userIdRetentionDays<=0?this.userId="00000000-0000-0000-0000-000000000000":this.useCookies()?(t=this.getUserIdCookie(),this.userId=t||Th(),this.createOrRenewUserCookie(t,this.userExpiry)):this.userId=Th()}createOrRenewSessionCookie(t,n){btoa&&W7(this.sessionCookieName,btoa(JSON.stringify(t)),this.config.cookieAttributes,void 0,n)}createOrRenewUserCookie(t,n){W7(w1,t,this.config.cookieAttributes,void 0,n)}getUserIdCookie(){return G7(w1)}getSessionFromCookie(){if(this.useCookies()){const t=G7(this.sessionCookieName);if(t&&atob)try{this.session=JSON.parse(atob(t)),this.pageManager.resumeSession(this.session.page),Se.info(`Restored session: ${this.session.sessionId}`)}catch(n){Se.error("Failed to restore session",n)}}}storeSessionAsCookie(){this.useCookies()&&this.config.userIdRetentionDays>0&&this.createOrRenewUserCookie(this.userId,this.userExpiry),this.useCookies()&&this.createOrRenewSessionCookie(this.session,this.sessionExpiry)}createSession(){this.session={sessionId:Th(),record:this.session.sessionId===Pg?this.session.record:this.sample(),eventCount:0},this.session.page=this.pageManager.getPage(),this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.storeSessionAsCookie(),Se.info(`Session start: ${this.session.sessionId}`),this.session.record||Se.warn(`Session is NOT sampled. Consider increasing sessionSampleRate to avoid data loss (currently ${this.config.sessionSampleRate})`),this.config.suppressSessionStartEvent||this.recordEvent(X3,{version:"1.0.0"})}adoptSession(t){this.session={sessionId:t,record:this.session.record,eventCount:0},this.session.page=this.pageManager.getPage(),this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.storeSessionAsCookie(),Se.info(`Adopted session: ${t}`)}adoptUser(t){this.userId=t,this.userExpiry=new Date,this.userExpiry.setDate(this.userExpiry.getDate()+this.config.userIdRetentionDays),this.useCookies()&&this.config.userIdRetentionDays>0&&this.createOrRenewUserCookie(this.userId,this.userExpiry),Se.info(`Adopted user: ${t}`)}renewSession(){this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.session.page=this.pageManager.getPage(),this.storeSessionAsCookie()}collectAttributes(){var t;const n=xwe();this.attributes={browserLanguage:navigator.language,browserName:n?.browserName,browserVersion:n?.browserVersion,osName:n?.osName,osVersion:n?.osVersion,deviceType:(t=n?.deviceType)!==null&&t!==void 0?t:Cwe,platformType:Ewe,domain:window.location.hostname,"aws:releaseId":this.config.releaseId},n||(this.attributes["aws:userAgent"]=navigator.userAgent)}useCookies(){return navigator.cookieEnabled&&this.config.allowCookies}sample(){return Math.random()<this.config.sessionSampleRate}}class kwe{constructor(t,n){this.config=t,this.record=n,this.page=void 0,this.resumed=!1,this.recordInteraction=!1}getPage(){return this.page}getAttributes(){return this.attributes}resumeSession(t){this.recordInteraction=!0,t&&(this.page=t,this.resumed=!0)}recordPageView(t){let n;if(typeof t=="string"?n=t:n=t.pageId,Se.debug(`recordPageView called with pageId: ${n}`),this.useCookies()&&(this.recordInteraction=!0),!this.page)this.createLandingPage(n),Se.info(`Landing page created: ${n}`);else if(this.page.pageId!==n)this.createNextPage(this.page,n),Se.debug(`Navigation to new page: ${n}`);else if(this.resumed){Se.info(`Resumed session for page: ${n}`),this.collectAttributes(this.page,typeof t=="object"?t:void 0);return}else{Se.debug(`No page change detected for: ${n}`);return}this.collectAttributes(this.page,typeof t=="object"?t:void 0),this.recordPageViewEvent(this.page)}createNextPage(t,n){const r=Date.now();Se.debug(`Creating next page ${n}, interaction: ${t.interaction+1}`),this.timeOnParentPage=r-t.start,this.resumed=!1,this.page={pageId:n,parentPageId:t.pageId,interaction:t.interaction+1,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:r}}createLandingPage(t){this.page={pageId:t,interaction:0,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:Date.now()}}collectAttributes(t,n){var r;this.attributes={title:!((r=n?.pageAttributes)===null||r===void 0)&&r.title?n.pageAttributes.title:document.title,pageId:t.pageId},this.recordInteraction&&(this.attributes.interaction=t.interaction,t.parentPageId!==void 0&&(this.attributes.parentPageId=t.parentPageId)),n?.pageTags&&(this.attributes.pageTags=n.pageTags),n?.pageAttributes&&(this.attributes=Object.assign(Object.assign({},n.pageAttributes),this.attributes))}createPageViewEvent(t){const n={version:"1.0.0",pageId:t.pageId};return this.recordInteraction&&(n.interaction=t.interaction,n.pageInteractionId=t.pageId+"-"+t.interaction,t.parentPageId!==void 0&&(n.parentPageInteractionId=t.parentPageId+"-"+(t.interaction-1),n.timeOnParentPage=this.timeOnParentPage),n.referrer=document.referrer,n.referrerDomain=this.getDomainFromReferrer()),n}recordPageViewEvent(t){this.record(bwe,this.createPageViewEvent(t))}useCookies(){return navigator.cookieEnabled&&this.config.allowCookies}getDomainFromReferrer(){try{return new URL(document.referrer).hostname}catch{return document.referrer==="localhost"?document.referrer:""}}}var op;(function(e){e.EVENT="event"})(op||(op={}));class G${constructor(){this.subscribers=new Map}subscribe(t,n){var r;const a=(r=this.subscribers.get(t))!==null&&r!==void 0?r:[];a.length||this.subscribers.set(t,a),a.push(n)}unsubscribe(t,n){const r=this.subscribers.get(t);if(r){for(let a=0;a<r.length;a++)if(r[a]===n)return r.splice(a,1),!0}return!1}dispatch(t,n){const r=this.subscribers.get(t);if(r)for(const a of r)a(n)}}const Awe="3.1.0",Iwe=new Set(["pageId","parentPageId","interaction","pageTags","title"]),fE=(e,t)=>{if(!e)return{};const n={};for(const[r,a]of Object.entries(e)){if(r.startsWith("aws:")){Se.warn(`Dropping ${t} metadata key "${r}": "aws:" namespace is reserved.`);continue}if((t==="event"||t==="hook")&&Iwe.has(r)){Se.warn(`Dropping ${t} metadata key "${r}": owned by page state.`);continue}const s=typeof a;if(s!=="string"&&s!=="number"&&s!=="boolean"){Se.warn(`Dropping ${t} metadata key "${r}": value must be string|number|boolean.`);continue}n[r]=a}return n};class Rwe{constructor(t,n,r=new G$){this.eventBus=r,this.events=[],this.candidates=new Map,this.droppedEvent=0,this.sessionLimitExceeded=0,this.recordPageView=a=>{this.isCurrentUrlAllowed()&&this.pageManager.recordPageView(a)},this.recordEvent=(a,s,i)=>{this.enabled&&this.isCurrentUrlAllowed()&&(a!==X3&&this.sessionManager.getSession(),this.sessionManager.canRecord()?(this.sessionManager.incrementSessionEventCount(),this.addRecordToCache(a,s,i)):this.sessionLimitExceeded++)},this.recordCandidate=(a,s,i)=>{const u=this.sessionManager.getSession();if(!this.enabled||!this.isCurrentUrlAllowed()||!u.record)return;const[c]=this.createEvent(a,s,i);if(this.candidates.has(a)){this.candidates.set(a,c);return}this.candidates.size<this.config.candidatesCacheSize&&!this.sessionManager.isLimitExceeded()&&(this.candidates.set(a,c),this.sessionManager.incrementSessionEventCount())},this.getSession=()=>{if(this.isCurrentUrlAllowed())return this.sessionManager.getSession()},this.getSessionId=()=>this.sessionManager.getSession().sessionId,this.pinSessionId=a=>{this.sessionManager.pinSessionId(a)},this.startSession=a=>this.sessionManager.startSession(a),this.getUserId=()=>this.sessionManager.getUserId(),this.pinUserId=a=>{this.sessionManager.pinUserId(a)},this.addRecordToCache=(a,s,i)=>{if(!this.enabled)return;if(this.events.length>=this.config.eventCacheSize){this.droppedEvent+=1;return}const[u,c]=this.createEvent(a,s,i);this.eventBus.dispatch(op.EVENT,c),this.events.push(u)},this.createEvent=(a,s,i)=>{var u;const c=(u=this.pageManager.getAttributes())!==null&&u!==void 0?u:{},f=fE(i,"event");let h={};if(this.eventMetadataHook)try{const y=Object.freeze(Object.assign({},c)),S=this.eventMetadataHook(a,s,y);S&&(h=fE(S,"hook"))}catch(y){Se.warn(`eventMetadataHook threw for type "${a}"; dropping hook output for this event.`,y)}const m=Object.assign(Object.assign(Object.assign({},c),h),f),g={id:Th(),timestamp:new Date,type:a};return[Object.assign(Object.assign({},g),{details:JSON.stringify(s),metadata:JSON.stringify(m)}),Object.assign(Object.assign({},g),{details:s,metadata:m})]},this.appMonitorDetails=t,this.config=n,this.enabled=!0,this.pageManager=new kwe(n,this.recordEvent),this.sessionManager=new _we(t,n,this.recordEvent,this.pageManager),this.installationMethod=n.client,this.applicationAttributes=Object.freeze(fE(n.applicationAttributes,"application"))}enable(){this.enabled=!0}disable(){this.enabled=!1}setPluginFlushHook(t){this.pluginFlushHook=t}isSessionSampled(){return this.sessionManager.isSampled()}hasEvents(){if(this.sessionLimitExceeded>0){const t=this.events.length+this.sessionLimitExceeded;this.sessionManager.isSampled()?Se.warn(`Dropped ${this.sessionLimitExceeded} of ${t} recently observed events (${(this.sessionLimitExceeded/t*100).toFixed(2)}%) because the session limit has exceeded. Consider increasing sessionEventLimit (currently ${this.config.sessionEventLimit}) to ${t} or more to avoid data loss.`):Se.warn(`Dropped ${this.sessionLimitExceeded} of ${t} recently observed events (${(this.sessionLimitExceeded/t*100).toFixed(2)}%) because current session is not sampled. Consider increasing sessionSampleRate (currently ${this.config.sessionSampleRate}) to capture more user sessions.`),this.sessionLimitExceeded=0}return this.events.length!==0}hasCandidates(){return this.candidates.size!==0}getEventBatch(t=!1){var n;if(this.droppedEvent>0){const a=this.events.length+this.droppedEvent;Se.warn(`Dropped ${this.droppedEvent} of ${a} recently observed events (${(this.droppedEvent/a*100).toFixed(2)}%) due to insufficient in-memory queue. Increase eventCacheSize to ${a} (currently ${this.config.eventCacheSize}) to avoid data loss.`),this.droppedEvent=0}let r=[];if(t&&((n=this.pluginFlushHook)===null||n===void 0||n.call(this)),t&&this.hasCandidates())if(this.candidates.size<=this.config.batchLimit)r=Array.from(this.candidates.values()),this.candidates.clear();else{let a=0;for(const s of Array.from(this.candidates.keys())){if(a++>=this.config.batchLimit)break;const i=this.candidates.get(s);i&&(r.push(i),this.candidates.delete(s))}}return this.events.length&&(this.events.length<=this.config.batchLimit-r.length?(r.push(...this.events),this.events=[]):r.push(...this.events.splice(0,this.config.batchLimit-r.length))),r}getAppMonitorDetails(){return this.appMonitorDetails}getUserDetails(){return{userId:this.sessionManager.getUserId(),sessionId:this.sessionManager.getSession().sessionId}}addSessionAttributes(t){this.sessionManager.addSessionAttributes(t)}getCommonMetadata(){return Object.assign(Object.assign(Object.assign({},this.sessionManager.getAttributes()),this.applicationAttributes),{version:"1.0.0","aws:client":this.installationMethod,"aws:clientVersion":Awe})}setEventMetadataHook(t){this.eventMetadataHook=t}clearEventMetadataHook(){this.eventMetadataHook=void 0}isCurrentUrlAllowed(){const t=document.location.toString(),n=this.config.pagesToExclude.some(a=>a.test(t));return this.config.pagesToInclude.some(a=>a.test(t))&&!n}}var Nn;(function(e){e.OTHER="other",e.STYLESHEET="stylesheet",e.DOCUMENT="document",e.SCRIPT="script",e.IMAGE="image",e.FONT="font"})(Nn||(Nn={}));var go;(function(e){e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.FRAME="frame",e.SCRIPT="script",e.CSS="css"})(go||(go={}));const K7=e=>[e.startTime,e.duration].join("#"),Twe=[{name:Nn.STYLESHEET,list:["css","less"]},{name:Nn.DOCUMENT,list:["htm","html","ts","doc","docx","pdf","xls","xlsx"]},{name:Nn.SCRIPT,list:["js"]},{name:Nn.IMAGE,list:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"]},{name:Nn.FONT,list:["fnt","fon","otf","ttf","woff"]}],Y7=(e,t)=>{let n=Nn.OTHER;if(e){const r=e.substring(e.lastIndexOf("/")+1),a=r.substring(r.lastIndexOf(".")+1).split(/[?#]/)[0];Twe.forEach(s=>{s.list.indexOf(a)>-1&&(n=s.name)})}if(t&&n===Nn.OTHER)switch(t){case go.IMAGE:case go.IMG:case go.INPUT:n=Nn.IMAGE;break;case go.IFRAME:case go.FRAME:n=Nn.DOCUMENT;break;case go.SCRIPT:n=Nn.SCRIPT;break;case go.CSS:n=Nn.STYLESHEET;break}return n},Owe=()=>PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint"),Nwe=/\/appmonitors\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,Mwe=(e,t)=>{try{return new URL(e).hostname===t&&Nwe.test(e)}catch{return!1}},K$="dom-event",Pwe={interactionId:()=>"",enableMutationObserver:!1,events:[]};class eI extends Pa{constructor(t){super(K$),this.enabled=!1,this.eventListenerMap=new Map,this.config=Object.assign(Object.assign({},Pwe),t)}static getElementInfo(t){const n={name:"UNKNOWN"};return t.target instanceof Node&&(n.name=t.target.nodeName),t.target instanceof Element&&t.target.id&&(n.id=t.target.id),n}enable(){if(document.readyState!=="complete"){window.addEventListener("load",()=>this.enable());return}this.enabled||(this.addListeners(),this.config.enableMutationObserver&&this.observeDOMMutation(),this.enabled=!0)}disable(){this.enabled&&(this.removeListeners(),this.observer&&this.observer.disconnect(),this.enabled=!1)}update(t){t.forEach(n=>{this.addEventHandler(n),this.config.events.push(n)})}onload(){this.enable()}removeListeners(){this.config.events.forEach(t=>this.removeEventHandler(t))}addListeners(){this.config.events.forEach(t=>this.addEventHandler(t))}getEventListener(t){return n=>{var r;const a=eI.getElementInfo(n),s=this.config.interactionId(n),i=Object.assign(Object.assign(Object.assign({version:"1.1.0",event:n.type,element:a.name},a.id?{elementId:a.id}:{}),s?{interactionId:s}:{}),t?{cssLocator:t}:{});!((r=this.context)===null||r===void 0)&&r.record&&this.context.record(vwe,i)}}addEventHandler(t){const n=t.event,r=this.getEventListener(t.cssLocator),a=[],s=this.eventListenerMap.has(t)?this.eventListenerMap.get(t):[];if(t.cssLocator)document.querySelectorAll(t.cssLocator).forEach(u=>{a.push(u)});else if(t.elementId){const i=document.getElementById(t.elementId);i&&a.push(i)}else t.element&&a.push(t.element);a.forEach(i=>{i.addEventListener(n,r),s.push({element:i,eventListener:r})}),this.eventListenerMap.set(t,s)}removeEventHandler(t){const n=this.eventListenerMap.get(t);n&&(n.forEach(r=>{const a=r.element,s=r.eventListener;a.removeEventListener(t.event,s)}),this.eventListenerMap.delete(t))}observeDOMMutation(){this.observer=new MutationObserver(()=>{this.removeListeners(),this.addListeners()}),this.observer.observe(document,{childList:!0,subtree:!0})}}const Dwe=e=>{const t=typeof e;return(t==="object"||t==="function")&&!!e},Lwe=e=>{const t={version:"1.0.0",type:"undefined",message:"undefined"};return e.type!==void 0&&(t.type=e.type),e.message!==void 0&&(t.message=e.message),e.filename!==void 0&&(t.filename=e.filename),e.lineno!==void 0&&(t.lineno=e.lineno),e.colno!==void 0&&(t.colno=e.colno),t},Uwe=(e,t)=>{e.type!=="unhandledrejection"&&(e.type=t.toString()),e.message=t.toString()},jwe=(e,t,n)=>{t.name&&(e.type=t.name),t.message&&(e.message=t.message),t.fileName&&(e.filename=t.fileName),t.lineNumber&&(e.lineno=t.lineNumber),t.columnNumber&&(e.colno=t.columnNumber),n&&t.stack&&(e.stack=t.stack.length>n?t.stack.substring(0,n)+"...":t.stack)},Y$=e=>e!==Object(e)&&e!==void 0&&e!==null,tI=(e,t)=>{const n=Lwe(e),r=e.error;return Dwe(r)?jwe(n,r,t):Y$(r)&&Uwe(n,r),n},Z$="js-error",zwe={stackTraceLength:1e3,ignore:()=>!1};class Fwe extends Pa{constructor(t){super(Z$),this.eventHandler=n=>{this.config.ignore(n)||this.recordJsErrorEvent(n)},this.promiseRejectEventHandler=n=>{this.config.ignore(n)||this.recordJsErrorEvent({type:n.type,error:n.reason})},this.config=Object.assign(Object.assign({},zwe),t)}enable(){this.enabled||(this.addEventHandler(),this.enabled=!0)}disable(){this.enabled&&(this.removeEventHandler(),this.enabled=!1)}record(t){t instanceof ErrorEvent?this.recordJsErrorEvent(t):this.recordJsErrorEvent({type:"error",error:t})}onload(){this.addEventHandler()}recordJsErrorEvent(t){var n;(n=this.context)===null||n===void 0||n.record(ywe,tI(t,this.config.stackTraceLength))}addEventHandler(){window.addEventListener("error",this.eventHandler),window.addEventListener("unhandledrejection",this.promiseRejectEventHandler)}removeEventHandler(){window.removeEventListener("error",this.eventHandler),window.removeEventListener("unhandledrejection",this.promiseRejectEventHandler)}}const $we=e=>e.entryType==="resource"&&(!/^https?:/.test(e.name)||/^(fetch|xmlhttprequest)$/.test(e.initiatorType)),nI={eventLimit:10,ignore:$we,recordAllTypes:[Nn.DOCUMENT,Nn.SCRIPT,Nn.STYLESHEET,Nn.FONT],sampleTypes:[Nn.IMAGE,Nn.OTHER],reportAllLCP:!1,reportAllCLS:!1,reportAllINP:!1},Bwe="navigation",xc="navigation",hE="load";class Hwe extends Pa{constructor(t){super(Bwe),this.eventListener=()=>{performance.getEntriesByType(xc).length===0?this.performanceNavigationEventHandlerTimingLevel1():new PerformanceObserver(r=>{r.getEntries().filter(a=>a.entryType===xc).filter(a=>!this.config.ignore(a)).forEach(a=>{this.performanceNavigationEventHandlerTimingLevel2(a)})}).observe({entryTypes:[xc]})},this.performanceNavigationEventHandlerTimingLevel1=()=>{setTimeout(()=>{var r;const a=performance.timing,s=a.navigationStart,i={version:"1.0.0",initiatorType:"navigation",startTime:0,unloadEventStart:a.unloadEventStart>0?a.unloadEventStart-s:0,promptForUnload:a.unloadEventEnd-a.unloadEventStart,redirectStart:a.redirectStart>0?a.redirectStart-s:0,redirectTime:a.redirectEnd-a.redirectStart,fetchStart:a.fetchStart>0?a.fetchStart-s:0,domainLookupStart:a.domainLookupStart>0?a.domainLookupStart-s:0,dns:a.domainLookupEnd-a.domainLookupStart,connectStart:a.connectStart>0?a.connectStart-s:0,connect:a.connectEnd-a.connectStart,secureConnectionStart:a.secureConnectionStart>0?a.secureConnectionStart-s:0,tlsTime:a.secureConnectionStart>0?a.connectEnd-a.secureConnectionStart:0,requestStart:a.requestStart>0?a.requestStart-s:0,timeToFirstByte:a.responseStart-a.requestStart,responseStart:a.responseStart>0?a.responseStart-s:0,responseTime:a.responseStart>0?a.responseEnd-a.responseStart:0,domInteractive:a.domInteractive>0?a.domInteractive-s:0,domContentLoadedEventStart:a.domContentLoadedEventStart>0?a.domContentLoadedEventStart-s:0,domContentLoaded:a.domContentLoadedEventEnd-a.domContentLoadedEventStart,domComplete:a.domComplete>0?a.domComplete-s:0,domProcessingTime:a.loadEventStart-a.responseEnd,loadEventStart:a.loadEventStart>0?a.loadEventStart-s:0,loadEventTime:a.loadEventEnd-a.loadEventStart,duration:a.loadEventEnd-a.navigationStart,navigationTimingLevel:1};!((r=this.context)===null||r===void 0)&&r.record&&this.context.record(Z3,i)},0)},this.performanceNavigationEventHandlerTimingLevel2=n=>{var r;const a={version:"1.0.0",initiatorType:n.initiatorType,navigationType:n.type,startTime:n.startTime,unloadEventStart:n.unloadEventStart,promptForUnload:n.unloadEventEnd-n.unloadEventStart,redirectCount:n.redirectCount,redirectStart:n.redirectStart,redirectTime:n.redirectEnd-n.redirectStart,workerStart:n.workerStart,workerTime:n.workerStart>0?n.fetchStart-n.workerStart:0,fetchStart:n.fetchStart,domainLookupStart:n.domainLookupStart,dns:n.domainLookupEnd-n.domainLookupStart,nextHopProtocol:n.nextHopProtocol,connectStart:n.connectStart,connect:n.connectEnd-n.connectStart,secureConnectionStart:n.secureConnectionStart,tlsTime:n.secureConnectionStart>0?n.connectEnd-n.secureConnectionStart:0,requestStart:n.requestStart,timeToFirstByte:n.responseStart-n.requestStart,responseStart:n.responseStart,responseTime:n.responseStart>0?n.responseEnd-n.responseStart:0,domInteractive:n.domInteractive,domContentLoadedEventStart:n.domContentLoadedEventStart,domContentLoaded:n.domContentLoadedEventEnd-n.domContentLoadedEventStart,domComplete:n.domComplete,domProcessingTime:n.loadEventStart-n.responseEnd,loadEventStart:n.loadEventStart,loadEventTime:n.loadEventEnd-n.loadEventStart,duration:n.duration,headerSize:n.transferSize>0?n.transferSize-n.encodedBodySize:0,transferSize:n.transferSize,compressionRatio:n.encodedBodySize>0?n.decodedBodySize/n.encodedBodySize:0,navigationTimingLevel:2};!((r=this.context)===null||r===void 0)&&r.record&&this.context.record(Z3,a)},this.config=Object.assign(Object.assign({},nI),t)}enable(){this.enabled||(this.enabled=!0,window.addEventListener(hE,this.eventListener))}disable(){this.enabled&&(this.enabled=!1,this.eventListener&&window.removeEventListener(hE,this.eventListener))}hasTheWindowLoadEventFired(){return window.performance&&window.performance.getEntriesByType(xc).length?!!window.performance.getEntriesByType(xc)[0].loadEventEnd:!1}onload(){this.enabled&&(this.hasTheWindowLoadEventFired()?window.performance.getEntriesByType(xc).filter(t=>!this.config.ignore(t)).forEach(t=>this.performanceNavigationEventHandlerTimingLevel2(t)):window.addEventListener(hE,this.eventListener))}}var pE,Z7;function qwe(){if(Z7)return pE;Z7=1;function e(c){return typeof c=="function"}var t=console.error.bind(console);function n(c,f,h){var m=!!c[f]&&c.propertyIsEnumerable(f);Object.defineProperty(c,f,{configurable:!0,enumerable:m,writable:!0,value:h})}function r(c){c&&c.logger&&(e(c.logger)?t=c.logger:t("new logger isn't a function, not replacing"))}function a(c,f,h){if(!c||!c[f]){t("no original function "+f+" to wrap");return}if(!h){t("no wrapper function"),t(new Error().stack);return}if(!e(c[f])||!e(h)){t("original object and wrapper must be functions");return}var m=c[f],g=h(m,f);return n(g,"__original",m),n(g,"__unwrap",function(){c[f]===g&&n(c,f,m)}),n(g,"__wrapped",!0),n(c,f,g),g}function s(c,f,h){if(c)Array.isArray(c)||(c=[c]);else{t("must provide one or more modules to patch"),t(new Error().stack);return}if(!(f&&Array.isArray(f))){t("must provide one or more functions to wrap on modules");return}c.forEach(function(m){f.forEach(function(g){a(m,g,h)})})}function i(c,f){if(!c||!c[f]){t("no function to unwrap."),t(new Error().stack);return}if(!c[f].__unwrap)t("no original to unwrap to -- has "+f+" already been unwrapped?");else return c[f].__unwrap()}function u(c,f){if(c)Array.isArray(c)||(c=[c]);else{t("must provide one or more modules to patch"),t(new Error().stack);return}if(!(f&&Array.isArray(f))){t("must provide one or more functions to unwrap on modules");return}c.forEach(function(h){f.forEach(function(m){i(h,m)})})}return r.wrap=a,r.massWrap=s,r.unwrap=i,r.massUnwrap=u,pE=r,pE}var C1=qwe();const Vwe=_d(C1),X7=aL({__proto__:null,default:Vwe},[C1]);class rI extends Pa{constructor(){super(...arguments),this.enable=this.patch.bind(this,!0),this.disable=this.patch.bind(this,!1),this.enabled=!1}patchAll(){const t=C1.wrap.bind(X7);for(const n of this.patches)t(n.nodule,n.name,n.wrapper())}unpatchAll(){const t=C1.unwrap.bind(X7);for(const n of this.patches)t(n.nodule,n.name)}patch(t=!0){this.enabled!==t&&(this.enabled=t,t?this.patchAll():this.unpatchAll())}}const Wwe="page-view";class Gwe extends rI{constructor(){super(Wwe),this.pushState=()=>{const t=this;return n=>function(r,a,s){const i=n.apply(this,arguments);return t.recordPageView(),i}},this.replaceState=()=>{const t=this;return n=>function(r,a,s){const i=n.apply(this,arguments);return t.recordPageView(),i}},this.popstateListener=t=>{this.recordPageView()},this.recordPageView=()=>{this.context.recordPageView(this.createIdForCurrentPage())},this.enable()}onload(){this.addListener(),this.recordPageView()}get patches(){return[{nodule:History.prototype,name:"pushState",wrapper:this.pushState},{nodule:History.prototype,name:"replaceState",wrapper:this.replaceState}]}addListener(){window.addEventListener("popstate",this.popstateListener)}createIdForCurrentPage(){const t=window.location.pathname,n=window.location.hash;switch(this.context.config.pageIdFormat){case Oh.PathAndHash:return t&&n?t+n:t||n||"";case Oh.Hash:return n||"";case Oh.Path:default:return t||""}}}const Kwe="resource",mE="resource";class Ywe extends Pa{constructor(t){super(Kwe),this.performanceEntryHandler=n=>{this.recordPerformanceEntries(n.getEntries())},this.recordPerformanceEntries=n=>{n.forEach(r=>{if(r.entryType!==mE||this.config.ignore(r))return;const{name:a,initiatorType:s}=r,i=Y7(a,s);this.config.recordAllTypes.includes(i)?this.recordResourceEvent(r):this.config.sampleTypes.includes(i)&&this.eventCount<this.config.eventLimit&&(this.recordResourceEvent(r),this.eventCount++)})},this.recordResourceEvent=({name:n,startTime:r,initiatorType:a,duration:s,transferSize:i})=>{var u;if(!Mwe(n,this.context.config.endpointUrl.hostname)&&!((u=this.context)===null||u===void 0)&&u.record){const c={version:"1.0.0",initiatorType:a,startTime:r,duration:s,fileType:Y7(n,a),transferSize:i};this.context.config.recordResourceUrl&&(c.targetUrl=n),this.context.record(W$,c)}},this.config=Object.assign(Object.assign({},nI),t),this.eventCount=0,this.resourceObserver=new PerformanceObserver(this.performanceEntryHandler)}enable(){this.enabled||(this.enabled=!0,this.resourceObserver.observe({type:mE,buffered:!0}))}disable(){this.enabled&&(this.enabled=!1,this.resourceObserver.disconnect())}onload(){this.resourceObserver.observe({type:mE,buffered:!0})}}var Q3,Q7,oy=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},aI=function(e){if(document.readyState==="loading")return"loading";var t=oy();if(t){if(e<t.domInteractive)return"loading";if(t.domContentLoadedEventStart===0||e<t.domContentLoadedEventStart)return"dom-interactive";if(t.domComplete===0||e<t.domComplete)return"dom-content-loaded"}return"complete"},Zwe=function(e){var t=e.nodeName;return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},iy=function(e,t){var n="";try{for(;e&&e.nodeType!==9;){var r=e,a=r.id?"#"+r.id:Zwe(r)+(r.classList&&r.classList.value&&r.classList.value.trim()&&r.classList.value.trim().length?"."+r.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+a.length>(t||100)-1)return n||a;if(n=n?a+">"+n:a,r.id)break;e=r.parentNode}}catch{}return n},X$=-1,Xwe=function(){return X$},Fd=function(e){addEventListener("pageshow",(function(t){t.persisted&&(X$=t.timeStamp,e(t))}),!0)},sI=function(){var e=oy();return e&&e.activationStart||0},Ds=function(e,t){var n=oy(),r="navigate";return Xwe()>=0?r="back-forward-cache":n&&(document.prerendering||sI()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},Su=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(a){Promise.resolve().then((function(){t(a.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Ls=function(e,t,n,r){var a,s;return function(i){t.value>=0&&(i||r)&&((s=t.value-(a||0))||a===void 0)&&(a=t.value,t.delta=s,t.rating=(function(u,c){return u>c[1]?"poor":u>c[0]?"needs-improvement":"good"})(t.value,n),e(t))}},oI=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},Lp=function(e){document.addEventListener("visibilitychange",(function(){document.visibilityState==="hidden"&&e()}))},ly=function(e){var t=!1;return function(){t||(e(),t=!0)}},Bc=-1,J7=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},E1=function(e){document.visibilityState==="hidden"&&Bc>-1&&(Bc=e.type==="visibilitychange"?e.timeStamp:0,Qwe())},e9=function(){addEventListener("visibilitychange",E1,!0),addEventListener("prerenderingchange",E1,!0)},Qwe=function(){removeEventListener("visibilitychange",E1,!0),removeEventListener("prerenderingchange",E1,!0)},iI=function(){return Bc<0&&(Bc=J7(),e9(),Fd((function(){setTimeout((function(){Bc=J7(),e9()}),0)}))),{get firstHiddenTime(){return Bc}}},uy=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},t9=[1800,3e3],Jwe=function(e,t){t=t||{},uy((function(){var n,r=iI(),a=Ds("FCP"),s=Su("paint",(function(i){i.forEach((function(u){u.name==="first-contentful-paint"&&(s.disconnect(),u.startTime<r.firstHiddenTime&&(a.value=Math.max(u.startTime-sI(),0),a.entries.push(u),n(!0)))}))}));s&&(n=Ls(e,a,t9,t.reportAllChanges),Fd((function(i){a=Ds("FCP"),n=Ls(e,a,t9,t.reportAllChanges),oI((function(){a.value=performance.now()-i.timeStamp,n(!0)}))})))}))},n9=[.1,.25],exe=function(e,t){(function(n,r){r=r||{},Jwe(ly((function(){var a,s=Ds("CLS",0),i=0,u=[],c=function(h){h.forEach((function(m){if(!m.hadRecentInput){var g=u[0],y=u[u.length-1];i&&m.startTime-y.startTime<1e3&&m.startTime-g.startTime<5e3?(i+=m.value,u.push(m)):(i=m.value,u=[m])}})),i>s.value&&(s.value=i,s.entries=u,a())},f=Su("layout-shift",c);f&&(a=Ls(n,s,n9,r.reportAllChanges),Lp((function(){c(f.takeRecords()),a(!0)})),Fd((function(){i=0,s=Ds("CLS",0),a=Ls(n,s,n9,r.reportAllChanges),oI((function(){return a()}))})),setTimeout(a,0))})))})((function(n){var r=(function(a){var s,i={};if(a.entries.length){var u=a.entries.reduce((function(f,h){return f&&f.value>h.value?f:h}));if(u&&u.sources&&u.sources.length){var c=(s=u.sources).find((function(f){return f.node&&f.node.nodeType===1}))||s[0];c&&(i={largestShiftTarget:iy(c.node),largestShiftTime:u.startTime,largestShiftValue:u.value,largestShiftSource:c,largestShiftEntry:u,loadState:aI(u.startTime)})}}return Object.assign(a,{attribution:i})})(n);e(r)}),t)},Q$=0,gE=1/0,Dg=0,txe=function(e){e.forEach((function(t){t.interactionId&&(gE=Math.min(gE,t.interactionId),Dg=Math.max(Dg,t.interactionId),Q$=Dg?(Dg-gE)/7+1:0)}))},J$=function(){return Q3?Q$:performance.interactionCount||0},nxe=function(){"interactionCount"in performance||Q3||(Q3=Su("event",txe,{type:"event",buffered:!0,durationThreshold:0}))},Ka=[],Nh=new Map,eB=0,rxe=function(){var e=Math.min(Ka.length-1,Math.floor((J$()-eB)/50));return Ka[e]},tB=[],axe=function(e){if(tB.forEach((function(a){return a(e)})),e.interactionId||e.entryType==="first-input"){var t=Ka[Ka.length-1],n=Nh.get(e.interactionId);if(n||Ka.length<10||e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};Nh.set(r.id,r),Ka.push(r)}Ka.sort((function(a,s){return s.latency-a.latency})),Ka.length>10&&Ka.splice(10).forEach((function(a){return Nh.delete(a.id)}))}}},lI=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=ly(e),document.visibilityState==="hidden"?e():(n=t(e),Lp(e)),n},r9=[200,500],sxe=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},uy((function(){var n;nxe();var r,a=Ds("INP"),s=function(u){lI((function(){u.forEach(axe);var c=rxe();c&&c.latency!==a.value&&(a.value=c.latency,a.entries=c.entries,r())}))},i=Su("event",s,{durationThreshold:(n=t.durationThreshold)!==null&&n!==void 0?n:40});r=Ls(e,a,r9,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),Lp((function(){s(i.takeRecords()),r(!0)})),Fd((function(){eB=J$(),Ka.length=0,Nh.clear(),a=Ds("INP"),r=Ls(e,a,r9,t.reportAllChanges)})))})))},ed=[],Pi=[],J3=0,uI=new WeakMap,td=new Map,e_=-1,oxe=function(e){ed=ed.concat(e),nB()},nB=function(){e_<0&&(e_=lI(ixe))},ixe=function(){td.size>10&&td.forEach((function(i,u){Nh.has(u)||td.delete(u)}));var e=Ka.map((function(i){return uI.get(i.entries[0])})),t=Pi.length-50;Pi=Pi.filter((function(i,u){return u>=t||e.includes(i)}));for(var n=new Set,r=0;r<Pi.length;r++){var a=Pi[r];aB(a.startTime,a.processingEnd).forEach((function(i){n.add(i)}))}var s=ed.length-1-50;ed=ed.filter((function(i,u){return i.startTime>J3&&u>s||n.has(i)})),e_=-1};tB.push((function(e){e.interactionId&&e.target&&!td.has(e.interactionId)&&td.set(e.interactionId,e.target)}),(function(e){var t,n=e.startTime+e.duration;J3=Math.max(J3,e.processingEnd);for(var r=Pi.length-1;r>=0;r--){var a=Pi[r];if(Math.abs(n-a.renderTime)<=8){(t=a).startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd),t.entries.push(e);break}}t||(t={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:n,entries:[e]},Pi.push(t)),(e.interactionId||e.entryType==="first-input")&&uI.set(e,t),nB()}));var Di,Mh,rB,_1,aB=function(e,t){for(var n,r=[],a=0;n=ed[a];a++)if(!(n.startTime+n.duration<e)){if(n.startTime>t)break;r.push(n)}return r},lxe=function(e,t){Q7||(Q7=Su("long-animation-frame",oxe)),sxe((function(n){var r=(function(a){var s=a.entries[0],i=uI.get(s),u=s.processingStart,c=i.processingEnd,f=i.entries.sort((function(x,_){return x.processingStart-_.processingStart})),h=aB(s.startTime,c),m=a.entries.find((function(x){return x.target})),g=m&&m.target||td.get(s.interactionId),y=[s.startTime+s.duration,c].concat(h.map((function(x){return x.startTime+x.duration}))),S=Math.max.apply(Math,y),w={interactionTarget:iy(g),interactionTargetElement:g,interactionType:s.name.startsWith("key")?"keyboard":"pointer",interactionTime:s.startTime,nextPaintTime:S,processedEventEntries:f,longAnimationFrameEntries:h,inputDelay:u-s.startTime,processingDuration:c-u,presentationDelay:Math.max(S-c,0),loadState:aI(s.startTime)};return Object.assign(a,{attribution:w})})(n);e(r)}),t)},a9=[2500,4e3],vE={},uxe=function(e,t){(function(n,r){r=r||{},uy((function(){var a,s=iI(),i=Ds("LCP"),u=function(h){r.reportAllChanges||(h=h.slice(-1)),h.forEach((function(m){m.startTime<s.firstHiddenTime&&(i.value=Math.max(m.startTime-sI(),0),i.entries=[m],a())}))},c=Su("largest-contentful-paint",u);if(c){a=Ls(n,i,a9,r.reportAllChanges);var f=ly((function(){vE[i.id]||(u(c.takeRecords()),c.disconnect(),vE[i.id]=!0,a(!0))}));["keydown","click"].forEach((function(h){addEventListener(h,(function(){return lI(f)}),{once:!0,capture:!0})})),Lp(f),Fd((function(h){i=Ds("LCP"),a=Ls(n,i,a9,r.reportAllChanges),oI((function(){i.value=performance.now()-h.timeStamp,vE[i.id]=!0,a(!0)}))}))}}))})((function(n){var r=(function(a){var s={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:a.value};if(a.entries.length){var i=oy();if(i){var u=i.activationStart||0,c=a.entries[a.entries.length-1],f=c.url&&performance.getEntriesByType("resource").filter((function(S){return S.name===c.url}))[0],h=Math.max(0,i.responseStart-u),m=Math.max(h,f?(f.requestStart||f.startTime)-u:0),g=Math.max(m,f?f.responseEnd-u:0),y=Math.max(g,c.startTime-u);s={element:iy(c.element),timeToFirstByte:h,resourceLoadDelay:m-h,resourceLoadDuration:g-m,elementRenderDelay:y-g,navigationEntry:i,lcpEntry:c},c.url&&(s.url=c.url),f&&(s.lcpResourceEntry=f)}}return Object.assign(a,{attribution:s})})(n);e(r)}),t)},xh={passive:!0,capture:!0},cxe=new Date,s9=function(e,t){Di||(Di=t,Mh=e,rB=new Date,oB(removeEventListener),sB())},sB=function(){if(Mh>=0&&Mh<rB-cxe){var e={entryType:"first-input",name:Di.type,target:Di.target,cancelable:Di.cancelable,startTime:Di.timeStamp,processingStart:Di.timeStamp+Mh};_1.forEach((function(t){t(e)})),_1=[]}},dxe=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;e.type=="pointerdown"?(function(n,r){var a=function(){s9(n,r),i()},s=function(){i()},i=function(){removeEventListener("pointerup",a,xh),removeEventListener("pointercancel",s,xh)};addEventListener("pointerup",a,xh),addEventListener("pointercancel",s,xh)})(t,e):s9(t,e)}},oB=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,dxe,xh)}))},o9=[100,300],fxe=function(e,t){t=t||{},uy((function(){var n,r=iI(),a=Ds("FID"),s=function(c){c.startTime<r.firstHiddenTime&&(a.value=c.processingStart-c.startTime,a.entries.push(c),n(!0))},i=function(c){c.forEach(s)},u=Su("first-input",i);n=Ls(e,a,o9,t.reportAllChanges),u&&(Lp(ly((function(){i(u.takeRecords()),u.disconnect()}))),Fd((function(){var c;a=Ds("FID"),n=Ls(e,a,o9,t.reportAllChanges),_1=[],Mh=-1,Di=null,oB(addEventListener),c=s,_1.push(c),sB()})))}))},hxe=function(e,t){fxe((function(n){var r=(function(a){var s=a.entries[0],i={eventTarget:iy(s.target),eventType:s.name,eventTime:s.startTime,eventEntry:s,loadState:aI(s.startTime)};return Object.assign(a,{attribution:i})})(n);e(r)}),t)};const pxe="web-vitals";class mxe extends Pa{constructor(t){super(pxe),this.resourceEventIds=new Map,this.cacheLCPCandidates=Owe(),this.handleEvent=n=>{switch(n.type){case W$:const r=n.details;this.cacheLCPCandidates&&r.fileType===Nn.IMAGE&&this.resourceEventIds.set(K7(n.details),n.id);break;case Z3:this.navigationEventId=n.id;break}},this.config=Object.assign(Object.assign({},nI),t)}enable(){}disable(){}onload(){this.context.eventBus.subscribe(op.EVENT,this.handleEvent),uxe(t=>this.handleLCP(t),{reportAllChanges:this.config.reportAllLCP}),hxe(t=>this.handleFID(t)),exe(t=>this.handleCLS(t),{reportAllChanges:!0}),lxe(t=>this.handleINP(t),{reportAllChanges:!0})}handleLCP(t){var n,r;const a=t.attribution,s={element:a?.element,url:a?.url,timeToFirstByte:a?.timeToFirstByte,resourceLoadDelay:a?.resourceLoadDelay,resourceLoadTime:a?.resourceLoadDuration,elementRenderDelay:a?.elementRenderDelay};if(a?.lcpResourceEntry){const i=K7(a?.lcpResourceEntry);s.lcpResourceEntry=this.resourceEventIds.get(i)}this.navigationEventId&&(s.navigationEntry=this.navigationEventId),(n=this.context)===null||n===void 0||n.record(hwe,{version:"1.0.0",value:t.value,attribution:s}),(r=this.context)===null||r===void 0||r.eventBus.unsubscribe(op.EVENT,this.handleEvent),this.resourceEventIds.clear(),this.navigationEventId=void 0}handleCLS(t){const n=t.attribution,{record:r,recordCandidate:a}=this.context;(this.config.reportAllCLS?r:a)(mwe,{version:"1.0.0",value:t.value,attribution:{largestShiftTarget:n?.largestShiftTarget,largestShiftValue:n?.largestShiftValue,largestShiftTime:n?.largestShiftTime,loadState:n?.loadState}})}handleFID(t){var n;const r=t.attribution;(n=this.context)===null||n===void 0||n.record(pwe,{version:"1.0.0",value:t.value,attribution:{eventTarget:r?.eventTarget,eventType:r?.eventType,eventTime:r?.eventTime,loadState:r?.loadState}})}handleINP(t){const n=t.attribution,{record:r,recordCandidate:a}=this.context;(this.config.reportAllINP?r:a)(gwe,{version:"1.0.0",value:t.value,attribution:{interactionTarget:n?.interactionTarget,interactionTime:n?.interactionTime,nextPaintTime:n?.nextPaintTime,interactionType:n?.interactionType,inputDelay:n?.inputDelay,processingDuration:n?.processingDuration,presentationDelay:n?.presentationDelay,loadState:n?.loadState}})}}const gxe="fetch";class vxe extends rI{constructor(t){super(gxe),this.isTracingEnabled=()=>this.context.config.enableXRay,this.isSessionRecorded=()=>{var n;return((n=this.context.getSession())===null||n===void 0?void 0:n.record)||!1},this.beginTrace=(n,r,a)=>{const s=$c(),i=iSe(n,r,!0),u=M$(this.config.logicalServiceName,s,this.context.config.enableW3CTraceId),c=P$(D$(n),s,i);return u.subsegments.push(c),this.isTraceIdHeaderEnabled(n)&&this.addXRayTraceIdHeader(n,r,a,u),u},this.addXRayTraceIdHeader=(n,r,a,s)=>{if(n.headers)return uSe(n.headers,s.trace_id,s.subsegments[0].id,this.context.config.enableW3CTraceId);r||(r={},[].push.call(a,r)),lSe(r,s.trace_id,s.subsegments[0].id,this.context.config.enableW3CTraceId)},this.endTrace=(n,r,a)=>{if(n){const s=$c();if(n.subsegments[0].end_time=s,n.end_time=s,r){n.subsegments[0].http.response={status:r.status},YA(r.status)?(n.subsegments[0].throttle=!0,n.throttle=!0):O$(r.status)?(n.subsegments[0].error=!0,n.error=!0):KA(r.status)&&(n.subsegments[0].fault=!0,n.fault=!0);const i=r.headers.get("Content-Length"),u=i?parseInt(i,10):NaN;isNaN(u)||(n.subsegments[0].http.response.content_length=u)}a&&(n.fault=!0,n.subsegments[0].fault=!0,a instanceof Object?this.appendErrorCauseFromObject(n.subsegments[0],a):Y$(a)&&this.appendErrorCauseFromPrimitive(n.subsegments[0],a.toString())),this.context.record(V$,n)}},this.createHttpEvent=(n,r)=>{const a=n;return{version:"1.0.0",request:{url:M0(n),method:r?.method?r.method:a.method?a.method:"GET"}}},this.recordHttpEventWithResponse=(n,r)=>{(this.config.recordAllRequests||!r.ok)&&(n.response={status:r.status,statusText:r.statusText},this.context.record(x1,n))},this.recordHttpEventWithError=(n,r)=>{n.error=tI({type:"error",error:r},this.config.stackTraceLength),this.context.record(x1,n)},this.fetch=(n,r,a,s,i)=>{const u=this.createHttpEvent(s,i);let c;if(!N$(M0(s),this.config))return n.apply(r,a);const f=dSe(s.headers,this.context.config.enableW3CTraceId);return f.traceId&&f.segmentId?(u.trace_id=f.traceId,u.segment_id=f.segmentId):this.isTracingEnabled()&&this.isSessionRecorded()&&(c=this.beginTrace(s,i,a),u.trace_id=c.trace_id,u.segment_id=c.subsegments[0].id),n.apply(r,a).then(h=>(this.endTrace(c,h,void 0),this.recordHttpEventWithResponse(u,h),h)).catch(h=>{throw this.endTrace(c,void 0,h),this.recordHttpEventWithError(u,h),h})},this.fetchWrapper=()=>{const n=this;return r=>function(a,s){return n.fetch(r,this,arguments,a,s)}},this.config=Object.assign(Object.assign({},T$),t)}get patches(){return[{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]}onload(){this.enable()}isTraceIdHeaderEnabled(t){const n=M0(t);return R$(n,this.config.addXRayTraceIdHeader)}appendErrorCauseFromPrimitive(t,n){t.cause={exceptions:[{type:n}]}}appendErrorCauseFromObject(t,n){t.cause={exceptions:[{type:n.name,message:n.message}]}}}class yxe extends Error{constructor(t){super(t),this.name="XMLHttpRequest error"}}const bxe="xhr";class Sxe extends rI{constructor(t){super(bxe),this.addXRayTraceIdHeader=n=>R$(n,this.config.addXRayTraceIdHeader),this.isTracingEnabled=()=>this.context.config.enableXRay,this.isSessionRecorded=()=>{var n;return((n=this.context.getSession())===null||n===void 0?void 0:n.record)||!1},this.handleXhrLoadEvent=n=>{const r=n.target,a=this.xhrMap.get(r);if(a){const s=$c();a.trace.end_time=s,a.trace.subsegments[0].end_time=s,a.trace.subsegments[0].http.response={status:r.status},YA(r.status)?(a.trace.subsegments[0].throttle=!0,a.trace.throttle=!0):O$(r.status)?(a.trace.subsegments[0].error=!0,a.trace.error=!0):KA(r.status)&&(a.trace.subsegments[0].fault=!0,a.trace.fault=!0);const i=r.getResponseHeader("Content-Length"),u=i?parseInt(i,10):NaN;isNaN(u)||(a.trace.subsegments[0].http.response.content_length=u),this.recordTraceEvent(a.trace),this.recordHttpEventWithResponse(a,r)}},this.handleXhrErrorEvent=n=>{const r=n.target,a=this.xhrMap.get(r),s="XMLHttpRequest error",i=r.statusText?r.status.toString()+": "+r.statusText:r.status.toString();if(a){const u=$c();a.trace.fault=!0,a.trace.end_time=u,a.trace.subsegments[0].end_time=u,a.trace.subsegments[0].fault=!0,a.trace.subsegments[0].cause={exceptions:[{type:s,message:i}]},this.recordTraceEvent(a.trace),this.recordHttpEventWithError(a,r,new yxe(i))}},this.handleXhrAbortEvent=n=>{const r=n.target,a=this.xhrMap.get(r);a&&this.handleXhrDetailsOnError(a,r,"XMLHttpRequest abort")},this.handleXhrTimeoutEvent=n=>{const r=n.target,a=this.xhrMap.get(r);this.handleXhrDetailsOnError(a,r,"XMLHttpRequest timeout")},this.initializeTrace=n=>{const r=$c();n.trace=M$(this.config.logicalServiceName,r,this.context.config.enableW3CTraceId),n.trace.subsegments.push(P$(D$(n.url),r,{request:{method:n.method,url:n.url,traced:!0}}))},this.sendWrapper=()=>{const n=this;return r=>function(){const a=n.xhrMap.get(this);return a&&(this.addEventListener("load",n.handleXhrLoadEvent),this.addEventListener("error",n.handleXhrErrorEvent),this.addEventListener("abort",n.handleXhrAbortEvent),this.addEventListener("timeout",n.handleXhrTimeoutEvent),n.initializeTrace(a),!n.isSyntheticsUA&&n.isTracingEnabled()&&n.addXRayTraceIdHeader(a.url)&&n.isSessionRecorded()&&(n.context.config.enableW3CTraceId?this.setRequestHeader(ay,XA(a.trace.trace_id,a.trace.subsegments[0].id)):this.setRequestHeader(ry,ZA(a.trace.trace_id,a.trace.subsegments[0].id)))),r.apply(this,arguments)}},this.openWrapper=()=>{const n=this;return r=>function(a,s,i){return N$(s,n.config)&&n.xhrMap.set(this,{url:s,method:a,async:i}),r.apply(this,arguments)}},this.config=Object.assign(Object.assign({},T$),t),this.xhrMap=new Map,this.isSyntheticsUA=navigator.userAgent.includes("CloudWatchSynthetics")}onload(){this.enable()}get patches(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:XMLHttpRequest.prototype,name:"open",wrapper:this.openWrapper}]}handleXhrDetailsOnError(t,n,r){if(t){const a=$c();t.trace.end_time=a,t.trace.subsegments[0].end_time=a,t.trace.subsegments[0].error=!0,t.trace.subsegments[0].cause={exceptions:[{type:r}]},this.recordTraceEvent(t.trace),this.recordHttpEventWithError(t,n,r)}}statusOk(t){return t>=200&&t<300}recordHttpEventWithResponse(t,n){this.xhrMap.delete(n);const r={version:"1.0.0",request:{method:t.method,url:t.url},response:{status:n.status,statusText:n.statusText}};this.isTracingEnabled()&&(r.trace_id=t.trace.trace_id,r.segment_id=t.trace.subsegments[0].id),(this.config.recordAllRequests||!this.statusOk(n.status))&&this.context.record(x1,r)}recordHttpEventWithError(t,n,r){this.xhrMap.delete(n);const a={version:"1.0.0",request:{method:t.method,url:t.url},error:tI({type:"error",error:r},this.config.stackTraceLength)};this.isTracingEnabled()&&(a.trace_id=t.trace.trace_id,a.segment_id=t.trace.subsegments[0].id),this.context.record(x1,a)}recordTraceEvent(t){!this.isSyntheticsUA&&this.isTracingEnabled()&&this.isSessionRecorded()&&this.context.record(V$,t)}}var k1={},wxe=Object.defineProperty,xxe=(e,t,n)=>t in e?wxe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xe=(e,t,n)=>xxe(e,typeof t!="symbol"?t+"":t,n),i9,Cxe=Object.defineProperty,Exe=(e,t,n)=>t in e?Cxe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l9=(e,t,n)=>Exe(e,typeof t!="symbol"?t+"":t,n),zn=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(zn||{});const u9={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},c9={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Lg={},_xe=()=>!!globalThis.Zone;function cI(e){if(Lg[e])return Lg[e];const t=globalThis[e],n=t.prototype,r=e in u9?u9[e]:void 0,a=!!(r&&r.every(u=>{var c,f;return!!((f=(c=Object.getOwnPropertyDescriptor(n,u))==null?void 0:c.get)!=null&&f.toString().includes("[native code]"))})),s=e in c9?c9[e]:void 0,i=!!(s&&s.every(u=>{var c;return typeof n[u]=="function"&&((c=n[u])==null?void 0:c.toString().includes("[native code]"))}));if(a&&i&&!_xe())return Lg[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const c=u.contentWindow;if(!c)return t.prototype;const f=c[e].prototype;return document.body.removeChild(u),f?Lg[e]=f:n}catch{return n}}const yE={};function jo(e,t,n){var r;const a=`${e}.${String(n)}`;if(yE[a])return yE[a].call(t);const s=cI(e),i=(r=Object.getOwnPropertyDescriptor(s,n))==null?void 0:r.get;return i?(yE[a]=i,i.call(t)):t[n]}const bE={};function iB(e,t,n){const r=`${e}.${String(n)}`;if(bE[r])return bE[r].bind(t);const s=cI(e)[n];return typeof s!="function"?t[n]:(bE[r]=s,s.bind(t))}function kxe(e){return jo("Node",e,"ownerDocument")}function Axe(e){return jo("Node",e,"childNodes")}function Ixe(e){return jo("Node",e,"parentNode")}function Rxe(e){return jo("Node",e,"parentElement")}function Txe(e){return jo("Node",e,"textContent")}function Oxe(e,t){return iB("Node",e,"contains")(t)}function Nxe(e){return iB("Node",e,"getRootNode")()}function Mxe(e){return!e||!("host"in e)?null:jo("ShadowRoot",e,"host")}function Pxe(e){return e.styleSheets}function Dxe(e){return!e||!("shadowRoot"in e)?null:jo("Element",e,"shadowRoot")}function Lxe(e,t){return jo("Element",e,"querySelector")(t)}function Uxe(e,t){return jo("Element",e,"querySelectorAll")(t)}function jxe(){return cI("MutationObserver").constructor}function zxe(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],a=n(r);return typeof a=="function"&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=a,()=>{e[t]=r}}catch{return()=>{}}}const br={ownerDocument:kxe,childNodes:Axe,parentNode:Ixe,parentElement:Rxe,textContent:Txe,contains:Oxe,getRootNode:Nxe,host:Mxe,styleSheets:Pxe,shadowRoot:Dxe,querySelector:Lxe,querySelectorAll:Uxe,mutationObserver:jxe,patch:zxe};function lB(e){return e.nodeType===e.ELEMENT_NODE}function Ph(e){const t=e&&"host"in e&&"mode"in e&&br.host(e)||null;return!!(t&&"shadowRoot"in t&&br.shadowRoot(t)===e)}function Dh(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Fxe(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function $xe(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function t_(e){try{const t=e.rules||e.cssRules;if(!t)return null;let n=e.href;!n&&e.ownerNode&&(n=e.ownerNode.baseURI);const r=Array.from(t,a=>uB(a,n)).join("");return Fxe(r)}catch{return null}}function uB(e,t){if(Hxe(e)){let n;try{n=t_(e.styleSheet)||$xe(e)}catch{n=e.cssText}return e.styleSheet.href?R1(n,e.styleSheet.href):n}else{let n=e.cssText;return qxe(e)&&e.selectorText.includes(":")&&(n=Bxe(n)),t?R1(n,t):n}}function Bxe(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Hxe(e){return"styleSheet"in e}function qxe(e){return"selectorText"in e}class cB{constructor(){l9(this,"idNodeMap",new Map),l9(this,"nodeMetaMap",new WeakMap)}getId(t){var n;return t?((n=this.getMeta(t))==null?void 0:n.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const a=this.nodeMetaMap.get(r);a&&this.nodeMetaMap.set(n,a)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Vxe(){return new cB}function A1({element:e,maskInputOptions:t,tagName:n,type:r,value:a,maskInputFn:s}){let i=a||"";const u=r&&su(r);return(t[n.toLowerCase()]||u&&t[u])&&(s?i=s(i,e):i="*".repeat(i.length)),i}function su(e){return e.toLowerCase()}const d9="__rrweb_original__";function Wxe(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let a=0;a<e.height;a+=n){const s=t.getImageData,i=d9 in s?s[d9]:s;if(new Uint32Array(i.call(t,r,a,Math.min(n,e.width-r),Math.min(n,e.height-a)).data.buffer).some(c=>c!==0))return!1}return!0}function I1(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?su(t):null}function dB(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,a=n.pathname.match(r);return a?.[1]??null}function Gxe(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}const Kxe=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Yxe=/^(?:[a-z+]+:)?\/\//i,Zxe=/^www\..*/i,Xxe=/^(data:)([^,]*),(.*)/i;function R1(e,t){return(e||"").replace(Kxe,(n,r,a,s,i,u)=>{const c=a||i||u,f=r||s||"";if(!c)return n;if(Yxe.test(c)||Zxe.test(c))return`url(${f}${c}${f})`;if(Xxe.test(c))return`url(${f}${c}${f})`;if(c[0]==="/")return`url(${f}${Gxe(t)+c}${f})`;const h=t.split("/"),m=c.split("/");h.pop();for(const g of m)g!=="."&&(g===".."?h.pop():h.push(g));return`url(${f}${h.join("/")}${f})`})}function Ug(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Qxe(e,t,n=!1){const r=Array.from(t.childNodes),a=[];let s=0;if(r.length>1&&e&&typeof e=="string"){let i=Ug(e,n);const u=i.length/e.length;for(let c=1;c<r.length;c++)if(r[c].textContent&&typeof r[c].textContent=="string"){const f=Ug(r[c].textContent,n),h=100;let m=3;for(;m<f.length&&(f[m].match(/[a-zA-Z0-9]/)||f.indexOf(f.substring(0,m),1)!==-1);m++);for(;m<f.length;m++){let g=f.substring(0,m),y=i.split(g),S=-1;if(y.length===2)S=y[0].length;else if(y.length>2&&y[0]===""&&r[c-1].textContent!=="")S=i.indexOf(g,1);else if(y.length===1){if(g=g.substring(0,g.length-1),y=i.split(g),y.length<=1)return a.push(e),a;m=h+1}else m===f.length-1&&(S=i.indexOf(g));if(y.length>=2&&m>h){const w=r[c-1].textContent;if(w&&typeof w=="string"){const x=Ug(w).length;S=i.indexOf(g,x)}S===-1&&(S=y[0].length)}if(S!==-1){let w=Math.floor(S/u);for(;w>0&&w<e.length;){if(s+=1,s>50*r.length)return a.push(e),a;const x=Ug(e.substring(0,w),n);if(x.length===S){a.push(e.substring(0,w)),e=e.substring(w),i=i.substring(S);break}else x.length<S?w+=Math.max(1,Math.floor((S-x.length)/u)):w-=Math.max(1,Math.floor((x.length-S)*u))}break}}}}return a.push(e),a}function Jxe(e,t){return Qxe(e,t).join("/* rr_split */")}let e2e=1;const t2e=new RegExp("[^a-z0-9-_:]"),ip=-2;function fB(){return e2e++}function n2e(e){if(e instanceof HTMLFormElement)return"form";const t=su(e.tagName);return t2e.test(t)?"div":t}let Cc,f9;const r2e=/^[^ \t\n\r\u000c]+/,a2e=/^[, \t\n\r\u000c]+/;function s2e(e,t){if(t.trim()==="")return t;let n=0;function r(s){let i;const u=s.exec(t.substring(n));return u?(i=u[0],n+=i.length,i):""}const a=[];for(;r(a2e),!(n>=t.length);){let s=r(r2e);if(s.slice(-1)===",")s=Hc(e,s.substring(0,s.length-1)),a.push(s);else{let i="";s=Hc(e,s);let u=!1;for(;;){const c=t.charAt(n);if(c===""){a.push((s+i).trim());break}else if(u)c===")"&&(u=!1);else if(c===","){n+=1,a.push((s+i).trim());break}else c==="("&&(u=!0);i+=c,n+=1}}}return a.join(", ")}const h9=new WeakMap;function Hc(e,t){return!t||t.trim()===""?t:dI(e,t)}function o2e(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function dI(e,t){let n=h9.get(e);if(n||(n=e.createElement("a"),h9.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function hB(e,t,n,r){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&["table","td","th"].includes(t)?Hc(e,r):n==="srcset"?s2e(e,r):n==="style"?R1(r,dI(e)):t==="object"&&n==="data"?Hc(e,r):r)}function pB(e,t,n){return["video","audio"].includes(e)&&t==="autoplay"}function i2e(e,t,n){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const a=e.classList[r];if(t.test(a))return!0}if(n)return e.matches(n)}catch{}return!1}function T1(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return n?T1(br.parentNode(e),t,n):!1;for(let r=e.classList.length;r--;){const a=e.classList[r];if(t.test(a))return!0}return n?T1(br.parentNode(e),t,n):!1}function mB(e,t,n,r){let a;if(lB(e)){if(a=e,!br.childNodes(a).length)return!1}else{if(br.parentElement(e)===null)return!1;a=br.parentElement(e)}try{if(typeof t=="string"){if(r){if(a.closest(`.${t}`))return!0}else if(a.classList.contains(t))return!0}else if(T1(a,t,r))return!0;if(n){if(r){if(a.closest(n))return!0}else if(a.matches(n))return!0}}catch{}return!1}function l2e(e,t,n){const r=e.contentWindow;if(!r)return;let a=!1,s;try{s=r.document.readyState}catch{return}if(s!=="complete"){const u=setTimeout(()=>{a||(t(),a=!0)},n);e.addEventListener("load",()=>{clearTimeout(u),a=!0,t()});return}const i="about:blank";if(r.location.href!==i||e.src===i||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function u2e(e,t,n){let r=!1,a;try{a=e.sheet}catch{return}if(a)return;const s=setTimeout(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{clearTimeout(s),r=!0,t()})}function c2e(e,t){const{doc:n,mirror:r,blockClass:a,blockSelector:s,needsMask:i,inlineStylesheet:u,maskInputOptions:c={},maskTextFn:f,maskInputFn:h,dataURLOptions:m={},inlineImages:g,recordCanvas:y,keepIframeSrcFn:S,newlyAddedElement:w=!1,cssCaptured:x=!1}=t,_=d2e(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:zn.Document,childNodes:[],compatMode:e.compatMode}:{type:zn.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:zn.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return h2e(e,{doc:n,blockClass:a,blockSelector:s,inlineStylesheet:u,maskInputOptions:c,maskInputFn:h,dataURLOptions:m,inlineImages:g,recordCanvas:y,keepIframeSrcFn:S,newlyAddedElement:w,rootId:_});case e.TEXT_NODE:return f2e(e,{doc:n,needsMask:i,maskTextFn:f,rootId:_,cssCaptured:x});case e.CDATA_SECTION_NODE:return{type:zn.CDATA,textContent:"",rootId:_};case e.COMMENT_NODE:return{type:zn.Comment,textContent:br.textContent(e)||"",rootId:_};default:return!1}}function d2e(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function f2e(e,t){const{needsMask:n,maskTextFn:r,rootId:a,cssCaptured:s}=t,i=br.parentNode(e),u=i&&i.tagName;let c="";const f=u==="STYLE"?!0:void 0,h=u==="SCRIPT"?!0:void 0;return h?c="SCRIPT_PLACEHOLDER":s||(c=br.textContent(e),f&&c&&(c=R1(c,dI(t.doc)))),!f&&!h&&c&&n&&(c=r?r(c,br.parentElement(e)):c.replace(/[\S]/g,"*")),{type:zn.Text,textContent:c||"",rootId:a}}function h2e(e,t){const{doc:n,blockClass:r,blockSelector:a,inlineStylesheet:s,maskInputOptions:i={},maskInputFn:u,dataURLOptions:c={},inlineImages:f,recordCanvas:h,keepIframeSrcFn:m,newlyAddedElement:g=!1,rootId:y}=t,S=i2e(e,r,a),w=n2e(e);let x={};const _=e.attributes.length;for(let A=0;A<_;A++){const R=e.attributes[A];pB(w,R.name,R.value)||(x[R.name]=hB(n,w,su(R.name),R.value))}if(w==="link"&&s){const A=Array.from(n.styleSheets).find(N=>N.href===e.href);let R=null;A&&(R=t_(A)),R&&(delete x.rel,delete x.href,x._cssText=R)}if(w==="style"&&e.sheet){let A=t_(e.sheet);A&&(e.childNodes.length>1&&(A=Jxe(A,e)),x._cssText=A)}if(["input","textarea","select"].includes(w)){const A=e.value,R=e.checked;x.type!=="radio"&&x.type!=="checkbox"&&x.type!=="submit"&&x.type!=="button"&&A?x.value=A1({element:e,type:I1(e),tagName:w,value:A,maskInputOptions:i,maskInputFn:u}):R&&(x.checked=R)}if(w==="option"&&(e.selected&&!i.select?x.selected=!0:delete x.selected),w==="dialog"&&e.open&&(x.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),w==="canvas"&&h){if(e.__context==="2d")Wxe(e)||(x.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){const A=e.toDataURL(c.type,c.quality),R=n.createElement("canvas");R.width=e.width,R.height=e.height;const N=R.toDataURL(c.type,c.quality);A!==N&&(x.rr_dataURL=A)}}if(w==="img"&&f){Cc||(Cc=n.createElement("canvas"),f9=Cc.getContext("2d"));const A=e,R=A.currentSrc||A.getAttribute("src")||"<unknown-src>",N=A.crossOrigin,O=()=>{A.removeEventListener("load",O);try{Cc.width=A.naturalWidth,Cc.height=A.naturalHeight,f9.drawImage(A,0,0),x.rr_dataURL=Cc.toDataURL(c.type,c.quality)}catch(T){if(A.crossOrigin!=="anonymous"){A.crossOrigin="anonymous",A.complete&&A.naturalWidth!==0?O():A.addEventListener("load",O);return}else console.warn(`Cannot inline img src=${R}! Error: ${T}`)}A.crossOrigin==="anonymous"&&(N?x.crossOrigin=N:A.removeAttribute("crossorigin"))};A.complete&&A.naturalWidth!==0?O():A.addEventListener("load",O)}if(["audio","video"].includes(w)){const A=x;A.rr_mediaState=e.paused?"paused":"played",A.rr_mediaCurrentTime=e.currentTime,A.rr_mediaPlaybackRate=e.playbackRate,A.rr_mediaMuted=e.muted,A.rr_mediaLoop=e.loop,A.rr_mediaVolume=e.volume}if(g||(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop)),S){const{width:A,height:R}=e.getBoundingClientRect();x={class:x.class,rr_width:`${A}px`,rr_height:`${R}px`}}w==="iframe"&&!m(x.src)&&(e.contentDocument||(x.rr_src=x.src),delete x.src);let k;try{customElements.get(w)&&(k=!0)}catch{}return{type:zn.Element,tagName:w,attributes:x,childNodes:[],isSVG:o2e(e)||void 0,needBlock:S,rootId:y,isCustom:k}}function Jt(e){return e==null?"":e.toLowerCase()}function gB(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e||{}}function p2e(e,t){if(t.comment&&e.type===zn.Comment)return!0;if(e.type===zn.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&dB(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Jt(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Jt(e.attributes.name)==="application-name"||Jt(e.attributes.rel)==="icon"||Jt(e.attributes.rel)==="apple-touch-icon"||Jt(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Jt(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Jt(e.attributes.property).match(/^(og|twitter|fb):/)||Jt(e.attributes.name).match(/^(og|twitter):/)||Jt(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Jt(e.attributes.name)==="robots"||Jt(e.attributes.name)==="googlebot"||Jt(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Jt(e.attributes.name)==="author"||Jt(e.attributes.name)==="generator"||Jt(e.attributes.name)==="framework"||Jt(e.attributes.name)==="publisher"||Jt(e.attributes.name)==="progid"||Jt(e.attributes.property).match(/^article:/)||Jt(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Jt(e.attributes.name)==="google-site-verification"||Jt(e.attributes.name)==="yandex-verification"||Jt(e.attributes.name)==="csrf-token"||Jt(e.attributes.name)==="p:domain_verify"||Jt(e.attributes.name)==="verify-v1"||Jt(e.attributes.name)==="verification"||Jt(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function qc(e,t){const{doc:n,mirror:r,blockClass:a,blockSelector:s,maskTextClass:i,maskTextSelector:u,skipChild:c=!1,inlineStylesheet:f=!0,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,slimDOMOptions:y,dataURLOptions:S={},inlineImages:w=!1,recordCanvas:x=!1,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:A=5e3,onStylesheetLoad:R,stylesheetLoadTimeout:N=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:T=!1,cssCaptured:P=!1}=t;let{needsMask:L}=t,{preserveWhiteSpace:q=!0}=t;L||(L=mB(e,i,u,L===void 0));const j=c2e(e,{doc:n,mirror:r,blockClass:a,blockSelector:s,needsMask:L,inlineStylesheet:f,maskInputOptions:h,maskTextFn:m,maskInputFn:g,dataURLOptions:S,inlineImages:w,recordCanvas:x,keepIframeSrcFn:O,newlyAddedElement:T,cssCaptured:P});if(!j)return console.warn(e,"not serialized"),null;let U;r.hasNode(e)?U=r.getId(e):p2e(j,y)||!q&&j.type===zn.Text&&!j.textContent.replace(/^\s+|\s+$/gm,"").length?U=ip:U=fB();const H=Object.assign(j,{id:U});if(r.add(e,H),U===ip)return null;_&&_(e);let Z=!c;if(H.type===zn.Element){Z=Z&&!H.needBlock,delete H.needBlock;const B=br.shadowRoot(e);B&&Dh(B)&&(H.isShadowHost=!0)}if((H.type===zn.Document||H.type===zn.Element)&&Z){y.headWhitespace&&H.type===zn.Element&&H.tagName==="head"&&(q=!1);const B={doc:n,mirror:r,blockClass:a,blockSelector:s,needsMask:L,maskTextClass:i,maskTextSelector:u,skipChild:c,inlineStylesheet:f,maskInputOptions:h,maskTextFn:m,maskInputFn:g,slimDOMOptions:y,dataURLOptions:S,inlineImages:w,recordCanvas:x,preserveWhiteSpace:q,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:A,onStylesheetLoad:R,stylesheetLoadTimeout:N,keepIframeSrcFn:O,cssCaptured:!1};if(!(H.type===zn.Element&&H.tagName==="textarea"&&H.attributes.value!==void 0)){H.type===zn.Element&&H.attributes._cssText!==void 0&&typeof H.attributes._cssText=="string"&&(B.cssCaptured=!0);for(const re of Array.from(br.childNodes(e))){const de=qc(re,B);de&&H.childNodes.push(de)}}let X=null;if(lB(e)&&(X=br.shadowRoot(e)))for(const re of Array.from(br.childNodes(X))){const de=qc(re,B);de&&(Dh(X)&&(de.isShadow=!0),H.childNodes.push(de))}}const se=br.parentNode(e);return se&&Ph(se)&&Dh(se)&&(H.isShadow=!0),H.type===zn.Element&&H.tagName==="iframe"&&l2e(e,()=>{const B=e.contentDocument;if(B&&k){const X=qc(B,{doc:B,mirror:r,blockClass:a,blockSelector:s,needsMask:L,maskTextClass:i,maskTextSelector:u,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskTextFn:m,maskInputFn:g,slimDOMOptions:y,dataURLOptions:S,inlineImages:w,recordCanvas:x,preserveWhiteSpace:q,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:A,onStylesheetLoad:R,stylesheetLoadTimeout:N,keepIframeSrcFn:O});X&&k(e,X)}},A),H.type===zn.Element&&H.tagName==="link"&&typeof H.attributes.rel=="string"&&(H.attributes.rel==="stylesheet"||H.attributes.rel==="preload"&&typeof H.attributes.href=="string"&&dB(H.attributes.href)==="css")&&u2e(e,()=>{if(R){const B=qc(e,{doc:n,mirror:r,blockClass:a,blockSelector:s,needsMask:L,maskTextClass:i,maskTextSelector:u,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskTextFn:m,maskInputFn:g,slimDOMOptions:y,dataURLOptions:S,inlineImages:w,recordCanvas:x,preserveWhiteSpace:q,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:A,onStylesheetLoad:R,stylesheetLoadTimeout:N,keepIframeSrcFn:O});B&&R(e,B)}},N),H}function m2e(e,t){const{mirror:n=new cB,blockClass:r="rr-block",blockSelector:a=null,maskTextClass:s="rr-mask",maskTextSelector:i=null,inlineStylesheet:u=!0,inlineImages:c=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskTextFn:m,maskInputFn:g,slimDOM:y=!1,dataURLOptions:S,preserveWhiteSpace:w,onSerialize:x,onIframeLoad:_,iframeLoadTimeout:k,onStylesheetLoad:A,stylesheetLoadTimeout:R,keepIframeSrcFn:N=()=>!1}=t||{},O=h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:h===!1?{password:!0}:h,T=gB(y);return qc(e,{doc:e,mirror:n,blockClass:r,blockSelector:a,maskTextClass:s,maskTextSelector:i,skipChild:!1,inlineStylesheet:u,maskInputOptions:O,maskTextFn:m,maskInputFn:g,slimDOMOptions:T,dataURLOptions:S,inlineImages:c,recordCanvas:f,preserveWhiteSpace:w,onSerialize:x,onIframeLoad:_,iframeLoadTimeout:k,onStylesheetLoad:A,stylesheetLoadTimeout:R,keepIframeSrcFn:N,newlyAddedElement:!1})}function g2e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function v2e(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var fI={exports:{}},ln=String,vB=function(){return{isColorSupported:!1,reset:ln,bold:ln,dim:ln,italic:ln,underline:ln,inverse:ln,hidden:ln,strikethrough:ln,black:ln,red:ln,green:ln,yellow:ln,blue:ln,magenta:ln,cyan:ln,white:ln,gray:ln,bgBlack:ln,bgRed:ln,bgGreen:ln,bgYellow:ln,bgBlue:ln,bgMagenta:ln,bgCyan:ln,bgWhite:ln}};fI.exports=vB();fI.exports.createColors=vB;var y2e=fI.exports;const b2e={},S2e=Object.freeze(Object.defineProperty({__proto__:null,default:b2e},Symbol.toStringTag,{value:"Module"})),rs=v2e(S2e);let p9=y2e,m9=rs,n_=class yB extends Error{constructor(t,n,r,a,s,i){super(t),this.name="CssSyntaxError",this.reason=t,s&&(this.file=s),a&&(this.source=a),i&&(this.plugin=i),typeof n<"u"&&typeof r<"u"&&(typeof n=="number"?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,yB)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let n=this.source;t==null&&(t=p9.isColorSupported),m9&&t&&(n=m9(n));let r=n.split(/\r?\n/),a=Math.max(this.line-3,0),s=Math.min(this.line+2,r.length),i=String(s).length,u,c;if(t){let{bold:f,gray:h,red:m}=p9.createColors(!0);u=g=>f(m(g)),c=g=>h(g)}else u=c=f=>f;return r.slice(a,s).map((f,h)=>{let m=a+1+h,g=" "+(" "+m).slice(-i)+" | ";if(m===this.line){let y=c(g.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+c(g)+f+`
242
+ `+y+u("^")}return" "+c(g)+f}).join(`
243
+ `)}toString(){let t=this.showSourceCode();return t&&(t=`
244
+
245
+ `+t+`
246
+ `),this.name+": "+this.message+t}};var hI=n_;n_.default=n_;var Up={};Up.isClean=Symbol("isClean");Up.my=Symbol("my");const g9={after:`
247
+ `,beforeClose:`
248
+ `,beforeComment:`
249
+ `,beforeDecl:`
250
+ `,beforeOpen:" ",beforeRule:`
251
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function w2e(e){return e[0].toUpperCase()+e.slice(1)}let r_=class{constructor(t){this.builder=t}atrule(t,n){let r="@"+t.name,a=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?r+=t.raws.afterName:a&&(r+=" "),t.nodes)this.block(t,r+a);else{let s=(t.raws.between||"")+(n?";":"");this.builder(r+a+s,t)}}beforeAfter(t,n){let r;t.type==="decl"?r=this.raw(t,null,"beforeDecl"):t.type==="comment"?r=this.raw(t,null,"beforeComment"):n==="before"?r=this.raw(t,null,"beforeRule"):r=this.raw(t,null,"beforeClose");let a=t.parent,s=0;for(;a&&a.type!=="root";)s+=1,a=a.parent;if(r.includes(`
252
+ `)){let i=this.raw(t,null,"indent");if(i.length)for(let u=0;u<s;u++)r+=i}return r}block(t,n){let r=this.raw(t,"between","beforeOpen");this.builder(n+r+"{",t,"start");let a;t.nodes&&t.nodes.length?(this.body(t),a=this.raw(t,"after")):a=this.raw(t,"after","emptyBody"),a&&this.builder(a),this.builder("}",t,"end")}body(t){let n=t.nodes.length-1;for(;n>0&&t.nodes[n].type==="comment";)n-=1;let r=this.raw(t,"semicolon");for(let a=0;a<t.nodes.length;a++){let s=t.nodes[a],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,n!==a||r)}}comment(t){let n=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+n+t.text+r+"*/",t)}decl(t,n){let r=this.raw(t,"between","colon"),a=t.prop+r+this.rawValue(t,"value");t.important&&(a+=t.raws.important||" !important"),n&&(a+=";"),this.builder(a,t)}document(t){this.body(t)}raw(t,n,r){let a;if(r||(r=n),n&&(a=t.raws[n],typeof a<"u"))return a;let s=t.parent;if(r==="before"&&(!s||s.type==="root"&&s.first===t||s&&s.type==="document"))return"";if(!s)return g9[r];let i=t.root();if(i.rawCache||(i.rawCache={}),typeof i.rawCache[r]<"u")return i.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(t,r);{let u="raw"+w2e(r);this[u]?a=this[u](i,t):i.walk(c=>{if(a=c.raws[n],typeof a<"u")return!1})}return typeof a>"u"&&(a=g9[r]),i.rawCache[r]=a,a}rawBeforeClose(t){let n;return t.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return n=r.raws.after,n.includes(`
253
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(t,n){let r;return t.walkComments(a=>{if(typeof a.raws.before<"u")return r=a.raws.before,r.includes(`
254
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,n){let r;return t.walkDecls(a=>{if(typeof a.raws.before<"u")return r=a.raws.before,r.includes(`
255
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){let n;return t.walk(r=>{if(r.type!=="decl"&&(n=r.raws.between,typeof n<"u"))return!1}),n}rawBeforeRule(t){let n;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&typeof r.raws.before<"u")return n=r.raws.before,n.includes(`
256
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(t){let n;return t.walkDecls(r=>{if(typeof r.raws.between<"u")return n=r.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(t){let n;return t.walk(r=>{if(r.nodes&&r.nodes.length===0&&(n=r.raws.after,typeof n<"u"))return!1}),n}rawIndent(t){if(t.raws.indent)return t.raws.indent;let n;return t.walk(r=>{let a=r.parent;if(a&&a!==t&&a.parent&&a.parent===t&&typeof r.raws.before<"u"){let s=r.raws.before.split(`
257
+ `);return n=s[s.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(t){let n;return t.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(n=r.raws.semicolon,typeof n<"u"))return!1}),n}rawValue(t,n){let r=t[n],a=t.raws[n];return a&&a.value===r?a.raw:r}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,n){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,n)}};var bB=r_;r_.default=r_;let x2e=bB;function a_(e,t){new x2e(t).stringify(e)}var cy=a_;a_.default=a_;let{isClean:jg,my:C2e}=Up,E2e=hI,_2e=bB,k2e=cy;function s_(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r==="proxyCache")continue;let a=e[r],s=typeof a;r==="parent"&&s==="object"?t&&(n[r]=t):r==="source"?n[r]=a:Array.isArray(a)?n[r]=a.map(i=>s_(i,n)):(s==="object"&&a!==null&&(a=s_(a)),n[r]=a)}return n}let o_=class{constructor(t={}){this.raws={},this[jg]=!1,this[C2e]=!0;for(let n in t)if(n==="nodes"){this.nodes=[];for(let r of t[n])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[n]=t[n]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let n=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let n in t)this[n]=t[n];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let n=s_(this);for(let r in t)n[r]=t[r];return n}cloneAfter(t={}){let n=this.clone(t);return this.parent.insertAfter(this,n),n}cloneBefore(t={}){let n=this.clone(t);return this.parent.insertBefore(this,n),n}error(t,n={}){if(this.source){let{end:r,start:a}=this.rangeBy(n);return this.source.input.error(t,{column:a.column,line:a.line},{column:r.column,line:r.line},n)}return new E2e(t)}getProxyProcessor(){return{get(t,n){return n==="proxyOf"?t:n==="root"?()=>t.root().toProxy():t[n]},set(t,n,r){return t[n]===r||(t[n]=r,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&t.markDirty()),!0}}}markDirty(){if(this[jg]){this[jg]=!1;let t=this;for(;t=t.parent;)t[jg]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t,n){let r=this.source.start;if(t.index)r=this.positionInside(t.index,n);else if(t.word){n=this.toString();let a=n.indexOf(t.word);a!==-1&&(r=this.positionInside(a,n))}return r}positionInside(t,n){let r=n||this.toString(),a=this.source.start.column,s=this.source.start.line;for(let i=0;i<t;i++)r[i]===`
258
+ `?(a=1,s+=1):a+=1;return{column:a,line:s}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t){let n={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:n.column+1,line:n.line};if(t.word){let a=this.toString(),s=a.indexOf(t.word);s!==-1&&(n=this.positionInside(s,a),r=this.positionInside(s+t.word.length,a))}else t.start?n={column:t.start.column,line:t.start.line}:t.index&&(n=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line}),{end:r,start:n}}raw(t,n){return new _2e().raw(this,t,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let n=this,r=!1;for(let a of t)a===this?r=!0:r?(this.parent.insertAfter(n,a),n=a):this.parent.insertBefore(n,a);r||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,n){let r={},a=n==null;n=n||new Map;let s=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i)||i==="parent"||i==="proxyCache")continue;let u=this[i];if(Array.isArray(u))r[i]=u.map(c=>typeof c=="object"&&c.toJSON?c.toJSON(null,n):c);else if(typeof u=="object"&&u.toJSON)r[i]=u.toJSON(null,n);else if(i==="source"){let c=n.get(u.input);c==null&&(c=s,n.set(u.input,s),s++),r[i]={end:u.end,inputId:c,start:u.start}}else r[i]=u}return a&&(r.inputs=[...n.keys()].map(i=>i.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=k2e){t.stringify&&(t=t.stringify);let n="";return t(this,r=>{n+=r}),n}warn(t,n,r){let a={node:this};for(let s in r)a[s]=r[s];return t.warn(n,a)}get proxyOf(){return this}};var dy=o_;o_.default=o_;let A2e=dy,i_=class extends A2e{constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var fy=i_;i_.default=i_;let I2e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",R2e=(e=21)=>{let t="",n=e;for(;n--;)t+=I2e[Math.random()*64|0];return t};var T2e={nanoid:R2e};let{SourceMapConsumer:v9,SourceMapGenerator:y9}=rs,{existsSync:O2e,readFileSync:N2e}=rs,{dirname:SE,join:M2e}=rs;function P2e(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}let l_=class{constructor(t,n){if(n.map===!1)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let r=n.map?n.map.prev:void 0,a=this.loadMap(n.from,r);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=SE(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new v9(this.text)),this.consumerCache}decodeInline(t){let n=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(a.test(t)||s.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(n.test(t)||r.test(t))return P2e(t.substr(RegExp.lastMatch.length));let i=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return typeof t!="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)}loadAnnotation(t){let n=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!n)return;let r=t.lastIndexOf(n.pop()),a=t.indexOf("*/",r);r>-1&&a>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,a)))}loadFile(t){if(this.root=SE(t),O2e(t))return this.mapFile=t,N2e(t,"utf-8").toString().trim()}loadMap(t,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let r=n(t);if(r){let a=this.loadFile(r);if(!a)throw new Error("Unable to load previous source map: "+r.toString());return a}}else{if(n instanceof v9)return y9.fromSourceMap(n).toString();if(n instanceof y9)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return t&&(r=M2e(SE(t),r)),this.loadFile(r)}}}startWith(t,n){return t?t.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var SB=l_;l_.default=l_;let{SourceMapConsumer:D2e,SourceMapGenerator:L2e}=rs,{fileURLToPath:b9,pathToFileURL:zg}=rs,{isAbsolute:u_,resolve:c_}=rs,{nanoid:U2e}=T2e,wE=rs,S9=hI,j2e=SB,xE=Symbol("fromOffsetCache"),z2e=!!(D2e&&L2e),w9=!!(c_&&u_),O1=class{constructor(t,n={}){if(t===null||typeof t>"u"||typeof t=="object"&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!w9||/^\w+:\/\//.test(n.from)||u_(n.from)?this.file=n.from:this.file=c_(n.from)),w9&&z2e){let r=new j2e(this.css,n);if(r.text){this.map=r;let a=r.consumer().file;!this.file&&a&&(this.file=this.mapResolve(a))}}this.file||(this.id="<input css "+U2e(6)+">"),this.map&&(this.map.file=this.from)}error(t,n,r,a={}){let s,i,u;if(n&&typeof n=="object"){let f=n,h=r;if(typeof f.offset=="number"){let m=this.fromOffset(f.offset);n=m.line,r=m.col}else n=f.line,r=f.column;if(typeof h.offset=="number"){let m=this.fromOffset(h.offset);i=m.line,u=m.col}else i=h.line,u=h.column}else if(!r){let f=this.fromOffset(n);n=f.line,r=f.col}let c=this.origin(n,r,i,u);return c?s=new S9(t,c.endLine===void 0?c.line:{column:c.column,line:c.line},c.endLine===void 0?c.column:{column:c.endColumn,line:c.endLine},c.source,c.file,a.plugin):s=new S9(t,i===void 0?n:{column:r,line:n},i===void 0?r:{column:u,line:i},this.css,this.file,a.plugin),s.input={column:r,endColumn:u,endLine:i,line:n,source:this.css},this.file&&(zg&&(s.input.url=zg(this.file).toString()),s.input.file=this.file),s}fromOffset(t){let n,r;if(this[xE])r=this[xE];else{let s=this.css.split(`
259
+ `);r=new Array(s.length);let i=0;for(let u=0,c=s.length;u<c;u++)r[u]=i,i+=s[u].length+1;this[xE]=r}n=r[r.length-1];let a=0;if(t>=n)a=r.length-1;else{let s=r.length-2,i;for(;a<s;)if(i=a+(s-a>>1),t<r[i])s=i-1;else if(t>=r[i+1])a=i+1;else{a=i;break}}return{col:t-r[a]+1,line:a+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:c_(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,n,r,a){if(!this.map)return!1;let s=this.map.consumer(),i=s.originalPositionFor({column:n,line:t});if(!i.source)return!1;let u;typeof r=="number"&&(u=s.originalPositionFor({column:a,line:r}));let c;u_(i.source)?c=zg(i.source):c=new URL(i.source,this.map.consumer().sourceRoot||zg(this.map.mapFile));let f={column:i.column,endColumn:u&&u.column,endLine:u&&u.line,line:i.line,url:c.toString()};if(c.protocol==="file:")if(b9)f.file=b9(c);else throw new Error("file: protocol is not available in this PostCSS build");let h=s.sourceContentFor(i.source);return h&&(f.source=h),f}toJSON(){let t={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(t[n]=this[n]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}};var hy=O1;O1.default=O1;wE&&wE.registerInput&&wE.registerInput(O1);let{SourceMapConsumer:wB,SourceMapGenerator:P0}=rs,{dirname:D0,relative:xB,resolve:CB,sep:EB}=rs,{pathToFileURL:x9}=rs,F2e=hy,$2e=!!(wB&&P0),B2e=!!(D0&&CB&&xB&&EB),H2e=class{constructor(t,n,r,a){this.stringify=t,this.mapOpts=r.map||{},this.root=n,this.opts=r,this.css=a,this.originalCSS=a,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let n=`
260
+ `;this.css.includes(`\r
261
+ `)&&(n=`\r
262
+ `),this.css+=n+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let n=this.toUrl(this.path(t.file)),r=t.root||D0(t.file),a;this.mapOpts.sourcesContent===!1?(a=new wB(t.text),a.sourcesContent&&(a.sourcesContent=null)):a=t.consumer(),this.map.applySourceMap(a,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let n=this.root.nodes.length-1;n>=0;n--)t=this.root.nodes[n],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),B2e&&$2e&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,n=>{t+=n}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=P0.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new P0({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new P0({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,n=1,r="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,i;this.stringify(this.root,(u,c,f)=>{if(this.css+=u,c&&f!=="end"&&(a.generated.line=t,a.generated.column=n-1,c.source&&c.source.start?(a.source=this.sourcePath(c),a.original.line=c.source.start.line,a.original.column=c.source.start.column-1,this.map.addMapping(a)):(a.source=r,a.original.line=1,a.original.column=0,this.map.addMapping(a))),s=u.match(/\n/g),s?(t+=s.length,i=u.lastIndexOf(`
263
+ `),n=u.length-i):n+=u.length,c&&f!=="start"){let h=c.parent||{raws:{}};(!(c.type==="decl"||c.type==="atrule"&&!c.nodes)||c!==h.last||h.raws.semicolon)&&(c.source&&c.source.end?(a.source=this.sourcePath(c),a.original.line=c.source.end.line,a.original.column=c.source.end.column-1,a.generated.line=t,a.generated.column=n-2,this.map.addMapping(a)):(a.source=r,a.original.line=1,a.original.column=0,a.generated.line=t,a.generated.column=n-1,this.map.addMapping(a)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let n=this.memoizedPaths.get(t);if(n)return n;let r=this.opts.to?D0(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=D0(CB(r,this.mapOpts.annotation)));let a=xB(r,t);return this.memoizedPaths.set(t,a),a}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let n=t.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let t=new F2e(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(n=>{if(n.source){let r=n.source.input.from;if(r&&!t[r]){t[r]=!0;let a=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(a,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let n=this.memoizedFileURLs.get(t);if(n)return n;if(x9){let r=x9(t).toString();return this.memoizedFileURLs.set(t,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let n=this.memoizedURLs.get(t);if(n)return n;EB==="\\"&&(t=t.replace(/\\/g,"/"));let r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}};var _B=H2e;let q2e=dy,d_=class extends q2e{constructor(t){super(t),this.type="comment"}};var py=d_;d_.default=d_;let{isClean:kB,my:AB}=Up,IB=fy,RB=py,V2e=dy,TB,pI,mI,OB;function NB(e){return e.map(t=>(t.nodes&&(t.nodes=NB(t.nodes)),delete t.source,t))}function MB(e){if(e[kB]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)MB(t)}let Oo=class PB extends V2e{append(...t){for(let n of t){let r=this.normalize(n,this.last);for(let a of r)this.proxyOf.nodes.push(a)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let n of this.nodes)n.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let n=this.getIterator(),r,a;for(;this.indexes[n]<this.proxyOf.nodes.length&&(r=this.indexes[n],a=t(this.proxyOf.nodes[r],r),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,n){return n==="proxyOf"?t:t[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?(...r)=>t[n](...r.map(a=>typeof a=="function"?(s,i)=>a(s.toProxy(),i):a)):n==="every"||n==="some"?r=>t[n]((a,...s)=>r(a.toProxy(),...s)):n==="root"?()=>t.root().toProxy():n==="nodes"?t.nodes.map(r=>r.toProxy()):n==="first"||n==="last"?t[n].toProxy():t[n]:t[n]},set(t,n,r){return t[n]===r||(t[n]=r,(n==="name"||n==="params"||n==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,n){let r=this.index(t),a=this.normalize(n,this.proxyOf.nodes[r]).reverse();r=this.index(t);for(let i of a)this.proxyOf.nodes.splice(r+1,0,i);let s;for(let i in this.indexes)s=this.indexes[i],r<s&&(this.indexes[i]=s+a.length);return this.markDirty(),this}insertBefore(t,n){let r=this.index(t),a=r===0?"prepend":!1,s=this.normalize(n,this.proxyOf.nodes[r],a).reverse();r=this.index(t);for(let u of s)this.proxyOf.nodes.splice(r,0,u);let i;for(let u in this.indexes)i=this.indexes[u],r<=i&&(this.indexes[u]=i+s.length);return this.markDirty(),this}normalize(t,n){if(typeof t=="string")t=NB(TB(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let a of t)a.parent&&a.parent.removeChild(a,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let a of t)a.parent&&a.parent.removeChild(a,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new IB(t)]}else if(t.selector)t=[new pI(t)];else if(t.name)t=[new mI(t)];else if(t.text)t=[new RB(t)];else throw new Error("Unknown node type in node creation");return t.map(a=>(a[AB]||PB.rebuild(a),a=a.proxyOf,a.parent&&a.parent.removeChild(a),a[kB]&&MB(a),typeof a.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(a.raws.before=n.raws.before.replace(/\S/g,"")),a.parent=this.proxyOf,a))}prepend(...t){t=t.reverse();for(let n of t){let r=this.normalize(n,this.first,"prepend").reverse();for(let a of r)this.proxyOf.nodes.unshift(a);for(let a in this.indexes)this.indexes[a]=this.indexes[a]+r.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let n;for(let r in this.indexes)n=this.indexes[r],n>=t&&(this.indexes[r]=n-1);return this.markDirty(),this}replaceValues(t,n,r){return r||(r=n,n={}),this.walkDecls(a=>{n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((n,r)=>{let a;try{a=t(n,r)}catch(s){throw n.addToError(s)}return a!==!1&&n.walk&&(a=n.walk(t)),a})}walkAtRules(t,n){return n?t instanceof RegExp?this.walk((r,a)=>{if(r.type==="atrule"&&t.test(r.name))return n(r,a)}):this.walk((r,a)=>{if(r.type==="atrule"&&r.name===t)return n(r,a)}):(n=t,this.walk((r,a)=>{if(r.type==="atrule")return n(r,a)}))}walkComments(t){return this.walk((n,r)=>{if(n.type==="comment")return t(n,r)})}walkDecls(t,n){return n?t instanceof RegExp?this.walk((r,a)=>{if(r.type==="decl"&&t.test(r.prop))return n(r,a)}):this.walk((r,a)=>{if(r.type==="decl"&&r.prop===t)return n(r,a)}):(n=t,this.walk((r,a)=>{if(r.type==="decl")return n(r,a)}))}walkRules(t,n){return n?t instanceof RegExp?this.walk((r,a)=>{if(r.type==="rule"&&t.test(r.selector))return n(r,a)}):this.walk((r,a)=>{if(r.type==="rule"&&r.selector===t)return n(r,a)}):(n=t,this.walk((r,a)=>{if(r.type==="rule")return n(r,a)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Oo.registerParse=e=>{TB=e};Oo.registerRule=e=>{pI=e};Oo.registerAtRule=e=>{mI=e};Oo.registerRoot=e=>{OB=e};var wu=Oo;Oo.default=Oo;Oo.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,mI.prototype):e.type==="rule"?Object.setPrototypeOf(e,pI.prototype):e.type==="decl"?Object.setPrototypeOf(e,IB.prototype):e.type==="comment"?Object.setPrototypeOf(e,RB.prototype):e.type==="root"&&Object.setPrototypeOf(e,OB.prototype),e[AB]=!0,e.nodes&&e.nodes.forEach(t=>{Oo.rebuild(t)})};let W2e=wu,DB,LB,lp=class extends W2e{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new DB(new LB,this,t).stringify()}};lp.registerLazyResult=e=>{DB=e};lp.registerProcessor=e=>{LB=e};var gI=lp;lp.default=lp;let f_=class{constructor(t,n={}){if(this.type="warning",this.text=t,n.node&&n.node.source){let r=n.node.rangeBy(n);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in n)this[r]=n[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var UB=f_;f_.default=f_;let G2e=UB,h_=class{constructor(t,n,r){this.processor=t,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new G2e(t,n);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>t.type==="warning")}get content(){return this.css}};var vI=h_;h_.default=h_;const CE=39,C9=34,Fg=92,E9=47,$g=10,sh=32,Bg=12,Hg=9,qg=13,K2e=91,Y2e=93,Z2e=40,X2e=41,Q2e=123,J2e=125,eCe=59,tCe=42,nCe=58,rCe=64,Vg=/[\t\n\f\r "#'()/;[\\\]{}]/g,Wg=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,aCe=/.[\r\n"'(/\\]/,_9=/[\da-f]/i;var sCe=function(t,n={}){let r=t.css.valueOf(),a=n.ignoreErrors,s,i,u,c,f,h,m,g,y,S,w=r.length,x=0,_=[],k=[];function A(){return x}function R(P){throw t.error("Unclosed "+P,x)}function N(){return k.length===0&&x>=w}function O(P){if(k.length)return k.pop();if(x>=w)return;let L=P?P.ignoreUnclosed:!1;switch(s=r.charCodeAt(x),s){case $g:case sh:case Hg:case qg:case Bg:{i=x;do i+=1,s=r.charCodeAt(i);while(s===sh||s===$g||s===Hg||s===qg||s===Bg);S=["space",r.slice(x,i)],x=i-1;break}case K2e:case Y2e:case Q2e:case J2e:case nCe:case eCe:case X2e:{let q=String.fromCharCode(s);S=[q,q,x];break}case Z2e:{if(g=_.length?_.pop()[1]:"",y=r.charCodeAt(x+1),g==="url"&&y!==CE&&y!==C9&&y!==sh&&y!==$g&&y!==Hg&&y!==Bg&&y!==qg){i=x;do{if(h=!1,i=r.indexOf(")",i+1),i===-1)if(a||L){i=x;break}else R("bracket");for(m=i;r.charCodeAt(m-1)===Fg;)m-=1,h=!h}while(h);S=["brackets",r.slice(x,i+1),x,i],x=i}else i=r.indexOf(")",x+1),c=r.slice(x,i+1),i===-1||aCe.test(c)?S=["(","(",x]:(S=["brackets",c,x,i],x=i);break}case CE:case C9:{u=s===CE?"'":'"',i=x;do{if(h=!1,i=r.indexOf(u,i+1),i===-1)if(a||L){i=x+1;break}else R("string");for(m=i;r.charCodeAt(m-1)===Fg;)m-=1,h=!h}while(h);S=["string",r.slice(x,i+1),x,i],x=i;break}case rCe:{Vg.lastIndex=x+1,Vg.test(r),Vg.lastIndex===0?i=r.length-1:i=Vg.lastIndex-2,S=["at-word",r.slice(x,i+1),x,i],x=i;break}case Fg:{for(i=x,f=!0;r.charCodeAt(i+1)===Fg;)i+=1,f=!f;if(s=r.charCodeAt(i+1),f&&s!==E9&&s!==sh&&s!==$g&&s!==Hg&&s!==qg&&s!==Bg&&(i+=1,_9.test(r.charAt(i)))){for(;_9.test(r.charAt(i+1));)i+=1;r.charCodeAt(i+1)===sh&&(i+=1)}S=["word",r.slice(x,i+1),x,i],x=i;break}default:{s===E9&&r.charCodeAt(x+1)===tCe?(i=r.indexOf("*/",x+2)+1,i===0&&(a||L?i=r.length:R("comment")),S=["comment",r.slice(x,i+1),x,i],x=i):(Wg.lastIndex=x+1,Wg.test(r),Wg.lastIndex===0?i=r.length-1:i=Wg.lastIndex-2,S=["word",r.slice(x,i+1),x,i],_.push(S),x=i);break}}return x++,S}function T(P){k.push(P)}return{back:T,endOfFile:N,nextToken:O,position:A}};let jB=wu,N1=class extends jB{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};var yI=N1;N1.default=N1;jB.registerAtRule(N1);let zB=wu,FB,$B,fd=class extends zB{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,n,r){let a=super.normalize(t);if(n){if(r==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let s of a)s.raws.before=n.raws.before}return a}removeChild(t,n){let r=this.index(t);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t={}){return new FB(new $B,this,t).stringify()}};fd.registerLazyResult=e=>{FB=e};fd.registerProcessor=e=>{$B=e};var jp=fd;fd.default=fd;zB.registerRoot(fd);let up={comma(e){return up.split(e,[","],!0)},space(e){let t=[" ",`
264
+ `," "];return up.split(e,t)},split(e,t,n){let r=[],a="",s=!1,i=0,u=!1,c="",f=!1;for(let h of e)f?f=!1:h==="\\"?f=!0:u?h===c&&(u=!1):h==='"'||h==="'"?(u=!0,c=h):h==="("?i+=1:h===")"?i>0&&(i-=1):i===0&&t.includes(h)&&(s=!0),s?(a!==""&&r.push(a.trim()),a="",s=!1):a+=h;return(n||a!=="")&&r.push(a.trim()),r}};var BB=up;up.default=up;let HB=wu,oCe=BB,M1=class extends HB{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return oCe.comma(this.selector)}set selectors(t){let n=this.selector?this.selector.match(/,\s*/):null,r=n?n[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}};var bI=M1;M1.default=M1;HB.registerRule(M1);let iCe=fy,lCe=sCe,uCe=py,cCe=yI,dCe=jp,k9=bI;const A9={empty:!0,space:!0};function fCe(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}let hCe=class{constructor(t){this.input=t,this.root=new dCe,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let n=new cCe;n.name=t[1].slice(1),n.name===""&&this.unnamedAtrule(n,t),this.init(n,t[2]);let r,a,s,i=!1,u=!1,c=[],f=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),r=t[0],r==="("||r==="["?f.push(r==="("?")":"]"):r==="{"&&f.length>0?f.push("}"):r===f[f.length-1]&&f.pop(),f.length===0)if(r===";"){n.source.end=this.getPosition(t[2]),n.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){u=!0;break}else if(r==="}"){if(c.length>0){for(s=c.length-1,a=c[s];a&&a[0]==="space";)a=c[--s];a&&(n.source.end=this.getPosition(a[3]||a[2]),n.source.end.offset++)}this.end(t);break}else c.push(t);else c.push(t);if(this.tokenizer.endOfFile()){i=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(n.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(n,"params",c),i&&(t=c[c.length-1],n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),u&&(n.nodes=[],this.current=n)}checkMissedSemicolon(t){let n=this.colon(t);if(n===!1)return;let r=0,a;for(let s=n-1;s>=0&&(a=t[s],!(a[0]!=="space"&&(r+=1,r===2)));s--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}colon(t){let n=0,r,a,s;for(let[i,u]of t.entries()){if(r=u,a=r[0],a==="("&&(n+=1),a===")"&&(n-=1),n===0&&a===":")if(!s)this.doubleColon(r);else{if(s[0]==="word"&&s[1]==="progid")continue;return i}s=r}return!1}comment(t){let n=new uCe;this.init(n,t[2]),n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++;let r=t[1].slice(2,-2);if(/^\s*$/.test(r))n.text="",n.raws.left=r,n.raws.right="";else{let a=r.match(/^(\s*)([^]*\S)(\s*)$/);n.text=a[2],n.raws.left=a[1],n.raws.right=a[3]}}createTokenizer(){this.tokenizer=lCe(this.input)}decl(t,n){let r=new iCe;this.init(r,t[0][2]);let a=t[t.length-1];for(a[0]===";"&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(a[3]||a[2]||fCe(t)),r.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let f=t[0][0];if(f===":"||f==="space"||f==="comment")break;r.prop+=t.shift()[1]}r.raws.between="";let s;for(;t.length;)if(s=t.shift(),s[0]===":"){r.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),r.raws.between+=s[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i=[],u;for(;t.length&&(u=t[0][0],!(u!=="space"&&u!=="comment"));)i.push(t.shift());this.precheckMissedSemicolon(t);for(let f=t.length-1;f>=0;f--){if(s=t[f],s[1].toLowerCase()==="!important"){r.important=!0;let h=this.stringFrom(t,f);h=this.spacesFromEnd(t)+h,h!==" !important"&&(r.raws.important=h);break}else if(s[1].toLowerCase()==="important"){let h=t.slice(0),m="";for(let g=f;g>0;g--){let y=h[g][0];if(m.trim().indexOf("!")===0&&y!=="space")break;m=h.pop()[1]+m}m.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=m,t=h)}if(s[0]!=="space"&&s[0]!=="comment")break}t.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(r.raws.between+=i.map(f=>f[1]).join(""),i=[]),this.raw(r,"value",i.concat(t),n),r.value.includes(":")&&!n&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let n=new k9;this.init(n,t[2]),n.selector="",n.raws.between="",this.current=n}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let n=this.input.fromOffset(t);return{column:n.col,line:n.line,offset:t}}init(t,n){this.current.push(t),t.source={input:this.input,start:this.getPosition(n)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let n=!1,r=null,a=!1,s=null,i=[],u=t[1].startsWith("--"),c=[],f=t;for(;f;){if(r=f[0],c.push(f),r==="("||r==="[")s||(s=f),i.push(r==="("?")":"]");else if(u&&a&&r==="{")s||(s=f),i.push("}");else if(i.length===0)if(r===";")if(a){this.decl(c,u);return}else break;else if(r==="{"){this.rule(c);return}else if(r==="}"){this.tokenizer.back(c.pop()),n=!0;break}else r===":"&&(a=!0);else r===i[i.length-1]&&(i.pop(),i.length===0&&(s=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),i.length>0&&this.unclosedBracket(s),n&&a){if(!u)for(;c.length&&(f=c[c.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(c.pop());this.decl(c,u)}else this.unknownWord(c)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,n,r,a){let s,i,u=r.length,c="",f=!0,h,m;for(let g=0;g<u;g+=1)s=r[g],i=s[0],i==="space"&&g===u-1&&!a?f=!1:i==="comment"?(m=r[g-1]?r[g-1][0]:"empty",h=r[g+1]?r[g+1][0]:"empty",!A9[m]&&!A9[h]?c.slice(-1)===","?f=!1:c+=s[1]:f=!1):c+=s[1];if(!f){let g=r.reduce((y,S)=>y+S[1],"");t.raws[n]={raw:g,value:c}}t[n]=c}rule(t){t.pop();let n=new k9;this.init(n,t[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(n,"selector",t),this.current=n}spacesAndCommentsFromEnd(t){let n,r="";for(;t.length&&(n=t[t.length-1][0],!(n!=="space"&&n!=="comment"));)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){let n,r="";for(;t.length&&(n=t[0][0],!(n!=="space"&&n!=="comment"));)r+=t.shift()[1];return r}spacesFromEnd(t){let n,r="";for(;t.length&&(n=t[t.length-1][0],n==="space");)r=t.pop()[1]+r;return r}stringFrom(t,n){let r="";for(let a=n;a<t.length;a++)r+=t[a][1];return t.splice(n,t.length-n),r}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})}};var pCe=hCe;let mCe=wu,gCe=pCe,vCe=hy;function P1(e,t){let n=new vCe(e,t),r=new gCe(n);try{r.parse()}catch(a){throw a}return r.root}var SI=P1;P1.default=P1;mCe.registerParse(P1);let{isClean:Ss,my:yCe}=Up,bCe=_B,SCe=cy,wCe=wu,xCe=gI,I9=vI,CCe=SI,ECe=jp;const _Ce={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},kCe={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},ACe={Once:!0,postcssPlugin:!0,prepare:!0},hd=0;function oh(e){return typeof e=="object"&&typeof e.then=="function"}function qB(e){let t=!1,n=_Ce[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,hd,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,hd,n+"Exit"]:[n,n+"Exit"]}function R9(e){let t;return e.type==="document"?t=["Document",hd,"DocumentExit"]:e.type==="root"?t=["Root",hd,"RootExit"]:t=qB(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function p_(e){return e[Ss]=!1,e.nodes&&e.nodes.forEach(t=>p_(t)),e}let m_={},pd=class VB{constructor(t,n,r){this.stringified=!1,this.processed=!1;let a;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))a=p_(n);else if(n instanceof VB||n instanceof I9)a=p_(n.root),n.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let s=CCe;r.syntax&&(s=r.syntax.parse),r.parser&&(s=r.parser),s.parse&&(s=s.parse);try{a=s(n,r)}catch(i){this.processed=!0,this.error=i}a&&!a[yCe]&&wCe.rebuild(a)}this.result=new I9(t,a,r),this.helpers={...m_,postcss:m_,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,n){let r=this.result.lastPlugin;try{n&&n.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin?(t.plugin=r.postcssPlugin,t.setMessage()):r.postcssVersion}catch(a){console&&console.error&&console.error(a)}return t}prepareVisitors(){this.listeners={};let t=(n,r,a)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([n,a])};for(let n of this.plugins)if(typeof n=="object")for(let r in n){if(!kCe[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ACe[r])if(typeof n[r]=="object")for(let a in n[r])a==="*"?t(n,r,n[r][a]):t(n,r+"-"+a.toLowerCase(),n[r][a]);else typeof n[r]=="function"&&t(n,r,n[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let n=this.plugins[t],r=this.runOnRoot(n);if(oh(r))try{await r}catch(a){throw this.handleError(a)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Ss];){t[Ss]=!0;let n=[R9(t)];for(;n.length>0;){let r=this.visitTick(n);if(oh(r))try{await r}catch(a){let s=n[n.length-1].node;throw this.handleError(a,s)}}}if(this.listeners.OnceExit)for(let[n,r]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(t.type==="document"){let a=t.nodes.map(s=>r(s,this.helpers));await Promise.all(a)}else await r(t,this.helpers)}catch(a){throw this.handleError(a)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(r=>t.Once(r,this.helpers));return oh(n[0])?Promise.all(n):n}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(n){throw this.handleError(n)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,n=SCe;t.syntax&&(n=t.syntax.stringify),t.stringifier&&(n=t.stringifier),n.stringify&&(n=n.stringify);let a=new bCe(n,this.result.root,this.result.opts).generate();return this.result.css=a[0],this.result.map=a[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let n=this.runOnRoot(t);if(oh(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Ss];)t[Ss]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let n of t.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,n){return this.async().then(t,n)}toString(){return this.css}visitSync(t,n){for(let[r,a]of t){this.result.lastPlugin=r;let s;try{s=a(n,this.helpers)}catch(i){throw this.handleError(i,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(oh(s))throw this.getAsyncError()}}visitTick(t){let n=t[t.length-1],{node:r,visitors:a}=n;if(r.type!=="root"&&r.type!=="document"&&!r.parent){t.pop();return}if(a.length>0&&n.visitorIndex<a.length){let[i,u]=a[n.visitorIndex];n.visitorIndex+=1,n.visitorIndex===a.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=i;try{return u(r.toProxy(),this.helpers)}catch(c){throw this.handleError(c,r)}}if(n.iterator!==0){let i=n.iterator,u;for(;u=r.nodes[r.indexes[i]];)if(r.indexes[i]+=1,!u[Ss]){u[Ss]=!0,t.push(R9(u));return}n.iterator=0,delete r.indexes[i]}let s=n.events;for(;n.eventIndex<s.length;){let i=s[n.eventIndex];if(n.eventIndex+=1,i===hd){r.nodes&&r.nodes.length&&(r[Ss]=!0,n.iterator=r.getIterator());return}else if(this.listeners[i]){n.visitors=this.listeners[i];return}}t.pop()}walkSync(t){t[Ss]=!0;let n=qB(t);for(let r of n)if(r===hd)t.nodes&&t.each(a=>{a[Ss]||this.walkSync(a)});else{let a=this.listeners[r];if(a&&this.visitSync(a,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};pd.registerPostcss=e=>{m_=e};var WB=pd;pd.default=pd;ECe.registerLazyResult(pd);xCe.registerLazyResult(pd);let ICe=_B,RCe=cy,TCe=SI;const OCe=vI;let g_=class{constructor(t,n,r){n=n.toString(),this.stringified=!1,this._processor=t,this._css=n,this._opts=r,this._map=void 0;let a,s=RCe;this.result=new OCe(this._processor,a,this._opts),this.result.css=n;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let u=new ICe(s,a,this._opts,n);if(u.isMap()){let[c,f]=u.generate();c&&(this.result.css=c),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,n){return this.async().then(t,n)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,n=TCe;try{t=n(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}};var NCe=g_;g_.default=g_;let MCe=NCe,PCe=WB,DCe=gI,LCe=jp,cp=class{constructor(t=[]){this.version="8.4.38",this.plugins=this.normalize(t)}normalize(t){let n=[];for(let r of t)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))n=n.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)n.push(r);else if(typeof r=="function")n.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return n}process(t,n={}){return!this.plugins.length&&!n.parser&&!n.stringifier&&!n.syntax?new MCe(this,t,n):new PCe(this,t,n)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};var UCe=cp;cp.default=cp;LCe.registerProcessor(cp);DCe.registerProcessor(cp);let jCe=fy,zCe=SB,FCe=py,$Ce=yI,BCe=hy,HCe=jp,qCe=bI;function dp(e,t){if(Array.isArray(e))return e.map(a=>dp(a));let{inputs:n,...r}=e;if(n){t=[];for(let a of n){let s={...a,__proto__:BCe.prototype};s.map&&(s.map={...s.map,__proto__:zCe.prototype}),t.push(s)}}if(r.nodes&&(r.nodes=e.nodes.map(a=>dp(a,t))),r.source){let{inputId:a,...s}=r.source;r.source=s,a!=null&&(r.source.input=t[a])}if(r.type==="root")return new HCe(r);if(r.type==="decl")return new jCe(r);if(r.type==="rule")return new qCe(r);if(r.type==="comment")return new FCe(r);if(r.type==="atrule")return new $Ce(r);throw new Error("Unknown node type: "+e.type)}var VCe=dp;dp.default=dp;let WCe=hI,GB=fy,GCe=WB,KCe=wu,wI=UCe,YCe=cy,ZCe=VCe,KB=gI,XCe=UB,YB=py,ZB=yI,QCe=vI,JCe=hy,eEe=SI,tEe=BB,XB=bI,QB=jp,nEe=dy;function $t(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new wI(e)}$t.plugin=function(t,n){let r=!1;function a(...i){console&&console.warn&&!r&&(r=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
265
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),k1.LANG&&k1.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
266
+ https://www.w3ctech.com/topic/2226`));let u=n(...i);return u.postcssPlugin=t,u.postcssVersion=new wI().version,u}let s;return Object.defineProperty(a,"postcss",{get(){return s||(s=a()),s}}),a.process=function(i,u,c){return $t([a(c)]).process(i,u)},a};$t.stringify=YCe;$t.parse=eEe;$t.fromJSON=ZCe;$t.list=tEe;$t.comment=e=>new YB(e);$t.atRule=e=>new ZB(e);$t.decl=e=>new GB(e);$t.rule=e=>new XB(e);$t.root=e=>new QB(e);$t.document=e=>new KB(e);$t.CssSyntaxError=WCe;$t.Declaration=GB;$t.Container=KCe;$t.Processor=wI;$t.Document=KB;$t.Comment=YB;$t.Warning=XCe;$t.AtRule=ZB;$t.Result=QCe;$t.Input=JCe;$t.Rule=XB;$t.Root=QB;$t.Node=nEe;GCe.registerPostcss($t);var rEe=$t;$t.default=$t;const pn=g2e(rEe);pn.stringify;pn.fromJSON;pn.plugin;pn.parse;pn.list;pn.document;pn.comment;pn.atRule;pn.rule;pn.decl;pn.root;pn.CssSyntaxError;pn.Declaration;pn.Container;pn.Processor;pn.Document;pn.Comment;pn.Warning;pn.AtRule;pn.Result;pn.Input;pn.Rule;pn.Root;pn.Node;var aEe=Object.defineProperty,sEe=(e,t,n)=>t in e?aEe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_a=(e,t,n)=>sEe(e,typeof t!="symbol"?t+"":t,n);function oEe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function iEe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var xI={exports:{}},un=String,JB=function(){return{isColorSupported:!1,reset:un,bold:un,dim:un,italic:un,underline:un,inverse:un,hidden:un,strikethrough:un,black:un,red:un,green:un,yellow:un,blue:un,magenta:un,cyan:un,white:un,gray:un,bgBlack:un,bgRed:un,bgGreen:un,bgYellow:un,bgBlue:un,bgMagenta:un,bgCyan:un,bgWhite:un}};xI.exports=JB();xI.exports.createColors=JB;var lEe=xI.exports;const uEe={},cEe=Object.freeze(Object.defineProperty({__proto__:null,default:uEe},Symbol.toStringTag,{value:"Module"})),as=iEe(cEe);let T9=lEe,O9=as,v_=class eH extends Error{constructor(t,n,r,a,s,i){super(t),this.name="CssSyntaxError",this.reason=t,s&&(this.file=s),a&&(this.source=a),i&&(this.plugin=i),typeof n<"u"&&typeof r<"u"&&(typeof n=="number"?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,eH)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let n=this.source;t==null&&(t=T9.isColorSupported),O9&&t&&(n=O9(n));let r=n.split(/\r?\n/),a=Math.max(this.line-3,0),s=Math.min(this.line+2,r.length),i=String(s).length,u,c;if(t){let{bold:f,gray:h,red:m}=T9.createColors(!0);u=g=>f(m(g)),c=g=>h(g)}else u=c=f=>f;return r.slice(a,s).map((f,h)=>{let m=a+1+h,g=" "+(" "+m).slice(-i)+" | ";if(m===this.line){let y=c(g.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+c(g)+f+`
267
+ `+y+u("^")}return" "+c(g)+f}).join(`
268
+ `)}toString(){let t=this.showSourceCode();return t&&(t=`
269
+
270
+ `+t+`
271
+ `),this.name+": "+this.message+t}};var CI=v_;v_.default=v_;var zp={};zp.isClean=Symbol("isClean");zp.my=Symbol("my");const N9={after:`
272
+ `,beforeClose:`
273
+ `,beforeComment:`
274
+ `,beforeDecl:`
275
+ `,beforeOpen:" ",beforeRule:`
276
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function dEe(e){return e[0].toUpperCase()+e.slice(1)}let y_=class{constructor(t){this.builder=t}atrule(t,n){let r="@"+t.name,a=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?r+=t.raws.afterName:a&&(r+=" "),t.nodes)this.block(t,r+a);else{let s=(t.raws.between||"")+(n?";":"");this.builder(r+a+s,t)}}beforeAfter(t,n){let r;t.type==="decl"?r=this.raw(t,null,"beforeDecl"):t.type==="comment"?r=this.raw(t,null,"beforeComment"):n==="before"?r=this.raw(t,null,"beforeRule"):r=this.raw(t,null,"beforeClose");let a=t.parent,s=0;for(;a&&a.type!=="root";)s+=1,a=a.parent;if(r.includes(`
277
+ `)){let i=this.raw(t,null,"indent");if(i.length)for(let u=0;u<s;u++)r+=i}return r}block(t,n){let r=this.raw(t,"between","beforeOpen");this.builder(n+r+"{",t,"start");let a;t.nodes&&t.nodes.length?(this.body(t),a=this.raw(t,"after")):a=this.raw(t,"after","emptyBody"),a&&this.builder(a),this.builder("}",t,"end")}body(t){let n=t.nodes.length-1;for(;n>0&&t.nodes[n].type==="comment";)n-=1;let r=this.raw(t,"semicolon");for(let a=0;a<t.nodes.length;a++){let s=t.nodes[a],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,n!==a||r)}}comment(t){let n=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+n+t.text+r+"*/",t)}decl(t,n){let r=this.raw(t,"between","colon"),a=t.prop+r+this.rawValue(t,"value");t.important&&(a+=t.raws.important||" !important"),n&&(a+=";"),this.builder(a,t)}document(t){this.body(t)}raw(t,n,r){let a;if(r||(r=n),n&&(a=t.raws[n],typeof a<"u"))return a;let s=t.parent;if(r==="before"&&(!s||s.type==="root"&&s.first===t||s&&s.type==="document"))return"";if(!s)return N9[r];let i=t.root();if(i.rawCache||(i.rawCache={}),typeof i.rawCache[r]<"u")return i.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(t,r);{let u="raw"+dEe(r);this[u]?a=this[u](i,t):i.walk(c=>{if(a=c.raws[n],typeof a<"u")return!1})}return typeof a>"u"&&(a=N9[r]),i.rawCache[r]=a,a}rawBeforeClose(t){let n;return t.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return n=r.raws.after,n.includes(`
278
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(t,n){let r;return t.walkComments(a=>{if(typeof a.raws.before<"u")return r=a.raws.before,r.includes(`
279
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,n){let r;return t.walkDecls(a=>{if(typeof a.raws.before<"u")return r=a.raws.before,r.includes(`
280
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){let n;return t.walk(r=>{if(r.type!=="decl"&&(n=r.raws.between,typeof n<"u"))return!1}),n}rawBeforeRule(t){let n;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&typeof r.raws.before<"u")return n=r.raws.before,n.includes(`
281
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(t){let n;return t.walkDecls(r=>{if(typeof r.raws.between<"u")return n=r.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(t){let n;return t.walk(r=>{if(r.nodes&&r.nodes.length===0&&(n=r.raws.after,typeof n<"u"))return!1}),n}rawIndent(t){if(t.raws.indent)return t.raws.indent;let n;return t.walk(r=>{let a=r.parent;if(a&&a!==t&&a.parent&&a.parent===t&&typeof r.raws.before<"u"){let s=r.raws.before.split(`
282
+ `);return n=s[s.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(t){let n;return t.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(n=r.raws.semicolon,typeof n<"u"))return!1}),n}rawValue(t,n){let r=t[n],a=t.raws[n];return a&&a.value===r?a.raw:r}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,n){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,n)}};var tH=y_;y_.default=y_;let fEe=tH;function b_(e,t){new fEe(t).stringify(e)}var my=b_;b_.default=b_;let{isClean:Gg,my:hEe}=zp,pEe=CI,mEe=tH,gEe=my;function S_(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r==="proxyCache")continue;let a=e[r],s=typeof a;r==="parent"&&s==="object"?t&&(n[r]=t):r==="source"?n[r]=a:Array.isArray(a)?n[r]=a.map(i=>S_(i,n)):(s==="object"&&a!==null&&(a=S_(a)),n[r]=a)}return n}let w_=class{constructor(t={}){this.raws={},this[Gg]=!1,this[hEe]=!0;for(let n in t)if(n==="nodes"){this.nodes=[];for(let r of t[n])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[n]=t[n]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let n=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let n in t)this[n]=t[n];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let n=S_(this);for(let r in t)n[r]=t[r];return n}cloneAfter(t={}){let n=this.clone(t);return this.parent.insertAfter(this,n),n}cloneBefore(t={}){let n=this.clone(t);return this.parent.insertBefore(this,n),n}error(t,n={}){if(this.source){let{end:r,start:a}=this.rangeBy(n);return this.source.input.error(t,{column:a.column,line:a.line},{column:r.column,line:r.line},n)}return new pEe(t)}getProxyProcessor(){return{get(t,n){return n==="proxyOf"?t:n==="root"?()=>t.root().toProxy():t[n]},set(t,n,r){return t[n]===r||(t[n]=r,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&t.markDirty()),!0}}}markDirty(){if(this[Gg]){this[Gg]=!1;let t=this;for(;t=t.parent;)t[Gg]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t,n){let r=this.source.start;if(t.index)r=this.positionInside(t.index,n);else if(t.word){n=this.toString();let a=n.indexOf(t.word);a!==-1&&(r=this.positionInside(a,n))}return r}positionInside(t,n){let r=n||this.toString(),a=this.source.start.column,s=this.source.start.line;for(let i=0;i<t;i++)r[i]===`
283
+ `?(a=1,s+=1):a+=1;return{column:a,line:s}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t){let n={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:n.column+1,line:n.line};if(t.word){let a=this.toString(),s=a.indexOf(t.word);s!==-1&&(n=this.positionInside(s,a),r=this.positionInside(s+t.word.length,a))}else t.start?n={column:t.start.column,line:t.start.line}:t.index&&(n=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line}),{end:r,start:n}}raw(t,n){return new mEe().raw(this,t,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let n=this,r=!1;for(let a of t)a===this?r=!0:r?(this.parent.insertAfter(n,a),n=a):this.parent.insertBefore(n,a);r||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,n){let r={},a=n==null;n=n||new Map;let s=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i)||i==="parent"||i==="proxyCache")continue;let u=this[i];if(Array.isArray(u))r[i]=u.map(c=>typeof c=="object"&&c.toJSON?c.toJSON(null,n):c);else if(typeof u=="object"&&u.toJSON)r[i]=u.toJSON(null,n);else if(i==="source"){let c=n.get(u.input);c==null&&(c=s,n.set(u.input,s),s++),r[i]={end:u.end,inputId:c,start:u.start}}else r[i]=u}return a&&(r.inputs=[...n.keys()].map(i=>i.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=gEe){t.stringify&&(t=t.stringify);let n="";return t(this,r=>{n+=r}),n}warn(t,n,r){let a={node:this};for(let s in r)a[s]=r[s];return t.warn(n,a)}get proxyOf(){return this}};var gy=w_;w_.default=w_;let vEe=gy,x_=class extends vEe{constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var vy=x_;x_.default=x_;let yEe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",bEe=(e=21)=>{let t="",n=e;for(;n--;)t+=yEe[Math.random()*64|0];return t};var SEe={nanoid:bEe};let{SourceMapConsumer:M9,SourceMapGenerator:P9}=as,{existsSync:wEe,readFileSync:xEe}=as,{dirname:EE,join:CEe}=as;function EEe(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}let C_=class{constructor(t,n){if(n.map===!1)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let r=n.map?n.map.prev:void 0,a=this.loadMap(n.from,r);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=EE(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new M9(this.text)),this.consumerCache}decodeInline(t){let n=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(a.test(t)||s.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(n.test(t)||r.test(t))return EEe(t.substr(RegExp.lastMatch.length));let i=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return typeof t!="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)}loadAnnotation(t){let n=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!n)return;let r=t.lastIndexOf(n.pop()),a=t.indexOf("*/",r);r>-1&&a>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,a)))}loadFile(t){if(this.root=EE(t),wEe(t))return this.mapFile=t,xEe(t,"utf-8").toString().trim()}loadMap(t,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let r=n(t);if(r){let a=this.loadFile(r);if(!a)throw new Error("Unable to load previous source map: "+r.toString());return a}}else{if(n instanceof M9)return P9.fromSourceMap(n).toString();if(n instanceof P9)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return t&&(r=CEe(EE(t),r)),this.loadFile(r)}}}startWith(t,n){return t?t.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var nH=C_;C_.default=C_;let{SourceMapConsumer:_Ee,SourceMapGenerator:kEe}=as,{fileURLToPath:D9,pathToFileURL:Kg}=as,{isAbsolute:E_,resolve:__}=as,{nanoid:AEe}=SEe,_E=as,L9=CI,IEe=nH,kE=Symbol("fromOffsetCache"),REe=!!(_Ee&&kEe),U9=!!(__&&E_),D1=class{constructor(t,n={}){if(t===null||typeof t>"u"||typeof t=="object"&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!U9||/^\w+:\/\//.test(n.from)||E_(n.from)?this.file=n.from:this.file=__(n.from)),U9&&REe){let r=new IEe(this.css,n);if(r.text){this.map=r;let a=r.consumer().file;!this.file&&a&&(this.file=this.mapResolve(a))}}this.file||(this.id="<input css "+AEe(6)+">"),this.map&&(this.map.file=this.from)}error(t,n,r,a={}){let s,i,u;if(n&&typeof n=="object"){let f=n,h=r;if(typeof f.offset=="number"){let m=this.fromOffset(f.offset);n=m.line,r=m.col}else n=f.line,r=f.column;if(typeof h.offset=="number"){let m=this.fromOffset(h.offset);i=m.line,u=m.col}else i=h.line,u=h.column}else if(!r){let f=this.fromOffset(n);n=f.line,r=f.col}let c=this.origin(n,r,i,u);return c?s=new L9(t,c.endLine===void 0?c.line:{column:c.column,line:c.line},c.endLine===void 0?c.column:{column:c.endColumn,line:c.endLine},c.source,c.file,a.plugin):s=new L9(t,i===void 0?n:{column:r,line:n},i===void 0?r:{column:u,line:i},this.css,this.file,a.plugin),s.input={column:r,endColumn:u,endLine:i,line:n,source:this.css},this.file&&(Kg&&(s.input.url=Kg(this.file).toString()),s.input.file=this.file),s}fromOffset(t){let n,r;if(this[kE])r=this[kE];else{let s=this.css.split(`
284
+ `);r=new Array(s.length);let i=0;for(let u=0,c=s.length;u<c;u++)r[u]=i,i+=s[u].length+1;this[kE]=r}n=r[r.length-1];let a=0;if(t>=n)a=r.length-1;else{let s=r.length-2,i;for(;a<s;)if(i=a+(s-a>>1),t<r[i])s=i-1;else if(t>=r[i+1])a=i+1;else{a=i;break}}return{col:t-r[a]+1,line:a+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:__(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,n,r,a){if(!this.map)return!1;let s=this.map.consumer(),i=s.originalPositionFor({column:n,line:t});if(!i.source)return!1;let u;typeof r=="number"&&(u=s.originalPositionFor({column:a,line:r}));let c;E_(i.source)?c=Kg(i.source):c=new URL(i.source,this.map.consumer().sourceRoot||Kg(this.map.mapFile));let f={column:i.column,endColumn:u&&u.column,endLine:u&&u.line,line:i.line,url:c.toString()};if(c.protocol==="file:")if(D9)f.file=D9(c);else throw new Error("file: protocol is not available in this PostCSS build");let h=s.sourceContentFor(i.source);return h&&(f.source=h),f}toJSON(){let t={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(t[n]=this[n]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}};var yy=D1;D1.default=D1;_E&&_E.registerInput&&_E.registerInput(D1);let{SourceMapConsumer:rH,SourceMapGenerator:L0}=as,{dirname:U0,relative:aH,resolve:sH,sep:oH}=as,{pathToFileURL:j9}=as,TEe=yy,OEe=!!(rH&&L0),NEe=!!(U0&&sH&&aH&&oH),MEe=class{constructor(t,n,r,a){this.stringify=t,this.mapOpts=r.map||{},this.root=n,this.opts=r,this.css=a,this.originalCSS=a,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let n=`
285
+ `;this.css.includes(`\r
286
+ `)&&(n=`\r
287
+ `),this.css+=n+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let n=this.toUrl(this.path(t.file)),r=t.root||U0(t.file),a;this.mapOpts.sourcesContent===!1?(a=new rH(t.text),a.sourcesContent&&(a.sourcesContent=null)):a=t.consumer(),this.map.applySourceMap(a,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let n=this.root.nodes.length-1;n>=0;n--)t=this.root.nodes[n],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),NEe&&OEe&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,n=>{t+=n}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=L0.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new L0({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new L0({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,n=1,r="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,i;this.stringify(this.root,(u,c,f)=>{if(this.css+=u,c&&f!=="end"&&(a.generated.line=t,a.generated.column=n-1,c.source&&c.source.start?(a.source=this.sourcePath(c),a.original.line=c.source.start.line,a.original.column=c.source.start.column-1,this.map.addMapping(a)):(a.source=r,a.original.line=1,a.original.column=0,this.map.addMapping(a))),s=u.match(/\n/g),s?(t+=s.length,i=u.lastIndexOf(`
288
+ `),n=u.length-i):n+=u.length,c&&f!=="start"){let h=c.parent||{raws:{}};(!(c.type==="decl"||c.type==="atrule"&&!c.nodes)||c!==h.last||h.raws.semicolon)&&(c.source&&c.source.end?(a.source=this.sourcePath(c),a.original.line=c.source.end.line,a.original.column=c.source.end.column-1,a.generated.line=t,a.generated.column=n-2,this.map.addMapping(a)):(a.source=r,a.original.line=1,a.original.column=0,a.generated.line=t,a.generated.column=n-1,this.map.addMapping(a)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let n=this.memoizedPaths.get(t);if(n)return n;let r=this.opts.to?U0(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=U0(sH(r,this.mapOpts.annotation)));let a=aH(r,t);return this.memoizedPaths.set(t,a),a}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let n=t.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let t=new TEe(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(n=>{if(n.source){let r=n.source.input.from;if(r&&!t[r]){t[r]=!0;let a=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(a,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let n=this.memoizedFileURLs.get(t);if(n)return n;if(j9){let r=j9(t).toString();return this.memoizedFileURLs.set(t,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let n=this.memoizedURLs.get(t);if(n)return n;oH==="\\"&&(t=t.replace(/\\/g,"/"));let r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}};var iH=MEe;let PEe=gy,k_=class extends PEe{constructor(t){super(t),this.type="comment"}};var by=k_;k_.default=k_;let{isClean:lH,my:uH}=zp,cH=vy,dH=by,DEe=gy,fH,EI,_I,hH;function pH(e){return e.map(t=>(t.nodes&&(t.nodes=pH(t.nodes)),delete t.source,t))}function mH(e){if(e[lH]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)mH(t)}let No=class gH extends DEe{append(...t){for(let n of t){let r=this.normalize(n,this.last);for(let a of r)this.proxyOf.nodes.push(a)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let n of this.nodes)n.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let n=this.getIterator(),r,a;for(;this.indexes[n]<this.proxyOf.nodes.length&&(r=this.indexes[n],a=t(this.proxyOf.nodes[r],r),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,n){return n==="proxyOf"?t:t[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?(...r)=>t[n](...r.map(a=>typeof a=="function"?(s,i)=>a(s.toProxy(),i):a)):n==="every"||n==="some"?r=>t[n]((a,...s)=>r(a.toProxy(),...s)):n==="root"?()=>t.root().toProxy():n==="nodes"?t.nodes.map(r=>r.toProxy()):n==="first"||n==="last"?t[n].toProxy():t[n]:t[n]},set(t,n,r){return t[n]===r||(t[n]=r,(n==="name"||n==="params"||n==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,n){let r=this.index(t),a=this.normalize(n,this.proxyOf.nodes[r]).reverse();r=this.index(t);for(let i of a)this.proxyOf.nodes.splice(r+1,0,i);let s;for(let i in this.indexes)s=this.indexes[i],r<s&&(this.indexes[i]=s+a.length);return this.markDirty(),this}insertBefore(t,n){let r=this.index(t),a=r===0?"prepend":!1,s=this.normalize(n,this.proxyOf.nodes[r],a).reverse();r=this.index(t);for(let u of s)this.proxyOf.nodes.splice(r,0,u);let i;for(let u in this.indexes)i=this.indexes[u],r<=i&&(this.indexes[u]=i+s.length);return this.markDirty(),this}normalize(t,n){if(typeof t=="string")t=pH(fH(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let a of t)a.parent&&a.parent.removeChild(a,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let a of t)a.parent&&a.parent.removeChild(a,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new cH(t)]}else if(t.selector)t=[new EI(t)];else if(t.name)t=[new _I(t)];else if(t.text)t=[new dH(t)];else throw new Error("Unknown node type in node creation");return t.map(a=>(a[uH]||gH.rebuild(a),a=a.proxyOf,a.parent&&a.parent.removeChild(a),a[lH]&&mH(a),typeof a.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(a.raws.before=n.raws.before.replace(/\S/g,"")),a.parent=this.proxyOf,a))}prepend(...t){t=t.reverse();for(let n of t){let r=this.normalize(n,this.first,"prepend").reverse();for(let a of r)this.proxyOf.nodes.unshift(a);for(let a in this.indexes)this.indexes[a]=this.indexes[a]+r.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let n;for(let r in this.indexes)n=this.indexes[r],n>=t&&(this.indexes[r]=n-1);return this.markDirty(),this}replaceValues(t,n,r){return r||(r=n,n={}),this.walkDecls(a=>{n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((n,r)=>{let a;try{a=t(n,r)}catch(s){throw n.addToError(s)}return a!==!1&&n.walk&&(a=n.walk(t)),a})}walkAtRules(t,n){return n?t instanceof RegExp?this.walk((r,a)=>{if(r.type==="atrule"&&t.test(r.name))return n(r,a)}):this.walk((r,a)=>{if(r.type==="atrule"&&r.name===t)return n(r,a)}):(n=t,this.walk((r,a)=>{if(r.type==="atrule")return n(r,a)}))}walkComments(t){return this.walk((n,r)=>{if(n.type==="comment")return t(n,r)})}walkDecls(t,n){return n?t instanceof RegExp?this.walk((r,a)=>{if(r.type==="decl"&&t.test(r.prop))return n(r,a)}):this.walk((r,a)=>{if(r.type==="decl"&&r.prop===t)return n(r,a)}):(n=t,this.walk((r,a)=>{if(r.type==="decl")return n(r,a)}))}walkRules(t,n){return n?t instanceof RegExp?this.walk((r,a)=>{if(r.type==="rule"&&t.test(r.selector))return n(r,a)}):this.walk((r,a)=>{if(r.type==="rule"&&r.selector===t)return n(r,a)}):(n=t,this.walk((r,a)=>{if(r.type==="rule")return n(r,a)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};No.registerParse=e=>{fH=e};No.registerRule=e=>{EI=e};No.registerAtRule=e=>{_I=e};No.registerRoot=e=>{hH=e};var xu=No;No.default=No;No.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,_I.prototype):e.type==="rule"?Object.setPrototypeOf(e,EI.prototype):e.type==="decl"?Object.setPrototypeOf(e,cH.prototype):e.type==="comment"?Object.setPrototypeOf(e,dH.prototype):e.type==="root"&&Object.setPrototypeOf(e,hH.prototype),e[uH]=!0,e.nodes&&e.nodes.forEach(t=>{No.rebuild(t)})};let LEe=xu,vH,yH,fp=class extends LEe{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new vH(new yH,this,t).stringify()}};fp.registerLazyResult=e=>{vH=e};fp.registerProcessor=e=>{yH=e};var kI=fp;fp.default=fp;let A_=class{constructor(t,n={}){if(this.type="warning",this.text=t,n.node&&n.node.source){let r=n.node.rangeBy(n);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in n)this[r]=n[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var bH=A_;A_.default=A_;let UEe=bH,I_=class{constructor(t,n,r){this.processor=t,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new UEe(t,n);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>t.type==="warning")}get content(){return this.css}};var AI=I_;I_.default=I_;const AE=39,z9=34,Yg=92,F9=47,Zg=10,ih=32,Xg=12,Qg=9,Jg=13,jEe=91,zEe=93,FEe=40,$Ee=41,BEe=123,HEe=125,qEe=59,VEe=42,WEe=58,GEe=64,e0=/[\t\n\f\r "#'()/;[\\\]{}]/g,t0=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,KEe=/.[\r\n"'(/\\]/,$9=/[\da-f]/i;var YEe=function(t,n={}){let r=t.css.valueOf(),a=n.ignoreErrors,s,i,u,c,f,h,m,g,y,S,w=r.length,x=0,_=[],k=[];function A(){return x}function R(P){throw t.error("Unclosed "+P,x)}function N(){return k.length===0&&x>=w}function O(P){if(k.length)return k.pop();if(x>=w)return;let L=P?P.ignoreUnclosed:!1;switch(s=r.charCodeAt(x),s){case Zg:case ih:case Qg:case Jg:case Xg:{i=x;do i+=1,s=r.charCodeAt(i);while(s===ih||s===Zg||s===Qg||s===Jg||s===Xg);S=["space",r.slice(x,i)],x=i-1;break}case jEe:case zEe:case BEe:case HEe:case WEe:case qEe:case $Ee:{let q=String.fromCharCode(s);S=[q,q,x];break}case FEe:{if(g=_.length?_.pop()[1]:"",y=r.charCodeAt(x+1),g==="url"&&y!==AE&&y!==z9&&y!==ih&&y!==Zg&&y!==Qg&&y!==Xg&&y!==Jg){i=x;do{if(h=!1,i=r.indexOf(")",i+1),i===-1)if(a||L){i=x;break}else R("bracket");for(m=i;r.charCodeAt(m-1)===Yg;)m-=1,h=!h}while(h);S=["brackets",r.slice(x,i+1),x,i],x=i}else i=r.indexOf(")",x+1),c=r.slice(x,i+1),i===-1||KEe.test(c)?S=["(","(",x]:(S=["brackets",c,x,i],x=i);break}case AE:case z9:{u=s===AE?"'":'"',i=x;do{if(h=!1,i=r.indexOf(u,i+1),i===-1)if(a||L){i=x+1;break}else R("string");for(m=i;r.charCodeAt(m-1)===Yg;)m-=1,h=!h}while(h);S=["string",r.slice(x,i+1),x,i],x=i;break}case GEe:{e0.lastIndex=x+1,e0.test(r),e0.lastIndex===0?i=r.length-1:i=e0.lastIndex-2,S=["at-word",r.slice(x,i+1),x,i],x=i;break}case Yg:{for(i=x,f=!0;r.charCodeAt(i+1)===Yg;)i+=1,f=!f;if(s=r.charCodeAt(i+1),f&&s!==F9&&s!==ih&&s!==Zg&&s!==Qg&&s!==Jg&&s!==Xg&&(i+=1,$9.test(r.charAt(i)))){for(;$9.test(r.charAt(i+1));)i+=1;r.charCodeAt(i+1)===ih&&(i+=1)}S=["word",r.slice(x,i+1),x,i],x=i;break}default:{s===F9&&r.charCodeAt(x+1)===VEe?(i=r.indexOf("*/",x+2)+1,i===0&&(a||L?i=r.length:R("comment")),S=["comment",r.slice(x,i+1),x,i],x=i):(t0.lastIndex=x+1,t0.test(r),t0.lastIndex===0?i=r.length-1:i=t0.lastIndex-2,S=["word",r.slice(x,i+1),x,i],_.push(S),x=i);break}}return x++,S}function T(P){k.push(P)}return{back:T,endOfFile:N,nextToken:O,position:A}};let SH=xu,L1=class extends SH{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};var II=L1;L1.default=L1;SH.registerAtRule(L1);let wH=xu,xH,CH,md=class extends wH{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,n,r){let a=super.normalize(t);if(n){if(r==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let s of a)s.raws.before=n.raws.before}return a}removeChild(t,n){let r=this.index(t);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t={}){return new xH(new CH,this,t).stringify()}};md.registerLazyResult=e=>{xH=e};md.registerProcessor=e=>{CH=e};var Fp=md;md.default=md;wH.registerRoot(md);let hp={comma(e){return hp.split(e,[","],!0)},space(e){let t=[" ",`
289
+ `," "];return hp.split(e,t)},split(e,t,n){let r=[],a="",s=!1,i=0,u=!1,c="",f=!1;for(let h of e)f?f=!1:h==="\\"?f=!0:u?h===c&&(u=!1):h==='"'||h==="'"?(u=!0,c=h):h==="("?i+=1:h===")"?i>0&&(i-=1):i===0&&t.includes(h)&&(s=!0),s?(a!==""&&r.push(a.trim()),a="",s=!1):a+=h;return(n||a!=="")&&r.push(a.trim()),r}};var EH=hp;hp.default=hp;let _H=xu,ZEe=EH,U1=class extends _H{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return ZEe.comma(this.selector)}set selectors(t){let n=this.selector?this.selector.match(/,\s*/):null,r=n?n[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}};var RI=U1;U1.default=U1;_H.registerRule(U1);let XEe=vy,QEe=YEe,JEe=by,e3e=II,t3e=Fp,B9=RI;const H9={empty:!0,space:!0};function n3e(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}let r3e=class{constructor(t){this.input=t,this.root=new t3e,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let n=new e3e;n.name=t[1].slice(1),n.name===""&&this.unnamedAtrule(n,t),this.init(n,t[2]);let r,a,s,i=!1,u=!1,c=[],f=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),r=t[0],r==="("||r==="["?f.push(r==="("?")":"]"):r==="{"&&f.length>0?f.push("}"):r===f[f.length-1]&&f.pop(),f.length===0)if(r===";"){n.source.end=this.getPosition(t[2]),n.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){u=!0;break}else if(r==="}"){if(c.length>0){for(s=c.length-1,a=c[s];a&&a[0]==="space";)a=c[--s];a&&(n.source.end=this.getPosition(a[3]||a[2]),n.source.end.offset++)}this.end(t);break}else c.push(t);else c.push(t);if(this.tokenizer.endOfFile()){i=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(n.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(n,"params",c),i&&(t=c[c.length-1],n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),u&&(n.nodes=[],this.current=n)}checkMissedSemicolon(t){let n=this.colon(t);if(n===!1)return;let r=0,a;for(let s=n-1;s>=0&&(a=t[s],!(a[0]!=="space"&&(r+=1,r===2)));s--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}colon(t){let n=0,r,a,s;for(let[i,u]of t.entries()){if(r=u,a=r[0],a==="("&&(n+=1),a===")"&&(n-=1),n===0&&a===":")if(!s)this.doubleColon(r);else{if(s[0]==="word"&&s[1]==="progid")continue;return i}s=r}return!1}comment(t){let n=new JEe;this.init(n,t[2]),n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++;let r=t[1].slice(2,-2);if(/^\s*$/.test(r))n.text="",n.raws.left=r,n.raws.right="";else{let a=r.match(/^(\s*)([^]*\S)(\s*)$/);n.text=a[2],n.raws.left=a[1],n.raws.right=a[3]}}createTokenizer(){this.tokenizer=QEe(this.input)}decl(t,n){let r=new XEe;this.init(r,t[0][2]);let a=t[t.length-1];for(a[0]===";"&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(a[3]||a[2]||n3e(t)),r.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let f=t[0][0];if(f===":"||f==="space"||f==="comment")break;r.prop+=t.shift()[1]}r.raws.between="";let s;for(;t.length;)if(s=t.shift(),s[0]===":"){r.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),r.raws.between+=s[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i=[],u;for(;t.length&&(u=t[0][0],!(u!=="space"&&u!=="comment"));)i.push(t.shift());this.precheckMissedSemicolon(t);for(let f=t.length-1;f>=0;f--){if(s=t[f],s[1].toLowerCase()==="!important"){r.important=!0;let h=this.stringFrom(t,f);h=this.spacesFromEnd(t)+h,h!==" !important"&&(r.raws.important=h);break}else if(s[1].toLowerCase()==="important"){let h=t.slice(0),m="";for(let g=f;g>0;g--){let y=h[g][0];if(m.trim().indexOf("!")===0&&y!=="space")break;m=h.pop()[1]+m}m.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=m,t=h)}if(s[0]!=="space"&&s[0]!=="comment")break}t.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(r.raws.between+=i.map(f=>f[1]).join(""),i=[]),this.raw(r,"value",i.concat(t),n),r.value.includes(":")&&!n&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let n=new B9;this.init(n,t[2]),n.selector="",n.raws.between="",this.current=n}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let n=this.input.fromOffset(t);return{column:n.col,line:n.line,offset:t}}init(t,n){this.current.push(t),t.source={input:this.input,start:this.getPosition(n)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let n=!1,r=null,a=!1,s=null,i=[],u=t[1].startsWith("--"),c=[],f=t;for(;f;){if(r=f[0],c.push(f),r==="("||r==="[")s||(s=f),i.push(r==="("?")":"]");else if(u&&a&&r==="{")s||(s=f),i.push("}");else if(i.length===0)if(r===";")if(a){this.decl(c,u);return}else break;else if(r==="{"){this.rule(c);return}else if(r==="}"){this.tokenizer.back(c.pop()),n=!0;break}else r===":"&&(a=!0);else r===i[i.length-1]&&(i.pop(),i.length===0&&(s=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),i.length>0&&this.unclosedBracket(s),n&&a){if(!u)for(;c.length&&(f=c[c.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(c.pop());this.decl(c,u)}else this.unknownWord(c)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,n,r,a){let s,i,u=r.length,c="",f=!0,h,m;for(let g=0;g<u;g+=1)s=r[g],i=s[0],i==="space"&&g===u-1&&!a?f=!1:i==="comment"?(m=r[g-1]?r[g-1][0]:"empty",h=r[g+1]?r[g+1][0]:"empty",!H9[m]&&!H9[h]?c.slice(-1)===","?f=!1:c+=s[1]:f=!1):c+=s[1];if(!f){let g=r.reduce((y,S)=>y+S[1],"");t.raws[n]={raw:g,value:c}}t[n]=c}rule(t){t.pop();let n=new B9;this.init(n,t[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(n,"selector",t),this.current=n}spacesAndCommentsFromEnd(t){let n,r="";for(;t.length&&(n=t[t.length-1][0],!(n!=="space"&&n!=="comment"));)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){let n,r="";for(;t.length&&(n=t[0][0],!(n!=="space"&&n!=="comment"));)r+=t.shift()[1];return r}spacesFromEnd(t){let n,r="";for(;t.length&&(n=t[t.length-1][0],n==="space");)r=t.pop()[1]+r;return r}stringFrom(t,n){let r="";for(let a=n;a<t.length;a++)r+=t[a][1];return t.splice(n,t.length-n),r}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})}};var a3e=r3e;let s3e=xu,o3e=a3e,i3e=yy;function j1(e,t){let n=new i3e(e,t),r=new o3e(n);try{r.parse()}catch(a){throw a}return r.root}var TI=j1;j1.default=j1;s3e.registerParse(j1);let{isClean:ws,my:l3e}=zp,u3e=iH,c3e=my,d3e=xu,f3e=kI,q9=AI,h3e=TI,p3e=Fp;const m3e={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},g3e={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},v3e={Once:!0,postcssPlugin:!0,prepare:!0},gd=0;function lh(e){return typeof e=="object"&&typeof e.then=="function"}function kH(e){let t=!1,n=m3e[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,gd,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,gd,n+"Exit"]:[n,n+"Exit"]}function V9(e){let t;return e.type==="document"?t=["Document",gd,"DocumentExit"]:e.type==="root"?t=["Root",gd,"RootExit"]:t=kH(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function R_(e){return e[ws]=!1,e.nodes&&e.nodes.forEach(t=>R_(t)),e}let T_={},vd=class AH{constructor(t,n,r){this.stringified=!1,this.processed=!1;let a;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))a=R_(n);else if(n instanceof AH||n instanceof q9)a=R_(n.root),n.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let s=h3e;r.syntax&&(s=r.syntax.parse),r.parser&&(s=r.parser),s.parse&&(s=s.parse);try{a=s(n,r)}catch(i){this.processed=!0,this.error=i}a&&!a[l3e]&&d3e.rebuild(a)}this.result=new q9(t,a,r),this.helpers={...T_,postcss:T_,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,n){let r=this.result.lastPlugin;try{n&&n.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin?(t.plugin=r.postcssPlugin,t.setMessage()):r.postcssVersion}catch(a){console&&console.error&&console.error(a)}return t}prepareVisitors(){this.listeners={};let t=(n,r,a)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([n,a])};for(let n of this.plugins)if(typeof n=="object")for(let r in n){if(!g3e[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!v3e[r])if(typeof n[r]=="object")for(let a in n[r])a==="*"?t(n,r,n[r][a]):t(n,r+"-"+a.toLowerCase(),n[r][a]);else typeof n[r]=="function"&&t(n,r,n[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let n=this.plugins[t],r=this.runOnRoot(n);if(lh(r))try{await r}catch(a){throw this.handleError(a)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[ws];){t[ws]=!0;let n=[V9(t)];for(;n.length>0;){let r=this.visitTick(n);if(lh(r))try{await r}catch(a){let s=n[n.length-1].node;throw this.handleError(a,s)}}}if(this.listeners.OnceExit)for(let[n,r]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(t.type==="document"){let a=t.nodes.map(s=>r(s,this.helpers));await Promise.all(a)}else await r(t,this.helpers)}catch(a){throw this.handleError(a)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(r=>t.Once(r,this.helpers));return lh(n[0])?Promise.all(n):n}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(n){throw this.handleError(n)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,n=c3e;t.syntax&&(n=t.syntax.stringify),t.stringifier&&(n=t.stringifier),n.stringify&&(n=n.stringify);let a=new u3e(n,this.result.root,this.result.opts).generate();return this.result.css=a[0],this.result.map=a[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let n=this.runOnRoot(t);if(lh(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[ws];)t[ws]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let n of t.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,n){return this.async().then(t,n)}toString(){return this.css}visitSync(t,n){for(let[r,a]of t){this.result.lastPlugin=r;let s;try{s=a(n,this.helpers)}catch(i){throw this.handleError(i,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(lh(s))throw this.getAsyncError()}}visitTick(t){let n=t[t.length-1],{node:r,visitors:a}=n;if(r.type!=="root"&&r.type!=="document"&&!r.parent){t.pop();return}if(a.length>0&&n.visitorIndex<a.length){let[i,u]=a[n.visitorIndex];n.visitorIndex+=1,n.visitorIndex===a.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=i;try{return u(r.toProxy(),this.helpers)}catch(c){throw this.handleError(c,r)}}if(n.iterator!==0){let i=n.iterator,u;for(;u=r.nodes[r.indexes[i]];)if(r.indexes[i]+=1,!u[ws]){u[ws]=!0,t.push(V9(u));return}n.iterator=0,delete r.indexes[i]}let s=n.events;for(;n.eventIndex<s.length;){let i=s[n.eventIndex];if(n.eventIndex+=1,i===gd){r.nodes&&r.nodes.length&&(r[ws]=!0,n.iterator=r.getIterator());return}else if(this.listeners[i]){n.visitors=this.listeners[i];return}}t.pop()}walkSync(t){t[ws]=!0;let n=kH(t);for(let r of n)if(r===gd)t.nodes&&t.each(a=>{a[ws]||this.walkSync(a)});else{let a=this.listeners[r];if(a&&this.visitSync(a,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};vd.registerPostcss=e=>{T_=e};var IH=vd;vd.default=vd;p3e.registerLazyResult(vd);f3e.registerLazyResult(vd);let y3e=iH,b3e=my,S3e=TI;const w3e=AI;let O_=class{constructor(t,n,r){n=n.toString(),this.stringified=!1,this._processor=t,this._css=n,this._opts=r,this._map=void 0;let a,s=b3e;this.result=new w3e(this._processor,a,this._opts),this.result.css=n;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let u=new y3e(s,a,this._opts,n);if(u.isMap()){let[c,f]=u.generate();c&&(this.result.css=c),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,n){return this.async().then(t,n)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,n=S3e;try{t=n(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}};var x3e=O_;O_.default=O_;let C3e=x3e,E3e=IH,_3e=kI,k3e=Fp,pp=class{constructor(t=[]){this.version="8.4.38",this.plugins=this.normalize(t)}normalize(t){let n=[];for(let r of t)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))n=n.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)n.push(r);else if(typeof r=="function")n.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return n}process(t,n={}){return!this.plugins.length&&!n.parser&&!n.stringifier&&!n.syntax?new C3e(this,t,n):new E3e(this,t,n)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};var A3e=pp;pp.default=pp;k3e.registerProcessor(pp);_3e.registerProcessor(pp);let I3e=vy,R3e=nH,T3e=by,O3e=II,N3e=yy,M3e=Fp,P3e=RI;function mp(e,t){if(Array.isArray(e))return e.map(a=>mp(a));let{inputs:n,...r}=e;if(n){t=[];for(let a of n){let s={...a,__proto__:N3e.prototype};s.map&&(s.map={...s.map,__proto__:R3e.prototype}),t.push(s)}}if(r.nodes&&(r.nodes=e.nodes.map(a=>mp(a,t))),r.source){let{inputId:a,...s}=r.source;r.source=s,a!=null&&(r.source.input=t[a])}if(r.type==="root")return new M3e(r);if(r.type==="decl")return new I3e(r);if(r.type==="rule")return new P3e(r);if(r.type==="comment")return new T3e(r);if(r.type==="atrule")return new O3e(r);throw new Error("Unknown node type: "+e.type)}var D3e=mp;mp.default=mp;let L3e=CI,RH=vy,U3e=IH,j3e=xu,OI=A3e,z3e=my,F3e=D3e,TH=kI,$3e=bH,OH=by,NH=II,B3e=AI,H3e=yy,q3e=TI,V3e=EH,MH=RI,PH=Fp,W3e=gy;function Bt(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new OI(e)}Bt.plugin=function(t,n){let r=!1;function a(...i){console&&console.warn&&!r&&(r=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
290
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),k1.LANG&&k1.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
291
+ https://www.w3ctech.com/topic/2226`));let u=n(...i);return u.postcssPlugin=t,u.postcssVersion=new OI().version,u}let s;return Object.defineProperty(a,"postcss",{get(){return s||(s=a()),s}}),a.process=function(i,u,c){return Bt([a(c)]).process(i,u)},a};Bt.stringify=z3e;Bt.parse=q3e;Bt.fromJSON=F3e;Bt.list=V3e;Bt.comment=e=>new OH(e);Bt.atRule=e=>new NH(e);Bt.decl=e=>new RH(e);Bt.rule=e=>new MH(e);Bt.root=e=>new PH(e);Bt.document=e=>new TH(e);Bt.CssSyntaxError=L3e;Bt.Declaration=RH;Bt.Container=j3e;Bt.Processor=OI;Bt.Document=TH;Bt.Comment=OH;Bt.Warning=$3e;Bt.AtRule=NH;Bt.Result=B3e;Bt.Input=H3e;Bt.Rule=MH;Bt.Root=PH;Bt.Node=W3e;U3e.registerPostcss(Bt);var G3e=Bt;Bt.default=Bt;const mn=oEe(G3e);mn.stringify;mn.fromJSON;mn.plugin;mn.parse;mn.list;mn.document;mn.comment;mn.atRule;mn.rule;mn.decl;mn.root;mn.CssSyntaxError;mn.Declaration;mn.Container;mn.Processor;mn.Document;mn.Comment;mn.Warning;mn.AtRule;mn.Result;mn.Input;mn.Rule;mn.Root;mn.Node;class NI{constructor(...t){_a(this,"parentElement",null),_a(this,"parentNode",null),_a(this,"ownerDocument"),_a(this,"firstChild",null),_a(this,"lastChild",null),_a(this,"previousSibling",null),_a(this,"nextSibling",null),_a(this,"ELEMENT_NODE",1),_a(this,"TEXT_NODE",3),_a(this,"nodeType"),_a(this,"nodeName"),_a(this,"RRNodeType")}get childNodes(){const t=[];let n=this.firstChild;for(;n;)t.push(n),n=n.nextSibling;return t}contains(t){if(t instanceof NI){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,n){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const W9={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},G9={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},n0={},K3e=()=>!!globalThis.Zone;function MI(e){if(n0[e])return n0[e];const t=globalThis[e],n=t.prototype,r=e in W9?W9[e]:void 0,a=!!(r&&r.every(u=>{var c,f;return!!((f=(c=Object.getOwnPropertyDescriptor(n,u))==null?void 0:c.get)!=null&&f.toString().includes("[native code]"))})),s=e in G9?G9[e]:void 0,i=!!(s&&s.every(u=>{var c;return typeof n[u]=="function"&&((c=n[u])==null?void 0:c.toString().includes("[native code]"))}));if(a&&i&&!K3e())return n0[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const c=u.contentWindow;if(!c)return t.prototype;const f=c[e].prototype;return document.body.removeChild(u),f?n0[e]=f:n}catch{return n}}const IE={};function zo(e,t,n){var r;const a=`${e}.${String(n)}`;if(IE[a])return IE[a].call(t);const s=MI(e),i=(r=Object.getOwnPropertyDescriptor(s,n))==null?void 0:r.get;return i?(IE[a]=i,i.call(t)):t[n]}const RE={};function DH(e,t,n){const r=`${e}.${String(n)}`;if(RE[r])return RE[r].bind(t);const s=MI(e)[n];return typeof s!="function"?t[n]:(RE[r]=s,s.bind(t))}function Y3e(e){return zo("Node",e,"ownerDocument")}function Z3e(e){return zo("Node",e,"childNodes")}function X3e(e){return zo("Node",e,"parentNode")}function Q3e(e){return zo("Node",e,"parentElement")}function J3e(e){return zo("Node",e,"textContent")}function e_e(e,t){return DH("Node",e,"contains")(t)}function t_e(e){return DH("Node",e,"getRootNode")()}function n_e(e){return!e||!("host"in e)?null:zo("ShadowRoot",e,"host")}function r_e(e){return e.styleSheets}function a_e(e){return!e||!("shadowRoot"in e)?null:zo("Element",e,"shadowRoot")}function s_e(e,t){return zo("Element",e,"querySelector")(t)}function o_e(e,t){return zo("Element",e,"querySelectorAll")(t)}function LH(){return MI("MutationObserver").constructor}function Cu(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],a=n(r);return typeof a=="function"&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=a,()=>{e[t]=r}}catch{return()=>{}}}const it={ownerDocument:Y3e,childNodes:Z3e,parentNode:X3e,parentElement:Q3e,textContent:J3e,contains:e_e,getRootNode:t_e,host:n_e,styleSheets:r_e,shadowRoot:a_e,querySelector:s_e,querySelectorAll:o_e,mutationObserver:LH,patch:Cu};function Ir(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Pc=`Please stop import mirror directly. Instead of that,\r
292
+ now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
293
+ or you can use record.mirror to access the mirror instance during recording.`;let K9={map:{},getId(){return console.error(Pc),-1},getNode(){return console.error(Pc),null},removeNodeFromMap(){console.error(Pc)},has(){return console.error(Pc),!1},reset(){console.error(Pc)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(K9=new Proxy(K9,{get(e,t,n){return t==="map"&&console.error(Pc),Reflect.get(e,t,n)}}));function gp(e,t,n={}){let r=null,a=0;return function(...s){const i=Date.now();!a&&n.leading===!1&&(a=i);const u=t-(i-a),c=this;u<=0||u>t?(r&&(clearTimeout(r),r=null),a=i,e.apply(c,s)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{a=n.leading===!1?0:Date.now(),r=null,e.apply(c,s)},u))}}function Sy(e,t,n,r,a=window){const s=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,r?n:{set(i){setTimeout(()=>{n.set.call(this,i)},0),s&&s.set&&s.set.call(this,i)}}),()=>Sy(e,t,s||{},!0)}let z1=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(z1=()=>new Date().getTime());function UH(e){var t,n,r,a;const s=e.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:s.documentElement.scrollLeft||s?.body&&((t=it.parentElement(s.body))==null?void 0:t.scrollLeft)||((n=s?.body)==null?void 0:n.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:s?.documentElement.scrollTop||s?.body&&((r=it.parentElement(s.body))==null?void 0:r.scrollTop)||((a=s?.body)==null?void 0:a.scrollTop)||0}}function jH(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function zH(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function FH(e){return e?e.nodeType===e.ELEMENT_NODE?e:it.parentElement(e):null}function Rr(e,t,n,r){if(!e)return!1;const a=FH(e);if(!a)return!1;try{if(typeof t=="string"){if(a.classList.contains(t)||r&&a.closest("."+t)!==null)return!0}else if(T1(a,t,r))return!0}catch{}return!!(n&&(a.matches(n)||r&&a.closest(n)!==null))}function i_e(e,t){return t.getId(e)!==-1}function TE(e,t,n){return e.tagName==="TITLE"&&n.headTitleMutations?!0:t.getId(e)===ip}function $H(e,t){if(Ph(e))return!1;const n=t.getId(e);if(!t.has(n))return!0;const r=it.parentNode(e);return r&&r.nodeType===e.DOCUMENT_NODE?!1:r?$H(r,t):!0}function N_(e){return!!e.changedTouches}function l_e(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function BH(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function HH(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function M_(e){return e?e instanceof NI&&"shadowRoot"in e?!!e.shadowRoot:!!it.shadowRoot(e):!1}class u_e{constructor(){xe(this,"id",1),xe(this,"styleIDMap",new WeakMap),xe(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function qH(e){var t;let n=null;return"getRootNode"in e&&((t=it.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&it.host(it.getRootNode(e))&&(n=it.host(it.getRootNode(e))),n}function c_e(e){let t=e,n;for(;n=qH(t);)t=n;return t}function d_e(e){const t=it.ownerDocument(e);if(!t)return!1;const n=c_e(e);return it.contains(t,n)}function VH(e){const t=it.ownerDocument(e);return t?it.contains(t,e)||d_e(e):!1}var kt=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(kt||{}),gt=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(gt||{}),Hr=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Hr||{}),ho=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ho||{}),yd=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(yd||{}),Dc=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Dc||{}),WH=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(WH||{});function Y9(e){return"__ln"in e}class f_e{constructor(){xe(this,"length",0),xe(this,"head",null),xe(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=n?.next||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Y9(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&Y9(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Z9=(e,t)=>`${e}@${t}`;class h_e{constructor(){xe(this,"frozen",!1),xe(this,"locked",!1),xe(this,"texts",[]),xe(this,"attributes",[]),xe(this,"attributeMap",new WeakMap),xe(this,"removes",[]),xe(this,"mapRemoves",[]),xe(this,"movedMap",{}),xe(this,"addedSet",new Set),xe(this,"movedSet",new Set),xe(this,"droppedSet",new Set),xe(this,"removesSubTreeCache",new Set),xe(this,"mutationCb"),xe(this,"blockClass"),xe(this,"blockSelector"),xe(this,"maskTextClass"),xe(this,"maskTextSelector"),xe(this,"inlineStylesheet"),xe(this,"maskInputOptions"),xe(this,"maskTextFn"),xe(this,"maskInputFn"),xe(this,"keepIframeSrcFn"),xe(this,"recordCanvas"),xe(this,"inlineImages"),xe(this,"slimDOMOptions"),xe(this,"dataURLOptions"),xe(this,"doc"),xe(this,"mirror"),xe(this,"iframeManager"),xe(this,"stylesheetManager"),xe(this,"shadowDomManager"),xe(this,"canvasManager"),xe(this,"processedNodeManager"),xe(this,"unattachedDoc"),xe(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),xe(this,"emit",()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new f_e,a=c=>{let f=c,h=ip;for(;h===ip;)f=f&&f.nextSibling,h=f&&this.mirror.getId(f);return h},s=c=>{const f=it.parentNode(c);if(!f||!VH(c))return;let h=!1;if(c.nodeType===Node.TEXT_NODE){const S=f.tagName;if(S==="TEXTAREA")return;S==="STYLE"&&this.addedSet.has(f)&&(h=!0)}const m=Ph(f)?this.mirror.getId(qH(c)):this.mirror.getId(f),g=a(c);if(m===-1||g===-1)return r.addNode(c);const y=qc(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:S=>{BH(S,this.mirror)&&this.iframeManager.addIframe(S),HH(S,this.mirror)&&this.stylesheetManager.trackLinkElement(S),M_(c)&&this.shadowDomManager.addShadowRoot(it.shadowRoot(c),this.doc)},onIframeLoad:(S,w)=>{this.iframeManager.attachIframe(S,w),this.shadowDomManager.observeAttachShadow(S)},onStylesheetLoad:(S,w)=>{this.stylesheetManager.attachLinkElement(S,w)},cssCaptured:h});y&&(t.push({parentId:m,nextId:g,node:y}),n.add(y.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)X9(this.removesSubTreeCache,c,this.mirror)&&!this.movedSet.has(it.parentNode(c))||s(c);for(const c of this.addedSet)!Q9(this.droppedSet,c)&&!X9(this.removesSubTreeCache,c,this.mirror)||Q9(this.movedSet,c)?s(c):this.droppedSet.add(c);let i=null;for(;r.length;){let c=null;if(i){const f=this.mirror.getId(it.parentNode(i.value)),h=a(i.value);f!==-1&&h!==-1&&(c=i)}if(!c){let f=r.tail;for(;f;){const h=f;if(f=f.previous,h){const m=this.mirror.getId(it.parentNode(h.value));if(a(h.value)===-1)continue;if(m!==-1){c=h;break}else{const y=h.value,S=it.parentNode(y);if(S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const w=it.host(S);if(this.mirror.getId(w)!==-1){c=h;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}i=c.previous,r.removeNode(c.value),s(c.value)}const u={texts:this.texts.map(c=>{const f=c.node,h=it.parentNode(f);return h&&h.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(h),{id:this.mirror.getId(f),value:c.value}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:f}=c;if(typeof f.style=="string"){const h=JSON.stringify(c.styleDiff),m=JSON.stringify(c._unchangedStyles);h.length<f.style.length&&(h+m).split("var(").length===f.style.split("var(").length&&(f.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:f}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!u.texts.length&&!u.attributes.length&&!u.removes.length&&!u.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(u))}),xe(this,"genTextAreaValueMutation",t=>{let n=this.attributeMap.get(t);n||(n={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(t,n));const r=Array.from(it.childNodes(t),a=>it.textContent(a)||"").join("");n.attributes.value=A1({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:I1(t),value:r,maskInputFn:this.maskInputFn})}),xe(this,"processMutation",t=>{if(!TE(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{const n=it.textContent(t.target);!Rr(t.target,this.blockClass,this.blockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:mB(t.target,this.maskTextClass,this.maskTextSelector,!0)&&n?this.maskTextFn?this.maskTextFn(n,FH(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,a=t.target.getAttribute(r);if(r==="value"){const i=I1(n);a=A1({element:n,maskInputOptions:this.maskInputOptions,tagName:n.tagName,type:i,value:a,maskInputFn:this.maskInputFn})}if(Rr(t.target,this.blockClass,this.blockSelector,!1)||a===t.oldValue)return;let s=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(a))if(!n.contentDocument)r="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t.target,s)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!pB(n.tagName,r))if(s.attributes[r]=hB(this.doc,su(n.tagName),su(r),a),r==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue);for(const u of Array.from(n.style)){const c=n.style.getPropertyValue(u),f=n.style.getPropertyPriority(u);c!==i.style.getPropertyValue(u)||f!==i.style.getPropertyPriority(u)?f===""?s.styleDiff[u]=c:s.styleDiff[u]=[c,f]:s._unchangedStyles[u]=[c,f]}for(const u of Array.from(i.style))n.style.getPropertyValue(u)===""&&(s.styleDiff[u]=!1)}else r==="open"&&n.tagName==="DIALOG"&&(n.matches("dialog:modal")?s.attributes.rr_open_mode="modal":s.attributes.rr_open_mode="non-modal");break}case"childList":{if(Rr(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),a=Ph(t.target)?this.mirror.getId(it.host(t.target)):this.mirror.getId(t.target);Rr(t.target,this.blockClass,this.blockSelector,!1)||TE(n,this.mirror,this.slimDOMOptions)||!i_e(n,this.mirror)||(this.addedSet.has(n)?(P_(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||$H(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Z9(r,a)]?P_(this.movedSet,n):(this.removes.push({parentId:a,id:r,isShadow:Ph(t.target)&&Dh(t.target)?!0:void 0}),p_e(n,this.removesSubTreeCache))),this.mapRemoves.push(n))});break}}}),xe(this,"genAdds",(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(TE(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Z9(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Rr(t,this.blockClass,this.blockSelector,!1)||(it.childNodes(t).forEach(r=>this.genAdds(r)),M_(t)&&it.childNodes(it.shadowRoot(t)).forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function P_(e,t){e.delete(t),it.childNodes(t).forEach(n=>P_(e,n))}function p_e(e,t){const n=[e];for(;n.length;){const r=n.pop();t.has(r)||(t.add(r),it.childNodes(r).forEach(a=>n.push(a)))}}function X9(e,t,n){return e.size===0?!1:m_e(e,t)}function m_e(e,t,n){const r=it.parentNode(t);return r?e.has(r):!1}function Q9(e,t){return e.size===0?!1:GH(e,t)}function GH(e,t){const n=it.parentNode(t);return n?e.has(n)?!0:GH(e,n):!1}let Lh;function g_e(e){Lh=e}function v_e(){Lh=void 0}const St=e=>Lh?(...n)=>{try{return e(...n)}catch(r){if(Lh&&Lh(r)===!0)return;throw r}}:e,zl=[];function $p(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function KH(e,t){const n=new h_e;zl.push(n),n.init(e);const r=new(LH())(St(n.processMutations.bind(n)));return r.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function y_e({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const a=typeof t.mousemove=="number"?t.mousemove:50,s=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let i=[],u;const c=gp(St(m=>{const g=Date.now()-u;e(i.map(y=>(y.timeOffset-=g,y)),m),i=[],u=null}),s),f=St(gp(St(m=>{const g=$p(m),{clientX:y,clientY:S}=N_(m)?m.changedTouches[0]:m;u||(u=z1()),i.push({x:y,y:S,id:r.getId(g),timeOffset:z1()-u}),c(typeof DragEvent<"u"&&m instanceof DragEvent?gt.Drag:m instanceof MouseEvent?gt.MouseMove:gt.TouchMove)}),a,{trailing:!1})),h=[Ir("mousemove",f,n),Ir("touchmove",f,n),Ir("drag",f,n)];return St(()=>{h.forEach(m=>m())})}function b_e({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const i=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[];let c=null;const f=h=>m=>{const g=$p(m);if(Rr(g,r,a,!0))return;let y=null,S=h;if("pointerType"in m){switch(m.pointerType){case"mouse":y=ho.Mouse;break;case"touch":y=ho.Touch;break;case"pen":y=ho.Pen;break}y===ho.Touch?Hr[h]===Hr.MouseDown?S="TouchStart":Hr[h]===Hr.MouseUp&&(S="TouchEnd"):ho.Pen}else N_(m)&&(y=ho.Touch);y!==null?(c=y,(S.startsWith("Touch")&&y===ho.Touch||S.startsWith("Mouse")&&y===ho.Mouse)&&(y=null)):Hr[h]===Hr.Click&&(y=c,c=null);const w=N_(m)?m.changedTouches[0]:m;if(!w)return;const x=n.getId(g),{clientX:_,clientY:k}=w;St(e)({type:Hr[S],id:x,x:_,y:k,...y!==null&&{pointerType:y}})};return Object.keys(Hr).filter(h=>Number.isNaN(Number(h))&&!h.endsWith("_Departed")&&i[h]!==!1).forEach(h=>{let m=su(h);const g=f(h);if(window.PointerEvent)switch(Hr[h]){case Hr.MouseDown:case Hr.MouseUp:m=m.replace("mouse","pointer");break;case Hr.TouchStart:case Hr.TouchEnd:return}u.push(Ir(m,g,t))}),St(()=>{u.forEach(h=>h())})}function YH({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,sampling:s}){const i=St(gp(St(u=>{const c=$p(u);if(!c||Rr(c,r,a,!0))return;const f=n.getId(c);if(c===t&&t.defaultView){const h=UH(t.defaultView);e({id:f,x:h.left,y:h.top})}else e({id:f,x:c.scrollLeft,y:c.scrollTop})}),s.scroll||100));return Ir("scroll",i,t)}function S_e({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const a=St(gp(St(()=>{const s=jH(),i=zH();(n!==s||r!==i)&&(e({width:Number(i),height:Number(s)}),n=s,r=i)}),200));return Ir("resize",a,t)}const w_e=["INPUT","TEXTAREA","SELECT"],J9=new WeakMap;function x_e({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,ignoreClass:s,ignoreSelector:i,maskInputOptions:u,maskInputFn:c,sampling:f,userTriggeredOnInput:h}){function m(k){let A=$p(k);const R=k.isTrusted,N=A&&A.tagName;if(A&&N==="OPTION"&&(A=it.parentElement(A)),!A||!N||w_e.indexOf(N)<0||Rr(A,r,a,!0)||A.classList.contains(s)||i&&A.matches(i))return;let O=A.value,T=!1;const P=I1(A)||"";P==="radio"||P==="checkbox"?T=A.checked:(u[N.toLowerCase()]||u[P])&&(O=A1({element:A,maskInputOptions:u,tagName:N,type:P,value:O,maskInputFn:c})),g(A,h?{text:O,isChecked:T,userTriggered:R}:{text:O,isChecked:T});const L=A.name;P==="radio"&&L&&T&&t.querySelectorAll(`input[type="radio"][name="${L}"]`).forEach(q=>{if(q!==A){const j=q.value;g(q,h?{text:j,isChecked:!T,userTriggered:!1}:{text:j,isChecked:!T})}})}function g(k,A){const R=J9.get(k);if(!R||R.text!==A.text||R.isChecked!==A.isChecked){J9.set(k,A);const N=n.getId(k);St(e)({...A,id:N})}}const S=(f.input==="last"?["change"]:["input","change"]).map(k=>Ir(k,St(m),t)),w=t.defaultView;if(!w)return()=>{S.forEach(k=>k())};const x=w.Object.getOwnPropertyDescriptor(w.HTMLInputElement.prototype,"value"),_=[[w.HTMLInputElement.prototype,"value"],[w.HTMLInputElement.prototype,"checked"],[w.HTMLSelectElement.prototype,"value"],[w.HTMLTextAreaElement.prototype,"value"],[w.HTMLSelectElement.prototype,"selectedIndex"],[w.HTMLOptionElement.prototype,"selected"]];return x&&x.set&&S.push(..._.map(k=>Sy(k[0],k[1],{set(){St(m)({target:this,isTrusted:!1})}},!1,w))),St(()=>{S.forEach(k=>k())})}function F1(e){const t=[];function n(r,a){if(r0("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||r0("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||r0("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||r0("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);a.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);a.unshift(i)}return a}return n(e,t)}function Ri(e,t,n){let r,a;return e?(e.ownerNode?r=t.getId(e.ownerNode):a=n.getId(e),{styleId:a,id:r}):{}}function C_e({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:St((h,m,g)=>{const[y,S]=g,{id:w,styleId:x}=Ri(m,t,n.styleMirror);return(w&&w!==-1||x&&x!==-1)&&e({id:w,styleId:x,adds:[{rule:y,index:S}]}),h.apply(m,g)})}),r.CSSStyleSheet.prototype.addRule=function(h,m,g=this.cssRules.length){const y=`${h} { ${m} }`;return r.CSSStyleSheet.prototype.insertRule.apply(this,[y,g])};const s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:St((h,m,g)=>{const[y]=g,{id:S,styleId:w}=Ri(m,t,n.styleMirror);return(S&&S!==-1||w&&w!==-1)&&e({id:S,styleId:w,removes:[{index:y}]}),h.apply(m,g)})}),r.CSSStyleSheet.prototype.removeRule=function(h){return r.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:St((h,m,g)=>{const[y]=g,{id:S,styleId:w}=Ri(m,t,n.styleMirror);return(S&&S!==-1||w&&w!==-1)&&e({id:S,styleId:w,replace:y}),h.apply(m,g)})}));let u;r.CSSStyleSheet.prototype.replaceSync&&(u=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:St((h,m,g)=>{const[y]=g,{id:S,styleId:w}=Ri(m,t,n.styleMirror);return(S&&S!==-1||w&&w!==-1)&&e({id:S,styleId:w,replaceSync:y}),h.apply(m,g)})}));const c={};a0("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(a0("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),a0("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),a0("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const f={};return Object.entries(c).forEach(([h,m])=>{f[h]={insertRule:m.prototype.insertRule,deleteRule:m.prototype.deleteRule},m.prototype.insertRule=new Proxy(f[h].insertRule,{apply:St((g,y,S)=>{const[w,x]=S,{id:_,styleId:k}=Ri(y.parentStyleSheet,t,n.styleMirror);return(_&&_!==-1||k&&k!==-1)&&e({id:_,styleId:k,adds:[{rule:w,index:[...F1(y),x||0]}]}),g.apply(y,S)})}),m.prototype.deleteRule=new Proxy(f[h].deleteRule,{apply:St((g,y,S)=>{const[w]=S,{id:x,styleId:_}=Ri(y.parentStyleSheet,t,n.styleMirror);return(x&&x!==-1||_&&_!==-1)&&e({id:x,styleId:_,removes:[{index:[...F1(y),w]}]}),g.apply(y,S)})})}),St(()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),u&&(r.CSSStyleSheet.prototype.replaceSync=u),Object.entries(c).forEach(([h,m])=>{m.prototype.insertRule=f[h].insertRule,m.prototype.deleteRule=f[h].deleteRule})})}function ZH({mirror:e,stylesheetManager:t},n){var r,a,s;let i=null;n.nodeName==="#document"?i=e.getId(n):i=e.getId(it.host(n));const u=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(s=(a=n.ownerDocument)==null?void 0:a.defaultView)==null?void 0:s.ShadowRoot,c=u?.prototype?Object.getOwnPropertyDescriptor(u?.prototype,"adoptedStyleSheets"):void 0;return i===null||i===-1||!u||!c?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var f;return(f=c.get)==null?void 0:f.call(this)},set(f){var h;const m=(h=c.set)==null?void 0:h.call(this,f);if(i!==null&&i!==-1)try{t.adoptStyleSheets(f,i)}catch{}return m}}),St(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function E_e({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:a}){const s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:St((u,c,f)=>{var h;const[m,g,y]=f;if(n.has(m))return s.apply(c,[m,g,y]);const{id:S,styleId:w}=Ri((h=c.parentRule)==null?void 0:h.parentStyleSheet,t,r.styleMirror);return(S&&S!==-1||w&&w!==-1)&&e({id:S,styleId:w,set:{property:m,value:g,priority:y},index:F1(c.parentRule)}),u.apply(c,f)})});const i=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:St((u,c,f)=>{var h;const[m]=f;if(n.has(m))return i.apply(c,[m]);const{id:g,styleId:y}=Ri((h=c.parentRule)==null?void 0:h.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||y&&y!==-1)&&e({id:g,styleId:y,remove:{property:m},index:F1(c.parentRule)}),u.apply(c,f)})}),St(()=>{a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=i})}function __e({mediaInteractionCb:e,blockClass:t,blockSelector:n,mirror:r,sampling:a,doc:s}){const i=St(c=>gp(St(f=>{const h=$p(f);if(!h||Rr(h,t,n,!0))return;const{currentTime:m,volume:g,muted:y,playbackRate:S,loop:w}=h;e({type:c,id:r.getId(h),currentTime:m,volume:g,muted:y,playbackRate:S,loop:w})}),a.media||500)),u=[Ir("play",i(Dc.Play),s),Ir("pause",i(Dc.Pause),s),Ir("seeked",i(Dc.Seeked),s),Ir("volumechange",i(Dc.VolumeChange),s),Ir("ratechange",i(Dc.RateChange),s)];return St(()=>{u.forEach(c=>c())})}function k_e({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],a=new WeakMap,s=n.FontFace;n.FontFace=function(c,f,h){const m=new s(c,f,h);return a.set(m,{family:c,buffer:typeof f!="string",descriptors:h,fontSource:typeof f=="string"?f:JSON.stringify(Array.from(new Uint8Array(f)))}),m};const i=Cu(t.fonts,"add",function(u){return function(c){return setTimeout(St(()=>{const f=a.get(c);f&&(e(f),a.delete(c))}),0),u.apply(this,[c])}});return r.push(()=>{n.FontFace=s}),r.push(i),St(()=>{r.forEach(u=>u())})}function A_e(e){const{doc:t,mirror:n,blockClass:r,blockSelector:a,selectionCb:s}=e;let i=!0;const u=St(()=>{const c=t.getSelection();if(!c||i&&c?.isCollapsed)return;i=c.isCollapsed||!1;const f=[],h=c.rangeCount||0;for(let m=0;m<h;m++){const g=c.getRangeAt(m),{startContainer:y,startOffset:S,endContainer:w,endOffset:x}=g;Rr(y,r,a,!0)||Rr(w,r,a,!0)||f.push({start:n.getId(y),startOffset:S,end:n.getId(w),endOffset:x})}s({ranges:f})});return u(),Ir("selectionchange",u)}function I_e({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:Cu(n.customElements,"define",function(a){return function(s,i,u){try{t({define:{name:s}})}catch{console.warn(`Custom element callback failed for ${s}`)}return a.apply(this,[s,i,u])}})}function R_e(e,t){const{mutationCb:n,mousemoveCb:r,mouseInteractionCb:a,scrollCb:s,viewportResizeCb:i,inputCb:u,mediaInteractionCb:c,styleSheetRuleCb:f,styleDeclarationCb:h,canvasMutationCb:m,fontCb:g,selectionCb:y,customElementCb:S}=e;e.mutationCb=(...w)=>{t.mutation&&t.mutation(...w),n(...w)},e.mousemoveCb=(...w)=>{t.mousemove&&t.mousemove(...w),r(...w)},e.mouseInteractionCb=(...w)=>{t.mouseInteraction&&t.mouseInteraction(...w),a(...w)},e.scrollCb=(...w)=>{t.scroll&&t.scroll(...w),s(...w)},e.viewportResizeCb=(...w)=>{t.viewportResize&&t.viewportResize(...w),i(...w)},e.inputCb=(...w)=>{t.input&&t.input(...w),u(...w)},e.mediaInteractionCb=(...w)=>{t.mediaInteaction&&t.mediaInteaction(...w),c(...w)},e.styleSheetRuleCb=(...w)=>{t.styleSheetRule&&t.styleSheetRule(...w),f(...w)},e.styleDeclarationCb=(...w)=>{t.styleDeclaration&&t.styleDeclaration(...w),h(...w)},e.canvasMutationCb=(...w)=>{t.canvasMutation&&t.canvasMutation(...w),m(...w)},e.fontCb=(...w)=>{t.font&&t.font(...w),g(...w)},e.selectionCb=(...w)=>{t.selection&&t.selection(...w),y(...w)},e.customElementCb=(...w)=>{t.customElement&&t.customElement(...w),S(...w)}}function T_e(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};R_e(e,t);let r;e.recordDOM&&(r=KH(e,e.doc));const a=y_e(e),s=b_e(e),i=YH(e),u=S_e(e,{win:n}),c=x_e(e),f=__e(e);let h=()=>{},m=()=>{},g=()=>{},y=()=>{};e.recordDOM&&(h=C_e(e,{win:n}),m=ZH(e,e.doc),g=E_e(e,{win:n}),e.collectFonts&&(y=k_e(e)));const S=A_e(e),w=I_e(e),x=[];for(const _ of e.plugins)x.push(_.observer(_.callback,n,_.options));return St(()=>{zl.forEach(_=>_.reset()),r?.disconnect(),a(),s(),i(),u(),c(),f(),h(),m(),g(),y(),S(),w(),x.forEach(_=>_())})}function r0(e){return typeof window[e]<"u"}function a0(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class eD{constructor(t){xe(this,"iframeIdToRemoteIdMap",new WeakMap),xe(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,n,r,a){const s=r||this.getIdToRemoteIdMap(t),i=a||this.getRemoteIdToIdMap(t);let u=s.get(n);return u||(u=this.generateIdFn(),s.set(n,u),i.set(u,n)),u}getIds(t,n){const r=this.getIdToRemoteIdMap(t),a=this.getRemoteIdToIdMap(t);return n.map(s=>this.getId(t,s,r,a))}getRemoteId(t,n,r){const a=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const s=a.get(n);return s||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(a=>this.getRemoteId(t,a,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class O_e{constructor(t){xe(this,"iframes",new WeakMap),xe(this,"crossOriginIframeMap",new WeakMap),xe(this,"crossOriginIframeMirror",new eD(fB)),xe(this,"crossOriginIframeStyleMirror"),xe(this,"crossOriginIframeRootIdMap",new WeakMap),xe(this,"mirror"),xe(this,"mutationCb"),xe(this,"wrappedEmit"),xe(this,"loadListener"),xe(this,"stylesheetManager"),xe(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new eD(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){var r,a;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((r=t.contentWindow)==null||r.addEventListener("message",this.handleMessage.bind(this))),(a=this.loadListener)==null||a.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const a=this.crossOriginIframeMap.get(t.source);if(!a)return;const s=this.transformCrossOriginEvent(a,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(t,n){var r;switch(n.type){case kt.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const a=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,a),this.patchRootIdOnNode(n.data.node,a),{timestamp:n.timestamp,type:kt.IncrementalSnapshot,data:{source:gt.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case kt.Meta:case kt.Load:case kt.DomContentLoaded:return!1;case kt.Plugin:return n;case kt.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case kt.IncrementalSnapshot:switch(n.data.source){case gt.Mutation:return n.data.adds.forEach(a=>{this.replaceIds(a,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(a.node,t);const s=this.crossOriginIframeRootIdMap.get(t);s&&this.patchRootIdOnNode(a.node,s)}),n.data.removes.forEach(a=>{this.replaceIds(a,t,["parentId","id"])}),n.data.attributes.forEach(a=>{this.replaceIds(a,t,["id"])}),n.data.texts.forEach(a=>{this.replaceIds(a,t,["id"])}),n;case gt.Drag:case gt.TouchMove:case gt.MouseMove:return n.data.positions.forEach(a=>{this.replaceIds(a,t,["id"])}),n;case gt.ViewportResize:return!1;case gt.MediaInteraction:case gt.MouseInteraction:case gt.Scroll:case gt.CanvasMutation:case gt.Input:return this.replaceIds(n.data,t,["id"]),n;case gt.StyleSheetRule:case gt.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case gt.Font:return n;case gt.Selection:return n.data.ranges.forEach(a=>{this.replaceIds(a,t,["start","end"])}),n;case gt.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),(r=n.data.styles)==null||r.forEach(a=>{this.replaceStyleIds(a,t,["styleId"])}),n}}return!1}replace(t,n,r,a){for(const s of a)!Array.isArray(n[s])&&typeof n[s]!="number"||(Array.isArray(n[s])?n[s]=t.getIds(r,n[s]):n[s]=t.getId(r,n[s]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==WH.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class N_e{constructor(t){xe(this,"shadowDoms",new WeakSet),xe(this,"mutationCb"),xe(this,"scrollCb"),xe(this,"bypassOptions"),xe(this,"mirror"),xe(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!Dh(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const r=KH({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(YH({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(it.host(t))),this.restoreHandlers.push(ZH({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(Cu(t.prototype,"attachShadow",function(a){return function(s){const i=a.call(this,s),u=it.shadowRoot(this);return u&&VH(this)&&r.addShadowRoot(u,n),i}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var Vc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M_e=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var s0=0;s0<Vc.length;s0++)M_e[Vc.charCodeAt(s0)]=s0;var P_e=function(e){var t=new Uint8Array(e),n,r=t.length,a="";for(n=0;n<r;n+=3)a+=Vc[t[n]>>2],a+=Vc[(t[n]&3)<<4|t[n+1]>>4],a+=Vc[(t[n+1]&15)<<2|t[n+2]>>6],a+=Vc[t[n+2]&63];return r%3===2?a=a.substring(0,a.length-1)+"=":r%3===1&&(a=a.substring(0,a.length-2)+"=="),a};const tD=new Map;function D_e(e,t){let n=tD.get(e);return n||(n=new Map,tD.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const XH=(e,t,n)=>{if(!e||!(JH(e,t)||typeof e=="object"))return;const r=e.constructor.name,a=D_e(n,r);let s=a.indexOf(e);return s===-1&&(s=a.length,a.push(e)),s};function j0(e,t,n){if(e instanceof Array)return e.map(r=>j0(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,a=P_e(e);return{rr_type:r,base64:a}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[j0(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:a}=e;return{rr_type:r,src:a}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",a=e.toDataURL();return{rr_type:r,src:a}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[j0(e.data,t,n),e.width,e.height]};if(JH(e,t)||typeof e=="object"){const r=e.constructor.name,a=XH(e,t,n);return{rr_type:r,index:a}}}}return e}const QH=(e,t,n)=>e.map(r=>j0(r,t,n)),JH=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(a=>typeof t[a]=="function").find(a=>e instanceof t[a]);function L_e(e,t,n,r){const a=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const i of s)try{if(typeof t.CanvasRenderingContext2D.prototype[i]!="function")continue;const u=Cu(t.CanvasRenderingContext2D.prototype,i,function(c){return function(...f){return Rr(this.canvas,n,r,!0)||setTimeout(()=>{const h=QH(f,t,this);e(this.canvas,{type:yd["2D"],property:i,args:h})},0),c.apply(this,f)}});a.push(u)}catch{const u=Sy(t.CanvasRenderingContext2D.prototype,i,{set(c){e(this.canvas,{type:yd["2D"],property:i,args:[c],setter:!0})}});a.push(u)}return()=>{a.forEach(i=>i())}}function U_e(e){return e==="experimental-webgl"?"webgl":e}function nD(e,t,n,r){const a=[];try{const s=Cu(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(u,...c){if(!Rr(this,t,n,!0)){const f=U_e(u);if("__context"in this||(this.__context=f),r&&["webgl","webgl2"].includes(f))if(c[0]&&typeof c[0]=="object"){const h=c[0];h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return i.apply(this,[u,...c])}});a.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(s=>s())}}function rD(e,t,n,r,a,s){const i=[],u=Object.getOwnPropertyNames(e);for(const c of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if(typeof e[c]!="function")continue;const f=Cu(e,c,function(h){return function(...m){const g=h.apply(this,m);if(XH(g,s,this),"tagName"in this.canvas&&!Rr(this.canvas,r,a,!0)){const y=QH(m,s,this),S={type:t,property:c,args:y};n(this.canvas,S)}return g}});i.push(f)}catch{const f=Sy(e,c,{set(h){n(this.canvas,{type:t,property:c,args:[h],setter:!0})}});i.push(f)}return i}function j_e(e,t,n,r){const a=[];return a.push(...rD(t.WebGLRenderingContext.prototype,yd.WebGL,e,n,r,t)),typeof t.WebGL2RenderingContext<"u"&&a.push(...rD(t.WebGL2RenderingContext.prototype,yd.WebGL2,e,n,r,t)),()=>{a.forEach(s=>s())}}const eq="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",z_e=e=>Uint8Array.from(atob(e),t=>t.charCodeAt(0)),aD=typeof window<"u"&&window.Blob&&new Blob([z_e(eq)],{type:"text/javascript;charset=utf-8"});function F_e(e){let t;try{if(t=aD&&(window.URL||window.webkitURL).createObjectURL(aD),!t)throw"";const n=new Worker(t,{name:e?.name});return n.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),n}catch{return new Worker("data:text/javascript;base64,"+eq,{name:e?.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class $_e{constructor(t){xe(this,"pendingCanvasMutations",new Map),xe(this,"rafStamps",{latestId:0,invokeId:null}),xe(this,"mirror"),xe(this,"mutationCb"),xe(this,"resetObservers"),xe(this,"frozen",!1),xe(this,"locked",!1),xe(this,"processMutation",(c,f)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(c)||this.pendingCanvasMutations.set(c,[]),this.pendingCanvasMutations.get(c).push(f)});const{sampling:n="all",win:r,blockClass:a,blockSelector:s,recordCanvas:i,dataURLOptions:u}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,i&&n==="all"&&this.initCanvasMutationObserver(r,a,s),i&&typeof n=="number"&&this.initCanvasFPSObserver(n,r,a,s,{dataURLOptions:u})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,n,r,a,s){const i=nD(n,r,a,!0),u=new Map,c=new F_e;c.onmessage=S=>{const{id:w}=S.data;if(u.set(w,!1),!("base64"in S.data))return;const{base64:x,type:_,width:k,height:A}=S.data;this.mutationCb({id:w,type:yd["2D"],commands:[{property:"clearRect",args:[0,0,k,A]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:x}],type:_}]},0,0]}]})};const f=1e3/t;let h=0,m;const g=()=>{const S=[];return n.document.querySelectorAll("canvas").forEach(w=>{Rr(w,r,a,!0)||S.push(w)}),S},y=S=>{if(h&&S-h<f){m=requestAnimationFrame(y);return}h=S,g().forEach(async w=>{var x;const _=this.mirror.getId(w);if(u.get(_)||w.width===0||w.height===0)return;if(u.set(_,!0),["webgl","webgl2"].includes(w.__context)){const A=w.getContext(w.__context);((x=A?.getContextAttributes())==null?void 0:x.preserveDrawingBuffer)===!1&&A.clear(A.COLOR_BUFFER_BIT)}const k=await createImageBitmap(w);c.postMessage({id:_,bitmap:k,width:w.width,height:w.height,dataURLOptions:s.dataURLOptions},[k])}),m=requestAnimationFrame(y)};m=requestAnimationFrame(y),this.resetObservers=()=>{i(),cancelAnimationFrame(m)}}initCanvasMutationObserver(t,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const a=nD(t,n,r,!1),s=L_e(this.processMutation.bind(this),t,n,r),i=j_e(this.processMutation.bind(this),t,n,r);this.resetObservers=()=>{a(),s(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const a=r.map(i=>{const{type:u,...c}=i;return c}),{type:s}=r[0];this.mutationCb({id:n,type:s,commands:a}),this.pendingCanvasMutations.delete(t)}}class B_e{constructor(t){xe(this,"trackedLinkElements",new WeakSet),xe(this,"mutationCb"),xe(this,"adoptedStyleSheetCb"),xe(this,"styleMirror",new u_e),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},a=[];for(const s of t){let i;this.styleMirror.has(s)?i=this.styleMirror.getId(s):(i=this.styleMirror.add(s),a.push({styleId:i,rules:Array.from(s.rules||CSSRule,(u,c)=>({rule:uB(u,s.href),index:c}))})),r.styleIds.push(i)}a.length>0&&(r.styles=a),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class H_e{constructor(){xe(this,"nodeMap",new WeakMap),xe(this,"active",!1)}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(a=>a!==n)}add(t,n){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let xn,z0,OE,$1=!1;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((i9=e.contentWindow)==null?void 0:i9.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Ha=Vxe();function Bp(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:a="rr-block",blockSelector:s=null,ignoreClass:i="rr-ignore",ignoreSelector:u=null,maskTextClass:c="rr-mask",maskTextSelector:f=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskInputFn:S,maskTextFn:w,hooks:x,packFn:_,sampling:k={},dataURLOptions:A={},mousemoveWait:R,recordDOM:N=!0,recordCanvas:O=!1,recordCrossOriginIframes:T=!1,recordAfter:P=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:L=!1,collectFonts:q=!1,inlineImages:j=!1,plugins:U,keepIframeSrcFn:H=()=>!1,ignoreCSSAttributes:Z=new Set([]),errorHandler:se}=e;g_e(se);const B=T?window.parent===window:!0;let X=!1;if(!B)try{window.parent.document&&(X=!1)}catch{X=!0}if(B&&!t)throw new Error("emit function is required");if(!B&&!X)return()=>{};R!==void 0&&k.mousemove===void 0&&(k.mousemove=R),Ha.reset();const re=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:g!==void 0?g:{password:!0},de=gB(y);l_e();let we,z=0;const W=Te=>{for(const Ue of U||[])Ue.eventProcessor&&(Te=Ue.eventProcessor(Te));return _&&!X&&(Te=_(Te)),Te};xn=(Te,Ue)=>{var je;const ke=Te;if(ke.timestamp=z1(),(je=zl[0])!=null&&je.isFrozen()&&ke.type!==kt.FullSnapshot&&!(ke.type===kt.IncrementalSnapshot&&ke.data.source===gt.Mutation)&&zl.forEach(Ut=>Ut.unfreeze()),B)t?.(W(ke),Ue);else if(X){const Ut={type:"rrweb",event:W(ke),origin:window.location.origin,isCheckout:Ue};window.parent.postMessage(Ut,"*")}if(ke.type===kt.FullSnapshot)we=ke,z=0;else if(ke.type===kt.IncrementalSnapshot){if(ke.data.source===gt.Mutation&&ke.data.isAttachIframe)return;z++;const Ut=r&&z>=r,Me=n&&ke.timestamp-we.timestamp>n;(Ut||Me)&&z0(!0)}};const G=Te=>{xn({type:kt.IncrementalSnapshot,data:{source:gt.Mutation,...Te}})},J=Te=>xn({type:kt.IncrementalSnapshot,data:{source:gt.Scroll,...Te}}),oe=Te=>xn({type:kt.IncrementalSnapshot,data:{source:gt.CanvasMutation,...Te}}),pe=Te=>xn({type:kt.IncrementalSnapshot,data:{source:gt.AdoptedStyleSheet,...Te}}),K=new B_e({mutationCb:G,adoptedStyleSheetCb:pe}),fe=new O_e({mirror:Ha,mutationCb:G,stylesheetManager:K,recordCrossOriginIframes:T,wrappedEmit:xn});for(const Te of U||[])Te.getMirror&&Te.getMirror({nodeMirror:Ha,crossOriginIframeMirror:fe.crossOriginIframeMirror,crossOriginIframeStyleMirror:fe.crossOriginIframeStyleMirror});const ge=new H_e;OE=new $_e({recordCanvas:O,mutationCb:oe,win:window,blockClass:a,blockSelector:s,mirror:Ha,sampling:k.canvas,dataURLOptions:A});const Ee=new N_e({mutationCb:G,scrollCb:J,bypassOptions:{blockClass:a,blockSelector:s,maskTextClass:c,maskTextSelector:f,inlineStylesheet:h,maskInputOptions:re,dataURLOptions:A,maskTextFn:w,maskInputFn:S,recordCanvas:O,inlineImages:j,sampling:k,slimDOMOptions:de,iframeManager:fe,stylesheetManager:K,canvasManager:OE,keepIframeSrcFn:H,processedNodeManager:ge},mirror:Ha});z0=(Te=!1)=>{if(!N)return;xn({type:kt.Meta,data:{href:window.location.href,width:zH(),height:jH()}},Te),K.reset(),Ee.init(),zl.forEach(je=>je.lock());const Ue=m2e(document,{mirror:Ha,blockClass:a,blockSelector:s,maskTextClass:c,maskTextSelector:f,inlineStylesheet:h,maskAllInputs:re,maskTextFn:w,maskInputFn:S,slimDOM:de,dataURLOptions:A,recordCanvas:O,inlineImages:j,onSerialize:je=>{BH(je,Ha)&&fe.addIframe(je),HH(je,Ha)&&K.trackLinkElement(je),M_(je)&&Ee.addShadowRoot(it.shadowRoot(je),document)},onIframeLoad:(je,ke)=>{fe.attachIframe(je,ke),Ee.observeAttachShadow(je)},onStylesheetLoad:(je,ke)=>{K.attachLinkElement(je,ke)},keepIframeSrcFn:H});if(!Ue)return console.warn("Failed to snapshot the document");xn({type:kt.FullSnapshot,data:{node:Ue,initialOffset:UH(window)}},Te),zl.forEach(je=>je.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,Ha.getId(document))};try{const Te=[],Ue=ke=>{var Ut;return St(T_e)({mutationCb:G,mousemoveCb:(Me,Bn)=>xn({type:kt.IncrementalSnapshot,data:{source:Bn,positions:Me}}),mouseInteractionCb:Me=>xn({type:kt.IncrementalSnapshot,data:{source:gt.MouseInteraction,...Me}}),scrollCb:J,viewportResizeCb:Me=>xn({type:kt.IncrementalSnapshot,data:{source:gt.ViewportResize,...Me}}),inputCb:Me=>xn({type:kt.IncrementalSnapshot,data:{source:gt.Input,...Me}}),mediaInteractionCb:Me=>xn({type:kt.IncrementalSnapshot,data:{source:gt.MediaInteraction,...Me}}),styleSheetRuleCb:Me=>xn({type:kt.IncrementalSnapshot,data:{source:gt.StyleSheetRule,...Me}}),styleDeclarationCb:Me=>xn({type:kt.IncrementalSnapshot,data:{source:gt.StyleDeclaration,...Me}}),canvasMutationCb:oe,fontCb:Me=>xn({type:kt.IncrementalSnapshot,data:{source:gt.Font,...Me}}),selectionCb:Me=>{xn({type:kt.IncrementalSnapshot,data:{source:gt.Selection,...Me}})},customElementCb:Me=>{xn({type:kt.IncrementalSnapshot,data:{source:gt.CustomElement,...Me}})},blockClass:a,ignoreClass:i,ignoreSelector:u,maskTextClass:c,maskTextSelector:f,maskInputOptions:re,inlineStylesheet:h,sampling:k,recordDOM:N,recordCanvas:O,inlineImages:j,userTriggeredOnInput:L,collectFonts:q,doc:ke,maskInputFn:S,maskTextFn:w,keepIframeSrcFn:H,blockSelector:s,slimDOMOptions:de,dataURLOptions:A,mirror:Ha,iframeManager:fe,stylesheetManager:K,shadowDomManager:Ee,processedNodeManager:ge,canvasManager:OE,ignoreCSSAttributes:Z,plugins:((Ut=U?.filter(Me=>Me.observer))==null?void 0:Ut.map(Me=>({observer:Me.observer,options:Me.options,callback:Bn=>xn({type:kt.Plugin,data:{plugin:Me.name,payload:Bn}})})))||[]},x)};fe.addLoadListener(ke=>{try{Te.push(Ue(ke.contentDocument))}catch(Ut){console.warn(Ut)}});const je=()=>{z0(),Te.push(Ue(document)),$1=!0};return["interactive","complete"].includes(document.readyState)?je():(Te.push(Ir("DOMContentLoaded",()=>{xn({type:kt.DomContentLoaded,data:{}}),P==="DOMContentLoaded"&&je()})),Te.push(Ir("load",()=>{xn({type:kt.Load,data:{}}),P==="load"&&je()},window))),()=>{Te.forEach(ke=>{try{ke()}catch(Ut){String(Ut).toLowerCase().includes("cross-origin")||console.warn(Ut)}}),ge.destroy(),$1=!1,v_e()}}catch(Te){console.warn(Te)}}Bp.addCustomEvent=(e,t)=>{if(!$1)throw new Error("please add custom event after start recording");xn({type:kt.Custom,data:{tag:e,payload:t}})};Bp.freezePage=()=>{zl.forEach(e=>e.freeze())};Bp.takeFullSnapshot=e=>{if(!$1)throw new Error("please take full snapshot after start recording");z0(e)};Bp.mirror=Ha;var sD;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(sD||(sD={}));const q_e="rrweb",V_e={maskAllInputs:!0,maskTextSelector:"*",maskInputOptions:void 0},W_e={additionalSampleRate:1,batchSize:50,flushInterval:5e3,recordOptions:{slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,recordCrossOriginIframes:!1}},oD=W_e;class G_e extends Pa{constructor(t){super(q_e),this.recordingEvents=[],this.isRecording=!1,this.recordingStartTime=null,this.flushTimer=null,this.stopRecording=null,this.enabled=!1;const n=Object.assign(Object.assign(Object.assign({},oD.recordOptions),t?.recordOptions),V_e);this.config=Object.assign(Object.assign(Object.assign({},oD),t),{recordOptions:n}),Se.info("RRWebPlugin initialized",{additionalSampleRate:this.config.additionalSampleRate,batchSize:this.config.batchSize,flushInterval:this.config.flushInterval})}enable(){var t;if(this.enabled){Se.info("RRWebPlugin already enabled");return}const n=(t=this.context)===null||t===void 0?void 0:t.getSession();if(!n||!n.record){Se.warn("RRWebPlugin skipping - session not being recorded",{hasSession:!!n,sessionRecord:n?.record});return}const r=Math.random();if(r>this.config.additionalSampleRate){Se.warn("RRWebPlugin skipping - session replay additionalSampleRate",{randomValue:r,samplingRate:this.config.additionalSampleRate});return}this.enabled=!0,Se.info("RRWebPlugin enabled - starting recording"),this.startRecording()}disable(){if(!this.enabled){Se.info("RRWebPlugin already disabled");return}Se.info("RRWebPlugin disabled - stopping recording"),this.enabled=!1,this.stopCurrentRecording()}record(t){const n=t?.action;n==="start"?(Se.info("RRWebPlugin manual start recording"),this.startRecording()):n==="stop"&&(Se.info("RRWebPlugin manual stop recording"),this.stopCurrentRecording())}onload(){}startRecording(){this.recordingStartTime=Date.now(),this.recordingEvents=[],this.isRecording=!0,Se.info("RRWebPlugin starting rrweb recording",{startTime:this.recordingStartTime});const t=Bp(Object.assign(Object.assign({},this.config.recordOptions),{emit:this.handleRRWebEvent.bind(this)}));t?(this.stopRecording=t,Se.info("RRWebPlugin rrweb recording initialized successfully")):Se.warn("RRWebPlugin failed to initialize rrweb recording"),this.flushTimer=window.setInterval(()=>{this.flush()},this.config.flushInterval)}stopCurrentRecording(){if(!this.isRecording){Se.info("RRWebPlugin stopCurrentRecording called but not recording");return}Se.info("RRWebPlugin stopping current recording"),this.isRecording=!1,this.stopRecording&&(this.stopRecording(),this.stopRecording=null,Se.info("RRWebPlugin rrweb recording stopped")),this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null,Se.info("RRWebPlugin flush timer cleared")),this.flush()}handleRRWebEvent(t){this.isRecording&&(this.recordingEvents.push(t),this.recordingEvents.length>=this.config.batchSize&&(Se.info("RRWebPlugin flushing events due to batch size",{eventCount:this.recordingEvents.length,batchSize:this.config.batchSize}),this.flush()))}flush(){if(this.recordingEvents.length===0){Se.info("RRWebPlugin flushEvent called but no events to flush");return}Se.info("RRWebPlugin flushing events",{eventCount:this.recordingEvents.length});const t=[...this.recordingEvents],n={version:"1.0.0",events:t,eventCount:t.length};this.context.record(V7,n),Se.info("RRWebPlugin events sent to RUM",{eventType:V7,eventCount:this.recordingEvents.length}),this.recordingEvents=[]}}var K_e=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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},D_;(function(e){e.Path="PATH",e.Hash="HASH",e.PathAndHash="PATH_AND_HASH"})(D_||(D_={}));const tq="us-west-2",L_=`https://dataplane.rum.${tq}.amazonaws.com`,nq=()=>({unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}),rq=e=>({allowCookies:!1,batchLimit:100,client:ySe,compressionStrategy:{enabled:!0},cookieAttributes:e,debug:!1,disableAutoPageView:!1,dispatchInterval:5*1e3,enableRumClient:!0,enableXRay:!1,endpoint:L_,endpointUrl:new URL(L_),eventCacheSize:1e3,eventPluginsToLoad:[],pageIdFormat:D_.Path,pagesToExclude:[],pagesToInclude:[/.*/],signing:!1,recordResourceUrl:!0,retries:2,routeChangeComplete:100,routeChangeTimeout:1e4,sessionAttributes:{},sessionEventLimit:200,sessionLengthSeconds:1800,sessionSampleRate:1,suppressSessionStartEvent:!1,useBeacon:!0,userIdRetentionDays:30,enableW3CTraceId:!1,candidatesCacheSize:10});let Y_e=class{constructor(t,n,r,a={}){var{cookieAttributes:s}=a,i=K_e(a,["cookieAttributes"]);this.eventBus=new G$,typeof r>"u"&&(r="us-west-2"),this.applicationId=t;const u=Object.assign(Object.assign({},nq()),s);this.config=Object.assign(Object.assign({fetchFunction:fetch},rq(u)),i),this.config.sessionId&&(this.config.suppressSessionStartEvent=!0),this.config.endpoint=i.endpoint?i.endpoint:L_.replace(tq,r),this.config.endpointUrl=new URL(this.config.endpoint),Se.configure(this.config.debug),Se.info("Initialized RUM Slim"),this.eventCache=new Rwe({id:t,version:n},this.config,this.eventBus),this.dispatchManager=this.initDispatch(r,t),this.pluginManager=this.initPluginManager(t,n),this.eventCache.setPluginFlushHook(()=>this.pluginManager.flush()),this.config.enableRumClient?this.enable():this.disable()}setAwsCredentials(t){this.dispatchManager.setAwsCredentials(t)}setSigningConfigFactory(t){this.dispatchManager.setSigningConfigFactory(t)}addSessionAttributes(t){this.eventCache.addSessionAttributes(t)}getSessionId(){return this.eventCache.getSessionId()}pinSessionId(t){this.eventCache.pinSessionId(t)}startSession(t){return this.eventCache.startSession(t)}getUserId(){return this.eventCache.getUserId()}pinUserId(t){this.eventCache.pinUserId(t)}setEventMetadataHook(t){this.eventCache.setEventMetadataHook(t)}clearEventMetadataHook(){this.eventCache.clearEventMetadataHook()}addPlugin(t){this.pluginManager.addPlugin(t)}dispatch(){this.dispatchManager.dispatchFetch()}dispatchBeacon(){this.dispatchManager.dispatchBeacon()}enable(){this.eventCache.enable(),this.pluginManager.enable(),this.dispatchManager.enable()}disable(){this.dispatchManager.disable(),this.pluginManager.disable(),this.eventCache.disable()}allowCookies(t){this.config.allowCookies=t}clearCookies(){const t=this.config.cookieAttributes;[S1,w1,dd,`${S1}_${this.applicationId}`,`${w1}_${this.applicationId}`,`${dd}_${this.applicationId}`].forEach(r=>wwe(r,t))}recordPageView(t){this.eventCache.recordPageView(t)}recordError(t){this.pluginManager.record("com.amazonaws.rum.js-error",t)}registerDomEvents(t){this.pluginManager.updatePlugin("com.amazonaws.rum.dom-event",t)}recordEvent(t,n,r){this.eventCache.recordEvent(t,n,r)}initDispatch(t,n){return new bSe(n,t,this.config.endpointUrl,this.eventCache,this.config)}initPluginManager(t,n){const r={applicationId:t,applicationVersion:n,config:this.config,record:this.eventCache.recordEvent,recordCandidate:this.eventCache.recordCandidate,recordPageView:this.eventCache.recordPageView,getSession:this.eventCache.getSession,eventBus:this.eventBus},a=new Swe(r);return this.config.disableAutoPageView||a.addPlugin(new Gwe),this.config.eventPluginsToLoad.forEach(s=>{a.addPlugin(s)}),a}};var Za;(function(e){e.Errors="errors",e.Performance="performance",e.Interaction="interaction",e.Http="http",e.Replay="replay"})(Za||(Za={}));var iD;(function(e){e.Path="PATH",e.Hash="HASH",e.PathAndHash="PATH_AND_HASH"})(iD||(iD={}));const Z_e=e=>Object.assign(Object.assign({},rq(e)),{signing:!0,telemetries:[Za.Errors,Za.Performance,Za.Http,Za.Replay]});class X_e extends Y_e{constructor(t,n,r,a={}){super(t,n,r,Object.assign(Object.assign({},Z_e(nq())),a)),Se.info(`RUM client initialized for app: ${t}`),Se.info(`Telemetries enabled: ${this.config.telemetries.join(", ")||"none"}`)}initDispatch(t,n){const r=super.initDispatch(t,n);return r.setSigningConfigFactory(KSe),r.setCognitoCredentialProviderFactory((a,s,i,u)=>{const c={identityPoolId:i,guestRoleArn:u,cookieAttributes:a.cookieAttributes};return i&&u?new cwe(c,s).ChainAnonymousCredentialsProvider:new dwe(c,s).ChainAnonymousCredentialsProvider}),this.config.signing&&this.config.identityPoolId&&r.setCognitoCredentials(this.config.identityPoolId,this.config.guestRoleArn),r}initPluginManager(t,n){const r=super.initPluginManager(t,n);return this.constructBuiltinPlugins().forEach(s=>{r.addPlugin(s)}),r}recordError(t){this.pluginManager.record(Z$,t)}registerDomEvents(t){this.pluginManager.updatePlugin(K$,t)}constructBuiltinPlugins(){let t=[];const n=this.telemetryFunctor();return this.config.telemetries.forEach(r=>{typeof r=="string"&&n[r.toLowerCase()]?t=[...t,...n[r.toLowerCase()]({})]:Array.isArray(r)&&n[r[0].toLowerCase()]&&(t=[...t,...n[r[0].toLowerCase()](r[1])])}),t}telemetryFunctor(){return{[Za.Errors]:t=>[new Fwe(t)],[Za.Performance]:t=>[new Hwe(t),new Ywe(t),new mxe(t)],[Za.Interaction]:t=>[new eI(t)],[Za.Http]:t=>[new Sxe(t),new vxe(t)],[Za.Replay]:t=>[new G_e(t)]}}}const aq={recordPageView:()=>{},recordError:()=>{},recordEvent:()=>{},recordTiming:()=>{}},Q_e=/([?&](token|access_token|id_token|authorization)=[^&]*)|\/messages\/[a-z0-9_-]+/gi;function sq(e){return e.replace(Q_e,"[redacted]")}function J_e(e){const t=e.indexOf("?"),n=e.indexOf("#"),r=t===-1&&n===-1?e.length:t===-1?n:n===-1?t:Math.min(t,n);return sq(e.slice(0,r))}function eke(e){const t=sq(e.message);if(t===e.message)return e;const n=new Error(t);return n.name=e.name,n.stack=e.stack,n}function tke(e){return{recordPageView(t){e.recordPageView(J_e(t))},recordError(t,n){e.recordError(eke(t)),n&&e.recordEvent("telemetry.error_context",n)},recordEvent(t,n){e.recordEvent(t,n??{})},recordTiming(t,n,r){e.recordEvent("telemetry.timing",{...r,name:t,durationMs:String(n)})}}}function lD(e){return e instanceof Error?e:new Error(String(e))}function nke(e){window.addEventListener("error",t=>{e.recordError(lD(t.error??t.message))}),window.addEventListener("unhandledrejection",t=>{e.recordError(lD(t.reason))})}function rke(){const{appMonitorId:e,identityPoolId:t,region:n}=cv().rum;if(!e)return aq;const r=new X_e(e,"1.0.0",n,{sessionSampleRate:1,identityPoolId:t,endpoint:`https://dataplane.rum.${n}.amazonaws.com`,telemetries:["performance"],disableAutoPageView:!0,allowCookies:!1,enableXRay:!1}),a=tke(r);return nke(a),a}const oq=E.createContext(aq);function aMe(){return E.useContext(oq)}const U_="remit.theme",ake="dark";function uD(){return typeof localStorage>"u"?"system":localStorage.getItem(U_)??"system"}function j_(e){if(typeof document>"u")return;const t=e==="dark"||e==="system"&&typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle(ake,t)}function sMe(e){typeof localStorage<"u"&&(e==="system"?localStorage.removeItem(U_):localStorage.setItem(U_,e)),j_(e)}const ske=()=>{if(typeof window>"u"||(j_(uD()),typeof window.matchMedia!="function"))return;const e=window.matchMedia("(prefers-color-scheme: dark)"),t=()=>{j_(uD())};typeof e.addEventListener=="function"?e.addEventListener("change",t):e.addListener(t)},oke=e=>e==="true"||e==="false"||e==="null"||/^["[{]/.test(e)||e!==""&&Number.isFinite(Number(e));function cD(e){return typeof e=="object"&&e!==null?JSON.stringify(e):typeof e=="string"?oke(e)?JSON.stringify(e):e:String(e)}function ike(e){const t=new URLSearchParams;for(const r of Object.keys(e)){const a=e[r];if(a!==void 0){if(Array.isArray(a)){for(const s of a)t.append(r,cD(s));continue}t.set(r,cD(a))}}const n=t.toString();return n===""?"":`?${n}`}const lke=(e,t,n,r)=>{const a=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(a,"warn","react-i18next::",!0);Yl(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...a):console?.warn&&console.warn(...a)},dD={},z_=(e,t,n,r)=>{Yl(n)&&dD[n]||(Yl(n)&&(dD[n]=new Date),lke(e,t,n,r))},iq=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},F_=(e,t,n)=>{e.loadNamespaces(t,iq(e,n))},fD=(e,t,n,r)=>{if(Yl(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return F_(e,n,r);n.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,iq(e,r))},uke=(e,t,n={})=>!t.languages||!t.languages.length?(z_(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!a(r.isLanguageChangingTo,e))return!1}}),Yl=e=>typeof e=="string",cke=e=>typeof e=="object"&&e!==null,dke=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,fke={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},hke=e=>fke[e],pke=e=>e.replace(dke,hke);let $_={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:pke};const mke=(e={})=>{$_={...$_,...e}},gke=()=>$_;let lq;const vke=e=>{lq=e},yke=()=>lq,bke={type:"3rdParty",init(e){mke(e.options.react),vke(e)}},Ske=E.createContext();class wke{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const xke=(e,t)=>{const n=E.useRef();return E.useEffect(()=>{n.current=e},[e,t]),n.current},uq=(e,t,n,r)=>e.getFixedT(t,n,r),Cke=(e,t,n,r)=>E.useCallback(uq(e,t,n,r),[e,t,n,r]),cq=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:a}=E.useContext(Ske)||{},s=n||r||yke();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new wke),!s){z_(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const R=(O,T)=>Yl(T)?T:cke(T)&&Yl(T.defaultValue)?T.defaultValue:Array.isArray(O)?O[O.length-1]:O,N=[R,{},!1];return N.t=R,N.i18n={},N.ready=!1,N}s.options.react?.wait&&z_(s,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...gke(),...s.options.react,...t},{useSuspense:u,keyPrefix:c}=i;let f=e||a||s.options?.defaultNS;f=Yl(f)?[f]:f||["translation"],s.reportNamespaces.addUsedNamespaces?.(f);const h=(s.isInitialized||s.initializedStoreOnce)&&f.every(R=>uke(R,s,i)),m=Cke(s,t.lng||null,i.nsMode==="fallback"?f:f[0],c),g=()=>m,y=()=>uq(s,t.lng||null,i.nsMode==="fallback"?f:f[0],c),[S,w]=E.useState(g);let x=f.join();t.lng&&(x=`${t.lng}${x}`);const _=xke(x),k=E.useRef(!0);E.useEffect(()=>{const{bindI18n:R,bindI18nStore:N}=i;k.current=!0,!h&&!u&&(t.lng?fD(s,t.lng,f,()=>{k.current&&w(y)}):F_(s,f,()=>{k.current&&w(y)})),h&&_&&_!==x&&k.current&&w(y);const O=()=>{k.current&&w(y)};return R&&s?.on(R,O),N&&s?.store.on(N,O),()=>{k.current=!1,s&&R&&R?.split(" ").forEach(T=>s.off(T,O)),N&&s&&N.split(" ").forEach(T=>s.store.off(T,O))}},[s,x]),E.useEffect(()=>{k.current&&h&&w(g)},[s,c,h]);const A=[S,s,h];if(A.t=S,A.i18n=s,A.ready=h,h||!h&&!u)return A;throw new Promise(R=>{t.lng?fD(s,t.lng,f,()=>R()):F_(s,f,()=>R())})},Eke=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts",...e,headers:{"Content-Type":"application/json",...e.headers}}),_ke=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/oauth/microsoft/start",...e,headers:{"Content-Type":"application/json",...e.headers}}),kke=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/test-connection",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ake=e=>(e.client??Ae).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}",...e}),Ike=e=>(e.client??Ae).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Rke=e=>(e.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters",...e}),Tke=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oke=e=>(e.client??Ae).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters/{filterId}",...e}),Nke=e=>(e.client??Ae).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters/{filterId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Mke=e=>(e.client??Ae).put({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/folder-roles/{role}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pke=e=>(e.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels",...e}),Dke=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels",...e,headers:{"Content-Type":"application/json",...e.headers}}),Lke=e=>(e.client??Ae).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels/{labelId}",...e}),Uke=e=>(e.client??Ae).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels/{labelId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),jke=e=>(e.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes",...e}),zke=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes",...e,headers:{"Content-Type":"application/json",...e.headers}}),oMe=e=>(e.client??Ae).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes/{mailboxId}",...e}),Fke=e=>(e.client??Ae).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes/{mailboxId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),$ke=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize",...e,headers:{"Content-Type":"application/json",...e.headers}}),Bke=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize/preview",...e,headers:{"Content-Type":"application/json",...e.headers}}),Hke=e=>(e.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize/{organizeJobId}",...e}),qke=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/sync",...e}),Vke=e=>(e.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/sync/status",...e}),Wke=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/trash/empty",...e}),Gke=e=>(e.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/addresses/search",...e}),Kke=e=>(e.client??Ae).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/addresses/{addressId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Yke=e=>(e.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/calendar-events",...e}),Zke=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/calendar-events",...e,headers:{"Content-Type":"application/json",...e.headers}}),Xke=e=>(e.client??Ae).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/calendar-events/{calendarObjectId}",...e}),Qke=e=>(e.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/calendar-events/{calendarObjectId}",...e}),Jke=e=>(e.client??Ae).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/calendar-events/{calendarObjectId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),eAe=e=>(e.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/calendar-free-busy",...e}),tAe=e=>(e?.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/calendars",...e}),nAe=e=>(e.client??Ae).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/calendars/{calendarId}/feed",...e}),rAe=e=>(e.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/calendars/{calendarId}/feed",...e}),aAe=e=>(e.client??Ae).put({security:[{name:"Authorization",type:"apiKey"}],url:"/calendars/{calendarId}/feed",...e}),sAe=e=>(e?.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/config",...e}),oAe=e=>(e?.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/config/export",...e}),iAe=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/config/import",...e,headers:{"Content-Type":"application/json",...e.headers}}),iMe=e=>(e.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/mailboxes/{mailboxId}/threads",...e}),lAe=e=>(e.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/mailboxes/{mailboxId}/threads/search",...e}),uAe=e=>(e.client??Ae).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/me",...e,headers:{"Content-Type":"application/json",...e.headers}}),cAe=e=>(e?.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/me/export",...e}),dAe=e=>(e?.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/me/quarantine",...e}),fAe=e=>(e?.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/me/vip-suggestions",...e}),hAe=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/delete",...e,headers:{"Content-Type":"application/json",...e.headers}}),pAe=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/flags",...e,headers:{"Content-Type":"application/json",...e.headers}}),mAe=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/labels",...e,headers:{"Content-Type":"application/json",...e.headers}}),gAe=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/move",...e,headers:{"Content-Type":"application/json",...e.headers}}),lMe=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/not-spam",...e,headers:{"Content-Type":"application/json",...e.headers}}),uMe=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/report-spam",...e,headers:{"Content-Type":"application/json",...e.headers}}),vAe=e=>(e.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}",...e}),yAe=e=>(e.client??Ae).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}/flags",...e,headers:{"Content-Type":"application/json",...e.headers}}),bAe=e=>(e.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}/raw",...e}),SAe=e=>(e?.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox",...e}),wAe=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox",...e,headers:{"Content-Type":"application/json",...e.headers}}),xAe=e=>(e.client??Ae).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...e}),CAe=e=>(e.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...e}),EAe=e=>(e.client??Ae).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),_Ae=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}/send",...e}),kAe=e=>(e.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/search/semantic",...e}),dq=e=>(e?.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/system/update",...e}),AAe=e=>(e.client??Ae).post({security:[{name:"Authorization",type:"apiKey"}],url:"/system/update",...e,headers:{"Content-Type":"application/json",...e.headers}}),IAe=e=>(e?.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/threads",...e}),RAe=e=>(e.client??Ae).get({security:[{name:"Authorization",type:"apiKey"}],url:"/threads/{threadId}/messages",...e}),cMe=e=>({mutationFn:async n=>{const{data:r}=await Eke({...e,...n,throwOnError:!0});return r}}),tn=(e,t,n,r)=>{const a={_id:e,baseUrl:t?.baseUrl||(t?.client??Ae).getConfig().baseUrl};return t?.body&&(a.body=t.body),t?.headers&&(a.headers=t.headers),t?.path&&(a.path=t.path),t?.query&&(a.query=t.query),[a]},dMe=e=>({mutationFn:async n=>{const{data:r}=await _ke({...e,...n,throwOnError:!0});return r}}),fMe=e=>({mutationFn:async n=>{const{data:r}=await kke({...e,...n,throwOnError:!0});return r}}),hMe=e=>({mutationFn:async n=>{const{data:r}=await Ake({...e,...n,throwOnError:!0});return r}}),pMe=e=>({mutationFn:async n=>{const{data:r}=await Ike({...e,...n,throwOnError:!0});return r}}),TAe=e=>tn("filterOperationsListFilters",e),mMe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await Rke({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:TAe(e)}),gMe=e=>({mutationFn:async n=>{const{data:r}=await Tke({...e,...n,throwOnError:!0});return r}}),vMe=e=>({mutationFn:async n=>{const{data:r}=await Oke({...e,...n,throwOnError:!0});return r}}),yMe=e=>tn("filterDetailOperationsGetFilter",e),bMe=e=>({mutationFn:async n=>{const{data:r}=await Nke({...e,...n,throwOnError:!0});return r}}),OAe=e=>({mutationFn:async n=>{const{data:r}=await Mke({...e,...n,throwOnError:!0});return r}}),NAe=e=>tn("labelOperationsListLabels",e),SMe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await Pke({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:NAe(e)}),wMe=e=>({mutationFn:async n=>{const{data:r}=await Dke({...e,...n,throwOnError:!0});return r}}),xMe=e=>({mutationFn:async n=>{const{data:r}=await Lke({...e,...n,throwOnError:!0});return r}}),CMe=e=>({mutationFn:async n=>{const{data:r}=await Uke({...e,...n,throwOnError:!0});return r}}),fq=e=>tn("mailboxOperationsListMailboxes",e),B_=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await jke({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:fq(e)}),MAe=e=>({mutationFn:async n=>{const{data:r}=await zke({...e,...n,throwOnError:!0});return r}}),EMe=e=>({mutationFn:async n=>{const{data:r}=await Fke({...e,...n,throwOnError:!0});return r}}),_Me=e=>({mutationFn:async n=>{const{data:r}=await $ke({...e,...n,throwOnError:!0});return r}}),kMe=e=>({mutationFn:async n=>{const{data:r}=await Bke({...e,...n,throwOnError:!0});return r}}),PAe=e=>tn("organizeJobDetailOperationsGetOrganizeJob",e),AMe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await Hke({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:PAe(e)}),IMe=e=>({mutationFn:async n=>{const{data:r}=await qke({...e,...n,throwOnError:!0});return r}}),DAe=e=>tn("syncOperationsGetSyncStatus",e),RMe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await Vke({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:DAe(e)}),TMe=e=>({mutationFn:async n=>{const{data:r}=await Wke({...e,...n,throwOnError:!0});return r}}),LAe=e=>tn("addressOperationsSearchAddresses",e),OMe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await Gke({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:LAe(e)}),NMe=e=>({mutationFn:async n=>{const{data:r}=await Kke({...e,...n,throwOnError:!0});return r}}),UAe=e=>tn("calendarEventOperationsListCalendarEvents",e),MMe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await Yke({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:UAe(e)}),PMe=e=>({mutationFn:async n=>{const{data:r}=await Zke({...e,...n,throwOnError:!0});return r}}),DMe=e=>({mutationFn:async n=>{const{data:r}=await Xke({...e,...n,throwOnError:!0});return r}}),jAe=e=>tn("calendarEventDetailOperationsGetCalendarEvent",e),LMe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await Qke({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:jAe(e)}),UMe=e=>({mutationFn:async n=>{const{data:r}=await Jke({...e,...n,throwOnError:!0});return r}}),zAe=e=>tn("calendarFreeBusyOperationsListCalendarFreeBusy",e),jMe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await eAe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:zAe(e)}),FAe=e=>tn("calendarOperationsListCalendars",e),zMe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await tAe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:FAe(e)}),FMe=e=>({mutationFn:async n=>{const{data:r}=await nAe({...e,...n,throwOnError:!0});return r}}),$Ae=e=>tn("calendarDetailOperationsGetCalendarFeed",e),$Me=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await rAe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:$Ae(e)}),BMe=e=>({mutationFn:async n=>{const{data:r}=await aAe({...e,...n,throwOnError:!0});return r}}),hq=e=>tn("configOperationsGetConfig",e),PI=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await sAe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:hq(e)}),BAe=e=>tn("configOperationsExportConfig",e),HMe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await oAe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:BAe(e)}),qMe=e=>({mutationFn:async n=>{const{data:r}=await iAe({...e,...n,throwOnError:!0});return r}}),VMe=e=>tn("threadOperationsListThreads",e),HAe=e=>tn("threadOperationsSearchThreads",e),WMe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await lAe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:HAe(e)}),GMe=e=>({mutationFn:async n=>{const{data:r}=await uAe({...e,...n,throwOnError:!0});return r}}),KMe=e=>({mutationFn:async n=>{const{data:r}=await cAe({...e,...n,throwOnError:!0});return r}}),qAe=e=>tn("meOperationsListQuarantine",e),YMe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await dAe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:qAe(e)}),VAe=e=>tn("meOperationsListVipSuggestions",e),ZMe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await fAe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:VAe(e)}),XMe=e=>({mutationFn:async n=>{const{data:r}=await hAe({...e,...n,throwOnError:!0});return r}}),QMe=e=>({mutationFn:async n=>{const{data:r}=await pAe({...e,...n,throwOnError:!0});return r}}),JMe=e=>({mutationFn:async n=>{const{data:r}=await mAe({...e,...n,throwOnError:!0});return r}}),e8e=e=>({mutationFn:async n=>{const{data:r}=await gAe({...e,...n,throwOnError:!0});return r}}),WAe=e=>tn("messageOperationsDescribeMessage",e),t8e=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await vAe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:WAe(e)}),n8e=e=>({mutationFn:async n=>{const{data:r}=await yAe({...e,...n,throwOnError:!0});return r}}),GAe=e=>tn("messageOperationsGetRawMessage",e),r8e=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await bAe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:GAe(e)}),pq=e=>tn("outboxOperationsListOutboxMessages",e),a8e=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await SAe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:pq(e)}),s8e=e=>({mutationFn:async n=>{const{data:r}=await wAe({...e,...n,throwOnError:!0});return r}}),o8e=e=>({mutationFn:async n=>{const{data:r}=await xAe({...e,...n,throwOnError:!0});return r}}),KAe=e=>tn("outboxDetailOperationsGetOutboxMessage",e),YAe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await CAe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:KAe(e)}),i8e=e=>({mutationFn:async n=>{const{data:r}=await EAe({...e,...n,throwOnError:!0});return r}}),l8e=e=>({mutationFn:async n=>{const{data:r}=await _Ae({...e,...n,throwOnError:!0});return r}}),ZAe=e=>tn("semanticSearchOperationsSemanticSearch",e),u8e=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await kAe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:ZAe(e)}),mq=e=>tn("systemOperationsGetSystemUpdate",e),XAe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await dq({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:mq(e)}),QAe=e=>({mutationFn:async n=>{const{data:r}=await AAe({...e,...n,throwOnError:!0});return r}}),JAe=e=>tn("unifiedThreadOperationsListAllThreads",e),eIe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await IAe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:JAe(e)}),tIe=e=>tn("threadDetailOperationsListThreadMessages",e),c8e=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await RAe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:tIe(e)}),gq=E.createContext(void 0),nIe=2e3,rIe=6e4,aIe=e=>e==="sent"||e==="unfiled"||e==="failed"||e==="blocked",sIe=qj(404),hD=(e,t)=>aIe(e)||t!=null,oIe=({children:e})=>{const[t,n]=E.useState(),r=zd(),{data:a,error:s}=Jh({...YAe({path:{outboxMessageId:t??""}}),enabled:!!t,meta:sIe,retry:(f,h)=>!moe(h)&&f<1,refetchInterval:f=>hD(f.state.data?.status,f.state.error)?!1:nIe}),i=E.useCallback(()=>{n(void 0),r.invalidateQueries({queryKey:pq()})},[r]);E.useEffect(()=>{t&&hD(a?.status,s)&&i()},[a,s,t,i]),E.useEffect(()=>{if(!t)return;const f=setTimeout(i,rIe);return()=>clearTimeout(f)},[t,i]);const u=E.useCallback(f=>{n(f)},[]),c=E.useMemo(()=>({startSendPolling:u}),[u]);return C.jsx(gq.Provider,{value:c,children:e})},d8e=()=>{const e=E.useContext(gq);if(!e)throw new Error("useCompose must be used within a ComposeProvider");return e},iIe={Inbox:"Inbox",Drafts:"Drafts",Sent:"Sent",Archive:"Archive",Junk:"Junk",Trash:"Trash",All:"All",Flagged:"Flagged"},f8e={Appointed:"Appointed",Flagged:"Flagged",Reserved:"Reserved",Proposed:"Proposed",Stale:"Stale",None:"None"},pD={synced:"synced",failed:"failed"},h8e={uncategorized:"uncategorized",personal:"personal",newsletter:"newsletter",marketing:"marketing",automated:"automated",transactional:"transactional",social:"social"},p8e={Lookalike:"Lookalike",ForeignAddress:"ForeignAddress",Unrelated:"Unrelated"},m8e={active:"active"},g8e={failed:"failed"},v8e={MoveToInbox:"MoveToInbox",MoveToJunk:"MoveToJunk"},y8e={Attachment:"attachment"},lIe=new Set(["none","stale","unconfirmed"]),uIe=new Set(Object.values(iIe)),NE=(e,t)=>{const n=e?.[t];return typeof n=="string"?n:void 0},b8e=e=>{const t=Fj(e);if(t?.code!=="folder_role_unresolved")return;const{details:n}=t;if(!n)return;const r=NE(n,"reason"),a=NE(n,"role"),s=NE(n,"accountId");if(!(!r||!lIe.has(r))&&!(!a||!uIe.has(a)||!s))return{reason:r,role:a,accountId:s}},cIe=e=>Fj(e)?.code==="mailbox_not_settled",dIe=e=>e.hierarchyDelimiter.length===0?[e.fullPath]:e.fullPath.split(e.hierarchyDelimiter),vp=e=>{const t=dIe(e);return t[t.length-1]||e.fullPath},fIe=3e4,hIe=1e3,pIe="The folder couldn't be created on the mail server. Please try again.",mIe="The folder was created but the mail server hasn't confirmed it yet, so nothing was attached to it. It's in your folder list — try again in a moment.",gIe=(e,t)=>new Promise((n,r)=>{if(t?.aborted){r(t.reason);return}const a=setTimeout(()=>{t?.removeEventListener("abort",s),n()},e),s=()=>{clearTimeout(a),r(t?.reason)};t?.addEventListener("abort",s,{once:!0})});async function vIe({fetchMailboxes:e,mailboxId:t,signal:n,timeoutMs:r=fIe,pollIntervalMs:a=hIe,delay:s=gIe,now:i=Date.now}){const u=i()+r;for(;;){n?.throwIfAborted();const f=(await e()).find(h=>h.mailboxId===t);if(f?.syncStatus===pD.synced)return f;if(f?.syncStatus===pD.failed)throw new Error(pIe);if(i()>=u)throw new Error(mIe);await s(a,n)}}function vq(e,t){const n=e.trim();return t?`${t.fullPath}${t.hierarchyDelimiter}${n}`:n}const mD=(e,t)=>{const n=t.length===0?[e]:e.split(t);return n[0]?.toLowerCase()==="inbox"&&(n[0]="INBOX"),n.join(t)};function yIe({name:e,delimiter:t,parent:n,existingPaths:r}){const a=e.trim();if(a==="")return"Enter a folder name.";if(t.length>0&&a.includes(t))return`A folder name can't contain "${t}".`;const s=mD(vq(a,n),t);if(r.some(u=>mD(u,t)===s))return"A folder with that name already exists."}function bIe(e){const t=zd(),{data:n}=Jh({...B_({path:{accountId:e??""}}),enabled:!!e}),r=jA({...MAe(),onSuccess:()=>{e&&t.invalidateQueries({queryKey:fq({path:{accountId:e}})})}}),a=E.useRef(new Map),s=E.useCallback(async(u,c,f)=>{if(!e)throw new Error("No account to create the folder in. Pick messages from a single account first.");const h=n?.items??[],m=c?h.find(x=>x.fullPath===c):void 0;if(c&&!m)throw new Error(`Couldn't find the folder "${c}" to create this one inside.`);const g=m?{fullPath:m.fullPath,hierarchyDelimiter:m.hierarchyDelimiter}:void 0,y=vq(u,g);let S=a.current.get(y);if(!S){const x=g?.hierarchyDelimiter??h[0]?.hierarchyDelimiter??"/",_=yIe({name:u,delimiter:x,parent:g,existingPaths:h.map(A=>A.fullPath)});if(_)throw new Error(_);S=(await r.mutateAsync({path:{accountId:e},body:{fullPath:y,namespaceType:"personal"}})).mailboxId,a.current.set(y,S)}const w=await vIe({mailboxId:S,signal:f,fetchMailboxes:async()=>(await t.fetchQuery({...B_({path:{accountId:e}}),staleTime:0})).items??[]});return a.current.delete(y),{id:w.mailboxId,label:vp(w),path:w.fullPath}},[r,e,n,t]);return{createFolder:E.useCallback((u,c)=>s(u,"",c),[s]),createFolderIn:s,mutation:r}}const SIe=()=>{const{t:e}=cq("mail",{useSuspense:!1});return E.useCallback((t,n)=>e(t,{defaultValue:n}),[e])},ME={Inbox:"inbox",Drafts:"drafts",Sent:"sent",Archive:"archive",Junk:"junk",Trash:"trash",All:"all",Flagged:"flagged"},S8e={inbox:"Inbox",drafts:"Drafts",sent:"Sent",archive:"Archive",junk:"Junk",trash:"Trash",all:"All",flagged:"Flagged"},yp=["inbox","flagged","drafts","sent","archive","all","junk","trash"];function wy(e){const t=new Map,n=[...e].sort((r,a)=>yp.indexOf(ME[r.role])-yp.indexOf(ME[a.role]));for(const r of n){if(!r.mailboxId||t.has(r.mailboxId))continue;const a=ME[r.role];a&&t.set(r.mailboxId,a)}return t}function yq(e,t,n){const r=e.displayNameOverride?.trim();if(r)return r;const a=vp(e);return!t||!n?a:n(`sidebar.${t}`,a)}const wIe=new Set(["sent","drafts","trash"]),w8e=e=>e===void 0||!wIe.has(e),x8e=100,xIe=e=>e.trim().toLowerCase()==="inbox",CIe=(e,t)=>{if(e.hierarchyDelimiter.length===0)return!1;const n=`${e.fullPath}${e.hierarchyDelimiter}`;return t.some(r=>r.mailboxId!==e.mailboxId&&r.fullPath.startsWith(n))},EIe=["Appointed","Flagged","Reserved"],_Ie=(e,t)=>e.mailboxId!==t.mailboxId?!1:e.source==="Stale"?t.specialUse?.includes(e.role)??!1:EIe.includes(e.source),kIe=(e,t)=>t.find(n=>_Ie(n,e))?.role;function C8e(e,t,n){if(xIe(e.fullPath))return{deletable:!1,reason:"inbox",message:"The inbox can't be deleted."};const r=kIe(e,n);return r?{deletable:!1,reason:"role",message:`This folder is your ${r} folder. Reassign that role before deleting it.`}:CIe(e,t)?{deletable:!1,reason:"children",message:"This folder has subfolders. Delete them first."}:{deletable:!0}}function AIe(e,t){return e.filter(n=>n.mailboxId!==t)}function E8e(e){return{total:e,moved:0,phase:e===0?"moved":"moving"}}function _8e(e,t){if(e.phase!=="moving")return e;const n=Math.min(e.total,e.moved+Math.max(0,t));return{...e,moved:n,phase:n>=e.total?"moved":"moving"}}function k8e(e,t){return{...e,phase:"failed",error:t}}function A8e(e){return`Moved ${e.moved} of ${e.total}`}function I8e(e){const t=Math.max(0,Math.floor(e/1e3));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}function R8e(e){return e>0?"choose-fate":"confirm-empty"}const IIe=new Set(["outbox","postvak uit","boîte d'envoi","postausgang","buzón de salida","posta in uscita","送信トレイ","送件匣","发件箱","skrzynka nadawcza"]),RIe=e=>{const t=vp(e).trim().toLowerCase();return IIe.has(t)},gD=yp.length,TIe=(e,t)=>{const n=wy(t);return[...e.filter(a=>{const s=n.get(a.mailboxId);return s==="drafts"||s==="sent"?!1:!RIe(a)})].sort((a,s)=>{const i=n.has(a.mailboxId)?yp.indexOf(n.get(a.mailboxId)??"inbox"):gD,u=n.has(s.mailboxId)?yp.indexOf(n.get(s.mailboxId)??"inbox"):gD;return i!==u?i-u:vp(a).localeCompare(vp(s),void 0,{sensitivity:"base",numeric:!0})})},OIe=e=>e[0]?.hierarchyDelimiter??"/",NIe=({mailboxes:e,folderAppointments:t,currentMailboxId:n,excludeMailboxId:r,translator:a})=>{const s=TIe(e,t),i=wy(t);return(r?AIe(s,r):s).map(c=>({id:c.mailboxId,label:yq(c,i.get(c.mailboxId),a),path:c.fullPath,isCurrent:c.mailboxId===n,messageCount:c.messageCount}))},bq=E.createContext(void 0),vD=Symbol("appoint-failed"),MIe=({children:e})=>{const t=zd(),n=SIe(),[r,a]=E.useState(null),[s,i]=E.useState(),[u,c]=E.useState({kind:"choosing"}),f=r?.accountId,{data:h}=Jh({...PI(),staleTime:1/0,enabled:!!f}),{data:m}=Jh({...B_({path:{accountId:f??""}}),enabled:!!f}),{createFolderIn:g}=bIe(f),y=jA({...OAe(),meta:qj(409)}),S=h?.accounts.find(U=>U.accountId===f),w=E.useMemo(()=>m?.items??[],[m]),x=E.useMemo(()=>S?.folderAppointments??[],[S]),_=E.useMemo(()=>NIe({mailboxes:w,folderAppointments:x,translator:n}),[w,x,n]),k=x.find(U=>U.role===r?.role),A=r?.guessedMailboxId??k?.mailboxId,R=w.find(U=>U.mailboxId===A),N=r?.trashFolderLabel??(R?yq(R,wy(x).get(R.mailboxId),n):void 0),O=E.useRef(null),T=E.useCallback(()=>{O.current=null,a(null),i(void 0),c({kind:"choosing"})},[]),P=E.useCallback(U=>{O.current=U,a(U),c({kind:"choosing"}),i(U.reason==="unconfirmed"?U.guessedMailboxId:void 0)},[]),L=E.useCallback(U=>{O.current===U&&T()},[T]),q=E.useCallback(U=>{r&&(c({kind:"appointing"}),y.mutateAsync({path:{accountId:r.accountId,role:r.role},body:{mailboxId:U}}).catch(H=>(c({kind:"appoint-failed",cause:cIe(H)?"mailbox-pending":"generic"}),vD)).then(async H=>{H!==vD&&(await t.invalidateQueries({queryKey:hq()}),c({kind:"acting"}),await r.onAppointed(),L(r))}).catch(()=>L(r)))},[r,y,t,L]),j=E.useMemo(()=>({requestAppointment:P}),[P]);return C.jsxs(bq.Provider,{value:j,children:[e,r&&C.jsx(ase,{open:!0,reason:r.reason,action:r.action,folders:_,delimiter:OIe(w),trashFolderLabel:N,guessedMailboxId:A,staleFolderLabel:r.staleFolderLabel??k?.staleAppointmentPath,accountEmail:(h?.accounts.length??0)>1?S?.email:void 0,phase:u,selectedId:s,onSelect:i,onCreateFolder:g,onConfirm:q,onCancel:T})]})},T8e=()=>{const e=E.useContext(bq);if(!e)throw new Error("useRoleAppointmentPrompt must be used within a RoleAppointmentPromptProvider");return e},PIe=600,DIe=300,Sq="remit logs",LIe="https://github.com/remit-mail/reader/releases/tag/";function wq(e,t){const n=t?.check.lastCheckedAt;return n!==void 0&&n!==e.since}function UIe(e){const t=ns(e);return`The check could not be requested — ${t===void 0?"the server did not answer":`the server answered ${t}`}. Run \`remit logs backend\` to see why.`}const jIe={checking:"preparing",pulling:"preparing",snapshotting:"preparing",stopping:"restarting",starting:"restarting",verifying:"reconnecting",committing:"reconnecting",rollingBack:"reconnecting",recovering:"reconnecting"};function DI(e){return jIe[e]??"reconnecting"}function xq(e){const t=ns(e);return t===404||t===403||t===401}function Cq(e,t){const n=e?.check;if(n?.status==="ok"&&!(!n.updateAvailable||!n.latestVersion))return{version:n.latestVersion,releasedAt:B1(n.publishedAt)??t,releaseNotesUrl:n.releaseNotesUrl??_q(n.latestVersion),summary:n.summary??""}}function zIe(e){const t=e?.check.schemaVersion,n=e?.currentSchemaVersion;return t===void 0||n===void 0?!1:t>n}function yD(){return PIe+DIe}function Eq(e,t){return Math.max(0,Math.floor((t-e)/1e3))}function B1(e){if(!e)return;const t=Date.parse(e);return Number.isNaN(t)?void 0:t}function _q(e){return`${LIe}${e}`}function Uh(e,t,n,r,a){return{status:"applying",runId:e,version:t,target:n,phase:r,elapsedSeconds:a}}function FIe(e,t,n){switch(n){case"succeeded":return{status:"succeeded",runId:t.runId,version:t.targetVersion,previousVersion:t.fromVersion,releaseNotesUrl:e.check.releaseNotesUrl??_q(t.targetVersion)};case"rolledBack":return{status:"rolledBack",runId:t.runId,version:t.fromVersion,attemptedVersion:t.targetVersion,reason:t.message,logsCommand:t.logCommand};case"rollbackFailed":return{status:"rollbackFailed",runId:t.runId,attemptedVersion:t.targetVersion,previousVersion:t.fromVersion,reason:t.message,logsCommand:t.logCommand};case"abandoned":return{status:"abandoned",runId:t.runId,version:t.fromVersion,attemptedVersion:t.targetVersion,reason:t.message,logsCommand:t.logCommand};default:return n}}function $Ie(e,t,n,r){const a=e.check,s=B1(a.lastCheckedAt);if(n!==null)return{status:"checkFailed",version:e.currentVersion,reason:n,lastCheckedAt:s};if(t!==null&&!wq(t,e))return{status:"checking",version:e.currentVersion};if(a.status==="failed")return{status:"checkFailed",version:e.currentVersion,reason:a.error??"Remit could not reach the update service.",lastCheckedAt:s};if(a.status==="disabled")return{status:"neverChecked",version:e.currentVersion,lastCheckedAt:s};const i=Cq(e,r);return i?{status:"available",version:e.currentVersion,release:i}:{status:"upToDate",version:e.currentVersion,checkedAt:B1(a.lastCheckedAt)??r}}function PE(e,t,n){return{surface:{status:"ready",section:e,overlay:t},releaseHeld:n}}function BIe(e,t){return{surface:{status:"ready",section:Uh(e.runId,e.previousVersion,e.attemptedVersion,"reconnecting",t),overlay:{kind:"neverCameBack",attemptedVersion:e.attemptedVersion,previousVersion:e.previousVersion,elapsedSeconds:t,logsCommand:Sq}},releaseHeld:!1}}function HIe(e,t,n,r,a){const s=Eq(e.startedAt,a),i=t?.currentVersion??e.previousVersion,u=!r&&n!==null&&n.runId===e.runId;if(u&&n!==null&&n.outcome!==null)return null;if(u&&n!==null){const c=DI(n.phase);return PE(Uh(n.runId,i,n.targetVersion,c,s),{kind:"applying",target:n.targetVersion,phase:c,elapsedSeconds:s},!1)}return r?s>yD()?BIe(e,s):PE(Uh(e.runId,e.previousVersion,e.attemptedVersion,"reconnecting",s),{kind:"applying",target:e.attemptedVersion,phase:"reconnecting",elapsedSeconds:s},!1):t===void 0?{surface:{status:"loading"},releaseHeld:!1}:s>yD()?{surface:{status:"ready",section:{status:"unreachable",runId:e.runId,previousVersion:e.previousVersion,attemptedVersion:e.attemptedVersion,elapsedSeconds:s,logsCommand:n?.logCommand??Sq},overlay:{kind:"none"}},releaseHeld:!0}:PE(Uh(e.runId,i,e.attemptedVersion,e.phase,s),{kind:"applying",target:e.attemptedVersion,phase:e.phase,elapsedSeconds:s},!1)}function bD(e){const{data:t,isError:n,dismissedRunId:r,checkPress:a,checkFailure:s,now:i}=e;if(n)return{status:"ready",section:{status:"checkFailed",version:t?.currentVersion??"the current version",reason:"Remit could not reach the update service."},overlay:{kind:"none"}};if(!t)return{status:"loading"};const u=t.run,c=u!==null&&r!==null&&u.runId===r;if(u!==null&&!c&&u.outcome!==null)return{status:"ready",section:FIe(t,u,u.outcome),overlay:{kind:"none"}};if(u!==null&&!c&&u.outcome===null){const f=Eq(B1(u.startedAt)??i,i),h=DI(u.phase);return{status:"ready",section:Uh(u.runId,u.fromVersion,u.targetVersion,h,f),overlay:{kind:"applying",target:u.targetVersion,phase:h,elapsedSeconds:f}}}return{status:"ready",section:$Ie(t,a,s,i),overlay:{kind:"none"}}}function qIe(e){const{data:t,isError:n,error:r,held:a,now:s}=e,i=t?.run??null;if(xq(r)&&!a)return{surface:{status:"absent"},releaseHeld:!0};if(a){const u=HIe(a,t,i,n,s);return u||{surface:bD(e),releaseHeld:!0}}return{surface:bD(e),releaseHeld:!1}}const VIe=3e4,WIe=5e3,GIe=3e4,KIe="The updater did not answer. Run `remit logs updater` to see why.";function YIe(e,t,n,r){if(xq(e)&&!n)return!1;const a=t!==null&&t.outcome===null;return n||a||r?WIe:VIe}function ZIe(){const e=zd(),[t,n]=E.useState(null),[r,a]=E.useState(null),[s,i]=E.useState(null),[u,c]=E.useState(null),f=E.useRef(t);f.current=t;const h=E.useRef(s);h.current=s;const m=Jh({...XAe(),retry:!1,meta:{softError:!0},refetchInterval:T=>YIe(T.state.error,T.state.data?.run??null,f.current!==null,h.current!==null)}),g=E.useRef(m.data);g.current=m.data;const y=qIe({data:m.data,isError:m.isError,error:m.error,held:t,dismissedRunId:r,checkPress:s,checkFailure:u,now:Date.now()}),S=E.useRef(null);S.current=y.surface.status==="ready"&&"runId"in y.surface.section?y.surface.section.runId:null;const{releaseHeld:w}=y;E.useEffect(()=>{w&&n(T=>T===null?T:null)},[w]),E.useEffect(()=>{s!==null&&wq(s,m.data)&&i(null)},[s,m.data]),E.useEffect(()=>{if(s===null)return;const T=s.pressedAt+GIe-Date.now(),P=setTimeout(()=>{i(null),c(KIe)},Math.max(0,T));return()=>clearTimeout(P)},[s]);const{refetch:x}=m,_=E.useCallback(()=>{c(null),i({pressedAt:Date.now(),since:g.current?.check.lastCheckedAt}),dq({query:{refresh:!0},throwOnError:!0}).then(()=>{x()}).catch(T=>{Lk(T,poe,"user")&&Vi(T),i(null),c(UIe(T))})},[x]),k=E.useCallback(()=>{x()},[x]),A=jA({...QAe(),meta:{softError:!0},onSuccess:T=>{const P=T.run;P!==null&&(n({runId:P.runId,attemptedVersion:P.targetVersion,previousVersion:P.fromVersion,phase:DI(P.phase),startedAt:Date.now()}),a(null)),e.setQueryData(mq(),T)},onError:()=>{x()}}),{mutate:R}=A,N=E.useCallback(T=>{R({body:{targetVersion:T}})},[R]),O=E.useCallback(()=>{S.current!==null&&a(S.current),n(null),i(null),c(null)},[]);return{surface:y.surface,appliesSchemaMigration:zIe(m.data),currentVersion:m.data?.currentVersion,release:Cq(m.data,Date.now()),onCheck:_,install:N,onDismissResult:O,onRetryConnection:k}}const LI=E.createContext(null);function XIe({children:e}){const t=ZIe();return E.createElement(LI.Provider,{value:t},e)}function QIe(){const e=E.useContext(LI);if(e===null)throw new Error("useSelfUpdate must be used within a SelfUpdateProvider");return e}function JIe(){return E.useContext(LI)}function eRe(){const{surface:e,onRetryConnection:t}=QIe();if(e.status!=="ready")return null;const{overlay:n}=e;return n.kind==="applying"?C.jsx(Zse,{target:n.target,phase:n.phase,elapsedSeconds:n.elapsedSeconds}):n.kind==="neverCameBack"?C.jsx(Xse,{attemptedVersion:n.attemptedVersion,previousVersion:n.previousVersion,elapsedSeconds:n.elapsedSeconds,logsCommand:n.logsCommand,onRetryConnection:t}):null}const tRe={error:{container:"border-danger/50 bg-danger-soft",icon:"text-danger",title:"text-danger"},warning:{container:"border-warning/50 bg-warning-soft",icon:"text-warning",title:"text-warning"},info:{container:"border-accent-2/50 bg-accent-2-soft",icon:"text-accent-2",title:"text-accent-2"}},nRe={error:Xee,warning:od,info:kU},rRe={error:"Error",warning:"Warning",info:"Information"},aRe=({id:e,severity:t,title:n,detail:r,action:a,onDismiss:s})=>{const i=tRe[t],u=nRe[t];return C.jsxs("div",{role:t==="error"?"alert":"status","aria-live":t==="error"?"assertive":"polite",className:Pe("pointer-events-auto flex items-start gap-3 rounded-md border bg-canvas px-3 py-2 shadow-lg",i.container),children:[C.jsx(u,{className:Pe("size-5 shrink-0 mt-0.5",i.icon),"aria-hidden":"true"}),C.jsxs("div",{className:"flex-1 min-w-0",children:[C.jsx("p",{className:Pe("text-sm font-medium",i.title),children:n}),r&&C.jsx("p",{className:"mt-0.5 text-xs text-fg-muted break-words",children:r}),a&&C.jsx("a",{href:a.href,target:"_blank",rel:"noopener noreferrer",className:"mt-1 inline-block text-xs font-medium text-accent-2 underline underline-offset-2",children:a.label})]}),C.jsx("button",{type:"button",onClick:()=>s(e),className:"shrink-0 rounded-md p-1 text-fg-muted hover:bg-surface-raised hover:text-fg transition-colors","aria-label":`Dismiss ${rRe[t].toLowerCase()}`,children:C.jsx(Ps,{className:"size-4","aria-hidden":"true"})})]})},sRe=({errors:e,onDismiss:t})=>e.length===0?null:C.jsx("section",{"aria-label":"Notifications",className:"pointer-events-none fixed inset-x-0 top-0 z-[60] flex flex-col items-center gap-2 px-4 pt-[calc(1rem+env(safe-area-inset-top,0px))] sm:items-end sm:pr-6",children:C.jsx("div",{className:"flex w-full max-w-md flex-col gap-2",children:e.map(n=>C.jsx(aRe,{id:n.id,severity:n.severity,title:n.title,detail:n.detail,action:n.action,onDismiss:t},n.id))})}),SD=5,O8e=(e,t,n)=>({title:e,detail:kq(n)??t,error:n}),kq=e=>{if(e!=null){if(e instanceof Error)return e.message||void 0;if(typeof e=="string")return e||void 0;if(typeof e=="object"&&"message"in e&&typeof e.message=="string")return e.message||void 0}},N8e=e=>{const t=kq(e);return t?t.startsWith("Message not found"):!1},oRe=(e,t,n)=>e.severity===n&&e.title===t.title&&e.detail===t.detail,iRe=(e,t)=>{const r=[...e.filter(a=>!oRe(a,{title:t.title,detail:t.detail,severity:t.severity},t.severity)),t];return r.length<=SD?r:r.slice(r.length-SD)},lRe=(e,t)=>e.filter(n=>n.id!==t),uRe=(e,t,n)=>({id:t,severity:e.severity??"error",title:e.title,detail:e.detail,action:e.action,createdAt:n}),Aq=E.createContext(void 0),cRe=e=>{if(e.action)return e.action;if((e.severity??"error")==="error")return{label:"Report an issue",href:Uk(n1({title:`Bug: ${e.title}`,errorMessage:e.detail?`${e.title} — ${e.detail}`:e.title,stack:e.error instanceof Error?e.error.stack:void 0}))}},dRe=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():`banner-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,fRe=({children:e})=>{const[t,n]=E.useState([]),r=E.useCallback(u=>{if(u.error!=null&&Hj(u.error))return Vi(u.error).correlationId;const c=uRe({...u,action:cRe(u)},dRe(),Date.now());return n(f=>iRe(f,c)),c.id},[]),a=E.useCallback(u=>{n(c=>lRe(c,u))},[]),s=E.useCallback(()=>{n([])},[]),i=E.useMemo(()=>({errors:t,pushError:r,dismissError:a,clearAll:s}),[t,r,a,s]);return C.jsxs(Aq.Provider,{value:i,children:[e,C.jsx(sRe,{errors:t,onDismiss:a})]})},M8e=()=>{const e=E.useContext(Aq);if(!e)throw new Error("useErrorBanners must be used within an ErrorBannerProvider");return e},hRe=({error:e,reset:t,info:n})=>{const r=Cv(e),a=Vi(e,{recoverable:r,componentStack:n?.componentStack});return C.jsx(Xj,{fatal:a,onRetry:r?t:void 0})},Eu=Fye()({component:mRe,errorComponent:hRe}),pRe=()=>{const{t:e}=cq("common",{useSuspense:!1});return C.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:z-50 focus:p-4 focus:bg-canvas focus:text-fg focus:rounded-md",children:e("accessibility.skipToContent","Skip to main content")})};function mRe(){return C.jsxs(fRe,{children:[C.jsx(MIe,{children:C.jsxs(XIe,{children:[C.jsxs(oIe,{children:[C.jsx(pRe,{}),C.jsx("main",{id:"main-content",className:"h-dvh overflow-hidden",children:C.jsx(E.Suspense,{fallback:C.jsx(wv,{}),children:C.jsx(b$,{})})})]}),C.jsx(eRe,{})]})}),C.jsx(Zj,{})]})}const gRe=qe("/")({beforeLoad:()=>{throw Dp({to:"/mail/brief"})}}),vRe=cv().apiUrl;Ae.setConfig({baseUrl:vRe,fetch:yU});Ae.interceptors.error.use((e,t)=>e instanceof xv||!t?e:uoe(e,t.status));const yRe=()=>Ke(()=>import("./calendar-DneQR1Xt.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])),bRe=qe("/calendar")({loader:({context:{queryClient:e}})=>{e.prefetchQuery(PI())},component:Xe(yRe,"component")}),SRe=()=>Ke(()=>import("./import-DLwEJzp8.js"),__vite__mapDeps([9,10,11,12,13,14])),wRe=qe("/import")({component:Xe(SRe,"component")});var Ot;(function(e){e.assertEqual=a=>{};function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const s={};for(const i of a)s[i]=i;return s},e.getValidEnumValues=a=>{const s=e.objectKeys(a).filter(u=>typeof a[a[u]]!="number"),i={};for(const u of s)i[u]=a[u];return e.objectValues(i)},e.objectValues=a=>e.objectKeys(a).map(function(s){return a[s]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const s=[];for(const i in a)Object.prototype.hasOwnProperty.call(a,i)&&s.push(i);return s},e.find=(a,s)=>{for(const i of a)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function r(a,s=" | "){return a.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(a,s)=>typeof s=="bigint"?s.toString():s})(Ot||(Ot={}));var wD;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(wD||(wD={}));const Ne=Ot.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ti=e=>{switch(typeof e){case"undefined":return Ne.undefined;case"string":return Ne.string;case"number":return Number.isNaN(e)?Ne.nan:Ne.number;case"boolean":return Ne.boolean;case"function":return Ne.function;case"bigint":return Ne.bigint;case"symbol":return Ne.symbol;case"object":return Array.isArray(e)?Ne.array:e===null?Ne.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ne.promise:typeof Map<"u"&&e instanceof Map?Ne.map:typeof Set<"u"&&e instanceof Set?Ne.set:typeof Date<"u"&&e instanceof Date?Ne.date:Ne.object;default:return Ne.unknown}},ve=Ot.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Mo extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(s){return s.message},r={_errors:[]},a=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(a);else if(i.code==="invalid_return_type")a(i.returnTypeError);else if(i.code==="invalid_arguments")a(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let u=r,c=0;for(;c<i.path.length;){const f=i.path[c];c===i.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(n(i))):u[f]=u[f]||{_errors:[]},u=u[f],c++}}};return a(this),r}static assert(t){if(!(t instanceof Mo))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ot.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)if(a.path.length>0){const s=a.path[0];n[s]=n[s]||[],n[s].push(t(a))}else r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Mo.create=e=>new Mo(e);const H_=(e,t)=>{let n;switch(e.code){case ve.invalid_type:e.received===Ne.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ve.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ot.jsonStringifyReplacer)}`;break;case ve.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ot.joinValues(e.keys,", ")}`;break;case ve.invalid_union:n="Invalid input";break;case ve.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ot.joinValues(e.options)}`;break;case ve.invalid_enum_value:n=`Invalid enum value. Expected ${Ot.joinValues(e.options)}, received '${e.received}'`;break;case ve.invalid_arguments:n="Invalid function arguments";break;case ve.invalid_return_type:n="Invalid function return type";break;case ve.invalid_date:n="Invalid date";break;case ve.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ot.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ve.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ve.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ve.custom:n="Invalid input";break;case ve.invalid_intersection_types:n="Intersection results could not be merged";break;case ve.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ve.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ot.assertNever(e)}return{message:n}};let xRe=H_;function CRe(){return xRe}const ERe=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,s=[...n,...a.path||[]],i={...a,path:s};if(a.message!==void 0)return{...a,path:s,message:a.message};let u="";const c=r.filter(f=>!!f).slice().reverse();for(const f of c)u=f(i,{data:t,defaultError:u}).message;return{...a,path:s,message:u}};function _e(e,t){const n=CRe(),r=ERe({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===H_?void 0:H_].filter(a=>!!a)});e.common.issues.push(r)}class Nr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return Ze;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const s=await a.key,i=await a.value;r.push({key:s,value:i})}return Nr.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:s,value:i}=a;if(s.status==="aborted"||i.status==="aborted")return Ze;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(r[s.value]=i.value)}return{status:t.value,value:r}}}const Ze=Object.freeze({status:"aborted"}),Ch=e=>({status:"dirty",value:e}),Da=e=>({status:"valid",value:e}),xD=e=>e.status==="aborted",CD=e=>e.status==="dirty",bd=e=>e.status==="valid",H1=e=>typeof Promise<"u"&&e instanceof Promise;var Le;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Le||(Le={}));class Us{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ED=(e,t)=>{if(bd(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Mo(e.common.issues);return this._error=n,this._error}}};function ot(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(i,u)=>{const{message:c}=e;return i.code==="invalid_enum_value"?{message:c??u.defaultError}:typeof u.data>"u"?{message:c??r??u.defaultError}:i.code!=="invalid_type"?{message:u.defaultError}:{message:c??n??u.defaultError}},description:a}}class yt{get description(){return this._def.description}_getType(t){return Ti(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Ti(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Nr,ctx:{common:t.parent.common,data:t.data,parsedType:Ti(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(H1(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ti(t)},a=this._parseSync({data:t,path:r.path,parent:r});return ED(r,a)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ti(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:n});return bd(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>bd(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ti(t)},a=this._parse({data:t,path:r.path,parent:r}),s=await(H1(a)?a:Promise.resolve(a));return ED(r,s)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,s)=>{const i=t(a),u=()=>s.addIssue({code:ve.custom,...r(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(c=>c?!0:(u(),!1)):i?!0:(u(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new uu({schema:this,typeName:Ge.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Bi.create(this,this._def)}nullable(){return xd.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Rs.create(this)}promise(){return K1.create(this,this._def)}or(t){return V1.create([this,t],this._def)}and(t){return W1.create(this,t,this._def)}transform(t){return new uu({...ot(this._def),schema:this,typeName:Ge.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new G_({...ot(this._def),innerType:this,defaultValue:n,typeName:Ge.ZodDefault})}brand(){return new GRe({typeName:Ge.ZodBranded,type:this,...ot(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new K_({...ot(this._def),innerType:this,catchValue:n,typeName:Ge.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return UI.create(this,t)}readonly(){return Y_.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const _Re=/^c[^\s-]{8,}$/i,kRe=/^[0-9a-z]+$/,ARe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,IRe=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,RRe=/^[a-z0-9_-]{21}$/i,TRe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ORe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,NRe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,MRe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let DE;const PRe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,DRe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,LRe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,URe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,jRe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,zRe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Iq="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",FRe=new RegExp(`^${Iq}$`);function Rq(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function $Re(e){return new RegExp(`^${Rq(e)}$`)}function BRe(e){let t=`${Iq}T${Rq(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function HRe(e,t){return!!((t==="v4"||!t)&&PRe.test(e)||(t==="v6"||!t)&&LRe.test(e))}function qRe(e,t){if(!TRe.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||t&&a.alg!==t)}catch{return!1}}function VRe(e,t){return!!((t==="v4"||!t)&&DRe.test(e)||(t==="v6"||!t)&&URe.test(e))}class As extends yt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ne.string){const s=this._getOrReturnCtx(t);return _e(s,{code:ve.invalid_type,expected:Ne.string,received:s.parsedType}),Ze}const r=new Nr;let a;for(const s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(a=this._getOrReturnCtx(t,a),_e(a,{code:ve.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")t.data.length>s.value&&(a=this._getOrReturnCtx(t,a),_e(a,{code:ve.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const i=t.data.length>s.value,u=t.data.length<s.value;(i||u)&&(a=this._getOrReturnCtx(t,a),i?_e(a,{code:ve.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):u&&_e(a,{code:ve.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")NRe.test(t.data)||(a=this._getOrReturnCtx(t,a),_e(a,{validation:"email",code:ve.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")DE||(DE=new RegExp(MRe,"u")),DE.test(t.data)||(a=this._getOrReturnCtx(t,a),_e(a,{validation:"emoji",code:ve.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")IRe.test(t.data)||(a=this._getOrReturnCtx(t,a),_e(a,{validation:"uuid",code:ve.invalid_string,message:s.message}),r.dirty());else if(s.kind==="nanoid")RRe.test(t.data)||(a=this._getOrReturnCtx(t,a),_e(a,{validation:"nanoid",code:ve.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")_Re.test(t.data)||(a=this._getOrReturnCtx(t,a),_e(a,{validation:"cuid",code:ve.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")kRe.test(t.data)||(a=this._getOrReturnCtx(t,a),_e(a,{validation:"cuid2",code:ve.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")ARe.test(t.data)||(a=this._getOrReturnCtx(t,a),_e(a,{validation:"ulid",code:ve.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),_e(a,{validation:"url",code:ve.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),_e(a,{validation:"regex",code:ve.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(a=this._getOrReturnCtx(t,a),_e(a,{code:ve.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(a=this._getOrReturnCtx(t,a),_e(a,{code:ve.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(a=this._getOrReturnCtx(t,a),_e(a,{code:ve.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?BRe(s).test(t.data)||(a=this._getOrReturnCtx(t,a),_e(a,{code:ve.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="date"?FRe.test(t.data)||(a=this._getOrReturnCtx(t,a),_e(a,{code:ve.invalid_string,validation:"date",message:s.message}),r.dirty()):s.kind==="time"?$Re(s).test(t.data)||(a=this._getOrReturnCtx(t,a),_e(a,{code:ve.invalid_string,validation:"time",message:s.message}),r.dirty()):s.kind==="duration"?ORe.test(t.data)||(a=this._getOrReturnCtx(t,a),_e(a,{validation:"duration",code:ve.invalid_string,message:s.message}),r.dirty()):s.kind==="ip"?HRe(t.data,s.version)||(a=this._getOrReturnCtx(t,a),_e(a,{validation:"ip",code:ve.invalid_string,message:s.message}),r.dirty()):s.kind==="jwt"?qRe(t.data,s.alg)||(a=this._getOrReturnCtx(t,a),_e(a,{validation:"jwt",code:ve.invalid_string,message:s.message}),r.dirty()):s.kind==="cidr"?VRe(t.data,s.version)||(a=this._getOrReturnCtx(t,a),_e(a,{validation:"cidr",code:ve.invalid_string,message:s.message}),r.dirty()):s.kind==="base64"?jRe.test(t.data)||(a=this._getOrReturnCtx(t,a),_e(a,{validation:"base64",code:ve.invalid_string,message:s.message}),r.dirty()):s.kind==="base64url"?zRe.test(t.data)||(a=this._getOrReturnCtx(t,a),_e(a,{validation:"base64url",code:ve.invalid_string,message:s.message}),r.dirty()):Ot.assertNever(s);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:ve.invalid_string,...Le.errToObj(r)})}_addCheck(t){return new As({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Le.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Le.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Le.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Le.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Le.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Le.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Le.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Le.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Le.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Le.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Le.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Le.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Le.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...Le.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...Le.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Le.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Le.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...Le.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Le.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Le.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Le.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Le.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Le.errToObj(n)})}nonempty(t){return this.min(1,Le.errToObj(t))}trim(){return new As({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new As({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new As({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}As.create=e=>new As({checks:[],typeName:Ge.ZodString,coerce:e?.coerce??!1,...ot(e)});function WRe(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,s=Number.parseInt(e.toFixed(a).replace(".","")),i=Number.parseInt(t.toFixed(a).replace(".",""));return s%i/10**a}class ou extends yt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ne.number){const s=this._getOrReturnCtx(t);return _e(s,{code:ve.invalid_type,expected:Ne.number,received:s.parsedType}),Ze}let r;const a=new Nr;for(const s of this._def.checks)s.kind==="int"?Ot.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),_e(r,{code:ve.invalid_type,expected:"integer",received:"float",message:s.message}),a.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:ve.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:ve.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?WRe(t.data,s.value)!==0&&(r=this._getOrReturnCtx(t,r),_e(r,{code:ve.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),_e(r,{code:ve.not_finite,message:s.message}),a.dirty()):Ot.assertNever(s);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Le.toString(n))}setLimit(t,n,r,a){return new ou({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Le.toString(a)}]})}_addCheck(t){return new ou({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Le.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Le.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Le.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Le.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Le.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Ot.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}ou.create=e=>new ou({checks:[],typeName:Ge.ZodNumber,coerce:e?.coerce||!1,...ot(e)});class iu extends yt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Ne.bigint)return this._getInvalidInput(t);let r;const a=new Nr;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:ve.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:ve.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:ve.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):Ot.assertNever(s);return{status:a.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return _e(n,{code:ve.invalid_type,expected:Ne.bigint,received:n.parsedType}),Ze}gte(t,n){return this.setLimit("min",t,!0,Le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Le.toString(n))}setLimit(t,n,r,a){return new iu({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Le.toString(a)}]})}_addCheck(t){return new iu({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Le.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}iu.create=e=>new iu({checks:[],typeName:Ge.ZodBigInt,coerce:e?.coerce??!1,...ot(e)});class q1 extends yt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ne.boolean){const r=this._getOrReturnCtx(t);return _e(r,{code:ve.invalid_type,expected:Ne.boolean,received:r.parsedType}),Ze}return Da(t.data)}}q1.create=e=>new q1({typeName:Ge.ZodBoolean,coerce:e?.coerce||!1,...ot(e)});class Sd extends yt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ne.date){const s=this._getOrReturnCtx(t);return _e(s,{code:ve.invalid_type,expected:Ne.date,received:s.parsedType}),Ze}if(Number.isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return _e(s,{code:ve.invalid_date}),Ze}const r=new Nr;let a;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(a=this._getOrReturnCtx(t,a),_e(a,{code:ve.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(a=this._getOrReturnCtx(t,a),_e(a,{code:ve.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):Ot.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Sd({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Le.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Le.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Sd.create=e=>new Sd({checks:[],coerce:e?.coerce||!1,typeName:Ge.ZodDate,...ot(e)});class _D extends yt{_parse(t){if(this._getType(t)!==Ne.symbol){const r=this._getOrReturnCtx(t);return _e(r,{code:ve.invalid_type,expected:Ne.symbol,received:r.parsedType}),Ze}return Da(t.data)}}_D.create=e=>new _D({typeName:Ge.ZodSymbol,...ot(e)});class kD extends yt{_parse(t){if(this._getType(t)!==Ne.undefined){const r=this._getOrReturnCtx(t);return _e(r,{code:ve.invalid_type,expected:Ne.undefined,received:r.parsedType}),Ze}return Da(t.data)}}kD.create=e=>new kD({typeName:Ge.ZodUndefined,...ot(e)});class AD extends yt{_parse(t){if(this._getType(t)!==Ne.null){const r=this._getOrReturnCtx(t);return _e(r,{code:ve.invalid_type,expected:Ne.null,received:r.parsedType}),Ze}return Da(t.data)}}AD.create=e=>new AD({typeName:Ge.ZodNull,...ot(e)});class ID extends yt{constructor(){super(...arguments),this._any=!0}_parse(t){return Da(t.data)}}ID.create=e=>new ID({typeName:Ge.ZodAny,...ot(e)});class q_ extends yt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Da(t.data)}}q_.create=e=>new q_({typeName:Ge.ZodUnknown,...ot(e)});class Qi extends yt{_parse(t){const n=this._getOrReturnCtx(t);return _e(n,{code:ve.invalid_type,expected:Ne.never,received:n.parsedType}),Ze}}Qi.create=e=>new Qi({typeName:Ge.ZodNever,...ot(e)});class RD extends yt{_parse(t){if(this._getType(t)!==Ne.undefined){const r=this._getOrReturnCtx(t);return _e(r,{code:ve.invalid_type,expected:Ne.void,received:r.parsedType}),Ze}return Da(t.data)}}RD.create=e=>new RD({typeName:Ge.ZodVoid,...ot(e)});class Rs extends yt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==Ne.array)return _e(n,{code:ve.invalid_type,expected:Ne.array,received:n.parsedType}),Ze;if(a.exactLength!==null){const i=n.data.length>a.exactLength.value,u=n.data.length<a.exactLength.value;(i||u)&&(_e(n,{code:i?ve.too_big:ve.too_small,minimum:u?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(_e(n,{code:ve.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(_e(n,{code:ve.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,u)=>a.type._parseAsync(new Us(n,i,n.path,u)))).then(i=>Nr.mergeArray(r,i));const s=[...n.data].map((i,u)=>a.type._parseSync(new Us(n,i,n.path,u)));return Nr.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new Rs({...this._def,minLength:{value:t,message:Le.toString(n)}})}max(t,n){return new Rs({...this._def,maxLength:{value:t,message:Le.toString(n)}})}length(t,n){return new Rs({...this._def,exactLength:{value:t,message:Le.toString(n)}})}nonempty(t){return this.min(1,t)}}Rs.create=(e,t)=>new Rs({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ge.ZodArray,...ot(t)});function Lc(e){if(e instanceof On){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Bi.create(Lc(r))}return new On({...e._def,shape:()=>t})}else return e instanceof Rs?new Rs({...e._def,type:Lc(e.element)}):e instanceof Bi?Bi.create(Lc(e.unwrap())):e instanceof xd?xd.create(Lc(e.unwrap())):e instanceof lu?lu.create(e.items.map(t=>Lc(t))):e}class On extends yt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Ot.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Ne.object){const f=this._getOrReturnCtx(t);return _e(f,{code:ve.invalid_type,expected:Ne.object,received:f.parsedType}),Ze}const{status:r,ctx:a}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),u=[];if(!(this._def.catchall instanceof Qi&&this._def.unknownKeys==="strip"))for(const f in a.data)i.includes(f)||u.push(f);const c=[];for(const f of i){const h=s[f],m=a.data[f];c.push({key:{status:"valid",value:f},value:h._parse(new Us(a,m,a.path,f)),alwaysSet:f in a.data})}if(this._def.catchall instanceof Qi){const f=this._def.unknownKeys;if(f==="passthrough")for(const h of u)c.push({key:{status:"valid",value:h},value:{status:"valid",value:a.data[h]}});else if(f==="strict")u.length>0&&(_e(a,{code:ve.unrecognized_keys,keys:u}),r.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const h of u){const m=a.data[h];c.push({key:{status:"valid",value:h},value:f._parse(new Us(a,m,a.path,h)),alwaysSet:h in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const f=[];for(const h of c){const m=await h.key,g=await h.value;f.push({key:m,value:g,alwaysSet:h.alwaysSet})}return f}).then(f=>Nr.mergeObjectSync(r,f)):Nr.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return Le.errToObj,new On({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{const a=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:Le.errToObj(t).message??a}:{message:a}}}:{}})}strip(){return new On({...this._def,unknownKeys:"strip"})}passthrough(){return new On({...this._def,unknownKeys:"passthrough"})}extend(t){return new On({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new On({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ge.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new On({...this._def,catchall:t})}pick(t){const n={};for(const r of Ot.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new On({...this._def,shape:()=>n})}omit(t){const n={};for(const r of Ot.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new On({...this._def,shape:()=>n})}deepPartial(){return Lc(this)}partial(t){const n={};for(const r of Ot.objectKeys(this.shape)){const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}return new On({...this._def,shape:()=>n})}required(t){const n={};for(const r of Ot.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof Bi;)s=s._def.innerType;n[r]=s}return new On({...this._def,shape:()=>n})}keyof(){return Tq(Ot.objectKeys(this.shape))}}On.create=(e,t)=>new On({shape:()=>e,unknownKeys:"strip",catchall:Qi.create(),typeName:Ge.ZodObject,...ot(t)});On.strictCreate=(e,t)=>new On({shape:()=>e,unknownKeys:"strict",catchall:Qi.create(),typeName:Ge.ZodObject,...ot(t)});On.lazycreate=(e,t)=>new On({shape:e,unknownKeys:"strip",catchall:Qi.create(),typeName:Ge.ZodObject,...ot(t)});class V1 extends yt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(s){for(const u of s)if(u.result.status==="valid")return u.result;for(const u of s)if(u.result.status==="dirty")return n.common.issues.push(...u.ctx.common.issues),u.result;const i=s.map(u=>new Mo(u.ctx.common.issues));return _e(n,{code:ve.invalid_union,unionErrors:i}),Ze}if(n.common.async)return Promise.all(r.map(async s=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(a);{let s;const i=[];for(const c of r){const f={...n,common:{...n.common,issues:[]},parent:null},h=c._parseSync({data:n.data,path:n.path,parent:f});if(h.status==="valid")return h;h.status==="dirty"&&!s&&(s={result:h,ctx:f}),f.common.issues.length&&i.push(f.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const u=i.map(c=>new Mo(c));return _e(n,{code:ve.invalid_union,unionErrors:u}),Ze}}get options(){return this._def.options}}V1.create=(e,t)=>new V1({options:e,typeName:Ge.ZodUnion,...ot(t)});function V_(e,t){const n=Ti(e),r=Ti(t);if(e===t)return{valid:!0,data:e};if(n===Ne.object&&r===Ne.object){const a=Ot.objectKeys(t),s=Ot.objectKeys(e).filter(u=>a.indexOf(u)!==-1),i={...e,...t};for(const u of s){const c=V_(e[u],t[u]);if(!c.valid)return{valid:!1};i[u]=c.data}return{valid:!0,data:i}}else if(n===Ne.array&&r===Ne.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let s=0;s<e.length;s++){const i=e[s],u=t[s],c=V_(i,u);if(!c.valid)return{valid:!1};a.push(c.data)}return{valid:!0,data:a}}else return n===Ne.date&&r===Ne.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class W1 extends yt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(s,i)=>{if(xD(s)||xD(i))return Ze;const u=V_(s.value,i.value);return u.valid?((CD(s)||CD(i))&&n.dirty(),{status:n.value,value:u.data}):(_e(r,{code:ve.invalid_intersection_types}),Ze)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>a(s,i)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}W1.create=(e,t,n)=>new W1({left:e,right:t,typeName:Ge.ZodIntersection,...ot(n)});class lu extends yt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ne.array)return _e(r,{code:ve.invalid_type,expected:Ne.array,received:r.parsedType}),Ze;if(r.data.length<this._def.items.length)return _e(r,{code:ve.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ze;!this._def.rest&&r.data.length>this._def.items.length&&(_e(r,{code:ve.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((i,u)=>{const c=this._def.items[u]||this._def.rest;return c?c._parse(new Us(r,i,r.path,u)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>Nr.mergeArray(n,i)):Nr.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new lu({...this._def,rest:t})}}lu.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new lu({items:e,typeName:Ge.ZodTuple,rest:null,...ot(t)})};class G1 extends yt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ne.object)return _e(r,{code:ve.invalid_type,expected:Ne.object,received:r.parsedType}),Ze;const a=[],s=this._def.keyType,i=this._def.valueType;for(const u in r.data)a.push({key:s._parse(new Us(r,u,r.path,u)),value:i._parse(new Us(r,r.data[u],r.path,u)),alwaysSet:u in r.data});return r.common.async?Nr.mergeObjectAsync(n,a):Nr.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof yt?new G1({keyType:t,valueType:n,typeName:Ge.ZodRecord,...ot(r)}):new G1({keyType:As.create(),valueType:t,typeName:Ge.ZodRecord,...ot(n)})}}class TD extends yt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ne.map)return _e(r,{code:ve.invalid_type,expected:Ne.map,received:r.parsedType}),Ze;const a=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([u,c],f)=>({key:a._parse(new Us(r,u,r.path,[f,"key"])),value:s._parse(new Us(r,c,r.path,[f,"value"]))}));if(r.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const c of i){const f=await c.key,h=await c.value;if(f.status==="aborted"||h.status==="aborted")return Ze;(f.status==="dirty"||h.status==="dirty")&&n.dirty(),u.set(f.value,h.value)}return{status:n.value,value:u}})}else{const u=new Map;for(const c of i){const f=c.key,h=c.value;if(f.status==="aborted"||h.status==="aborted")return Ze;(f.status==="dirty"||h.status==="dirty")&&n.dirty(),u.set(f.value,h.value)}return{status:n.value,value:u}}}}TD.create=(e,t,n)=>new TD({valueType:t,keyType:e,typeName:Ge.ZodMap,...ot(n)});class bp extends yt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ne.set)return _e(r,{code:ve.invalid_type,expected:Ne.set,received:r.parsedType}),Ze;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(_e(r,{code:ve.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(_e(r,{code:ve.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const s=this._def.valueType;function i(c){const f=new Set;for(const h of c){if(h.status==="aborted")return Ze;h.status==="dirty"&&n.dirty(),f.add(h.value)}return{status:n.value,value:f}}const u=[...r.data.values()].map((c,f)=>s._parse(new Us(r,c,r.path,f)));return r.common.async?Promise.all(u).then(c=>i(c)):i(u)}min(t,n){return new bp({...this._def,minSize:{value:t,message:Le.toString(n)}})}max(t,n){return new bp({...this._def,maxSize:{value:t,message:Le.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}bp.create=(e,t)=>new bp({valueType:e,minSize:null,maxSize:null,typeName:Ge.ZodSet,...ot(t)});class OD extends yt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}OD.create=(e,t)=>new OD({getter:e,typeName:Ge.ZodLazy,...ot(t)});class W_ extends yt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return _e(n,{received:n.data,code:ve.invalid_literal,expected:this._def.value}),Ze}return{status:"valid",value:t.data}}get value(){return this._def.value}}W_.create=(e,t)=>new W_({value:e,typeName:Ge.ZodLiteral,...ot(t)});function Tq(e,t){return new wd({values:e,typeName:Ge.ZodEnum,...ot(t)})}class wd extends yt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return _e(n,{expected:Ot.joinValues(r),received:n.parsedType,code:ve.invalid_type}),Ze}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return _e(n,{received:n.data,code:ve.invalid_enum_value,options:r}),Ze}return Da(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return wd.create(t,{...this._def,...n})}exclude(t,n=this._def){return wd.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}wd.create=Tq;class ND extends yt{_parse(t){const n=Ot.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Ne.string&&r.parsedType!==Ne.number){const a=Ot.objectValues(n);return _e(r,{expected:Ot.joinValues(a),received:r.parsedType,code:ve.invalid_type}),Ze}if(this._cache||(this._cache=new Set(Ot.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const a=Ot.objectValues(n);return _e(r,{received:r.data,code:ve.invalid_enum_value,options:a}),Ze}return Da(t.data)}get enum(){return this._def.values}}ND.create=(e,t)=>new ND({values:e,typeName:Ge.ZodNativeEnum,...ot(t)});class K1 extends yt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ne.promise&&n.common.async===!1)return _e(n,{code:ve.invalid_type,expected:Ne.promise,received:n.parsedType}),Ze;const r=n.parsedType===Ne.promise?n.data:Promise.resolve(n.data);return Da(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}K1.create=(e,t)=>new K1({type:e,typeName:Ge.ZodPromise,...ot(t)});class uu extends yt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ge.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,s={addIssue:i=>{_e(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),a.type==="preprocess"){const i=a.transform(r.data,s);if(r.common.async)return Promise.resolve(i).then(async u=>{if(n.value==="aborted")return Ze;const c=await this._def.schema._parseAsync({data:u,path:r.path,parent:r});return c.status==="aborted"?Ze:c.status==="dirty"||n.value==="dirty"?Ch(c.value):c});{if(n.value==="aborted")return Ze;const u=this._def.schema._parseSync({data:i,path:r.path,parent:r});return u.status==="aborted"?Ze:u.status==="dirty"||n.value==="dirty"?Ch(u.value):u}}if(a.type==="refinement"){const i=u=>{const c=a.refinement(u,s);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(r.common.async===!1){const u=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?Ze:(u.status==="dirty"&&n.dirty(),i(u.value),{status:n.value,value:u.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(u=>u.status==="aborted"?Ze:(u.status==="dirty"&&n.dirty(),i(u.value).then(()=>({status:n.value,value:u.value}))))}if(a.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!bd(i))return Ze;const u=a.transform(i.value,s);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:u}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>bd(i)?Promise.resolve(a.transform(i.value,s)).then(u=>({status:n.value,value:u})):Ze);Ot.assertNever(a)}}uu.create=(e,t,n)=>new uu({schema:e,typeName:Ge.ZodEffects,effect:t,...ot(n)});uu.createWithPreprocess=(e,t,n)=>new uu({schema:t,effect:{type:"preprocess",transform:e},typeName:Ge.ZodEffects,...ot(n)});class Bi extends yt{_parse(t){return this._getType(t)===Ne.undefined?Da(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Bi.create=(e,t)=>new Bi({innerType:e,typeName:Ge.ZodOptional,...ot(t)});class xd extends yt{_parse(t){return this._getType(t)===Ne.null?Da(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}xd.create=(e,t)=>new xd({innerType:e,typeName:Ge.ZodNullable,...ot(t)});class G_ extends yt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Ne.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}G_.create=(e,t)=>new G_({innerType:e,typeName:Ge.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ot(t)});class K_ extends yt{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return H1(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Mo(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Mo(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}K_.create=(e,t)=>new K_({innerType:e,typeName:Ge.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ot(t)});class MD extends yt{_parse(t){if(this._getType(t)!==Ne.nan){const r=this._getOrReturnCtx(t);return _e(r,{code:ve.invalid_type,expected:Ne.nan,received:r.parsedType}),Ze}return{status:"valid",value:t.data}}}MD.create=e=>new MD({typeName:Ge.ZodNaN,...ot(e)});class GRe extends yt{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class UI extends yt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Ze:s.status==="dirty"?(n.dirty(),Ch(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Ze:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new UI({in:t,out:n,typeName:Ge.ZodPipeline})}}class Y_ extends yt{_parse(t){const n=this._def.innerType._parse(t),r=a=>(bd(a)&&(a.value=Object.freeze(a.value)),a);return H1(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}Y_.create=(e,t)=>new Y_({innerType:e,typeName:Ge.ZodReadonly,...ot(t)});var Ge;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ge||(Ge={}));const nd=As.create,P8e=ou.create;iu.create;const KRe=q1.create;Sd.create;const Oq=q_.create;Qi.create;const YRe=Rs.create,xy=On.create;V1.create;W1.create;lu.create;const D8e=G1.create,ZRe=W_.create,Cy=wd.create;K1.create;Bi.create;xd.create;const XRe=uu.createWithPreprocess,L8e={string:(e=>As.create({...e,coerce:!0})),number:(e=>ou.create({...e,coerce:!0})),boolean:(e=>q1.create({...e,coerce:!0})),bigint:(e=>iu.create({...e,coerce:!0})),date:(e=>Sd.create({...e,coerce:!0}))},Nq="/mail/brief",Mq="/mail/$mailboxId",Pq="/mail/outbox",Dq="/mail/flagged";function QRe(e){for(const t of e){if(t.routeId===Nq)return{list:"brief"};if(t.routeId===Dq)return{list:"flagged"};if(t.routeId===Pq)return{list:"outbox"};if(t.routeId===Mq)return{list:"mailbox",mailboxId:t.params?.mailboxId}}}function U8e(e){const t=e.split(/[?#]/)[0].split("/").filter(Boolean);if(t[0]!=="mail")return"";const n=t[1];return n?n==="brief"?Nq:n==="flagged"?Dq:n==="outbox"?Pq:JRe(n):""}function j8e(e){if(typeof e!="object"||e===null)return"";const{q:t}=e;return typeof t=="string"?t:""}function JRe(e){return`${Mq}:${e}`}function z8e(e,t){return e===t?!0:e.startsWith(`${t}/`)}function eTe(e){const t=e.split(/[?#]/)[0].split("/").filter(Boolean);return t[0]==="mail"&&t.length>2}const tTe=()=>Qae(Xae),jI=["intelligence","nav","shortcuts"],nTe=["nav","shortcuts"],Lq=e=>nTe.includes(e);function F8e(e,t){return[...e.filter(n=>!Lq(n)),...t?[t]:[]]}const rTe=Cy(jI);function Z_(e){const t=new Set(e.split(",").map(n=>rTe.safeParse(n)).filter(n=>n.success).map(n=>n.data));return jI.filter(n=>t.has(n))}function zI(e){return jI.filter(t=>e.includes(t)).join(",")}function $8e(){const e=S$({select:t=>zI(Z_(t.hash))});return E.useMemo(()=>Z_(e),[e])}const aTe=(e,t)=>!Lq(e)&&t;function sTe(e){return(t="")=>zI(Z_(t).filter(n=>aTe(n,e)))}function Ey(){const e=tTe();return E.useMemo(()=>sTe(e),[e])}function B8e(){const e=$s();return E.useCallback(t=>{e({search:!0,hash:zI(t),replace:!0,hashScrollIntoView:!1})},[e])}function _y(){const e=obe({select:n=>QRe(n.matches)?.list}),t=Jc({from:"/mail/$mailboxId",shouldThrow:!1});return{list:e,mailboxId:t?.mailboxId}}function H8e(){const{pathname:e}=S$();return eTe(e)}function q8e(){const e=$s(),t=Ey(),{list:n,mailboxId:r}=_y();return E.useCallback(()=>{const a=i=>i,s=t;if(n==="flagged"){e({to:"/mail/flagged",search:a,hash:s});return}if(n==="outbox"){e({to:"/mail/outbox",search:a,hash:s});return}if(n==="mailbox"&&r){e({to:"/mail/$mailboxId",params:{mailboxId:r},search:a,hash:s});return}e({to:"/mail/brief",search:a,hash:s})},[e,t,n,r])}const oTe=["year","month","week","day","agenda"],iTe=Cy(oTe),Uq="week",lTe=new Set(["week","day"]),V8e=e=>lTe.has(e),W8e=e=>e==="agenda";function uTe(e){const t=iTe.safeParse(e);return t.success?t.data:void 0}const cTe=/^\d{4}-\d{2}-\d{2}$/;function dTe(e){if(!cTe.test(e))return;const[t,n,r]=e.split("-").map(Number),a=Date.UTC(t,n-1,r),s=new Date(a);if(s.getUTCFullYear()===t&&s.getUTCMonth()===n-1&&s.getUTCDate()===r)return e}const Cd=e=>String(e).padStart(2,"0");function jq(e){return`${e.getFullYear()}-${Cd(e.getMonth()+1)}-${Cd(e.getDate())}`}function fTe(e,t){return{view:uTe(e.view)??Uq,date:dTe(e.date)??t}}function G8e(e,t,n){const[r,a,s]=e.split("-").map(Number);if(t==="year")return PD(r+n,a,s);if(t==="month")return PD(r,a+n,s);const i=t==="day"?1:7,u=new Date(Date.UTC(r,a-1,s+i*n));return hTe(u)}const hTe=e=>`${e.getUTCFullYear()}-${Cd(e.getUTCMonth()+1)}-${Cd(e.getUTCDate())}`;function PD(e,t,n){const r=e+Math.floor((t-1)/12),a=((t-1)%12+12)%12+1,s=new Date(Date.UTC(r,a,0)).getUTCDate();return`${r}-${Cd(a)}-${Cd(Math.min(n,s))}`}const zq=nd().min(1);function pTe(e){const t=e==null?[]:[e].flat(),n=new Set;for(const r of t){if(typeof r!="string"&&typeof r!="number")continue;const a=zq.safeParse(String(r));a.success&&n.add(a.data)}return[...n].sort()}const Fq=xy({calendarId:XRe(pTe,YRe(zq)).transform(e=>e.length===0?void 0:e)}),mTe=Lye(Fae);function K8e({fragment:e,...t}){const n=Ey();return C.jsx(mTe,{...t,hash:e??n})}const gTe=["reply","reply-all","forward"],vTe=Cy(gTe),$q="/mail/brief/$threadId/$messageId/$mode/{-$outboxMessageId}",Bq="/mail/flagged/$threadId/$messageId/$mode/{-$outboxMessageId}",Hq="/mail/$mailboxId/$threadId/$messageId/$mode/{-$outboxMessageId}";function qq(){const e=Jc({from:$q,shouldThrow:!1}),t=Jc({from:Bq,shouldThrow:!1}),n=Jc({from:Hq,shouldThrow:!1});return e??t??n}function FI(){const e=qq();return E.useMemo(()=>{if(!e)return;const t=vTe.safeParse(e.mode);return t.success?{kind:"reply",mode:t.data,threadId:e.threadId,sourceMessageId:e.messageId,outboxMessageId:e.outboxMessageId}:{kind:"unknown",segment:e.mode}},[e])}function Y8e(){return FI()?.kind==="reply"}function Vq(e,t,n,r){return e==="flagged"?{to:Bq,params:{...n,outboxMessageId:r}}:e==="mailbox"&&t?{to:Hq,params:{...n,mailboxId:t,outboxMessageId:r}}:{to:$q,params:{...n,outboxMessageId:r}}}function yTe(e,t){if(e?.kind==="reply"&&e.threadId===t.threadId&&e.sourceMessageId===t.messageId)return e.outboxMessageId}function Z8e(){const e=$s(),t=Ey(),{list:n,mailboxId:r}=_y(),a=FI();return E.useCallback(s=>{e({...Vq(n,r,s,yTe(a,s)),search:i=>i,hash:t})},[e,t,n,r,a])}function X8e(e,t,n){if(!(!t||!n))return r=>e({threadId:t,messageId:n,mode:r})}function Q8e(){const e=$s(),{list:t,mailboxId:n}=_y(),r=FI();return E.useCallback(a=>{r?.kind==="reply"&&e({...Vq(t,n,{threadId:r.threadId,messageId:r.sourceMessageId,mode:r.mode},a),search:s=>s,hash:!0,replace:!0})},[e,t,n,r])}function J8e(){const e=$s(),t=Ey(),{list:n,mailboxId:r}=_y(),a=qq();return E.useCallback(()=>{if(!a)return;const s=c=>c,i=t,u={threadId:a.threadId,messageId:a.messageId};if(n==="flagged"){e({to:"/mail/flagged/$threadId/$messageId",params:u,search:s,hash:i});return}if(n==="mailbox"&&r){e({to:"/mail/$mailboxId/$threadId/$messageId",params:{...u,mailboxId:r},search:s,hash:i});return}e({to:"/mail/brief/$threadId/$messageId",params:u,search:s,hash:i})},[e,t,n,r,a])}const bTe=new Map;function ePe(e){const t=new Map;for(const n of e){const r=wy(n.folderAppointments);for(const[a,s]of r)t.set(a,{role:s});for(const a of n.mailboxes){const s=r.get(a.mailboxId),i={providerPath:a.fullPath,hierarchyDelimiter:a.hierarchyDelimiter};t.set(a.mailboxId,s?{role:s,...i}:i)}}return t}function tPe(e,t){const n=t[0];if(!e)return n?{mailboxId:n}:{};for(const a of t){const s=e.get(a);if(s&&Pae(s)!==void 0)return{mailboxId:a,folder:s}}if(!n)return{};const r=e.get(n);return{mailboxId:n,...r?{folder:r}:{}}}const STe=E.createContext(null),nPe=()=>E.useContext(STe)??{accounts:[],mailboxNameIndex:new Map,accountNameIndex:new Map,resultFolderIndex:bTe,searchQuery:"",searchInput:"",searchViewKey:"",onSearchChange:()=>{},onSearchClear:()=>{},onSearchClearQuery:()=>{},intelligenceOpen:!1,onToggleIntelligence:()=>{},onRaiseIntelligence:()=>{}},wTe=Cy(["match","properties","folder","rule","name","review","run"]),xTe=e=>{const t=wTe.safeParse(e);return t.success?t.data:void 0},CTe=ZRe("search"),ETe=e=>{const t=CTe.safeParse(e);return t.success?t.data:void 0},_Te=Oq().transform(ETe),kTe=()=>ty({from:"/mail",select:e=>e.wizardFrom}),ATe=Oq().transform(xTe),ITe=(e,t)=>Sv(e,t)+1,Wq=()=>ty({from:"/mail",select:e=>e.wizard}),RTe=()=>{const e=$s();return E.useCallback((t,n)=>{e({to:".",search:r=>({...r,wizard:t,wizardFrom:n})})},[e])},rPe=()=>{const e=Wq(),t=RTe(),[n,r]=E.useState("organize"),a=E.useCallback(i=>{r(i),t("match")},[t]),s=E.useCallback(()=>{t("properties","search")},[t]);return{verb:n,start:a,startFromSearch:s,isOpen:e!==void 0}},aPe=e=>{const t=xr(),n=$s(),r=Wq(),a=kTe(),s=E.useRef(r!==void 0),i=E.useRef(a),u=E.useRef(void 0);E.useEffect(()=>{u.current=void 0},[r]),E.useEffect(()=>{if(!s.current)return;s.current=!1;const m=i.current;(async()=>(await n({to:".",search:g=>({...g,wizard:void 0,wizardFrom:void 0}),replace:!0}),await n({to:".",search:g=>({...g,wizard:e,wizardFrom:m})})))()},[e,n]);const c=E.useCallback(m=>{m===r||u.current===m||(u.current=m,n({to:".",search:g=>({...g,wizard:m})}))},[n,r]),f=E.useCallback(()=>{t.history.back()},[t]),h=E.useCallback((m,g)=>{t.history.go(-ITe(m,g))},[t]);return{step:r,goToStep:c,goBack:f,closeWizard:h}},TTe=()=>Ke(()=>import("./mail-CrkFA1JF.js"),__vite__mapDeps([15,16,17,4,5,18,19,20,21,8,22,23,24,25,26,27,28,29,30,31,32,7,2,3,6,33,34,35])),OTe=xy({q:nd().optional(),wizard:ATe,wizardFrom:_Te}),NTe=qe("/mail")({loader:({context:{queryClient:e}})=>{e.prefetchQuery(PI()),e.prefetchQuery({...eIe(),staleTime:6e4})},component:Xe(TTe,"component"),validateSearch:OTe}),MTe=()=>Ke(()=>import("./onboarding-DWkVXZJu.js"),__vite__mapDeps([36,37,34,10,11,24,38,13,14])),PTe=qe("/onboarding")({component:Xe(MTe,"component")});function DTe(){const e=JIe(),t=e?.surface.status==="ready"&&e.surface.section.status==="available";return C.jsx(Kse,{show:t,children:C.jsx(mte,{className:"size-4"})})}const LTe=()=>Ke(()=>import("./settings-DH_Czyn_.js"),[]),sPe=[{id:"accounts",label:"Accounts",icon:C.jsx(_U,{className:"size-4"})},{id:"senders",label:"Senders & Rules",icon:C.jsx(pte,{className:"size-4"})},{id:"folders",label:"Folder roles",icon:C.jsx(ate,{className:"size-4"})},{id:"filters",label:"Filters",icon:C.jsx(tte,{className:"size-4"})},{id:"labels",label:"Labels",icon:C.jsx(fte,{className:"size-4"})},{id:"calendars",label:"Calendars",icon:C.jsx(Kee,{className:"size-4"})},{id:"appearance",label:"Appearance",icon:C.jsx(ite,{className:"size-4"})},{id:"advanced",label:"Advanced",icon:C.jsx(DTe,{})}],oPe={accounts:"/settings/accounts",senders:"/settings/senders",folders:"/settings/folders",filters:"/settings/filters",labels:"/settings/labels",calendars:"/settings/calendars",appearance:"/settings/appearance",advanced:"/settings/advanced"},UTe=qe("/settings")({component:Xe(LTe,"component")}),jTe=qe("/calendar/")({validateSearch:Fq,beforeLoad:({search:e})=>{throw Dp({to:"/calendar/$view/$date",params:{view:Uq,date:jq(new Date)},search:e,replace:!0})}}),ky=xy({q:nd().optional()}),Gq=ky.extend({}),zTe=ky.extend({}),FTe=ky.extend({}),$Te=ky.extend({}),BTe=Gq,HTe=qe("/mail/")({validateSearch:BTe,beforeLoad:({search:e})=>{throw Dp({to:"/mail/brief",search:e,replace:!0})}}),qTe=()=>Ke(()=>import("./_mailboxId-DQF2tTng.js"),__vite__mapDeps([39,20,21,8,22,18,23,24,25,26,27,28,40,41,34,17,29,30,31,5,16,4,42,3,43,38,33,44,45,46,47,48,49,50,51,52,32,53,54,55,56,57,58,59,60,61])),VTe=qe("/mail/$mailboxId")({component:Xe(qTe,"component"),validateSearch:$Te}),WTe=()=>Ke(()=>import("./brief-B-ou101e.js"),__vite__mapDeps([62,8])),GTe=()=>Ke(()=>import("./brief-B3zDqsEV.js"),__vite__mapDeps([63,20,21,8,22,18,23,24,25,26,27,28,64,41,34,17,42,3,16,4,5,43,38,33,44,45,46,47,48,49,50,51,52,32,29,30,31,56,55,57,65,61])),KTe=qe("/mail/brief")({component:Xe(GTe,"component"),validateSearch:Gq,errorComponent:Xe(WTe,"errorComponent")}),YTe=()=>Ke(()=>import("./flagged-BbV9soU9.js"),__vite__mapDeps([66,8])),ZTe=()=>Ke(()=>import("./flagged-DdPgHrWA.js"),__vite__mapDeps([67,20,21,8,22,18,23,24,25,26,27,28,68,41,34,17,42,3,16,4,5,43,38,33,44,45,46,47,48,49,50,51,52,32,53,31,65,61])),XTe=qe("/mail/flagged")({component:Xe(ZTe,"component"),validateSearch:zTe,errorComponent:Xe(YTe,"errorComponent")}),QTe=()=>Ke(()=>import("./outbox-BteDz8S4.js"),__vite__mapDeps([69,20,21,8,22,18,23,24,25,26,27,28,70,3,41,34,17,30,50,71,72,54,32,6,57,61])),JTe=qe("/mail/outbox")({component:Xe(QTe,"component"),validateSearch:FTe}),e4e=()=>Ke(()=>import("./index-CYm2FZEz.js"),[]),t4e=qe("/settings/")({component:Xe(e4e,"component")}),n4e=()=>Ke(()=>import("./accounts-xBjoZkoW.js"),__vite__mapDeps([73,71,74,33,75,32,59,37,34,10,11,24,38,13,23,45,8,27,76])),r4e=xy({editAccountId:nd().optional(),focusSmtp:KRe().optional(),connected:nd().optional(),oauthError:nd().optional()}),a4e=qe("/settings/accounts")({component:Xe(n4e,"component"),validateSearch:r4e}),s4e=()=>Ke(()=>import("./advanced-ByJqVgoW.js"),__vite__mapDeps([77,74,33,75,32,59,12,26,11,45,13,78,7,60,8,35,5,72,51,50,76,34])),o4e=qe("/settings/advanced")({component:Xe(s4e,"component")}),i4e=()=>Ke(()=>import("./appearance-ZmXLJr87.js"),__vite__mapDeps([79,74,33,75,32,59,76,34])),l4e=qe("/settings/appearance")({component:Xe(i4e,"component")}),u4e=()=>Ke(()=>import("./calendars-CXJ5rls_.js"),__vite__mapDeps([80,74,33,75,32,59,11,28,8,27,31,78,81])),c4e=qe("/settings/calendars")({component:Xe(u4e,"component")}),d4e=()=>Ke(()=>import("./filters-oxhJ9CrI.js"),__vite__mapDeps([82,74,33,75,32,59,58,55,52,60,8])),f4e=qe("/settings/filters")({component:Xe(d4e,"component")}),h4e=()=>Ke(()=>import("./folders-BZdx-r7F.js"),__vite__mapDeps([83,19,74,33,75,32,59,8])),p4e=qe("/settings/folders")({component:Xe(h4e,"component")}),m4e=()=>Ke(()=>import("./labels-D9niB03z.js"),__vite__mapDeps([84,28,74,33,75,32,59,8,55])),g4e=qe("/settings/labels")({component:Xe(m4e,"component")}),v4e=()=>Ke(()=>import("./senders-CloB4eNC.js"),__vite__mapDeps([85,34,74,33,75,32,59,8,25,27,76])),y4e=qe("/settings/senders")({component:Xe(v4e,"component")}),b4e=()=>Ke(()=>import("./suggested-vips-rQSwcCZv.js"),[]),S4e=qe("/settings/suggested-vips")({component:Xe(b4e,"component")}),w4e=()=>Ke(()=>import("./_view._date-ccLw5fGv.js"),__vite__mapDeps([86,47,46,38,48,50,8,87,81,88,5,25,89,1,75,54,32])),x4e=qe("/calendar/$view/$date")({validateSearch:Fq,beforeLoad:({params:e,search:t})=>{const n=fTe(e,jq(new Date));if(!(n.view===e.view&&n.date===e.date))throw Dp({to:"/calendar/$view/$date",params:n,search:t,replace:!0})},component:Xe(w4e,"component")}),C4e=()=>Ke(()=>import("./index-CX22JAkI.js"),__vite__mapDeps([90,40,41,34,18,17,29,30,31,5,16,4,42,3,43,38,33,22,23,24,25,26,27,44,8,45,46,47,48,49,50,51,52,28,32,53,54,55,56,57,58,59,60])),E4e=qe("/mail/$mailboxId/")({component:Xe(C4e,"component")}),_4e=()=>Ke(()=>import("./_threadId-CX4mdigM.js"),[]),k4e=qe("/mail/$mailboxId/$threadId")({component:Xe(_4e,"component")}),A4e=()=>Ke(()=>import("./index-26R7PEMP.js"),__vite__mapDeps([91,64,41,34,18,17,42,3,16,4,5,43,38,33,22,23,24,25,26,27,44,8,45,46,47,48,49,50,51,52,28,32,29,30,31,56,55,57,65])),I4e=qe("/mail/brief/")({component:Xe(A4e,"component")}),R4e=()=>Ke(()=>import("./_threadId-DAMPCoMl.js"),[]),T4e=qe("/mail/brief/$threadId")({component:Xe(R4e,"component")}),O4e=()=>Ke(()=>import("./index-CcPXpKEP.js"),__vite__mapDeps([92,68,41,34,18,17,42,3,16,4,5,43,38,33,22,23,24,25,26,27,44,8,45,46,47,48,49,50,51,52,28,32,53,31,65])),N4e=qe("/mail/flagged/")({component:Xe(O4e,"component")}),M4e=()=>Ke(()=>import("./_threadId-BBpdlFP4.js"),[]),P4e=qe("/mail/flagged/$threadId")({component:Xe(M4e,"component")}),D4e=()=>Ke(()=>import("./index-BxuJcbHa.js"),__vite__mapDeps([93,70,3,41,34,18,17,30,50,71,72,54,32,27,6,57])),L4e=qe("/mail/outbox/")({component:Xe(D4e,"component")}),U4e=()=>Ke(()=>import("./index-Bsmi-6m5.js"),__vite__mapDeps([94,44])),j4e=qe("/calendar/$view/$date/")({component:Xe(U4e,"component")}),z4e=()=>Ke(()=>import("./_calendarObjectId-BFcCSDs_.js"),[]),F4e=qe("/calendar/$view/$date/$calendarObjectId")({component:Xe(z4e,"component")}),$4e=()=>Ke(()=>import("./new-N9iBOfdl.js"),__vite__mapDeps([95,96,87,8,47,89,81])),B4e=qe("/calendar/$view/$date/new")({component:Xe($4e,"component")}),H4e=()=>Ke(()=>import("./index-Pv-qxF_k.js"),__vite__mapDeps([97,40,41,34,18,17,29,30,31,5,16,4,42,3,43,38,33,22,23,24,25,26,27,44,8,45,46,47,48,49,50,51,52,28,32,53,54,55,56,57,58,59,60])),q4e=qe("/mail/$mailboxId/$threadId/")({component:Xe(H4e,"component")}),V4e=()=>Ke(()=>import("./_messageId-CmzkEIXV.js"),__vite__mapDeps([98,40,41,34,18,17,29,30,31,5,16,4,42,3,43,38,33,22,23,24,25,26,27,44,8,45,46,47,48,49,50,51,52,28,32,53,54,55,56,57,58,59,60])),W4e=qe("/mail/$mailboxId/$threadId/$messageId")({component:Xe(V4e,"component")}),G4e=()=>Ke(()=>import("./compose._-_outboxMessageId_-BHPHapGA.js"),__vite__mapDeps([99,21,8,22,18,23,24,25,26,27,28])),K4e=qe("/mail/$mailboxId/compose/{-$outboxMessageId}")({component:Xe(G4e,"component")}),Y4e=()=>Ke(()=>import("./index-npsdHvXX.js"),__vite__mapDeps([100,64,41,34,18,17,42,3,16,4,5,43,38,33,22,23,24,25,26,27,44,8,45,46,47,48,49,50,51,52,28,32,29,30,31,56,55,57,65])),Z4e=qe("/mail/brief/$threadId/")({component:Xe(Y4e,"component")}),X4e=()=>Ke(()=>import("./_messageId-DXA2DL6W.js"),__vite__mapDeps([101,64,41,34,18,17,42,3,16,4,5,43,38,33,22,23,24,25,26,27,44,8,45,46,47,48,49,50,51,52,28,32,29,30,31,56,55,57,65])),Q4e=qe("/mail/brief/$threadId/$messageId")({component:Xe(X4e,"component")}),J4e=()=>Ke(()=>import("./compose._-_outboxMessageId_-iWeSeSc4.js"),__vite__mapDeps([102,21,8,22,18,23,24,25,26,27,28])),e5e=qe("/mail/brief/compose/{-$outboxMessageId}")({component:Xe(J4e,"component")}),t5e=()=>Ke(()=>import("./index-DjkcpITY.js"),__vite__mapDeps([103,68,41,34,18,17,42,3,16,4,5,43,38,33,22,23,24,25,26,27,44,8,45,46,47,48,49,50,51,52,28,32,53,31,65])),n5e=qe("/mail/flagged/$threadId/")({component:Xe(t5e,"component")}),r5e=()=>Ke(()=>import("./_messageId-DjkcpITY.js"),__vite__mapDeps([104,68,41,34,18,17,42,3,16,4,5,43,38,33,22,23,24,25,26,27,44,8,45,46,47,48,49,50,51,52,28,32,53,31,65])),a5e=qe("/mail/flagged/$threadId/$messageId")({component:Xe(r5e,"component")}),s5e=()=>Ke(()=>import("./compose._-_outboxMessageId_-CwE4fYtQ.js"),__vite__mapDeps([105,21,8,22,18,23,24,25,26,27,28])),o5e=qe("/mail/flagged/compose/{-$outboxMessageId}")({component:Xe(s5e,"component")}),i5e=()=>Ke(()=>import("./compose._-_outboxMessageId_-CR4zylJj.js"),__vite__mapDeps([106,21,8,22,18,23,24,25,26,27,28])),l5e=qe("/mail/outbox/compose/{-$outboxMessageId}")({component:Xe(i5e,"component")}),u5e=()=>Ke(()=>import("./_outboxMessageId-C83CuACP.js"),__vite__mapDeps([107,70,3,41,34,18,17,30,50,71,72,54,32,27,6,57])),c5e=qe("/mail/outbox/draft/$outboxMessageId")({component:Xe(u5e,"component")}),d5e=()=>Ke(()=>import("./index-B9SKzNNx.js"),__vite__mapDeps([108,109,96,87,8,47,49,33,50,48,38,19,81,88,5])),f5e=qe("/calendar/$view/$date/$calendarObjectId/")({component:Xe(d5e,"component")}),h5e=()=>Ke(()=>import("./_recurrenceId-Du4qexes.js"),__vite__mapDeps([110,109,96,87,8,47,49,33,50,48,38,19,81,88,5])),p5e=qe("/calendar/$view/$date/$calendarObjectId/$recurrenceId")({component:Xe(h5e,"component")}),m5e=qe("/mail/$mailboxId/$threadId/$messageId/$mode/{-$outboxMessageId}")({}),g5e=qe("/mail/brief/$threadId/$messageId/$mode/{-$outboxMessageId}")({}),v5e=qe("/mail/flagged/$threadId/$messageId/$mode/{-$outboxMessageId}")({}),y5e=gRe.update({id:"/",path:"/",getParentRoute:()=>Eu}),$I=bRe.update({id:"/calendar",path:"/calendar",getParentRoute:()=>Eu}),b5e=wRe.update({id:"/import",path:"/import",getParentRoute:()=>Eu}),$d=NTe.update({id:"/mail",path:"/mail",getParentRoute:()=>Eu}),S5e=PTe.update({id:"/onboarding",path:"/onboarding",getParentRoute:()=>Eu}),ss=UTe.update({id:"/settings",path:"/settings",getParentRoute:()=>Eu}),w5e=jTe.update({id:"/",path:"/",getParentRoute:()=>$I}),x5e=HTe.update({id:"/",path:"/",getParentRoute:()=>$d}),Ay=VTe.update({id:"/$mailboxId",path:"/$mailboxId",getParentRoute:()=>$d}),Iy=KTe.update({id:"/brief",path:"/brief",getParentRoute:()=>$d}),Ry=XTe.update({id:"/flagged",path:"/flagged",getParentRoute:()=>$d}),Ty=JTe.update({id:"/outbox",path:"/outbox",getParentRoute:()=>$d}),C5e=t4e.update({id:"/",path:"/",getParentRoute:()=>ss}),E5e=a4e.update({id:"/accounts",path:"/accounts",getParentRoute:()=>ss}),_5e=o4e.update({id:"/advanced",path:"/advanced",getParentRoute:()=>ss}),k5e=l4e.update({id:"/appearance",path:"/appearance",getParentRoute:()=>ss}),A5e=c4e.update({id:"/calendars",path:"/calendars",getParentRoute:()=>ss}),I5e=f4e.update({id:"/filters",path:"/filters",getParentRoute:()=>ss}),R5e=p4e.update({id:"/folders",path:"/folders",getParentRoute:()=>ss}),T5e=g4e.update({id:"/labels",path:"/labels",getParentRoute:()=>ss}),O5e=y4e.update({id:"/senders",path:"/senders",getParentRoute:()=>ss}),N5e=S4e.update({id:"/suggested-vips",path:"/suggested-vips",getParentRoute:()=>ss}),Oy=x4e.update({id:"/$view/$date",path:"/$view/$date",getParentRoute:()=>$I}),M5e=E4e.update({id:"/",path:"/",getParentRoute:()=>Ay}),BI=k4e.update({id:"/$threadId",path:"/$threadId",getParentRoute:()=>Ay}),P5e=I4e.update({id:"/",path:"/",getParentRoute:()=>Iy}),HI=T4e.update({id:"/$threadId",path:"/$threadId",getParentRoute:()=>Iy}),D5e=N4e.update({id:"/",path:"/",getParentRoute:()=>Ry}),qI=P4e.update({id:"/$threadId",path:"/$threadId",getParentRoute:()=>Ry}),L5e=L4e.update({id:"/",path:"/",getParentRoute:()=>Ty}),U5e=j4e.update({id:"/",path:"/",getParentRoute:()=>Oy}),VI=F4e.update({id:"/$calendarObjectId",path:"/$calendarObjectId",getParentRoute:()=>Oy}),j5e=B4e.update({id:"/new",path:"/new",getParentRoute:()=>Oy}),z5e=q4e.update({id:"/",path:"/",getParentRoute:()=>BI}),Kq=W4e.update({id:"/$messageId",path:"/$messageId",getParentRoute:()=>BI}),F5e=K4e.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>Ay}),$5e=Z4e.update({id:"/",path:"/",getParentRoute:()=>HI}),Yq=Q4e.update({id:"/$messageId",path:"/$messageId",getParentRoute:()=>HI}),B5e=e5e.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>Iy}),H5e=n5e.update({id:"/",path:"/",getParentRoute:()=>qI}),Zq=a5e.update({id:"/$messageId",path:"/$messageId",getParentRoute:()=>qI}),q5e=o5e.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>Ry}),V5e=l5e.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>Ty}),W5e=c5e.update({id:"/draft/$outboxMessageId",path:"/draft/$outboxMessageId",getParentRoute:()=>Ty}),G5e=f5e.update({id:"/",path:"/",getParentRoute:()=>VI}),K5e=p5e.update({id:"/$recurrenceId",path:"/$recurrenceId",getParentRoute:()=>VI}),Y5e=m5e.update({id:"/$mode/{-$outboxMessageId}",path:"/$mode/{-$outboxMessageId}",getParentRoute:()=>Kq}),Z5e=g5e.update({id:"/$mode/{-$outboxMessageId}",path:"/$mode/{-$outboxMessageId}",getParentRoute:()=>Yq}),X5e=v5e.update({id:"/$mode/{-$outboxMessageId}",path:"/$mode/{-$outboxMessageId}",getParentRoute:()=>Zq}),Q5e={CalendarViewDateCalendarObjectIdRecurrenceIdRoute:K5e,CalendarViewDateCalendarObjectIdIndexRoute:G5e},J5e=VI._addFileChildren(Q5e),eOe={CalendarViewDateCalendarObjectIdRoute:J5e,CalendarViewDateNewRoute:j5e,CalendarViewDateIndexRoute:U5e},tOe=Oy._addFileChildren(eOe),nOe={CalendarIndexRoute:w5e,CalendarViewDateRoute:tOe},rOe=$I._addFileChildren(nOe),aOe={MailMailboxIdThreadIdMessageIdModeChar123OutboxMessageIdChar125Route:Y5e},sOe=Kq._addFileChildren(aOe),oOe={MailMailboxIdThreadIdMessageIdRoute:sOe,MailMailboxIdThreadIdIndexRoute:z5e},iOe=BI._addFileChildren(oOe),lOe={MailMailboxIdThreadIdRoute:iOe,MailMailboxIdIndexRoute:M5e,MailMailboxIdComposeChar123OutboxMessageIdChar125Route:F5e},uOe=Ay._addFileChildren(lOe),cOe={MailBriefThreadIdMessageIdModeChar123OutboxMessageIdChar125Route:Z5e},dOe=Yq._addFileChildren(cOe),fOe={MailBriefThreadIdMessageIdRoute:dOe,MailBriefThreadIdIndexRoute:$5e},hOe=HI._addFileChildren(fOe),pOe={MailBriefThreadIdRoute:hOe,MailBriefIndexRoute:P5e,MailBriefComposeChar123OutboxMessageIdChar125Route:B5e},mOe=Iy._addFileChildren(pOe),gOe={MailFlaggedThreadIdMessageIdModeChar123OutboxMessageIdChar125Route:X5e},vOe=Zq._addFileChildren(gOe),yOe={MailFlaggedThreadIdMessageIdRoute:vOe,MailFlaggedThreadIdIndexRoute:H5e},bOe=qI._addFileChildren(yOe),SOe={MailFlaggedThreadIdRoute:bOe,MailFlaggedIndexRoute:D5e,MailFlaggedComposeChar123OutboxMessageIdChar125Route:q5e},wOe=Ry._addFileChildren(SOe),xOe={MailOutboxIndexRoute:L5e,MailOutboxComposeChar123OutboxMessageIdChar125Route:V5e,MailOutboxDraftOutboxMessageIdRoute:W5e},COe=Ty._addFileChildren(xOe),EOe={MailMailboxIdRoute:uOe,MailBriefRoute:mOe,MailFlaggedRoute:wOe,MailOutboxRoute:COe,MailIndexRoute:x5e},_Oe=$d._addFileChildren(EOe),kOe={SettingsAccountsRoute:E5e,SettingsAdvancedRoute:_5e,SettingsAppearanceRoute:k5e,SettingsCalendarsRoute:A5e,SettingsFiltersRoute:I5e,SettingsFoldersRoute:R5e,SettingsLabelsRoute:T5e,SettingsSendersRoute:O5e,SettingsSuggestedVipsRoute:N5e,SettingsIndexRoute:C5e},AOe=ss._addFileChildren(kOe),IOe={IndexRoute:y5e,CalendarRoute:rOe,ImportRoute:b5e,MailRoute:_Oe,OnboardingRoute:S5e,SettingsRoute:AOe},ROe=Eu._addFileChildren(IOe)._addFileTypes(),TOe=(e,t)=>{const n=nbe({routeTree:ROe,context:{queryClient:e},stringifySearch:ike,defaultPreload:"intent",defaultPendingComponent:wv,defaultPendingMs:200,defaultPendingMinMs:300});return n.subscribe("onResolved",r=>{t.recordPageView(r.toLocation.pathname),Toe(r.toLocation.pathname)}),n},Ye=e=>typeof e=="string",uh=()=>{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},DD=e=>e==null?"":""+e,OOe=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},NOe=/###/g,LD=e=>e&&e.indexOf("###")>-1?e.replace(NOe,"."):e,UD=e=>!e||Ye(e),jh=(e,t,n)=>{const r=Ye(t)?t.split("."):t;let a=0;for(;a<r.length-1;){if(UD(e))return{};const s=LD(r[a]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++a}return UD(e)?{}:{obj:e,k:LD(r[a])}},jD=(e,t,n)=>{const{obj:r,k:a}=jh(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let s=t[t.length-1],i=t.slice(0,t.length-1),u=jh(e,i,Object);for(;u.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),u=jh(e,i,Object),u?.obj&&typeof u.obj[`${u.k}.${s}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${s}`]=n},MOe=(e,t,n,r)=>{const{obj:a,k:s}=jh(e,t,Object);a[s]=a[s]||[],a[s].push(n)},Y1=(e,t)=>{const{obj:n,k:r}=jh(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},POe=(e,t,n)=>{const r=Y1(e,n);return r!==void 0?r:Y1(t,n)},Xq=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Ye(e[r])||e[r]instanceof String||Ye(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Xq(e[r],t[r],n):e[r]=t[r]);return e},Ec=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var DOe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const LOe=e=>Ye(e)?e.replace(/[&<>"'\/]/g,t=>DOe[t]):e;class UOe{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const jOe=[" ",",","?","!",";"],zOe=new UOe(20),FOe=(e,t,n)=>{t=t||"",n=n||"";const r=jOe.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const a=zOe.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let s=!a.test(e);if(!s){const i=e.indexOf(n);i>0&&!a.test(e.substring(0,i))&&(s=!0)}return s},X_=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let a=e;for(let s=0;s<r.length;){if(!a||typeof a!="object")return;let i,u="";for(let c=s;c<r.length;++c)if(c!==s&&(u+=n),u+=r[c],i=a[u],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&c<r.length-1)continue;s+=c-s+1;break}a=i}return a},Z1=e=>e?.replace("_","-"),$Oe={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class X1{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||$Oe,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,a){return a&&!this.debug?null:(Ye(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new X1(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new X1(this.logger,t)}}var Is=new X1;class Ny{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[u,c]=i;for(let f=0;f<c;f++)u(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[u,c]=i;for(let f=0;f<c;f++)u.apply(u,[t,...r])})}}class zD extends Ny{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;t.indexOf(".")>-1?u=t.split("."):(u=[t,n],r&&(Array.isArray(r)?u.push(...r):Ye(r)&&s?u.push(...r.split(s)):u.push(r)));const c=Y1(this.data,u);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=u[0],n=u[1],r=u.slice(2).join(".")),c||!i||!Ye(r)?c:X_(this.data?.[t]?.[n],r,s)}addResource(t,n,r,a){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let u=[t,n];r&&(u=u.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(u=t.split("."),a=n,n=u[1]),this.addNamespaces(n),jD(this.data,u,a),s.silent||this.emit("added",t,n,r,a)}addResources(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(Ye(r[s])||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},u=[t,n];t.indexOf(".")>-1&&(u=t.split("."),a=r,r=n,n=u[1]),this.addNamespaces(n);let c=Y1(this.data,u)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?Xq(c,r,s):c={...c,...r},jD(this.data,u,c),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var Qq={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(s=>{t=this.processors[s]?.process(t,n,r,a)??t}),t}};const FD={},$D=e=>!Ye(e)&&typeof e!="boolean"&&typeof e!="number";class Q1 extends Ny{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),OOe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Is.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};return t==null?!1:this.resolve(t,n)?.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,u=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!FOe(t,r,a);if(i&&!u){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:Ye(s)?[s]:s};const f=t.split(r);(r!==a||r===a&&this.options.ns.indexOf(f[0])>-1)&&(s=f.shift()),t=f.join(a)}return{key:t,namespaces:Ye(s)?[s]:s}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:u}=this.extractFromKey(t[t.length-1],n),c=u[u.length-1],f=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f?.toLowerCase()==="cimode"){if(h){const j=n.nsSeparator||this.options.nsSeparator;return a?{res:`${c}${j}${i}`,usedKey:i,exactUsedKey:i,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${j}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:i}const m=this.resolve(t,n);let g=m?.res;const y=m?.usedKey||i,S=m?.exactUsedKey||i,w=["[object Number]","[object Function]","[object RegExp]"],x=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,k=n.count!==void 0&&!Ye(n.count),A=Q1.hasDefaultValue(n),R=k?this.pluralResolver.getSuffix(f,n.count,n):"",N=n.ordinal&&k?this.pluralResolver.getSuffix(f,n.count,{ordinal:!1}):"",O=k&&!n.ordinal&&n.count===0,T=O&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${R}`]||n[`defaultValue${N}`]||n.defaultValue;let P=g;_&&!g&&A&&(P=T);const L=$D(P),q=Object.prototype.toString.apply(P);if(_&&P&&L&&w.indexOf(q)<0&&!(Ye(x)&&Array.isArray(P))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const j=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,P,{...n,ns:u}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(m.res=j,m.usedParams=this.getUsedParamsDetails(n),m):j}if(s){const j=Array.isArray(P),U=j?[]:{},H=j?S:y;for(const Z in P)if(Object.prototype.hasOwnProperty.call(P,Z)){const se=`${H}${s}${Z}`;A&&!g?U[Z]=this.translate(se,{...n,defaultValue:$D(T)?T[Z]:void 0,joinArrays:!1,ns:u}):U[Z]=this.translate(se,{...n,joinArrays:!1,ns:u}),U[Z]===se&&(U[Z]=P[Z])}g=U}}else if(_&&Ye(x)&&Array.isArray(g))g=g.join(x),g&&(g=this.extendTranslation(g,t,n,r));else{let j=!1,U=!1;!this.isValidLookup(g)&&A&&(j=!0,g=T),this.isValidLookup(g)||(U=!0,g=i);const Z=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&U?void 0:g,se=A&&T!==g&&this.options.updateMissing;if(U||j||se){if(this.logger.log(se?"updateKey":"missingKey",f,c,i,se?T:g),s){const de=this.resolve(i,{...n,keySeparator:!1});de&&de.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let B=[];const X=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&X&&X[0])for(let de=0;de<X.length;de++)B.push(X[de]);else this.options.saveMissingTo==="all"?B=this.languageUtils.toResolveHierarchy(n.lng||this.language):B.push(n.lng||this.language);const re=(de,we,z)=>{const W=A&&z!==g?z:Z;this.options.missingKeyHandler?this.options.missingKeyHandler(de,c,we,W,se,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(de,c,we,W,se,n),this.emit("missingKey",de,c,we,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?B.forEach(de=>{const we=this.pluralResolver.getSuffixes(de,n);O&&n[`defaultValue${this.options.pluralSeparator}zero`]&&we.indexOf(`${this.options.pluralSeparator}zero`)<0&&we.push(`${this.options.pluralSeparator}zero`),we.forEach(z=>{re([de],i+z,n[`defaultValue${z}`]||T)})}):re(B,i,T))}g=this.extendTranslation(g,t,n,m,r),U&&g===i&&this.options.appendNamespaceToMissingKey&&(g=`${c}:${i}`),(U||j)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,j?g:void 0))}return a?(m.res=g,m.usedParams=this.getUsedParamsDetails(n),m):g}extendTranslation(t,n,r,a,s){var i=this;if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=Ye(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(f){const g=t.match(this.interpolator.nestingRegexp);h=g&&g.length}let m=r.replace&&!Ye(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,r.lng||this.language||a.usedLng,r),f){const g=t.match(this.interpolator.nestingRegexp),y=g&&g.length;h<y&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var g=arguments.length,y=new Array(g),S=0;S<g;S++)y[S]=arguments[S];return s?.[0]===y[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${n[0]}`),null):i.translate(...y,n)},r)),r.interpolation&&this.interpolator.reset()}const u=r.postProcess||this.options.postProcess,c=Ye(u)?[u]:u;return t!=null&&c?.length&&r.applyPostProcessor!==!1&&(t=Qq.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,a,s,i,u;return Ye(t)&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const f=this.extractFromKey(c,n),h=f.key;a=h;let m=f.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const g=n.count!==void 0&&!Ye(n.count),y=g&&!n.ordinal&&n.count===0,S=n.context!==void 0&&(Ye(n.context)||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(x=>{this.isValidLookup(r)||(u=x,!FD[`${w[0]}-${x}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(u)&&(FD[`${w[0]}-${x}`]=!0,this.logger.warn(`key "${a}" for languages "${w.join(", ")}" won't get resolved as namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(_=>{if(this.isValidLookup(r))return;i=_;const k=[h];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(k,h,_,x,n);else{let R;g&&(R=this.pluralResolver.getSuffix(_,n.count,n));const N=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(k.push(h+R),n.ordinal&&R.indexOf(O)===0&&k.push(h+R.replace(O,this.options.pluralSeparator)),y&&k.push(h+N)),S){const T=`${h}${this.options.contextSeparator}${n.context}`;k.push(T),g&&(k.push(T+R),n.ordinal&&R.indexOf(O)===0&&k.push(T+R.replace(O,this.options.pluralSeparator)),y&&k.push(T+N))}}let A;for(;A=k.pop();)this.isValidLookup(r)||(s=A,r=this.getResource(_,x,A,n))}))})}),{res:r,usedKey:a,exactUsedKey:s,usedLng:i,usedNS:u}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Ye(t.replace);let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const s of n)delete a[s]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class BD{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Is.create("languageUtils")}getScriptPartFromCode(t){if(t=Z1(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Z1(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Ye(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Ye(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),a=[],s=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return Ye(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):Ye(t)&&s(this.formatLanguageCode(t)),r.forEach(i=>{a.indexOf(i)<0&&s(this.formatLanguageCode(i))}),a}}const HD={zero:0,one:1,two:2,few:3,many:4,other:5},qD={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class BOe{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Is.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=Z1(t==="dev"?"en":t),a=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:a});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let i;try{i=new Intl.PluralRules(r,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),qD;if(!t.match(/-|_/))return qD;const c=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(c,n)}return this.pluralRulesCache[s]=i,i}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,s)=>HD[a]-HD[s]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const VD=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=POe(e,t,n);return!s&&a&&Ye(n)&&(s=X_(e,n,r),s===void 0&&(s=X_(t,n,r))),s},LE=e=>e.replace(/\$/g,"$$$$");class HOe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Is.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:s,prefixEscaped:i,suffix:u,suffixEscaped:c,formatSeparator:f,unescapeSuffix:h,unescapePrefix:m,nestingPrefix:g,nestingPrefixEscaped:y,nestingSuffix:S,nestingSuffixEscaped:w,nestingOptionsSeparator:x,maxReplaces:_,alwaysFormat:k}=t.interpolation;this.escape=n!==void 0?n:LOe,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=s?Ec(s):i||"{{",this.suffix=u?Ec(u):c||"}}",this.formatSeparator=f||",",this.unescapePrefix=h?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":h||"",this.nestingPrefix=g?Ec(g):y||Ec("$t("),this.nestingSuffix=S?Ec(S):w||Ec(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=_||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,a){let s,i,u;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=y=>{if(y.indexOf(this.formatSeparator)<0){const _=VD(n,c,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(_,void 0,r,{...a,...n,interpolationkey:y}):_}const S=y.split(this.formatSeparator),w=S.shift().trim(),x=S.join(this.formatSeparator).trim();return this.format(VD(n,c,w,this.options.keySeparator,this.options.ignoreJSONStructure),x,r,{...a,...n,interpolationkey:w})};this.resetRegExp();const h=a?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>LE(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?LE(this.escape(y)):LE(y)}].forEach(y=>{for(u=0;s=y.regex.exec(t);){const S=s[1].trim();if(i=f(S),i===void 0)if(typeof h=="function"){const x=h(t,s,a);i=Ye(x)?x:""}else if(a&&Object.prototype.hasOwnProperty.call(a,S))i="";else if(m){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${t}`),i="";else!Ye(i)&&!this.useRawValueToEscape&&(i=DD(i));const w=y.safeValue(i);if(t=t.replace(s[0],w),m?(y.regex.lastIndex+=i.length,y.regex.lastIndex-=s[0].length):y.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,i;const u=(c,f)=>{const h=this.nestingOptionsSeparator;if(c.indexOf(h)<0)return c;const m=c.split(new RegExp(`${h}[ ]*{`));let g=`{${m[1]}`;c=m[0],g=this.interpolate(g,i);const y=g.match(/'/g),S=g.match(/"/g);((y?.length??0)%2===0&&!S||S.length%2!==0)&&(g=g.replace(/'/g,'"'));try{i=JSON.parse(g),f&&(i={...f,...i})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,w),`${c}${h}${g}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;a=this.nestingRegexp.exec(t);){let c=[];i={...r},i=i.replace&&!Ye(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const h=a[1].split(this.formatSeparator).map(m=>m.trim());a[1]=h.shift(),c=h,f=!0}if(s=n(u.call(this,a[1].trim(),i),i),s&&a[0]===t&&!Ye(s))return s;Ye(s)||(s=DD(s)),s||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),s=""),f&&(s=c.reduce((h,m)=>this.format(h,m,r.lng,{...r,interpolationkey:a[1].trim()}),s.trim())),t=t.replace(a[0],s),this.regexp.lastIndex=0}return t}}const qOe=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(i=>{if(i){const[u,...c]=i.split(":"),f=c.join(":").trim().replace(/^'+|'+$/g,""),h=u.trim();n[h]||(n[h]=f),f==="false"&&(n[h]=!1),f==="true"&&(n[h]=!0),isNaN(f)||(n[h]=parseInt(f,10))}})}return{formatName:t,formatOptions:n}},_c=e=>{const t={};return(n,r,a)=>{let s=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(s={...s,[a.interpolationkey]:void 0});const i=r+JSON.stringify(s);let u=t[i];return u||(u=e(Z1(r),a),t[i]=u),u(n)}};class VOe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Is.create("formatter"),this.options=t,this.formats={number:_c((n,r)=>{const a=new Intl.NumberFormat(n,{...r});return s=>a.format(s)}),currency:_c((n,r)=>{const a=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>a.format(s)}),datetime:_c((n,r)=>{const a=new Intl.DateTimeFormat(n,{...r});return s=>a.format(s)}),relativetime:_c((n,r)=>{const a=new Intl.RelativeTimeFormat(n,{...r});return s=>a.format(s,r.range||"day")}),list:_c((n,r)=>{const a=new Intl.ListFormat(n,{...r});return s=>a.format(s)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=_c(n)}format(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(u=>u.indexOf(")")>-1)){const u=s.findIndex(c=>c.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,u)].join(this.formatSeparator)}return s.reduce((u,c)=>{const{formatName:f,formatOptions:h}=qOe(c);if(this.formats[f]){let m=u;try{const g=a?.formatParams?.[a.interpolationkey]||{},y=g.locale||g.lng||a.locale||a.lng||r;m=this.formats[f](u,y,{...h,...a,...g})}catch(g){this.logger.warn(g)}return m}else this.logger.warn(`there was no format function for ${f}`);return u},t)}}const WOe=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class GOe extends Ny{constructor(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=Is.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,a.backend,a)}queueLoad(t,n,r,a){const s={},i={},u={},c={};return t.forEach(f=>{let h=!0;n.forEach(m=>{const g=`${f}|${m}`;!r.reload&&this.store.hasResourceBundle(f,m)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?i[g]===void 0&&(i[g]=!0):(this.state[g]=1,h=!1,i[g]===void 0&&(i[g]=!0),s[g]===void 0&&(s[g]=!0),c[m]===void 0&&(c[m]=!0)))}),h||(u[f]=!0)}),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const a=t.split("|"),s=a[0],i=a[1];n&&this.emit("failedLoading",s,i,n),!n&&r&&this.store.addResourceBundle(s,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const u={};this.queue.forEach(c=>{MOe(c.loaded,[s],i),WOe(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(f=>{u[f]||(u[f]={});const h=c.loaded[f];h.length&&h.forEach(m=>{u[f][m]===void 0&&(u[f][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:s,callback:i});return}this.readingCalls++;const u=(f,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(f&&h&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,a+1,s*2,i)},s);return}i(f,h)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const f=c(t,n);f&&typeof f.then=="function"?f.then(h=>u(null,h)).catch(u):u(null,f)}catch(f){u(f)}return}return c(t,n,u)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();Ye(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Ye(n)&&(n=[n]);const s=this.queueLoad(t,n,r,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),a=r[0],s=r[1];this.read(a,s,"read",void 0,void 0,(i,u)=>{i&&this.logger.warn(`${n}loading namespace ${s} for language ${a} failed`,i),!i&&u&&this.logger.log(`${n}loaded namespace ${s} for language ${a}`,u),this.loaded(t,i,u)})}saveMissing(t,n,r,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const c={...i,isUpdate:s},f=this.backend.create.bind(this.backend);if(f.length<6)try{let h;f.length===5?h=f(t,n,r,a,c):h=f(t,n,r,a),h&&typeof h.then=="function"?h.then(m=>u(null,m)).catch(u):u(null,h)}catch(h){u(h)}else f(t,n,r,a,u,c)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const WD=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Ye(e[1])&&(t.defaultValue=e[1]),Ye(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),GD=e=>(Ye(e.ns)&&(e.ns=[e.ns]),Ye(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Ye(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),o0=()=>{},KOe=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Sp extends Ny{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=GD(t),this.services={},this.logger=Is,this.modules={external:[]},KOe(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),n.defaultNS==null&&n.ns&&(Ye(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=WD();this.options={...a,...this.options,...GD(n)},this.options.interpolation={...a.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const s=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?Is.init(s(this.modules.logger),this.options):Is.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=VOe;const m=new BD(this.options);this.store=new zD(this.options.resources,this.options);const g=this.services;g.logger=Is,g.resourceStore=this.store,g.languageUtils=m,g.pluralResolver=new BOe(m,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),h&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(g.formatter=s(h),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new HOe(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new GOe(s(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(y){for(var S=arguments.length,w=new Array(S>1?S-1:0),x=1;x<S;x++)w[x-1]=arguments[x];t.emit(y,...w)}),this.modules.languageDetector&&(g.languageDetector=s(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=s(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new Q1(this.services,this.options),this.translator.on("*",function(y){for(var S=arguments.length,w=new Array(S>1?S-1:0),x=1;x<S;x++)w[x-1]=arguments[x];t.emit(y,...w)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=o0),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(h=>{this[h]=function(){return t.store[h](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=function(){return t.store[h](...arguments),t}});const c=uh(),f=()=>{const h=(m,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(g),r(m,g)};if(this.languages&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initAsync?f():setTimeout(f,0),c}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o0;const a=Ye(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(a?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],i=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&s.indexOf(f)<0&&s.push(f)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload?.forEach?.(u=>i(u)),this.services.backendConnector.load(s,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(t,n,r){const a=uh();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=o0),this.services.backendConnector.reload(t,n,s=>{a.resolve(),r(s)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Qq.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const a=uh();this.emit("languageChanging",t);const s=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,f)=>{f?(s(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,a.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},u=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const f=Ye(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);f&&(this.language||s(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector?.cacheUserLanguage?.(f)),this.loadResources(f,h=>{i(h,f)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(t),a}getFixedT(t,n,r){var a=this;const s=function(i,u){let c;if(typeof u!="object"){for(var f=arguments.length,h=new Array(f>2?f-2:0),m=2;m<f;m++)h[m-2]=arguments[m];c=a.options.overloadTranslationOptionHandler([i,u].concat(h))}else c={...u};c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||s.keyPrefix);const g=a.options.keySeparator||".";let y;return c.keyPrefix&&Array.isArray(i)?y=i.map(S=>`${c.keyPrefix}${g}${S}`):y=c.keyPrefix?`${c.keyPrefix}${g}${i}`:i,a.t(y,c)};return Ye(t)?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.translator?.translate(...n)}exists(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.translator?.exists(...n)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(u,c)=>{const f=this.services.backendConnector.state[`${u}|${c}`];return f===-1||f===0||f===2};if(n.precheck){const u=n.precheck(this,i);if(u!==void 0)return u}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!a||i(s,t)))}loadNamespaces(t,n){const r=uh();return this.options.ns?(Ye(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=uh();Ye(t)&&(t=[t]);const a=this.options.preload||[],s=t.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return s.length?(this.options.preload=a.concat(s),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new BD(WD());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Sp(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o0;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},s=new Sp(a);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(u=>{s[u]=this[u]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const u=Object.keys(this.store.data).reduce((c,f)=>(c[f]={...this.store.data[f]},Object.keys(c[f]).reduce((h,m)=>(h[m]={...c[f][m]},h),{})),{});s.store=new zD(u,a),s.services.resourceStore=s.store}return s.translator=new Q1(s.services,a),s.translator.on("*",function(u){for(var c=arguments.length,f=new Array(c>1?c-1:0),h=1;h<c;h++)f[h-1]=arguments[h];s.emit(u,...f)}),s.init(a,n),s.translator.options=a,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Cr=Sp.createInstance();Cr.createInstance=Sp.createInstance;Cr.createInstance;Cr.dir;Cr.init;Cr.loadResources;Cr.reloadResources;Cr.use;Cr.changeLanguage;Cr.getFixedT;Cr.t;Cr.exists;Cr.setDefaultNamespace;Cr.hasLoadedNamespace;Cr.loadNamespaces;Cr.loadLanguages;const{slice:YOe,forEach:ZOe}=[];function XOe(e){return ZOe.call(YOe.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function QOe(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const KD=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,JOe=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},a=encodeURIComponent(t);let s=`${e}=${a}`;if(r.maxAge>0){const i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(i)}`}if(r.domain){if(!KD.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!KD.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(s+="; Partitioned"),s},YD={create(e,t,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=JOe(e,t,a)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let a=n[r];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var e6e={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return YD.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:a,cookieOptions:s}=t;n&&typeof document<"u"&&YD.create(n,e,r,a,s)}},t6e={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const s=r.substring(1).split("&");for(let i=0;i<s.length;i++){const u=s[i].indexOf("=");u>0&&s[i].substring(0,u)===t&&(n=s[i].substring(u+1))}}return n}},n6e={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:a}=window.location;if(a&&a.length>2){const s=a.substring(1);if(t){const i=s.split("&");for(let u=0;u<i.length;u++){const c=i[u].indexOf("=");c>0&&i[u].substring(0,c)===t&&(r=i[u].substring(c+1))}}if(r)return r;if(!r&&n>-1){const i=a.match(/\/([a-zA-Z-]*)/g);return Array.isArray(i)?i[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let kc=null;const ZD=()=>{if(kc!==null)return kc;try{if(kc=typeof window<"u"&&window.localStorage!==null,!kc)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{kc=!1}return kc};var r6e={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&ZD())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&ZD()&&window.localStorage.setItem(n,e)}};let Ac=null;const XD=()=>{if(Ac!==null)return Ac;try{if(Ac=typeof window<"u"&&window.sessionStorage!==null,!Ac)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Ac=!1}return Ac};var a6e={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&XD())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&XD()&&window.sessionStorage.setItem(n,e)}},s6e={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:a}=navigator;if(n)for(let s=0;s<n.length;s++)t.push(n[s]);r&&t.push(r),a&&t.push(a)}return t.length>0?t:void 0}},o6e={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},i6e={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},l6e={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let Jq=!1;try{document.cookie,Jq=!0}catch{}const eV=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Jq||eV.splice(1,1);const u6e=()=>({order:eV,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class tV{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=XOe(n,this.options||{},u6e()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=a=>a.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(e6e),this.addDetector(t6e),this.addDetector(r6e),this.addDetector(a6e),this.addDetector(s6e),this.addDetector(o6e),this.addDetector(i6e),this.addDetector(l6e),this.addDetector(n6e)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let a=this.detectors[r].lookup(this.options);a&&typeof a=="string"&&(a=[a]),a&&(n=n.concat(a))}}),n=n.filter(r=>r!=null&&!QOe(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}tV.type="languageDetector";function c6e(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=d6e(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(f){throw f},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
294
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,i=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var f=n.next();return i=f.done,f},e:function(f){u=!0,s=f},f:function(){try{i||n.return==null||n.return()}finally{if(u)throw s}}}}function d6e(e,t){if(e){if(typeof e=="string")return QD(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?QD(e,t):void 0}}function QD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Q_(e){"@babel/helpers - typeof";return Q_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q_(e)}var nV=["__proto__","constructor","prototype"];function rV(e){return!(typeof e!="string"||e.length===0||e.length>128||nV.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function aV(e){return!(!rV(e)||e.indexOf("/")>-1)}function f6e(e){return rV(e)}var h6e={lng:aV,ns:f6e};function i0(e){return typeof e!="string"?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function p6e(e){if(typeof e!="string"||e.length===0)return e;try{var t=new URL(e);return t.username||t.password?(t.username="",t.password="",t.toString()):e}catch{return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}function sV(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Q_(XMLHttpRequest))==="object"}function m6e(e){return!!e&&typeof e.then=="function"}function g6e(e){return m6e(e)?e:Promise.resolve(e)}var v6e=/\{\{(.+?)\}\}/g;function JD(e,t){var n=!1,r=e.replace(v6e,function(a,s){var i=s.trim();if(nV.indexOf(i)>-1)return a;var u=t[i];if(u==null)return a;var c=h6e[i]||aV,f=String(u).split("+"),h=c6e(f),m;try{for(h.s();!(m=h.n()).done;){var g=m.value;if(!c(g))return n=!0,a}}catch(y){h.e(y)}finally{h.f()}return f.join("+")});return n?null:r}function eL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function tL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eL(Object(n),!0).forEach(function(r){y6e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function y6e(e,t,n){return(t=b6e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b6e(e){var t=S6e(e,"string");return cu(t)=="symbol"?t:t+""}function S6e(e,t){if(cu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cu(e){"@babel/helpers - typeof";return cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cu(e)}var Ji=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?Ji=global.fetch:typeof window<"u"&&window.fetch&&(Ji=window.fetch);var wp;sV()&&(typeof global<"u"&&global.XMLHttpRequest?wp=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(wp=window.XMLHttpRequest));var J1;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?J1=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(J1=window.ActiveXObject));typeof Ji!="function"&&(Ji=void 0);if(!Ji&&!wp&&!J1)try{Ke(()=>import("./browser-ponyfill-CkVzAnx2.js").then(e=>e.b),[]).then(function(e){Ji=e.default}).catch(function(){})}catch{}var oV=["__proto__","constructor","prototype"],J_=function(t,n){if(n&&cu(n)==="object"){for(var r="",a=0,s=Object.keys(n);a<s.length;a++){var i=s[a];oV.indexOf(i)>-1||(r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]))}if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},nL=function(t,n,r,a){var s=function(c){if(!c.ok)return r(c.statusText||"Error",{status:c.status});c.text().then(function(f){r(null,{status:c.status,data:f})}).catch(r)};if(a){var i=a(t,n);if(i instanceof Promise){i.then(s).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(s).catch(r):Ji(t,n).then(s).catch(r)},w6e=function(t,n,r,a){t.queryStringParams&&(n=J_(n,t.queryStringParams));var s=tL({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(s["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(s["Content-Type"]="application/json");var i=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,u=tL({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:s},t._omitFetchOptions?{}:i),c=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{nL(n,u,a,c)}catch(f){if(!i||Object.keys(i).length===0||!f.message||f.message.indexOf("not implemented")<0)return a(f);try{Object.keys(i).forEach(function(h){delete u[h]}),nL(n,u,a,c),t._omitFetchOptions=!0}catch(h){a(h)}}},x6e=function(t,n,r,a){r&&cu(r)==="object"&&(r=J_("",r).slice(1)),t.queryStringParams&&(n=J_(n,t.queryStringParams));try{var s=wp?new wp:new J1("MSXML2.XMLHTTP.3.0");s.open(r?"POST":"GET",n,1),t.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!t.withCredentials,r&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var i=t.customHeaders;if(i=typeof i=="function"?i():i,i)for(var u=0,c=Object.keys(i);u<c.length;u++){var f=c[u];oV.indexOf(f)>-1||s.setRequestHeader(f,i[f])}s.onreadystatechange=function(){s.readyState>3&&a(s.status>=400?s.statusText:null,{status:s.status,data:s.responseText})},s.send(r)}catch(h){console&&console.log(h)}},C6e=function(t,n,r,a){if(typeof r=="function"&&(a=r,r=void 0),a=a||function(){},Ji&&n.indexOf("file:")!==0)return w6e(t,n,r,a);if(sV()||typeof ActiveXObject=="function")return x6e(t,n,r,a);a(new Error("No fetch and no xhr implementation found!"))};function Ed(e){"@babel/helpers - typeof";return Ed=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ed(e)}function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function UE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rL(Object(n),!0).forEach(function(r){iV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function E6e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _6e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lV(r.key),r)}}function k6e(e,t,n){return t&&_6e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iV(e,t,n){return(t=lV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lV(e){var t=A6e(e,"string");return Ed(t)=="symbol"?t:t+""}function A6e(e,t){if(Ed(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ed(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var I6e=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,a){return iV({},r,a||"")},parseLoadPayload:function(n,r){},request:C6e,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},uV=(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E6e(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return k6e(e,[{key:"init",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=UE(UE(UE({},I6e()),this.options||{}),a),this.allOptions=s,this.services&&this.options.reloadInterval){var i=setInterval(function(){return r.reload()},this.options.reloadInterval);Ed(i)==="object"&&typeof i.unref=="function"&&i.unref()}}},{key:"readMulti",value:function(n,r,a){this._readAny(n,n,r,r,a)}},{key:"read",value:function(n,r,a){this._readAny([n],n,[r],r,a)}},{key:"_readAny",value:function(n,r,a,s,i){var u=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,a)),c=g6e(c),c.then(function(f){if(!f)return i(null,{});var h=JD(f,{lng:n.join("+"),ns:a.join("+")});if(h==null){var m=n.map(i0).join(", "),g=a.map(i0).join(", ");return i(new Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+m+"] namespaces=["+g+"]"),!1)}u.loadUrl(h,i,r,s)})}},{key:"loadUrl",value:function(n,r,a,s){var i=this,u=typeof a=="string"?[a]:a,c=typeof s=="string"?[s]:s,f=this.options.parseLoadPayload(u,c),h=i0(p6e(n));this.options.request(this.options,n,f,function(m,g){if(g&&(g.status>=500&&g.status<600||!g.status))return r("failed loading "+h+"; status code: "+g.status,!0);if(g&&g.status>=400&&g.status<500)return r("failed loading "+h+"; status code: "+g.status,!1);if(!g&&m&&m.message){var y=m.message.toLowerCase(),S=["failed","fetch","network","load"].find(function(_){return y.indexOf(_)>-1});if(S)return r("failed loading "+h+": "+i0(m.message),!0)}if(m)return r(m,!1);var w,x;try{typeof g.data=="string"?w=i.options.parse(g.data,a,s):w=g.data}catch{x="failed parsing "+h+" to json"}if(x)return r(x,!1);r(null,w)})}},{key:"create",value:function(n,r,a,s,i){var u=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,a,s),f=0,h=[],m=[];n.forEach(function(g){var y=u.options.addPath;typeof u.options.addPath=="function"&&(y=u.options.addPath(g,r));var S=JD(y,{lng:g,ns:r});if(S==null){f+=1,i&&f===n.length&&i(h,m);return}u.options.request(u.options,S,c,function(w,x){f+=1,h.push(w),m.push(x),f===n.length&&typeof i=="function"&&i(h,m)})})}}},{key:"reload",value:function(){var n=this,r=this.services,a=r.backendConnector,s=r.languageUtils,i=r.logger,u=a.language;if(!(u&&u.toLowerCase()==="cimode")){var c=[],f=function(m){var g=s.toResolveHierarchy(m);g.forEach(function(y){c.indexOf(y)<0&&c.push(y)})};f(u),this.allOptions.preload&&this.allOptions.preload.forEach(function(h){return f(h)}),c.forEach(function(h){n.allOptions.ns.forEach(function(m){a.read(h,m,"read",null,null,function(g,y){g&&i.warn("loading namespace ".concat(m," for language ").concat(h," failed"),g),!g&&y&&i.log("loaded namespace ".concat(m," for language ").concat(h),y),a.loaded("".concat(h,"|").concat(m),g,y)})})})}}}])})();uV.type="backend";Cr.use(uV).use(tV).use(bke).init({fallbackLng:"en",supportedLngs:["en","nl","de","fr"],ns:["common","mail"],defaultNS:"common",backend:{loadPath:"/locales/{{lng}}/{{ns}}.json"},detection:{order:["navigator","htmlTag"],caches:[]},interpolation:{escapeValue:!1},react:{useSuspense:!0,bindI18n:"languageChanged loaded"}});const R6e=({authProvider:e,rootElementId:t="root"})=>{Aoe(),ske(),e.configure(),Rbe(e);const n=rke();voe(n);const r=new eve({queryCache:new qF({onError:Mbe}),mutationCache:new HF({onError:Pbe}),defaultOptions:{queries:{staleTime:3e4,gcTime:5*6e4,retry:1}}}),a=TOe(r,n);n.recordPageView(window.location.pathname);const s=document.getElementById(t);if(!s)throw new Error(`Root element not found: #${t}`);const{Shell:i}=e;dbe.createRoot(s).render(C.jsx(E.StrictMode,{children:C.jsx(oq.Provider,{value:n,children:C.jsxs(tve,{client:r,children:[C.jsx(Nbe,{value:e,children:C.jsx(i,{children:C.jsx(sbe,{router:a})})}),!1]})})}))};R6e({authProvider:O1e});export{ste as $,H8e as A,K0 as B,nPe as C,vNe as D,xk as E,bne as F,B_ as G,Lq as H,_U as I,_d as J,qke as K,$h as L,fq as M,Lk as N,b$ as O,Vi as P,cv as Q,STe as R,QRe as S,e3 as T,Kee as U,dte as V,Yee as W,Ps as X,Zee as Y,Xee as Z,cte as _,$8e as a,roe as a$,ute as a0,hte as a1,Sk as a2,ote as a3,Wee as a4,ete as a5,S$ as a6,Jc as a7,z8e as a8,CNe as a9,xy as aA,KRe as aB,nd as aC,L8e as aD,GMe as aE,KMe as aF,n3 as aG,a4e as aH,hMe as aI,sPe as aJ,lte as aK,oPe as aL,RMe as aM,Ik as aN,M6e as aO,Tae as aP,cae as aQ,mNe as aR,pNe as aS,HMe as aT,ME as aU,YMe as aV,Uk as aW,n1 as aX,QIe as aY,ooe as aZ,aoe as a_,cq as aa,a8e as ab,wy as ac,yq as ad,w8e as ae,K8e as af,VMe as ag,VTe as ah,Y8e as ai,wv as aj,$6e as ak,wNe as al,J6e as am,Ak as an,Gre as ao,od as ap,F as aq,M8e as ar,eNe as as,O8e as at,fMe as au,cMe as av,DU as aw,ts as ax,$ae as ay,hv as az,B8e as b,sve as b$,ns as b0,xv as b1,ePe as b2,uD as b3,v0 as b4,sMe as b5,$Ae as b6,$Me as b7,poe as b8,FMe as b9,nte as bA,I8e as bB,OAe as bC,EMe as bD,C8e as bE,cIe as bF,S8e as bG,W6e as bH,ZMe as bI,VAe as bJ,NMe as bK,OMe as bL,pte as bM,Fee as bN,K6e as bO,jq as bP,jMe as bQ,W8e as bR,V8e as bS,Qae as bT,Xae as bU,jd as bV,Fn as bW,d1 as bX,DF as bY,Y1e as bZ,nve as b_,BMe as ba,moe as bb,yMe as bc,bMe as bd,bIe as be,vj as bf,sNe as bg,tTe as bh,lae as bi,sre as bj,SIe as bk,NIe as bl,OIe as bm,Tk as bn,oNe as bo,gIe as bp,oMe as bq,jke as br,E8e as bs,k8e as bt,gAe as bu,_8e as bv,iMe as bw,x8e as bx,R8e as by,A8e as bz,Jh as c,L6e as c$,uve as c0,ove as c1,ive as c2,Ar as c3,dve as c4,JP as c5,lve as c6,Lae as c7,z6e as c8,ane as c9,o8e as cA,sIe as cB,WAe as cC,yU as cD,ZRe as cE,P8e as cF,YRe as cG,D8e as cH,f8e as cI,lNe as cJ,pq as cK,rPe as cL,Wq as cM,T8e as cN,b8e as cO,TMe as cP,WMe as cQ,lAe as cR,Z8e as cS,X8e as cT,h8e as cU,jee as cV,tre as cW,tne as cX,Yne as cY,Zne as cZ,Xne as c_,lne as ca,sne as cb,gne as cc,Ey as cd,_y as ce,q8e as cf,HAe as cg,JAe as ch,vp as ci,Vre as cj,Wre as ck,Gee as cl,G6e as cm,vU as cn,T5 as co,T6e as cp,O6e as cq,s8e as cr,i8e as cs,Ke as ct,nNe as cu,d8e as cv,YAe as cw,rNe as cx,kq as cy,l8e as cz,PI as d,CMe as d$,ene as d0,V6e as d1,P6e as d2,one as d3,kU as d4,rre as d5,EU as d6,Pae as d7,tte as d8,iNe as d9,p8e as dA,LAe as dB,pAe as dC,hAe as dD,kMe as dE,kTe as dF,aPe as dG,cNe as dH,Sv as dI,dNe as dJ,fNe as dK,hNe as dL,tPe as dM,RTe as dN,uNe as dO,q6e as dP,bNe as dQ,yNe as dR,fve as dS,B6e as dT,JMe as dU,s3 as dV,are as dW,fte as dX,SMe as dY,wMe as dZ,NAe as d_,H6e as da,Hae as db,gNe as dc,Q8e as dd,J8e as de,t8e as df,QMe as dg,tIe as dh,n8e as di,v8e as dj,e8e as dk,uMe as dl,lMe as dm,Fj as dn,XMe as dp,y8e as dq,m8e as dr,g8e as ds,r8e as dt,N8e as du,c8e as dv,FI as dw,u8e as dx,Cv as dy,j6e as dz,At as e,xMe as e0,_Me as e1,AMe as e2,aNe as e3,gMe as e4,TAe as e5,mMe as e6,vMe as e7,U6e as e8,IAe as e9,D6e as ea,eIe as eb,zMe as ec,MMe as ed,G8e as ee,ty as ef,fTe as eg,PMe as eh,UMe as ei,DMe as ej,f5e as ek,LMe as el,p5e as em,ng as en,Q6e as eo,tNe as ep,Qee as eq,Yre as er,X6e as es,Y6e as et,Z6e as eu,en as f,a3 as g,zd as h,jA as i,C as j,qMe as k,pMe as l,IMe as m,dMe as n,hq as o,F8e as p,aMe as q,E as r,qj as s,Pe as t,$s as u,F6e as v,xr as w,obe as x,U8e as y,j8e as z};