@remit/web-client-dist 0.0.402 → 0.0.404

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 (122) hide show
  1. package/assets/BriefPane-DEA1xakw.js +1 -0
  2. package/assets/{ErrorState-C332ruf-.js → ErrorState-Cxt-Ynu5.js} +1 -1
  3. package/assets/FlaggedPane-CWcWu6zq.js +1 -0
  4. package/assets/{FullCompose-C2k-JMrq.js → FullCompose-BvD2Hz0_.js} +1 -1
  5. package/assets/MailListHeader-CyuJdrqg.js +7 -0
  6. package/assets/{MailViewChrome-CDCDo6k8.js → MailViewChrome-DX2epV3R.js} +1 -1
  7. package/assets/MailboxPane-ClQKUPiW.js +1 -0
  8. package/assets/{NavMenuButton-C70EOG64.js → NavMenuButton-ChbGRtp5.js} +1 -1
  9. package/assets/{OnboardingWizard-Dmvq_UiW.js → OnboardingWizard-BU_mji11.js} +1 -1
  10. package/assets/{OutboxPane-CRrYo-Ah.js → OutboxPane-D3bNFTsB.js} +1 -1
  11. package/assets/_mailboxId-C7WRjGbl.js +1 -0
  12. package/assets/_messageId-B44y3Bc9.js +1 -0
  13. package/assets/_messageId-DxVRxybh.js +1 -0
  14. package/assets/_messageId-JUWsb_TU.js +1 -0
  15. package/assets/_outboxMessageId-CTWgaX1u.js +1 -0
  16. package/assets/_threadId-DiTlMLmK.js +1 -0
  17. package/assets/_threadId-bmbC9-QI.js +1 -0
  18. package/assets/_threadId-o-H-Jg2_.js +1 -0
  19. package/assets/{accounts-DKymMdYg.js → accounts-CXixIelX.js} +1 -1
  20. package/assets/{advanced-7gVrHHYQ.js → advanced-DMcFlw9k.js} +1 -1
  21. package/assets/{appearance-BMe1cgu9.js → appearance-CWI7d_AE.js} +1 -1
  22. package/assets/{attachment-file-8N0XrQKe.js → attachment-file-CC7sUq_3.js} +1 -1
  23. package/assets/{avatar--VQz8d_L.js → avatar-Ch-BluEg.js} +1 -1
  24. package/assets/{bottom-sheet-BvjDLGZa.js → bottom-sheet-rtNXU_QA.js} +1 -1
  25. package/assets/{brief-DRw-Bxe5.js → brief-BYabPV-y.js} +1 -1
  26. package/assets/brief-DgOZtpST.js +1 -0
  27. package/assets/{browser-ponyfill-BspIUGg5.js → browser-ponyfill-DU2Y7A0e.js} +1 -1
  28. package/assets/{bug-BRW8WWaz.js → bug-DE3TgWRx.js} +1 -1
  29. package/assets/{circle-check-BTFZ8lhq.js → circle-check-CCg9X8h3.js} +1 -1
  30. package/assets/{circle-check-big-CL1-ZB_O.js → circle-check-big-DL6yaJ7B.js} +1 -1
  31. package/assets/{circle-help-yrrwRTfu.js → circle-help-BMTpb2T4.js} +1 -1
  32. package/assets/{clock-C0yW1eee.js → clock-CRiDFg0e.js} +1 -1
  33. package/assets/compose._-_outboxMessageId_-95IeyaNp.js +1 -0
  34. package/assets/compose._-_outboxMessageId_-CB4LoT6K.js +1 -0
  35. package/assets/compose._-_outboxMessageId_-D4G2SovG.js +1 -0
  36. package/assets/compose._-_outboxMessageId_-D4m1_-nR.js +1 -0
  37. package/assets/{confirm-dialog-vx3llY3y.js → confirm-dialog-sc-zEWxj.js} +1 -1
  38. package/assets/{download-DnKAe7xV.js → download-B5nLiiRy.js} +1 -1
  39. package/assets/{filters-BZDRgbqS.js → filters-Fgd0dMg6.js} +1 -1
  40. package/assets/flagged-CT7GRBpL.js +1 -0
  41. package/assets/{flagged-CB_-eECE.js → flagged-DZIbRuYM.js} +1 -1
  42. package/assets/folders-DSIv1EdN.js +1 -0
  43. package/assets/format-23Av07Go.js +1 -0
  44. package/assets/{help-copy-sDsaUy4w.js → help-copy-BoyO2Xf8.js} +1 -1
  45. package/assets/index-52lciyqj.js +1 -0
  46. package/assets/index-B44y3Bc9.js +1 -0
  47. package/assets/{index-Bi4k0VjD.js → index-CQLHjDPJ.js} +6 -6
  48. package/assets/index-DG-9lbAY.js +1 -0
  49. package/assets/index-Ds3Dhe_m.js +1 -0
  50. package/assets/index-DuoENJdd.js +1 -0
  51. package/assets/index-JUWsb_TU.js +1 -0
  52. package/assets/{index-Bn4mOVkF.css → index-OWhz0EKb.css} +1 -1
  53. package/assets/index-U21Ntcgp.js +294 -0
  54. package/assets/index-WoxYtNwQ.js +1 -0
  55. package/assets/index-u48XjL7T.js +1 -0
  56. package/assets/{kbd-xKdnOGJZ.js → kbd-BW1x90_8.js} +1 -1
  57. package/assets/{labels-rPmbMwhf.js → labels-DtEvX-em.js} +1 -1
  58. package/assets/{mail-o1u4DLkr.js → mail-DP6MOTXv.js} +1 -1
  59. package/assets/{mail-CehhDpTR.js → mail-Dgdo_4jK.js} +1 -1
  60. package/assets/{menu-DwmzGbPW.js → menu-Bg40gsUW.js} +1 -1
  61. package/assets/{onboarding-CxRKGCoI.js → onboarding-Bzp0A5vU.js} +1 -1
  62. package/assets/outbox-DcgYlvD2.js +1 -0
  63. package/assets/{pencil-DlDFsTyP.js → pencil-DnuUvcLY.js} +1 -1
  64. package/assets/{rich-text-Bs3K2ckY.js → rich-text-Bgy85Rld.js} +1 -1
  65. package/assets/{rich-text-spellcheck-worker-provider-BxTYxkIb.js → rich-text-spellcheck-worker-provider-Bkw6t6cQ.js} +1 -1
  66. package/assets/{rotate-ccw-JyEVADG2.js → rotate-ccw-CAo4YTva.js} +1 -1
  67. package/assets/{row-actions-CujtZtFp.js → row-actions-Dt4hnGSO.js} +1 -1
  68. package/assets/{search-scope-BTnbXVTo.js → search-scope-BsXhL0sT.js} +1 -1
  69. package/assets/search-token-index-CS3Ahk2_.js +1 -0
  70. package/assets/{search-view-Duk4APqX.js → search-view-Cux0U-2s.js} +1 -1
  71. package/assets/{senders-DD9A8SSC.js → senders-DAq8Em3A.js} +1 -1
  72. package/assets/settings-D0vLL1bF.js +1 -0
  73. package/assets/{settings-screen-DQHIX7C-.js → settings-screen-CAsA00tn.js} +1 -1
  74. package/assets/{shield-check-DCsAIcLk.js → shield-check-A3vxhKls.js} +1 -1
  75. package/assets/{suggested-vips-zREyYZ2F.js → suggested-vips-CDSYSOei.js} +1 -1
  76. package/assets/{useDebouncedValue-CRl9MGSf.js → useDebouncedValue-mBr89eBP.js} +1 -1
  77. package/assets/{useFilters-DHXpeKMC.js → useFilters-DmbMApEr.js} +1 -1
  78. package/assets/{useLabels-BcSt40TB.js → useLabels-DiDFA7ER.js} +1 -1
  79. package/assets/{useMediaQuery-C90gO3CZ.js → useMediaQuery-1f-g53mH.js} +1 -1
  80. package/assets/{useMessageBodyContent-B-Ao8GWA.js → useMessageBodyContent-CK3UpsN8.js} +1 -1
  81. package/assets/{useRefreshControl-BAeVhAou.js → useRefreshControl-CYQW4IoX.js} +1 -1
  82. package/assets/{useSearchMirror-B7mwdkFd.js → useSearchMirror-Bnf2BrOc.js} +1 -1
  83. package/assets/{useSearchTokenContext-CKiYWkSJ.js → useSearchTokenContext-Drg7CMEN.js} +2 -2
  84. package/assets/useSemanticSearch-CZyDfsag.js +1 -0
  85. package/assets/{useSignature-BUA39T5e.js → useSignature-Bs9W_jAl.js} +1 -1
  86. package/index.html +2 -2
  87. package/package.json +1 -1
  88. package/assets/BriefPane-D1HAyJwj.js +0 -1
  89. package/assets/FlaggedPane-CZNq4iiw.js +0 -1
  90. package/assets/MailListHeader-BWwp1ceH.js +0 -7
  91. package/assets/MailboxPane-DNUgw9hU.js +0 -1
  92. package/assets/_mailboxId-B-sHGfoz.js +0 -1
  93. package/assets/_messageId-C1qKPamr.js +0 -1
  94. package/assets/_messageId-C25UV9LM.js +0 -1
  95. package/assets/_messageId-DeSdz87B.js +0 -1
  96. package/assets/_outboxMessageId-B94Fh1en.js +0 -1
  97. package/assets/_threadId-C7emibLe.js +0 -1
  98. package/assets/_threadId-CViHQCwA.js +0 -1
  99. package/assets/_threadId-aEW3plLl.js +0 -1
  100. package/assets/brief-Bx3Y9xQn.js +0 -1
  101. package/assets/compose._-_outboxMessageId_-Bc7fc59g.js +0 -1
  102. package/assets/compose._-_outboxMessageId_-DHLSYgG-.js +0 -1
  103. package/assets/compose._-_outboxMessageId_-DN5Mftwg.js +0 -1
  104. package/assets/compose._-_outboxMessageId_-StmhPRcC.js +0 -1
  105. package/assets/enums-B_igRgfI.js +0 -1
  106. package/assets/flagged-4DoWrHJ3.js +0 -1
  107. package/assets/folders-DLa_CcpT.js +0 -1
  108. package/assets/format-D7umvejg.js +0 -1
  109. package/assets/index-B61k9RLS.js +0 -294
  110. package/assets/index-BCZl14-3.js +0 -1
  111. package/assets/index-C1qKPamr.js +0 -1
  112. package/assets/index-D9OAW-hw.js +0 -1
  113. package/assets/index-DeSdz87B.js +0 -1
  114. package/assets/index-DlSdWGZB.js +0 -1
  115. package/assets/index-DsUtV_jS.js +0 -1
  116. package/assets/index-J1diOeib.js +0 -1
  117. package/assets/index-_RaWFdnD.js +0 -1
  118. package/assets/move-options-YWV9hlAS.js +0 -1
  119. package/assets/outbox-BYHZDJTa.js +0 -1
  120. package/assets/search-token-index-D2uoFCjs.js +0 -1
  121. package/assets/settings-CAeDAiZ1.js +0 -1
  122. package/assets/useSemanticSearch-_EOOLQQp.js +0 -1
@@ -0,0 +1,294 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mail-DP6MOTXv.js","assets/search-token-index-CS3Ahk2_.js","assets/useMessageBodyContent-CK3UpsN8.js","assets/useMediaQuery-1f-g53mH.js","assets/search-scope-BsXhL0sT.js","assets/pencil-DnuUvcLY.js","assets/search-view-Cux0U-2s.js","assets/FullCompose-BvD2Hz0_.js","assets/ErrorState-Cxt-Ynu5.js","assets/index-CQLHjDPJ.js","assets/useSignature-Bs9W_jAl.js","assets/account-form-helpers-DhckT_PN.js","assets/useDebouncedValue-mBr89eBP.js","assets/confirm-dialog-sc-zEWxj.js","assets/useRefreshControl-CYQW4IoX.js","assets/circle-check-big-DL6yaJ7B.js","assets/menu-Bg40gsUW.js","assets/bug-DE3TgWRx.js","assets/avatar-Ch-BluEg.js","assets/outbox-status-BlKn6P0x.js","assets/kbd-BW1x90_8.js","assets/onboarding-Bzp0A5vU.js","assets/OnboardingWizard-BU_mji11.js","assets/mail-Dgdo_4jK.js","assets/_mailboxId-C7WRjGbl.js","assets/MailboxPane-ClQKUPiW.js","assets/useSearchTokenContext-Drg7CMEN.js","assets/MailListHeader-CyuJdrqg.js","assets/attachment-file-CC7sUq_3.js","assets/format-23Av07Go.js","assets/download-B5nLiiRy.js","assets/shield-check-A3vxhKls.js","assets/useFilters-DmbMApEr.js","assets/clock-CRiDFg0e.js","assets/MailViewChrome-DX2epV3R.js","assets/NavMenuButton-ChbGRtp5.js","assets/useLabels-DiDFA7ER.js","assets/useSemanticSearch-CZyDfsag.js","assets/search-query-Cr_ZXBCp.js","assets/bottom-sheet-rtNXU_QA.js","assets/circle-help-BMTpb2T4.js","assets/circle-check-CCg9X8h3.js","assets/useSearchMirror-Bnf2BrOc.js","assets/brief-BYabPV-y.js","assets/brief-DgOZtpST.js","assets/BriefPane-DEA1xakw.js","assets/wizard-selection-B1bng5Jq.js","assets/flagged-DZIbRuYM.js","assets/flagged-CT7GRBpL.js","assets/FlaggedPane-CWcWu6zq.js","assets/outbox-DcgYlvD2.js","assets/OutboxPane-D3bNFTsB.js","assets/row-actions-Dt4hnGSO.js","assets/rotate-ccw-CAo4YTva.js","assets/accounts-CXixIelX.js","assets/settings-screen-CAsA00tn.js","assets/help-copy-BoyO2Xf8.js","assets/advanced-DMcFlw9k.js","assets/appearance-CWI7d_AE.js","assets/filters-Fgd0dMg6.js","assets/folders-DSIv1EdN.js","assets/labels-DtEvX-em.js","assets/senders-DAq8Em3A.js","assets/index-52lciyqj.js","assets/index-DG-9lbAY.js","assets/index-WoxYtNwQ.js","assets/index-Ds3Dhe_m.js","assets/index-u48XjL7T.js","assets/_messageId-DxVRxybh.js","assets/compose._-_outboxMessageId_-D4G2SovG.js","assets/index-B44y3Bc9.js","assets/_messageId-B44y3Bc9.js","assets/compose._-_outboxMessageId_-95IeyaNp.js","assets/index-JUWsb_TU.js","assets/_messageId-JUWsb_TU.js","assets/compose._-_outboxMessageId_-D4m1_-nR.js","assets/compose._-_outboxMessageId_-CB4LoT6K.js","assets/_outboxMessageId-CTWgaX1u.js"])))=>i.map(i=>d[i]);
2
+ function ML(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in t)){const s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.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 Zm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var xS={exports:{}},Of={};var r5;function RV(){if(r5)return Of;r5=1;var t=Symbol.for("react.transitional.element"),e=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:t,type:r,key:i,ref:a!==void 0?a:null,props:s}}return Of.Fragment=e,Of.jsx=n,Of.jsxs=n,Of}var a5;function IV(){return a5||(a5=1,xS.exports=RV()),xS.exports}var C=IV();const TV="Logging",OV="x-amz-user-agent",NV="NoHubcallbackProvidedException";var sa;(function(t){t.DEBUG="DEBUG",t.ERROR="ERROR",t.INFO="INFO",t.WARN="WARN",t.VERBOSE="VERBOSE",t.NONE="NONE"})(sa||(sa={}));const s5={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,NONE:6};class lr{constructor(e,n=sa.WARN){this.name=e,this.level=n,this._pluggables=[]}_padding(e){return e<10?"0"+e:""+e}_ts(){const e=new Date;return[this._padding(e.getMinutes()),this._padding(e.getSeconds())].join(":")+"."+e.getMilliseconds()}configure(e){return e?(this._config=e,this._config):this._config}_log(e,...n){let r=this.level;lr.LOG_LEVEL&&(r=lr.LOG_LEVEL),typeof window<"u"&&window.LOG_LEVEL&&(r=window.LOG_LEVEL);const a=s5[r];if(!(s5[e]>=a))return;let i=console.log.bind(console);e===sa.ERROR&&console.error&&(i=console.error.bind(console)),e===sa.WARN&&console.warn&&(i=console.warn.bind(console)),lr.BIND_ALL_LOG_LEVELS&&(e===sa.INFO&&console.info&&(i=console.info.bind(console)),e===sa.DEBUG&&console.debug&&(i=console.debug.bind(console)));const u=`[${e}] ${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(...e){this._log(sa.INFO,...e)}info(...e){this._log(sa.INFO,...e)}warn(...e){this._log(sa.WARN,...e)}error(...e){this._log(sa.ERROR,...e)}debug(...e){this._log(sa.DEBUG,...e)}verbose(...e){this._log(sa.VERBOSE,...e)}addPluggable(e){e&&e.getCategoryName()===TV&&(this._pluggables.push(e),e.configure(this._config))}listPluggables(){return this._pluggables}}lr.LOG_LEVEL=null;lr.BIND_ALL_LOG_LEVELS=!1;class qr extends Error{constructor({message:e,name:n,recoverySuggestion:r,underlyingError:a,metadata:s}){if(super(e),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=qr,Object.setPrototypeOf(this,qr.prototype)}}var zi;(function(t){t.NoEndpointId="NoEndpointId",t.PlatformNotSupported="PlatformNotSupported",t.Unknown="Unknown",t.NetworkError="NetworkError"})(zi||(zi={}));const V1=(t,e=qr)=>(n,r,a)=>{const{message:s,recoverySuggestion:i}=t[r];if(!n)throw new e({name:r,message:a?`${s} ${a}`:s,recoverySuggestion:i})},ks=typeof Symbol<"u"?Symbol("amplify_default"):"@@amplify_default",Nf=new lr("Hub");class PL{constructor(e){this.listeners=new Map,this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=e}_remove(e,n){const r=this.listeners.get(e);if(!r){Nf.warn(`No listeners for ${e}`);return}this.listeners.set(e,[...r.filter(({callback:a})=>a!==n)])}dispatch(e,n,r,a){typeof e=="string"&&this.protectedChannels.indexOf(e)>-1&&(a===ks||Nf.warn(`WARNING: ${e} is protected and dispatching on it can have unintended consequences`));const s={channel:e,payload:{...n},source:r,patternInfo:[]};try{this._toListeners(s)}catch(i){Nf.error(i)}}listen(e,n,r="noname"){let a;if(typeof n!="function")throw new qr({name:NV,message:"No callback supplied to Hub"});a=n;let s=this.listeners.get(e);return s||(s=[],this.listeners.set(e,s)),s.push({name:r,callback:a}),()=>{this._remove(e,a)}}_toListeners(e){const{channel:n,payload:r}=e,a=this.listeners.get(n);a&&a.forEach(s=>{Nf.debug(`Dispatching to ${n} with `,r);try{s.callback(e)}catch(i){Nf.error(i)}})}}const As=new PL("__default__"),P0=new PL("internal-hub"),F_=()=>{if(typeof window=="object"&&typeof window.crypto=="object")return window.crypto;if(typeof crypto=="object")return crypto;throw new qr({name:"MissingPolyfill",message:"Cannot resolve the `crypto` function from the environment."})},MV=()=>{if(typeof window<"u"&&typeof window.btoa=="function")return window.btoa;if(typeof btoa=="function")return btoa;throw new qr({name:"Base64EncoderError",message:"Cannot resolve the `btoa` function from the environment."})},PV=()=>{if(typeof window<"u"&&typeof window.atob=="function")return window.atob;if(typeof atob=="function")return atob;throw new qr({name:"Base64EncoderError",message:"Cannot resolve the `atob` function from the environment."})},$_={convert(t,e){let n=t;return e?.urlSafe&&(n=n.replace(/-/g,"+").replace(/_/g,"/")),PV()(n)}};var xs;(function(t){t.AuthTokenConfigException="AuthTokenConfigException",t.AuthUserPoolAndIdentityPoolException="AuthUserPoolAndIdentityPoolException",t.AuthUserPoolException="AuthUserPoolException",t.InvalidIdentityPoolIdException="InvalidIdentityPoolIdException",t.OAuthNotConfigureException="OAuthNotConfigureException"})(xs||(xs={}));const LV={[xs.AuthTokenConfigException]:{message:"Auth Token Provider not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app."},[xs.AuthUserPoolAndIdentityPoolException]:{message:"Auth UserPool or IdentityPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with UserPoolId and IdentityPoolId."},[xs.AuthUserPoolException]:{message:"Auth UserPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with userPoolId and userPoolClientId."},[xs.InvalidIdentityPoolIdException]:{message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."},[xs.OAuthNotConfigureException]:{message:"oauth param not configured.",recoverySuggestion:"Make sure to call Amplify.configure with oauth parameter in your app."}},B_=V1(LV);function ut(t){let e=!0;t?e=!!t.userPoolId&&!!t.userPoolClientId:e=!1,B_(e,xs.AuthUserPoolException)}function G1(t){const e=!!t?.loginWith?.oauth?.domain&&!!t?.loginWith?.oauth?.redirectSignOut&&!!t?.loginWith?.oauth?.redirectSignIn&&!!t?.loginWith?.oauth?.responseType;B_(e,xs.OAuthNotConfigureException)}function n0(t){const e=!!t?.identityPoolId;B_(e,xs.InvalidIdentityPoolIdException)}function So(t){const e=t.split(".");if(e.length!==3)throw new Error("Invalid token");try{const r=e[1].replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent($_.convert(r).split("").map(i=>`%${`00${i.charCodeAt(0).toString(16)}`.slice(-2)}`).join("")),s=JSON.parse(a);return{toString:()=>t,payload:s}}catch{throw new Error("Invalid token payload")}}const LL=t=>{const e=Reflect.ownKeys(t);for(const n of e){const r=t[n];(r&&typeof r=="object"||typeof r=="function")&&LL(r)}return Object.freeze(t)},DV=new lr("parseAWSExports"),UV={API_KEY:"apiKey",AWS_IAM:"iam",AMAZON_COGNITO_USER_POOLS:"userPool",OPENID_CONNECT:"oidc",NONE:"none",AWS_LAMBDA:"lambda",LAMBDA:"lambda"},jV=(t={})=>{if(!Object.prototype.hasOwnProperty.call(t,"aws_project_region"))throw new qr({name:"InvalidParameterException",message:"Invalid config parameter.",recoverySuggestion:"Ensure passing the config object imported from `amplifyconfiguration.json`."});const{aws_appsync_apiKey:e,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:E,aws_user_files_s3_bucket:A,aws_user_files_s3_bucket_region:k,aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing:I,aws_user_pools_id:N,aws_user_pools_web_client_id:O,geo:T,oauth:P,predictions:D,aws_cloud_logic_custom:q,Notifications:U,modelIntrospection:j}=t,$={};x&&($.Analytics={Pinpoint:{appId:x,region:E}});const{InAppMessaging:Z,Push:ne}=U??{};if(Z?.AWSPinpoint||ne?.AWSPinpoint){if(Z?.AWSPinpoint){const{appId:J,region:G}=Z.AWSPinpoint;$.Notifications={InAppMessaging:{Pinpoint:{appId:J,region:G}}}}if(ne?.AWSPinpoint){const{appId:J,region:G}=ne.AWSPinpoint;$.Notifications={...$.Notifications,PushNotification:{Pinpoint:{appId:J,region:G}}}}}if(Array.isArray(s)&&($.Interactions={LexV1:Object.fromEntries(s.map(J=>[J.name,J]))}),r){const J=UV[n];J||DV.debug(`Invalid authentication type ${n}. Falling back to IAM.`),$.API={GraphQL:{endpoint:r,apiKey:e,region:a,defaultAuthMode:J??"iam"}},j&&($.API.GraphQL.modelIntrospection=j)}const H=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,he=Array.from(new Set([...m??[],...g??[]])).reduce((J,G)=>({...J,[G.toLowerCase()]:{required:!0}}),{}),xe=S?.includes("EMAIL")??!1,z=S?.includes("PHONE_NUMBER")??!1;(i||N)&&($.Auth={Cognito:{identityPoolId:i,allowGuestAccess:w!=="enable",signUpVerificationMethod:u,userAttributes:he,userPoolClientId:O,userPoolId:N,mfa:H,passwordFormat:X,loginWith:{username:!(xe||z),email:xe,phone:z}}});const V=P?Object.keys(P).length>0:!1,K=y?y.length>0:!1;if($.Auth&&V&&($.Auth.Cognito.loginWith={...$.Auth.Cognito.loginWith,oauth:{...zV(P),...K&&{providers:FV(y)}}}),A&&($.Storage={S3:{bucket:A,region:k,dangerouslyConnectToHttpEndpointForTesting:I}}),T){const{amazon_location_service:J}=T;$.Geo={LocationService:{maps:J.maps,geofenceCollections:J.geofenceCollections,searchIndices:J.search_indices,region:J.region}}}if(q&&($.API={...$.API,REST:q.reduce((J,G)=>{const{name:ue,endpoint:oe,region:ce,service:be}=G;return{...J,[ue]:{endpoint:oe,...be?{service:be}:void 0,...ce?{region:ce}:void 0}}},{})}),D){const{VoiceId:J}=D?.convert?.speechGenerator?.defaults??{};$.Predictions=J?{...D,convert:{...D.convert,speechGenerator:{...D.convert.speechGenerator,defaults:{voiceId:J}}}}:D}return $},o5=t=>t?.split(",")??[],zV=({domain:t,scope:e,redirectSignIn:n,redirectSignOut:r,responseType:a})=>({domain:t,scopes:e,redirectSignIn:o5(n),redirectSignOut:o5(r),responseType:a}),FV=t=>t.map(e=>{const n=e.toLowerCase();return n.charAt(0).toUpperCase()+n.slice(1)}),DL=Symbol("oauth-listener"),ar=[];for(let t=0;t<256;++t)ar.push((t+256).toString(16).slice(1));function $V(t,e=0){return(ar[t[e+0]]+ar[t[e+1]]+ar[t[e+2]]+ar[t[e+3]]+"-"+ar[t[e+4]]+ar[t[e+5]]+"-"+ar[t[e+6]]+ar[t[e+7]]+"-"+ar[t[e+8]]+ar[t[e+9]]+"-"+ar[t[e+10]]+ar[t[e+11]]+ar[t[e+12]]+ar[t[e+13]]+ar[t[e+14]]+ar[t[e+15]]).toLowerCase()}let CS;const BV=new Uint8Array(16);function HV(){if(!CS){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");CS=crypto.getRandomValues.bind(crypto)}return CS(BV)}const qV=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),i5={randomUUID:qV};function WV(t,e,n){if(i5.randomUUID&&!e&&!t)return i5.randomUUID();t=t||{};const r=t.random??t.rng?.()??HV();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,e){if(n=n||0,n<0||n+16>e.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let a=0;a<16;++a)e[n+a]=r[a];return e}return $V(r)}function VV(t){const{version:e}=t;return e?e.startsWith("1"):!1}function GV(t){if(!t)return;const{bucket_name:e,aws_region:n,buckets:r}=t;return{S3:{bucket:e,region:n,buckets:r&&aG(r)}}}function KV(t){if(!t)return;const{user_pool_id:e,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}=t,y={Cognito:{userPoolId:e,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:rG(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:nG(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 YV(t){if(!t?.amazon_pinpoint)return;const{amazon_pinpoint:e}=t;return{Pinpoint:{appId:e.app_id,region:e.aws_region}}}function ZV(t){if(!t)return;const{aws_region:e,geofence_collections:n,maps:r,search_indices:a}=t;return{LocationService:{region:e,searchIndices:a,geofenceCollections:n,maps:r}}}function XV(t){if(!t)return;const{aws_region:e,default_authorization_type:n,url:r,api_key:a,model_introspection:s}=t;return{GraphQL:{endpoint:r,defaultAuthMode:UL(n),region:e,apiKey:a,modelIntrospection:s}}}function QV(t){if(!t?.events)return;const{url:e,aws_region:n,api_key:r,default_authorization_type:a}=t.events;return{Events:{endpoint:e,defaultAuthMode:UL(a),region:n,apiKey:r}}}function JV(t){if(!t)return;const{aws_region:e,channels:n,amazon_pinpoint_app_id:r}=t,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:e}}),s&&(i.PushNotification={Pinpoint:{appId:r,region:e}}),i}function eG(t){const e={};if(t.storage&&(e.Storage=GV(t.storage)),t.auth&&(e.Auth=KV(t.auth)),t.analytics&&(e.Analytics=YV(t.analytics)),t.geo&&(e.Geo=ZV(t.geo)),t.data&&(e.API=XV(t.data)),t.custom){const n=QV(t.custom);n&&"Events"in n&&(e.API={...e.API,...n})}return t.notifications&&(e.Notifications=JV(t.notifications)),e}const tG={AMAZON_COGNITO_USER_POOLS:"userPool",API_KEY:"apiKey",AWS_IAM:"iam",AWS_LAMBDA:"lambda",OPENID_CONNECT:"oidc"};function UL(t){return tG[t]}const l5={GOOGLE:"Google",LOGIN_WITH_AMAZON:"Amazon",FACEBOOK:"Facebook",SIGN_IN_WITH_APPLE:"Apple"};function nG(t=[]){return t.reduce((e,n)=>(l5[n]!==void 0&&e.push(l5[n]),e),[])}function rG(t){return t==="OPTIONAL"?"optional":t==="REQUIRED"?"on":"off"}function aG(t){const e={};return t.forEach(({name:n,bucket_name:r,aws_region:a,paths:s})=>{if(n in e)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;e[n]={bucketName:r,region:a,paths:i}}),e}const jL=t=>Object.keys(t).some(e=>e.startsWith("aws_"))?jV(t):VV(t)?eG(t):t;var u5=function(){return u5=Object.assign||function(e){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)&&(e[s]=n[s])}return e},u5.apply(this,arguments)};function V4e(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function sG(t,e,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(t,e||[])).next())})}function oG(t,e){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=e.call(t,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 G4e(t,e,n){if(n||arguments.length===2)for(var r=0,a=e.length,s;r<a;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}var ka=64,iG=32,lG=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]),uG=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],cG=Math.pow(2,53)-1,r0=(function(){function t(){this.state=Int32Array.from(uG),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return t.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=e.byteLength;if(this.bytesHashed+=r,this.bytesHashed*8>cG)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[n++],r--,this.bufferLength===ka&&(this.hashBuffer(),this.bufferLength=0)},t.prototype.digest=function(){if(!this.finished){var e=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%ka>=ka-8){for(var a=this.bufferLength;a<ka;a++)n.setUint8(a,0);this.hashBuffer(),this.bufferLength=0}for(var a=this.bufferLength;a<ka-8;a++)n.setUint8(a,0);n.setUint32(ka-8,Math.floor(e/4294967296),!0),n.setUint32(ka-4,e),this.hashBuffer(),this.finished=!0}for(var s=new Uint8Array(iG),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},t.prototype.hashBuffer=function(){for(var e=this,n=e.buffer,r=e.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<ka;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+(lG[g]+this.temp[g]|0)|0)|0,E=((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+E|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},t})();const dG=t=>new TextEncoder().encode(t);var fG=typeof Buffer<"u"&&Buffer.from?function(t){return Buffer.from(t,"utf8")}:dG;function zL(t){return t instanceof Uint8Array?t:typeof t=="string"?fG(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}function hG(t){return typeof t=="string"?t.length===0:t.byteLength===0}var Gl=(function(){function t(e){this.secret=e,this.hash=new r0,this.reset()}return t.prototype.update=function(e){if(!(hG(e)||this.error))try{this.hash.update(zL(e))}catch(n){this.error=n}},t.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()},t.prototype.digest=function(){return sG(this,void 0,void 0,function(){return oG(this,function(e){return[2,this.digestSync()]})})},t.prototype.reset=function(){if(this.hash=new r0,this.secret){this.outer=new r0;var e=pG(this.secret),n=new Uint8Array(ka);n.set(e);for(var r=0;r<ka;r++)e[r]^=54,n[r]^=92;this.hash.update(e),this.outer.update(n);for(var r=0;r<e.byteLength;r++)e[r]=0}},t})();function pG(t){var e=zL(t);if(e.byteLength>ka){var n=new r0;n.update(e),e=n.digest()}var r=new Uint8Array(ka);return r.set(e),r}for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`)}var In;(function(t){t.WebUnknown="0",t.React="1",t.NextJs="2",t.Angular="3",t.VueJs="4",t.Nuxt="5",t.Svelte="6",t.ServerSideUnknown="100",t.ReactSSR="101",t.NextJsSSR="102",t.AngularSSR="103",t.VueJsSSR="104",t.NuxtSSR="105",t.SvelteSSR="106",t.ReactNative="201",t.Expo="202"})(In||(In={}));var Oa;(function(t){t.AI="ai",t.API="api",t.Auth="auth",t.Analytics="analytics",t.DataStore="datastore",t.Geo="geo",t.InAppMessaging="inappmessaging",t.Interactions="interactions",t.Predictions="predictions",t.PubSub="pubsub",t.PushNotification="pushnotification",t.Storage="storage"})(Oa||(Oa={}));var lo;(function(t){t.CreateConversation="1",t.GetConversation="2",t.ListConversations="3",t.DeleteConversation="4",t.SendMessage="5",t.ListMessages="6",t.OnMessage="7",t.Generation="8",t.UpdateConversation="9"})(lo||(lo={}));var c5;(function(t){t.Record="1",t.IdentifyUser="2"})(c5||(c5={}));var d5;(function(t){t.GraphQl="1",t.Get="2",t.Post="3",t.Put="4",t.Patch="5",t.Del="6",t.Head="7"})(d5||(d5={}));var Ye;(function(t){t.SignUp="1",t.ConfirmSignUp="2",t.ResendSignUpCode="3",t.SignIn="4",t.FetchMFAPreference="6",t.UpdateMFAPreference="7",t.SetUpTOTP="10",t.VerifyTOTPSetup="11",t.ConfirmSignIn="12",t.DeleteUserAttributes="15",t.DeleteUser="16",t.UpdateUserAttributes="17",t.FetchUserAttributes="18",t.ConfirmUserAttribute="22",t.SignOut="26",t.UpdatePassword="27",t.ResetPassword="28",t.ConfirmResetPassword="29",t.FederatedSignIn="30",t.RememberDevice="32",t.ForgetDevice="33",t.FetchDevices="34",t.SendUserAttributeVerificationCode="35",t.SignInWithRedirect="36",t.StartWebAuthnRegistration="37",t.CompleteWebAuthnRegistration="38",t.ListWebAuthnCredentials="39",t.DeleteWebAuthnCredential="40"})(Ye||(Ye={}));var f5;(function(t){t.Subscribe="1",t.GraphQl="2"})(f5||(f5={}));var gh;(function(t){t.SearchByText="0",t.SearchByCoordinates="1",t.SearchForSuggestions="2",t.SearchByPlaceId="3",t.SaveGeofences="4",t.GetGeofence="5",t.ListGeofences="6",t.DeleteGeofences="7"})(gh||(gh={}));var CE;(function(t){t.SyncMessages="1",t.IdentifyUser="2",t.NotifyMessageInteraction="3"})(CE||(CE={}));var h5;(function(t){t.None="0"})(h5||(h5={}));var p5;(function(t){t.Convert="1",t.Identify="2",t.Interpret="3"})(p5||(p5={}));var m5;(function(t){t.Subscribe="1"})(m5||(m5={}));var g5;(function(t){t.InitializePushNotifications="1",t.IdentifyUser="2"})(g5||(g5={}));var Wa;(function(t){t.UploadData="1",t.DownloadData="2",t.List="3",t.Copy="4",t.Remove="5",t.GetProperties="6",t.GetUrl="7",t.GetDataAccess="8",t.ListCallerAccessGrants="9"})(Wa||(Wa={}));const mG="6.18.0",K1=()=>typeof global<"u",bd=()=>typeof window<"u",FL=()=>typeof document<"u",H_=()=>typeof process<"u",Nh=(t,e)=>!!Object.keys(t).find(n=>n.startsWith(e));var v5={};function gG(){const t=r=>r.startsWith("_react")||r.startsWith("__react"),e=r=>Object.keys(r).find(t),n=()=>Array.from(document.querySelectorAll("[id]"));return FL()&&n().some(e)}function vG(){return H_()&&typeof v5<"u"&&!!Object.keys(v5).find(t=>t.includes("react"))}function yG(){return bd()&&Nh(window,"__VUE")}function bG(){return K1()&&Nh(global,"__VUE")}var y5={};function SG(){return bd()&&Nh(window,"__SVELTE")}function wG(){return H_()&&typeof y5<"u"&&!!Object.keys(y5).find(t=>t.includes("svelte"))}function xG(){return bd()&&window.next&&typeof window.next=="object"}function CG(){return K1()&&(Nh(global,"__next")||Nh(global,"__NEXT"))}function EG(){return bd()&&(window.__NUXT__!==void 0||window.$nuxt!==void 0)}function _G(){return K1()&&typeof global.__NUXT_PATHS__<"u"}var b5={};function kG(){const t=!!(FL()&&document.querySelector("[ng-version]")),e=!!(bd()&&typeof window.ng<"u");return t||e}function AG(){return H_()&&typeof b5=="object"&&b5.npm_lifecycle_script?.startsWith("ng ")||!1}function RG(){return typeof navigator<"u"&&typeof navigator.product<"u"&&navigator.product==="ReactNative"}function IG(){return K1()&&typeof global.expo<"u"}function TG(){return bd()}const OG=[{platform:In.Expo,detectionMethod:IG},{platform:In.ReactNative,detectionMethod:RG},{platform:In.NextJs,detectionMethod:xG},{platform:In.Nuxt,detectionMethod:EG},{platform:In.Angular,detectionMethod:kG},{platform:In.React,detectionMethod:gG},{platform:In.VueJs,detectionMethod:yG},{platform:In.Svelte,detectionMethod:SG},{platform:In.WebUnknown,detectionMethod:TG},{platform:In.NextJsSSR,detectionMethod:CG},{platform:In.NuxtSSR,detectionMethod:_G},{platform:In.ReactSSR,detectionMethod:vG},{platform:In.VueJsSSR,detectionMethod:bG},{platform:In.AngularSSR,detectionMethod:AG},{platform:In.SvelteSSR,detectionMethod:wG}];function NG(){return OG.find(t=>t.detectionMethod())?.platform||In.ServerSideUnknown}let vh;const ES=[];let EE=!1;const MG=10,PG=10,LG=1e3,$L=()=>{if(!vh){if(vh=NG(),EE)for(;ES.length;)ES.pop()?.();else ES.forEach(t=>{t()});S5(In.ServerSideUnknown,MG),S5(In.WebUnknown,PG)}return vh};function DG(){vh=void 0}function S5(t,e){vh===t&&!EE&&setTimeout(()=>{DG(),EE=!0,setTimeout($L,LG)},e)}const Si={},no=t=>{Si[t.category]=t.apis.reduce((r,a)=>({...r,[a]:{refCount:r[a]?.refCount?r[a].refCount+1:1,additionalDetails:t.additionalDetails}}),Si[t.category]??{});let e=!1;return()=>{e||(e=!0,t.apis.forEach(r=>{const a=Si[t.category][r].refCount;a>1?Si[t.category][r].refCount=a-1:(delete Si[t.category][r],Object.keys(Si[t.category]).length||delete Si[t.category])}))}},UG=(t,e)=>Si[t]?.[e]?.additionalDetails,jG="aws-amplify",zG=t=>t.replace(/\+.*/,""),FG=({category:t,action:e}={})=>{const n=[[jG,zG(mG)]];if(t&&n.push([t,e]),n.push(["framework",$L()]),t&&e){const r=UG(t,e);r&&r.forEach(a=>{n.push(a)})}return n},Y1=t=>FG(t).map(([r,a])=>r&&a?`${r}/${a}`:r).join(" "),Z1=()=>typeof window<"u"&&typeof window.document<"u",w5=new lr("Auth");class $G{configure(e,n){this.authConfig=e,this.authOptions=n,e&&e.Cognito?.userPoolEndpoint&&w5.warn(x5("Amazon Cognito User Pool")),e&&e.Cognito?.identityPoolEndpoint&&w5.warn(x5("Amazon Cognito Identity Pool"))}async fetchAuthSession(e={}){let n,r;const a=await this.getTokens(e);return a?(r=a.accessToken?.payload?.sub,n=await this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,tokens:a,authenticated:!0,forceRefresh:e.forceRefresh})):n=await this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,authenticated:!1,forceRefresh:e.forceRefresh}),{tokens:a,credentials:n?.credentials,identityId:n?.identityId,userSub:r}}async clearCredentials(){await this.authOptions?.credentialsProvider?.clearCredentialsAndIdentityId()}async getTokens(e){return await this.authOptions?.tokenProvider?.getTokens(e)??void 0}}const x5=t=>`You are using a custom Amazon ${t} endpoint, ensure the endpoint is correct.`;class BG{constructor(){this.oAuthListener=void 0,this.isConfigured=!1,this.resourcesConfig={},this.libraryOptions={},this.Auth=new $G}configure(e,n){const r=jL(e);this.resourcesConfig=r,n&&(this.libraryOptions=n),this.resourcesConfig=LL(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."),As.dispatch("core",{event:"configure",data:this.resourcesConfig},"Configure",ks),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}[DL](e){this.resourcesConfig.Auth?.Cognito.loginWith?.oauth?e(this.resourcesConfig.Auth?.Cognito):this.oAuthListener=e}notifyOAuthListener(){!this.resourcesConfig.Auth?.Cognito.loginWith?.oauth||!this.oAuthListener||(this.oAuthListener(this.resourcesConfig.Auth?.Cognito),this.oAuthListener=void 0)}}const Kt=new BG,BL=(t,e)=>t.Auth.fetchAuthSession(e),X1=t=>BL(Kt,t);function HL(){return Kt.Auth.clearCredentials()}const Q1=t=>{const{headers:e,statusCode:n}=t;return{...HG(t)?t.$metadata:{},httpStatusCode:n,requestId:e["x-amzn-requestid"]??e["x-amzn-request-id"]??e["x-amz-request-id"],extendedRequestId:e["x-amz-id-2"],cfId:e["x-amz-cf-id"]}},HG=t=>typeof t?.$metadata=="object",Sd=async t=>{if(!t||t.statusCode<300)return;const e=await mp(t),r=(i=>{const[u]=i.toString().split(/[,:]+/);return u.includes("#")?u.split("#")[1]:u})(t.headers["x-amzn-errortype"]??e.code??e.__type??"UnknownError"),a=e.message??e.Message??"Unknown error",s=new Error(a);return Object.assign(s,{name:r,$metadata:Q1(t)})},mp=async t=>{if(!t.body)throw new Error("Missing response payload");const e=await t.body.json();return Object.assign(e,{$metadata:Q1(t)})},Mn=(t,e,n,r)=>async(a,s)=>{const i={...r,...a},u=await i.endpointResolver(i,s),c=await e(s,u),f=await t(c,{...i});return n(f)},qG=300*1e3;function WG(t=qG){return r=>{const a=2**r*100+100*Math.random();return a>t?!1:a}}const qL=3,C5="amz-sdk-invocation-id",VG="amz-sdk-request",E5=300*1e3,WL=t=>{const n=WG(E5)(t);return n===!1?E5:n},GG=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadRequestException"],KG=t=>!!t&&GG.includes(t),VL=t=>async(e,n)=>{const r=n??await t(e)??void 0,a=r?.code||r?.name,s=e?.statusCode;return{retryable:QG(n)||XG(s,a)||KG(a)||JG(s,a)}},YG=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException"],ZG=["TimeoutError","RequestTimeout","RequestTimeoutException"],XG=(t,e)=>t===429||!!e&&YG.includes(e),QG=t=>[zi.NetworkError,"ERR_NETWORK"].includes(t?.name),JG=(t,e)=>!!t&&[500,502,503,504].includes(t)||!!e&&ZG.includes(e),GL="cognito-identity",KL={service:GL,retryDecider:VL(Sd),computeDelay:WL,cache:"no-store"},eK=({maxAttempts:t=qL,retryDecider:e,computeDelay:n,abortSignal:r})=>{if(t<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 _5(h,f),h;throw _5(c,f),c};for(;!r?.aborted&&f<t;){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 e(h,c,s);if(y){if(s.isCredentialsExpired=!!g,!r?.aborted&&f<t){const S=n(f);await tK(S,r)}continue}else return m()}if(r?.aborted)throw new Error("Request aborted.");return m()}},tK=(t,e)=>{if(e?.aborted)return Promise.resolve();let n,r;const a=new Promise(s=>{r=s,n=setTimeout(s,t)});return e?.addEventListener("abort",function s(i){clearTimeout(n),e?.removeEventListener("abort",s),r()}),a},_5=(t,e)=>{Object.prototype.toString.call(t)==="[object Object]"&&(t.$metadata={...t.$metadata??{},attempts:e})},nK=WV,rK=()=>t=>async function(n){return n.headers[C5]||(n.headers[C5]=nK()),t(n)},aK=({maxAttempts:t=qL})=>(e,n)=>async function(a){const s=n.attemptsCount??0;return a.headers[VG]=`attempt=${s+1}; max=${t}`,e(a)},sK=({userAgentHeader:t="x-amz-user-agent",userAgentValue:e=""})=>n=>async function(a){if(e.trim().length===0)return await n(a);{const s=t.toLowerCase();return a.headers[s]=a.headers[s]?`${a.headers[s]} ${e}`:e,await n(a)}},q_=(t,e)=>(n,r)=>{const a={};let s=i=>t(i,r);for(let i=e.length-1;i>=0;i--){const u=e[i];s=u(r)(s,a)}return s(n)},_S=t=>{let e;return()=>(e||(e=t()),e)},oK=t=>!["HEAD","GET"].includes(t.toUpperCase()),iK=async({url:t,method:e,headers:n,body:r},{abortSignal:a,cache:s,withCrossDomainCredentials:i})=>{let u;try{u=await fetch(t,{method:e,headers:n,body:oK(e)?r:void 0,signal:a,cache:s,credentials:i?"include":"same-origin"})}catch(m){throw m instanceof TypeError?new qr({name:zi.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:_S(()=>u.text()),blob:_S(()=>u.blob()),json:_S(()=>u.json())});return{...f,body:h}},YL=q_(iK,[sK,rK,eK,aK]),lK=()=>t=>async function(n){return n.headers["cache-control"]="no-store",t(n)},ZL=q_(YL,[lK]),XL=t=>(e,n)=>{const r=uK(t),a=JSON.stringify(e);return cK(n,r,a)},uK=t=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${t}`}),cK=({url:t},e,n)=>({headers:e,url:t,body:n,method:"POST"}),k5=t=>Mn(ZL,XL("GetCredentialsForIdentity"),dK,{...KL,...t,userAgentValue:Y1()}),dK=async t=>{if(t.statusCode>=300)throw await Sd(t);const e=await mp(t);return{IdentityId:e.IdentityId,Credentials:fK(e.Credentials),$metadata:Q1(t)}},fK=({Expiration:t,...e}={})=>({...e,Expiration:t&&new Date(t*1e3)}),hK=t=>Mn(ZL,XL("GetId"),pK,{...KL,...t,userAgentValue:Y1()}),pK=async t=>{if(t.statusCode>=300)throw await Sd(t);return{IdentityId:(await mp(t)).IdentityId,$metadata:Q1(t)}},QL={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},mK={partitions:[QL,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},JL=t=>{const{partitions:e}=mK;for(const{regions:n,outputs:r,regionRegex:a}of e){const s=new RegExp(a);if(n.includes(t)||s.test(t))return r.dnsSuffix}return QL.outputs.dnsSuffix},Zi=URL,gK=({region:t})=>({url:new Zi(`https://${GL}.${t}.${JL(t)}`)});class nh extends qr{constructor(){super({name:zi.PlatformNotSupported,message:"Function not supported on current platform"})}}class eD{constructor(e){this.storage=e}async setItem(e,n){if(!this.storage)throw new nh;this.storage.setItem(e,n)}async getItem(e){if(!this.storage)throw new nh;return this.storage.getItem(e)}async removeItem(e){if(!this.storage)throw new nh;this.storage.removeItem(e)}async clear(){if(!this.storage)throw new nh;this.storage.clear()}}class tD{constructor(){this.storage=new Map}get length(){return this.storage.size}key(e){return e>this.length-1?null:Array.from(this.storage.keys())[e]}setItem(e,n){this.storage.set(e,n)}getItem(e){return this.storage.get(e)??null}removeItem(e){this.storage.delete(e)}clear(){this.storage.clear()}}const nD=new lr("CoreStorageUtils"),vK=()=>{try{if(typeof window<"u"&&window.localStorage)return window.localStorage}catch{nD.info("localStorage not found. InMemoryStorage is used as a fallback.")}return new tD},rD=()=>{try{if(typeof window<"u"&&window.sessionStorage)return window.sessionStorage.getItem("test"),window.sessionStorage;throw new Error("sessionStorage is not defined")}catch{return nD.info("sessionStorage not found. InMemoryStorage is used as a fallback."),new tD}};class yK extends eD{constructor(){super(vK())}}class bK extends eD{constructor(){super(rD())}}class SK{constructor(e){this._storage=e}get storage(){if(!this._storage)throw new nh;return this._storage}setItem(e,n){this.storage.setItem(e,n)}getItem(e){return this.storage.getItem(e)}removeItem(e){this.storage.removeItem(e)}clear(){this.storage.clear()}}class wK extends SK{constructor(){super(rD())}}function Xm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)r!=="__proto__"&&(t[r]=n[r])}return t}var xK={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function _E(t,e){function n(a,s,i){if(!(typeof document>"u")){i=Xm({},e,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+"="+t.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]=t.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,"",Xm({},s,{expires:-1}))},withAttributes:function(a){return _E(this.converter,Xm({},this.attributes,a))},withConverter:function(a){return _E(Xm({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var Qm=_E(xK,{path:"/"});class CK{constructor(e={}){const{path:n,domain:r,expires:a,sameSite:s,secure:i}=e;if(this.domain=r,this.path=n||"/",this.expires=Object.prototype.hasOwnProperty.call(e,"expires")?a:365,this.secure=Object.prototype.hasOwnProperty.call(e,"secure")?i:!0,Object.prototype.hasOwnProperty.call(e,"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(e,n){Qm.set(e,n,this.getData())}async getItem(e){return Qm.get(e)??null}async removeItem(e){Qm.remove(e,this.getData())}async clear(){const e=Qm.get(),n=Object.keys(e).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 gp=new yK;new bK;const mo=new wK,EK=new lr("I18n");let _K=class{constructor(){this._options=null,this._lang=null,this._dict={}}setDefaultLanguage(){!this._lang&&typeof window<"u"&&window&&window.navigator&&(this._lang=window.navigator.language),EK.debug(this._lang)}setLanguage(e){this._lang=e}get(e,n=void 0){if(this.setDefaultLanguage(),!this._lang)return typeof n<"u"?n:e;const r=this._lang;let a=this.getByLanguage(e,r);return a||(r.indexOf("-")>0&&(a=this.getByLanguage(e,r.split("-")[0])),a)?a:typeof n<"u"?n:e}getByLanguage(e,n,r=null){if(!n)return r;const a=this._dict[n];return a?a[e]:r}putVocabulariesForLanguage(e,n){let r=this._dict[e];r||(r=this._dict[e]={}),this._dict[e]={...r,...n}}putVocabularies(e){Object.keys(e).forEach(n=>{this.putVocabulariesForLanguage(n,e[n])})}};var Il;(function(t){t.NotConfigured="NotConfigured"})(Il||(Il={}));const kK={[Il.NotConfigured]:{message:"i18n is not configured."}},Jm=V1(kK),A5=new lr("I18n");let eg={language:null},Fa=null,aD=class kl{static configure(e){return A5.debug("configure I18n"),e&&(eg=Object.assign({},eg,e.I18n||e),kl.createInstance()),eg}static getModuleName(){return"I18n"}static createInstance(){A5.debug("create I18n instance"),!Fa&&(Fa=new _K)}static setLanguage(e){kl.checkConfig(),Jm(!!Fa,Il.NotConfigured),Fa.setLanguage(e)}static get(e,n){return kl.checkConfig(),Jm(!!Fa,Il.NotConfigured),Fa.get(e,n)}static putVocabulariesForLanguage(e,n){kl.checkConfig(),Jm(!!Fa,Il.NotConfigured),Fa.putVocabulariesForLanguage(e,n)}static putVocabularies(e){kl.checkConfig(),Jm(!!Fa,Il.NotConfigured),Fa.putVocabularies(e)}static checkConfig(){return Fa||kl.createInstance(),!0}};aD.createInstance();const AK=t=>{const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],r=new Uint8Array(t);F_().getRandomValues(r);for(const a of r)n.push(e[a%e.length]);return n.join("")};function RK(t){return(t.match(/.{2}/g)||[]).map(n=>String.fromCharCode(parseInt(n,16))).join("")}function IK(t){return t.split("").map(e=>e.charCodeAt(0).toString(16).padStart(2,"0")).join("")}const TK=t=>{let e;return async(...n)=>e||(e=new Promise((r,a)=>{t(...n).then(s=>{r(s)}).catch(s=>{a(s)}).finally(()=>{e=void 0})}),e)};function R5({expiresAt:t,clockDrift:e,tolerance:n=5e3}){return Date.now()+e+n>t}const OK=async()=>{const{userAgentData:t}=navigator;if(!t)return navigator.userAgent;const{platform:e="",platformVersion:n="",model:r="",architecture:a="",fullVersionList:s=[]}=await t.getHighEntropyValues(["platform","platformVersion","architecture","model","fullVersionList"]),i=s.map(c=>`${c.brand}/${c.version}`).join(";");return[e,n,a,r,e,i].filter(c=>c).join(" ")||navigator.userAgent};function NK(t){return Array.from(t,e=>String.fromCodePoint(e)).join("")}const Xc={convert(t,e={urlSafe:!1,skipPadding:!1}){const n=typeof t=="string"?t:NK(t);let r=MV()(n);return e.urlSafe&&(r=r.replace(/\+/g,"-").replace(/\//g,"_")),e.skipPadding&&(r=r.replace(/=/g,"")),r}};function MK(){return F_().getRandomValues(new Uint32Array(1))[0]}function PK(t){const{words:e}=t,{sigBytes:n}=t,r=[];for(let a=0;a<n;a++){const s=e[a>>>2]>>>24-a%4*8&255;r.push((s>>>4).toString(16)),r.push((s&15).toString(16))}return r.join("")}class W_{constructor(e,n){this.words=[];let r=e;r=this.words=r||[],n!==void 0?this.sigBytes=n:this.sigBytes=r.length*4}random(e){const n=[];for(let r=0;r<e;r+=4)n.push(MK());return new W_(n,e)}toString(){return PK(this)}}var Ke;(function(t){t.EmptySignInUsername="EmptySignInUsername",t.EmptySignInPassword="EmptySignInPassword",t.CustomAuthSignInPassword="CustomAuthSignInPassword",t.EmptySignUpUsername="EmptySignUpUsername",t.EmptySignUpPassword="EmptySignUpPassword",t.EmptyConfirmSignUpUsername="EmptyConfirmSignUpUsername",t.EmptyConfirmSignUpCode="EmptyConfirmSignUpCode",t.EmptyResendSignUpCodeUsername="EmptyresendSignUpCodeUsername",t.EmptyChallengeResponse="EmptyChallengeResponse",t.EmptyConfirmResetPasswordUsername="EmptyConfirmResetPasswordUsername",t.EmptyConfirmResetPasswordNewPassword="EmptyConfirmResetPasswordNewPassword",t.EmptyConfirmResetPasswordConfirmationCode="EmptyConfirmResetPasswordConfirmationCode",t.EmptyResetPasswordUsername="EmptyResetPasswordUsername",t.EmptyVerifyTOTPSetupCode="EmptyVerifyTOTPSetupCode",t.EmptyConfirmUserAttributeCode="EmptyConfirmUserAttributeCode",t.IncorrectMFAMethod="IncorrectMFAMethod",t.EmptyUpdatePassword="EmptyUpdatePassword",t.InvalidPreferredChallenge="InvalidPreferredChallenge"})(Ke||(Ke={}));const sD={[Ke.EmptyChallengeResponse]:{message:"challengeResponse is required to confirmSignIn"},[Ke.EmptyConfirmResetPasswordUsername]:{message:"username is required to confirmResetPassword"},[Ke.EmptyConfirmSignUpCode]:{message:"code is required to confirmSignUp"},[Ke.EmptyConfirmSignUpUsername]:{message:"username is required to confirmSignUp"},[Ke.EmptyConfirmResetPasswordConfirmationCode]:{message:"confirmationCode is required to confirmResetPassword"},[Ke.EmptyConfirmResetPasswordNewPassword]:{message:"newPassword is required to confirmResetPassword"},[Ke.EmptyResendSignUpCodeUsername]:{message:"username is required to confirmSignUp"},[Ke.EmptyResetPasswordUsername]:{message:"username is required to resetPassword"},[Ke.EmptySignInPassword]:{message:"password is required to signIn"},[Ke.EmptySignInUsername]:{message:"username is required to signIn"},[Ke.EmptySignUpPassword]:{message:"password is required to signUp"},[Ke.EmptySignUpUsername]:{message:"username is required to signUp"},[Ke.CustomAuthSignInPassword]:{message:"A password is not needed when signing in with CUSTOM_WITHOUT_SRP",recoverySuggestion:"Do not include a password in your signIn call."},[Ke.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"},[Ke.EmptyVerifyTOTPSetupCode]:{message:"code is required to verifyTotpSetup"},[Ke.EmptyUpdatePassword]:{message:"oldPassword and newPassword are required to changePassword"},[Ke.EmptyConfirmUserAttributeCode]:{message:"confirmation code is required to confirmUserAttribute"},[Ke.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 Kn;(function(t){t.DEFAULT_MSG="Authentication Error",t.EMPTY_EMAIL="Email cannot be empty",t.EMPTY_PHONE="Phone number cannot be empty",t.EMPTY_USERNAME="Username cannot be empty",t.INVALID_USERNAME="The username should either be a string or one of the sign in types",t.EMPTY_PASSWORD="Password cannot be empty",t.EMPTY_CODE="Confirmation code cannot be empty",t.SIGN_UP_ERROR="Error creating account",t.NO_MFA="No valid MFA method provided",t.INVALID_MFA="Invalid MFA type",t.EMPTY_CHALLENGE="Challenge response cannot be empty",t.NO_USER_SESSION="Failed to get the session because the user is empty",t.NETWORK_ERROR="Network Error",t.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",t.AUTOSIGNIN_ERROR="Please use your credentials to sign in",t.OAUTH_ERROR="Couldn't finish OAuth flow, check your User Pool HostedUI settings"})(Kn||(Kn={}));var Rs;(function(t){t.SignInException="SignInException",t.OAuthSignInError="OAuthSignInException"})(Rs||(Rs={}));class $e extends qr{constructor(e){super(e),this.constructor=$e,Object.setPrototypeOf(this,$e.prototype)}}function vn(t,e){const{message:n,recoverySuggestion:r}=sD[e];if(!t)throw new $e({name:e,message:n,recoverySuggestion:r})}function St(t){const e=t?.split("_")[0];if(!t||t.indexOf("_")<0||!e||typeof e!="string")throw new $e({name:"InvalidUserPoolId",message:"Invalid user pool id provided."});return e}function kE(t){if(!t||!t.includes(":"))throw new $e({name:"InvalidIdentityPoolIdException",message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."});return t.split(":")[0]}function I5(t){return Object.entries(t).map(([e,n])=>({Name:e,Value:n}))}function LK(t){const e={};return t?.forEach(n=>{n.Name&&(e[n.Name]=n.Value)}),e}var T5;(function(t){t.ConcurrentModificationException="ConcurrentModificationException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException"})(T5||(T5={}));var O5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(O5||(O5={}));var N5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UsernameExistsException="UsernameExistsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(N5||(N5={}));var M5;(function(t){t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyFailedAttemptsException="TooManyFailedAttemptsException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(M5||(M5={}));var P5;(function(t){t.AliasExistsException="AliasExistsException",t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyFailedAttemptsException="TooManyFailedAttemptsException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotFoundException="UserNotFoundException"})(P5||(P5={}));var L5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(L5||(L5={}));var D5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(D5||(D5={}));var U5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(U5||(U5={}));var j5;(function(t){t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotFoundException="UserNotFoundException"})(j5||(j5={}));var z5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(z5||(z5={}));var F5;(function(t){t.ExternalServiceException="ExternalServiceException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceConflictException="ResourceConflictException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException"})(F5||(F5={}));var $5;(function(t){t.ExternalServiceException="ExternalServiceException",t.InternalErrorException="InternalErrorException",t.InvalidIdentityPoolConfigurationException="InvalidIdentityPoolConfigurationException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceConflictException="ResourceConflictException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException"})($5||($5={}));var B5;(function(t){t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(B5||(B5={}));var H5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException"})(H5||(H5={}));var L0;(function(t){t.PasswordResetRequiredException="PasswordResetRequiredException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(L0||(L0={}));var q5;(function(t){t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotFoundException="UserNotFoundException"})(q5||(q5={}));var W5;(function(t){t.AliasExistsException="AliasExistsException",t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.MFAMethodNotFoundException="MFAMethodNotFoundException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(W5||(W5={}));var V5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(V5||(V5={}));var AE;(function(t){t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UsernameExistsException="UsernameExistsException"})(AE||(AE={}));var G5;(function(t){t.AliasExistsException="AliasExistsException",t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(G5||(G5={}));var K5;(function(t){t.CodeMismatchException="CodeMismatchException",t.EnableSoftwareTokenMFAException="EnableSoftwareTokenMFAException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(K5||(K5={}));var Y5;(function(t){t.AliasExistsException="AliasExistsException",t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(Y5||(Y5={}));var Z5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(Z5||(Z5={}));var X5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(X5||(X5={}));const J1="UserUnAuthenticatedException",DK="UserAlreadyAuthenticatedException",UK="DeviceMetadataNotFoundException",oD="AutoSignInException",jK="InvalidRedirectException",zK="InvalidAppSchemeException",FK="InvalidPreferredRedirectUrlException",$K=new $e({name:jK,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 $e({name:zK,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 $e({name:FK,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 BK="InvalidOriginException",HK=new $e({name:BK,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."}),qK="OAuthSignOutException",WK="TokenRefreshException",VK="UnexpectedSignInInterruptionException";function wd(t){if(!t||!t.accessToken)throw new $e({name:J1,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}function GK(t){if(!t||!t.idToken)throw new $e({name:J1,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}const KK=new $e({name:WK,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' }`}),YK=new $e({name:J1,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."});function iD(t){if(QK(t))throw KK;if(!XK(t))throw YK}function lD(t){if(!t||!t.deviceKey||!t.deviceGroupKey||!t.randomPassword)throw new $e({name:UK,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 ZK={inflightOAuth:"inflightOAuth",oauthSignIn:"oauthSignIn",oauthPKCE:"oauthPKCE",oauthState:"oauthState"};function uD(t){return t?.accessToken||t?.idToken}function XK(t){return uD(t)&&t?.refreshToken}function QK(t){return uD(t)&&!t?.refreshToken}const JK=async t=>{const e=t.getConfig().Auth?.Cognito;ut(e);const n=await t.Auth.getTokens({forceRefresh:!1});wd(n);const{"cognito:username":r,sub:a}=n.idToken?.payload??{},s={username:r,userId:a},i=eY(n);return i&&(s.signInDetails=i),s};function eY(t){return t?.signInDetails}const ev=async()=>JK(Kt),Dt=(t,e)=>Y1({category:Oa.Auth,action:t,...e}),Zn=t=>(e,n)=>{const r=tY(t),a=JSON.stringify(e);return nY(n,r,a)},tY=t=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${t}`}),nY=({url:t},e,n)=>({headers:e,url:t,body:n,method:"POST"});function Na(t){if(!t||t.name==="Error"||t instanceof TypeError)throw new $e({name:zi.Unknown,message:"An unknown error has occurred.",underlyingError:t})}const cr=()=>async t=>{if(t.statusCode>=300){const e=await Sd(t);throw Na(e),new $e({name:e.name,message:e.message,metadata:e.$metadata})}return mp(t)},rY=()=>(t,e)=>async function(r){return r.headers={...r.headers,"cache-control":"no-store",...await Kt.libraryOptions?.Auth?.headers?.()},t(r)},Xn=q_(YL,[rY]),cD="cognito-idp",Qn={service:cD,retryDecider:VL(Sd),computeDelay:WL,get userAgentValue(){return Y1()},cache:"no-store"},vp=t=>Mn(Xn,Zn("InitiateAuth"),cr(),{...Qn,...t}),la=t=>Mn(Xn,Zn("RespondToAuthChallenge"),cr(),{...Qn,...t}),aY=t=>Mn(Xn,Zn("VerifySoftwareToken"),cr(),{...Qn,...t}),sY=t=>Mn(Xn,Zn("AssociateSoftwareToken"),cr(),{...Qn,...t}),oY=({region:t})=>({url:new Zi(`https://${cD}.${t}.${JL(t)}`)}),wt=({endpointOverride:t})=>e=>t?{url:new Zi(t)}:oY(e),iY=t=>Mn(Xn,Zn("GetTokensFromRefreshToken"),cr(),{...Qn,...t}),lY=async({tokens:t,authConfig:e,username:n,clientMetadata:r})=>{ut(e?.Cognito);const{userPoolId:a,userPoolClientId:s,userPoolEndpoint:i}=e.Cognito,u=St(a);iD(t);const c=iY({endpointResolver:wt({endpointOverride:i})}),{AuthenticationResult:f}=await c({region:u},{ClientId:s,RefreshToken:t.refreshToken,DeviceKey:t.deviceMetadata?.deviceKey,ClientMetadata:r}),h=So(f?.AccessToken??""),m=f?.IdToken?So(f.IdToken):void 0,{iat:g}=h.payload;if(!g)throw new $e({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??t.refreshToken,username:n}},uY=TK(lY),cY={accessToken:"accessToken",idToken:"idToken",oidcProvider:"oidcProvider",clockDrift:"clockDrift",refreshToken:"refreshToken",deviceKey:"deviceKey",randomPasswordKey:"randomPasswordKey",deviceGroupKey:"deviceGroupKey",signInDetails:"signInDetails",oauthMetadata:"oauthMetadata"};var D0;(function(t){t.InvalidAuthTokens="InvalidAuthTokens"})(D0||(D0={}));const dY={[D0.InvalidAuthTokens]:{message:"Invalid tokens.",recoverySuggestion:"Make sure the tokens are valid."}},fY=V1(dY),Q5="CognitoIdentityServiceProvider";class hY{getKeyValueStorage(){if(!this.keyValueStorage)throw new $e({name:"KeyValueStorageNotFoundException",message:"KeyValueStorage was not found in TokenStore"});return this.keyValueStorage}setKeyValueStorage(e){this.keyValueStorage=e}setAuthConfig(e){this.authConfig=e}async loadTokens(){try{const e=await this.getAuthKeys(),n=await this.getKeyValueStorage().getItem(e.accessToken);if(!n)throw new $e({name:"NoSessionFoundException",message:"Auth session was not found. Make sure to call signIn."});const r=So(n),a=await this.getKeyValueStorage().getItem(e.idToken),s=a?So(a):void 0,i=await this.getKeyValueStorage().getItem(e.refreshToken)??void 0,u=await this.getKeyValueStorage().getItem(e.clockDrift)??"0",c=Number.parseInt(u),f=await this.getKeyValueStorage().getItem(e.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(e){fY(e!==void 0,D0.InvalidAuthTokens);const n=e.username;await this.getKeyValueStorage().setItem(this.getLastAuthUserKey(),n);const r=await this.getAuthKeys();await this.getKeyValueStorage().setItem(r.accessToken,e.accessToken.toString()),e.idToken?await this.getKeyValueStorage().setItem(r.idToken,e.idToken.toString()):await this.getKeyValueStorage().removeItem(r.idToken),e.refreshToken?await this.getKeyValueStorage().setItem(r.refreshToken,e.refreshToken):await this.getKeyValueStorage().removeItem(r.refreshToken),e.deviceMetadata&&(e.deviceMetadata.deviceKey&&await this.getKeyValueStorage().setItem(r.deviceKey,e.deviceMetadata.deviceKey),e.deviceMetadata.deviceGroupKey&&await this.getKeyValueStorage().setItem(r.deviceGroupKey,e.deviceMetadata.deviceGroupKey),await this.getKeyValueStorage().setItem(r.randomPasswordKey,e.deviceMetadata.randomPassword)),e.signInDetails?await this.getKeyValueStorage().setItem(r.signInDetails,JSON.stringify(e.signInDetails)):await this.getKeyValueStorage().removeItem(r.signInDetails),await this.getKeyValueStorage().setItem(r.clockDrift,`${e.clockDrift}`)}async clearTokens(){const e=await this.getAuthKeys();await Promise.all([this.getKeyValueStorage().removeItem(e.accessToken),this.getKeyValueStorage().removeItem(e.idToken),this.getKeyValueStorage().removeItem(e.clockDrift),this.getKeyValueStorage().removeItem(e.refreshToken),this.getKeyValueStorage().removeItem(e.signInDetails),this.getKeyValueStorage().removeItem(this.getLastAuthUserKey()),this.getKeyValueStorage().removeItem(e.oauthMetadata)])}async getDeviceMetadata(e){const n=await this.getAuthKeys(e),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(e){const n=await this.getAuthKeys(e);await Promise.all([this.getKeyValueStorage().removeItem(n.deviceKey),this.getKeyValueStorage().removeItem(n.deviceGroupKey),this.getKeyValueStorage().removeItem(n.randomPasswordKey)])}async getAuthKeys(e){ut(this.authConfig?.Cognito);const n=e??await this.getLastAuthUser();return pY(Q5,`${this.authConfig.Cognito.userPoolClientId}.${n}`)}getLastAuthUserKey(){ut(this.authConfig?.Cognito);const e=this.authConfig.Cognito.userPoolClientId;return`${Q5}.${e}.LastAuthUser`}async getLastAuthUser(){return await this.getKeyValueStorage().getItem(this.getLastAuthUserKey())??"username"}async setOAuthMetadata(e){const{oauthMetadata:n}=await this.getAuthKeys();await this.getKeyValueStorage().setItem(n,JSON.stringify(e))}async getOAuthMetadata(){const{oauthMetadata:e}=await this.getAuthKeys(),n=await this.getKeyValueStorage().getItem(e);return n&&JSON.parse(n)}}const pY=(t,e)=>V_(cY)(`${t}`,e);function V_(t){const e=Object.values({...t});return(n,r)=>e.reduce((a,s)=>({...a,[s]:`${n}.${r}.${s}`}),{})}const J5="amplify-signin-with-hostedUI",hs="CognitoIdentityServiceProvider";class dD{constructor(e){this.keyValueStorage=e}async clearOAuthInflightData(){ut(this.cognitoConfig);const e=ps(hs,this.cognitoConfig.userPoolClientId);await Promise.all([this.keyValueStorage.removeItem(e.inflightOAuth),this.keyValueStorage.removeItem(e.oauthPKCE),this.keyValueStorage.removeItem(e.oauthState)])}async clearOAuthData(){ut(this.cognitoConfig);const e=ps(hs,this.cognitoConfig.userPoolClientId);return await this.clearOAuthInflightData(),await this.keyValueStorage.removeItem(J5),this.keyValueStorage.removeItem(e.oauthSignIn)}loadOAuthState(){ut(this.cognitoConfig);const e=ps(hs,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthState)}storeOAuthState(e){ut(this.cognitoConfig);const n=ps(hs,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(n.oauthState,e)}loadPKCE(){ut(this.cognitoConfig);const e=ps(hs,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthPKCE)}storePKCE(e){ut(this.cognitoConfig);const n=ps(hs,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(n.oauthPKCE,e)}setAuthConfig(e){this.cognitoConfig=e}async loadOAuthInFlight(){ut(this.cognitoConfig);const e=ps(hs,this.cognitoConfig.userPoolClientId);return await this.keyValueStorage.getItem(e.inflightOAuth)==="true"}async storeOAuthInFlight(e){ut(this.cognitoConfig);const n=ps(hs,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(n.inflightOAuth,`${e}`)}async loadOAuthSignIn(){ut(this.cognitoConfig);const e=ps(hs,this.cognitoConfig.userPoolClientId),n=await this.keyValueStorage.getItem(J5),[r,a]=(await this.keyValueStorage.getItem(e.oauthSignIn))?.split(",")??[];return{isOAuthSignIn:r==="true"||n==="true",preferPrivateSession:a==="true"}}async storeOAuthSignIn(e,n=!1){ut(this.cognitoConfig);const r=ps(hs,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(r.oauthSignIn,`${e},${n}`)}}const ps=(t,e)=>V_(ZK)(t,e),Fr=new dD(gp),RE=[],mY=t=>{RE.push(t)},fD=()=>{for(;RE.length;)RE.pop()?.()};class gY{constructor(){this.waitForInflightOAuth=Z1()?async()=>{if(await Fr.loadOAuthInFlight())return this.inflightPromise?this.inflightPromise:(this.inflightPromise=new Promise((e,n)=>{mY(e)}),this.inflightPromise)}:async()=>{}}setAuthConfig(e){Fr.setAuthConfig(e.Cognito),this.authConfig=e}setTokenRefresher(e){this.tokenRefresher=e}setAuthTokenStore(e){this.tokenStore=e}getTokenStore(){if(!this.tokenStore)throw new $e({name:"EmptyTokenStoreException",message:"TokenStore not set"});return this.tokenStore}getTokenRefresher(){if(!this.tokenRefresher)throw new $e({name:"EmptyTokenRefresherException",message:"TokenRefresher not set"});return this.tokenRefresher}setClientMetadataProvider(e){this.clientMetadataProvider=e}async getTokens(e){let n;try{ut(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&&R5({expiresAt:(n.idToken?.payload?.exp??0)*1e3,clockDrift:n.clockDrift??0}),s=R5({expiresAt:(n.accessToken?.payload?.exp??0)*1e3,clockDrift:n.clockDrift??0});return(e?.forceRefresh||a||s)&&(n=await this.refreshTokens({tokens:n,username:r,clientMetadata:e?.clientMetadata??await this.clientMetadataProvider?.()}),n===null)?null:{accessToken:n?.accessToken,idToken:n?.idToken,signInDetails:n?.signInDetails}}async refreshTokens({tokens:e,username:n,clientMetadata:r}){try{const{signInDetails:a}=e,s=await this.getTokenRefresher()({tokens:e,authConfig:this.authConfig,username:n,clientMetadata:r});return s.signInDetails=a,await this.setTokens({tokens:s}),As.dispatch("auth",{event:"tokenRefresh"},"Auth",ks),s}catch(a){return this.handleErrors(a)}}handleErrors(e){if(Na(e),this.isAuthenticationError(e)&&this.clearTokens(),As.dispatch("auth",{event:"tokenRefresh_failure",data:{error:e}},"Auth",ks),e.name.startsWith("NotAuthorizedException"))return null;throw e}isAuthenticationError(e){return["NotAuthorizedException","TokenRevokedException","UserNotFoundException","PasswordResetRequiredException","UserNotConfirmedException","RefreshTokenReuseException"].some(r=>e?.name?.startsWith?.(r))}async setTokens({tokens:e}){return this.getTokenStore().storeTokens(e)}async clearTokens(){return this.getTokenStore().clearTokens()}getDeviceMetadata(e){return this.getTokenStore().getDeviceMetadata(e)}clearDeviceMetadata(e){return this.getTokenStore().clearDeviceMetadata(e)}setOAuthMetadata(e){return this.getTokenStore().setOAuthMetadata(e)}getOAuthMetadata(){return this.getTokenStore().getOAuthMetadata()}}class vY{constructor(){this.authTokenStore=new hY,this.authTokenStore.setKeyValueStorage(gp),this.tokenOrchestrator=new gY,this.tokenOrchestrator.setAuthTokenStore(this.authTokenStore),this.tokenOrchestrator.setTokenRefresher(uY)}getTokens(e={}){return this.tokenOrchestrator.getTokens(e)}setKeyValueStorage(e){this.authTokenStore.setKeyValueStorage(e)}setClientMetadataProvider(e){this.tokenOrchestrator.setClientMetadataProvider(e)}setAuthConfig(e){this.authTokenStore.setAuthConfig(e),this.tokenOrchestrator.setAuthConfig(e)}}const a0=new vY,{tokenOrchestrator:Wr}=a0;async function To(t){if(t.AccessToken){const e=So(t.AccessToken),n=(e.payload.iat||0)*1e3,r=new Date().getTime(),a=n>0?n-r:0;let s,i,u;t.RefreshToken&&(i=t.RefreshToken),t.IdToken&&(s=So(t.IdToken)),t?.NewDeviceMetadata&&(u=t.NewDeviceMetadata);const c={accessToken:e,idToken:s,refreshToken:i,clockDrift:a,deviceMetadata:u,username:t.username};t?.signInDetails&&(c.signInDetails=t.signInDetails),await Wr.setTokens({tokens:c})}else throw new qr({message:"Invalid tokens",name:"InvalidTokens",recoverySuggestion:"Check Cognito UserPool settings"})}const yY="Unable to get user session following successful sign-in.",Xi=async()=>{try{As.dispatch("auth",{event:"signedIn",data:await ev()},"Auth",ks)}catch(t){throw t.name===J1?new $e({name:VK,message:yY,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."}):t}};function hD(){return{active:!1}}const bY=(t,e)=>{switch(e.type){case"SET_USERNAME":return{...t,username:e.value};case"SET_SESSION":return{...t,session:e.value};case"START":return{...t,active:!0};case"RESET":return hD();default:return t}},SY=t=>{let e=t(hD(),{type:"RESET"});return{getState:()=>e,dispatch:n=>{e=t(e,n)}}},Ni=SY(bY),wY=180*1e3,tg="CognitoSignInState",go={username:`${tg}.username`,challengeName:`${tg}.challengeName`,signInSession:`${tg}.signInSession`,expiry:`${tg}.expiry`},xY=(t,e)=>{switch(e.type){case"SET_SIGN_IN_SESSION":return ng({signInSession:e.value}),{...t,signInSession:e.value};case"SET_SIGN_IN_STATE":return ng(e.value),{...e.value};case"SET_CHALLENGE_NAME":return ng({challengeName:e.value}),{...t,challengeName:e.value};case"SET_USERNAME":return ng({username:e.value}),{...t,username:e.value};case"SET_INITIAL_STATE":return EY();case"RESET_STATE":return pD(),G_();default:return t}},CY=t=>{const e=Number(t),n=Date.now();return e<=n},Ja=()=>{Is.dispatch({type:"RESET_STATE"})},pD=()=>{for(const t of Object.values(go))mo.removeItem(t)},G_=()=>({username:void 0,challengeName:void 0,signInSession:void 0}),EY=()=>{const t=mo.getItem(go.expiry);if(!t||CY(t))return pD(),G_();const e=mo.getItem(go.username)??void 0,n=mo.getItem(go.challengeName)??void 0,r=mo.getItem(go.signInSession)??void 0;return{username:e,challengeName:n,signInSession:r}},_Y=t=>{let e=t(G_(),{type:"SET_INITIAL_STATE"});return{getState:()=>e,dispatch:n=>{e=t(e,n)}}},Is=_Y(xY);function lu(t){Is.dispatch({type:"SET_SIGN_IN_STATE",value:t})}const ng=({challengeName:t,signInSession:e,username:n})=>{n&&mo.setItem(go.username,n),t&&mo.setItem(go.challengeName,t),e&&(mo.setItem(go.signInSession,e),mo.setItem(go.expiry,String(Date.now()+wY)))},eO="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 Ta extends qr{constructor(e){super(e),this.constructor=Ta,Object.setPrototypeOf(this,Ta.prototype)}}var Vt;(function(t){t.PasskeyNotSupported="PasskeyNotSupported",t.PasskeyAlreadyExists="PasskeyAlreadyExists",t.InvalidPasskeyRegistrationOptions="InvalidPasskeyRegistrationOptions",t.InvalidPasskeyAuthenticationOptions="InvalidPasskeyAuthenticationOptions",t.RelyingPartyMismatch="RelyingPartyMismatch",t.PasskeyRegistrationFailed="PasskeyRegistrationFailed",t.PasskeyRetrievalFailed="PasskeyRetrievalFailed",t.PasskeyRegistrationCanceled="PasskeyRegistrationCanceled",t.PasskeyAuthenticationCanceled="PasskeyAuthenticationCanceled",t.PasskeyOperationAborted="PasskeyOperationAborted"})(Vt||(Vt={}));const kS="User may have canceled the ceremony or another interruption has occurred. Check underlying error for details.",tO="Ensure your user pool is configured to support the WEB_AUTHN as an authentication factor.",Qc={[Vt.PasskeyNotSupported]:{message:"Passkeys may not be supported on this device.",recoverySuggestion:eO},[Vt.InvalidPasskeyRegistrationOptions]:{message:"Invalid passkey registration options.",recoverySuggestion:tO},[Vt.InvalidPasskeyAuthenticationOptions]:{message:"Invalid passkey authentication options.",recoverySuggestion:tO},[Vt.PasskeyRegistrationFailed]:{message:"Device failed to create passkey.",recoverySuggestion:eO},[Vt.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."},[Vt.PasskeyAlreadyExists]:{message:"Passkey already exists in authenticator.",recoverySuggestion:"Proceed with existing passkey or try again after deleting the credential."},[Vt.PasskeyRegistrationCanceled]:{message:"Passkey registration ceremony has been canceled.",recoverySuggestion:kS},[Vt.PasskeyAuthenticationCanceled]:{message:"Passkey authentication ceremony has been canceled.",recoverySuggestion:kS},[Vt.PasskeyOperationAborted]:{message:"Passkey operation has been aborted.",recoverySuggestion:kS},[Vt.RelyingPartyMismatch]:{message:"Relying party does not match current domain.",recoverySuggestion:"Ensure relying party identifier matches current domain."}},xd=V1(Qc,Ta),mD=t=>{if(t instanceof Error){if(t.name==="AbortError"){const{message:e,recoverySuggestion:n}=Qc[Vt.PasskeyOperationAborted];return new Ta({name:Vt.PasskeyOperationAborted,message:e,recoverySuggestion:n,underlyingError:t})}if(t.name==="SecurityError"){const{message:e,recoverySuggestion:n}=Qc[Vt.RelyingPartyMismatch];return new Ta({name:Vt.RelyingPartyMismatch,message:e,recoverySuggestion:n,underlyingError:t})}}return new Ta({name:zi.Unknown,message:"An unknown error has occurred.",underlyingError:t})},kY=t=>{if(t instanceof Ta)return t;if(t instanceof Error&&t.name==="NotAllowedError"){const{message:e,recoverySuggestion:n}=Qc[Vt.PasskeyAuthenticationCanceled];return new Ta({name:Vt.PasskeyAuthenticationCanceled,message:e,recoverySuggestion:n,underlyingError:t})}return mD(t)},gD=()=>Z1()&&window.isSecureContext&&"credentials"in navigator&&typeof window.PublicKeyCredential=="function",Cs=t=>Xc.convert(new Uint8Array(t),{urlSafe:!0,skipPadding:!0}),yh=t=>Uint8Array.from($_.convert(t,{urlSafe:!0}),e=>e.charCodeAt(0)).buffer,AY=t=>{const e=yh(t.user.id),n=yh(t.challenge),r=(t.excludeCredentials||[]).map(a=>({...a,id:yh(a.id)}));return{...t,excludeCredentials:r,challenge:n,user:{...t.user,id:e}}},RY=t=>{const e={clientDataJSON:Cs(t.response.clientDataJSON),attestationObject:Cs(t.response.attestationObject),transports:t.response.getTransports(),publicKeyAlgorithm:t.response.getPublicKeyAlgorithm(),authenticatorData:Cs(t.response.getAuthenticatorData())},n=t.response.getPublicKey();n&&(e.publicKey=Cs(n));const r={type:t.type,id:t.id,rawId:Cs(t.rawId),clientExtensionResults:t.getClientExtensionResults(),response:e};return t.authenticatorAttachment&&(r.authenticatorAttachment=t.authenticatorAttachment),r},IY=t=>{const e=yh(t.challenge),n=(t.allowCredentials||[]).map(r=>({...r,id:yh(r.id)}));return{...t,challenge:e,allowCredentials:n}},TY=t=>{const e={clientDataJSON:Cs(t.response.clientDataJSON),authenticatorData:Cs(t.response.authenticatorData),signature:Cs(t.response.signature)};t.response.userHandle&&(e.userHandle=Cs(t.response.userHandle));const n={id:t.id,rawId:Cs(t.rawId),type:t.type,clientExtensionResults:t.getClientExtensionResults(),response:e};return t.authenticatorAttachment&&(n.authenticatorAttachment=t.authenticatorAttachment),n};function OY(t){xd([!!t,!!t?.challenge,!!t?.user,!!t?.rp,!!t?.pubKeyCredParams].every(Boolean),Vt.InvalidPasskeyRegistrationOptions)}function NY(t){xd(t&&t instanceof PublicKeyCredential&&t.response instanceof AuthenticatorAttestationResponse,Vt.PasskeyRegistrationFailed)}function MY(t){xd(t&&t instanceof PublicKeyCredential&&t.response instanceof AuthenticatorAssertionResponse,Vt.PasskeyRetrievalFailed)}const PY=async t=>{try{const e=gD();xd(e,Vt.PasskeyNotSupported);const n=IY(t),r=await navigator.credentials.get({publicKey:n});return MY(r),TY(r)}catch(e){throw kY(e)}},LY=t=>Mn(Xn,Zn("ConfirmDevice"),cr(),{...Qn,...t}),s0={convert(t){return new TextEncoder().encode(t)}};function Ae(t,e){t!=null&&this.fromString(t,e)}function Ar(){return new Ae(null,null)}let Li;const DY=0xdeadbeefcafe,nO=(DY&16777215)===15715070;function UY(t,e,n,r,a,s){for(;--s>=0;){const i=e*this[t++]+n[r]+a;a=Math.floor(i/67108864),n[r++]=i&67108863}return a}function jY(t,e,n,r,a,s){const i=e&32767,u=e>>15;for(;--s>=0;){let c=this[t]&32767;const f=this[t++]>>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 zY(t,e,n,r,a,s){const i=e&16383,u=e>>14;for(;--s>=0;){let c=this[t]&16383;const f=this[t++]>>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 rO=typeof navigator<"u";rO&&nO&&navigator.appName==="Microsoft Internet Explorer"?(Ae.prototype.am=jY,Li=30):rO&&nO&&navigator.appName!=="Netscape"?(Ae.prototype.am=UY,Li=26):(Ae.prototype.am=zY,Li=28);Ae.prototype.DB=Li;Ae.prototype.DM=(1<<Li)-1;Ae.prototype.DV=1<<Li;const K_=52;Ae.prototype.FV=Math.pow(2,K_);Ae.prototype.F1=K_-Li;Ae.prototype.F2=2*Li-K_;const FY="0123456789abcdefghijklmnopqrstuvwxyz",tv=[];let Cd,Ra;Cd=48;for(Ra=0;Ra<=9;++Ra)tv[Cd++]=Ra;Cd=97;for(Ra=10;Ra<36;++Ra)tv[Cd++]=Ra;Cd=65;for(Ra=10;Ra<36;++Ra)tv[Cd++]=Ra;function aO(t){return FY.charAt(t)}function $Y(t,e){const n=tv[t.charCodeAt(e)];return n??-1}function BY(t){for(let e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s}function HY(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0}function Y_(t){const e=Ar();return e.fromInt(t),e}function qY(t,e){let n;if(e===16)n=4;else if(e===8)n=3;else if(e===2)n=1;else if(e===32)n=5;else if(e===4)n=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;let r=t.length,a=!1,s=0;for(;--r>=0;){const i=$Y(t,r);if(i<0){t.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&&Ae.ZERO.subTo(this,this)}function WY(){const t=this.s&this.DM;for(;this.t>0&&this[this.t-1]==t;)--this.t}function VY(t){if(this.s<0)return"-"+this.negate().toString(t);let e;if(t==16)e=4;else if(t===8)e=3;else if(t===2)e=1;else if(t===32)e=5;else if(t===4)e=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");const n=(1<<e)-1;let r,a=!1,s="",i=this.t,u=this.DB-i*this.DB%e;if(i-- >0)for(u<this.DB&&(r=this[i]>>u)>0&&(a=!0,s=aO(r));i>=0;)u<e?(r=(this[i]&(1<<u)-1)<<e-u,r|=this[--i]>>(u+=this.DB-e)):(r=this[i]>>(u-=e)&n,u<=0&&(u+=this.DB,--i)),r>0&&(a=!0),a&&(s+=aO(r));return a?s:"0"}function GY(){const t=Ar();return Ae.ZERO.subTo(this,t),t}function KY(){return this.s<0?this.negate():this}function YY(t){let e=this.s-t.s;if(e!=0)return e;let n=this.t;if(e=n-t.t,e!=0)return this.s<0?-e:e;for(;--n>=0;)if((e=this[n]-t[n])!=0)return e;return 0}function Z_(t){let e=1,n;return(n=t>>>16)!==0&&(t=n,e+=16),(n=t>>8)!==0&&(t=n,e+=8),(n=t>>4)!==0&&(t=n,e+=4),(n=t>>2)!==0&&(t=n,e+=2),(n=t>>1)!==0&&(t=n,e+=1),e}function ZY(){return this.t<=0?0:this.DB*(this.t-1)+Z_(this[this.t-1]^this.s&this.DM)}function XY(t,e){let n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s}function QY(t,e){for(let n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s}function JY(t,e){const n=t%this.DB,r=this.DB-n,a=(1<<r)-1,s=Math.floor(t/this.DB);let i=this.s<<n&this.DM,u;for(u=this.t-1;u>=0;--u)e[u+s+1]=this[u]>>r|i,i=(this[u]&a)<<n;for(u=s-1;u>=0;--u)e[u]=0;e[s]=i,e.t=this.t+s+1,e.s=this.s,e.clamp()}function eZ(t,e){e.s=this.s;const n=Math.floor(t/this.DB);if(n>=this.t){e.t=0;return}const r=t%this.DB,a=this.DB-r,s=(1<<r)-1;e[0]=this[n]>>r;for(let i=n+1;i<this.t;++i)e[i-n-1]|=(this[i]&s)<<a,e[i-n]=this[i]>>r;r>0&&(e[this.t-n-1]|=(this.s&s)<<a),e.t=this.t-n,e.clamp()}function tZ(t,e){let n=0,r=0;const a=Math.min(t.t,this.t);for(;n<a;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()}function nZ(t,e){const n=this.abs(),r=t.abs();let a=n.t;for(e.t=a+r.t;--a>=0;)e[a]=0;for(a=0;a<r.t;++a)e[a+n.t]=n.am(0,r[a],e,a,0,n.t);e.s=0,e.clamp(),this.s!==t.s&&Ae.ZERO.subTo(e,e)}function rZ(t){const e=this.abs();let n=t.t=2*e.t;for(;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){const r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()}function aZ(t,e,n){const r=t.abs();if(r.t<=0)return;const a=this.abs();if(a.t<r.t){e?.fromInt(0),n!=null&&this.copyTo(n);return}n===null&&(n=Ar());const s=Ar(),i=this.s,u=t.s,c=this.DB-Z_(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 E=e===null?Ar():e;for(s.dlShiftTo(x,E),n.compareTo(E)>=0&&(n[n.t++]=1,n.subTo(E,n)),Ae.ONE.dlShiftTo(f,E),E.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--x>=0;){let A=n[--w]===h?this.DM:Math.floor(n[w]*g+(n[w-1]+S)*y);if((n[w]+=s.am(0,A,n,x,0,f))<A)for(s.dlShiftTo(x,E),n.subTo(E,n);n[w]<--A;)n.subTo(E,n)}e!==null&&(n.drShiftTo(f,e),i!==u&&Ae.ZERO.subTo(e,e)),n.t=f,n.clamp(),c>0&&n.rShiftTo(c,n),i<0&&Ae.ZERO.subTo(n,n)}function sZ(t){const e=Ar();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(Ae.ZERO)>0&&t.subTo(e,e),e}function oZ(){if(this.t<1)return 0;const t=this[0];if((t&1)===0)return 0;let e=t&3;return e=e*(2-(t&15)*e)&15,e=e*(2-(t&255)*e)&255,e=e*(2-((t&65535)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e}function iZ(t){return this.compareTo(t)===0}function lZ(t,e){let n=0,r=0;const a=Math.min(t.t,this.t);for(;n<a;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()}function uZ(t){const e=Ar();return this.addTo(t,e),e}function cZ(t){const e=Ar();return this.subTo(t,e),e}function dZ(t){const e=Ar();return this.multiplyTo(t,e),e}function fZ(t){const e=Ar();return this.divRemTo(t,e,null),e}function Ed(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function hZ(t){const e=Ar();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(Ae.ZERO)>0&&this.m.subTo(e,e),e}function pZ(t){const e=Ar();return t.copyTo(e),this.reduce(e),e}function mZ(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(let e=0;e<this.m.t;++e){let n=t[e]&32767;const r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=e+this.m.t,t[n]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)}function gZ(t,e){t.squareTo(e),this.reduce(e)}function vZ(t,e,n){t.multiplyTo(e,n),this.reduce(n)}Ed.prototype.convert=hZ;Ed.prototype.revert=pZ;Ed.prototype.reduce=mZ;Ed.prototype.mulTo=vZ;Ed.prototype.sqrTo=gZ;function yZ(t,e,n){let r=t.bitLength(),a,s=Y_(1);const i=new Ed(e);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 E=Ar();for(i.sqrTo(u[1],E);c<=h;)u[c]=Ar(),i.mulTo(E,u[c-2],u[c]),c+=2}let m=t.t-1,g,y=!0,S=Ar(),w;for(r=Z_(t[m])-1;m>=0;){for(r>=f?g=t[m]>>r-f&h:(g=(t[m]&(1<<r+1)-1)<<f-r,m>0&&(g|=t[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&&(t[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}Ae.prototype.copyTo=BY;Ae.prototype.fromInt=HY;Ae.prototype.fromString=qY;Ae.prototype.clamp=WY;Ae.prototype.dlShiftTo=XY;Ae.prototype.drShiftTo=QY;Ae.prototype.lShiftTo=JY;Ae.prototype.rShiftTo=eZ;Ae.prototype.subTo=tZ;Ae.prototype.multiplyTo=nZ;Ae.prototype.squareTo=rZ;Ae.prototype.divRemTo=aZ;Ae.prototype.invDigit=oZ;Ae.prototype.addTo=lZ;Ae.prototype.toString=VY;Ae.prototype.negate=GY;Ae.prototype.abs=KY;Ae.prototype.compareTo=YY;Ae.prototype.bitLength=ZY;Ae.prototype.mod=sZ;Ae.prototype.equals=iZ;Ae.prototype.add=uZ;Ae.prototype.subtract=cZ;Ae.prototype.multiply=dZ;Ae.prototype.divide=fZ;Ae.prototype.modPow=yZ;Ae.ZERO=Y_(0);Ae.ONE=Y_(1);const bZ=async({a:t,g:e,k:n,x:r,B:a,N:s,U:i})=>new Promise((u,c)=>{e.modPow(r,s,(f,h)=>{if(f){c(f);return}a.subtract(n.multiply(h)).modPow(t.add(i.multiply(r)),s,(m,g)=>{if(m){c(m);return}u(g.mod(s))})})}),SZ="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",vD={},IE={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),vD[t]=e,IE[e]=t}const Jc=t=>{if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const e=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2){const r=t.slice(n,n+2).toLowerCase();if(r in IE)e[n/2]=IE[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return e},X_=t=>{let e="";for(let n=0;n<t.byteLength;n++)e+=vD[t[n]];return e},TE=t=>{const e=new Gl;e.update(t);const n=e.digestSync(),r=X_(n);return new Array(64-r.length).join("0")+r},o0=t=>TE(Jc(t)),wZ=/^[89a-f]/i,uo=t=>{if(!(t instanceof Ae))throw new Error("Not a BigInteger");const e=t.compareTo(Ae.ZERO)<0;let n=t.abs().toString(16);if(n=n.length%2!==0?`0${n}`:n,n=wZ.test(n)?`00${n}`:n,e){const r=n.split("").map(s=>{const i=~parseInt(s,16)&15;return"0123456789ABCDEF".charAt(i)}).join("");n=new Ae(r,16).add(Ae.ONE).toString(16),n.toUpperCase().startsWith("FF8")&&(n=n.substring(2))}return n},xZ=({A:t,B:e})=>{const n=new Ae(o0(uo(t)+uo(e)),16);if(n.equals(Ae.ZERO))throw new Error("U cannot be zero.");return n},CZ=(t,e,n)=>{const r=new Gl(e);r.update(t);const a=r.digestSync(),s=new Gl(a);return s.update(n),s.digestSync().slice(0,16)},Q_=t=>{const e=new W_().random(t).toString();return Jc(e)},EZ=()=>Xc.convert(Q_(40));class _Z{constructor({userPoolName:e,a:n,g:r,A:a,N:s}){this.encoder=s0,this.userPoolName=e,this.a=n,this.g=r,this.A=a,this.N=s,this.k=new Ae(o0(`${uo(s)}${uo(r)}`),16)}getRandomPassword(){if(!this.randomPassword)throw new $e({name:"EmptyBigIntegerRandomPassword",message:"random password is empty"});return this.randomPassword}getSaltToHashDevices(){if(!this.saltToHashDevices)throw new $e({name:"EmptyBigIntegersaltToHashDevices",message:"saltToHashDevices is empty"});return this.saltToHashDevices}getVerifierDevices(){if(!this.verifierDevices)throw new $e({name:"EmptyBigIntegerVerifierDevices",message:"verifyDevices is empty"});return this.verifierDevices}async generateHashDevice(e,n){this.randomPassword=EZ();const r=`${e}${n}:${this.randomPassword}`,a=TE(r),s=X_(Q_(16));return this.saltToHashDevices=uo(new Ae(s,16)),new Promise((i,u)=>{this.g.modPow(new Ae(o0(this.saltToHashDevices+a),16),this.N,(c,f)=>{if(c){u(c);return}this.verifierDevices=uo(f),i()})})}async getPasswordAuthenticationKey({username:e,password:n,serverBValue:r,salt:a}){if(r.mod(this.N).equals(Ae.ZERO))throw new Error("B cannot be zero.");const s=xZ({A:this.A,B:r}),i=`${this.userPoolName}${e}:${n}`,u=TE(i),c=new Ae(o0(uo(a)+u),16),f=await bZ({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),CZ(Jc(uo(f)),Jc(uo(s)),g)}}const kZ=async({a:t,g:e,N:n})=>new Promise((r,a)=>{e.modPow(t,n,(s,i)=>{if(s){a(s);return}if(i.mod(n).equals(Ae.ZERO)){a(new Error("Illegal parameter. A mod N cannot be 0."));return}r(i)})}),yp=async t=>{const e=new Ae(SZ,16),n=new Ae("2",16),r=AZ(),a=await kZ({a:r,g:n,N:e});return new _Z({userPoolName:t,a:r,g:n,A:a,N:e})},AZ=()=>{const t=X_(Q_(128));return new Ae(t,16)};async function uu({userPoolId:t,userPoolEndpoint:e,newDeviceMetadata:n,accessToken:r}){if(!n)return;const a=t.split("_")[1]||"",s=await yp(a),i=n?.DeviceKey,u=n?.DeviceGroupKey;try{await s.generateHashDevice(u??"",i??"")}catch{return}const c={Salt:Xc.convert(Jc(s.getSaltToHashDevices())),PasswordVerifier:Xc.convert(Jc(s.getVerifierDevices()))},f=s.getRandomPassword();try{return await LY({endpointResolver:wt({endpointOverride:e})})({region:St(t)},{AccessToken:r,DeviceName:await OK(),DeviceKey:n?.DeviceKey,DeviceSecretVerifierConfig:c}),{deviceKey:i,deviceGroupKey:u,randomPassword:f}}catch{return}}async function RZ(t){const e=Kt.getConfig().Auth?.Cognito;ut(e);const{username:n,signInSession:r,signInDetails:a,challengeName:s}=Is.getState();if(s!=="WEB_AUTHN"||!n)throw new $e({name:Rs.SignInException,message:"Unable to proceed due to invalid sign in state."});const{CREDENTIAL_REQUEST_OPTIONS:i}=t;xd(!!i,Vt.InvalidPasskeyAuthenticationOptions);const u=await PY(JSON.parse(i)),c=la({endpointResolver:wt({endpointOverride:e.userPoolEndpoint})}),{ChallengeName:f,ChallengeParameters:h,AuthenticationResult:m,Session:g}=await c({region:St(e.userPoolId),userAgentValue:Dt(Ye.ConfirmSignIn)},{ChallengeName:"WEB_AUTHN",ChallengeResponses:{USERNAME:n,CREDENTIAL:JSON.stringify(u)},ClientId:e.userPoolClientId,Session:r});if(lu({signInSession:g,username:n,challengeName:f,signInDetails:a}),m)return await To({...m,username:n,NewDeviceMetadata:await uu({userPoolId:e.userPoolId,userPoolEndpoint:e.userPoolEndpoint,newDeviceMetadata:m.NewDeviceMetadata,accessToken:m.AccessToken}),signInDetails:a}),Is.dispatch({type:"RESET_STATE"}),await Xi(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};if(f==="WEB_AUTHN")throw new $e({name:Rs.SignInException,message:"Sequential WEB_AUTHN challenges returned from underlying service cannot be handled."});return{challengeName:f,challengeParameters:h}}function Jn({username:t,userPoolId:e,userPoolClientId:n}){if(typeof window>"u")return;const r=window.AmazonCognitoAdvancedSecurityData;if(typeof r>"u")return;const a=r.getData(t,e,n);return a?{EncodedData:a}:{}}const IZ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],TZ=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yD=()=>{const t=new Date,e=TZ[t.getUTCDay()],n=IZ[t.getUTCMonth()],r=t.getUTCDate();let a=t.getUTCHours();a<10&&(a=`0${a}`);let s=t.getUTCMinutes();s<10&&(s=`0${s}`);let i=t.getUTCSeconds();i<10&&(i=`0${i}`);const u=t.getUTCFullYear();return`${e} ${n} ${r} ${a}:${s}:${i} UTC ${u}`},bD=({userPoolName:t,username:e,challengeParameters:n,dateNow:r,hkdf:a})=>{const s=s0.convert(t),i=s0.convert(e),u=OZ(n.SECRET_BLOCK),c=s0.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 Gl(a);h.update(f);const m=h.digestSync();return Xc.convert(m)},OZ=t=>{const e="=".repeat((4-t.length%4)%4),n=(t+e).replace(/-/g,"+").replace(/_/g,"/"),r=$_.convert(n),a=new Uint8Array(r.length);for(let s=0;s<r.length;++s)a[s]=r.charCodeAt(s);return a};async function bp({username:t,config:e,clientMetadata:n,session:r,tokenOrchestrator:a}){const{userPoolId:s,userPoolEndpoint:i}=e,u=e.userPoolClientId,c=await a?.getDeviceMetadata(t);lD(c);const f=await yp(c.deviceGroupKey),h={USERNAME:t,SRP_A:f.A.toString(16),DEVICE_KEY:c.deviceKey},m={ChallengeName:"DEVICE_SRP_AUTH",ClientId:u,ChallengeResponses:h,ClientMetadata:n,Session:r},g=la({endpointResolver:wt({endpointOverride:i})}),{ChallengeParameters:y,Session:S}=await g({region:St(s)},m);return NZ(t,y,n,S,f,e,a)}async function NZ(t,e,n,r,a,{userPoolId:s,userPoolClientId:i,userPoolEndpoint:u},c){const f=await c?.getDeviceMetadata(t);lD(f);const h=new Ae(e?.SRP_B,16),m=new Ae(e?.SALT,16),{deviceKey:g}=f,{deviceGroupKey:y}=f,S=await a.getPasswordAuthenticationKey({username:f.deviceKey,password:f.randomPassword,serverBValue:h,salt:m}),w=yD(),x={USERNAME:e?.USERNAME??t,PASSWORD_CLAIM_SECRET_BLOCK:e?.SECRET_BLOCK,TIMESTAMP:w,PASSWORD_CLAIM_SIGNATURE:bD({username:g,userPoolName:y,challengeParameters:e,dateNow:w,hkdf:S}),DEVICE_KEY:g},E=Jn({username:t,userPoolId:s,userPoolClientId:i}),A={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:i,ChallengeResponses:x,Session:r,ClientMetadata:n,UserContextData:E};return la({endpointResolver:wt({endpointOverride:u})})({region:St(s)},A)}async function J_(t,e,n,r,a,s,i){const{userPoolId:u,userPoolClientId:c,userPoolEndpoint:f}=s,h=u?.split("_")[1]||"",m=new Ae(e?.SRP_B,16),g=new Ae(e?.SALT,16),y=e?.USER_ID_FOR_SRP;if(!y)throw new $e({name:"EmptyUserIdForSRPException",message:"USER_ID_FOR_SRP was not found in challengeParameters"});const S=await a.getPasswordAuthenticationKey({username:y,password:t,serverBValue:m,salt:g}),w=yD(),x={USERNAME:y,PASSWORD_CLAIM_SECRET_BLOCK:e?.SECRET_BLOCK,TIMESTAMP:w,PASSWORD_CLAIM_SIGNATURE:bD({username:y,userPoolName:h,challengeParameters:e,dateNow:w,hkdf:S})},E=await i.getDeviceMetadata(y);E&&E.deviceKey&&(x.DEVICE_KEY=E.deviceKey);const A=Jn({username:y,userPoolId:u,userPoolClientId:c}),k={ChallengeName:"PASSWORD_VERIFIER",ChallengeResponses:x,ClientMetadata:n,Session:r,ClientId:c,UserContextData:A},N=await la({endpointResolver:wt({endpointOverride:f})})({region:St(u)},k);return N.ChallengeName==="DEVICE_SRP_AUTH"?bp({username:y,config:s,clientMetadata:n,session:N.Session,tokenOrchestrator:i}):N}async function _d(t,e,n,r){try{return await t(...e)}catch(a){if(a instanceof $e&&a.name==="ResourceNotFoundException"&&a.message.includes("Device does not exist."))return await r.clearDeviceMetadata(n),t(...e);throw a}}function cu(t){const{dispatch:e}=Is;e({type:"SET_USERNAME",value:t})}async function SD({username:t,password:e,clientMetadata:n,config:r,tokenOrchestrator:a,authFlow:s,preferredChallenge:i}){const{userPoolId:u,userPoolClientId:c,userPoolEndpoint:f}=r,h=u?.split("_")[1]||"",m=await yp(h),g={USERNAME:t,SRP_A:m.A.toString(16)};s==="USER_AUTH"&&i&&(g.PREFERRED_CHALLENGE=i);const y=Jn({username:t,userPoolId:u,userPoolClientId:c}),S={AuthFlow:s,AuthParameters:g,ClientMetadata:n,ClientId:c,UserContextData:y},x=await vp({endpointResolver:wt({endpointOverride:f})})({region:St(u),userAgentValue:Dt(Ye.SignIn)},S),{ChallengeParameters:E,Session:A}=x,k=E?.USERNAME??t;return cu(k),x.ChallengeName==="PASSWORD_VERIFIER"?_d(J_,[e,E,n,A,m,r,a],k,a):x}async function MZ({username:t,session:e,selectedChallenge:n,config:r,clientMetadata:a}){return la({endpointResolver:wt({endpointOverride:r.userPoolEndpoint})})({region:St(r.userPoolId),userAgentValue:Dt(Ye.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:{USERNAME:t,ANSWER:n},ClientId:r.userPoolClientId,Session:e,ClientMetadata:a})}async function PZ(t,e,n,r,a){const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:u}=r,c={ANSWER:"PASSWORD",USERNAME:t,PASSWORD:e},f=Jn({username:t,userPoolId:s,userPoolClientId:i}),m=await la({endpointResolver:wt({endpointOverride:u})})({region:St(s),userAgentValue:Dt(Ye.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:c,ClientId:i,ClientMetadata:n,Session:a,UserContextData:f}),g=m.ChallengeParameters?.USERNAME??t;return cu(g),m}async function LZ(t,e,n,r,a,s){const{userPoolId:i,userPoolClientId:u,userPoolEndpoint:c}=r,f=i.split("_")[1]||"",h=await yp(f),m={ANSWER:"PASSWORD_SRP",USERNAME:t,SRP_A:h.A.toString(16)},g=Jn({username:t,userPoolId:i,userPoolClientId:u}),S=await la({endpointResolver:wt({endpointOverride:c})})({region:St(i),userAgentValue:Dt(Ye.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:m,ClientId:u,ClientMetadata:n,Session:a,UserContextData:g}),w=S.ChallengeParameters?.USERNAME??t;return cu(w),S.ChallengeName==="PASSWORD_VERIFIER"?_d(J_,[e,S.ChallengeParameters,n,S.Session,h,r,s],w,s):S}const OE="userAttributes.";function DZ(t){return"isSignedIn"in t&&"nextStep"in t}async function UZ({challengeResponse:t,clientMetadata:e,session:n,username:r,config:a,tokenOrchestrator:s}){const{userPoolId:i,userPoolClientId:u,userPoolEndpoint:c}=a,f={USERNAME:r,ANSWER:t},h=await s?.getDeviceMetadata(r);h&&h.deviceKey&&(f.DEVICE_KEY=h.deviceKey);const m=Jn({username:r,userPoolId:i,userPoolClientId:u}),g={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:f,Session:n,ClientMetadata:e,ClientId:u,UserContextData:m},S=await la({endpointResolver:wt({endpointOverride:c})})({region:St(i),userAgentValue:Dt(Ye.ConfirmSignIn)},g);return S.ChallengeName==="DEVICE_SRP_AUTH"?bp({username:r,config:a,clientMetadata:e,session:S.Session,tokenOrchestrator:s}):S}async function jZ({challengeResponse:t,username:e,clientMetadata:n,session:r,deviceName:a,config:s}){const{userPoolId:i,userPoolClientId:u,userPoolEndpoint:c}=s;if(t==="EMAIL")return{ChallengeName:"MFA_SETUP",Session:r,ChallengeParameters:{MFAS_CAN_SETUP:'["EMAIL_OTP"]'},$metadata:{}};if(t==="TOTP")return{ChallengeName:"MFA_SETUP",Session:r,ChallengeParameters:{MFAS_CAN_SETUP:'["SOFTWARE_TOKEN_MFA"]'},$metadata:{}};const f={USERNAME:e};if(/^\d+$/.test(t)){const g=aY({endpointResolver:wt({endpointOverride:c})}),{Session:y}=await g({region:St(i),userAgentValue:Dt(Ye.ConfirmSignIn)},{UserCode:t,Session:r,FriendlyDeviceName:a});Is.dispatch({type:"SET_SIGN_IN_SESSION",value:y});const S={ChallengeName:"MFA_SETUP",ChallengeResponses:f,Session:y,ClientMetadata:n,ClientId:u};return la({endpointResolver:wt({endpointOverride:c})})({region:St(i),userAgentValue:Dt(Ye.ConfirmSignIn)},S)}if(t.includes("@")){f.EMAIL=t;const g={ChallengeName:"MFA_SETUP",ChallengeResponses:f,Session:r,ClientMetadata:n,ClientId:u};return la({endpointResolver:wt({endpointOverride:c})})({region:St(i),userAgentValue:Dt(Ye.ConfirmSignIn)},g)}throw new $e({name:Rs.SignInException,message:`Cannot proceed with MFA setup using challengeResponse: ${t}`,recoverySuggestion:'Try passing "EMAIL", "TOTP", a valid email, or OTP code as the challengeResponse.'})}async function zZ({challengeResponse:t,username:e,clientMetadata:n,session:r,config:a}){const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:u}=a;vn(t==="TOTP"||t==="SMS"||t==="EMAIL",Ke.IncorrectMFAMethod);const c={USERNAME:e,ANSWER:YZ(t)},f=Jn({username:e,userPoolId:s,userPoolClientId:i}),h={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:c,Session:r,ClientMetadata:n,ClientId:i,UserContextData:f};return la({endpointResolver:wt({endpointOverride:u})})({region:St(s),userAgentValue:Dt(Ye.ConfirmSignIn)},h)}async function FZ({challengeResponse:t,clientMetadata:e,session:n,username:r,requiredAttributes:a,config:s}){const{userPoolId:i,userPoolClientId:u,userPoolEndpoint:c}=s,f={...GZ(a),NEW_PASSWORD:t,USERNAME:r},h=Jn({username:r,userPoolId:i,userPoolClientId:u}),m={ChallengeName:"NEW_PASSWORD_REQUIRED",ChallengeResponses:f,ClientMetadata:e,Session:n,ClientId:u,UserContextData:h};return la({endpointResolver:wt({endpointOverride:c})})({region:St(i),userAgentValue:Dt(Ye.ConfirmSignIn)},m)}async function $Z(t,e,n,r,a){const{userPoolClientId:s,userPoolId:i,userPoolEndpoint:u}=r,c={USERNAME:t,PASSWORD:e},f=await a.getDeviceMetadata(t);f&&f.deviceKey&&(c.DEVICE_KEY=f.deviceKey);const h=Jn({username:t,userPoolId:i,userPoolClientId:s}),m={AuthFlow:"USER_PASSWORD_AUTH",AuthParameters:c,ClientMetadata:n,ClientId:s,UserContextData:h},y=await vp({endpointResolver:wt({endpointOverride:u})})({region:St(i),userAgentValue:Dt(Ye.SignIn)},m),S=y.ChallengeParameters?.USERNAME??y.ChallengeParameters?.USER_ID_FOR_SRP??t;return cu(S),y.ChallengeName==="DEVICE_SRP_AUTH"?bp({username:S,config:r,clientMetadata:n,session:y.Session,tokenOrchestrator:a}):y}async function BZ(t,e,n,r,a){return SD({username:t,password:e,clientMetadata:n,config:r,tokenOrchestrator:a,authFlow:"USER_SRP_AUTH"})}async function HZ(t,e,n,r){const{userPoolClientId:a,userPoolId:s,userPoolEndpoint:i}=n,u={USERNAME:t},c=await r.getDeviceMetadata(t);c&&c.deviceKey&&(u.DEVICE_KEY=c.deviceKey);const f=Jn({username:t,userPoolId:s,userPoolClientId:a}),h={AuthFlow:"CUSTOM_AUTH",AuthParameters:u,ClientMetadata:e,ClientId:a,UserContextData:f},g=await vp({endpointResolver:wt({endpointOverride:i})})({region:St(s),userAgentValue:Dt(Ye.SignIn)},h),y=g.ChallengeParameters?.USERNAME??t;return cu(y),g.ChallengeName==="DEVICE_SRP_AUTH"?bp({username:y,config:n,clientMetadata:e,session:g.Session,tokenOrchestrator:r}):g}async function qZ(t,e,n,r,a){ut(r);const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:u}=r,c=s?.split("_")[1]||"",f=await yp(c),h={USERNAME:t,SRP_A:f.A.toString(16),CHALLENGE_NAME:"SRP_A"},m=Jn({username:t,userPoolId:s,userPoolClientId:i}),g={AuthFlow:"CUSTOM_AUTH",AuthParameters:h,ClientMetadata:n,ClientId:i,UserContextData:m},y=vp({endpointResolver:wt({endpointOverride:u})}),{ChallengeParameters:S,Session:w}=await y({region:St(s),userAgentValue:Dt(Ye.SignIn)},g),x=S?.USERNAME??t;return cu(x),_d(J_,[e,S,n,w,f,r,a],x,a)}async function du(t){const{challengeName:e,challengeParameters:n,availableChallenges:r}=t,a=Kt.getConfig().Auth?.Cognito;switch(ut(a),e){case"CUSTOM_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_CUSTOM_CHALLENGE",additionalInfo:n}};case"MFA_SETUP":{const{signInSession:s,username:i}=Is.getState(),u=sO(oO(n.MFAS_CAN_SETUP))||[],c=XZ(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=sY({endpointResolver:wt({endpointOverride:a.userPoolEndpoint})}),{Session:g,SecretCode:y}=await m({region:St(a.userPoolId)},{Session:s});return Is.dispatch({type:"SET_SIGN_IN_SESSION",value:g}),{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_TOTP_SETUP",totpSetupDetails:WZ(y,i)}}}throw new $e({name:Rs.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:VZ(n.requiredAttributes)}};case"SELECT_MFA_TYPE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SELECTION",allowedMFATypes:sO(oO(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 RZ(n);return DZ(s)?s:du(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 $e({name:Rs.SignInException,message:`An error occurred during the sign in process. ${e} challengeName returned by the underlying service was not addressed.`})}function WZ(t,e){return{sharedSecret:t,getSetupUri:(n,r)=>{const a=`otpauth://totp/${n}:${r??e}?secret=${t}&issuer=${n}`;return new Zi(a)}}}function kd(t){if(t===L0.PasswordResetRequiredException)return{isSignedIn:!1,nextStep:{signInStep:"RESET_PASSWORD"}};if(t===L0.UserNotConfirmedException)return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_UP"}}}function VZ(t){return t?JSON.parse(t).map(n=>n.includes(OE)?n.replace(OE,""):n):[]}function GZ(t){if(!t)return{};const e={};return Object.entries(t).forEach(([n,r])=>{r&&(e[`${OE}${n}`]=r)}),e}async function KZ(t,e,n,r,a,s,i,u){const c=u?.userAttributes,f=u?.friendlyDeviceName;switch(e){case"WEB_AUTHN":case"SELECT_CHALLENGE":return r==="PASSWORD_SRP"||r==="PASSWORD"?{ChallengeName:r,Session:n,$metadata:{}}:MZ({username:t,session:n,selectedChallenge:r,config:a,clientMetadata:i});case"SELECT_MFA_TYPE":return zZ({challengeResponse:r,clientMetadata:i,session:n,username:t,config:a});case"MFA_SETUP":return jZ({challengeResponse:r,clientMetadata:i,session:n,username:t,deviceName:f,config:a});case"NEW_PASSWORD_REQUIRED":return FZ({challengeResponse:r,clientMetadata:i,session:n,username:t,requiredAttributes:c,config:a});case"CUSTOM_CHALLENGE":return _d(UZ,[{challengeResponse:r,clientMetadata:i,session:n,username:t,config:a,tokenOrchestrator:s}],t,s);case"SMS_MFA":case"SOFTWARE_TOKEN_MFA":case"SMS_OTP":case"EMAIL_OTP":return QZ({challengeName:e,challengeResponse:r,clientMetadata:i,session:n,username:t,config:a,tokenOrchestrator:s});case"PASSWORD":return PZ(t,r,i,a,n);case"PASSWORD_SRP":return LZ(t,r,i,a,n,s)}throw new $e({name:Rs.SignInException,message:`An error occurred during the sign in process.
5
+ ${e} challengeName returned by the underlying service was not addressed.`})}function YZ(t){let e="SMS_MFA";return t==="TOTP"&&(e="SOFTWARE_TOKEN_MFA"),t==="EMAIL"&&(e="EMAIL_OTP"),e}function ZZ(t){if(t==="SMS_MFA")return"SMS";if(t==="SOFTWARE_TOKEN_MFA")return"TOTP";if(t==="EMAIL_OTP")return"EMAIL"}function sO(t){if(t)return t.map(ZZ).filter(Boolean)}function oO(t){return t?JSON.parse(t):[]}function XZ(t){return t.filter(e=>e==="EMAIL"||e==="TOTP")}async function wD(){let t;try{t=await ev()}catch{}if(t&&t.userId&&t.username)throw new $e({name:DK,message:"There is already a signed in user.",recoverySuggestion:"Call signOut before calling signIn again."})}function Sp(t){return Is.getState().username??t}async function QZ({challengeName:t,challengeResponse:e,clientMetadata:n,session:r,username:a,config:s,tokenOrchestrator:i}){const{userPoolId:u,userPoolClientId:c,userPoolEndpoint:f}=s,h={USERNAME:a};t==="EMAIL_OTP"&&(h.EMAIL_OTP_CODE=e),t==="SMS_MFA"&&(h.SMS_MFA_CODE=e),t==="SMS_OTP"&&(h.SMS_OTP_CODE=e),t==="SOFTWARE_TOKEN_MFA"&&(h.SOFTWARE_TOKEN_MFA_CODE=e);const m=await i?.getDeviceMetadata(a);m&&m.deviceKey&&(h.DEVICE_KEY=m.deviceKey);const g=Jn({username:a,userPoolId:u,userPoolClientId:c}),y={ChallengeName:t,ChallengeResponses:h,Session:r,ClientMetadata:n,ClientId:c,UserContextData:g},w=await la({endpointResolver:wt({endpointOverride:f})})({region:St(u),userAgentValue:Dt(Ye.ConfirmSignIn)},y);return w.ChallengeName==="DEVICE_SRP_AUTH"?bp({username:a,config:s,clientMetadata:n,session:w.Session,tokenOrchestrator:i}):w}async function JZ(t){const e=Kt.getConfig().Auth?.Cognito;ut(e);const{username:n,password:r,options:a}=t,s={loginId:n,authFlowType:"CUSTOM_WITHOUT_SRP"},i=a?.clientMetadata;vn(!!n,Ke.EmptySignInUsername),vn(!r,Ke.CustomAuthSignInPassword);try{const{ChallengeName:u,ChallengeParameters:c,AuthenticationResult:f,Session:h}=await _d(HZ,[n,i,e,Wr],n,Wr),m=Sp(n);return lu({signInSession:h,username:m,challengeName:u,signInDetails:s}),f?(await To({username:m,...f,NewDeviceMetadata:await uu({userPoolId:e.userPoolId,userPoolEndpoint:e.userPoolEndpoint,newDeviceMetadata:f.NewDeviceMetadata,accessToken:f.AccessToken}),signInDetails:s}),Ja(),await Xi(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):du({challengeName:u,challengeParameters:c})}catch(u){Ja(),Na(u);const c=kd(u.name);if(c)return c;throw u}}async function eX(t){const{username:e,password:n,options:r}=t,a={loginId:e,authFlowType:"CUSTOM_WITH_SRP"},s=Kt.getConfig().Auth?.Cognito;ut(s);const i=r?.clientMetadata;vn(!!e,Ke.EmptySignInUsername),vn(!!n,Ke.EmptySignInPassword);try{const{ChallengeName:u,ChallengeParameters:c,AuthenticationResult:f,Session:h}=await qZ(e,n,i,s,Wr),m=Sp(e);return lu({signInSession:h,username:m,challengeName:u,signInDetails:a}),f?(await To({username:m,...f,NewDeviceMetadata:await uu({userPoolId:s.userPoolId,userPoolEndpoint:s.userPoolEndpoint,newDeviceMetadata:f.NewDeviceMetadata,accessToken:f.AccessToken}),signInDetails:a}),Ja(),await Xi(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):du({challengeName:u,challengeParameters:c})}catch(u){Ja(),Na(u);const c=kd(u.name);if(c)return c;throw u}}const xD=async()=>{throw new $e({name:oD,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 ek=xD;function NE(t){ek=t}function Br(t=!0){t&&(ek=xD),Ni.dispatch({type:"RESET"})}async function iO(t){const{username:e,password:n}=t,r=Kt.getConfig().Auth?.Cognito,a={loginId:e,authFlowType:"USER_SRP_AUTH"};ut(r);const s=t.options?.clientMetadata;vn(!!e,Ke.EmptySignInUsername),vn(!!n,Ke.EmptySignInPassword);try{const{ChallengeName:i,ChallengeParameters:u,AuthenticationResult:c,Session:f}=await BZ(e,n,s,r,Wr),h=Sp(e);return lu({signInSession:f,username:h,challengeName:i,signInDetails:a}),c?(await To({username:h,...c,NewDeviceMetadata:await uu({userPoolId:r.userPoolId,userPoolEndpoint:r.userPoolEndpoint,newDeviceMetadata:c.NewDeviceMetadata,accessToken:c.AccessToken}),signInDetails:a}),Ja(),await Xi(),Br(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):du({challengeName:i,challengeParameters:u})}catch(i){Ja(),Br(),Na(i);const u=kd(i.name);if(u)return u;throw i}}async function tX(t){const{username:e,password:n,options:r}=t,a=Kt.getConfig().Auth?.Cognito,s={loginId:e,authFlowType:"USER_PASSWORD_AUTH"};ut(a);const i=r?.clientMetadata;vn(!!e,Ke.EmptySignInUsername),vn(!!n,Ke.EmptySignInPassword);try{const{ChallengeName:u,ChallengeParameters:c,AuthenticationResult:f,Session:h}=await _d($Z,[e,n,i,a,Wr],e,Wr),m=Sp(e);return lu({signInSession:h,username:m,challengeName:u,signInDetails:s}),f?(await To({...f,username:m,NewDeviceMetadata:await uu({userPoolId:a.userPoolId,userPoolEndpoint:a.userPoolEndpoint,newDeviceMetadata:f.NewDeviceMetadata,accessToken:f.AccessToken}),signInDetails:s}),Ja(),await Xi(),Br(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):du({challengeName:u,challengeParameters:c})}catch(u){Ja(),Br(),Na(u);const c=kd(u.name);if(c)return c;throw u}}async function nX({username:t,clientMetadata:e,config:n,tokenOrchestrator:r,preferredChallenge:a,password:s,session:i}){const{userPoolId:u,userPoolClientId:c,userPoolEndpoint:f}=n,h=Jn({username:t,userPoolId:u,userPoolClientId:c}),m={USERNAME:t};if(a){if(n.passwordless&&(a==="EMAIL_OTP"&&!n.passwordless.emailOtpEnabled||a==="SMS_OTP"&&!n.passwordless.smsOtpEnabled||a==="WEB_AUTHN"&&!n.passwordless.webAuthn)&&vn(!1,Ke.InvalidPreferredChallenge),a==="PASSWORD_SRP")return vn(!!s,Ke.EmptySignInPassword),SD({username:t,password:s,clientMetadata:e,config:n,tokenOrchestrator:r,authFlow:"USER_AUTH",preferredChallenge:a});a==="PASSWORD"&&(vn(!!s,Ke.EmptySignInPassword),m.PASSWORD=s),m.PREFERRED_CHALLENGE=a}const g={AuthFlow:"USER_AUTH",AuthParameters:m,ClientMetadata:e,ClientId:c,UserContextData:h};i&&(g.Session=i);const S=await vp({endpointResolver:wt({endpointOverride:f})})({region:St(u),userAgentValue:Dt(Ye.SignIn)},g);return cu(t),S}async function CD(t){const{username:e,password:n,options:r}=t,a=Kt.getConfig().Auth?.Cognito,s={loginId:e,authFlowType:"USER_AUTH"};ut(a);const i=r?.clientMetadata,u=r?.preferredChallenge??a?.passwordless?.preferredChallenge;vn(!!e,Ke.EmptySignInUsername);try{const c={username:e,config:a,tokenOrchestrator:Wr,clientMetadata:i,preferredChallenge:u,password:n},f=Ni.getState();f.active&&f.username===e&&(c.session=f.session);const h=await nX(c),m=Sp(e);return lu({signInSession:h.Session,username:m,challengeName:h.ChallengeName,signInDetails:s}),h.AuthenticationResult?(await To({username:m,...h.AuthenticationResult,NewDeviceMetadata:await uu({userPoolId:a.userPoolId,userPoolEndpoint:a.userPoolEndpoint,newDeviceMetadata:h.AuthenticationResult.NewDeviceMetadata,accessToken:h.AuthenticationResult.AccessToken}),signInDetails:s}),Ja(),await Xi(),Br(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):du({challengeName:h.ChallengeName,challengeParameters:h.ChallengeParameters,availableChallenges:"AvailableChallenges"in h?h.AvailableChallenges:void 0})}catch(c){Ja(),Br(),Na(c);const f=kd(c.name);if(f)return f;throw c}}async function tk(t){Br(!1);const e=t.options?.authFlowType;switch(await wD(),e){case"USER_SRP_AUTH":return iO(t);case"USER_PASSWORD_AUTH":return tX(t);case"CUSTOM_WITHOUT_SRP":return JZ(t);case"CUSTOM_WITH_SRP":return eX(t);case"USER_AUTH":return CD(t);default:return iO(t)}}const ED=180*1e3;function rX(t){const e=P0.listen("auth-internal",async({payload:r})=>{r.event==="confirmSignUp"&&r.data?.isSignUpComplete&&(P0.dispatch("auth-internal",{event:"autoSignIn"}),NE(kD(t)),e())}),n=setTimeout(()=>{e(),clearTimeout(n),Br()},ED)}function _D(t,e){let n;return r=>{n||t(...r),clearTimeout(n),n=setTimeout(()=>{n=void 0},e)}}function aX(t,e,n){const r=Date.now(),a=setInterval(async()=>{if(Date.now()-r>ED)clearInterval(a),n(new $e({name:oD,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."})),Br();else try{const u=await tk(t);u.nextStep.signInStep!=="CONFIRM_SIGN_UP"&&(e(u),clearInterval(a),Br())}catch(u){clearInterval(a),n(u),Br()}},5e3)}const sX=_D(aX,300),oX=_D(lX,300);function iX(t){return async()=>new Promise((e,n)=>{sX([t,e,n])})}async function lX(t,e,n){try{const r=t?.options?.authFlowType==="USER_AUTH"?await CD(t):await tk(t);e(r),Br()}catch(r){n(r),Br()}}function kD(t){return async()=>new Promise((e,n)=>{oX([t,e,n])})}const uX=kD,cX=()=>async t=>{if(t.statusCode>=300){const e=await Sd(t);if(Na(e),e.name===AE.InvalidParameterException&&/'password'/.test(e.message)&&/Member must not be null/.test(e.message)){const n=Ke.EmptySignUpPassword,{message:r,recoverySuggestion:a}=sD[n];throw new $e({name:n,message:r,recoverySuggestion:a})}throw new $e({name:e.name,message:e.message})}return mp(t)},dX=t=>Mn(Xn,Zn("SignUp"),cX(),{...Qn,...t});async function fX(t){const{username:e,password:n,options:r}=t,a=Kt.getConfig().Auth?.Cognito,s=a?.signUpVerificationMethod??"code",{clientMetadata:i,validationData:u,autoSignIn:c}=t.options??{};ut(a),vn(!!e,Ke.EmptySignUpUsername);const f=typeof c!="boolean"?c:void 0,h={username:e,options:f};f?.authFlowType!=="CUSTOM_WITHOUT_SRP"&&(h.password=n);const{userPoolId:m,userPoolClientId:g,userPoolEndpoint:y}=a,S=dX({endpointResolver:wt({endpointOverride:y})}),w={Username:e,Password:void 0,UserAttributes:r?.userAttributes&&I5(r?.userAttributes),ClientMetadata:i,ValidationData:u&&I5(u),ClientId:g,UserContextData:Jn({username:e,userPoolId:m,userPoolClientId:g})};n&&(w.Password=n);const{UserSub:x,CodeDeliveryDetails:E,UserConfirmed:A,Session:k}=await S({region:St(m),userAgentValue:Dt(Ye.SignUp)},w);(f||c===!0)&&(Ni.dispatch({type:"START"}),Ni.dispatch({type:"SET_USERNAME",value:e}),Ni.dispatch({type:"SET_SESSION",value:k}));const I={destination:E?.Destination,deliveryMedium:E?.DeliveryMedium,attributeName:E?.AttributeName},N=!!A,O=Ni.getState().active;if(N)return O?(NE(uX(h)),{isSignUpComplete:!0,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN"},userId:x}):{isSignUpComplete:!0,nextStep:{signUpStep:"DONE"},userId:x};if(O){if(s==="link")return NE(iX(h)),{isSignUpComplete:!1,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN",codeDeliveryDetails:I},userId:x};rX(h)}return{isSignUpComplete:!1,nextStep:{signUpStep:"CONFIRM_SIGN_UP",codeDeliveryDetails:I},userId:x}}const hX=t=>Mn(Xn,Zn("ForgotPassword"),cr(),{...Qn,...t});async function AD(t){const{username:e}=t;vn(!!e,Ke.EmptyResetPasswordUsername);const n=Kt.getConfig().Auth?.Cognito;ut(n);const{userPoolClientId:r,userPoolId:a,userPoolEndpoint:s}=n,i=t.options?.clientMetadata,u=Jn({username:e,userPoolId:a,userPoolClientId:r}),h=(await hX({endpointResolver:wt({endpointOverride:s})})({region:St(a),userAgentValue:Dt(Ye.ResetPassword)},{Username:e,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 pX=t=>Mn(Xn,Zn("ConfirmForgotPassword"),cr(),{...Qn,...t});async function mX(t){const e=Kt.getConfig().Auth?.Cognito;ut(e);const{userPoolClientId:n,userPoolId:r,userPoolEndpoint:a}=e,{username:s,newPassword:i}=t;vn(!!s,Ke.EmptyConfirmResetPasswordUsername),vn(!!i,Ke.EmptyConfirmResetPasswordNewPassword);const u=t.confirmationCode;vn(!!u,Ke.EmptyConfirmResetPasswordConfirmationCode);const c=t.options?.clientMetadata,f=Jn({username:s,userPoolId:r,userPoolClientId:n});await pX({endpointResolver:wt({endpointOverride:a})})({region:St(e.userPoolId),userAgentValue:Dt(Ye.ConfirmResetPassword)},{Username:s,ConfirmationCode:u,Password:i,ClientMetadata:c,ClientId:e.userPoolClientId,UserContextData:f})}const gX=t=>Mn(Xn,Zn("ResendConfirmationCode"),cr(),{...Qn,...t});async function vX(t){const{username:e}=t;vn(!!e,Ke.EmptySignUpUsername);const n=Kt.getConfig().Auth?.Cognito;ut(n);const{userPoolClientId:r,userPoolId:a,userPoolEndpoint:s}=n,i=t.options?.clientMetadata,u=Jn({username:e,userPoolId:a,userPoolClientId:r}),c=gX({endpointResolver:wt({endpointOverride:s})}),{CodeDeliveryDetails:f}=await c({region:St(n.userPoolId),userAgentValue:Dt(Ye.ResendSignUpCode)},{Username:e,ClientMetadata:i,ClientId:n.userPoolClientId,UserContextData:u}),{DeliveryMedium:h,AttributeName:m,Destination:g}={...f};return{destination:g,deliveryMedium:h,attributeName:m||void 0}}const yX=t=>Mn(Xn,Zn("ConfirmSignUp"),cr(),{...Qn,...t});async function bX(t){const{username:e,confirmationCode:n,options:r}=t,a=Kt.getConfig().Auth?.Cognito;ut(a);const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:u}=a,c=r?.clientMetadata;vn(!!e,Ke.EmptyConfirmSignUpUsername),vn(!!n,Ke.EmptyConfirmSignUpCode);const f=Jn({username:e,userPoolId:s,userPoolClientId:i}),h=yX({endpointResolver:wt({endpointOverride:u})}),{Session:m}=await h({region:St(a.userPoolId),userAgentValue:Dt(Ye.ConfirmSignUp)},{Username:e,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=Ni.getState();if(!w.active||w.username!==e){g(S),Br();return}Ni.dispatch({type:"SET_SESSION",value:m});const x=P0.listen("auth-internal",({payload:E})=>{E.event==="autoSignIn"&&(g({isSignUpComplete:!0,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN"}}),x())});P0.dispatch("auth-internal",{event:"confirmSignUp",data:S})}catch(S){y(S)}})}async function RD(t){const{challengeResponse:e,options:n}=t,{username:r,challengeName:a,signInSession:s,signInDetails:i}=Is.getState(),u=Kt.getConfig().Auth?.Cognito;ut(u);const c=n?.clientMetadata;if(vn(!!e,Ke.EmptyChallengeResponse),!r||!a||!s)throw new $e({name:Rs.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 KZ(r,a,s,e,u,Wr,c,n);return lu({signInSession:f,username:r,challengeName:h,signInDetails:i}),m?(await To({username:r,...m,NewDeviceMetadata:await uu({userPoolId:u.userPoolId,userPoolEndpoint:u.userPoolEndpoint,newDeviceMetadata:m.NewDeviceMetadata,accessToken:m.AccessToken}),signInDetails:i}),Ja(),await Xi(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):du({challengeName:h,challengeParameters:g})}catch(f){Na(f);const h=kd(f.name);if(h)return h;throw f}}const SX=t=>Mn(Xn,Zn("GetUser"),cr(),{...Qn,...t}),wX=t=>Mn(Xn,Zn("VerifyUserAttribute"),cr(),{...Qn,...t});async function xX(t){const e=Kt.getConfig().Auth?.Cognito;ut(e);const{userPoolEndpoint:n,userPoolId:r}=e,{confirmationCode:a,userAttributeKey:s}=t;vn(!!a,Ke.EmptyConfirmUserAttributeCode);const{tokens:i}=await X1({forceRefresh:!1});wd(i),await wX({endpointResolver:wt({endpointOverride:n})})({region:St(r),userAgentValue:Dt(Ye.ConfirmUserAttribute)},{AccessToken:i.accessToken.toString(),AttributeName:s,Code:a})}new lr("AuthError");const CX={oauthSignInError:{message:Kn.OAUTH_ERROR,log:"Make sure Cognito Hosted UI has been configured correctly"},noConfig:{message:Kn.DEFAULT_MSG},missingAuthConfig:{message:Kn.DEFAULT_MSG},emptyUsername:{message:Kn.EMPTY_USERNAME},invalidUsername:{message:Kn.INVALID_USERNAME},emptyPassword:{message:Kn.EMPTY_PASSWORD},emptyCode:{message:Kn.EMPTY_CODE},signUpError:{message:Kn.SIGN_UP_ERROR},noMFA:{message:Kn.NO_MFA},invalidMFA:{message:Kn.INVALID_MFA},emptyChallengeResponse:{message:Kn.EMPTY_CHALLENGE},noUserSession:{message:Kn.NO_USER_SESSION},deviceConfig:{message:Kn.DEVICE_CONFIG},networkError:{message:Kn.NETWORK_ERROR},autoSignInError:{message:Kn.AUTOSIGNIN_ERROR},default:{message:Kn.DEFAULT_MSG}},Fi=(t,e)=>new $e({message:t??"An error has occurred during the oauth process.",name:Rs.OAuthSignInError,recoverySuggestion:CX.oauthSignInError.log});var ME;(function(t){t.NoConfig="noConfig",t.MissingAuthConfig="missingAuthConfig",t.EmptyUsername="emptyUsername",t.InvalidUsername="invalidUsername",t.EmptyPassword="emptyPassword",t.EmptyCode="emptyCode",t.SignUpError="signUpError",t.NoMFA="noMFA",t.InvalidMFA="invalidMFA",t.EmptyChallengeResponse="emptyChallengeResponse",t.NoUserSession="noUserSession",t.Default="default",t.DeviceConfig="deviceConfig",t.NetworkError="networkError",t.AutoSignInError="autoSignInError",t.OAuthSignInError="oauthSignInError"})(ME||(ME={}));const EX="`signInWithRedirect` has been canceled.",_X="An error occurred while validating the state.",kX="Try to initiate an OAuth flow from Amplify",ID=async t=>{const e=await Fr.loadOAuthState(),n=t===e?e:void 0;if(!n)throw new $e({name:ME.OAuthSignInError,message:t===null?EX:_X,recoverySuggestion:t===null?void 0:kX});return n},TD=async({currentUrl:t,userAgentValue:e,clientId:n,redirectUri:r,responseType:a,domain:s,preferPrivateSession:i})=>{const u=new Zi(t),c=u.searchParams.get("error"),f=u.searchParams.get("error_description");if(c)throw Fi(f??c);return a==="code"?AX({currentUrl:t,userAgentValue:e,clientId:n,redirectUri:r,domain:s,preferPrivateSession:i}):RX({currentUrl:t,redirectUri:r,preferPrivateSession:i})},AX=async({currentUrl:t,userAgentValue:e,clientId:n,redirectUri:r,domain:a,preferPrivateSession:s})=>{const i=new Zi(t),u=i.searchParams.get("code"),c=i.searchParams.get("state");if(!u||!c)throw Fi("User cancelled OAuth flow.");const f=await ID(c),h="https://"+a+"/oauth2/token",m=await Fr.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:E,error_message:A,token_type:k,expires_in:I}=await(await fetch(h,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",[OV]:e},body:y})).json();if(E)throw Fi(A??E);const N=(S&&So(S).payload.username)??"username";return await To({username:N,AccessToken:S,IdToken:x,RefreshToken:w}),OD({redirectUri:r,state:f,preferPrivateSession:s})},RX=async({currentUrl:t,redirectUri:e,preferPrivateSession:n})=>{const r=new Zi(t),{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 Fi(f??h);if(!s)throw Fi("No access token returned from OAuth flow.");const m=await ID(i),g=(s&&So(s).payload.username)??"username";return await To({username:g,AccessToken:s,IdToken:a}),OD({redirectUri:e,state:m,preferPrivateSession:n})},OD=async({redirectUri:t,state:e,preferPrivateSession:n})=>{await Wr.setOAuthMetadata({oauthSignIn:!0}),await Fr.clearOAuthData(),await Fr.storeOAuthSignIn(!0,n),fD(),OX(t),IX(e)&&As.dispatch("auth",{event:"customOAuthState",data:RK(TX(e))},"Auth",ks),As.dispatch("auth",{event:"signInWithRedirect"},"Auth",ks),await Xi()},IX=t=>/-/.test(t),TX=t=>t.split("-").splice(1).join("-"),OX=t=>{typeof window<"u"&&typeof window.history<"u"&&window.history.replaceState(window.history.state,"",t)};function nk(t,e){{const n=t?.find(NX)??t?.find(MX),r=t?.find(LX)??t?.find(PX);if(n)return n;throw r?HK:$K}}const NX=t=>t.startsWith(String(window.location.origin+(window.location.pathname||"/"))),MX=t=>t.includes(String(window.location.hostname)),PX=t=>t.startsWith("http://"),LX=t=>t.startsWith("https://"),rk=async t=>{fD(),await Fr.clearOAuthInflightData(),As.dispatch("auth",{event:"signInWithRedirect_failure",data:{error:t}},"Auth",ks)},DX=async t=>{try{ut(t),G1(t),Fr.setAuthConfig(t)}catch{return}if(await Fr.loadOAuthInFlight())try{const e=window.location.href,{loginWith:n,userPoolClientId:r}=t,{domain:a,redirectSignIn:s,responseType:i}=n.oauth,u=nk(s);await TD({currentUrl:e,clientId:r,domain:a,redirectUri:u,responseType:i,userAgentValue:Dt(Ye.SignInWithRedirect)})}catch(e){await rk(e)}};Z1()&&Kt[DL](DX);const UX={Google:"Google",Facebook:"Facebook",Amazon:"LoginWithAmazon",Apple:"SignInWithApple"},ND=async t=>{window?.location&&(window.location.href=t.replace("http://","https://"))},lO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",jX=t=>{const e=new Uint8Array(t);F_().getRandomValues(e);let n="",r;for(const a of e)n+=lO.charAt(a%lO.length);return{value:n,method:"S256",toCodeChallenge(){return r||(r=zX(n),r)}}};function zX(t){const e=new Gl;return e.update(t),FX(Xc.convert(e.digestSync(),{urlSafe:!0}))}function FX(t){return t.replace(/=/g,"")}const $X=()=>AK(32),BX=t=>{async function e(n){if(n.persisted&&await t.loadOAuthInFlight()){const a=Fi("User cancelled OAuth flow.");await rk(a)}window.removeEventListener("pageshow",e)}window.addEventListener("pageshow",e)};async function MD(t){const e=Kt.getConfig().Auth?.Cognito;ut(e),G1(e),Fr.setAuthConfig(e),t?.options?.prompt||await wD();let n="COGNITO",r;return typeof t?.provider=="string"?n=UX[t.provider]:t?.provider?.custom?n=t.provider.custom:t?.provider?.idpIdentifier&&({idpIdentifier:r}=t.provider),HX({oauthConfig:e.loginWith.oauth,clientId:e.userPoolClientId,provider:n,idpIdentifier:r,customState:t?.customState,preferPrivateSession:t?.options?.preferPrivateSession,options:{loginHint:t?.options?.loginHint,lang:t?.options?.lang,nonce:t?.options?.nonce,prompt:t?.options?.prompt},authSessionOpener:t?.options?.authSessionOpener})}const HX=async({oauthConfig:t,provider:e,idpIdentifier:n,clientId:r,customState:a,preferPrivateSession:s,options:i,authSessionOpener:u})=>{const{domain:c,redirectSignIn:f,responseType:h,scopes:m}=t,{loginHint:g,lang:y,nonce:S,prompt:w}=i??{},x=$X(),E=u||ND,A=a?`${x}-${IK(a)}`:x,{value:k,method:I,toCodeChallenge:N}=jX(128),O=nk(t.redirectSignIn);Z1()&&Fr.storeOAuthInFlight(!0),Fr.storeOAuthState(A),Fr.storePKCE(k);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",e),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",A),h==="code"&&(T.append("code_challenge",N()),T.append("code_challenge_method",I));const P=`https://${c}/oauth2/authorize?${T.toString()}`;BX(Fr);const{type:D,error:q,url:U}=await E(P,f,s)??{};try{if(D==="error")throw Fi(String(q));if(D==="canceled")throw Fi(String(D));D==="success"&&U&&await TD({currentUrl:U,clientId:r,domain:c,redirectUri:O,responseType:h,userAgentValue:Dt(Ye.SignInWithRedirect),preferPrivateSession:s})}catch(j){throw await rk(j),j}},qX=async t=>{const e=t.getConfig().Auth?.Cognito;ut(e);const{userPoolEndpoint:n,userPoolId:r}=e,{tokens:a}=await BL(t,{forceRefresh:!1});wd(a);const s=SX({endpointResolver:wt({endpointOverride:n})}),{UserAttributes:i}=await s({region:St(r),userAgentValue:Dt(Ye.FetchUserAttributes)},{AccessToken:a.accessToken.toString()});return LK(i)},PD=()=>qX(Kt),WX=async t=>{await t.clearOAuthData(),Wr.clearTokens(),await HL(),As.dispatch("auth",{event:"signedOut"},"Auth",ks)},VX=async(t,e=!1,n)=>{G1(t);const{loginWith:r,userPoolClientId:a}=t,{domain:s,redirectSignOut:i}=r.oauth,u=nk(i),c=`https://${s}/logout?${Object.entries({client_id:a,logout_uri:encodeURIComponent(u)}).map(([f,h])=>`${f}=${h}`).join("&")}`;return ND(c)},GX=async(t,e,n,r)=>{const{isOAuthSignIn:a}=await e.loadOAuthSignIn(),s=await n.getOAuthMetadata();if(await WX(e),a||s?.oauthSignIn)return VX(t,!1)},KX=t=>Mn(Xn,Zn("RevokeToken"),cr(),{...Qn,...t}),YX=new lr("Auth");async function ZX(t){const e=Kt.getConfig().Auth?.Cognito;ut(e),await XX(e);let n;try{G1(e),n=!0}catch{n=!1}if(n){const r=new dD(gp);r.setAuthConfig(e);const{type:a}=await GX(e,r,Wr)??{};if(a==="error")throw new $e({name:qK,message:"An error occurred when attempting to log out from OAuth provider."})}else Wr.clearTokens(),await HL(),As.dispatch("auth",{event:"signedOut"},"Auth",ks)}async function XX(t){try{const{userPoolEndpoint:e,userPoolId:n,userPoolClientId:r}=t,a=await Wr.getTokenStore().loadTokens();iD(a),QX(a.accessToken)&&await KX({endpointResolver:wt({endpointOverride:e})})({region:St(n),userAgentValue:Dt(Ye.SignOut)},{ClientId:r,Token:a.refreshToken})}catch{YX.debug("Client signOut error caught but will proceed with token removal")}}const QX=t=>!!t?.payload?.origin_jti,JX=t=>Mn(Xn,Zn("GetUserAttributeVerificationCode"),cr(),{...Qn,...t}),eQ=async t=>{const{userAttributeKey:e,options:n}=t,r=Kt.getConfig().Auth?.Cognito,a=n?.clientMetadata;ut(r);const{userPoolEndpoint:s,userPoolId:i}=r,{tokens:u}=await X1({forceRefresh:!1});wd(u);const c=JX({endpointResolver:wt({endpointOverride:s})}),{CodeDeliveryDetails:f}=await c({region:St(i),userAgentValue:Dt(Ye.SendUserAttributeVerificationCode)},{AccessToken:u.accessToken.toString(),ClientMetadata:a,AttributeName:e}),{DeliveryMedium:h,AttributeName:m,Destination:g}={...f};return{destination:g,deliveryMedium:h,attributeName:m}},tQ={identityId:"identityId"},nQ=new lr("DefaultIdentityIdStore");class LD{setAuthConfig(e){n0(e.Cognito),this.authConfig=e,this._authKeys=rQ("Cognito",e.Cognito.identityPoolId)}constructor(e){this._authKeys={},this._hasGuestIdentityId=!1,this.keyValueStorage=e}async loadIdentityId(){n0(this.authConfig?.Cognito);try{if(this._primaryIdentityId)return{id:this._primaryIdentityId,type:"primary"};{const e=await this.keyValueStorage.getItem(this._authKeys.identityId);return e?(this._hasGuestIdentityId=!0,{id:e,type:"guest"}):null}}catch(e){return nQ.log("Error getting stored IdentityId.",e),null}}async storeIdentityId(e){n0(this.authConfig?.Cognito),e.type==="guest"?(this.keyValueStorage.setItem(this._authKeys.identityId,e.id),this._primaryIdentityId=void 0,this._hasGuestIdentityId=!0):(this._primaryIdentityId=e.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 rQ=(t,e)=>V_(tQ)(`com.amplify.${t}`,e),PE=({endpointOverride:t})=>e=>t?{url:new Zi(t)}:gK(e);function DD(t){const e=So(t).payload.iss,n={};if(!e)throw new $e({name:"InvalidIdTokenException",message:"Invalid Idtoken."});const r=e.replace(/(^\w+:|^)\/\//,"");return n[r]=t,n}async function aQ({tokens:t,authConfig:e,identityIdStore:n}){n.setAuthConfig({Cognito:e});const r=await n.loadIdentityId();if(r)return r.id;const a=t?.idToken?DD(t.idToken.toString()):{},s=await sQ(a,e);return n.storeIdentityId({id:s,type:t?"primary":"guest"}),s}async function sQ(t,e){const n=e?.identityPoolId,r=kE(n),a=hK({endpointResolver:PE({endpointOverride:e.identityPoolEndpoint})});let s;try{s=(await a({region:r},{IdentityPoolId:n,Logins:t})).IdentityId}catch(i){throw Na(i),new $e(i)}if(!s)throw new $e({name:"GetIdResponseException",message:"Received undefined response from getId operation",recoverySuggestion:"Make sure to pass a valid identityPoolId in the configuration."});return s}const rg=new lr("CognitoCredentialsProvider"),uO=3e3*1e3;class UD{constructor(e){this._nextCredentialsRefresh=0,this._identityIdStore=e}async clearCredentialsAndIdentityId(){rg.debug("Clearing out credentials and identityId"),this._credentialsAndIdentityId=void 0,await this._identityIdStore.clearIdentityId()}async clearCredentials(){rg.debug("Clearing out in-memory credentials"),this._credentialsAndIdentityId=void 0}async getCredentialsAndIdentityId(e){const n=e.authenticated,{tokens:r}=e,{authConfig:a}=e;try{n0(a?.Cognito)}catch{return}if(!n&&!a.Cognito.allowGuestAccess)return;const{forceRefresh:s}=e,i=this.hasTokenChanged(r),u=await aQ({tokens:r,authConfig:a.Cognito,identityIdStore:this._identityIdStore});return(s||i)&&this.clearCredentials(),n?(GK(r),this.credsForOIDCTokens(a.Cognito,r,u)):this.getGuestCredentials(u,a.Cognito)}async getGuestCredentials(e,n){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!1)return rg.info("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const r=kE(n.identityPoolId),a=k5({endpointResolver:PE({endpointOverride:n.identityPoolEndpoint})});let s;try{s=await a({region:r},{IdentityId:e})}catch(i){throw Na(i),new $e(i)}if(s?.Credentials?.AccessKeyId&&s?.Credentials?.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+uO;const i={credentials:{accessKeyId:s.Credentials.AccessKeyId,secretAccessKey:s.Credentials.SecretKey,sessionToken:s.Credentials.SessionToken,expiration:s.Credentials.Expiration},identityId:e};return s.IdentityId&&(i.identityId=s.IdentityId,this._identityIdStore.storeIdentityId({id:s.IdentityId,type:"guest"})),this._credentialsAndIdentityId={...i,isAuthenticatedCreds:!1},i}else throw new $e({name:"CredentialsNotFoundException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}async credsForOIDCTokens(e,n,r){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!0)return rg.debug("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const a=n.idToken?DD(n.idToken.toString()):{},s=kE(e.identityPoolId),i=k5({endpointResolver:PE({endpointOverride:e.identityPoolEndpoint})});let u;try{u=await i({region:s},{IdentityId:r,Logins:a})}catch(c){throw Na(c),new $e(c)}if(u?.Credentials?.AccessKeyId&&u?.Credentials?.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+uO;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 $e({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(e){return!!e&&!!this._credentialsAndIdentityId?.associatedIdToken&&e.idToken?.toString()!==this._credentialsAndIdentityId.associatedIdToken}}const oQ=new UD(new LD(gp)),jD={configure(t,e){const n=jL(t),r=new CK({sameSite:"lax"}),a=e?.ssr?r:gp,s=e?.ssr?new UD(new LD(r)):oQ;if(!n.Auth||e?.Auth){Kt.configure(n,e);return}a0.setAuthConfig(n.Auth),a0.setKeyValueStorage(a),Kt.configure(n,{...e,Auth:{tokenProvider:a0,credentialsProvider:s}})},getConfig(){return Kt.getConfig()}},iQ=["internal","acme","tailscale","off"],lQ=t=>typeof t=="string"&&iQ.includes(t),nv=()=>{const t=globalThis.__REMIT_CONFIG__??{};return{apiUrl:t.apiUrl??"/api",appOrigin:t.appOrigin??"",betterAuthEnabled:t.betterAuthEnabled??!1,cognito:{userPoolId:t.cognito?.userPoolId??"",clientId:t.cognito?.clientId??"",domain:t.cognito?.domain??"",region:t.cognito?.region??""},rum:{appMonitorId:t.rum?.appMonitorId??"",identityPoolId:t.rum?.identityPoolId??"",region:t.rum?.region??"eu-west-1"},mailboxPollIntervalSeconds:t.mailboxPollIntervalSeconds!=null?String(t.mailboxPollIntervalSeconds):void 0,disableDevtools:t.disableDevtools??!1,tlsMode:lQ(t.tlsMode)?t.tlsMode:"off"}},uQ=()=>{const t=nv(),{userPoolId:e,clientId:n,domain:r,region:a}=t.cognito;return!e||!n?null:{userPoolId:e,userPoolClientId:n,domain:r,region:a,appOrigin:t.appOrigin}},LE=uQ(),rv=()=>LE!==null,zD=()=>{if(!LE){console.warn("[auth] Cognito user pool is not configured. Running in local dev mode without Cognito auth.");return}const{userPoolId:t,userPoolClientId:e,domain:n,appOrigin:r}=LE;jD.configure({Auth:{Cognito:{userPoolId:t,userPoolClientId:e,loginWith:n?{oauth:{domain:n,scopes:["openid","email","profile"],redirectSignIn:r?[r]:[],redirectSignOut:r?[r]:[],responseType:"code"}}:void 0}}})};var cQ={};const i0=Object.create(null),Mf=t=>cQ||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?i0:globalThis),wi=new Proxy(i0,{get(t,e){return Mf()[e]??i0[e]},has(t,e){return e in Mf()||e in i0},set(t,e,n){const r=Mf(!0);return r[e]=n,!0},deleteProperty(t,e){if(!e)return!1;const n=Mf(!0);return delete n[e],!0},ownKeys(){const t=Mf(!0);return Object.keys(t)}});wi.NODE_ENV;var l0=class extends Error{constructor(t,e){super(t,e),this.name="BetterAuthError",this.message=t,this.stack=""}};const dQ=47;function FD(t){let e=t.length;for(;e>0&&t.charCodeAt(e-1)===dQ;)e--;return e===t.length?t:t.slice(0,e)}function fQ(t){try{return(FD(new URL(t).pathname)||"/")!=="/"}catch{throw new l0(`Invalid base URL: ${t}. Please provide a valid base URL.`)}}function hQ(t){try{const e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new l0(`Invalid base URL: ${t}. URL must include 'http://' or 'https://'`)}catch(e){throw e instanceof l0?e:new l0(`Invalid base URL: ${t}. Please provide a valid base URL.`,{cause:e})}}function cO(t,e="/api/auth"){if(hQ(t),fQ(t))return t;const n=FD(t);return!e||e==="/"?n:(e=e.startsWith("/")?e:`/${e}`,`${n}${e}`)}function pQ(t,e,n,r,a){{const s=wi.BETTER_AUTH_URL||wi.NEXT_PUBLIC_BETTER_AUTH_URL||wi.PUBLIC_BETTER_AUTH_URL||wi.NUXT_PUBLIC_BETTER_AUTH_URL||wi.NUXT_PUBLIC_AUTH_URL||(wi.BASE_URL!=="/"?wi.BASE_URL:void 0);if(s)return cO(s,e)}if(typeof window<"u"&&window.location)return cO(window.location.origin,e)}const mQ={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*:/},gQ=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,dO={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},vQ=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function yQ(t){return t instanceof Date&&!isNaN(t.getTime())}function bQ(t){const e=vQ.exec(t);if(!e)return null;const[,n,r,a,s,i,u,c,f,h,m]=e,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 yQ(g)?g:null}function SQ(t,e={}){const{strict:n=!1,warnings:r=!1,reviver:a,parseDates:s=!0}=e;if(typeof t!="string")return t;const i=t.trim(),u=i.toLowerCase();if(u.length<=9&&u in dO)return dO[u];if(!gQ.test(i)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return t}if(Object.entries(mQ).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=bQ(h);if(m)return m}return a?a(f,h):h})}catch(c){if(n)throw c;return t}}function wQ(t,e={strict:!0}){return SQ(t,e)}const xQ=["javascript:","data:","vbscript:"];function CQ(t){let e;try{e=new URL(t)}catch{return!0}return!xQ.includes(e.protocol)}const EQ={id:"redirect",name:"Redirect",hooks:{onSuccess(t){if(t.data?.url&&t.data?.redirect&&CQ(t.data.url)&&typeof window<"u"&&window.location&&window.location)try{window.location.href=t.data.url}catch{}}}};let Ka=[],xi=0;const u0=4,_Q=globalThis.nanostoresGlobal||={epoch:0};let kQ=()=>{for(xi=0;xi<Ka.length;xi+=u0)Ka[xi](Ka[xi+1].value,Ka[xi+2],Ka[xi+3]);Ka.length=0};const fO=t=>{let e=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},init:t,lc:0,listen(r){return n.lc=e.push(r),()=>{for(let s=xi+u0;s<Ka.length;)Ka[s]===r?Ka.splice(s,u0):s+=u0;let a=e.indexOf(r);~a&&(e.splice(a,1),--n.lc||n.off())}},notify(r,a){_Q.epoch++;let s=!Ka.length&&!0;for(let i of e)Ka.push(i,n,r,a);s&&kQ()},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:t};return n},AQ=2,RQ=5,ag=6,sg=10;let $D=(t,e,n,r)=>(t.events=t.events||{},t.events[n+sg]||(t.events[n+sg]=r(a=>{t.events[n].reduceRight((s,i)=>(i(s),s),{shared:{},...a})})),t.events[n]=t.events[n]||[],t.events[n].push(e),()=>{let a=t.events[n],s=a.indexOf(e);a.splice(s,1),a.length||(delete t.events[n],t.events[n+sg](),delete t.events[n+sg])}),IQ=(t,e)=>$D(t,e,AQ,n=>{let r=t.set,a=t.setKey;return t.setKey&&(t.setKey=(s,i)=>{let u;if(n({abort:()=>{u=!0},changed:s,newValue:{...t.value,[s]:i}}),!u)return a(s,i)}),t.set=s=>{let i;if(n({abort:()=>{i=!0},newValue:s}),!i)return r(s)},()=>{t.set=r,t.setKey=a}});const TQ=1e3;let OQ=(t,e)=>$D(t,r=>{let a=e(r);a&&t.events[ag].push(a)},RQ,r=>{let a=t.listen;t.listen=(...i)=>(!t.lc&&!t.active&&(t.active=!0,r()),a(...i));let s=t.off;return t.events[ag]=[],t.off=()=>{s(),setTimeout(()=>{if(t.active&&!t.lc){t.active=!1;for(let i of t.events[ag])i();t.events[ag]=[]}},TQ)},()=>{t.listen=a,t.off=s}});function NQ(t,e,n){let r=new Set(e);return t.listen((a,s,i)=>{(i===void 0?e.some(u=>a[u]!==s[u]):r.has(i)||r.has(i.split(/\.|\[/)[0]))&&n(a,s,i)})}function hO(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}function U0(t,e){if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!U0(t[n],e[n]))return!1;return!0}if(hO(t)&&hO(e)){const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(const a of n)if(!(a in e)||!U0(t[a],e[a]))return!1;return!0}return!1}function MQ(t,e){return IQ(t,({newValue:n,abort:r})=>{e(t.value,n)&&r()})}const AS=Symbol.for("better-auth:broadcast-channel"),PQ=()=>Math.floor(Date.now()/1e3);var LQ=class{listeners=new Set;name;constructor(t="better-auth.message"){this.name=t}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}post(t){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...t,timestamp:PQ()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=e=>{if(e.key!==this.name)return;const n=JSON.parse(e.newValue??"{}");n?.event!=="session"||!n?.data||this.listeners.forEach(r=>r(n))};return window.addEventListener("storage",t),()=>{window.removeEventListener("storage",t)}}};function RS(t="better-auth.message"){return globalThis[AS]||(globalThis[AS]=new LQ(t)),globalThis[AS]}const IS=Symbol.for("better-auth:focus-manager");var DQ=class{listeners=new Set;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setFocused(t){this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",t,!1),()=>{document.removeEventListener("visibilitychange",t,!1)}}};function pO(){return globalThis[IS]||(globalThis[IS]=new DQ),globalThis[IS]}const TS=Symbol.for("better-auth:online-manager");var UQ=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setOnline(t){this.isOnline=t,this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>this.setOnline(!0),e=()=>this.setOnline(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",e,!1),()=>{window.removeEventListener("online",t,!1),window.removeEventListener("offline",e,!1)}}};function OS(){return globalThis[TS]||(globalThis[TS]=new UQ),globalThis[TS]}const NS=()=>Math.floor(Date.now()/1e3),jQ=5;function zQ(t){const{fetchSession:e,shouldPollSession:n=()=>!0,sessionSignal:r,options:a={}}=t,s=a.sessionOptions?.refetchInterval??0,i=a.sessionOptions?.refetchOnWindowFocus??!0,u=a.sessionOptions?.refetchWhenOffline??!1,c={isInitialized:!1,lastSessionRequest:0},f=()=>u||OS().isOnline,h=k=>{if(f()){if(k?.event==="storage"){e();return}if(k?.event==="poll"){c.lastSessionRequest=NS(),e();return}if(k?.event==="visibilitychange"){if(NS()-c.lastSessionRequest<jQ)return;c.lastSessionRequest=NS(),e();return}e()}},m=k=>{RS().post({event:"session",data:{trigger:k},clientId:Math.random().toString(36).substring(7)})},g=()=>{s&&s>0&&(c.pollInterval=setInterval(()=>{n()&&h({event:"poll"})},s*1e3))},y=()=>{c.unsubscribeBroadcast=RS().subscribe(()=>{h({event:"storage"})})},S=()=>{i&&(c.unsubscribeFocus=pO().subscribe(()=>{h({event:"visibilitychange"})}))},w=()=>{c.unsubscribeOnline=OS().subscribe(k=>{k&&h({event:"visibilitychange"})})},x=()=>{c.unsubscribeSignal=r.listen(()=>{e()})};return{init:()=>{c.isInitialized||(c.isInitialized=!0,g(),y(),S(),w(),x(),c.cleanupBroadcastSetup=RS().setup(),c.cleanupFocusSetup=pO().setup(),c.cleanupOnlineSetup=OS().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 FQ=()=>typeof window>"u";function mO(t){return typeof t=="object"&&t!==null&&"data"in t&&"error"in t?t:{data:t,error:null}}function $Q(t){return!t||t.session===null&&t.user===null?null:t}function BQ(t,e){return U0(t.data,e.data)&&t.error===e.error&&t.isPending===e.isPending&&t.isRefetching===e.isRefetching&&t.refetch===e.refetch}function HQ(t,e){const n=fO(!1);let r;const a=f=>u(f),s=fO({data:null,error:null,isPending:!0,isRefetching:!1,refetch:a});MQ(s,BQ);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 t("/get-session",{method:"GET",query:f?.query,signal:h.signal});if(h.signal.aborted){i(h);return}let{data:y,error:S}=mO(g);if(y?.needsRefresh)try{const A=await t("/get-session",{method:"POST",signal:h.signal});if(h.signal.aborted){i(h);return}({data:y,error:S}=mO(A))}catch{if(h.signal.aborted){i(h);return}}if(S){const A=s.get(),k=S?.status===401;s.set({data:k?null:A.data,error:S,isPending:!1,isRefetching:!1,refetch:a});return}const w=$Q(y),x=s.get(),E=x.data!=null&&w!=null&&U0(x.data,w)?x.data:w;s.set({data:E,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 OQ(s,()=>{let f;FQ()||(f=setTimeout(()=>{u()},0));const h=zQ({fetchSession:u,shouldPollSession:()=>s.get().data!=null,sessionSignal:n,options:e});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 MS(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function DE(t,e,n=".",r){if(!MS(e))return DE(t,{},n,r);const a={...e};for(const s of Object.keys(t)){if(s==="__proto__"||s==="constructor")continue;const i=t[s];i!=null&&(r&&r(a,s,i,n)||(Array.isArray(i)&&Array.isArray(a[s])?a[s]=[...i,...a[s]]:MS(i)&&MS(a[s])?a[s]=DE(i,a[s],(n?`${n}.`:"")+s.toString(),r):a[s]=i))}return a}function qQ(t){return(...e)=>e.reduce((n,r)=>DE(n,r,"",t),{})}const WQ=qQ();var VQ=Object.defineProperty,GQ=Object.defineProperties,KQ=Object.getOwnPropertyDescriptors,gO=Object.getOwnPropertySymbols,YQ=Object.prototype.hasOwnProperty,ZQ=Object.prototype.propertyIsEnumerable,vO=(t,e,n)=>e in t?VQ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Va=(t,e)=>{for(var n in e||(e={}))YQ.call(e,n)&&vO(t,n,e[n]);if(gO)for(var n of gO(e))ZQ.call(e,n)&&vO(t,n,e[n]);return t},bs=(t,e)=>GQ(t,KQ(e)),XQ=class extends Error{constructor(t,e,n){super(e||t.toString(),{cause:n}),this.status=t,this.statusText=e,this.error=n,Error.captureStackTrace(this,this.constructor)}},QQ=async(t,e)=>{var n,r,a,s,i,u;let c=e||{};const f={onRequest:[e?.onRequest],onResponse:[e?.onResponse],onSuccess:[e?.onSuccess],onError:[e?.onError],onRetry:[e?.onRetry]};if(!e||!e?.plugins)return{url:t,options:c,hooks:f};for(const h of e?.plugins||[]){if(h.init){const m=await((n=h.init)==null?void 0:n.call(h,t.toString(),e));c=m.options||c,t=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:t,options:c,hooks:f}},yO=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(){return this.options.delay}},JQ=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(t){return Math.min(this.options.maxDelay,this.options.baseDelay*2**t)}};function eJ(t){if(typeof t=="number")return new yO({type:"linear",attempts:t,delay:1e3});switch(t.type){case"linear":return new yO(t);case"exponential":return new JQ(t);default:throw new Error("Invalid retry strategy")}}var tJ=async t=>{const e={},n=async r=>typeof r=="function"?await r():r;if(t?.auth){if(t.auth.type==="Bearer"){const r=await n(t.auth.token);if(!r)return e;e.authorization=`Bearer ${r}`}else if(t.auth.type==="Basic"){const[r,a]=await Promise.all([n(t.auth.username),n(t.auth.password)]);if(!r||!a)return e;e.authorization=`Basic ${btoa(`${r}:${a}`)}`}else if(t.auth.type==="Custom"){const[r,a]=await Promise.all([n(t.auth.prefix),n(t.auth.value)]);if(!a)return e;e.authorization=`${r??""} ${a}`}}return e},nJ=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function rJ(t){const e=t.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!e)return"json";const r=e.split(";").shift()||"";return nJ.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}function aJ(t){try{return JSON.parse(t),!0}catch{return!1}}function BD(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}function bO(t){try{return JSON.parse(t)}catch{return t}}function SO(t){return typeof t=="function"}function sJ(t){if(t?.customFetchImpl)return t.customFetchImpl;if(typeof globalThis<"u"&&SO(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&SO(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}function HD(...t){const e={};for(const n of t)if(n)if(n instanceof Headers)n.forEach((r,a)=>{e[a]=r});else{const r=Array.isArray(n)?n:Object.entries(n);for(const[a,s]of r)s!=null&&(e[a]=s)}return e}async function oJ(t){const e=new Headers(HD(t?.headers,await tJ(t)));if(!e.has("content-type")){const n=iJ(t?.body);n&&e.set("content-type",n)}return e}function iJ(t){return BD(t)?"application/json":null}function lJ(t){const e=t.get("content-type");return e?e.split(";")[0].trim().toLowerCase():null}function uJ(t,e){const{body:n}=t;return n?!BD(n)||typeof n=="string"?n:lJ(e)==="application/x-www-form-urlencoded"?new URLSearchParams(n).toString():JSON.stringify(n):null}function cJ(t,e){var n;if(e?.method)return e.method.toUpperCase();if(t.startsWith("@")){const r=(n=t.split("@")[1])==null?void 0:n.split("/")[0];return WD.includes(r)?r.toUpperCase():e?.body?"POST":"GET"}return e?.body?"POST":"GET"}function dJ(t,e){let n;return!t?.signal&&t?.timeout&&(n=setTimeout(()=>e?.abort(),t?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var fJ=class qD extends Error{constructor(e,n){super(n||JSON.stringify(e,null,2)),this.issues=e,Object.setPrototypeOf(this,qD.prototype)}};async function rh(t,e){const n=await t["~standard"].validate(e);if(n.issues)throw new fJ(n.issues);return n.value}var WD=["get","post","put","patch","delete"],hJ=t=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(e,n){var r,a,s,i;const u=((a=(r=t.plugins)==null?void 0:r.find(c=>{var f;return(f=c.schema)!=null&&f.config?e.startsWith(c.schema.config.baseURL||"")||e.startsWith(c.schema.config.prefix||""):!1}))==null?void 0:a.schema)||t.schema;if(u){let c=e;(s=u.config)!=null&&s.prefix&&c.startsWith(u.config.prefix)&&(c=c.replace(u.config.prefix,""),u.config.baseURL&&(e=e.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 rh(f.headers,g),S={};for(const[w,x]of Object.entries(y))S[w.toLowerCase()]=x;h=S}let m=bs(Va({},n),{method:f.method,output:f.output,headers:h});return n?.disableValidation||(m=bs(Va({},m),{body:f.input?await rh(f.input,n?.body):n?.body,params:f.params?await rh(f.params,n?.params):n?.params,query:f.query?await rh(f.query,n?.query):n?.query})),{url:e,options:m}}}return{url:e,options:n}}}),pJ=t=>{async function e(n,r){const a=bs(Va(Va({},t),r),{headers:HD(t?.headers,r?.headers),plugins:[...t?.plugins||[],hJ(t||{}),...r?.plugins||[]]});if(t?.catchAllError)try{return await UE(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 UE(n,a)}return e},mJ=t=>t==="."||t==="..";function gJ(t,e){let n=t;for(const[r,a]of e)n=n.replace(r,a);if(mJ(n))throw new TypeError("Path parameters cannot be reserved path segments");return encodeURIComponent(n)}function vJ(t,e){const{baseURL:n,params:r,query:a}=e||{query:{},params:{},baseURL:""};let s=t.startsWith("http")?t.split("/").slice(0,3).join("/"):n||"";if(t.startsWith("@")){const g=t.toString().split("@")[1].split("/")[0];WD.includes(g)&&(t=t.replace(`@${g}/`,"/"))}s.endsWith("/")||(s+="/");let[i,u]=t.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=>gJ(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 UE=async(t,e)=>{var n,r,a,s,i,u,c,f;const{hooks:h,url:m,options:g}=await QQ(t,e),y=sJ(g),S=new AbortController,w=(n=g.signal)!=null?n:S.signal,x=vJ(m,g),E=await oJ(g),A=uJ(g,E),k=cJ(m,g),I=bs(Va({},g),{url:x,headers:E,body:A,method:k,signal:w});for(const $ of h.onRequest)if($){const Z=await $(I);typeof Z=="object"&&Z!==null&&Object.assign(I,Z)}("pipeTo"in I&&typeof I.pipeTo=="function"||typeof((r=e?.body)==null?void 0:r.pipe)=="function")&&("duplex"in I||(I.duplex="half"));const{clearTimeout:N}=dJ(g,S);let O=await y(I.url,I);N();const T={response:O,request:I};for(const $ of h.onResponse)if($){const Z=await $(bs(Va({},T),{response:(a=e?.hookOptions)!=null&&a.cloneResponse?O.clone():O}));Z instanceof Response?O=Z:typeof Z=="object"&&Z!==null&&(O=Z.response)}if(O.ok){if(!(I.method!=="HEAD"))return{data:"",error:null};const Z=rJ(O),ne={data:null,response:O,request:I};if(Z==="json"||Z==="text"){const H=await O.text(),X=(s=I.jsonParser)!=null?s:bO;ne.data=await X(H)}else ne.data=await O[Z]();I?.output&&I.output&&!I.disableValidation&&(ne.data=await rh(I.output,ne.data));for(const H of h.onSuccess)H&&await H(bs(Va({},ne),{response:(i=e?.hookOptions)!=null&&i.cloneResponse?O.clone():O}));return e?.throw?ne.data:{data:ne.data,error:null}}const P=(u=e?.jsonParser)!=null?u:bO,D=await O.text(),q=aJ(D),U=q?await P(D):null,j={response:O,responseText:D,request:I,error:bs(Va({},U),{status:O.status,statusText:O.statusText})};for(const $ of h.onError)$&&await $(bs(Va({},j),{response:(c=e?.hookOptions)!=null&&c.cloneResponse?O.clone():O}));if(e?.retry){const $=eJ(e.retry),Z=(f=e.retryAttempt)!=null?f:0;if(await $.shouldAttemptRetry(Z,O)){for(const H of h.onRetry)H&&await H(T);const ne=$.getDelay(Z);return await new Promise(H=>setTimeout(H,ne)),await UE(t,bs(Va({},e),{retryAttempt:Z+1}))}}if(e?.throw)throw new XQ(O.status,O.statusText,q?U:D);return{data:null,error:bs(Va({},U),{status:O.status,statusText:O.statusText})}},xl={};const yJ=t=>{if(typeof process>"u")return;const e="/api/auth";if(xl.NEXT_PUBLIC_AUTH_URL)return xl.NEXT_PUBLIC_AUTH_URL;if(typeof window>"u"){if(xl.NEXTAUTH_URL)try{return xl.NEXTAUTH_URL}catch{}if(xl.VERCEL_URL)try{const n=xl.VERCEL_URL.startsWith("http")?"":"https://";return`${new URL(`${n}${xl.VERCEL_URL}`).origin}${e}`}catch{}}},bJ=(t,e)=>{const n="credentials"in Request.prototype,r=pQ(t?.baseURL,t?.basePath)??yJ()??"/api/auth",a=[],s={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:t?.fetchOptions?.onSuccess,onError:t?.fetchOptions?.onError,onRequest:t?.fetchOptions?.onRequest,onResponse:t?.fetchOptions?.onResponse}},{onSuccess:i,onError:u,onRequest:c,onResponse:f,...h}={},m=pJ({baseURL:r,...n?{credentials:"include"}:{},method:"GET",jsonParser(N){return N?wQ(N,{strict:!1}):null},customFetchImpl:fetch,...h,plugins:[s,...h.plugins||[],EQ,...a]}),{$sessionSignal:g,session:y,broadcastSessionUpdate:S}=HQ(m,t),w=[];let x={};const E={$sessionSignal:g,session:y},A={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},k=[{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(E,N.getAtoms?.(m)),N.pathMethods&&Object.assign(A,N.pathMethods),N.atomListeners&&k.push(...N.atomListeners);const I={notify:N=>{E[N].set(!E[N].get())},listen:(N,O)=>{E[N].subscribe(O)},atoms:E};for(const N of w)N.getActions&&(x=WQ(N.getActions?.(m,I,t)??{},x));return{get baseURL(){return r},pluginsActions:x,pluginsAtoms:E,pluginPathMethods:A,atomListeners:k,$fetch:m,$store:I}};function SJ(t){return typeof t=="object"&&t!==null&&"get"in t&&typeof t.get=="function"&&"lc"in t&&typeof t.lc=="number"}function wJ(t){return t.charAt(0).toUpperCase()+t.slice(1)}const xJ=new RegExp("[\\p{Ll}\\d]+|\\p{Lu}+(?!\\p{Ll})|\\p{Lu}[\\p{Ll}\\d]+|\\p{Lo}+","gu"),CJ=/['\u2019]/g;function EJ(t){return t.replace(CJ,"").match(xJ)??[]}function _J(t){return EJ(t).map(e=>e.toLowerCase()).join("-")}function kJ(t,e,n){const r=e[t],{fetchOptions:a,query:s,...i}=n||{};return r||(a?.method?a.method:i&&Object.keys(i).length>0?"POST":"GET")}function AJ(t,e,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=t;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"||SJ(h)?h:s(f)},apply:async(u,c,f)=>{const h="/"+i.map(_J).join("/"),m=f[0]||{},g=f[1]||{},{query:y,fetchOptions:S,...w}=m,x={...g,...S},E=kJ(h,n,m);return await e(h,{...x,body:E==="GET"?void 0:{...w,...x?.body||{}},query:y||x?.query,method:E,async onSuccess(A){if(await x?.onSuccess?.(A),!a||x.disableSignal)return;const k=a.filter(N=>N.matcher(h));if(!k.length)return;const I=new Set;for(const N of k){const O=r[N.signal];if(!O)return;if(I.has(N.signal))continue;I.add(N.signal);const T=O.get();setTimeout(()=>{O.set(!T)},10),N.callback?.(h)}}})}})}return s()}var PS={exports:{}},Ge={};var wO;function RJ(){if(wO)return Ge;wO=1;var t=Symbol.for("react.transitional.element"),e=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 E(z,V,K){this.props=z,this.context=V,this.refs=x,this.updater=K||S}E.prototype.isReactComponent={},E.prototype.setState=function(z,V){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,V,"setState")},E.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function A(){}A.prototype=E.prototype;function k(z,V,K){this.props=z,this.context=V,this.refs=x,this.updater=K||S}var I=k.prototype=new A;I.constructor=k,w(I,E.prototype),I.isPureReactComponent=!0;var N=Array.isArray;function O(){}var T={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function D(z,V,K){var J=K.ref;return{$$typeof:t,type:z,key:V,ref:J!==void 0?J:null,props:K}}function q(z,V){return D(z.type,V,z.props)}function U(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function j(z){var V={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(K){return V[K]})}var $=/\/+/g;function Z(z,V){return typeof z=="object"&&z!==null&&z.key!=null?j(""+z.key):V.toString(36)}function ne(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(V){z.status==="pending"&&(z.status="fulfilled",z.value=V)},function(V){z.status==="pending"&&(z.status="rejected",z.reason=V)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function H(z,V,K,J,G){var ue=typeof z;(ue==="undefined"||ue==="boolean")&&(z=null);var oe=!1;if(z===null)oe=!0;else switch(ue){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(z.$$typeof){case t:case e:oe=!0;break;case h:return oe=z._init,H(oe(z._payload),V,K,J,G)}}if(oe)return G=G(z),oe=J===""?"."+Z(z,0):J,N(G)?(K="",oe!=null&&(K=oe.replace($,"$&/")+"/"),H(G,V,K,"",function(Qe){return Qe})):G!=null&&(U(G)&&(G=q(G,K+(G.key==null||z&&z.key===G.key?"":(""+G.key).replace($,"$&/")+"/")+oe)),V.push(G)),1;oe=0;var ce=J===""?".":J+":";if(N(z))for(var be=0;be<z.length;be++)J=z[be],ue=ce+Z(J,be),oe+=H(J,V,K,ue,G);else if(be=y(z),typeof be=="function")for(z=be.call(z),be=0;!(J=z.next()).done;)J=J.value,ue=ce+Z(J,be++),oe+=H(J,V,K,ue,G);else if(ue==="object"){if(typeof z.then=="function")return H(ne(z),V,K,J,G);throw V=String(z),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return oe}function X(z,V,K){if(z==null)return z;var J=[],G=0;return H(z,J,"","",function(ue){return V.call(K,ue,G++)}),J}function ae(z){if(z._status===-1){var V=z._result;V=V(),V.then(function(K){(z._status===0||z._status===-1)&&(z._status=1,z._result=K)},function(K){(z._status===0||z._status===-1)&&(z._status=2,z._result=K)}),z._status===-1&&(z._status=0,z._result=V)}if(z._status===1)return z._result.default;throw z._result}var he=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=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(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},xe={map:X,forEach:function(z,V,K){X(z,function(){V.apply(this,arguments)},K)},count:function(z){var V=0;return X(z,function(){V++}),V},toArray:function(z){return X(z,function(V){return V})||[]},only:function(z){if(!U(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return Ge.Activity=m,Ge.Children=xe,Ge.Component=E,Ge.Fragment=n,Ge.Profiler=a,Ge.PureComponent=k,Ge.StrictMode=r,Ge.Suspense=c,Ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,Ge.__COMPILER_RUNTIME={__proto__:null,c:function(z){return T.H.useMemoCache(z)}},Ge.cache=function(z){return function(){return z.apply(null,arguments)}},Ge.cacheSignal=function(){return null},Ge.cloneElement=function(z,V,K){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var J=w({},z.props),G=z.key;if(V!=null)for(ue in V.key!==void 0&&(G=""+V.key),V)!P.call(V,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&V.ref===void 0||(J[ue]=V[ue]);var ue=arguments.length-2;if(ue===1)J.children=K;else if(1<ue){for(var oe=Array(ue),ce=0;ce<ue;ce++)oe[ce]=arguments[ce+2];J.children=oe}return D(z.type,G,J)},Ge.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},Ge.createElement=function(z,V,K){var J,G={},ue=null;if(V!=null)for(J in V.key!==void 0&&(ue=""+V.key),V)P.call(V,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(G[J]=V[J]);var oe=arguments.length-2;if(oe===1)G.children=K;else if(1<oe){for(var ce=Array(oe),be=0;be<oe;be++)ce[be]=arguments[be+2];G.children=ce}if(z&&z.defaultProps)for(J in oe=z.defaultProps,oe)G[J]===void 0&&(G[J]=oe[J]);return D(z,ue,G)},Ge.createRef=function(){return{current:null}},Ge.forwardRef=function(z){return{$$typeof:u,render:z}},Ge.isValidElement=U,Ge.lazy=function(z){return{$$typeof:h,_payload:{_status:-1,_result:z},_init:ae}},Ge.memo=function(z,V){return{$$typeof:f,type:z,compare:V===void 0?null:V}},Ge.startTransition=function(z){var V=T.T,K={};T.T=K;try{var J=z(),G=T.S;G!==null&&G(K,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(O,he)}catch(ue){he(ue)}finally{V!==null&&K.types!==null&&(V.types=K.types),T.T=V}},Ge.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},Ge.use=function(z){return T.H.use(z)},Ge.useActionState=function(z,V,K){return T.H.useActionState(z,V,K)},Ge.useCallback=function(z,V){return T.H.useCallback(z,V)},Ge.useContext=function(z){return T.H.useContext(z)},Ge.useDebugValue=function(){},Ge.useDeferredValue=function(z,V){return T.H.useDeferredValue(z,V)},Ge.useEffect=function(z,V){return T.H.useEffect(z,V)},Ge.useEffectEvent=function(z){return T.H.useEffectEvent(z)},Ge.useId=function(){return T.H.useId()},Ge.useImperativeHandle=function(z,V,K){return T.H.useImperativeHandle(z,V,K)},Ge.useInsertionEffect=function(z,V){return T.H.useInsertionEffect(z,V)},Ge.useLayoutEffect=function(z,V){return T.H.useLayoutEffect(z,V)},Ge.useMemo=function(z,V){return T.H.useMemo(z,V)},Ge.useOptimistic=function(z,V){return T.H.useOptimistic(z,V)},Ge.useReducer=function(z,V,K){return T.H.useReducer(z,V,K)},Ge.useRef=function(z){return T.H.useRef(z)},Ge.useState=function(z){return T.H.useState(z)},Ge.useSyncExternalStore=function(z,V,K){return T.H.useSyncExternalStore(z,V,K)},Ge.useTransition=function(){return T.H.useTransition()},Ge.version="19.2.7",Ge}var xO;function wp(){return xO||(xO=1,PS.exports=RJ()),PS.exports}var _=wp();const F=yd(_),VD=ML({__proto__:null,default:F},[_]);function IJ(t,e={}){const n=_.useRef(t.get()),{keys:r,deps:a=[t,r]}=e,s=_.useCallback(u=>{const c=f=>{n.current!==f&&(n.current=f,u())};return c(t.value),r?.length?NQ(t,r,c):t.listen(c)},a),i=()=>n.current;return _.useSyncExternalStore(s,i,i)}function TJ(t){return`use${wJ(t)}`}function OJ(t){const{pluginPathMethods:e,pluginsActions:n,pluginsAtoms:r,$fetch:a,$store:s,atomListeners:i}=bJ(t),u={};for(const[c,f]of Object.entries(r))u[TJ(c)]=()=>IJ(f);return AJ({...n,...u,$fetch:a,$store:s},a,e,r,i)}const NJ=10,Bc=[],MJ=["x-correlation-id","x-request-id","x-amzn-requestid","x-amzn-trace-id","apigw-requestid","x-trace-id"];function PJ(t){const e=typeof t=="string"?t:t instanceof URL?t.href:t.url;try{return new URL(e,window.location.origin).pathname}catch{return e.split(/[?#]/)[0]}}function LJ(t,e){return e?.method?e.method.toUpperCase():typeof t!="string"&&!(t instanceof URL)&&t.method?t.method.toUpperCase():"GET"}function DJ(t){for(const e of MJ){const n=t.headers.get(e);if(n)return n}}function UJ(t){Bc.push(t),Bc.length>NJ&&Bc.shift()}function CO(t){const{input:e,init:n,response:r,durationMs:a}=t;UJ({method:LJ(e,n),path:PJ(e),status:r?.status??0,durationMs:Math.round(a),correlationId:r?DJ(r):void 0,timestamp:new Date().toISOString()})}function jJ(){return Bc.slice()}function zJ(){for(let t=Bc.length-1;t>=0;t--){const e=Bc[t];if(e.status===0||e.status>=400)return e}}class ak extends Error{constructor(e){super(e instanceof Error&&e.message?e.message:"The request could not be completed.",{cause:e}),this.name="NetworkError"}}const FJ=t=>typeof t=="object"&&t!==null&&"name"in t&&t.name==="AbortError",GD=async(t,e)=>{const n=performance.now();try{const r=await fetch(t,e);return CO({input:t,init:e,response:r,durationMs:performance.now()-n}),r}catch(r){throw FJ(r)?r:(CO({input:t,init:e,durationMs:performance.now()-n}),new ak(r))}},av=()=>nv().betterAuthEnabled,$J="EMAIL_PASSWORD_SIGN_UP_DISABLED",BJ=t=>typeof t=="object"&&t!==null&&t.code===$J,Mh=OJ(),HJ=60,qJ=30,jE="remit.better-auth.token",KD=()=>{try{return globalThis.sessionStorage??null}catch{return null}},WJ=()=>{const t=KD()?.getItem(jE);if(!t)return null;try{const e=JSON.parse(t);if(e&&typeof e=="object"&&typeof e.value=="string"&&typeof e.expiresAt=="number")return{value:e.value,expiresAt:e.expiresAt}}catch{}return null},YD=t=>{const e=KD();if(e)try{if(!t){e.removeItem(jE);return}e.setItem(jE,JSON.stringify(t))}catch{}};let Tl=null,j0=0;const VJ=()=>Tl||(Tl=WJ(),Tl),Ul=()=>Math.floor(Date.now()/1e3),GJ=t=>{const[,e]=t.split(".");if(!e)return Ul();try{const n=JSON.parse(atob(e.replace(/-/g,"+").replace(/_/g,"/")));return typeof n.exp=="number"?n.exp:Ul()}catch{return Ul()}};class z0 extends Error{status;constructor(e,n){super(e),this.name="AuthTokenError",this.status=n}}const KJ=async()=>{const t=await GD("/api/auth/token",{credentials:"include"});if(!t.ok)throw new z0(`Could not mint a session token: ${t.status} ${t.statusText}`,t.status);const e=await t.json();if(e&&typeof e=="object"&&"token"in e&&typeof e.token=="string")return e.token;throw new z0("The token endpoint returned no token")};let Pf=null;const YJ=()=>Pf||(Pf=KJ().then(t=>(Tl={value:t,expiresAt:GJ(t)},YD(Tl),j0=0,t)).finally(()=>{Pf=null}),Pf),ZJ=t=>t.expiresAt-HJ>Ul(),EO=t=>t.expiresAt>Ul(),XJ=t=>t instanceof ak?!0:t instanceof z0?t.status===408||t.status===429||(t.status??0)>=500:!1,QJ=t=>t instanceof z0&&(t.status===401||t.status===403),JJ=async()=>{const t=VJ();if(t&&ZJ(t)||t&&EO(t)&&Ul()<j0)return t.value;try{return await YJ()}catch(e){if(QJ(e))throw sk(),e;if(t&&EO(t)&&XJ(e))return j0=Ul()+qJ,t.value;throw e}},sk=()=>{j0=0,YD(null),Tl=null};function ZD(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(n=ZD(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function eee(){for(var t,e,n=0,r="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=ZD(t))&&(r&&(r+=" "),r+=e);return r}var LS={exports:{}},gr={};var _O;function tee(){if(_O)return gr;_O=1;var t=wp();function e(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(e(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=t.__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 gr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,gr.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(e(299));return s(c,f,null,h)},gr.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()}},gr.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))},gr.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},gr.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})}},gr.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)},gr.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})}},gr.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)},gr.requestFormReset=function(c){r.d.r(c)},gr.unstable_batchedUpdates=function(c,f){return c(f)},gr.useFormState=function(c,f,h){return i.H.useFormState(c,f,h)},gr.useFormStatus=function(){return i.H.useHostTransitionStatus()},gr.version="19.2.7",gr}var kO;function XD(){if(kO)return LS.exports;kO=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),LS.exports=tee(),LS.exports}var nee=XD(),DS={exports:{}},US={};var AO;function ree(){if(AO)return US;AO=1;var t=wp();function e(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,a=t.useEffect,s=t.useLayoutEffect,i=t.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 US.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:h,US}var RO;function aee(){return RO||(RO=1,DS.exports=ree()),DS.exports}const see=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),QD=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();var oee={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 iee=_.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:i,...u},c)=>_.createElement("svg",{ref:c,...oee,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:QD("lucide",a),...u},[...i.map(([f,h])=>_.createElement(f,h)),...Array.isArray(s)?s:[s]]));const Ot=(t,e)=>{const n=_.forwardRef(({className:r,...a},s)=>_.createElement(iee,{ref:s,iconNode:e,className:QD(`lucide-${see(t)}`,r),...a}));return n.displayName=`${t}`,n};const lee=Ot("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 JD=Ot("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);const uee=Ot("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const sv=Ot("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const zE=Ot("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const cee=Ot("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const dee=Ot("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 fee=Ot("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 hee=Ot("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 pee=Ot("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 mee=Ot("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);const gee=Ot("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 vee=Ot("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 yee=Ot("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 bee=Ot("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 eU=Ot("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 tU=Ot("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 Ph=Ot("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const See=Ot("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 ok=Ot("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 wee=Ot("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 xee=Ot("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Cee=Ot("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);const Eee=Ot("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 FE=Ot("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 _ee=Ot("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 kee=Ot("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 Aee=Ot("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 ed=Ot("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 Ree=Ot("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 Iee=Ot("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 Ts=Ot("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ik="-",Tee=t=>{const e=Nee(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:i=>{const u=i.split(ik);return u[0]===""&&u.length!==1&&u.shift(),nU(u,e)||Oee(i)},getConflictingClassGroupIds:(i,u)=>{const c=n[i]||[];return u&&r[i]?[...c,...r[i]]:c}}},nU=(t,e)=>{if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),a=r?nU(t.slice(1),r):void 0;if(a)return a;if(e.validators.length===0)return;const s=t.join(ik);return e.validators.find(({validator:i})=>i(s))?.classGroupId},IO=/^\[(.+)\]$/,Oee=t=>{if(IO.test(t)){const e=IO.exec(t)[1],n=e?.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},Nee=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return Pee(Object.entries(t.classGroups),n).forEach(([s,i])=>{$E(i,r,s,e)}),r},$E=(t,e,n,r)=>{t.forEach(a=>{if(typeof a=="string"){const s=a===""?e:TO(e,a);s.classGroupId=n;return}if(typeof a=="function"){if(Mee(a)){$E(a(r),e,n,r);return}e.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,i])=>{$E(i,TO(e,s),n,r)})})},TO=(t,e)=>{let n=t;return e.split(ik).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Mee=t=>t.isThemeGetter,Pee=(t,e)=>e?t.map(([n,r])=>{const a=r.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,u])=>[e+i,u])):s);return[n,a]}):t,Lee=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const a=(s,i)=>{n.set(s,i),e++,e>t&&(e=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)}}},rU="!",Dee=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,a=e[0],s=e.length,i=u=>{const c=[];let f=0,h=0,m;for(let x=0;x<u.length;x++){let E=u[x];if(f===0){if(E===a&&(r||u.slice(x,x+s)===e)){c.push(u.slice(h,x)),h=x+s;continue}if(E==="/"){m=x;continue}}E==="["?f++:E==="]"&&f--}const g=c.length===0?u:u.substring(h),y=g.startsWith(rU),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},Uee=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},jee=t=>({cache:Lee(t.cacheSize),parseClassName:Dee(t),...Tee(t)}),zee=/\s+/,Fee=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=e,s=[],i=t.trim().split(zee);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=Uee(h).join(":"),E=m?x+rU:x,A=E+w;if(s.includes(A))continue;s.push(A);const k=a(w,S);for(let I=0;I<k.length;++I){const N=k[I];s.push(E+N)}u=f+(u.length>0?" "+u:u)}return u};function $ee(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=aU(e))&&(r&&(r+=" "),r+=n);return r}const aU=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=aU(t[r]))&&(n&&(n+=" "),n+=e);return n};function Bee(t,...e){let n,r,a,s=i;function i(c){const f=e.reduce((h,m)=>m(h),t());return n=jee(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=Fee(c,n);return a(c,h),h}return function(){return s($ee.apply(null,arguments))}}const sn=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},sU=/^\[(?:([a-z-]+):)?(.+)\]$/i,Hee=/^\d+\/\d+$/,qee=new Set(["px","full","screen"]),Wee=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Vee=/\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$/,Gee=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Kee=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yee=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ro=t=>Hc(t)||qee.has(t)||Hee.test(t),gi=t=>Ad(t,"length",rte),Hc=t=>!!t&&!Number.isNaN(Number(t)),jS=t=>Ad(t,"number",Hc),Lf=t=>!!t&&Number.isInteger(Number(t)),Zee=t=>t.endsWith("%")&&Hc(t.slice(0,-1)),tt=t=>sU.test(t),vi=t=>Wee.test(t),Xee=new Set(["length","size","percentage"]),Qee=t=>Ad(t,Xee,oU),Jee=t=>Ad(t,"position",oU),ete=new Set(["image","url"]),tte=t=>Ad(t,ete,ste),nte=t=>Ad(t,"",ate),Df=()=>!0,Ad=(t,e,n)=>{const r=sU.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1},rte=t=>Vee.test(t)&&!Gee.test(t),oU=()=>!1,ate=t=>Kee.test(t),ste=t=>Yee.test(t),ote=()=>{const t=sn("colors"),e=sn("spacing"),n=sn("blur"),r=sn("brightness"),a=sn("borderColor"),s=sn("borderRadius"),i=sn("borderSpacing"),u=sn("borderWidth"),c=sn("contrast"),f=sn("grayscale"),h=sn("hueRotate"),m=sn("invert"),g=sn("gap"),y=sn("gradientColorStops"),S=sn("gradientColorStopPositions"),w=sn("inset"),x=sn("margin"),E=sn("opacity"),A=sn("padding"),k=sn("saturate"),I=sn("scale"),N=sn("sepia"),O=sn("skew"),T=sn("space"),P=sn("translate"),D=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",tt,e],j=()=>[tt,e],$=()=>["",ro,gi],Z=()=>["auto",Hc,tt],ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["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"],ae=()=>["start","end","center","between","around","evenly","stretch"],he=()=>["","0",tt],xe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[Hc,tt];return{cacheSize:500,separator:":",theme:{colors:[Df],spacing:[ro,gi],blur:["none","",vi,tt],brightness:z(),borderColor:[t],borderRadius:["none","","full",vi,tt],borderSpacing:j(),borderWidth:$(),contrast:z(),grayscale:he(),hueRotate:z(),invert:he(),gap:j(),gradientColorStops:[t],gradientColorStopPositions:[Zee,gi],inset:U(),margin:U(),opacity:z(),padding:j(),saturate:z(),scale:z(),sepia:he(),skew:z(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",tt]}],container:["container"],columns:[{columns:[vi]}],"break-after":[{"break-after":xe()}],"break-before":[{"break-before":xe()}],"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:[...ne(),tt]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],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",Lf,tt]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",tt]}],grow:[{grow:he()}],shrink:[{shrink:he()}],order:[{order:["first","last","none",Lf,tt]}],"grid-cols":[{"grid-cols":[Df]}],"col-start-end":[{col:["auto",{span:["full",Lf,tt]},tt]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[Df]}],"row-start-end":[{row:["auto",{span:[Lf,tt]},tt]}],"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",tt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",tt]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...ae()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ae(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ae(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[A]}],px:[{px:[A]}],py:[{py:[A]}],ps:[{ps:[A]}],pe:[{pe:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],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",tt,e]}],"min-w":[{"min-w":[tt,e,"min","max","fit"]}],"max-w":[{"max-w":[tt,e,"none","full","min","max","fit","prose",{screen:[vi]},vi]}],h:[{h:[tt,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[tt,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[tt,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[tt,e,"auto","min","max","fit"]}],"font-size":[{text:["base",vi,gi]}],"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:[Df]}],"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",tt]}],"line-clamp":[{"line-clamp":["none",Hc,jS]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ro,tt]}],"list-image":[{"list-image":["none",tt]}],"list-style-type":[{list:["none","disc","decimal",tt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ro,gi]}],"underline-offset":[{"underline-offset":["auto",ro,tt]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",tt]}],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",tt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ne(),Jee]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Qee]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},tte]}],"bg-color":[{bg:[t]}],"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":[E]}],"border-style":[{border:[...H(),"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":[E]}],"divide-style":[{divide:H()}],"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:["",...H()]}],"outline-offset":[{"outline-offset":[ro,tt]}],"outline-w":[{outline:[ro,gi]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[ro,gi]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",vi,nte]}],"shadow-color":[{shadow:[Df]}],opacity:[{opacity:[E]}],"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",vi,tt]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[m]}],saturate:[{saturate:[k]}],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":[E]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"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",tt]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",tt]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",tt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-y":[{"scale-y":[I]}],rotate:[{rotate:[Lf,tt]}],"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",tt]}],accent:[{accent:["auto",t]}],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",tt]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",tt]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[ro,gi,jS]}],stroke:[{stroke:[t,"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"]}}},ite=Bee(ote);function Ie(...t){return ite(eee(t))}const lte=1024,ute=1280;function cte(t,e=lte,n=ute){const r=t>=e;return{nav:r,reading:r,intelligence:t>=n}}function dte(t){return t===void 0?!1:t.handlers.focusNext!==void 0&&t.handlers.focusPrevious!==void 0}function fte(t){const e=_.useRef(null),[n,r]=_.useState(t??null);return _.useEffect(()=>{const a=e.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()},[]),[e,n]}const iU=[{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 Y4e(t){return iU.some(e=>e.id===t)}const lU={uncategorized:"neutral",personal:"accent",newsletter:"neutral",marketing:"neutral",automated:"neutral",transactional:"positive",social:"warning"};function Z4e(t){return Object.hasOwn(lU,t)}const hte=({label:t,onDismiss:e,className:n})=>C.jsx("button",{type:"button","aria-label":t,tabIndex:-1,onClick:e,className:Ie("absolute inset-0 bg-canvas/80",n)});function BE({open:t,onClose:e,title:n,children:r,className:a,anchor:s="center"}){const i=_.useRef(null),u=_.useCallback(h=>{if(h.key!=="Escape")return;const m=document.activeElement;m instanceof Element&&m.closest("[data-escape-owner]")||(h.preventDefault(),h.stopImmediatePropagation(),e())},[e]);if(_.useEffect(()=>{if(t)return window.addEventListener("keydown",u,!0),()=>window.removeEventListener("keydown",u,!0)},[t,u]),_.useEffect(()=>{if(!t)return;const h=i.current;if(!h)return;h.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')[0]?.focus()},[t]),!t)return null;const c=s==="left",f=s==="right";return C.jsxs("div",{className:Ie("fixed inset-0 z-50 flex",c?"items-stretch justify-start":f?"items-stretch justify-end":"items-center justify-center px-4"),children:[C.jsx(hte,{label:"Dismiss dialog",onDismiss:e}),C.jsxs("div",{ref:i,role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title",className:Ie("relative z-10 overflow-hidden border-line bg-surface shadow-xl",c?"safe-area-frame h-full w-72 max-w-[85vw] border-r":f?"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 ov=_.createContext(null);ov.displayName="PanelGroupContext";const xn={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"},lk=10,jl=_.useLayoutEffect,OO=VD.useId,pte=typeof OO=="function"?OO:()=>null;let mte=0;function uk(t=null){const e=pte(),n=_.useRef(t||e||null);return n.current===null&&(n.current=""+mte++),t??n.current}function uU({children:t,className:e="",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=_.useContext(ov);if(x===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:E,expandPanel:A,getPanelSize:k,getPanelStyle:I,groupId:N,isPanelCollapsed:O,reevaluatePanelConstraints:T,registerPanel:P,resizePanel:D,unregisterPanel:q}=x,U=uk(i),j=_.useRef({callbacks:{onCollapse:f,onExpand:h,onResize:m},constraints:{collapsedSize:n,collapsible:r,defaultSize:a,maxSize:u,minSize:c},id:U,idIsFromProps:i!==void 0,order:g});_.useRef({didLogMissingDefaultSizeWarning:!1}),jl(()=>{const{callbacks:Z,constraints:ne}=j.current,H={...ne};j.current.id=U,j.current.idIsFromProps=i!==void 0,j.current.order=g,Z.onCollapse=f,Z.onExpand=h,Z.onResize=m,ne.collapsedSize=n,ne.collapsible=r,ne.defaultSize=a,ne.maxSize=u,ne.minSize=c,(H.collapsedSize!==ne.collapsedSize||H.collapsible!==ne.collapsible||H.maxSize!==ne.maxSize||H.minSize!==ne.minSize)&&T(j.current,H)}),jl(()=>{const Z=j.current;return P(Z),()=>{q(Z)}},[g,U,P,q]),_.useImperativeHandle(s,()=>({collapse:()=>{E(j.current)},expand:Z=>{A(j.current,Z)},getId(){return U},getSize(){return k(j.current)},isCollapsed(){return O(j.current)},isExpanded(){return!O(j.current)},resize:Z=>{D(j.current,Z)}}),[E,A,k,O,U,D]);const $=I(j.current,a);return _.createElement(S,{...w,children:t,className:e,id:U,style:{...$,...y},[xn.groupId]:N,[xn.panel]:"",[xn.panelCollapsible]:r||void 0,[xn.panelId]:U,[xn.panelSize]:parseFloat(""+$.flexGrow).toFixed(1)})}const cU=_.forwardRef((t,e)=>_.createElement(uU,{...t,forwardedRef:e}));uU.displayName="Panel";cU.displayName="forwardRef(Panel)";let HE=null,c0=-1,Ai=null;function gte(t,e){if(e){const n=(e&mU)!==0,r=(e&gU)!==0,a=(e&vU)!==0,s=(e&yU)!==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(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function vte(){Ai!==null&&(document.head.removeChild(Ai),HE=null,Ai=null,c0=-1)}function zS(t,e){var n,r;const a=gte(t,e);if(HE!==a){if(HE=a,Ai===null&&(Ai=document.createElement("style"),document.head.appendChild(Ai)),c0>=0){var s;(s=Ai.sheet)===null||s===void 0||s.removeRule(c0)}c0=(n=(r=Ai.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${a} !important;}`))!==null&&n!==void 0?n:-1}}function dU(t){return t.type==="keydown"}function fU(t){return t.type.startsWith("pointer")}function hU(t){return t.type.startsWith("mouse")}function iv(t){if(fU(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(hU(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function yte(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function bte(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function Ste(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:PO(t),b:PO(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;nt(r,"Stacking order can only be calculated for elements with a common ancestor");const a={a:MO(NO(n.a)),b:MO(NO(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 wte=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function xte(t){var e;const n=getComputedStyle((e=pU(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function Cte(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||xte(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||wte.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function NO(t){let e=t.length;for(;e--;){const n=t[e];if(nt(n,"Missing node"),Cte(n))return n}return null}function MO(t){return t&&Number(getComputedStyle(t).zIndex)||0}function PO(t){const e=[];for(;t;)e.push(t),t=pU(t);return e}function pU(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const mU=1,gU=2,vU=4,yU=8,Ete=yte()==="coarse";let Za=[],qc=!1,Rl=new Map,lv=new Map;const Lh=new Set;function _te(t,e,n,r,a){var s;const{ownerDocument:i}=e,u={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:a},c=(s=Rl.get(i))!==null&&s!==void 0?s:0;return Rl.set(i,c+1),Lh.add(u),F0(),function(){var h;lv.delete(t),Lh.delete(u);const m=(h=Rl.get(i))!==null&&h!==void 0?h:1;if(Rl.set(i,m-1),F0(),m===1&&Rl.delete(i),Za.includes(u)){const g=Za.indexOf(u);g>=0&&Za.splice(g,1),dk(),a("up",!0,null)}}}function kte(t){const{target:e}=t,{x:n,y:r}=iv(t);qc=!0,ck({target:e,x:n,y:r}),F0(),Za.length>0&&($0("down",t),t.preventDefault(),bU(e)||t.stopImmediatePropagation())}function FS(t){const{x:e,y:n}=iv(t);if(qc&&t.buttons===0&&(qc=!1,$0("up",t)),!qc){const{target:r}=t;ck({target:r,x:e,y:n})}$0("move",t),dk(),Za.length>0&&t.preventDefault()}function $S(t){const{target:e}=t,{x:n,y:r}=iv(t);lv.clear(),qc=!1,Za.length>0&&(t.preventDefault(),bU(e)||t.stopImmediatePropagation()),$0("up",t),ck({target:e,x:n,y:r}),dk(),F0()}function bU(t){let e=t;for(;e;){if(e.hasAttribute(xn.resizeHandle))return!0;e=e.parentElement}return!1}function ck({target:t,x:e,y:n}){Za.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Lh.forEach(a=>{const{element:s,hitAreaMargins:i}=a,u=s.getBoundingClientRect(),{bottom:c,left:f,right:h,top:m}=u,g=Ete?i.coarse:i.fine;if(e>=f-g&&e<=h+g&&n>=m-g&&n<=c+g){if(r!==null&&document.contains(r)&&s!==r&&!s.contains(r)&&!r.contains(s)&&Ste(r,s)>0){let S=r,w=!1;for(;S&&!S.contains(s);){if(bte(S.getBoundingClientRect(),u)){w=!0;break}S=S.parentElement}if(w)return}Za.push(a)}})}function BS(t,e){lv.set(t,e)}function dk(){let t=!1,e=!1;Za.forEach(r=>{const{direction:a}=r;a==="horizontal"?t=!0:e=!0});let n=0;lv.forEach(r=>{n|=r}),t&&e?zS("intersection",n):t?zS("horizontal",n):e?zS("vertical",n):vte()}let HS=new AbortController;function F0(){HS.abort(),HS=new AbortController;const t={capture:!0,signal:HS.signal};Lh.size&&(qc?(Za.length>0&&Rl.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("contextmenu",$S,t),r.addEventListener("pointerleave",FS,t),r.addEventListener("pointermove",FS,t))}),window.addEventListener("pointerup",$S,t),window.addEventListener("pointercancel",$S,t)):Rl.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("pointerdown",kte,t),r.addEventListener("pointermove",FS,t))}))}function $0(t,e){Lh.forEach(n=>{const{setResizeHandlerState:r}=n,a=Za.includes(n);r(t,a,e)})}function Ate(){const[t,e]=_.useState(0);return _.useCallback(()=>e(n=>n+1),[])}function nt(t,e){if(!t)throw console.error(e),Error(e)}function Kl(t,e,n=lk){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function fo(t,e,n=lk){return Kl(t,e,n)===0}function oa(t,e,n){return Kl(t,e,n)===0}function Rte(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const a=t[r],s=e[r];if(!oa(a,s,n))return!1}return!0}function Mc({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];nt(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:a=0,collapsible:s,maxSize:i=100,minSize:u=0}=r;if(Kl(n,u)<0)if(s){const c=(a+u)/2;Kl(n,c)<0?n=a:n=u}else n=u;return n=Math.min(i,n),n=parseFloat(n.toFixed(lk)),n}function ah({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:a,trigger:s}){if(oa(t,0))return e;const i=[...e],[u,c]=r;nt(u!=null,"Invalid first pivot index"),nt(c!=null,"Invalid second pivot index");let f=0;if(s==="keyboard"){{const m=t<0?c:u,g=n[m];nt(g,`Panel constraints not found for index ${m}`);const{collapsedSize:y=0,collapsible:S,minSize:w=0}=g;if(S){const x=e[m];if(nt(x!=null,`Previous layout not found for panel index ${m}`),oa(x,y)){const E=w-x;Kl(E,Math.abs(t))>0&&(t=t<0?0-E:E)}}}{const m=t<0?u:c,g=n[m];nt(g,`No panel constraints found for index ${m}`);const{collapsedSize:y=0,collapsible:S,minSize:w=0}=g;if(S){const x=e[m];if(nt(x!=null,`Previous layout not found for panel index ${m}`),oa(x,w)){const E=x-y;Kl(E,Math.abs(t))>0&&(t=t<0?0-E:E)}}}}{const m=t<0?1:-1;let g=t<0?c:u,y=0;for(;;){const w=e[g];nt(w!=null,`Previous layout not found for panel index ${g}`);const E=Mc({panelConstraints:n,panelIndex:g,size:100})-w;if(y+=E,g+=m,g<0||g>=n.length)break}const S=Math.min(Math.abs(t),Math.abs(y));t=t<0?0-S:S}{let g=t<0?u:c;for(;g>=0&&g<n.length;){const y=Math.abs(t)-Math.abs(f),S=e[g];nt(S!=null,`Previous layout not found for panel index ${g}`);const w=S-y,x=Mc({panelConstraints:n,panelIndex:g,size:w});if(!oa(S,x)&&(f+=S-x,i[g]=x,f.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?g--:g++}}if(Rte(a,i))return a;{const m=t<0?c:u,g=e[m];nt(g!=null,`Previous layout not found for panel index ${m}`);const y=g+f,S=Mc({panelConstraints:n,panelIndex:m,size:y});if(i[m]=S,!oa(S,y)){let w=y-S,E=t<0?c:u;for(;E>=0&&E<n.length;){const A=i[E];nt(A!=null,`Previous layout not found for panel index ${E}`);const k=A+w,I=Mc({panelConstraints:n,panelIndex:E,size:k});if(oa(A,I)||(w-=I-A,i[E]=I),oa(w,0))break;t>0?E--:E++}}}const h=i.reduce((m,g)=>g+m,0);return oa(h,100)?i:a}function Ite({layout:t,panelsArray:e,pivotIndices:n}){let r=0,a=100,s=0,i=0;const u=n[0];nt(u!=null,"No pivot index found"),e.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=t[u];return{valueMax:c,valueMin:f,valueNow:h}}function Dh(t,e=document){return Array.from(e.querySelectorAll(`[${xn.resizeHandleId}][data-panel-group-id="${t}"]`))}function SU(t,e,n=document){const a=Dh(t,n).findIndex(s=>s.getAttribute(xn.resizeHandleId)===e);return a??null}function wU(t,e,n){const r=SU(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function xU(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function uv(t,e=document){const n=e.querySelector(`[${xn.resizeHandleId}="${t}"]`);return n||null}function Tte(t,e,n,r=document){var a,s,i,u;const c=uv(e,r),f=Dh(t,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 Ote({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:a,panelGroupElement:s,setLayout:i}){_.useRef({didWarnAboutMissingResizeHandle:!1}),jl(()=>{if(!s)return;const u=Dh(n,s);for(let c=0;c<a.length-1;c++){const{valueMax:f,valueMin:h,valueNow:m}=Ite({layout:r,panelsArray:a,pivotIndices:[c,c+1]}),g=u[c];if(g!=null){const y=a[c];nt(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]),_.useEffect(()=>{if(!s)return;const u=e.current;nt(u,"Eager values not found");const{panelDataArray:c}=u,f=xU(n,s);nt(f!=null,`No group found for id "${n}"`);const h=Dh(n,s);nt(h,`No resize handles found for group id "${n}"`);const m=h.map(g=>{const y=g.getAttribute(xn.resizeHandleId);nt(y,"Resize handle element has no handle id attribute");const[S,w]=Tte(n,y,c,s);if(S==null||w==null)return()=>{};const x=E=>{if(!E.defaultPrevented)switch(E.key){case"Enter":{E.preventDefault();const A=c.findIndex(k=>k.id===S);if(A>=0){const k=c[A];nt(k,`No panel data found for index ${A}`);const I=r[A],{collapsedSize:N=0,collapsible:O,minSize:T=0}=k.constraints;if(I!=null&&O){const P=ah({delta:oa(I,N)?T-N:N-I,initialLayout:r,panelConstraints:c.map(D=>D.constraints),pivotIndices:wU(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,t,e,n,r,a,i])}function LO(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function CU(t,e){const n=t==="horizontal",{x:r,y:a}=iv(e);return n?r:a}function Nte(t,e,n,r,a){const s=n==="horizontal",i=uv(e,a);nt(i,`No resize handle element found for id "${e}"`);const u=i.getAttribute(xn.groupId);nt(u,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=r;const f=CU(n,t),h=xU(u,a);nt(h,`No group element found for id "${u}"`);const m=h.getBoundingClientRect(),g=s?m.width:m.height;return(f-c)/g*100}function Mte(t,e,n,r,a,s){if(dU(t)){const i=n==="horizontal";let u=0;t.shiftKey?u=100:a!=null?u=a:u=10;let c=0;switch(t.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:Nte(t,e,n,r,s)}function Pte({panelDataArray:t}){const e=Array(t.length),n=t.map(s=>s.constraints);let r=0,a=100;for(let s=0;s<t.length;s++){const i=n[s];nt(i,`Panel constraints not found for index ${s}`);const{defaultSize:u}=i;u!=null&&(r++,e[s]=u,a-=u)}for(let s=0;s<t.length;s++){const i=n[s];nt(i,`Panel constraints not found for index ${s}`);const{defaultSize:u}=i;if(u!=null)continue;const c=t.length-r,f=a/c;r++,e[s]=f,a-=f}return e}function uc(t,e,n){e.forEach((r,a)=>{const s=t[a];nt(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||fo(m,f))&&!fo(r,f)&&y(),g&&(m==null||!fo(m,f))&&fo(r,f)&&g())}})}function og(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function Lte({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:a,precision:s=3}){const i=n[a];let u;return i==null?u=t!=null?t.toPrecision(s):"1":r.length===1?u="1":u=i.toPrecision(s),{flexBasis:0,flexGrow:u,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Dte(t,e=10){let n=null;return(...a)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...a)},e)}}function DO(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function EU(t){return`react-resizable-panels:${t}`}function _U(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:a,order:s}=e;return a?r:s?`${s}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function kU(t,e){try{const n=EU(t),r=e.getItem(n);if(r){const a=JSON.parse(r);if(typeof a=="object"&&a!=null)return a}}catch{}return null}function Ute(t,e,n){var r,a;const s=(r=kU(t,n))!==null&&r!==void 0?r:{},i=_U(e);return(a=s[i])!==null&&a!==void 0?a:null}function jte(t,e,n,r,a){var s;const i=EU(t),u=_U(e),c=(s=kU(t,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 UO({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((s,i)=>s+i,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(s=>`${s}%`).join(", ")}`);if(!oa(r,100)&&n.length>0)for(let s=0;s<e.length;s++){const i=n[s];nt(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<e.length;s++){const i=n[s];nt(i!=null,`No layout data found for index ${s}`);const u=Mc({panelConstraints:e,panelIndex:s,size:i});i!=u&&(a+=i-u,n[s]=u)}if(!oa(a,0))for(let s=0;s<e.length;s++){const i=n[s];nt(i!=null,`No layout data found for index ${s}`);const u=i+a,c=Mc({panelConstraints:e,panelIndex:s,size:u});if(i!==c&&(a-=c-i,n[s]=c,oa(a,0)))break}return n}const zte=100,sh={getItem:t=>(DO(sh),sh.getItem(t)),setItem:(t,e)=>{DO(sh),sh.setItem(t,e)}},jO={};function AU({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:a,id:s=null,onLayout:i=null,keyboardResizeBy:u=null,storage:c=sh,style:f,tagName:h="div",...m}){const g=uk(s),y=_.useRef(null),[S,w]=_.useState(null),[x,E]=_.useState([]),A=Ate(),k=_.useRef({}),I=_.useRef(new Map),N=_.useRef(0),O=_.useRef({autoSaveId:t,direction:r,dragState:S,id:g,keyboardResizeBy:u,onLayout:i,storage:c}),T=_.useRef({layout:x,panelDataArray:[],panelDataArrayChanged:!1});_.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),_.useImperativeHandle(a,()=>({getId:()=>O.current.id,getLayout:()=>{const{layout:K}=T.current;return K},setLayout:K=>{const{onLayout:J}=O.current,{layout:G,panelDataArray:ue}=T.current,oe=UO({layout:K,panelConstraints:ue.map(ce=>ce.constraints)});LO(G,oe)||(E(oe),T.current.layout=oe,J&&J(oe),uc(ue,oe,k.current))}}),[]),jl(()=>{O.current.autoSaveId=t,O.current.direction=r,O.current.dragState=S,O.current.id=g,O.current.onLayout=i,O.current.storage=c}),Ote({committedValuesRef:O,eagerValuesRef:T,groupId:g,layout:x,panelDataArray:T.current.panelDataArray,setLayout:E,panelGroupElement:y.current}),_.useEffect(()=>{const{panelDataArray:K}=T.current;if(t){if(x.length===0||x.length!==K.length)return;let J=jO[t];J==null&&(J=Dte(jte,zte),jO[t]=J);const G=[...K],ue=new Map(I.current);J(t,G,ue,x,c)}},[t,x,c]),_.useEffect(()=>{});const P=_.useCallback(K=>{const{onLayout:J}=O.current,{layout:G,panelDataArray:ue}=T.current;if(K.constraints.collapsible){const oe=ue.map(Le=>Le.constraints),{collapsedSize:ce=0,panelSize:be,pivotIndices:Qe}=Cl(ue,K,G);if(nt(be!=null,`Panel size not found for panel "${K.id}"`),!fo(be,ce)){I.current.set(K.id,be);const De=Ec(ue,K)===ue.length-1?be-ce:ce-be,je=ah({delta:De,initialLayout:G,panelConstraints:oe,pivotIndices:Qe,prevLayout:G,trigger:"imperative-api"});og(G,je)||(E(je),T.current.layout=je,J&&J(je),uc(ue,je,k.current))}}},[]),D=_.useCallback((K,J)=>{const{onLayout:G}=O.current,{layout:ue,panelDataArray:oe}=T.current;if(K.constraints.collapsible){const ce=oe.map(Ee=>Ee.constraints),{collapsedSize:be=0,panelSize:Qe=0,minSize:Le=0,pivotIndices:De}=Cl(oe,K,ue),je=J??Le;if(fo(Qe,be)){const Ee=I.current.get(K.id),Ut=Ee!=null&&Ee>=je?Ee:je,Bn=Ec(oe,K)===oe.length-1?Qe-Ut:Ut-Qe,Zt=ah({delta:Bn,initialLayout:ue,panelConstraints:ce,pivotIndices:De,prevLayout:ue,trigger:"imperative-api"});og(ue,Zt)||(E(Zt),T.current.layout=Zt,G&&G(Zt),uc(oe,Zt,k.current))}}},[]),q=_.useCallback(K=>{const{layout:J,panelDataArray:G}=T.current,{panelSize:ue}=Cl(G,K,J);return nt(ue!=null,`Panel size not found for panel "${K.id}"`),ue},[]),U=_.useCallback((K,J)=>{const{panelDataArray:G}=T.current,ue=Ec(G,K);return Lte({defaultSize:J,dragState:S,layout:x,panelData:G,panelIndex:ue})},[S,x]),j=_.useCallback(K=>{const{layout:J,panelDataArray:G}=T.current,{collapsedSize:ue=0,collapsible:oe,panelSize:ce}=Cl(G,K,J);return nt(ce!=null,`Panel size not found for panel "${K.id}"`),oe===!0&&fo(ce,ue)},[]),$=_.useCallback(K=>{const{layout:J,panelDataArray:G}=T.current,{collapsedSize:ue=0,collapsible:oe,panelSize:ce}=Cl(G,K,J);return nt(ce!=null,`Panel size not found for panel "${K.id}"`),!oe||Kl(ce,ue)>0},[]),Z=_.useCallback(K=>{const{panelDataArray:J}=T.current;J.push(K),J.sort((G,ue)=>{const oe=G.order,ce=ue.order;return oe==null&&ce==null?0:oe==null?-1:ce==null?1:oe-ce}),T.current.panelDataArrayChanged=!0,A()},[A]);jl(()=>{if(T.current.panelDataArrayChanged){T.current.panelDataArrayChanged=!1;const{autoSaveId:K,onLayout:J,storage:G}=O.current,{layout:ue,panelDataArray:oe}=T.current;let ce=null;if(K){const Qe=Ute(K,oe,G);Qe&&(I.current=new Map(Object.entries(Qe.expandToSizes)),ce=Qe.layout)}ce==null&&(ce=Pte({panelDataArray:oe}));const be=UO({layout:ce,panelConstraints:oe.map(Qe=>Qe.constraints)});LO(ue,be)||(E(be),T.current.layout=be,J&&J(be),uc(oe,be,k.current))}}),jl(()=>{const K=T.current;return()=>{K.layout=[]}},[]);const ne=_.useCallback(K=>{let J=!1;const G=y.current;return G&&window.getComputedStyle(G,null).getPropertyValue("direction")==="rtl"&&(J=!0),function(oe){oe.preventDefault();const ce=y.current;if(!ce)return()=>null;const{direction:be,dragState:Qe,id:Le,keyboardResizeBy:De,onLayout:je}=O.current,{layout:Ee,panelDataArray:Ut}=T.current,{initialLayout:Te}=Qe??{},Bn=wU(Le,K,ce);let Zt=Mte(oe,K,be,Qe,De,ce);const Ln=be==="horizontal";Ln&&J&&(Zt=-Zt);const dr=Ut.map(Do=>Do.constraints),wr=ah({delta:Zt,initialLayout:Te??Ee,panelConstraints:dr,pivotIndices:Bn,prevLayout:Ee,trigger:dU(oe)?"keyboard":"mouse-or-touch"}),rs=!og(Ee,wr);(fU(oe)||hU(oe))&&N.current!=Zt&&(N.current=Zt,!rs&&Zt!==0?Ln?BS(K,Zt<0?mU:gU):BS(K,Zt<0?vU:yU):BS(K,0)),rs&&(E(wr),T.current.layout=wr,je&&je(wr),uc(Ut,wr,k.current))}},[]),H=_.useCallback((K,J)=>{const{onLayout:G}=O.current,{layout:ue,panelDataArray:oe}=T.current,ce=oe.map(Ee=>Ee.constraints),{panelSize:be,pivotIndices:Qe}=Cl(oe,K,ue);nt(be!=null,`Panel size not found for panel "${K.id}"`);const De=Ec(oe,K)===oe.length-1?be-J:J-be,je=ah({delta:De,initialLayout:ue,panelConstraints:ce,pivotIndices:Qe,prevLayout:ue,trigger:"imperative-api"});og(ue,je)||(E(je),T.current.layout=je,G&&G(je),uc(oe,je,k.current))},[]),X=_.useCallback((K,J)=>{const{layout:G,panelDataArray:ue}=T.current,{collapsedSize:oe=0,collapsible:ce}=J,{collapsedSize:be=0,collapsible:Qe,maxSize:Le=100,minSize:De=0}=K.constraints,{panelSize:je}=Cl(ue,K,G);je!=null&&(ce&&Qe&&fo(je,oe)?fo(oe,be)||H(K,be):je<De?H(K,De):je>Le&&H(K,Le))},[H]),ae=_.useCallback((K,J)=>{const{direction:G}=O.current,{layout:ue}=T.current;if(!y.current)return;const oe=uv(K,y.current);nt(oe,`Drag handle element not found for id "${K}"`);const ce=CU(G,J);w({dragHandleId:K,dragHandleRect:oe.getBoundingClientRect(),initialCursorPosition:ce,initialLayout:ue})},[]),he=_.useCallback(()=>{w(null)},[]),xe=_.useCallback(K=>{const{panelDataArray:J}=T.current,G=Ec(J,K);G>=0&&(J.splice(G,1),delete k.current[K.id],T.current.panelDataArrayChanged=!0,A())},[A]),z=_.useMemo(()=>({collapsePanel:P,direction:r,dragState:S,expandPanel:D,getPanelSize:q,getPanelStyle:U,groupId:g,isPanelCollapsed:j,isPanelExpanded:$,reevaluatePanelConstraints:X,registerPanel:Z,registerResizeHandle:ne,resizePanel:H,startDragging:ae,stopDragging:he,unregisterPanel:xe,panelGroupElement:y.current}),[P,S,r,D,q,U,g,j,$,X,Z,ne,H,ae,he,xe]),V={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return _.createElement(ov.Provider,{value:z},_.createElement(h,{...m,children:e,className:n,id:s,ref:y,style:{...V,...f},[xn.group]:"",[xn.groupDirection]:r,[xn.groupId]:g}))}const RU=_.forwardRef((t,e)=>_.createElement(AU,{...t,forwardedRef:e}));AU.displayName="PanelGroup";RU.displayName="forwardRef(PanelGroup)";function Ec(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function Cl(t,e,n){const r=Ec(t,e),s=r===t.length-1?[r-1,r]:[r,r+1],i=n[r];return{...e.constraints,panelSize:i,pivotIndices:s}}function Fte({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){_.useEffect(()=>{if(t||n==null||r==null)return;const a=uv(e,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(xn.groupId);nt(u,`No group element found for id "${u}"`);const c=Dh(u,r),f=SU(u,e,r);nt(f!==null,`No resize element found for id "${e}"`);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,t,e,n])}function IU({children:t=null,className:e="",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),A=_.useRef({onClick:i,onDragging:u,onPointerDown:f,onPointerUp:h});_.useEffect(()=>{A.current.onClick=i,A.current.onDragging=u,A.current.onPointerDown=f,A.current.onPointerUp=h});const k=_.useContext(ov);if(k===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:I,groupId:N,registerResizeHandle:O,startDragging:T,stopDragging:P,panelGroupElement:D}=k,q=uk(a),[U,j]=_.useState("inactive"),[$,Z]=_.useState(!1),[ne,H]=_.useState(null),X=_.useRef({state:U});jl(()=>{X.current.state=U}),_.useEffect(()=>{if(n)H(null);else{const z=O(q);H(()=>z)}},[n,q,O]);const ae=(w=r?.coarse)!==null&&w!==void 0?w:15,he=(x=r?.fine)!==null&&x!==void 0?x:5;_.useEffect(()=>{if(n||ne==null)return;const z=E.current;nt(z,"Element ref not attached");let V=!1;return _te(q,z,I,{coarse:ae,fine:he},(J,G,ue)=>{if(!G){j("inactive");return}switch(J){case"down":{j("drag"),V=!1,nt(ue,'Expected event to be defined for "down" action'),T(q,ue);const{onDragging:oe,onPointerDown:ce}=A.current;oe?.(!0),ce?.();break}case"move":{const{state:oe}=X.current;V=!0,oe!=="drag"&&j("hover"),nt(ue,'Expected event to be defined for "move" action'),ne(ue);break}case"up":{j("hover"),P();const{onClick:oe,onDragging:ce,onPointerUp:be}=A.current;ce?.(!1),be?.(),V||oe?.();break}}})},[ae,I,n,he,O,q,ne,T,P]),Fte({disabled:n,handleId:q,resizeHandler:ne,panelGroupElement:D});const xe={touchAction:"none",userSelect:"none"};return _.createElement(y,{...S,children:t,className:e,id:a,onBlur:()=>{Z(!1),s?.()},onFocus:()=>{Z(!0),c?.()},ref:E,role:"separator",style:{...xe,...m},tabIndex:g,[xn.groupDirection]:I,[xn.groupId]:N,[xn.resizeHandle]:"",[xn.resizeHandleActive]:U==="drag"?"pointer":$?"keyboard":void 0,[xn.resizeHandleEnabled]:!n,[xn.resizeHandleId]:q,[xn.resizeHandleState]:U})}IU.displayName="PanelResizeHandle";function zO({className:t,...e}){return C.jsx(RU,{className:Ie("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),...e})}const Uf=cU;function qS({className:t,...e}){return C.jsx(IU,{className:Ie("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",t),...e})}function $te({className:t,children:e}){const n=_.useRef(null),[r,a]=_.useState(null);return _.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:t,style:r===null?void 0:{width:`${r}px`},children:e})}const TU=_.createContext(null);function Bte(t,e){return t==="list"?{size:62,max:78}:t==="detail"?{size:26,max:45}:{size:e==="compact"?43:33,max:58}}function X4e(){return _.useContext(TU)}function Q4e({nav:t,list:e,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[E,A]=fte(y),k=cte(A??0),[I,N]=_.useState(!1),O=k.nav,T=O&&!I,P=k.reading&&!!n,D=k.intelligence,[q,U]=_.useState(!1),j=S!==void 0,$=j?S:q,Z=()=>{j||U(!0),w?.()},ne=()=>{j||U(!1),x?.()},H=D&&a&&s&&!!r,ae={panes:k,containerWidth:A,showNavPane:O,openNav:Z,navCollapsed:I,toggleNav:()=>{if(!O){$?ne():Z();return}N(V=>!V)},showReadingPane:P,showIntelligencePane:D},he=Bte(u,i),xe=C.jsxs(zO,{direction:"horizontal",className:"min-h-0 flex-1",children:[C.jsx(Uf,{id:"list",order:1,defaultSize:P?he.size:100,minSize:22,maxSize:P?he.max:100,className:"min-w-0",children:e}),P&&C.jsxs(C.Fragment,{children:[C.jsx(qS,{}),C.jsx(Uf,{id:"reading",order:2,minSize:29,className:"min-w-0",children:C.jsx($te,{className:"h-full",children:n})})]}),H&&C.jsxs(C.Fragment,{children:[C.jsx(qS,{}),C.jsx(Uf,{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}),xe]});return C.jsx(TU.Provider,{value:ae,children:C.jsx("div",{ref:E,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(zO,{direction:"horizontal",className:"min-h-0 flex-1",children:[C.jsx(Uf,{id:"nav",order:1,defaultSize:17,minSize:12,maxSize:24,className:"min-w-0",children:t}),C.jsx(qS,{}),C.jsx(Uf,{id:"content",order:2,className:"flex min-w-0 flex-col",children:z})]}):z,!O&&C.jsx(BE,{open:$,onClose:ne,title:"Folders",anchor:"left",children:t}),h]})})})}const OU="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",NU={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"},MU={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:t="primary",size:e="md",icon:n,className:r,children:a,ref:s,...i}){return C.jsxs("button",{type:"button",ref:s,className:Ie(OU,NU[t],MU[e],r),...i,children:[n,a]})}function J4e({variant:t="primary",size:e="md",icon:n,external:r,className:a,children:s,...i}){return C.jsxs("a",{className:Ie(OU,NU[t],MU[e],a),...r?{target:"_blank",rel:"noopener noreferrer"}:{},...i,children:[n,s]})}const Hte={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"},qte={neutral:"bg-fg-subtle",accent:"bg-accent-2",positive:"bg-positive",warning:"bg-warning",danger:"bg-danger"};function qE({tone:t="neutral",dot:e,className:n,children:r,...a}){return C.jsxs("span",{className:Ie("inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-2xs font-medium",Hte[t],n),...a,children:[e&&C.jsx("span",{className:Ie("size-1.5 rounded-full",qte[t])}),r]})}const e5e={"data-list-row":""},Wte="[data-list-row]";function Vte(t,e,n,r="vertical"){if(n===0)return null;const a=r==="vertical"?"ArrowDown":"ArrowRight",s=r==="vertical"?"ArrowUp":"ArrowLeft";return t===a?e<0?0:Math.min(e+1,n-1):t===s?e<=0?0:e-1:t==="Home"?0:t==="End"?n-1:null}function FO(t,e){return Array.from(t.querySelectorAll(e))}function Gte({containerRef:t,itemSelector:e,orientation:n="vertical",enabled:r=!0}){_.useEffect(()=>{if(!r)return;const a=t.current;if(!a)return;const s=()=>{const u=FO(a,e);if(u.length===0)return;const f=u.find(h=>h===document.activeElement)??u[0];for(const h of u)h.tabIndex=h===f?0:-1},i=u=>{if(u.shiftKey||u.metaKey||u.ctrlKey||u.altKey)return;const c=FO(a,e),f=c.indexOf(document.activeElement),h=Vte(u.key,f,c.length,n);h===null||h===f||(u.preventDefault(),u.stopPropagation(),c[h]?.focus())};return s(),a.addEventListener("focusin",s),a.addEventListener("keydown",i),()=>{a.removeEventListener("focusin",s),a.removeEventListener("keydown",i)}})}const $O=10;function Kte({section:t,Row:e,selectedThreadId:n,initialExpanded:r=!1,initialCollapsed:a=!1,onSelectThread:s}){const[i,u]=_.useState(r),[c,f]=_.useState(a),h=t.threads.length>$O,g=!i&&h?t.threads.slice(0,$O):t.threads,y=t.threads.length-g.length;return C.jsxs("div",{children:[t.label&&C.jsxs("button",{type:"button","aria-expanded":!c,onClick:()=>f(S=>!S),className:"sticky top-0 z-10 flex h-section-row w-full items-center gap-1.5 border-b border-line bg-surface-sunken px-row-inset text-left outline-none transition-colors hover:bg-surface focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",children:[C.jsx("span",{className:"flex-1 text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:t.label}),C.jsx("span",{className:"text-2xs text-fg-subtle tabular-nums",children:t.threads.length}),C.jsx(zE,{className:Ie("size-3 shrink-0 text-fg-subtle transition-transform duration-200",c?"rotate-0":"rotate-180")})]}),!c&&C.jsxs(C.Fragment,{children:[C.jsx("div",{className:"divide-y divide-line",children:g.map(S=>C.jsx(e,{thread:S,active:S.id===n,onClick:()=>s?.(S.id)},S.id))}),h&&C.jsxs("button",{type:"button",onClick:()=>u(S=>!S),className:"flex w-full items-center justify-center border-b border-line px-row-inset py-1.5 text-2xs font-medium text-accent outline-none transition-colors hover:bg-surface focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",children:[i?"Show less":`Show ${y} more`,!i&&C.jsx(zE,{className:"ml-1 size-3"})]})]})]})}function Yte(t){return t.target!==t.currentTarget?!1:t.key==="Enter"||t.key===" "}function PU({className:t}){return C.jsx("svg",{viewBox:"0 0 12 12",className:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:C.jsx("path",{d:"M2 4l4 4 4-4"})})}function BO({className:t}){return C.jsx("svg",{viewBox:"0 0 12 12",className:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:C.jsx("path",{d:"M3 3l6 6M9 3l-6 6"})})}const cv=_.createContext(null);function t5e({children:t,hasSheet:e,open:n,onOpenChange:r}){const[a,s]=_.useState(!1),[i,u]=_.useState(!1),c=n??a,f=_.useCallback(m=>{n===void 0&&s(m),r?.(m)},[n,r]),h=_.useMemo(()=>({open:c,setOpen:f,active:i,setActive:u,hasSheet:e}),[c,f,i,e]);return C.jsx(cv.Provider,{value:h,children:t})}function n5e({children:t}){return C.jsx(cv.Provider,{value:null,children:t})}function r5e(){const t=_.useContext(cv);if(!t?.hasSheet)return null;const{open:e,active:n,setOpen:r}=t;return C.jsx("button",{type:"button",onClick:()=>r(!e),"aria-expanded":e,"aria-label":e?"Collapse filters":"Expand filters",title:"Filters",className:Ie("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(PU,{className:Ie("size-3 transition-transform duration-200",e?"rotate-180":"rotate-0")})})}function Zte({categories:t,filters:e,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=_.useContext(cv),w=i!==void 0,[x,E]=_.useState(!1),A=S?.open??(w?i:x),k=_.useCallback(ae=>{w||E(ae),S?.setOpen(ae),m?.(ae)},[w,m,S]),I=t[0],N=I!==void 0&&a===I.id,O=n?.[0],T=n?.find(ae=>ae.active),P=O===void 0||T?.id===O.id,D=!N||s.size>0||!P&&!!T,q=S?.setActive;_.useEffect(()=>{if(q)return q(D),()=>q(!1)},[D,q]);const U=_.useCallback(()=>{O&&c?.(O.id)},[O,c]),j=_.useCallback(()=>{h(),U()},[h,U]),$=t.find(ae=>ae.id===a),Z=D?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&&$&&C.jsx(qE,{tone:$.tone??"neutral",children:$.label}),e.filter(ae=>s.has(ae.id)).map(ae=>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:ae.label},ae.id))]}):C.jsx("span",{className:"text-2xs text-fg-subtle",children:"Filters"}),ne=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(ae=>C.jsxs("button",{type:"button","aria-pressed":!!ae.active,onClick:()=>c?.(ae.id),className:Ie("flex items-center gap-1 rounded-full border px-2.5 py-0.5 text-2xs transition-colors",ae.active?"border-accent-2 bg-accent-2-soft font-medium text-accent-2":"border-line text-fg-muted hover:border-line-strong"),children:[ae.label,ae.count!=null&&ae.count>0&&C.jsx("span",{className:"tabular-nums opacity-70",children:ae.count})]},ae.id)),r&&C.jsx("span",{className:"ml-auto shrink-0 text-2xs text-fg-subtle",children:r})]}),H=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:t.map(ae=>{const he=a===ae.id;return C.jsx("button",{type:"button","aria-pressed":he,onClick:()=>u(ae.id),className:Ie("shrink-0 rounded-full transition-opacity",he?"opacity-100 ring-1 ring-accent-2":"opacity-60 hover:opacity-100"),children:C.jsx(qE,{tone:ae.tone??"neutral",children:ae.label})},ae.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:[e.map(ae=>{const he=s.has(ae.id);return C.jsx("button",{type:"button","aria-pressed":he,onClick:()=>f(ae.id),className:Ie("shrink-0 rounded-full border px-2.5 py-0.5 text-2xs transition-colors",he?"border-accent-2 bg-accent-2-soft font-medium text-accent-2":"border-line text-fg-muted hover:border-line-strong"),children:ae.label},ae.id)}),D&&C.jsxs("button",{type:"button",onClick:j,className:"ml-auto flex items-center gap-1 px-1 text-2xs text-fg-subtle hover:text-fg-muted",children:[C.jsx(BO,{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":A,"aria-label":A?"Collapse filters":"Expand filters",onClick:()=>k(!A),onKeyDown:ae=>{Yte(ae)&&(ae.preventDefault(),k(!A))},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,D&&C.jsx("button",{type:"button","aria-label":"Clear filters",onClick:ae=>{ae.stopPropagation(),j()},className:"flex size-6 items-center justify-center text-fg-subtle hover:text-fg-muted",children:C.jsx(BO,{className:"size-3"})}),C.jsx(PU,{className:Ie("ml-auto size-3 shrink-0 text-fg-subtle transition-transform duration-200",A?"rotate-180":"rotate-0")})]}),A&&!g&&C.jsxs("div",{className:"shrink-0",children:[ne,H,X]}),C.jsx("div",{className:"flex-1 overflow-y-auto",children:y})]})}function Xte(t){return t.sentDate!=null?new Date(t.sentDate).toDateString()===new Date().toDateString():/^\d{1,2}:\d{2}$/.test(t.timeLabel)}const LU=[{id:"unread",label:"Unread",match:t=>!t.isRead},{id:"attachment",label:"Has attachment",match:t=>!!t.hasAttachment},{id:"contacts",label:"From contacts",match:t=>t.trust==="vip"||t.trust==="wellknown"},{id:"today",label:"Today",match:Xte}],Qte=LU.map(({id:t,label:e})=>({id:t,label:e}));function Jte(t,e){return LU.every(n=>!e.has(n.id)||n.match(t))}function a5e({sections:t,briefCategory:e="all",selectedThreadId:n,Row:r,keyboard:a,onSelectThread:s,onSelectBriefCategory:i,sources:u,sourcesNote:c,onSelectSource:f,activeFilters:h,onToggleFilter:m,onClearFilters:g,hideChrome:y,defaultExpanded:S=!1}){const[w,x]=_.useState(new Set),[E,A]=_.useState(S),k=_.useRef(null);Gte({containerRef:k,itemSelector:Wte,enabled:!dte(a)});const I=h??w,N=ne=>{if(m){m(ne);return}x(H=>{const X=new Set(H);return X.has(ne)?X.delete(ne):X.add(ne),X})},O=ne=>(e==="all"||ne.category===e)&&Jte(ne,I),T=e==="all",P=t.map(ne=>({...ne,threads:ne.threads.filter(O)})).filter(ne=>ne.threads.length>0),D=t.flatMap(ne=>ne.threads).filter(O),q=iU.map(ne=>({id:ne.id,label:ne.label,tone:ne.id==="all"?"neutral":lU[ne.id]})),U=Qte,j=()=>{if(g){g();return}i?.("all"),x(new Set)},$=T?P.length===0:D.length===0,Z=C.jsxs("div",{ref:k,children:[T?P.map(ne=>C.jsx(Kte,{section:ne,Row:r,selectedThreadId:n,onSelectThread:s},ne.id)):C.jsx("div",{className:"divide-y divide-line",children:D.map(ne=>C.jsx(r,{thread:ne,active:ne.id===n,onClick:()=>s?.(ne.id)},ne.id))}),$&&C.jsx("div",{className:"px-row-inset py-6 text-center text-2xs text-fg-subtle",children:"No threads match these filters."})]});return C.jsx(Zte,{categories:q,filters:U,sources:u,sourcesNote:c,selectedCategory:e,activeFilters:I,expanded:E,onExpandedChange:A,onSelectCategory:ne=>i?.(ne),onSelectSource:f,onToggleFilter:ne=>N(ne),onClear:j,hideChrome:y,children:Z})}const WE={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"},s5e=["Default","Red","Orange","Yellow","Green","Teal","Blue","Purple","Gray"],ene=t=>Object.hasOwn(WE,t);function tne({label:t,onRemove:e,className:n}){const r=ene(t.color)?WE[t.color]:WE.Default;return C.jsxs("span",{className:Ie("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:Ie("size-1.5 shrink-0 rounded-full",r)}),C.jsx("span",{className:"truncate",children:t.name}),e&&C.jsx("button",{type:"button",onClick:()=>e(t.labelId),"aria-label":`Remove label ${t.name}`,className:"ml-0.5 rounded-full text-fg-subtle hover:text-fg",children:"×"})]})}function HO(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function nne(t){if(Array.isArray(t))return t}function rne(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,a,s,i,u=[],c=!0,f=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(u.push(r.value),u.length!==e);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 ane(){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 sne(t,e){return nne(t)||rne(t,e)||one(t,e)||ane()}function one(t,e){if(t){if(typeof t=="string")return HO(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?HO(t,e):void 0}}const DU=Object.entries,qO=Object.setPrototypeOf,ine=Object.isFrozen,lne=Object.getPrototypeOf,une=Object.getOwnPropertyDescriptor;let ir=Object.freeze,ur=Object.seal,_c=Object.create,UU=typeof Reflect<"u"&&Reflect,VE=UU.apply,GE=UU.construct;ir||(ir=function(e){return e});ur||(ur=function(e){return e});VE||(VE=function(e,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 e.apply(n,a)});GE||(GE=function(e){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 e(...r)});const cc=Nn(Array.prototype.forEach),cne=Nn(Array.prototype.lastIndexOf),WO=Nn(Array.prototype.pop),dc=Nn(Array.prototype.push),dne=Nn(Array.prototype.splice),Ri=Array.isArray,oh=Nn(String.prototype.toLowerCase),WS=Nn(String.prototype.toString),VO=Nn(String.prototype.match),jf=Nn(String.prototype.replace),GO=Nn(String.prototype.indexOf),fne=Nn(String.prototype.trim),hne=Nn(Number.prototype.toString),pne=Nn(Boolean.prototype.toString),KO=typeof BigInt>"u"?null:Nn(BigInt.prototype.toString),YO=typeof Symbol>"u"?null:Nn(Symbol.prototype.toString),Yn=Nn(Object.prototype.hasOwnProperty),zf=Nn(Object.prototype.toString),Gn=Nn(RegExp.prototype.test),El=mne(TypeError);function Nn(t){return function(e){e instanceof RegExp&&(e.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 VE(t,e,r)}}function mne(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return GE(t,n)}}function yt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oh;if(qO&&qO(t,null),!Ri(e))return t;let r=e.length;for(;r--;){let a=e[r];if(typeof a=="string"){const s=n(a);s!==a&&(ine(e)||(e[r]=s),a=s)}t[a]=!0}return t}function gne(t){for(let e=0;e<t.length;e++)Yn(t,e)||(t[e]=null);return t}function vr(t){const e=_c(null);for(const r of DU(t)){var n=sne(r,2);const a=n[0],s=n[1];Yn(t,a)&&(Ri(s)?e[a]=gne(s):s&&typeof s=="object"&&s.constructor===Object?e[a]=vr(s):e[a]=s)}return e}function vne(t){switch(typeof t){case"string":return t;case"number":return hne(t);case"boolean":return pne(t);case"bigint":return KO?KO(t):"0";case"symbol":return YO?YO(t):"Symbol()";case"undefined":return zf(t);case"function":case"object":{if(t===null)return zf(t);const e=t,n=$a(e,"toString");if(typeof n=="function"){const r=n(e);return typeof r=="string"?r:zf(r)}return zf(t)}default:return zf(t)}}function $a(t,e){for(;t!==null;){const r=une(t,e);if(r){if(r.get)return Nn(r.get);if(typeof r.value=="function")return Nn(r.value)}t=lne(t)}function n(){return null}return n}function yne(t){try{return Gn(t,""),!0}catch{return!1}}const ZO=ir(["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"]),VS=ir(["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"]),GS=ir(["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"]),bne=ir(["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"]),KS=ir(["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"]),Sne=ir(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),XO=ir(["#text"]),QO=ir(["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"]),YS=ir(["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"]),JO=ir(["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"]),ig=ir(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),wne=ur(/{{[\w\W]*|^[\w\W]*}}/g),xne=ur(/<%[\w\W]*|^[\w\W]*%>/g),Cne=ur(/\${[\w\W]*/g),Ene=ur(/^data-[\-\w.\u00B7-\uFFFF]+$/),_ne=ur(/^aria-[\-\w]+$/),e6=ur(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),kne=ur(/^(?:\w+script|data):/i),Ane=ur(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Rne=ur(/^html$/i),Ine=ur(/^[a-z][.\w]*(-[.\w]+)+$/i),t6=ur(/<[/\w!]/g),n6=ur(/<[/\w]/g),Tne=ur(/<\/no(script|embed|frames)/i),One=ur(/\/>/i),aa={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Nne=function(){return typeof window>"u"?null:window},Mne=function(e,n){if(typeof e!="object"||typeof e.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 e.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},r6=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},yi=function(e,n,r,a){return Yn(e,n)&&Ri(e[n])?yt(a.base?vr(a.base):{},e[n],a.transform):r};function jU(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Nne();const e=me=>jU(me);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==aa.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const r=n,a=r.currentScript;t.DocumentFragment;const s=t.HTMLTemplateElement,i=t.Node,u=t.Element,c=t.NodeFilter,f=t.NamedNodeMap;f===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const h=t.DOMParser,m=t.trustedTypes,g=u.prototype,y=$a(g,"cloneNode"),S=$a(g,"remove"),w=$a(g,"nextSibling"),x=$a(g,"childNodes"),E=$a(g,"parentNode"),A=$a(g,"shadowRoot"),k=$a(g,"attributes"),I=i&&i.prototype?$a(i.prototype,"nodeType"):null,N=i&&i.prototype?$a(i.prototype,"nodeName"):null,O=i&&i.prototype?$a(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="",D,q=!1,U=0;const j=function(){if(U>0)throw El('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.')},$=function(L){j(),U++;try{return T.createHTML(L)}finally{U--}},Z=function(L){j(),U++;try{return T.createScriptURL(L)}finally{U--}},ne=function(){return q||(D=Mne(m,a),q=!0),D},H=n,X=H.implementation,ae=H.createNodeIterator,he=H.createDocumentFragment,xe=H.getElementsByTagName,z=r.importNode;let V=r6();e.isSupported=typeof DU=="function"&&typeof E=="function"&&X&&X.createHTMLDocument!==void 0;const K=wne,J=xne,G=Cne,ue=Ene,oe=_ne,ce=kne,be=Ane,Qe=Ine;let Le=e6,De=null;const je=yt({},[...ZO,...VS,...GS,...KS,...XO]);let Ee=null;const Ut=yt({},[...QO,...YS,...JO,...ig]);let Te=Object.seal(_c(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 Ln=Object.seal(_c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let dr=!0,wr=!0,rs=!1,Do=!0,tn=!1,pt=!0,nn=!1,Ir=!1,La=null,wu=null,xu=!1,Uo=!1,Cu=!1,as=!1,fr=!0,Da=!1;const hr="user-content-";let Ld=!0,Eu=!1,jo={},xr=null;const zo=yt({},["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 Ji=null;const ss=yt({},["audio","video","img","source","image","track"]);let Fo=null;const $o=yt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_u="http://www.w3.org/1998/Math/MathML",el="http://www.w3.org/2000/svg",Tr="http://www.w3.org/1999/xhtml";let pa=Tr,Dd=!1,ku=null;const Up=yt({},[_u,el,Tr],WS),Ud=ir(["mi","mo","mn","ms","mtext"]);let tl=yt({},Ud);const Au=ir(["annotation-xml"]);let Ru=yt({},Au);const jp=yt({},["title","style","font","a","script"]);let Or=null;const Dn=["application/xhtml+xml","text/html"],pr="text/html";let Lt=null,os=null;const yy=n.createElement("form"),zp=function(L){return L instanceof RegExp||L instanceof Function},Iu=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(os&&os===L)return;(!L||typeof L!="object")&&(L={}),L=vr(L),Or=Dn.indexOf(L.PARSER_MEDIA_TYPE)===-1?pr:L.PARSER_MEDIA_TYPE,Lt=Or==="application/xhtml+xml"?WS:oh,De=yi(L,"ALLOWED_TAGS",je,{transform:Lt}),Ee=yi(L,"ALLOWED_ATTR",Ut,{transform:Lt}),ku=yi(L,"ALLOWED_NAMESPACES",Up,{transform:WS}),Fo=yi(L,"ADD_URI_SAFE_ATTR",$o,{transform:Lt,base:$o}),Ji=yi(L,"ADD_DATA_URI_TAGS",ss,{transform:Lt,base:ss}),xr=yi(L,"FORBID_CONTENTS",zo,{transform:Lt}),Bn=yi(L,"FORBID_TAGS",vr({}),{transform:Lt}),Zt=yi(L,"FORBID_ATTR",vr({}),{transform:Lt}),jo=Yn(L,"USE_PROFILES")?L.USE_PROFILES&&typeof L.USE_PROFILES=="object"?vr(L.USE_PROFILES):L.USE_PROFILES:!1,dr=L.ALLOW_ARIA_ATTR!==!1,wr=L.ALLOW_DATA_ATTR!==!1,rs=L.ALLOW_UNKNOWN_PROTOCOLS||!1,Do=L.ALLOW_SELF_CLOSE_IN_ATTR!==!1,tn=L.SAFE_FOR_TEMPLATES||!1,pt=L.SAFE_FOR_XML!==!1,nn=L.WHOLE_DOCUMENT||!1,Uo=L.RETURN_DOM||!1,Cu=L.RETURN_DOM_FRAGMENT||!1,as=L.RETURN_TRUSTED_TYPE||!1,xu=L.FORCE_BODY||!1,fr=L.SANITIZE_DOM!==!1,Da=L.SANITIZE_NAMED_PROPS||!1,Ld=L.KEEP_CONTENT!==!1,Eu=L.IN_PLACE||!1,Le=yne(L.ALLOWED_URI_REGEXP)?L.ALLOWED_URI_REGEXP:e6,pa=typeof L.NAMESPACE=="string"?L.NAMESPACE:Tr,tl=Yn(L,"MATHML_TEXT_INTEGRATION_POINTS")&&L.MATHML_TEXT_INTEGRATION_POINTS&&typeof L.MATHML_TEXT_INTEGRATION_POINTS=="object"?vr(L.MATHML_TEXT_INTEGRATION_POINTS):yt({},Ud),Ru=Yn(L,"HTML_INTEGRATION_POINTS")&&L.HTML_INTEGRATION_POINTS&&typeof L.HTML_INTEGRATION_POINTS=="object"?vr(L.HTML_INTEGRATION_POINTS):yt({},Au);const Q=Yn(L,"CUSTOM_ELEMENT_HANDLING")&&L.CUSTOM_ELEMENT_HANDLING&&typeof L.CUSTOM_ELEMENT_HANDLING=="object"?vr(L.CUSTOM_ELEMENT_HANDLING):_c(null);if(Te=_c(null),Yn(Q,"tagNameCheck")&&zp(Q.tagNameCheck)&&(Te.tagNameCheck=Q.tagNameCheck),Yn(Q,"attributeNameCheck")&&zp(Q.attributeNameCheck)&&(Te.attributeNameCheck=Q.attributeNameCheck),Yn(Q,"allowCustomizedBuiltInElements")&&typeof Q.allowCustomizedBuiltInElements=="boolean"&&(Te.allowCustomizedBuiltInElements=Q.allowCustomizedBuiltInElements),ur(Te),tn&&(wr=!1),Cu&&(Uo=!0),jo&&(De=yt({},XO),Ee=_c(null),jo.html===!0&&(yt(De,ZO),yt(Ee,QO)),jo.svg===!0&&(yt(De,VS),yt(Ee,YS),yt(Ee,ig)),jo.svgFilters===!0&&(yt(De,GS),yt(Ee,YS),yt(Ee,ig)),jo.mathMl===!0&&(yt(De,KS),yt(Ee,JO),yt(Ee,ig))),Ln.tagCheck=null,Ln.attributeCheck=null,Yn(L,"ADD_TAGS")&&(typeof L.ADD_TAGS=="function"?Ln.tagCheck=L.ADD_TAGS:Ri(L.ADD_TAGS)&&(De===je&&(De=vr(De)),yt(De,L.ADD_TAGS,Lt))),Yn(L,"ADD_ATTR")&&(typeof L.ADD_ATTR=="function"?Ln.attributeCheck=L.ADD_ATTR:Ri(L.ADD_ATTR)&&(Ee===Ut&&(Ee=vr(Ee)),yt(Ee,L.ADD_ATTR,Lt))),Yn(L,"ADD_URI_SAFE_ATTR")&&Ri(L.ADD_URI_SAFE_ATTR)&&yt(Fo,L.ADD_URI_SAFE_ATTR,Lt),Yn(L,"FORBID_CONTENTS")&&Ri(L.FORBID_CONTENTS)&&(xr===zo&&(xr=vr(xr)),yt(xr,L.FORBID_CONTENTS,Lt)),Yn(L,"ADD_FORBID_CONTENTS")&&Ri(L.ADD_FORBID_CONTENTS)&&(xr===zo&&(xr=vr(xr)),yt(xr,L.ADD_FORBID_CONTENTS,Lt)),Ld&&(De["#text"]=!0),nn&&yt(De,["html","head","body"]),De.table&&(yt(De,["tbody"]),delete Bn.tbody),L.TRUSTED_TYPES_POLICY){if(typeof L.TRUSTED_TYPES_POLICY.createHTML!="function")throw El('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof L.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw El('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const pe=T;T=L.TRUSTED_TYPES_POLICY;try{P=$("")}catch(Re){throw T=pe,Re}}else L.TRUSTED_TYPES_POLICY===null?(T=void 0,P=""):(T===void 0&&(T=ne()),T&&typeof P=="string"&&(P=$("")));ir&&ir(L),os=L},Bo=yt({},[...VS,...GS,...bne]),Tu=yt({},[...KS,...Sne]),Ho=function(L,Q,pe){return Q.namespaceURI===Tr?L==="svg":Q.namespaceURI===_u?L==="svg"&&(pe==="annotation-xml"||tl[pe]):!!Bo[L]},qo=function(L,Q,pe){return Q.namespaceURI===Tr?L==="math":Q.namespaceURI===el?L==="math"&&Ru[pe]:!!Tu[L]},nl=function(L,Q,pe){return Q.namespaceURI===el&&!Ru[pe]||Q.namespaceURI===_u&&!tl[pe]?!1:!Tu[L]&&(jp[L]||!Bo[L])},Wo=function(L){let Q=E(L);(!Q||!Q.tagName)&&(Q={namespaceURI:pa,tagName:"template"});const pe=oh(L.tagName),Re=oh(Q.tagName);return ku[L.namespaceURI]?L.namespaceURI===el?Ho(pe,Q,Re):L.namespaceURI===_u?qo(pe,Q,Re):L.namespaceURI===Tr?nl(pe,Q,Re):!!(Or==="application/xhtml+xml"&&ku[L.namespaceURI]):!1},Xt=function(L){dc(e.removed,{element:L});try{E(L).removeChild(L)}catch{if(S(L),!E(L))throw El("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},rl=function(L){ma(L);const Q=x(L);if(Q){const Re=[];cc(Q,Ue=>{dc(Re,Ue)}),cc(Re,Ue=>{try{S(Ue)}catch{}})}const pe=k(L);if(pe)for(let Re=pe.length-1;Re>=0;--Re){const Ue=pe[Re],Ve=Ue&&Ue.name;if(typeof Ve=="string")try{L.removeAttribute(Ve)}catch{}}},is=function(L,Q){try{dc(e.removed,{attribute:Q.getAttributeNode(L),from:Q})}catch{dc(e.removed,{attribute:null,from:Q})}if(Q.removeAttribute(L),L==="is")if(Uo||Cu)try{Xt(Q)}catch{}else try{Q.setAttribute(L,"")}catch{}},Us=function(L){const Q=k(L);if(Q)for(let pe=Q.length-1;pe>=0;--pe){const Re=Q[pe],Ue=Re&&Re.name;if(!(typeof Ue!="string"||Ee[Lt(Ue)]))try{L.removeAttribute(Ue)}catch{}}},ma=function(L){const Q=[L];for(;Q.length>0;){const pe=Q.pop();(I?I(pe):pe.nodeType)===aa.element&&Us(pe);const Ue=x(pe);if(Ue)for(let Ve=Ue.length-1;Ve>=0;--Ve)Q.push(Ue[Ve])}},by=function(L){if(!pt)return;const Q=[L];for(;Q.length>0;){const pe=Q.pop(),Re=I?I(pe):pe.nodeType;if(Re===aa.processingInstruction||Re===aa.comment&&Gn(n6,pe.data)){try{S(pe)}catch{}continue}if(Re===aa.element){const Ve=pe,Ct=Lt(N?N(pe):pe.nodeName);try{Ve.hasAttribute&&Ve.hasAttribute("patchsrc")&&Ve.removeAttribute("patchsrc"),Ve.hasAttribute&&Ve.hasAttribute("for")&&Ct!=="label"&&Ct!=="output"&&Ve.removeAttribute("for")}catch{}}const Ue=x(pe);if(Ue)for(let Ve=Ue.length-1;Ve>=0;--Ve)Q.push(Ue[Ve])}},jd=function(L){let Q=null,pe=null;if(xu)L="<remove></remove>"+L;else{const Ve=VO(L,/^[\r\n\t ]+/);pe=Ve&&Ve[0]}Or==="application/xhtml+xml"&&pa===Tr&&(L='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+L+"</body></html>");const Re=T?$(L):L;if(pa===Tr)try{Q=new h().parseFromString(Re,Or)}catch{}if(!Q||!Q.documentElement){Q=X.createDocument(pa,"template",null);try{Q.documentElement.innerHTML=Dd?P:Re}catch{}}const Ue=Q.body||Q.documentElement;return L&&pe&&Ue.insertBefore(n.createTextNode(pe),Ue.childNodes[0]||null),pa===Tr?xe.call(Q,nn?"html":"body")[0]:nn?Q.documentElement:Ue},zd=function(L){const Q=O?O(L):L.ownerDocument;return ae.call(Q||L,L,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ou=function(L){return L=jf(L,K," "),L=jf(L,J," "),L=jf(L,G," "),L},Vo=function(L){var Q;L.normalize();const pe=O?O(L):L.ownerDocument,Re=ae.call(pe||L,L,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let Ue=Re.nextNode();for(;Ue;)Ue.data=Ou(Ue.data),Ue=Re.nextNode();const Ve=(Q=L.querySelectorAll)===null||Q===void 0?void 0:Q.call(L,"template");Ve&&cc(Ve,Ct=>{mr(Ct.content)&&Vo(Ct.content)})},js=function(L){const Q=N?N(L):null;return typeof Q!="string"||Lt(Q)!=="form"?!1:typeof L.nodeName!="string"||typeof L.textContent!="string"||typeof L.removeChild!="function"||L.attributes!==k(L)||typeof L.removeAttribute!="function"||typeof L.setAttribute!="function"||typeof L.namespaceURI!="string"||typeof L.insertBefore!="function"||typeof L.hasChildNodes!="function"||L.nodeType!==I(L)||L.childNodes!==x(L)},mr=function(L){if(!I||typeof L!="object"||L===null)return!1;try{return I(L)===aa.documentFragment}catch{return!1}},Hn=function(L){if(!I||typeof L!="object"||L===null)return!1;try{return typeof I(L)=="number"}catch{return!1}};function Zr(me,L,Q){me.length!==0&&cc(me,pe=>{pe.call(e,L,Q,os)})}const Sy=function(L,Q){return!!(pt&&L.hasChildNodes()&&!Hn(L.firstElementChild)&&Gn(t6,L.textContent)&&Gn(t6,L.innerHTML)||pt&&L.namespaceURI===Tr&&Q==="style"&&Hn(L.firstElementChild)||L.nodeType===aa.processingInstruction||pt&&L.nodeType===aa.comment&&Gn(n6,L.data))},Fd=function(L,Q,pe){if(!Bn[Q]&&Nu(Q)&&(Te.tagNameCheck instanceof RegExp&&Gn(Te.tagNameCheck,Q)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(Q)))return!1;if(Ld&&!xr[Q]){const Re=E(L),Ue=x(L);if(Ue&&Re){const Ve=Ue.length;for(let Ct=Ve-1;Ct>=0;--Ct){const Et=L===pe?y(Ue[Ct],!0):Ue[Ct];Re.insertBefore(Et,w(L))}}}return Xt(L),!0},$d=function(L,Q,pe,Re){return L.length===0?Q:Q===pe||Q===Re?vr(Q):Q},al=function(L,Q){if(Zr(V.beforeSanitizeElements,L,null),L!==Q&&E(L)===null)return Eu&&ma(L),!0;if(js(L))return Xt(L),!0;const pe=Lt(N?N(L):L.nodeName);if(De=$d(V.uponSanitizeElement,De,je,La),Zr(V.uponSanitizeElement,L,{tagName:pe,allowedTags:De}),L!==Q&&E(L)===null)return Eu&&ma(L),!0;if(Sy(L,pe))return Xt(L),!0;if(Bn[pe]||!(Ln.tagCheck instanceof Function&&Ln.tagCheck(pe))&&!De[pe]){const Ue=Fd(L,pe,Q);return Ue===!1&&Zr(V.afterSanitizeElements,L,null),Ue}if((I?I(L):L.nodeType)===aa.element&&!Wo(L)||(pe==="noscript"||pe==="noembed"||pe==="noframes")&&Gn(Tne,L.innerHTML))return Xt(L),!0;if(tn&&L.nodeType===aa.text){const Ue=Ou(L.textContent);L.textContent!==Ue&&(dc(e.removed,{element:L.cloneNode()}),L.textContent=Ue)}return Zr(V.afterSanitizeElements,L,null),!1},Fp=function(L,Q,pe){if(Zt[Q]||pt&&Q==="patchsrc"||pt&&Q==="for"&&L!=="label"&&L!=="output"||fr&&(Q==="id"||Q==="name")&&(pe in n||pe in yy))return!1;const Re=Ee[Q]||Ln.attributeCheck instanceof Function&&Ln.attributeCheck(Q,L);if(!(wr&&Gn(ue,Q))){if(!(dr&&Gn(oe,Q))){if(Re){if(!Fo[Q]){if(!Gn(Le,jf(pe,be,""))){if(!((Q==="src"||Q==="xlink:href"||Q==="href")&&L!=="script"&&GO(pe,"data:")===0&&Ji[L])){if(!(rs&&!Gn(ce,jf(pe,be,"")))){if(pe)return!1}}}}}else if(!(Nu(L)&&(Te.tagNameCheck instanceof RegExp&&Gn(Te.tagNameCheck,L)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(L))&&(Te.attributeNameCheck instanceof RegExp&&Gn(Te.attributeNameCheck,Q)||Te.attributeNameCheck instanceof Function&&Te.attributeNameCheck(Q,L))||Q==="is"&&Te.allowCustomizedBuiltInElements&&(Te.tagNameCheck instanceof RegExp&&Gn(Te.tagNameCheck,pe)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(pe))))return!1}}return!0},Nr=yt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Nu=function(L){return!Nr[oh(L)]&&Gn(Qe,L)},$p=function(L,Q,pe,Re){if(T&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!pe)switch(m.getAttributeType(L,Q)){case"TrustedHTML":return $(Re);case"TrustedScriptURL":return Z(Re)}return Re},Bd=function(L,Q,pe,Re){try{pe?L.setAttributeNS(pe,Q,Re):L.setAttribute(Q,Re),js(L)?Xt(L):WO(e.removed)}catch{is(Q,L)}},zs=function(L){Zr(V.beforeSanitizeAttributes,L,null);const Q=L.attributes;if(!Q||js(L))return;Ee=$d(V.uponSanitizeAttribute,Ee,Ut,wu);const pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee,forceKeepAttr:void 0};let Re=Q.length;const Ue=Lt(L.nodeName);for(;Re--;){const Ve=Q[Re],Ct=Ve.name,Et=Ve.namespaceURI,qn=Ve.value,Wn=Lt(Ct),ls=qn;let yn=Ct==="value"?ls:fne(ls);if(pe.attrName=Wn,pe.attrValue=yn,pe.keepAttr=!0,pe.forceKeepAttr=void 0,Zr(V.uponSanitizeAttribute,L,pe),yn=pe.attrValue,Da&&(Wn==="id"||Wn==="name")&&GO(yn,hr)!==0&&(is(Ct,L),yn=hr+yn),pt&&Gn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,yn)){is(Ct,L);continue}if(Wn==="attributename"&&VO(yn,"href")){is(Ct,L);continue}if(!pe.forceKeepAttr){if(!pe.keepAttr){is(Ct,L);continue}if(!Do&&Gn(One,yn)){is(Ct,L);continue}if(tn&&(yn=Ou(yn)),!Fp(Ue,Wn,yn)){is(Ct,L);continue}yn=$p(Ue,Wn,Et,yn),yn!==ls&&Bd(L,Ct,Et,yn)}}Zr(V.afterSanitizeAttributes,L,null)},sl=function(L){let Q=null;const pe=zd(L);for(Zr(V.beforeSanitizeShadowDOM,L,null);Q=pe.nextNode();)if(Zr(V.uponSanitizeShadowNode,Q,null),al(Q,L),zs(Q),mr(Q.content)&&sl(Q.content),(I?I(Q):Q.nodeType)===aa.element){const Ue=A(Q);mr(Ue)&&(Mu(Ue),sl(Ue))}Zr(V.afterSanitizeShadowDOM,L,null)},Mu=function(L){const Q=[{node:L,shadow:null}];for(;Q.length>0;){const pe=Q.pop();if(pe.shadow){sl(pe.shadow);continue}const Re=pe.node,Ve=(I?I(Re):Re.nodeType)===aa.element,Ct=x(Re);if(Ct)for(let Et=Ct.length-1;Et>=0;--Et)Q.push({node:Ct[Et],shadow:null});if(Ve){const Et=N?N(Re):null;if(typeof Et=="string"&&Lt(Et)==="template"){const qn=Re.content;mr(qn)&&Q.push({node:qn,shadow:null})}}if(Ve){const Et=A(Re);mr(Et)&&Q.push({node:null,shadow:Et},{node:Et,shadow:null})}}};return e.sanitize=function(me){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=null,pe=null,Re=null,Ue=null;if(Dd=!me,Dd&&(me="<!-->"),typeof me!="string"&&!Hn(me)&&(me=vne(me),typeof me!="string"))throw El("dirty is not a string, aborting");if(!e.isSupported)return me;Ir?(De=La,Ee=wu):Iu(L),(V.uponSanitizeElement.length>0||V.uponSanitizeAttribute.length>0)&&(De=vr(De)),V.uponSanitizeAttribute.length>0&&(Ee=vr(Ee)),e.removed=[];const Ve=Eu&&typeof me!="string"&&Hn(me);if(Ve){by(me);const qn=N?N(me):me.nodeName;if(typeof qn=="string"){const Wn=Lt(qn);if(!De[Wn]||Bn[Wn])throw rl(me),El("root node is forbidden and cannot be sanitized in-place")}if(js(me))throw rl(me),El("root node is clobbered and cannot be sanitized in-place");try{Mu(me)}catch(Wn){throw rl(me),Wn}}else if(Hn(me))Q=jd("<!---->"),pe=Q.ownerDocument.importNode(me,!0),pe.nodeType===aa.element&&pe.nodeName==="BODY"||pe.nodeName==="HTML"?Q=pe:Q.appendChild(pe),Mu(pe);else{if(!Uo&&!tn&&!nn&&me.indexOf("<")===-1)return T&&as?$(me):me;if(Q=jd(me),!Q)return Uo?null:as?P:""}Q&&xu&&Xt(Q.firstChild);const Ct=Ve?me:Q;try{const qn=zd(Ct);for(;Re=qn.nextNode();)al(Re,Ct),zs(Re),mr(Re.content)&&sl(Re.content)}catch(qn){throw Ve&&(rl(me),cc(e.removed,Wn=>{Wn.element&&ma(Wn.element)})),qn}if(Ve)return cc(e.removed,qn=>{qn.element&&ma(qn.element)}),tn&&Vo(me),me;if(Uo){if(tn&&Vo(Q),Cu)for(Ue=he.call(Q.ownerDocument);Q.firstChild;)Ue.appendChild(Q.firstChild);else Ue=Q;return(Ee.shadowroot||Ee.shadowrootmode)&&(Ue=z.call(r,Ue,!0)),Ue}let Et=nn?Q.outerHTML:Q.innerHTML;return nn&&De["!doctype"]&&Q.ownerDocument&&Q.ownerDocument.doctype&&Q.ownerDocument.doctype.name&&Gn(Rne,Q.ownerDocument.doctype.name)&&(Et="<!DOCTYPE "+Q.ownerDocument.doctype.name+`>
14
+ `+Et),tn&&(Et=Ou(Et)),T&&as?$(Et):Et},e.setConfig=function(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Iu(me),Ir=!0,La=De,wu=Ee},e.clearConfig=function(){os=null,Ir=!1,La=null,wu=null,T=D,P=""},e.isValidAttribute=function(me,L,Q){os||Iu({});const pe=Lt(me),Re=Lt(L);return Fp(pe,Re,Q)},e.addHook=function(me,L){typeof L=="function"&&Yn(V,me)&&dc(V[me],L)},e.removeHook=function(me,L){if(Yn(V,me)){if(L!==void 0){const Q=cne(V[me],L);return Q===-1?void 0:dne(V[me],Q,1)[0]}return WO(V[me])}},e.removeHooks=function(me){Yn(V,me)&&(V[me]=[])},e.removeAllHooks=function(){V=r6()},e}var o5e=jU();function zU({children:t,className:e}){return C.jsx("div",{"data-auth-page":!0,className:Ie("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",e),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:t})})}const Pne="Secure sign-in powered by AWS Cognito";function FU(t){const e=t?.note??"Secure sign-in";return C.jsx("div",{className:"text-center pt-5",children:C.jsx("p",{className:"text-xs text-fg-muted",children:e})})}const Lne=()=>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 $U({wordmark:t="remit,",tagline:e="your email client in the cloud.",mark:n=C.jsx(Lne,{})}){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:t}),C.jsx("p",{className:"mt-1 text-sm text-fg-muted",children:e})]})}const Dne={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"},Une={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"},jne={info:"status",success:"status",warning:"alert",danger:"alert"};function B0({tone:t="info",variant:e="framed",onDismiss:n,role:r,className:a,children:s,...i}){const u=e==="soft";return C.jsxs("div",{role:r??jne[t],className:Ie("flex gap-2 px-3 py-2 text-sm",u?Ie("items-start rounded-md",Une[t]):Ie("items-center border",Dne[t]),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(Ts,{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(Ts,{className:"size-4","aria-hidden":"true"})}))]})}function zne({id:t,reason:e,nudged:n,className:r}){return C.jsxs(C.Fragment,{children:[C.jsx("p",{id:t,className:Ie(r,!n&&"sr-only"),children:e}),C.jsx("span",{role:"status","aria-live":"polite",className:"sr-only",children:n?e:""})]})}const a6={type:"none"};function Fne(t){if(!t.open||t.count<=0)return a6;if(t.key==="ArrowDown"){const n=t.activeIndex+1;return{type:"move",index:n>=t.count?0:n}}if(t.key==="ArrowUp"){const n=t.activeIndex-1;return{type:"move",index:n<0?t.count-1:n}}return t.key==="Escape"?{type:"dismiss"}:(t.key==="Enter"||(t.acceptKeys??[]).includes(t.key))&&t.activeIndex>=0&&t.activeIndex<t.count?{type:"accept",index:t.activeIndex}:a6}function $ne({count:t,onAccept:e,acceptKeys:n}){const[r,a]=_.useState(!1),[s,i]=_.useState(-1),u=_.useId().replace(/[^a-zA-Z0-9_-]/g,""),c=`suggest-${u}`,f=_.useCallback(g=>`suggest-${u}-option-${g}`,[u]);_.useEffect(()=>{i(-1),a(!1)},[t]);const h=t>0&&!r,m=_.useCallback(g=>{const y=Fne({key:g.key,open:h,count:t,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"&&e(y.index),!0)},[h,t,s,n,e]);return{open:h,activeIndex:s,setActiveIndex:i,dismiss:_.useCallback(()=>a(!0),[]),reopen:_.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 Bne({id:t,suggestions:e,activeIndex:n,optionId:r,onPick:a,onHighlight:s,label:i,className:u}){return e.length===0?null:C.jsx("div",{id:t,role:"listbox","aria-label":i,className:Ie("max-h-44 overflow-y-auto rounded-md border border-line bg-surface py-1 shadow-sm",u),children:e.map((c,f)=>C.jsxs("div",{id:r(f),role:"option",tabIndex:-1,"aria-selected":f===n,className:Ie("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 s6={en:1199414,"en-GB":1199758,nl:3180464},o6=["en","en-GB","nl"];const BU=()=>typeof o6>"u"?[]:o6,i5e=()=>{const t="/spellcheck/de99b00dc30674fd/";return typeof document>"u"?t:new URL(t,document.baseURI).href},l5e=t=>typeof s6>"u"?0:s6[t]??0,u5e=(t,e=BU())=>{const n=t.toLowerCase(),r=e.find(s=>s.toLowerCase()===n);if(r)return r;const a=n.split("-")[0];return e.find(s=>s.toLowerCase().split("-")[0]===a)??null},Hne=[{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"}],fk=t=>(t.split("-")[0]??"").toLowerCase(),qne=new Map(Hne.map(t=>[t.tag,t])),Wne=t=>qne.get(fk(t))?.detectionCode??null,Vne=/^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i,c5e=t=>fk(t).toUpperCase(),d5e=t=>{if(!Vne.test(t))return t;const n=new Intl.DisplayNames([t],{type:"language",fallback:"none"}).of(t);return n?n.charAt(0).toLocaleUpperCase(t)+n.slice(1):t},f5e=(t,e=BU())=>{const n=[...t,...e].filter(a=>Wne(a)!==null),r=[...new Set(n.map(fk))];return r.includes("en")||r.push("en"),r},h5e=t=>/iPhone|iPad|iPod/.test(t)?"On iPhone and iPad the keyboard decides this. Add the language under Settings, then General, then Keyboard.":/Edg\//.test(t)?"Edge checks every language you add under Settings, then Languages. Adding one there checks it alongside the others.":/Firefox\//.test(t)?"Firefox uses this setting. Right-click the message to add a dictionary for it.":/Chrome\/|Chromium\//.test(t)?"Chrome checks every language you add under Settings, then Languages. Adding one there checks it alongside the others.":/Safari\//.test(t)?"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.",HU=t=>new DOMParser().parseFromString(t,"text/html"),qU=t=>{const e=[...t.children];if(e.length!==1)return null;const n=e[0];return n?[...t.childNodes].some(a=>a!==n&&(a.textContent??"").trim()!=="")?null:n:null},p5e=(t,e)=>{if(t==="")return"";const n=HU(t),r=qU(n.body);if(r?.tagName==="DIV"&&r.hasAttribute("lang"))return r.setAttribute("lang",e),n.body.innerHTML;const a=n.createElement("div");for(a.setAttribute("lang",e);n.body.firstChild;)a.append(n.body.firstChild);return n.body.append(a),n.body.innerHTML},m5e=t=>{if(t==="")return{html:t,language:null};const e=HU(t),n=qU(e.body);return n?.tagName!=="DIV"||!n.hasAttribute("lang")?{html:t,language:null}:{html:n.innerHTML,language:n.getAttribute("lang")}},Gne={default:Ie("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 es({icon:t,className:e,variant:n="default",trailing:r,ref:a,...s}){return C.jsxs("div",{className:Ie(Gne[n],e),children:[t&&C.jsx("span",{className:"text-fg-subtle shrink-0",children:t}),C.jsx("input",{ref:a,className:"min-w-0 flex-1 bg-transparent text-fg placeholder:text-fg-subtle outline-none",...s}),r]})}function WU({icon:t,className:e,children:n,ref:r,...a}){return C.jsxs("div",{className:Ie("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",e),children:[t&&C.jsx("span",{className:"shrink-0 text-fg-subtle",children:t}),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(zE,{className:"pointer-events-none absolute right-2.5 size-4 text-fg-subtle"})]})}function hk({className:t,children:e,...n}){return C.jsx("label",{className:Ie("mb-1 block text-xs font-medium text-fg-muted",t),...n,children:e})}const Kne={similar:"Anything similar",properties:"Its properties"};function KE(t){return Kne[t]}const Yne={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 VU(t){return Yne[t]}const Zne={From:"From",Subject:"Subject",HasWords:"Has the words",ListId:"List",FromDomain:"Domain"};function Wc(t){return Zne[t]}const Xne={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 Qne(t){return Xne[t]}function Jne(t){return t==="HasWords"}function ere(t){return t.widen!==void 0&&!t.widen.inactive}function GU(t){return ere(t)?[]:t.clauses.filter(e=>Jne(e.field))}const tre=["From","Subject","HasWords","ListId","FromDomain"];function H0(t){return`Similar to these ${t.anchorCount}`}const nre={all:"Match all",any:"Match any"};function q0(t){return nre[t]}function pk(t){return t==="all"?"and":"or"}function KU(t){if(t.status==="loading")return"Counting matches…";if(t.status==="error")return t.reason;if(t.count===0)return"No mail matches yet";const e=t.count===1?"message":"messages",n=`${t.count} ${e} match`;return t.stale?`${n} — recounting`:n}const rre={once:"Just once",standing:"Keep doing this",until:"Until a date"};function d0(t){return rre[t]}function YU(t){return t==="once"?"Apply now":t==="standing"?"Save rule":"Save until then"}const Aa={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."},g5e="Can't count matches — “has the words” reads message bodies, which only a saved rule does.";function ZU(t){if(t.status==="loading")return Aa.counting;if(t.status==="ready"&&t.stale)return Aa.recounting}function are(t,e){return t.clauses.length>0||t.widen!==void 0&&!t.widen.inactive?t.scope==="once"&&GU(t).length>0?Aa.bodyTextOnce:!t.moveMailboxId&&!t.labelId?Aa.noAction:(t.scope==="standing"||t.scope==="until")&&(t.name??"").trim()===""?Aa.unnamed:t.scope==="until"&&!t.until?Aa.noUntilDate:ZU(e):Aa.noMatch}const W0="inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs";function XU({clause:t,onEdit:e,onRemove:n}){return C.jsxs("span",{className:Ie(W0,t.derived?"border-dashed border-line-strong bg-surface-sunken":"border-line bg-surface"),children:[C.jsxs("button",{type:"button",onClick:e,"aria-label":`Edit ${Wc(t.field)} clause`,className:"flex items-center gap-1 text-left",children:[C.jsx("span",{className:"font-medium text-fg-muted",children:Wc(t.field)}),C.jsx("span",{className:"text-fg",children:t.value})]}),t.derived&&C.jsx("span",{className:"text-2xs text-fg-subtle",children:"from sender"}),n&&C.jsx("button",{type:"button",onClick:n,"aria-label":`Remove ${Wc(t.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(Ts,{className:"size-3"})})]})}function i6({onRemove:t}){return C.jsx("button",{type:"button",onClick:t,"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(Ts,{className:"size-3"})})}function sre({widen:t,onRemove:e}){return t.inactive?C.jsxs("span",{className:Ie(W0,"border-dashed border-line-strong bg-surface-sunken text-fg-subtle"),children:[C.jsx(FE,{className:"size-3 shrink-0","aria-hidden":"true"}),C.jsx("span",{className:"line-through",children:H0(t)}),C.jsx("span",{className:"text-2xs",children:"not available here"}),e&&C.jsx(i6,{onRemove:e})]}):C.jsxs("span",{className:Ie(W0,"border-accent-2 bg-accent-2-soft text-accent-2"),children:[C.jsx(FE,{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:H0(t)}),e&&C.jsx(i6,{onRemove:e})]})}function YE({label:t,onClick:e}){return C.jsxs("button",{type:"button",onClick:e,className:Ie(W0,"border-dashed border-line-strong text-fg-muted hover:border-accent-2 hover:text-accent-2"),children:[C.jsx(xee,{className:"size-3","aria-hidden":"true"}),t]})}function QU({draft:t,mode:e,fields:n=tre,suggestions:r=[],onChangeField:a,onChangeValue:s,onSubmit:i,onCancel:u}){const c=Qne(t.field),f=$ne({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(WU,{"aria-label":"Clause field",value:t.field,onChange:h=>a?.(h.target.value),className:"h-8 w-32 shrink-0",children:n.map(h=>C.jsx("option",{value:h,children:Wc(h)},h))}),C.jsx(es,{"aria-label":"Clause value",value:t.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:t.value.trim()==="",className:"shrink-0",children:e==="add"?"Add":"Save"}),C.jsx(en,{variant:"ghost",size:"sm",onClick:u,"aria-label":"Cancel clause edit",icon:C.jsx(Ts,{className:"size-4"}),className:"shrink-0 px-2"})]}),f.open&&C.jsx(Bne,{id:f.listId,suggestions:r,activeIndex:f.activeIndex,optionId:f.optionId,onPick:h=>{s?.(h.value),f.dismiss()},onHighlight:f.setActiveIndex,label:`${Wc(t.field)} suggestions`}),c&&C.jsx("p",{className:"px-0.5 text-2xs text-fg-subtle",children:c})]})}function ore({preview:t}){const e=KU(t);if(t.status==="loading")return C.jsxs("p",{className:"flex items-center gap-2 text-xs text-fg-muted","aria-live":"polite",children:[C.jsx(Ph,{className:"size-3.5 animate-spin","aria-hidden":"true"}),e]});if(t.status==="error")return C.jsxs("p",{className:"flex items-center gap-2 text-xs text-danger",role:"alert",children:[C.jsx(ed,{className:"size-3.5 shrink-0","aria-hidden":"true"}),e]});const n=t.count===0;return C.jsxs("p",{className:Ie("flex items-center gap-2 text-xs",t.stale?"text-fg-subtle":n?"text-fg-muted":"font-medium text-fg"),"aria-live":"polite",children:[t.stale&&C.jsx(Ph,{className:"size-3.5 animate-spin","aria-hidden":"true"}),e]})}const ire=t=>typeof t=="object"&&t!==null&&"name"in t&&t.name==="AbortError",Uh=(t,e)=>{const n=t.lastIndexOf(e);return n===-1?"":t.slice(0,n)},JU=(t,e)=>t.split(e).length-1,jh=(t,e)=>{const n=[];let r=Uh(t,e);for(;r;)n.push(r),r=Uh(r,e);return n},lre=(t,e)=>{const n=new Set(t.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 t)Uh(u.path,e)===i.path&&s(u)}};for(const i of t){const u=Uh(i.path,e);u&&n.has(u)||s(i)}return a},ej=(t,e)=>t.label.toLowerCase().includes(e)||t.path.toLowerCase().includes(e),ure=(t,e,n)=>{const r=new Set;if(!e)return r;for(const a of t)if(ej(a,e))for(const s of jh(a.path,n))r.add(s);return r},cre=(t,e,n,r=new Set)=>{const a=(u,c)=>({folder:u,depth:JU(u.path,n),context:c,expanded:r.has(u.path)});if(!e)return t.map(u=>a(u,!1));const s=new Set;for(const u of t)ej(u,e)&&s.add(u.path);const i=new Set(s);for(const u of s)for(const c of jh(u,n))i.add(c);return t.filter(u=>i.has(u.path)).map(u=>a(u,!s.has(u.path)))},dre=(t,e,n)=>{const r=new Set(t.map(a=>a.path));return t.filter(a=>jh(a.path,n).every(s=>!r.has(s)||e.has(s))).map(a=>({folder:a,depth:JU(a.path,n),context:!1,expanded:e.has(a.path)}))},fre=(t,e)=>{const n=[],r=[],a=s=>{for(;r.length>0;){const i=r[r.length-1];if(!i||s?.startsWith(`${i.folder.path}${e}`))break;r.pop(),n.push({kind:"create",parent:i.folder,depth:i.depth+1})}};return t.forEach((s,i)=>{a(s.folder.path),n.push({kind:"folder",row:s,index:i}),s.expanded&&r.push(s)}),a(null),n},ws=t=>t!==void 0&&!t.context,ZS=t=>t!==void 0&&!t.folder.isCurrent&&!t.context,XS=t=>{for(let e=0;e<t.length;e+=1)if(ws(t[e]))return e;return-1},hre=t=>{for(let e=t.length-1;e>=0;e-=1)if(ws(t[e]))return e;return-1},l6=(t,e,n)=>{const r=t.length;if(r<=0)return-1;const a=e<0?n===1?-1:r:e;for(let s=1;s<=r;s+=1){const i=((a+n*s)%r+r)%r;if(ws(t[i]))return i}return-1},pre=(t,e,n)=>{const r=t[e];if(!r)return-1;const a=Uh(r.folder.path,n);if(!a)return-1;for(let s=e-1;s>=0;s-=1)if(t[s]?.folder.path===a)return ws(t[s])?s:-1;return-1},ZE="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",tj=14,mre=60,XE=({depth:t})=>t>0?C.jsx("span",{"aria-hidden":"true",className:"shrink-0",style:{width:t*tj}}):null,QE=({depth:t})=>C.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute right-0 bottom-0 h-px bg-line",style:{left:mre+t*tj}}),gre=({label:t,depth:e,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(cee,{className:Ie("size-4 shrink-0 text-fg-subtle transition-transform",n&&"rotate-90"),"aria-hidden":"true"}),x=C.jsx(bee,{className:"size-4 shrink-0 text-fg-subtle","aria-hidden":"true"}),E=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":e+1,"aria-selected":!1,"aria-expanded":n,"aria-label":r,className:Ie(ZE,"opacity-60"),children:[C.jsx(XE,{depth:e}),w,x,C.jsx("span",{className:"min-w-0 flex-1 truncate",children:t}),E]}),h,f&&C.jsx(QE,{depth:e})]}):C.jsxs("div",{className:"relative flex items-center",children:[C.jsxs("button",{ref:S,type:"button",role:"treeitem","aria-level":e+1,"aria-selected":a,"aria-expanded":n,"aria-current":i?"true":void 0,"aria-label":r,tabIndex:m,onClick:g,onFocus:y,className:Ie(ZE,"hover:bg-surface-raised active:bg-surface-sunken",i&&"text-fg-muted"),children:[C.jsx(XE,{depth:e}),w,x,C.jsx("span",{className:"min-w-0 flex-1 truncate",children:t}),E,i&&u&&C.jsx("span",{className:"shrink-0 text-xs text-fg-muted",children:u}),a&&C.jsx(sv,{className:"size-4 shrink-0 text-accent","aria-hidden":"true"})]}),h,f&&C.jsx(QE,{depth:e})]})},u6=({label:t,ariaLabel:e,depth:n=0,prominence:r="prominent",separated:a=!1,onOpen:s})=>C.jsxs("div",{className:Ie("relative",r==="prominent"&&"p-2"),children:[C.jsxs("button",{type:"button",onClick:s,"aria-label":e,"data-prominence":r,className:Ie(ZE,"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(XE,{depth:n}),C.jsx("span",{"aria-hidden":"true",className:"size-4 shrink-0"}),C.jsx(vee,{className:"size-4 shrink-0","aria-hidden":"true"}),C.jsx("span",{className:"min-w-0 flex-1 truncate",children:t})]}),a&&C.jsx(QE,{depth:n})]}),nj={nameLabel:"Folder name",namePlaceholder:"Hotels",insideLabel:"Inside",create:"Create folder",cancel:"Cancel",createPending:"Creating folder…"},vre=({parentLabel:t,name:e,onNameChange:n,onSubmit:r,onCancel:a,pending:s=!1,error:i,labels:u})=>{const c={...nj,...u},f=_.useId(),h=_.useRef(null),m=_.useRef(null);return _.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(hk,{htmlFor:f,children:c.nameLabel}),C.jsx(es,{id:f,ref:h,value:e,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:t})]}),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})]})]})},yre={...nj,filterPlaceholder:"Filter folders…",filterAriaLabel:"Filter folders",treeAriaLabel:"Destination folders",currentSuffix:"(current folder)",currentTag:"current",contextSuffix:"(containing folder)",emptyMessage:t=>`No folders match "${t}"`,noFolders:"No folders to show",optionLabel:t=>`Move to ${t.label}`,newFolder:"New folder",newSubfolder:t=>`New folder inside ${t}`,topLevel:"Top level",nameRequired:"Give the folder a name.",createError:"Couldn't create that folder. Please try again."},mk=({folders:t,selectedId:e,onSelect:n,rowActions:r,onCreateFolder:a,onCancel:s,delimiter:i="/",labels:u})=>{const c={...yre,...u},[f,h]=_.useState(""),[m,g]=_.useState(()=>{const G=t.find(ue=>ue.id===e);return new Set(G?jh(G.path,i):[])}),[y,S]=_.useState(null),[w,x]=_.useState(""),[E,A]=_.useState(),[k,I]=_.useState(!1),[N,O]=_.useState(-1),T=_.useRef([]),P=_.useRef(!1),D=_.useRef(null);_.useEffect(()=>()=>D.current?.abort(),[]);const q=f.trim().toLowerCase(),U=_.useMemo(()=>lre(t,i),[t,i]),j=_.useMemo(()=>{const G=ure(U,q,i);return G.size===0?m:new Set([...m,...G])},[U,m,q,i]),$=_.useMemo(()=>q?cre(U,q,i,j):dre(U,j,i),[U,q,i,j]),Z=_.useMemo(()=>a?fre($,i):void 0,[$,i,a]);_.useEffect(()=>{O(G=>ws($[G])?G:XS($))},[$]),_.useEffect(()=>{P.current&&(P.current=!1,!(N<0)&&T.current[N]?.focus())},[N]);const ne=_.useCallback((G,ue)=>{g(oe=>{if(ue)return new Set([...jh(G,i),G]);const ce=new Set(oe);return ce.delete(G),ce})},[i]),H=_.useCallback(G=>{ZS(G)&&n?.(G.folder.id),ne(G.folder.path,!G.expanded)},[n,ne]),X=_.useCallback(()=>{D.current?.abort(),S(null),x(""),A(void 0),I(!1)},[]),ae=_.useCallback(G=>{D.current?.abort(),S({anchorId:G?.id??null,parentPath:G?.path??"",parentLabel:G?.label??c.topLevel}),x(""),A(void 0),I(!1)},[c.topLevel]),he=_.useCallback(()=>{if(!a||!y||k)return;const G=w.trim();if(G===""){A(c.nameRequired);return}I(!0),A(void 0),D.current?.abort();const ue=new AbortController;D.current=ue;const oe=y.parentPath;a(G,oe,ue.signal).then(ce=>{I(!1),S(null),x(""),oe&&ne(oe,!0),n?.(ce.id)}).catch(ce=>{ire(ce)||(A(ce instanceof Error?ce.message:c.createError),I(!1))})},[a,y,k,w,n,ne,c.nameRequired,c.createError]),xe=_.useCallback(G=>{const ue=G.target;if(!(ue instanceof Element)||!ue.closest('[role="treeitem"]'))return;const oe=be=>{G.preventDefault(),P.current=!0,O(be)},ce=$[N];switch(G.key){case"ArrowDown":return oe(l6($,N,1));case"ArrowUp":return oe(l6($,N,-1));case"Home":return oe(XS($));case"End":return oe(hre($));case"ArrowRight":{if(!ws(ce)||!ce)return;if(G.preventDefault(),!ce.expanded){ne(ce.folder.path,!0);return}const be=N+1;ws($[be])&&oe(be);return}case"ArrowLeft":{if(!ws(ce)||!ce)return;if(G.preventDefault(),ce.expanded){ne(ce.folder.path,!1);return}const be=pre($,N,i);be>=0&&oe(be);return}case"Enter":case" ":{if(!ws(ce)||!ce)return;G.preventDefault(),H(ce);return}case"Escape":G.preventDefault(),s?.();return;default:return}},[$,N,i,H,ne,s]),z=y!==null&&y.anchorId!==null&&(Z?.some(G=>G.kind==="create"&&G.parent.id===y.anchorId)??!1),V=y&&C.jsx(vre,{parentLabel:y.parentLabel,name:w,onNameChange:G=>{x(G),A(void 0)},onSubmit:he,onCancel:X,pending:k,error:E,labels:c}),K=G=>G.context?`${G.folder.label} ${c.contextSuffix}`:ZS(G)?c.optionLabel(G.folder):`${G.folder.label} ${c.currentSuffix}`,J=(G,ue,oe)=>{const{folder:ce,depth:be}=G,Qe=ZS(G);return C.jsx(gre,{ref:Le=>{T.current[ue]=Le},label:ce.label,depth:be,expanded:G.expanded,context:G.context,current:ce.isCurrent,currentTag:c.currentTag,messageCount:ce.messageCount,selected:Qe&&ce.id===e,separated:oe,actions:r?.(ce),ariaLabel:K(G),tabIndex:ue===N?0:-1,onActivate:()=>H(G),onFocus:()=>O(ue)})};return C.jsxs("div",{className:"flex min-h-0 w-full min-w-0 flex-col",children:[C.jsx(es,{variant:"inline",className:"border-b border-line px-3 py-2",icon:C.jsx(Cee,{className:"size-4","aria-hidden":"true"}),type:"search",value:f,onChange:G=>h(G.target.value),onKeyDown:G=>{if(G.key==="Escape"){G.preventDefault(),s?.();return}if(G.key!=="ArrowDown")return;G.preventDefault();const ue=ws($[N])?N:XS($);ue<0||(P.current=!0,O(ue),T.current[ue]?.focus())},placeholder:c.filterPlaceholder,"aria-label":c.filterAriaLabel}),a&&C.jsx("div",{className:"shrink-0 border-b border-line","data-create-anchor":"top",children:y&&!z?V:C.jsx(u6,{label:c.newFolder,ariaLabel:c.newFolder,prominence:"prominent",onOpen:()=>ae(null)})}),$.length===0?C.jsx("p",{className:"px-3 py-3 text-sm text-fg-muted","aria-live":"polite",children:t.length===0?c.noFolders:c.emptyMessage(f)}):C.jsx("div",{role:"tree","aria-label":c.treeAriaLabel,className:"min-h-0 flex-1 overflow-y-auto overflow-x-hidden pb-24",onKeyDown:xe,children:(Z??$.map((G,ue)=>({kind:"folder",row:G,index:ue}))).map((G,ue,oe)=>{const ce=ue<oe.length-1;return G.kind==="create"?C.jsx("div",{role:"none","data-create-anchor":G.parent.id,children:y?.anchorId===G.parent.id?V:C.jsx(u6,{label:c.newFolder,ariaLabel:c.newSubfolder(G.parent.label),depth:G.depth,prominence:"quiet",separated:ce,onOpen:()=>ae(G.parent)})},`new:${G.parent.id}`):C.jsx("div",{role:"none",children:J(G.row,G.index,ce)},G.row.folder.id)})})]})},bre={sm:"min-h-9 px-3 text-xs",md:"min-h-11 px-4 text-sm"};function f0({name:t,options:e,value:n,onChange:r,size:a="md","aria-label":s}){const i=e.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:e.map((u,c)=>{const f=u.value===n,h=!f&&c<e.length-1&&i!==c+1;return C.jsxs("label",{className:Ie("relative flex cursor-pointer items-center justify-center rounded-[5px] font-medium transition-colors",bre[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:t,value:u.value,checked:f,onChange:()=>r(u.value),className:"sr-only"}),u.label]},u.value)})})}const Sre=[{value:"all",label:q0("all")},{value:"any",label:q0("any")}],wre=[{value:"similar",label:KE("similar")},{value:"properties",label:KE("properties")}],c6=[{value:"once",label:"Just once"},{value:"standing",label:"Keep doing this"},{value:"until",label:"Until a date"}],d6="__filter_create_label__";function xre({folders:t,value:e,delimiter:n="/",onChangeMove:r,onCreateFolder:a}){const[s,i]=_.useState(!1),[u,c]=_.useState(),[f,h]=_.useState([]),m=_.useMemo(()=>{const E=new Set(t.map(A=>A.id));return[...t,...f.filter(A=>!E.has(A.id))]},[t,f]),g=_.useMemo(()=>{if(a)return async(E,A,k)=>{const I=await a(E,A,k);return h(N=>N.some(O=>O.id===I.id)?N:[...N,I]),I}},[a]),y=m.find(E=>E.id===e),S=m.find(E=>E.id===u),w=E=>{const A=E.path.split(n);return A.map((k,I)=>{const N=A.slice(0,I+1).join(n);return m.find(O=>O.path===N)?.label??k}).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(mk,{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(e),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 Cre({labels:t,value:e,onChangeLabel:n,onCreateLabel:r}){const[a,s]=_.useState(!1),[i,u]=_.useState(""),[c,f]=_.useState(!1),[h,m]=_.useState(),[g,y]=_.useState([]),S=_.useMemo(()=>{const k=new Set(t.map(I=>I.id));return[...t,...g.filter(I=>!k.has(I.id))]},[t,g]),w=S.find(k=>k.id===e),x=k=>{if(k===d6){m(void 0),s(!0);return}n?.(k)},E=()=>{if(!r)return;const k=i.trim();k!==""&&(f(!0),m(void 0),r(k).then(I=>{y(N=>N.some(O=>O.id===I.id)?N:[...N,I]),n?.(I.id),s(!1),u(""),f(!1)}).catch(I=>{m(I instanceof Error?I.message:"Couldn't create that label. Please try again."),f(!1)}))},A=()=>{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(WU,{"aria-label":"Label to apply",value:e,onChange:k=>x(k.target.value),className:"flex-1",children:[C.jsx("option",{value:"",children:"No label"}),S.map(k=>C.jsx("option",{value:k.id,children:k.name},k.id)),r&&C.jsx("option",{value:d6,children:"+ New label…"})]}),w&&C.jsx(tne,{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(es,{value:i,onChange:k=>u(k.target.value),placeholder:"Label name","aria-label":"New label name",disabled:c,autoFocus:!0,onKeyDown:k=>{k.key==="Enter"&&(k.preventDefault(),E()),k.key==="Escape"&&(k.preventDefault(),A())}}),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:E,disabled:c||i.trim()==="",children:c?"Creating…":"Create label"}),C.jsx(en,{variant:"ghost",size:"sm",onClick:A,disabled:c,children:"Cancel"})]})]})]})}function v5e({rule:t,folders:e,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:E,onSubmitClause:A,onCancelClause:k,onAddWiden:I,onRemoveWiden:N,onChangeMatchOperator:O,onChangeMove:T,onCreateFolder:P,onChangeLabel:D,onCreateLabel:q,onChangeScope:U,onChangeName:j,onChangeUntil:$,onCommit:Z,onCancel:ne}){const H=t.widen&&!t.widen.inactive?1:0,ae=t.clauses.length+H>=2,he=pk(t.matchOperator),xe=are(t,a),z=t.scope==="standing"||t.scope==="until",V=h?c6.filter(K=>K.value!=="once"):c6;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(f0,{name:"rule-match-mode",size:"sm","aria-label":"What the rule matches on",options:wre,value:u,onChange:K=>c?.(K)}),C.jsx("p",{className:"text-2xs text-fg-subtle",children:VU(u)})]}),C.jsxs("section",{className:"space-y-3",children:[C.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[t.clauses.map((K,J)=>C.jsxs(_.Fragment,{children:[J>0&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:he}),C.jsx(XU,{clause:K,onEdit:()=>S?.(K.id),onRemove:()=>w?.(K.id)})]},K.id)),t.widen&&C.jsxs(C.Fragment,{children:[t.clauses.length>0&&!t.widen.inactive&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:he}),C.jsx(sre,{widen:t.widen,onRemove:h?void 0:N})]}),!g&&C.jsx(YE,{label:"Add clause",onClick:y}),!t.widen&&!h&&i&&u!=="properties"&&!g&&C.jsx(YE,{label:"…and similar",onClick:I})]}),g&&C.jsx(QU,{draft:g.draft,mode:g.mode,fields:f,suggestions:m,onChangeField:x,onChangeValue:E,onSubmit:A,onCancel:k}),h&&t.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."}),ae&&C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"text-xs text-fg-muted",children:"Match"}),C.jsx(f0,{name:"match-operator",size:"sm","aria-label":"Match operator",options:Sre,value:t.matchOperator,onChange:K=>O?.(K)})]})]}),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(xre,{folders:e,value:t.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(Cre,{labels:r,value:t.labelId??"",onChangeLabel:D,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(f0,{name:"rule-scope",size:"sm","aria-label":"Rule scope",options:V,value:t.scope,onChange:K=>U?.(K)}),z&&C.jsx(es,{value:t.name??"",onChange:K=>j?.(K.target.value),placeholder:"Name this rule (e.g. Receipts)","aria-label":"Rule name",className:"w-full"}),t.scope==="until"&&C.jsxs("div",{className:"flex items-center gap-2 text-xs text-fg-muted",children:[C.jsx("span",{children:"Until"}),C.jsx(es,{type:"date",value:t.until??"",onChange:K=>$?.(K.target.value),"aria-label":"Expiry date",className:"flex-1"})]})]}),C.jsx("div",{className:"border-t border-line pt-3",children:C.jsx(ore,{preview:a})})]}),C.jsxs("div",{className:"space-y-2 border-t border-line px-5 py-3",children:[xe&&C.jsx("p",{className:"text-xs text-fg-subtle",role:"status",children:xe}),C.jsx(en,{variant:"primary",onClick:Z,disabled:xe!==void 0,className:"w-full",children:YU(t.scope)}),C.jsx(en,{variant:"ghost",onClick:ne,className:"w-full",children:"Not now"})]})]})}function Ere({count:t,activeStep:e}){return C.jsx("ol",{className:"flex items-center gap-1.5","aria-label":"Progress",children:Array.from({length:t},(n,r)=>C.jsx("li",{className:"flex flex-1 items-center gap-1.5",children:C.jsx("span",{className:Ie("h-1 flex-1 rounded-full transition-colors",r<=e?"bg-accent":"bg-surface-sunken"),"aria-current":r===e?"step":void 0})},r))})}function _re({title:t,subtitle:e,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":t,className:Ie("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:Ie("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:Ie("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(JD,{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:t}),e&&C.jsx("p",{className:"truncate text-2xs text-fg-muted",children:e})]}),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(Ts,{className:"size-5"})})]}),n.length>1&&C.jsxs("div",{className:"space-y-1 px-1 pt-2",children:[C.jsx(Ere,{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:Ie("min-h-0 flex-1",f==="fill"?"overflow-hidden":"overflow-y-auto px-4 py-4"),children:u}),i&&C.jsx("footer",{className:Ie("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 kre={inbox:"Inbox",drafts:"Drafts",sent:"Sent",archive:"Archive",junk:"Spam",trash:"Trash",flagged:"Starred",all:"All Mail"};function Are(t){return kre[t]}function Rre(t){const e=t.split("/");return e[e.length-1]||t}const Ire=new Set(["all","flagged"]);function Tre(t){return Ire.has(t)}const Ore=new Set(["[Gmail]","[Google Mail]"]);function Nre(t){if(t.role)return Tre(t.role)?void 0:Are(t.role);if(t.providerPath&&!Ore.has(t.providerPath.split("/")[0]))return Rre(t.providerPath)}function y5e(t){return t==="inbox"?C.jsx(eU,{className:"size-4"}):t==="drafts"?C.jsx(pee,{className:"size-4"}):t==="sent"?C.jsx(Eee,{className:"size-4"}):t==="archive"?C.jsx(lee,{className:"size-4"}):t==="junk"?C.jsx(ok,{className:"size-4"}):t==="trash"?C.jsx(Aee,{className:"size-4"}):t==="flagged"?C.jsx(_ee,{className:"size-4"}):C.jsx(See,{className:"size-4"})}const rj={filter:"border-line bg-surface-sunken text-fg-muted",scope:"border-accent-2/40 bg-accent-2-soft text-accent-2"},Mre=({label:t,onRemove:e,tone:n="filter",className:r})=>C.jsxs("span",{className:Ie("inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-2xs",rj[n],r),children:[C.jsx("span",{children:t}),C.jsx("button",{type:"button",onClick:e,className:"shrink-0 rounded-full p-0.5 hover:bg-fg-muted/20 transition-colors","aria-label":`Remove filter: ${t}`,children:C.jsx(Ts,{className:"size-3"})})]}),Pre=_.forwardRef(({label:t,onRemove:e,onActivate:n,tone:r="filter",focused:a=!1,onKeyDown:s,onFocusLabel:i,className:u},c)=>C.jsxs("span",{role:"row",tabIndex:-1,className:Ie("inline-flex max-w-48 items-center gap-1 rounded-full border px-2 py-0.5 text-2xs transition-colors",rj[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:Ie("block min-w-0 max-w-full truncate rounded-full outline-none",n?"cursor-pointer":"cursor-default"),children:t}),C.jsx("button",{type:"button",role:"gridcell",tabIndex:-1,onClick:e,className:"block shrink-0 rounded-full p-0.5 transition-colors hover:bg-fg-muted/20","aria-label":`Remove filter: ${t}`,children:C.jsx(Ts,{className:"size-3"})})]}));Pre.displayName="SearchChipRow";const b5e=({tokens:t,className:e})=>t.length===0?null:C.jsx("div",{className:Ie("flex flex-wrap items-center gap-1.5 border-b border-line bg-surface px-row-inset py-1.5",e),children:t.map(n=>C.jsx(Mre,{label:n.label,onRemove:n.onRemove},n.label))}),f6="outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-surface",Lre="outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",Dre={nav:{base:Ie("flex w-full items-center gap-2 rounded-md px-2 py-1 text-sm transition-colors",f6),rest:"text-fg-muted hover:bg-surface hover:text-fg",current:"bg-accent-2-soft font-medium text-accent-2"},row:{base:Ie("relative flex w-full items-start text-left transition-colors",Lre),rest:"hover:bg-surface-sunken",current:"bg-accent-2-soft"},inline:{base:Ie("rounded-sm underline-offset-2 transition-colors hover:underline",f6),rest:"text-accent hover:text-accent-hover",current:"font-medium text-accent"}};function Ure(t){return t!==void 0&&t!==!1&&t!=="false"}function S5e({variant:t="nav",current:e,"aria-current":n,className:r,children:a,ref:s,...i}){const u=e??n,c=Dre[t];return C.jsx("a",{ref:s,"aria-current":u,className:Ie(c.base,Ure(u)?c.current:c.rest,r),...i,children:a})}function jre(t){const[e,n]=_.useState(!1),r=e?fee:hee,a=e?"Hide password":"Show password";return C.jsx(es,{...t,type:e?"text":"password",trailing:C.jsx("button",{type:"button","aria-label":a,"aria-pressed":e,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 zre={info:"bg-accent-2",success:"bg-positive",warning:"bg-warning",danger:"bg-danger"};function Fre({value:t,max:e,tone:n="info",indeterminate:r=!1,className:a}){const s=r?100:e<=0?0:Math.min(100,Math.max(0,t/e*100));return C.jsx("div",{role:"progressbar","aria-valuenow":r?void 0:t,"aria-valuemin":r?void 0:0,"aria-valuemax":r?void 0:e,className:Ie("h-1.5 w-full overflow-hidden rounded-full bg-surface-sunken",a),children:C.jsx("div",{className:Ie("h-full rounded-full transition-[width] duration-300 ease-out",zre[n],r&&"w-1/3 animate-pulse"),style:r?void 0:{width:`${s}%`}})})}var zh;(function(t){t[t.UP=-1]="UP",t[t.DOWN=1]="DOWN"})(zh||(zh={}));function $re(t){var e=getComputedStyle(t).overflowY;return t===document.scrollingElement&&e==="visible"?!0:!(e!=="scroll"&&e!=="auto")}function Bre(t,e){if(!$re(t))return!1;if(e===zh.DOWN){var n=t.scrollTop+t.clientHeight;return n<t.scrollHeight}if(e===zh.UP)return t.scrollTop>0;throw new Error("unsupported direction")}function aj(t,e){return Bre(t,e)?!0:t.parentElement==null?!1:aj(t.parentElement,e)}function sj(t,e){e===void 0&&(e={});var n=e.insertAt;if(!(!t||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=t:a.appendChild(document.createTextNode(t))}}var Hre=`.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
+ }`;sj(Hre);var qre=function(){return F.createElement("div",{className:"lds-ellipsis"},F.createElement("div",null),F.createElement("div",null),F.createElement("div",null),F.createElement("div",null))},Wre=function(){return F.createElement("div",null,F.createElement("p",null,"↧  pull to refresh  ↧"))},Vre=`.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
+ }`;sj(Vre);var w5e=function(t){var e=t.isPullable,n=e===void 0?!0:e,r=t.canFetchMore,a=r===void 0?!1:r,s=t.onRefresh,i=t.onFetchMore,u=t.refreshingContent,c=u===void 0?F.createElement(qre,null):u,f=t.pullingContent,h=f===void 0?F.createElement(Wre,null):f,m=t.children,g=t.pullDownThreshold,y=g===void 0?67:g,S=t.fetchMoreThreshold,w=S===void 0?100:S,x=t.maxPullDownDistance,E=x===void 0?95:x,A=t.resistance,k=A===void 0?1:A,I=t.backgroundColor,N=t.className,O=N===void 0?"":N,T=_.useRef(null),P=_.useRef(null),D=_.useRef(null),q=_.useRef(null),U=!1,j=!1,$=!1,Z=0,ne=0;_.useEffect(function(){if(!(!n||!P||!P.current)){var V=P.current;return V.addEventListener("touchstart",ae,{passive:!0}),V.addEventListener("mousedown",ae),V.addEventListener("touchmove",he,{passive:!1}),V.addEventListener("mousemove",he),window.addEventListener("scroll",xe),V.addEventListener("touchend",z),V.addEventListener("mouseup",z),document.body.addEventListener("mouseleave",z),function(){V.removeEventListener("touchstart",ae),V.removeEventListener("mousedown",ae),V.removeEventListener("touchmove",he),V.removeEventListener("mousemove",he),window.removeEventListener("scroll",xe),V.removeEventListener("touchend",z),V.removeEventListener("mouseup",z),document.body.removeEventListener("mouseleave",z)}}},[m,n,s,y,E,a,w]),_.useEffect(function(){var V;if(!((V=T)===null||V===void 0)&&V.current){var K=T.current.classList.contains("ptr--fetch-more-treshold-breached");K||a&&H()<w&&i&&(T.current.classList.add("ptr--fetch-more-treshold-breached"),j=!0,i().then(X).catch(X))}},[a,m]);var H=function(){if(!P||!P.current)return-1;var V=window.scrollY,K=P.current.scrollHeight;return K-V-window.innerHeight},X=function(){requestAnimationFrame(function(){P.current&&(P.current.style.overflowX="hidden",P.current.style.overflowY="auto",P.current.style.transform="unset"),D.current&&(D.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")),U&&(U=!1),j&&(j=!1)})},ae=function(V){$=!1,V instanceof MouseEvent&&(Z=V.pageY),window.TouchEvent&&V instanceof TouchEvent&&(Z=V.touches[0].pageY),ne=Z,!(V.type==="touchstart"&&aj(V.target,zh.UP))&&(P.current.getBoundingClientRect().top<0||($=!0))},he=function(V){if($){if(window.TouchEvent&&V instanceof TouchEvent?ne=V.touches[0].pageY:ne=V.pageY,T.current.classList.add("ptr--dragging"),ne<Z){$=!1;return}V.cancelable&&V.preventDefault();var K=Math.min((ne-Z)/k,E);K>=y&&($=!0,U=!0,T.current.classList.remove("ptr--dragging"),T.current.classList.add("ptr--pull-down-treshold-breached")),!(K>=E)&&(D.current.style.opacity=(K/65).toString(),P.current.style.overflow="visible",P.current.style.transform="translate(0px, "+K+"px)",D.current.style.visibility="visible")}},xe=function(V){j||a&&H()<w&&i&&(j=!0,T.current.classList.add("ptr--fetch-more-treshold-breached"),i().then(X).catch(X))},z=function(){if($=!1,Z=0,ne=0,!U){D.current&&(D.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:I},ref:T},F.createElement("div",{className:"ptr__pull-down",ref:D},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 Gre=t=>t===1?"message":"messages",JE=t=>`${t.toLocaleString()} ${Gre(t)}`,QS=(t,e)=>t.kind==="delete"?`delete ${JE(t.count)}`:e===void 0?"empty it":`empty ${JE(e)}`,oj=t=>t.kind==="delete"?"Nothing has been deleted.":"Nothing has been emptied.",Kre=(t,e,n={})=>{const{trashFolderLabel:r,staleFolderLabel:a,selectedCount:s}=n,i=oj(e);if(t==="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 ${QS(e,void 0)}`,cancelLabel:"Cancel"};if(t==="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 ${QS(e,void 0)}`,cancelLabel:"Cancel"};const u="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 ${QS(e,s)}`,cancelLabel:"Cancel"}},Yre=(t,e,n)=>t.kind==="appointing"?{headline:"Setting the Trash folder…",status:n}:e.kind==="delete"?{headline:`Deleting ${JE(e.count)}…`,status:`Moving them to ${n}`}:{headline:`Emptying ${n}…`,status:"This can't be undone."},Zre=(t,e,n)=>t==="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. ${oj(e)} Please try again.`,Xre=({open:t,reason:e,action:n,folders:r,delimiter:a,trashFolderLabel:s,staleFolderLabel:i,accountEmail:u,phase:c,selectedId:f,onSelect:h,onCreateFolder:m,onConfirm:g,onCancel:y})=>{const S=_.useRef(null),w=c.kind==="appointing"||c.kind==="acting";_.useEffect(()=>{w&&S.current?.focus()},[w]);const x=r.find(k=>k.id===f),E=Kre(e,n,{trashFolderLabel:s,staleFolderLabel:i,selectedCount:x?.messageCount}),A=n.kind==="emptyTrash";if(!t)return null;if(w){const k=Yre(c,n,x?.label??"");return C.jsx(BE,{open:t,onClose:()=>{},title:E.title,children:C.jsxs("div",{ref:S,"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(Ph,{className:"size-8 animate-spin text-accent-2"}),C.jsx("p",{className:"text-sm font-medium text-fg",children:k.headline}),C.jsx("p",{className:"text-xs text-fg-muted",role:"status","aria-live":"polite",children:k.status})]})})}return C.jsxs(BE,{open:t,onClose:y,title:E.title,children:[C.jsxs("header",{className:"flex items-center gap-2 border-b border-line px-5 py-3",children:[C.jsx(ed,{className:`size-4 shrink-0 ${A?"text-danger":"text-warning"}`}),C.jsx("span",{className:"flex-1 text-sm font-semibold text-fg",children:E.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:E.description}),u&&C.jsx("p",{className:"text-xs text-fg-subtle",children:u})]}),c.kind==="appoint-failed"&&C.jsx("div",{className:"px-5 pb-3",children:C.jsx(B0,{tone:"danger",variant:"soft",children:Zre(c.cause,n,x?.label??"That folder")})}),C.jsx("p",{className:"px-5 pb-2 text-sm text-fg-muted",children:E.pickerPrompt}),C.jsx("div",{className:"flex h-[26rem] min-h-0 flex-1 overflow-hidden",children:C.jsx(mk,{folders:r,selectedId:f,delimiter:a,onSelect:h,onCreateFolder:e==="none"?m:void 0,onCancel:y,labels:{treeAriaLabel:"Folders on this account",optionLabel:k=>`Set ${k.label}${k.messageCount===void 0?"":`, ${k.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:y,children:E.cancelLabel}),x&&C.jsx(en,{variant:A?"danger":"primary",size:"sm",onClick:()=>g(x.id),children:C.jsx("span",{className:"truncate",children:E.confirmLabel})})]})]})};function Qre(t){return t.scopedOutFolder!==void 0||(t.droppedFacets?.length??0)>0||t.droppedSemantic===!0}function Jre(t){return`Your search was limited to ${t}. This filter matches these messages in any folder — it can't be pinned to one.`}const ij=t=>t.length===1?t[0]:t.length===2?`${t[0]} and ${t[1]}`:`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`;function eae(t){const e=t.length===1?"a filter condition":"filter conditions",n=t.length===1?"isn't":"aren't";return`${ij(t)} ${n} ${e}, so ${t.length===1?"it was":"they were"} left out — the filter still matches everything else you searched for.`}const JS="add a sender or words to filter on";function x5e(t){if(t.length===0)return`${JS[0].toUpperCase()}${JS.slice(1)}`;const e=t.length===1?"isn't":"aren't",n=t.length===1?"a filter condition":"filter conditions";return`${ij(t)} ${e} ${n} — ${JS}`}const tae="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 ew({icon:t,children:e}){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:t}),C.jsx("span",{children:e})]})}function nae({notice:t}){return Qre(t)?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:[t.scopedOutFolder!==void 0&&C.jsx(ew,{icon:C.jsx(gee,{className:"size-3.5"}),children:Jre(t.scopedOutFolder)}),t.droppedFacets&&t.droppedFacets.length>0&&C.jsx(ew,{icon:C.jsx(tU,{className:"size-3.5"}),children:eae(t.droppedFacets)}),t.droppedSemantic&&C.jsx(ew,{icon:C.jsx(FE,{className:"size-3.5"}),children:tae})]})]}):null}const rae={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}},gk=t=>rae[t],aae={match:"Apply to",properties:"Properties",folder:"Folder",rule:"Rule",name:"Name",review:"Review",run:"Run"},lj=t=>aae[t],C5e=({verb:t,mode:e,scope:n,fromSearch:r})=>{const a=r?["properties"]:e==="properties"?["match","properties"]:["match"];return t==="move"?[...a,"folder","review","run"]:t==="organize"?n==="standing"||n==="until"?[...a,"folder","rule","name","review","run"]:[...a,"folder","rule","review","run"]:[...a,"review","run"]},dv=(t,e)=>Math.max(0,t.indexOf(e)),sae=(t,e)=>dv(t,e)===0||e==="run",oae=(t,e)=>({clauses:[...t.clauses],matchOperator:t.matchOperator,widen:t.widen,moveMailboxId:t.moveMailboxId,scope:e,until:t.until,name:t.name}),uj=t=>GU(oae(t,t.scope??"once")),iae="A rule only works within one account — clear the selection, or pick messages from a single account.",lae="A destination only works within one account — clear the selection, or pick messages from a single account.",uae="Matching beyond the messages you picked only works within one account — clear the selection, or pick messages from a single account.",cae="A rule only works within one folder — clear the selection, or pick messages from a single folder.",dae="A destination only works within one folder — clear the selection, or pick messages from a single folder.",fae={spansAccounts:{rule:iae,destination:lae},spansFolders:{rule:cae,destination:dae}},E5e=(t,e)=>{const n=t===void 0?"spansAccounts":e;if(!n)return{accountId:t};const r=fae[n];return{accountId:n==="spansAccounts"?void 0:t,rule:r.rule,destination:r.destination}},hae=t=>t===void 0?["selected"]:["selected","similar","properties"],pae="This matches no messages, so there is nothing to do. Go back and change what it applies to.",mae="Fill in every property, or take the empty one off.",gae="Pick a destination first.",vae="Choose one of the three first.",_5e=(t,e,n)=>{if(t==="properties")return e.clauses.length===0?Aa.noMatch:e.clauses.some(r=>r.value.trim()==="")?mae:void 0;if(t==="folder")return e.moveMailboxId?void 0:gae;if(t==="rule")return e.scope?e.scope==="once"&&uj(e).length>0?Aa.bodyTextOnce:e.scope==="until"&&!e.until?.trim()?Aa.noUntilDate:void 0:vae;if(t==="name"&&!e.name?.trim())return Aa.unnamed;if(t==="review")return n.status==="uncounted"?void 0:n.status==="ready"&&n.count===0&&!n.stale?pae:ZU(n)},yae={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."},bae=t=>yae[t],vk=({state:t,verb:e,scope:n,matched:r,applied:a,failed:s,failureReason:i})=>{const{label:u,present:c,past:f}=gk(e),h=f.toLowerCase(),m=n==="standing"||n==="until",y={screenTitle:t==="saving"||t==="backApplyRunning"||t==="statusUnknown"||t==="commitFailed"?u:"Done",showProgress:t==="backApplyRunning"||t==="backApplyComplete"||t==="backApplyFailed"||t==="backApplyRestartFailed"||t==="statusUnknown"||t==="runStopped",failureListLabel:`Not ${h}`};return t==="saving"?{...y,title:m?"Saving rule…":"Applying…",detail:"Nothing has been changed yet.",tone:"progress",dismissLabel:"Close"}:t==="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"}:t==="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"}:t==="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"}:t==="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}`}:t==="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}`}:t==="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}`}:t==="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"}:t==="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}},Sae=t=>`${Wc(t.field)} "${t.value}"`,cj=(t,e)=>t.map(Sae).join(` ${pk(e)} `),h0=(t,e)=>t==="selected"?`These ${e} messages`:t==="similar"?H0({anchorCount:e}):KE("properties"),tw=t=>t==="selected"?"Only the messages ticked in the list.":VU(t),dj=t=>`Every message ${t}`,yk="the list is showing",wae="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.",xae="This covers messages not shown in the list, and anything else matching by the time it runs.",Cae=({mode:t,selectedCount:e,clauses:n,matchOperator:r,escalatedScope:a})=>t==="escalated"?dj(a??yk):t==="properties"?cj(n,r):h0(t,e),Eae=({mode:t,selectedCount:e,clauses:n,matchOperator:r,escalatedScope:a,escalatedCount:s})=>{if(t==="selected")return`${e} messages`;if(t==="escalated"){const i=a??yk;return s===void 0?`every message ${i}`:`all ${s.toLocaleString()} messages ${i}`}return t==="similar"?`mail ${H0({anchorCount:e}).toLowerCase()}`:n.length===0?"every message":`every message where ${cj(n,r)}`};function _ae({title:t,subtitle:e,steps:n,step:r,onBack:a,onExit:s,footer:i,children:u}){return C.jsx(_re,{title:t,subtitle:e,steps:n.map(lj),activeStep:dv(n,r),onBack:a,onExit:s,footer:i,children:u})}function Vc({selected:t,title:e,description:n,unavailable:r,onSelect:a,children:s}){const i=_.useId();return C.jsxs("div",{className:"space-y-1.5",children:[C.jsxs("button",{type:"button",onClick:a,"aria-pressed":t,"aria-describedby":r&&s?i:void 0,className:Ie("flex w-full items-start gap-3 rounded-lg border p-3 text-left transition-colors",t?"border-accent bg-accent-soft":"border-line bg-surface hover:bg-surface-sunken",r&&"opacity-55"),children:[C.jsx("span",{className:Ie("mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full border",t?"border-accent bg-accent text-accent-fg":"border-line"),children:t&&C.jsx(sv,{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:e}),C.jsx("span",{className:"mt-0.5 block text-xs text-fg-muted",children:n})]})]}),s&&C.jsx("div",{id:i,children:s})]})}const kae=(t,e)=>t.status==="uncounted"?"The first matches. The total is not known until the run finishes.":t.status==="ready"&&t.count>e&&!t.stale?`and ${t.count-e} more`:KU(t),Aae=(t,e,n)=>n?"Fetching the messages this covers…":t.status==="error"?t.reason:bae(e??"noMatch");function V0({messages:t,count:e,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}),t.length===0?C.jsx("p",{className:"px-3 py-4 text-xs text-fg-muted",children:Aae(e,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:t.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:kae(e,t.length)})]})]})}function h6({onBack:t,nextLabel:e,onNext:n,nextVariant:r="primary",blockedReason:a,nudged:s}){const i=_.useId();return C.jsxs("div",{className:"space-y-2",children:[a&&C.jsx(zne,{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:t,icon:C.jsx(JD,{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:Ie("flex-1",a&&"opacity-55"),children:[e,r==="primary"&&C.jsx(uee,{className:"size-4"})]})]})]})}function Rae({selectedCount:t,mode:e,accountId:n,onModeChange:r,semanticUnavailable:a,semanticErrorDetail:s,semanticFallbackTaken:i,onSemanticFallback:u,escalatedScope:c,sample:f}){if(e==="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:dj(c??yk)}),C.jsx("p",{className:"mt-1 text-xs text-fg-muted",children:wae})]}),C.jsx("div",{className:"mt-4",children:C.jsx(V0,{...f})})]});const m=hae(n).length>1;return C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"space-y-2",children:[!m&&C.jsx("p",{className:"px-1 text-2xs text-warning",children:uae}),C.jsx(Vc,{selected:e==="selected",onSelect:()=>r("selected"),title:h0("selected",t),description:tw("selected")}),m&&C.jsxs(Vc,{selected:e==="similar",unavailable:a,onSelect:a?u:()=>r("similar"),title:h0("similar",t),description:tw("similar"),children:[s&&C.jsxs("p",{role:"status",className:"px-1 text-2xs text-danger",children:["Couldn't find similar messages: ",s]}),i&&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."})]}),m&&C.jsx(Vc,{selected:e==="properties",onSelect:()=>r("properties"),title:h0("properties",t),description:tw("properties")})]}),C.jsx("div",{className:"mt-4",children:C.jsx(V0,{...f})})]})}const Iae=[{value:"all",label:q0("all")},{value:"any",label:q0("any")}];function Tae({clauses:t,matchOperator:e,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=pk(e);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(nae,{notice:g}),C.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[t.map((x,E)=>C.jsxs(_.Fragment,{children:[E>0&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:w}),C.jsx(XU,{clause:x,onEdit:()=>s(x.id),onRemove:()=>i(x.id)})]},x.id)),!r&&C.jsx(YE,{label:"Add clause",onClick:a})]}),r&&C.jsx(QU,{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}),t.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(f0,{name:"wizard-match-operator",size:"sm","aria-label":"Match operator",options:Iae,value:e,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(V0,{...S})]})}function Oae({folders:t,mailboxId:e,onSelect:n,onCreateFolder:r,delimiter:a,restriction:s}){const i=t.find(u=>u.id===e);return C.jsxs("div",{className:"flex min-h-0 flex-col gap-3",children:[C.jsx("p",{className:Ie("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(mk,{folders:t,selectedId:e,onSelect:n,onCreateFolder:r,delimiter:a,labels:{createPending:"Waiting for the mail server to confirm the folder…"}})})]})}function Nae({draft:t,onScopeChange:e,onUntilChange:n,restriction:r}){const a=_.useId(),{scope:s,until:i=""}=t,u=uj(t).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(Vc,{selected:s==="once",onSelect:()=>e("once"),title:d0("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:Aa.bodyTextOnce})}),C.jsx(Vc,{selected:s==="standing",unavailable:!!r,onSelect:()=>e("standing"),title:d0("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(Vc,{selected:s==="until",unavailable:!!r,onSelect:()=>e("until"),title:d0("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(hk,{htmlFor:a,children:"Stops on"}),C.jsx(es,{id:a,type:"date",value:i,onChange:f=>n(f.target.value)})]})]})]})}function Mae({name:t,onNameChange:e,nudged:n}){const r=_.useId(),a=_.useRef(null);return _.useEffect(()=>{n&&a.current?.focus()},[n]),C.jsxs(C.Fragment,{children:[C.jsx(hk,{htmlFor:r,children:"Rule name"}),C.jsx(es,{id:r,ref:a,value:t,placeholder:"Travel confirmations",onChange:s=>e(s.target.value),trailing:t?C.jsx("button",{type:"button","aria-label":"Clear name",onClick:()=>{e(""),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(Ts,{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 Pae({verb:t,mode:e,selectedCount:n,clauses:r,matchOperator:a,folder:s,scope:i,until:u,ruleName:c,escalatedScope:f,sample:h}){const{label:m}=gk(t),g={mode:e,selectedCount:n,clauses:r,matchOperator:a,escalatedScope:f,escalatedCount:h.count.status==="ready"?h.count.count:void 0},y=e!=="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})," ",Eae(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(ed,{className:"mt-px size-3.5 shrink-0"}),e==="escalated"?xae:"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:Cae(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:[d0(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(V0,{...h})]})}const bk=t=>({state:t.state,verb:t.verb,scope:t.scope,matched:t.matched,applied:t.applied,failed:t.failedCount??t.failures.length,failureReason:t.failureReason}),Lae=t=>t==="progress"?C.jsx(Ph,{className:"size-10 animate-spin text-accent"}):t==="warning"?C.jsx(ed,{className:"size-10 text-warning"}):t==="danger"?C.jsx(ed,{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(sv,{className:"size-6"})});function Dae(t){const{matched:e,applied:n,failures:r}=t,a=bk(t),s=vk(a),i=t.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:[Lae(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(Fre,{value:n,max:e,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(qE,{className:"mt-1",tone:"warning",children:i})]},u.id))})]})]})}function Uae(t){const{onRetry:e,onDismiss:n,onCancelRun:r}=t,a=vk(bk(t));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:e,children:a.retryLabel})]})}const jae={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:{}},ms=(t,e)=>{if(t===void 0)throw new Error(`The ${lj(e)} step was rendered without its answers.`);return t};function k5e(t){const{verb:e,steps:n,onExit:r,onContinue:a,onCommit:s}=t,{label:i,destructive:u}=gk(e),c=n[dv(n,t.step)],f=jae[c],h=sae(n,c)?r:t.onBack,m=()=>c==="match"?C.jsx(Rae,{...ms(t.match,c)}):c==="properties"?C.jsx(Tae,{...ms(t.properties,c)}):c==="folder"?C.jsx(Oae,{...ms(t.folder,c)}):c==="rule"?C.jsx(Nae,{...ms(t.rule,c)}):c==="name"?C.jsx(Mae,{...ms(t.name,c),nudged:t.nudged}):c==="review"?C.jsx(Pae,{...ms(t.review,c)}):C.jsx(Dae,{...ms(t.run,c)}),g=()=>{if(c==="run")return C.jsx(Uae,{...ms(t.run,c)});if(c==="review"){const w=ms(t.review,c);return C.jsx(h6,{onBack:h,nextLabel:w.scope?YU(w.scope):i,nextVariant:u?"danger":"primary",onNext:s,blockedReason:t.blockedReason,nudged:t.nudged})}return C.jsx(h6,{onBack:h,nextLabel:"Continue",onNext:a,blockedReason:t.blockedReason,nudged:t.nudged})},y=()=>c!=="run"?f.title??i:vk(bk(ms(t.run,c))).screenTitle,S=c==="match"&&t.match?.mode==="escalated"?"What this applies to":f.subtitle;return C.jsx(_ae,{title:y(),subtitle:S,steps:n,step:c,onBack:h,onExit:r,footer:g(),children:m()})}const zae={preparing:"Getting the new version ready",restarting:"Restarting Remit",reconnecting:"Waiting for Remit to answer again"};function p6(t){return zae[t]}function Fae(t){return t<90?"This usually takes about a minute.":t<240?"Longer than usual. Remit is still trying to reach the server.":"Still no answer. Remit keeps trying."}function A5e(t,e=Date.now()){const n=Math.floor((e-t)/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 R5e(t){return new Date(t).toLocaleDateString(void 0,{dateStyle:"medium"})}function $ae({children:t,show:e,label:n="Update available"}){return C.jsxs("span",{className:"relative inline-flex",children:[t,e&&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 m6=["preparing","restarting","reconnecting"],Bae='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';function fj(t){_.useEffect(()=>{const e=t.current;if(!e)return;const n=()=>Array.from(e.querySelectorAll(Bae));(n()[0]??e).focus();const r=a=>{if(a.key!=="Tab")return;const s=n();if(s.length===0){a.preventDefault(),e.focus();return}const i=s[0],u=s[s.length-1],c=document.activeElement;if(a.shiftKey&&(c===i||!e.contains(c))){a.preventDefault(),u.focus();return}!a.shiftKey&&(c===u||!e.contains(c))&&(a.preventDefault(),i.focus())};return window.addEventListener("keydown",r,!0),()=>window.removeEventListener("keydown",r,!0)},[t])}const hj="fixed inset-0 z-50 flex flex-col items-center justify-center gap-6 bg-canvas p-6 text-center outline-none";function Hae({target:t,phase:e,elapsedSeconds:n}){const r=_.useRef(null);fj(r);const a=m6.indexOf(e);return C.jsxs("div",{ref:r,role:"dialog","aria-modal":"true","aria-labelledby":"self-update-progress-title",tabIndex:-1,className:hj,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 ",t]}),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:m6.map((s,i)=>{const u=i<a,c=i===a;return C.jsxs("li",{className:Ie("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(sv,{className:"size-4 shrink-0 text-positive","aria-hidden":!0}):c?C.jsx(Ph,{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"}),p6(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:`${p6(e)}. `}),Fae(n)]})]})}function qae({attemptedVersion:t,previousVersion:e,elapsedSeconds:n,logsCommand:r,onRetryConnection:a}){const s=_.useRef(null);fj(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:hj,children:[C.jsx(ok,{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 ",t," 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 ",e," 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"})})]})}const Wae={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(Wae).sort((t,e)=>e.length-t.length).join("|");function Vae(t,e,n){if(!e.allowPrivateDomains&&t.length>3){const r=t.length-1,a=t.charCodeAt(r),s=t.charCodeAt(r-1),i=t.charCodeAt(r-2),u=t.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 Ol=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]),G0=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]),K0=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]),g6=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]),e3="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",Gae=621,Kae=625,pj=Ol.length,mj=K0.length,gj=new Uint32Array(mj),p0=new Uint32Array(mj),t3=new Int32Array(pj).fill(-1);for(let t=0,e=0;t<pj;t+=1)for(let n=G0[t];n<G0[t+1];n+=1){gj[n]=e;const r=e+K0[n];let a=5381;for(let s=r-1;s>=e;s-=1)a=a*33^e3.charCodeAt(s);p0[n]=a>>>0,K0[n]===1&&e3.charCodeAt(e)===42&&(t3[t]=n),e=r}let ho=-1,n3=0,r3=0;function v6(t,e,n,r){if(K0[t]!==r)return!1;const a=gj[t];for(let s=0;s<r;s+=1)if(e3.charCodeAt(a+s)!==e.charCodeAt(n+s))return!1;return!0}function y6(t,e,n,r,a){let s=G0[t],i=G0[t+1];for(;s<i;){const u=s+i>>>1,c=p0[u];if(c<e)s=u+1;else if(c>e)i=u;else{for(let f=u;f>=s&&p0[f]===e;f-=1)if(v6(f,n,r,a))return f;for(let f=u+1;f<i&&p0[f]===e;f+=1)if(v6(f,n,r,a))return f;return-1}}return-1}function b6(t,e,n){let r=e,a=t.length,s=5381;ho=-1;for(let u=t.length-1;u>=0;u-=1){const c=t.charCodeAt(u);if(c===46){const f=u+1;let h=y6(r,s>>>0,t,f,a-f);if(h===-1&&(h=t3[r]),h===-1)return ho!==-1;r=g6[h],(Ol[r]&n)!==0&&(ho=r,n3=f,r3=a),a=u,s=5381}else s=s*33^c}let i=y6(r,s>>>0,t,0,a);return i===-1&&(i=t3[r]),i!==-1&&(r=g6[i],(Ol[r]&n)!==0&&(ho=r,n3=0,r3=a)),ho!==-1}function I5e(t,e,n){if(Vae(t,e,n))return;const r=(e.allowPrivateDomains?2:0)|(e.allowIcannDomains?1:0);if(b6(t,Kae,r)){n.isIcann=(Ol[ho]&1)!==0,n.isPrivate=(Ol[ho]&2)!==0,n.publicSuffix=t.slice(r3+1);return}if(b6(t,Gae,r)){n.isIcann=(Ol[ho]&1)!==0,n.isPrivate=(Ol[ho]&2)!==0,n.publicSuffix=t.slice(n3);return}n.isIcann=!1,n.isPrivate=!1;const a=t.lastIndexOf(".");n.publicSuffix=a===-1?t:t.slice(a+1)}const Yae=()=>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((t,e)=>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"})]},e))]}),Zae=()=>C.jsx("div",{className:"min-w-0 flex-1",children:Array.from({length:8}).map((t,e)=>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"})]})]},e))}),fv=()=>C.jsxs("div",{className:"flex h-full animate-pulse bg-canvas","aria-hidden":"true",children:[C.jsx(Yae,{}),C.jsx(Zae,{})]}),Sk="b4e99eea3af1f9a67ac8e4a4ffbf2936bccdf616",Xae="2026-08-22T08:58:48.350Z",Qae=Sk.slice(0,7),Jae=/^[0-9a-f]{40}$/.test(Sk),ese=Jae?`https://github.com/remit-mail/reader/commit/${Sk}`:void 0,tse="https://github.com/remit-mail/reader/issues/new";class a3 extends Error{constructor(e,n,r){super(e),this.status=n,this.body=r,this.name="ApiError"}status;body}const Qi=t=>{if(t instanceof a3)return t.status;if(t&&typeof t=="object"){const e=t;if(typeof e.status=="number")return e.status;if(typeof e.statusCode=="number")return e.statusCode}},vj=t=>Qi(t)!==void 0,hv=t=>{const e=Qi(t);return e!==void 0&&e>=500&&e<=599},pv=t=>!!(typeof DOMException<"u"&&t instanceof DOMException&&t.name==="AbortError"||t&&typeof t=="object"&&"name"in t&&t.name==="AbortError"),nse=()=>typeof navigator<"u"&&navigator.onLine===!1,yj=t=>pv(t)||vj(t)?!1:t instanceof ak?!0:nse(),rse=t=>!vj(t)&&!pv(t)&&!yj(t),bj=t=>hv(t)||rse(t),ase=t=>Qi(t)===401,sse=t=>t?.softError===!0,Sj=(t,e,n="nobody")=>hv(t)?!0:pv(t)||yj(t)?!1:n==="user"&&ase(t)||bj(t)?!0:!sse(e),T5e={softError:!0},ose=t=>hv(t),s3=new Set;let wj=null,xj=null;const ise=t=>{xj=t},lse=t=>t instanceof Error?t:new Error(Cj(t)),Cj=t=>t instanceof Error?t.message||t.name:typeof t=="string"?t:t&&typeof t=="object"&&"message"in t&&typeof t.message=="string"?t.message:"An unexpected server error occurred.",use=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():`fatal-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,Yl=(t,e)=>{const n={error:t,message:Cj(t),correlationId:use(),at:Date.now(),recoverable:e?.recoverable??ose(t),stack:t instanceof Error?t.stack:void 0,componentStack:e?.componentStack};wj=n,mse(`Fatal: ${n.message} [${n.correlationId}]`),xj?.recordError(lse(t),{fatal:"true",correlationId:n.correlationId});for(const r of s3)r(n);return n},cse=t=>(s3.add(t),()=>{s3.delete(t)}),dse=()=>wj,fse=20,m0=[],hse=new Set(["ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications"]);function pse(t){return typeof t!="string"?!1:hse.has(t.replace(/\.\s*$/,""))}function g0(t){m0.push(t),m0.length>fse&&m0.shift()}function mse(t){g0(t)}function gse(t){return t.map(e=>{if(typeof e=="string")return e;if(e instanceof Error)return`${e.name}: ${e.message}`;try{return JSON.stringify(e)}catch{return String(e)}}).join(" ")}function vse(){const t=console.error.bind(console);console.error=(...e)=>{g0(gse(e)),t(...e)},window.addEventListener("error",e=>{pse(e.message)||(g0(`Uncaught ${e.error instanceof Error?`${e.error.name}: ${e.error.message}`:String(e.message)} (${e.filename}:${e.lineno})`),Yl(e.error??e.message))}),window.addEventListener("unhandledrejection",e=>{const n=e.reason,r=n instanceof Error?`${n.name}: ${n.message}`:String(n);g0(`Unhandled rejection: ${r}`),Yl(n)})}function yse(){return m0.slice()}const bse=8,kc=[];function Sse(t){const e=t.split(/[?#]/)[0],n=kc[kc.length-1];n&&n.path===e||(kc.push({path:e,timestamp:new Date().toISOString()}),kc.length>bse&&kc.shift())}function wse(){return kc.slice()}const nw=7500,S6=`
149
+ … (truncated — the copy action on this screen has the full report)`;function Y0(t){return{appShortSha:Qae,appCommitUrl:ese,appBuildTime:Xae,userAgent:navigator.userAgent,viewport:`${window.innerWidth}×${window.innerHeight}`,timestamp:new Date().toISOString(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,href:window.location.href,recentErrors:yse(),requests:jJ(),routes:wse(),failingRequest:zJ(),errorMessage:t?.errorMessage,stack:t?.stack,componentStack:t?.componentStack,quarantine:t?.quarantine,title:t?.title}}function rw(t){return["```",t,"```"].join(`
150
+ `)}function Ej(t){const e=/T(\d{2}:\d{2}:\d{2})/.exec(t);return e?e[1]:t}function xse(t){return`- **Version**: ${t.appCommitUrl?`[\`${t.appShortSha}\`](${t.appCommitUrl})`:`\`${t.appShortSha}\``} built ${t.appBuildTime}`}function Cse(t){const e=t.status===0?"no response (transport failure)":`${t.status}`;return["## Failing request",`- **Endpoint**: \`${t.path}\``,`- **Method**: ${t.method}`,`- **Status**: ${e}`,`- **Correlation id**: ${t.correlationId??"(none)"}`,""]}function Ese(t){return t.length===0?["## Recent API requests","(none)",""]:["## Recent API requests","| Time | Method | Path | Status | Duration | Correlation |","| --- | --- | --- | --- | --- | --- |",...t.map(n=>{const r=n.status===0?"ERR":`${n.status}`;return`| ${Ej(n.timestamp)} | ${n.method} | \`${n.path}\` | ${r} | ${n.durationMs}ms | ${n.correlationId??""} |`}),""]}function _se(t){return t.length===0?["## Navigation trail","(none)",""]:["## Navigation trail",...t.map(n=>`- ${Ej(n.timestamp)} \`${n.path}\``),""]}function _j(t,e){const n=t.recentErrors.length>0?t.recentErrors.map(s=>` - ${s}`).join(`
151
+ `):" (none)",r=["## Environment",xse(t),`- **Browser**: ${t.userAgent}`,`- **Viewport**: ${t.viewport}`,`- **Time**: ${t.timestamp} (${t.timezone})`,"","## URL",t.href,""];if(t.errorMessage&&r.push("## Error",t.errorMessage,""),t.failingRequest&&r.push(...Cse(t.failingRequest)),t.quarantine){const s=e?.quarantineStructure??t.quarantine.structure;r.push(t.quarantine.head,"",rw(s),"",t.quarantine.disclaimer,"")}const a=e?.stack??t.stack;return a&&r.push("## Stacktrace",rw(a),""),t.componentStack&&r.push("## Component stack",rw(t.componentStack),""),r.push(...Ese(t.requests)),r.push(..._se(t.routes)),r.push("## Recent console errors",n,"","## Steps to reproduce","1. ","","## Expected behaviour","","## Actual behaviour",""),r.join(`
152
+ `)}function kse(t){if(t.title)return t.title;if(!t.errorMessage)return"Bug: ";const e=t.errorMessage.split(`
153
+ `)[0].trim();return`Bug: ${e.length>120?`${e.slice(0,117)}…`:e}`}function lg(t,e){const n=new URLSearchParams({title:kse(t),body:_j(t,e)});return`${tse}?${n.toString()}`}function Ase(t){return _j(t)}function wk(t){const e=lg(t);if(e.length<=nw)return e;const n={...t,componentStack:void 0},r=[];t.stack&&r.push(["stack",t.stack]),t.quarantine?.structure&&r.push(["quarantineStructure",t.quarantine.structure]),r.sort((s,i)=>i[1].length-s[1].length);let a={};for(const[s,i]of r){if(lg(n,a).length<=nw)break;let u=0,c=i.length,f=0;for(;u<=c;){const h=u+c>>1;lg(n,{...a,[s]:i.slice(0,h)+S6}).length<=nw?(f=h,u=h+1):c=h-1}a={...a,[s]:i.slice(0,f)+S6}}return lg(n,a)}function O5e(){const t=wk(Y0());window.open(t,"_blank","noopener,noreferrer")}const Rse="/mail",kj=()=>{const[t,e]=_.useState(()=>dse());return _.useEffect(()=>cse(e),[]),t?C.jsx(Aj,{fatal:t}):null},w6=t=>({errorMessage:t.message,stack:t.stack,componentStack:t.componentStack}),Aj=({fatal:t,onRetry:e})=>{const[n,r]=_.useState(!1),a=()=>{window.location.reload()},s=()=>{if(e){e();return}a()},i=()=>{const f=wk(Y0(w6(t)));window.open(f,"_blank","noopener,noreferrer")},u=async()=>{const f=Ase(Y0(w6(t)));await navigator.clipboard.writeText(f),r(!0),window.setTimeout(()=>r(!1),2e3)},c=t.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(ok,{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:t.message}),C.jsxs("p",{className:"font-mono text-xs text-red-200",children:["Reference: ",t.correlationId]})]}),C.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3",children:[t.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:Rse,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"})]})]})},Ise=({betterAuthEnabled:t,cognitoConfigured:e})=>t?"betterAuth":e?"cognito":"none",Rj=t=>Ise(t)==="cognito"?Pne:void 0,Tse="Fetch Error",xk=(t,e)=>{if(t&&typeof t=="object"&&e in t){const n=t[e];if(typeof n=="string"&&n.trim().length>0)return n}},Ck=t=>xk(t,"message"),Ose=t=>pv(t)?!1:xk(t,"statusText")===Tse?!0:Qi(t)===void 0,Nse=t=>{if(Ose(t))return"network";const e=Qi(t);return e===void 0||e===404||e>=500?"fatal":Ck(t)?"validation":"fatal"},Mse="Can't reach the server. You may be offline — check your connection and try again.",Pse=(t,e)=>e==="network"?Mse:Ck(t)??"Please check your details and try again.",Lse=t=>{const e=Qi(t);if(e===void 0)return"no response";const n=xk(t,"statusText");return n?`${e} ${n}`:String(e)},Dse=(t,e)=>{const n=Lse(t),r=Qi(t)===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=Ck(t),s=a?` Server said: ${a}.`:"";return`${e.method} ${e.path} failed: ${n}. ${r}${s}`},Use=(t,e)=>{Yl(new Error(Dse(t,e)),{recoverable:!1})},jse={method:"POST",path:"/api/auth/sign-up/email"},zse={method:"POST",path:"/api/auth/sign-in/email"},Fse=()=>{const[t,e]=_.useState("signIn"),[n,r]=_.useState(""),[a,s]=_.useState(""),[i,u]=_.useState(""),[c,f]=_.useState(null),[h,m]=_.useState(!1),[g,y]=_.useState(!1),S=g?"signIn":t,w=(E,A)=>{if(BJ(E)){y(!0),e("signIn");return}const k=Nse(E);if(k==="fatal"){Use(E,A);return}f(Pse(E,k))},x=async E=>{if(E.preventDefault(),h)return;f(null),m(!0);const A=S==="signUp"?jse:zse,k=await(S==="signUp"?Mh.signUp.email({email:a,password:i,name:n}):Mh.signIn.email({email:a,password:i})).then(I=>I.error??null,I=>I);m(!1),k&&w(k,A)};return C.jsxs(C.Fragment,{children:[C.jsx(kj,{}),C.jsxs(zU,{children:[C.jsx($U,{}),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(B0,{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:()=>e("signIn"),children:"Sign in"}),C.jsx(en,{size:"sm",variant:S==="signUp"?"secondary":"ghost","aria-pressed":S==="signUp",onClick:()=>e("signUp"),children:"Create account"})]}),c&&C.jsx(B0,{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(es,{id:"ba-name",type:"text",autoComplete:"name",value:n,onChange:E=>r(E.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(es,{id:"ba-email",type:"email",autoComplete:"email",value:a,onChange:E=>s(E.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(jre,{id:"ba-password",autoComplete:S==="signUp"?"new-password":"current-password",value:i,onChange:E=>u(E.target.value),placeholder:"Your password",required:!0})]}),C.jsx(en,{type:"submit",children:S==="signUp"?"Create account":"Sign in"})]}),C.jsx(FU,{note:Rj({betterAuthEnabled:av(),cognitoConfigured:!1})})]})]})},$se=({children:t})=>{const{data:e,isPending:n}=Mh.useSession();return n?C.jsx(fv,{}):e?C.jsx(C.Fragment,{children:t}):C.jsx(Fse,{})},Bse=({children:t,fallback:e=null})=>{const{data:n}=Mh.useSession();if(!n)return C.jsx(C.Fragment,{children:e});const r=async()=>{await Mh.signOut(),sk()};return C.jsx(C.Fragment,{children:t({email:n.user.email??null,signOut:r})})},Z0={configure:()=>{},getToken:JJ,resetToken:sk,Shell:$se,Account:Bse};var aw,x6;function Hse(){if(x6)return aw;x6=1;function t(){this.__data__=[],this.size=0}return aw=t,aw}var sw,C6;function xp(){if(C6)return sw;C6=1;function t(e,n){return e===n||e!==e&&n!==n}return sw=t,sw}var ow,E6;function mv(){if(E6)return ow;E6=1;var t=xp();function e(n,r){for(var a=n.length;a--;)if(t(n[a][0],r))return a;return-1}return ow=e,ow}var iw,_6;function qse(){if(_6)return iw;_6=1;var t=mv(),e=Array.prototype,n=e.splice;function r(a){var s=this.__data__,i=t(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 iw=r,iw}var lw,k6;function Wse(){if(k6)return lw;k6=1;var t=mv();function e(n){var r=this.__data__,a=t(r,n);return a<0?void 0:r[a][1]}return lw=e,lw}var uw,A6;function Vse(){if(A6)return uw;A6=1;var t=mv();function e(n){return t(this.__data__,n)>-1}return uw=e,uw}var cw,R6;function Gse(){if(R6)return cw;R6=1;var t=mv();function e(n,r){var a=this.__data__,s=t(a,n);return s<0?(++this.size,a.push([n,r])):a[s][1]=r,this}return cw=e,cw}var dw,I6;function gv(){if(I6)return dw;I6=1;var t=Hse(),e=qse(),n=Wse(),r=Vse(),a=Gse();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=t,s.prototype.delete=e,s.prototype.get=n,s.prototype.has=r,s.prototype.set=a,dw=s,dw}var fw,T6;function Kse(){if(T6)return fw;T6=1;var t=gv();function e(){this.__data__=new t,this.size=0}return fw=e,fw}var hw,O6;function Yse(){if(O6)return hw;O6=1;function t(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}return hw=t,hw}var pw,N6;function Zse(){if(N6)return pw;N6=1;function t(e){return this.__data__.get(e)}return pw=t,pw}var mw,M6;function Xse(){if(M6)return mw;M6=1;function t(e){return this.__data__.has(e)}return mw=t,mw}var gw,P6;function Ij(){if(P6)return gw;P6=1;var t=typeof Zm=="object"&&Zm&&Zm.Object===Object&&Zm;return gw=t,gw}var vw,L6;function Ms(){if(L6)return vw;L6=1;var t=Ij(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return vw=n,vw}var yw,D6;function vv(){if(D6)return yw;D6=1;var t=Ms(),e=t.Symbol;return yw=e,yw}var bw,U6;function Qse(){if(U6)return bw;U6=1;var t=vv(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,a=t?t.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 bw=s,bw}var Sw,j6;function Jse(){if(j6)return Sw;j6=1;var t=Object.prototype,e=t.toString;function n(r){return e.call(r)}return Sw=n,Sw}var ww,z6;function Rd(){if(z6)return ww;z6=1;var t=vv(),e=Qse(),n=Jse(),r="[object Null]",a="[object Undefined]",s=t?t.toStringTag:void 0;function i(u){return u==null?u===void 0?a:r:s&&s in Object(u)?e(u):n(u)}return ww=i,ww}var xw,F6;function Oo(){if(F6)return xw;F6=1;function t(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}return xw=t,xw}var Cw,$6;function Ek(){if($6)return Cw;$6=1;var t=Rd(),e=Oo(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",s="[object Proxy]";function i(u){if(!e(u))return!1;var c=t(u);return c==r||c==a||c==n||c==s}return Cw=i,Cw}var Ew,B6;function eoe(){if(B6)return Ew;B6=1;var t=Ms(),e=t["__core-js_shared__"];return Ew=e,Ew}var _w,H6;function toe(){if(H6)return _w;H6=1;var t=eoe(),e=(function(){var r=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!e&&e in r}return _w=n,_w}var kw,q6;function Tj(){if(q6)return kw;q6=1;var t=Function.prototype,e=t.toString;function n(r){if(r!=null){try{return e.call(r)}catch{}try{return r+""}catch{}}return""}return kw=n,kw}var Aw,W6;function noe(){if(W6)return Aw;W6=1;var t=Ek(),e=toe(),n=Oo(),r=Tj(),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)||e(g))return!1;var y=t(g)?h:s;return y.test(r(g))}return Aw=m,Aw}var Rw,V6;function roe(){if(V6)return Rw;V6=1;function t(e,n){return e?.[n]}return Rw=t,Rw}var Iw,G6;function fu(){if(G6)return Iw;G6=1;var t=noe(),e=roe();function n(r,a){var s=e(r,a);return t(s)?s:void 0}return Iw=n,Iw}var Tw,K6;function _k(){if(K6)return Tw;K6=1;var t=fu(),e=Ms(),n=t(e,"Map");return Tw=n,Tw}var Ow,Y6;function yv(){if(Y6)return Ow;Y6=1;var t=fu(),e=t(Object,"create");return Ow=e,Ow}var Nw,Z6;function aoe(){if(Z6)return Nw;Z6=1;var t=yv();function e(){this.__data__=t?t(null):{},this.size=0}return Nw=e,Nw}var Mw,X6;function soe(){if(X6)return Mw;X6=1;function t(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}return Mw=t,Mw}var Pw,Q6;function ooe(){if(Q6)return Pw;Q6=1;var t=yv(),e="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function a(s){var i=this.__data__;if(t){var u=i[s];return u===e?void 0:u}return r.call(i,s)?i[s]:void 0}return Pw=a,Pw}var Lw,J6;function ioe(){if(J6)return Lw;J6=1;var t=yv(),e=Object.prototype,n=e.hasOwnProperty;function r(a){var s=this.__data__;return t?s[a]!==void 0:n.call(s,a)}return Lw=r,Lw}var Dw,eN;function loe(){if(eN)return Dw;eN=1;var t=yv(),e="__lodash_hash_undefined__";function n(r,a){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=t&&a===void 0?e:a,this}return Dw=n,Dw}var Uw,tN;function uoe(){if(tN)return Uw;tN=1;var t=aoe(),e=soe(),n=ooe(),r=ioe(),a=loe();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=t,s.prototype.delete=e,s.prototype.get=n,s.prototype.has=r,s.prototype.set=a,Uw=s,Uw}var jw,nN;function coe(){if(nN)return jw;nN=1;var t=uoe(),e=gv(),n=_k();function r(){this.size=0,this.__data__={hash:new t,map:new(n||e),string:new t}}return jw=r,jw}var zw,rN;function doe(){if(rN)return zw;rN=1;function t(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}return zw=t,zw}var Fw,aN;function bv(){if(aN)return Fw;aN=1;var t=doe();function e(n,r){var a=n.__data__;return t(r)?a[typeof r=="string"?"string":"hash"]:a.map}return Fw=e,Fw}var $w,sN;function foe(){if(sN)return $w;sN=1;var t=bv();function e(n){var r=t(this,n).delete(n);return this.size-=r?1:0,r}return $w=e,$w}var Bw,oN;function hoe(){if(oN)return Bw;oN=1;var t=bv();function e(n){return t(this,n).get(n)}return Bw=e,Bw}var Hw,iN;function poe(){if(iN)return Hw;iN=1;var t=bv();function e(n){return t(this,n).has(n)}return Hw=e,Hw}var qw,lN;function moe(){if(lN)return qw;lN=1;var t=bv();function e(n,r){var a=t(this,n),s=a.size;return a.set(n,r),this.size+=a.size==s?0:1,this}return qw=e,qw}var Ww,uN;function kk(){if(uN)return Ww;uN=1;var t=coe(),e=foe(),n=hoe(),r=poe(),a=moe();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=t,s.prototype.delete=e,s.prototype.get=n,s.prototype.has=r,s.prototype.set=a,Ww=s,Ww}var Vw,cN;function goe(){if(cN)return Vw;cN=1;var t=gv(),e=_k(),n=kk(),r=200;function a(s,i){var u=this.__data__;if(u instanceof t){var c=u.__data__;if(!e||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 Vw=a,Vw}var Gw,dN;function Ak(){if(dN)return Gw;dN=1;var t=gv(),e=Kse(),n=Yse(),r=Zse(),a=Xse(),s=goe();function i(u){var c=this.__data__=new t(u);this.size=c.size}return i.prototype.clear=e,i.prototype.delete=n,i.prototype.get=r,i.prototype.has=a,i.prototype.set=s,Gw=i,Gw}var Kw,fN;function voe(){if(fN)return Kw;fN=1;var t="__lodash_hash_undefined__";function e(n){return this.__data__.set(n,t),this}return Kw=e,Kw}var Yw,hN;function yoe(){if(hN)return Yw;hN=1;function t(e){return this.__data__.has(e)}return Yw=t,Yw}var Zw,pN;function boe(){if(pN)return Zw;pN=1;var t=kk(),e=voe(),n=yoe();function r(a){var s=-1,i=a==null?0:a.length;for(this.__data__=new t;++s<i;)this.add(a[s])}return r.prototype.add=r.prototype.push=e,r.prototype.has=n,Zw=r,Zw}var Xw,mN;function Soe(){if(mN)return Xw;mN=1;function t(e,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(e[r],r,e))return!0;return!1}return Xw=t,Xw}var Qw,gN;function woe(){if(gN)return Qw;gN=1;function t(e,n){return e.has(n)}return Qw=t,Qw}var Jw,vN;function Oj(){if(vN)return Jw;vN=1;var t=boe(),e=Soe(),n=woe(),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 E=-1,A=!0,k=c&a?new t:void 0;for(m.set(i,u),m.set(u,i);++E<y;){var I=i[E],N=u[E];if(f)var O=g?f(N,I,E,u,i,m):f(I,N,E,i,u,m);if(O!==void 0){if(O)continue;A=!1;break}if(k){if(!e(u,function(T,P){if(!n(k,P)&&(I===T||h(I,T,c,f,m)))return k.push(P)})){A=!1;break}}else if(!(I===N||h(I,N,c,f,m))){A=!1;break}}return m.delete(i),m.delete(u),A}return Jw=s,Jw}var ex,yN;function Nj(){if(yN)return ex;yN=1;var t=Ms(),e=t.Uint8Array;return ex=e,ex}var tx,bN;function xoe(){if(bN)return tx;bN=1;function t(e){var n=-1,r=Array(e.size);return e.forEach(function(a,s){r[++n]=[s,a]}),r}return tx=t,tx}var nx,SN;function Coe(){if(SN)return nx;SN=1;function t(e){var n=-1,r=Array(e.size);return e.forEach(function(a){r[++n]=a}),r}return nx=t,nx}var rx,wN;function Eoe(){if(wN)return rx;wN=1;var t=vv(),e=Nj(),n=xp(),r=Oj(),a=xoe(),s=Coe(),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]",E="[object ArrayBuffer]",A="[object DataView]",k=t?t.prototype:void 0,I=k?k.valueOf:void 0;function N(O,T,P,D,q,U,j){switch(P){case A:if(O.byteLength!=T.byteLength||O.byteOffset!=T.byteOffset)return!1;O=O.buffer,T=T.buffer;case E:return!(O.byteLength!=T.byteLength||!U(new e(O),new e(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 $=a;case S:var Z=D&i;if($||($=s),O.size!=T.size&&!Z)return!1;var ne=j.get(O);if(ne)return ne==T;D|=u,j.set(O,T);var H=r($(O),$(T),D,q,U,j);return j.delete(O),H;case x:if(I)return I.call(O)==I.call(T)}return!1}return rx=N,rx}var ax,xN;function Mj(){if(xN)return ax;xN=1;function t(e,n){for(var r=-1,a=n.length,s=e.length;++r<a;)e[s+r]=n[r];return e}return ax=t,ax}var sx,CN;function No(){if(CN)return sx;CN=1;var t=Array.isArray;return sx=t,sx}var ox,EN;function Pj(){if(EN)return ox;EN=1;var t=Mj(),e=No();function n(r,a,s){var i=a(r);return e(r)?i:t(i,s(r))}return ox=n,ox}var ix,_N;function _oe(){if(_N)return ix;_N=1;function t(e,n){for(var r=-1,a=e==null?0:e.length,s=0,i=[];++r<a;){var u=e[r];n(u,r,e)&&(i[s++]=u)}return i}return ix=t,ix}var lx,kN;function Lj(){if(kN)return lx;kN=1;function t(){return[]}return lx=t,lx}var ux,AN;function Dj(){if(AN)return ux;AN=1;var t=_oe(),e=Lj(),n=Object.prototype,r=n.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(i){return i==null?[]:(i=Object(i),t(a(i),function(u){return r.call(i,u)}))}:e;return ux=s,ux}var cx,RN;function koe(){if(RN)return cx;RN=1;function t(e,n){for(var r=-1,a=Array(e);++r<e;)a[r]=n(r);return a}return cx=t,cx}var dx,IN;function hu(){if(IN)return dx;IN=1;function t(e){return e!=null&&typeof e=="object"}return dx=t,dx}var fx,TN;function Aoe(){if(TN)return fx;TN=1;var t=Rd(),e=hu(),n="[object Arguments]";function r(a){return e(a)&&t(a)==n}return fx=r,fx}var hx,ON;function Rk(){if(ON)return hx;ON=1;var t=Aoe(),e=hu(),n=Object.prototype,r=n.hasOwnProperty,a=n.propertyIsEnumerable,s=t((function(){return arguments})())?t:function(i){return e(i)&&r.call(i,"callee")&&!a.call(i,"callee")};return hx=s,hx}var ih={exports:{}},px,NN;function Roe(){if(NN)return px;NN=1;function t(){return!1}return px=t,px}ih.exports;var MN;function Ik(){return MN||(MN=1,(function(t,e){var n=Ms(),r=Roe(),a=e&&!e.nodeType&&e,s=a&&!0&&t&&!t.nodeType&&t,i=s&&s.exports===a,u=i?n.Buffer:void 0,c=u?u.isBuffer:void 0,f=c||r;t.exports=f})(ih,ih.exports)),ih.exports}var mx,PN;function Sv(){if(PN)return mx;PN=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function n(r,a){var s=typeof r;return a=a??t,!!a&&(s=="number"||s!="symbol"&&e.test(r))&&r>-1&&r%1==0&&r<a}return mx=n,mx}var gx,LN;function Tk(){if(LN)return gx;LN=1;var t=9007199254740991;function e(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=t}return gx=e,gx}var vx,DN;function Ioe(){if(DN)return vx;DN=1;var t=Rd(),e=Tk(),n=hu(),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]",E="[object DataView]",A="[object Float32Array]",k="[object Float64Array]",I="[object Int8Array]",N="[object Int16Array]",O="[object Int32Array]",T="[object Uint8Array]",P="[object Uint8ClampedArray]",D="[object Uint16Array]",q="[object Uint32Array]",U={};U[A]=U[k]=U[I]=U[N]=U[O]=U[T]=U[P]=U[D]=U[q]=!0,U[r]=U[a]=U[x]=U[s]=U[E]=U[i]=U[u]=U[c]=U[f]=U[h]=U[m]=U[g]=U[y]=U[S]=U[w]=!1;function j($){return n($)&&e($.length)&&!!U[t($)]}return vx=j,vx}var yx,UN;function Toe(){if(UN)return yx;UN=1;function t(e){return function(n){return e(n)}}return yx=t,yx}var lh={exports:{}};lh.exports;var jN;function Ooe(){return jN||(jN=1,(function(t,e){var n=Ij(),r=e&&!e.nodeType&&e,a=r&&!0&&t&&!t.nodeType&&t,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{}})();t.exports=u})(lh,lh.exports)),lh.exports}var bx,zN;function Ok(){if(zN)return bx;zN=1;var t=Ioe(),e=Toe(),n=Ooe(),r=n&&n.isTypedArray,a=r?e(r):t;return bx=a,bx}var Sx,FN;function Uj(){if(FN)return Sx;FN=1;var t=koe(),e=Rk(),n=No(),r=Ik(),a=Sv(),s=Ok(),i=Object.prototype,u=i.hasOwnProperty;function c(f,h){var m=n(f),g=!m&&e(f),y=!m&&!g&&r(f),S=!m&&!g&&!y&&s(f),w=m||g||y||S,x=w?t(f.length,String):[],E=x.length;for(var A in f)(h||u.call(f,A))&&!(w&&(A=="length"||y&&(A=="offset"||A=="parent")||S&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||a(A,E)))&&x.push(A);return x}return Sx=c,Sx}var wx,$N;function Nk(){if($N)return wx;$N=1;var t=Object.prototype;function e(n){var r=n&&n.constructor,a=typeof r=="function"&&r.prototype||t;return n===a}return wx=e,wx}var xx,BN;function jj(){if(BN)return xx;BN=1;function t(e,n){return function(r){return e(n(r))}}return xx=t,xx}var Cx,HN;function Noe(){if(HN)return Cx;HN=1;var t=jj(),e=t(Object.keys,Object);return Cx=e,Cx}var Ex,qN;function Moe(){if(qN)return Ex;qN=1;var t=Nk(),e=Noe(),n=Object.prototype,r=n.hasOwnProperty;function a(s){if(!t(s))return e(s);var i=[];for(var u in Object(s))r.call(s,u)&&u!="constructor"&&i.push(u);return i}return Ex=a,Ex}var _x,WN;function wv(){if(WN)return _x;WN=1;var t=Ek(),e=Tk();function n(r){return r!=null&&e(r.length)&&!t(r)}return _x=n,_x}var kx,VN;function zj(){if(VN)return kx;VN=1;var t=Uj(),e=Moe(),n=wv();function r(a){return n(a)?t(a):e(a)}return kx=r,kx}var Ax,GN;function Poe(){if(GN)return Ax;GN=1;var t=Pj(),e=Dj(),n=zj();function r(a){return t(a,n,e)}return Ax=r,Ax}var Rx,KN;function Loe(){if(KN)return Rx;KN=1;var t=Poe(),e=1,n=Object.prototype,r=n.hasOwnProperty;function a(s,i,u,c,f,h){var m=u&e,g=t(s),y=g.length,S=t(i),w=S.length;if(y!=w&&!m)return!1;for(var x=y;x--;){var E=g[x];if(!(m?E in i:r.call(i,E)))return!1}var A=h.get(s),k=h.get(i);if(A&&k)return A==i&&k==s;var I=!0;h.set(s,i),h.set(i,s);for(var N=m;++x<y;){E=g[x];var O=s[E],T=i[E];if(c)var P=m?c(T,O,E,i,s,h):c(O,T,E,s,i,h);if(!(P===void 0?O===T||f(O,T,u,c,h):P)){I=!1;break}N||(N=E=="constructor")}if(I&&!N){var D=s.constructor,q=i.constructor;D!=q&&"constructor"in s&&"constructor"in i&&!(typeof D=="function"&&D instanceof D&&typeof q=="function"&&q instanceof q)&&(I=!1)}return h.delete(s),h.delete(i),I}return Rx=a,Rx}var Ix,YN;function Doe(){if(YN)return Ix;YN=1;var t=fu(),e=Ms(),n=t(e,"DataView");return Ix=n,Ix}var Tx,ZN;function Uoe(){if(ZN)return Tx;ZN=1;var t=fu(),e=Ms(),n=t(e,"Promise");return Tx=n,Tx}var Ox,XN;function joe(){if(XN)return Ox;XN=1;var t=fu(),e=Ms(),n=t(e,"Set");return Ox=n,Ox}var Nx,QN;function zoe(){if(QN)return Nx;QN=1;var t=fu(),e=Ms(),n=t(e,"WeakMap");return Nx=n,Nx}var Mx,JN;function Foe(){if(JN)return Mx;JN=1;var t=Doe(),e=_k(),n=Uoe(),r=joe(),a=zoe(),s=Rd(),i=Tj(),u="[object Map]",c="[object Object]",f="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",y=i(t),S=i(e),w=i(n),x=i(r),E=i(a),A=s;return(t&&A(new t(new ArrayBuffer(1)))!=g||e&&A(new e)!=u||n&&A(n.resolve())!=f||r&&A(new r)!=h||a&&A(new a)!=m)&&(A=function(k){var I=s(k),N=I==c?k.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 E:return m}return I}),Mx=A,Mx}var Px,eM;function $oe(){if(eM)return Px;eM=1;var t=Ak(),e=Oj(),n=Eoe(),r=Loe(),a=Foe(),s=No(),i=Ik(),u=Ok(),c=1,f="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,y=g.hasOwnProperty;function S(w,x,E,A,k,I){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 D=T==m,q=P==m,U=T==P;if(U&&i(w)){if(!i(x))return!1;N=!0,D=!1}if(U&&!D)return I||(I=new t),N||u(w)?e(w,x,E,A,k,I):n(w,x,T,E,A,k,I);if(!(E&c)){var j=D&&y.call(w,"__wrapped__"),$=q&&y.call(x,"__wrapped__");if(j||$){var Z=j?w.value():w,ne=$?x.value():x;return I||(I=new t),k(Z,ne,E,A,I)}}return U?(I||(I=new t),r(w,x,E,A,k,I)):!1}return Px=S,Px}var Lx,tM;function Fj(){if(tM)return Lx;tM=1;var t=$oe(),e=hu();function n(r,a,s,i,u){return r===a?!0:r==null||a==null||!e(r)&&!e(a)?r!==r&&a!==a:t(r,a,s,i,n,u)}return Lx=n,Lx}var Dx={exports:{}},Ux={};var nM;function Boe(){if(nM)return Ux;nM=1;var t=wp(),e=aee();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=e.useSyncExternalStore,s=t.useRef,i=t.useEffect,u=t.useMemo,c=t.useDebugValue;return Ux.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 E(O){if(!A){if(A=!0,k=O,O=g(O),y!==void 0&&w.hasValue){var T=w.value;if(y(T,O))return I=T}return I=O}if(T=I,r(k,O))return T;var P=g(O);return y!==void 0&&y(T,P)?(k=O,T):(k=O,I=P)}var A=!1,k,I,N=m===void 0?null:m;return[function(){return E(h())},N===null?void 0:function(){return E(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},Ux}var rM;function Hoe(){return rM||(rM=1,Dx.exports=Boe()),Dx.exports}var $j=Hoe();var ve=function(){return ve=Object.assign||function(e){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)&&(e[s]=n[s])}return e},ve.apply(this,arguments)};function Mk(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function vt(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function It(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),a,s=[],i;try{for(;(e===void 0||e-- >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 un(t,e,n){if(arguments.length===2)for(var r=0,a=e.length,s;r<a;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}var Ft;(function(t){t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose"})(Ft||(Ft={}));var Zl;(function(t){t.Parent="#_parent",t.Internal="#_internal"})(Zl||(Zl={}));var o3=Ft.Start,Pk=Ft.Stop,Cp=Ft.Raise,xv=Ft.Send,Bj=Ft.Cancel,qoe=Ft.NullEvent,Lk=Ft.Assign;Ft.After;Ft.DoneState;var Hj=Ft.Log,Woe=Ft.Init,i3=Ft.Invoke;Ft.ErrorExecution;var aM=Ft.ErrorPlatform,Voe=Ft.ErrorCustom,Dk=Ft.Update,Goe=Ft.Choose,Koe=Ft.Pure,qj=".",sM={},l3="xstate.guard",Yoe="",ug;function Uk(t,e,n){n===void 0&&(n=qj);var r=bh(t,n),a=bh(e,n);return Mt(a)?Mt(r)?a===r:!1:Mt(r)?r in a:Object.keys(r).every(function(s){return s in a?Uk(r[s],a[s]):!1})}function Wj(t){try{return Mt(t)||typeof t=="number"?"".concat(t):t.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function u3(t,e){try{return Id(t)?t:t.toString().split(e)}catch{throw new Error("'".concat(t,"' is not a valid state path."))}}function Zoe(t){return typeof t=="object"&&"value"in t&&"context"in t&&"event"in t&&"_event"in t}function bh(t,e){if(Zoe(t))return t.value;if(Id(t))return X0(t);if(typeof t!="string")return t;var n=u3(t,e);return X0(n)}function X0(t){if(t.length===1)return t[0];for(var e={},n=e,r=0;r<t.length-1;r++)r===t.length-2?n[t[r]]=t[r+1]:(n[t[r]]={},n=n[t[r]]);return e}function uh(t,e){for(var n={},r=Object.keys(t),a=0;a<r.length;a++){var s=r[a];n[s]=e(t[s],s,t,a)}return n}function oM(t,e,n){var r,a,s={};try{for(var i=vt(Object.keys(t)),u=i.next();!u.done;u=i.next()){var c=u.value,f=t[c];n(f)&&(s[c]=e(f,c,t))}}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 Xoe=function(t){return function(e){var n,r,a=e;try{for(var s=vt(t),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 Qoe(t,e){return function(n){var r,a,s=n;try{for(var i=vt(t),u=i.next();!u.done;u=i.next()){var c=u.value;s=s[e][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 v0(t){if(!t)return[[]];if(Mt(t))return[[t]];var e=gn(Object.keys(t).map(function(n){var r=t[n];return typeof r!="string"&&(!r||!Object.keys(r).length)?[[n]]:v0(t[n]).map(function(a){return[n].concat(a)})}));return e}function gn(t){var e;return(e=[]).concat.apply(e,un([],It(t),!1))}function Vj(t){return Id(t)?t:[t]}function Ha(t){return t===void 0?[]:Vj(t)}function Q0(t,e,n){var r,a;if(Pt(t))return t(e,n.data);var s={};try{for(var i=vt(Object.keys(t)),u=i.next();!u.done;u=i.next()){var c=u.value,f=t[c];Pt(f)?s[c]=f(e,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 Joe(t){return/^(done|error)\./.test(t)}function iM(t){return!!(t instanceof Promise||t!==null&&(Pt(t)||typeof t=="object")&&Pt(t.then))}function eie(t){return t!==null&&typeof t=="object"&&"transition"in t&&typeof t.transition=="function"}function tie(t,e){var n,r,a=It([[],[]],2),s=a[0],i=a[1];try{for(var u=vt(t),c=u.next();!c.done;c=u.next()){var f=c.value;e(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 Gj(t,e){return uh(t.states,function(n,r){if(n){var a=(Mt(e)?void 0:e[r])||(n?n.current:void 0);if(a)return{current:a,states:Gj(n,a)}}})}function nie(t,e){return{current:e,states:Gj(t,e)}}function lM(t,e,n,r){var a=t&&n.reduce(function(s,i){var u,c,f=i.assignment,h={state:r,action:i,_event:e},m={};if(Pt(f))m=f(s,e.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,e.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)},t);return a}var rie=function(){};function Id(t){return Array.isArray(t)}function Pt(t){return typeof t=="function"}function Mt(t){return typeof t=="string"}function Kj(t,e){if(t)return Mt(t)?{type:l3,name:t,predicate:e?e[t]:void 0}:Pt(t)?{type:l3,name:t.name,predicate:t}:t}function aie(t){try{return"subscribe"in t&&Pt(t.subscribe)}catch{return!1}}var Ii=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();ug={},ug[Ii]=function(){return this},ug[Symbol.observable]=function(){return this};function td(t){return!!t&&"__xstatenode"in t}function sie(t){return!!t&&typeof t.send=="function"}var oie=(function(){var t=0;return function(){return t++,t.toString(16)}})();function Cv(t,e){return Mt(t)||typeof t=="number"?ve({type:t},e):t}function or(t,e){if(!Mt(t)&&"$$type"in t&&t.$$type==="scxml")return t;var n=Cv(t);return ve({name:n.type,data:n,$$type:"scxml",type:"external"},e)}function fc(t,e){var n=Vj(e).map(function(r){return typeof r>"u"||typeof r=="string"||td(r)?{target:r,event:t}:ve(ve({},r),{event:t})});return n}function iie(t){if(!(t===void 0||t===Yoe))return Ha(t)}function Yj(t,e,n,r,a){var s=t.options.guards,i={state:a,cond:e,_event:r};if(e.type===l3)return(s?.[e.name]||e.predicate)(n,r.data,i);var u=s?.[e.type];if(!u)throw new Error("Guard '".concat(e.type,"' is not implemented on machine '").concat(t.id,"'."));return u(n,r.data,i)}function Zj(t){return typeof t=="string"?{type:t}:t}function Sh(t,e,n){var r=function(){},a=typeof t=="object",s=a?t:null;return{next:((a?t.next:t)||r).bind(s),error:((a?t.error:e)||r).bind(s),complete:((a?t.complete:n)||r).bind(s)}}function cg(t,e){return"".concat(t,":invocation[").concat(e,"]")}function c3(t){return(t.type===Cp||t.type===xv&&t.to===Zl.Internal)&&typeof t.delay!="number"}var zl=or({type:Woe});function J0(t,e){return e&&e[t]||void 0}function nd(t,e){var n;if(Mt(t)||typeof t=="number"){var r=J0(t,e);Pt(r)?n={type:t,exec:r}:r?n=r:n={type:t,exec:void 0}}else if(Pt(t))n={type:t.name||t.toString(),exec:t};else{var r=J0(t.type,e);if(Pt(r))n=ve(ve({},t),{exec:r});else if(r){var a=r.type||t.type;n=ve(ve(ve({},r),t),{type:a})}else n=t}return n}var po=function(t,e){if(!t)return[];var n=Id(t)?t:[t];return n.map(function(r){return nd(r,e)})};function Ev(t){var e=nd(t);return ve(ve({id:Mt(t)?t:e.id},e),{type:e.type})}function Xj(t,e){return{type:Cp,event:typeof t=="function"?t:Cv(t),delay:e?e.delay:void 0,id:e?.id}}function Qj(t,e,n,r){var a={_event:n},s=or(Pt(t.event)?t.event(e,n.data,a):t.event),i;if(Mt(t.delay)){var u=r&&r[t.delay];i=Pt(u)?u(e,n.data,a):u}else i=Pt(t.delay)?t.delay(e,n.data,a):t.delay;return ve(ve({},t),{type:Cp,_event:s,delay:i})}function _v(t,e){return{to:e?e.to:void 0,type:xv,event:Pt(t)?t:Cv(t),delay:e?e.delay:void 0,id:e&&e.id!==void 0?e.id:Pt(t)?t.name:Wj(t)}}function Jj(t,e,n,r){var a={_event:n},s=or(Pt(t.event)?t.event(e,n.data,a):t.event),i;if(Mt(t.delay)){var u=r&&r[t.delay];i=Pt(u)?u(e,n.data,a):u}else i=Pt(t.delay)?t.delay(e,n.data,a):t.delay;var c=Pt(t.to)?t.to(e,n.data,a):t.to;return ve(ve({},t),{to:c,_event:s,event:s.data,delay:i})}function ez(t,e){return _v(t,ve(ve({},e),{to:Zl.Parent}))}function tz(){return ez(Dk)}var nz=function(t,e,n){return ve(ve({},t),{value:Mt(t.expr)?t.expr:t.expr(e,n.data,{_event:n})})},rz=function(t){return{type:Bj,sendId:t}};function az(t){var e=Ev(t);return{type:Ft.Start,activity:e,exec:void 0}}function sz(t){var e=Pt(t)?t:Ev(t);return{type:Ft.Stop,activity:e,exec:void 0}}function oz(t,e,n){var r=Pt(t.activity)?t.activity(e,n.data):t.activity,a=typeof r=="string"?{id:r}:r,s={type:Ft.Stop,activity:a};return s}var iz=function(t){return{type:Lk,assignment:t}};function lz(t,e){var n=e?"#".concat(e):"";return"".concat(Ft.After,"(").concat(t,")").concat(n)}function ch(t,e){var n="".concat(Ft.DoneState,".").concat(t),r={type:n,data:e};return r.toString=function(){return n},r}function wh(t,e){var n="".concat(Ft.DoneInvoke,".").concat(t),r={type:n,data:e};return r.toString=function(){return n},r}function Pc(t,e){var n="".concat(Ft.ErrorPlatform,".").concat(t),r={type:n,data:e};return r.toString=function(){return n},r}function uz(t,e){return _v(function(n,r){return r},ve(ve({},e),{to:t}))}function lie(t){return{type:Ft.Choose,conds:t}}var uie=function(t){var e,n,r=[];try{for(var a=vt(t),s=a.next();!s.done;s=a.next())for(var i=s.value,u=0;u<i.actions.length;){if(i.actions[u].type===Lk){r.push(i.actions[u]),i.actions.splice(u,1);continue}u++}}catch(c){e={error:c}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return r};function Fh(t,e,n,r,a,s,i){i===void 0&&(i=!1);var u=i?[]:uie(a),c=u.length?lM(n,r,u,e):n,f=i?[n]:void 0,h=[];function m(S,w){var x;switch(w.type){case Cp:{var E=Qj(w,c,r,t.options.delays);return s&&typeof E.delay=="number"&&s(E,c,r),E}case xv:var A=Jj(w,c,r,t.options.delays);return s&&A.to!==Zl.Internal&&(S==="entry"?h.push(A):s(A,c,r)),A;case Hj:{var k=nz(w,c,r);return s?.(k,c,r),k}case Goe:{var I=w,N=(x=I.conds.find(function(H){var X=Kj(H.cond,t.options.guards);return!X||Yj(t,X,c,r,s?void 0:e)}))===null||x===void 0?void 0:x.actions;if(!N)return[];var O=It(Fh(t,e,c,r,[{type:S,actions:po(Ha(N),t.options.actions)}],s,i),2),T=O[0],P=O[1];return c=P,f?.push(c),T}case Koe:{var N=w.get(c,r.data);if(!N)return[];var D=It(Fh(t,e,c,r,[{type:S,actions:po(Ha(N),t.options.actions)}],s,i),2),q=D[0],U=D[1];return c=U,f?.push(c),q}case Pk:{var k=oz(w,c,r);return s?.(k,n,r),k}case Lk:{c=lM(c,r,[w],s?void 0:e),f?.push(c);break}default:var j=nd(w,t.options.actions),$=j.exec;if(s)s(j,c,r);else if($&&f){var Z=f.length-1,ne=ve(ve({},j),{exec:function(H){for(var X=[],ae=1;ae<arguments.length;ae++)X[ae-1]=arguments[ae];$.apply(void 0,un([f[Z]],It(X),!1))}});j=ne}return j}}function g(S){var w,x,E=[];try{for(var A=vt(S.actions),k=A.next();!k.done;k=A.next()){var I=k.value,N=m(S.type,I);N&&(E=E.concat(N))}}catch(O){w={error:O}}finally{try{k&&!k.done&&(x=A.return)&&x.call(A)}finally{if(w)throw w.error}}return h.forEach(function(O){s(O,c,r)}),h.length=0,E}var y=gn(a.map(g));return[y,c]}const cz=Object.freeze(Object.defineProperty({__proto__:null,after:lz,assign:iz,cancel:rz,choose:lie,done:ch,doneInvoke:wh,error:Pc,forwardTo:uz,getActionFunction:J0,initEvent:zl,raise:Xj,resolveActions:Fh,resolveLog:nz,resolveRaise:Qj,resolveSend:Jj,resolveStop:oz,send:_v,sendParent:ez,sendUpdate:tz,start:az,stop:sz,toActionObject:nd,toActionObjects:po,toActivityDefinition:Ev},Symbol.toStringTag,{value:"Module"}));var e1=[],Ac=function(t,e){e1.push(t);var n=e(t);return e1.pop(),n},cie=function(t){return t(e1[e1.length-1])};function dz(t){var e;return e={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:t}}},e[Ii]=function(){return this},e}function die(t,e,n,r){var a,s=Zj(t.src),i=(a=e?.options.services)===null||a===void 0?void 0:a[s.type],u=t.data?Q0(t.data,n,r):void 0,c=i?jk(i,t.id,u):dz(t.id);return c.meta=t,c}function jk(t,e,n){var r=dz(e);if(r.deferred=!0,td(t)){var a=r.state=Ac(void 0,function(){return(n?t.withContext(n):t).initialState});r.getSnapshot=function(){return a}}return r}function fie(t){try{return typeof t.send=="function"}catch{return!1}}function hie(t){return fie(t)&&"id"in t}function pie(t){var e;return ve((e={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},e[Ii]=function(){return this},e),t)}var t1=function(t){return t.type==="atomic"||t.type==="final"};function fz(t){return Object.keys(t.states).map(function(e){return t.states[e]})}function $h(t){return fz(t).filter(function(e){return e.type!=="history"})}function hz(t){var e=[t];return t1(t)?e:e.concat(gn($h(t).map(hz)))}function dh(t,e){var n,r,a,s,i,u,c,f,h=new Set(t),m=d3(h),g=new Set(e);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(D){n={error:D}}finally{try{S&&!S.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}var E=d3(g);try{for(var A=vt(g),k=A.next();!k.done;k=A.next()){var w=k.value;if(w.type==="compound"&&(!E.get(w)||!E.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 I=(i=void 0,vt($h(w))),N=I.next();!N.done;N=I.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=I.return)&&u.call(I)}finally{if(i)throw i.error}}}}catch(D){a={error:D}}finally{try{k&&!k.done&&(s=A.return)&&s.call(A)}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(D){c={error:D}}finally{try{P&&!P.done&&(f=T.return)&&f.call(T)}finally{if(c)throw c.error}}return g}function pz(t,e){var n=e.get(t);if(!n)return{};if(t.type==="compound"){var r=n[0];if(r){if(t1(r))return r.key}else return{}}var a={};return n.forEach(function(s){a[s.key]=pz(s,e)}),a}function d3(t){var e,n,r=new Map;try{for(var a=vt(t),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){e={error:u}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return r}function mie(t,e){var n=dh([t],e);return pz(t,d3(n))}function fh(t,e){return Array.isArray(t)?t.some(function(n){return n===e}):t instanceof Set?t.has(e):!1}function gie(t){return un([],It(new Set(gn(un([],It(t.map(function(e){return e.ownEvents})),!1)))),!1)}function y0(t,e){return e.type==="compound"?$h(e).some(function(n){return n.type==="final"&&fh(t,n)}):e.type==="parallel"?$h(e).every(function(n){return y0(t,n)}):!1}function vie(t){return t===void 0&&(t=[]),t.reduce(function(e,n){return n.meta!==void 0&&(e[n.id]=n.meta),e},{})}function uM(t){return new Set(gn(t.map(function(e){return e.tags})))}function mz(t,e){if(t===e)return!0;if(t===void 0||e===void 0)return!1;if(Mt(t)||Mt(e))return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(a){return mz(t[a],e[a])})}function yie(t){return typeof t!="object"||t===null?!1:"value"in t&&"_event"in t}function bie(t,e){var n=t.exec,r=ve(ve({},t),{exec:n!==void 0?function(){return n(e.context,e.event,{action:t,state:e,_event:e._event})}:void 0});return r}var qa=(function(){function t(e){var n=this,r;this.actions=[],this.activities=sM,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||sM,this.meta=vie(e.configuration),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=(r=Array.isArray(e.tags)?new Set(e.tags):e.tags)!==null&&r!==void 0?r:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return gie(n.configuration)}})}return t.from=function(e,n){if(e instanceof t)return e.context!==n?new t({value:e.value,context:n,_event:e._event,_sessionid:null,historyValue:e.historyValue,history:e.history,actions:[],activities:e.activities,events:[],configuration:[],transitions:[],children:{}}):e;var r=zl;return new t({value:e,context:n,_event:r,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,events:[],configuration:[],transitions:[],children:{}})},t.create=function(e){return new t(e)},t.inert=function(e,n){if(e instanceof t){if(!e.actions.length)return e;var r=zl;return new t({value:e.value,context:n,_event:r,_sessionid:null,historyValue:e.historyValue,history:e.history,activities:e.activities,configuration:e.configuration,transitions:[],children:{}})}return t.from(e,n)},t.prototype.toStrings=function(e,n){var r=this;if(e===void 0&&(e=this.value),n===void 0&&(n="."),Mt(e))return[e];var a=Object.keys(e);return a.concat.apply(a,un([],It(a.map(function(s){return r.toStrings(e[s],n).map(function(i){return s+n+i})})),!1))},t.prototype.toJSON=function(){var e=this;e.configuration,e.transitions;var n=e.tags;e.machine;var r=Mk(e,["configuration","transitions","tags","machine"]);return ve(ve({},r),{tags:Array.from(n)})},t.prototype.matches=function(e){return Uk(e,this.value)},t.prototype.hasTag=function(e){return this.tags.has(e)},t.prototype.can=function(e){var n;rie(!!this.machine);var r=(n=this.machine)===null||n===void 0?void 0:n.getTransitionData(this,e);return!!r?.transitions.length&&r.transitions.some(function(a){return a.target!==void 0||a.actions.length})},t})(),Sie={deferEvents:!1},cM=(function(){function t(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=ve(ve({},Sie),e)}return t.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents){this.schedule(e);return}this.process(e)}this.flushEvents()},t.prototype.schedule=function(e){if(!this.initialized||this.processingEvent){this.queue.push(e);return}if(this.queue.length!==0)throw new Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()},t.prototype.clear=function(){this.queue=[]},t.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},t.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(n){throw this.clear(),n}finally{this.processingEvent=!1}},t})(),jx=new Map,wie=0,Ff={bookId:function(){return"x:".concat(wie++)},register:function(t,e){return jx.set(t,e),t},get:function(t){return jx.get(t)},free:function(t){jx.delete(t)}};function zk(){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 xie(){var t=zk();if(t&&"__xstate__"in t)return t.__xstate__}function Cie(t){if(zk()){var e=xie();e&&e.register(t)}}function Eie(t,e){e===void 0&&(e={});var n=t.initialState,r=new Set,a=[],s=!1,i=function(){if(!s){for(s=!0;a.length>0;){var f=a.shift();n=t.transition(n,f,c),r.forEach(function(h){return h.next(n)})}s=!1}},u=pie({id:e.id,send:function(f){a.push(f),i()},getSnapshot:function(){return n},subscribe:function(f,h,m){var g=Sh(f,h,m);return r.add(g),g.next(n),{unsubscribe:function(){r.delete(g)}}}}),c={parent:e.parent,self:u,id:e.id||"anonymous",observers:r};return n=t.start?t.start(c):n,u}var f3={sync:!1,autoForward:!1},jn;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(jn||(jn={}));var _ie=(function(){function t(e,n){n===void 0&&(n=t.defaultOptions);var r=this;this.machine=e,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(Id(h))return r.batch(h),r.state;var g=or(Cv(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===Zl.Parent||r.parent.id===m),S=y?r.parent:Mt(m)?m===Zl.Internal?r:r.children.get(m)||Ff.get(m):sie(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=ve(ve({},h),{name:h.name===Voe?"".concat(Pc(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||J0(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 Cp:{var x=h;r.defer(x);break}case xv:var E=h;if(typeof E.delay=="number"){r.defer(E);return}else E.to?r.sendTo(E._event,E.to,g===zl):r.send(E._event);break;case Bj:r.cancel(h.sendId);break;case o3:{if(r.status!==jn.Running)return;var A=h.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[A.id||A.type])break;if(A.type===Ft.Invoke){var k=Zj(A.src),I=r.machine.options.services?r.machine.options.services[k.type]:void 0,N=A.id,O=A.data,T="autoForward"in A?A.autoForward:!!A.forward;if(!I)return;var P=O?Q0(O,m,g):void 0;if(typeof I=="string")return;var D=Pt(I)?I(m,g.data,{data:P,src:k,meta:A.meta}):I;if(!D)return;var q=void 0;td(D)&&(D=P?D.withContext(P):D,q={autoForward:T}),r.spawn(D,N,q)}else r.spawnActivity(A);break}case Pk:{r.stopChild(h.activity.id);break}case Hj:var U=h,j=U.label,$=U.value;j?r.logger(j,$):r.logger($);break}};var a=ve(ve({},t.defaultOptions),n),s=a.clock,i=a.logger,u=a.parent,c=a.id,f=c!==void 0?c:e.id;this.id=f,this.logger=i,this.clock=s,this.parent=u,this.options=a,this.scheduler=new cM({deferEvents:this.options.deferEvents}),this.sessionId=Ff.bookId()}return Object.defineProperty(t.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:Ac(this,function(){return e._initialState=e.machine.initialState,e._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),t.prototype.execute=function(e,n){var r,a;try{for(var s=vt(e.actions),i=s.next();!i.done;i=s.next()){var u=i.value;this.exec(u,e,n)}}catch(c){r={error:c}}finally{try{i&&!i.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}},t.prototype.update=function(e,n){var r,a,s,i,u,c,f,h,m=this;if(e._sessionid=this.sessionId,this._state=e,(!this.machine.config.predictableActionArguments||n===zl)&&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(D){m.state.children[D.id]=D}),this.devTools&&this.devTools.send(n.data,e),e.event)try{for(var y=vt(this.eventListeners),S=y.next();!S.done;S=y.next()){var w=S.value;w(e.event)}}catch(D){r={error:D}}finally{try{S&&!S.done&&(a=y.return)&&a.call(y)}finally{if(r)throw r.error}}try{for(var x=vt(this.listeners),E=x.next();!E.done;E=x.next()){var w=E.value;w(e,e.event)}}catch(D){s={error:D}}finally{try{E&&!E.done&&(i=x.return)&&i.call(x)}finally{if(s)throw s.error}}try{for(var A=vt(this.contextListeners),k=A.next();!k.done;k=A.next()){var I=k.value;I(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(D){u={error:D}}finally{try{k&&!k.done&&(c=A.return)&&c.call(A)}finally{if(u)throw u.error}}if(this.state.done){var N=e.configuration.find(function(D){return D.type==="final"&&D.parent===m.machine}),O=N&&N.doneData?Q0(N.doneData,e.context,n):void 0;this._doneEvent=wh(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(D){f={error:D}}finally{try{P&&!P.done&&(h=T.return)&&h.call(T)}finally{if(f)throw f.error}}this._stop(),this._stopChildren(),Ff.free(this.sessionId)}},t.prototype.onTransition=function(e){return this.listeners.add(e),this.status===jn.Running&&e(this.state,this.state.event),this},t.prototype.subscribe=function(e,n,r){var a=this,s=Sh(e,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)}}},t.prototype.onEvent=function(e){return this.eventListeners.add(e),this},t.prototype.onSend=function(e){return this.sendListeners.add(e),this},t.prototype.onChange=function(e){return this.contextListeners.add(e),this},t.prototype.onStop=function(e){return this.stopListeners.add(e),this},t.prototype.onDone=function(e){return this.status===jn.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},t.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},t.prototype.start=function(e){var n=this;if(this.status===jn.Running)return this;this.machine._init(),Ff.register(this.sessionId,this),this.initialized=!0,this.status=jn.Running;var r=e===void 0?this.initialState:Ac(this,function(){return yie(e)?n.machine.resolveState(e):n.machine.resolveState(qa.from(e,n.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){n.update(r,zl)}),this},t.prototype._stopChildren=function(){this.children.forEach(function(e){Pt(e.stop)&&e.stop()}),this.children.clear()},t.prototype._stop=function(){var e,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){e={error:T}}finally{try{g&&!g.done&&(n=m.return)&&n.call(m)}finally{if(e)throw e.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),E=x.next();!E.done;E=x.next()){var y=E.value;this.contextListeners.delete(y)}}catch(T){s={error:T}}finally{try{E&&!E.done&&(i=x.return)&&i.call(x)}finally{if(s)throw s.error}}try{for(var A=vt(this.doneListeners),k=A.next();!k.done;k=A.next()){var y=k.value;this.doneListeners.delete(y)}}catch(T){u={error:T}}finally{try{k&&!k.done&&(c=A.return)&&c.call(A)}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 I=vt(Object.keys(this.delayedEventsMap)),N=I.next();!N.done;N=I.next()){var O=N.value;this.clock.clearTimeout(this.delayedEventsMap[O])}}catch(T){f={error:T}}finally{try{N&&!N.done&&(h=I.return)&&h.call(I)}finally{if(f)throw f.error}}this.scheduler.clear(),this.scheduler=new cM({deferEvents:this.options.deferEvents})},t.prototype.stop=function(){var e=this,n=this.scheduler;return this._stop(),n.schedule(function(){var r;if(!(!((r=e._state)===null||r===void 0)&&r.done)){var a=or({type:"xstate.stop"}),s=Ac(e,function(){var i=gn(un([],It(e.state.configuration),!1).sort(function(m,g){return g.order-m.order}).map(function(m){return po(m.onExit,e.machine.options.actions)})),u=It(Fh(e.machine,e.state,e.state.context,a,[{type:"exit",actions:i}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),c=u[0],f=u[1],h=new qa({value:e.state.value,context:f,_event:a,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:c.filter(function(m){return!c3(m)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return h.changed=!0,h});e.update(s,a),e._stopChildren(),Ff.free(e.sessionId)}}),this},t.prototype.batch=function(e){var n=this;if(!(this.status===jn.NotStarted&&this.options.deferEvents)){if(this.status!==jn.Running)throw new Error("".concat(e.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(e.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=or(y);n.forward(S),i=Ac(n,function(){return n.machine.transition(i,S,void 0,r||void 0)}),c.push.apply(c,un([],It(n.machine.config.predictableActionArguments?i.actions:i.actions.map(function(w){return bie(w,i)})),!1)),u=u||!!i.changed};try{for(var h=vt(e),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,or(e[e.length-1]))})}},t.prototype.sender=function(e){return this.send.bind(this,e)},t.prototype._nextState=function(e,n){var r=this;n===void 0&&(n=!!this.machine.config.predictableActionArguments&&this._exec);var a=or(e);if(a.name.indexOf(aM)===0&&!this.state.nextEvents.some(function(i){return i.indexOf(aM)===0}))throw a.data.data;var s=Ac(this,function(){return r.machine.transition(r.state,a,void 0,n||void 0)});return s},t.prototype.nextState=function(e){return this._nextState(e,!1)},t.prototype.forward=function(e){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(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(i,"'."));u.send(e)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},t.prototype.defer=function(e){var n=this,r=this.clock.setTimeout(function(){"to"in e&&e.to?n.sendTo(e._event,e.to,!0):n.send(e._event)},e.delay);e.id&&(this.delayedEventsMap[e.id]=r)},t.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},t.prototype.exec=function(e,n,r){r===void 0&&(r=this.machine.options.actions),this._exec(e,n.context,n._event,r)},t.prototype.removeChild=function(e){var n;this.children.delete(e),this.forwardTo.delete(e),(n=this.state)===null||n===void 0||delete n.children[e]},t.prototype.stopChild=function(e){var n=this.children.get(e);n&&(this.removeChild(e),Pt(n.stop)&&n.stop())},t.prototype.spawn=function(e,n,r){if(this.status!==jn.Running)return jk(e,n);if(iM(e))return this.spawnPromise(Promise.resolve(e),n);if(Pt(e))return this.spawnCallback(e,n);if(hie(e))return this.spawnActor(e,n);if(aie(e))return this.spawnObservable(e,n);if(td(e))return this.spawnMachine(e,ve(ve({},r),{id:n}));if(eie(e))return this.spawnBehavior(e,n);throw new Error('Unable to spawn entity "'.concat(n,'" of type "').concat(typeof e,'".'))},t.prototype.spawnMachine=function(e,n){var r=this;n===void 0&&(n={});var a=new t(e,ve(ve({},this.options),{parent:this,id:n.id||e.id})),s=ve(ve({},f3),n);s.sync&&a.onTransition(function(u){r.send(Dk,{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(or(u,{origin:a.id}))}).start(),i},t.prototype.spawnBehavior=function(e,n){var r=Eie(e,{id:n,parent:this});return this.children.set(n,r),r},t.prototype.spawnPromise=function(e,n){var r,a=this,s=!1,i;e.then(function(c){s||(i=c,a.removeChild(n),a.send(or(wh(n,c),{origin:n})))},function(c){if(!s){a.removeChild(n);var f=Pc(n,c);try{a.send(or(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=Sh(c,f,h),g=!1;return e.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[Ii]=function(){return this},r);return this.children.set(n,u),u},t.prototype.spawnCallback=function(e,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(or(g,{origin:n}))},h;try{h=e(f,function(g){i.add(g)})}catch(g){this.send(Pc(n,g))}if(iM(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=Sh(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[Ii]=function(){return this},r);return this.children.set(n,m),m},t.prototype.spawnObservable=function(e,n){var r,a=this,s,i=e.subscribe(function(c){s=c,a.send(or(c,{origin:n}))},function(c){a.removeChild(n),a.send(or(Pc(n,c),{origin:n}))},function(){a.removeChild(n),a.send(or(wh(n),{origin:n}))}),u=(r={id:n,send:function(){},subscribe:function(c,f,h){return e.subscribe(c,f,h)},stop:function(){return i.unsubscribe()},getSnapshot:function(){return s},toJSON:function(){return{id:n}}},r[Ii]=function(){return this},r);return this.children.set(n,u),u},t.prototype.spawnActor=function(e,n){return this.children.set(n,e),e},t.prototype.spawnActivity=function(e){var n=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(n){var r=n(this.state.context,e);this.spawnEffect(e.id,r)}},t.prototype.spawnEffect=function(e,n){var r;this.children.set(e,(r={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:n||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}},r[Ii]=function(){return this},r))},t.prototype.attachDev=function(){var e=zk();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var n=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(ve(ve({name:this.id,autoPause:!0,stateSanitizer:function(r){return{value:r.value,context:r.context,actions:r.actions}}},n),{features:ve({jump:!1,skip:!1},n?n.features:void 0)}),this.machine),this.devTools.init(this.state)}Cie(this)}},t.prototype.toJSON=function(){return{id:this.id}},t.prototype[Ii]=function(){return this},t.prototype.getSnapshot=function(){return this.status===jn.NotStarted?this.initialState:this._state},t.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,n){return setTimeout(e,n)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},t.interpret=gz,t})(),kie=function(t){return Mt(t)?ve(ve({},f3),{name:t}):ve(ve(ve({},f3),{name:oie()}),t)};function $f(t,e){var n=kie(e);return cie(function(r){return r?r.spawn(t,n.name,n):jk(t,n.name)})}function gz(t,e){var n=new _ie(t,e);return n}function Aie(t){if(typeof t=="string"){var e={type:t};return e.toString=function(){return t},e}return t}function dg(t){return ve(ve({type:i3},t),{toJSON:function(){t.onDone,t.onError;var e=Mk(t,["onDone","onError"]);return ve(ve({},e),{type:i3,src:Aie(t.src)})}})}var fg="",h3="#",zx="*",hc={},pc=function(t){return t[0]===h3},Rie=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},Iie=(function(){function t(e,n,r,a){r===void 0&&(r="context"in e?e.context:void 0);var s=this,i;this.config=e,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(Rie(),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:qj),this.id=this.config.id||un([this.machine.key],It(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?uh(this.config.states,function(f,h){var m,g=new t(f,{},void 0,{parent:s,key:h});return Object.assign(s.idMap,ve((m={},m[g.id]=g,m),g.idMap)),g}):hc;var u=0;function c(f){var h,m;f.order=u++;try{for(var g=vt(fz(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===fg}):fg in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=Ha(this.config.entry||this.config.onEntry).map(function(f){return nd(f)}),this.onExit=Ha(this.config.exit||this.config.onExit).map(function(f){return nd(f)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=Ha(this.config.invoke).map(function(f,h){var m,g;if(td(f)){var y=cg(s.id,h);return s.machine.options.services=ve((m={},m[y]=f,m),s.machine.options.services),dg({src:y,id:y})}else if(Mt(f.src)){var y=f.id||cg(s.id,h);return dg(ve(ve({},f),{id:y,src:f.src}))}else if(td(f.src)||Pt(f.src)){var y=f.id||cg(s.id,h);return s.machine.options.services=ve((g={},g[y]=f.src,g),s.machine.options.services),dg(ve(ve({id:y},f),{src:y}))}else{var S=f.src;return dg(ve(ve({id:cg(s.id,h)},f),{src:S}))}}),this.activities=Ha(this.config.activities).concat(this.invoke).map(function(f){return Ev(f)}),this.transition=this.transition.bind(this),this.tags=Ha(this.config.tags)}return t.prototype._init=function(){this.__cache.transitions||hz(this).forEach(function(e){return e.on})},t.prototype.withConfig=function(e,n){var r=this.options,a=r.actions,s=r.activities,i=r.guards,u=r.services,c=r.delays;return new t(this.config,{actions:ve(ve({},a),e.actions),activities:ve(ve({},s),e.activities),guards:ve(ve({},i),e.guards),services:ve(ve({},u),e.services),delays:ve(ve({},c),e.delays)},n??this.context)},t.prototype.withContext=function(e){return new t(this.config,this.options,e)},Object.defineProperty(t.prototype,"context",{get:function(){return Pt(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(t.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:uh(this.states,function(e){return e.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}),t.prototype.toJSON=function(){return this.definition},Object.defineProperty(t.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce(function(n,r){return n[r.eventType]=n[r.eventType]||[],n[r.eventType].push(r),n},{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),t.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var n=e===fg,r=this.transitions.filter(function(a){var s=a.eventType===e;return n?s:s||a.eventType===zx});return this.__cache.candidates[e]=r,r},t.prototype.getDelayedTransitions=function(){var e=this,n=this.config.after;if(!n)return[];var r=function(s,i){var u=Pt(s)?"".concat(e.id,":delay[").concat(i,"]"):s,c=lz(u,e.id);return e.onEntry.push(_v(c,{delay:s})),e.onExit.push(rz(c)),c},a=Id(n)?n.map(function(s,i){var u=r(s.delay,i);return ve(ve({},s),{event:u})}):gn(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 Ha(c).map(function(m){return ve(ve({},m),{event:h,delay:f})})}));return a.map(function(s){var i=s.delay;return ve(ve({},e.formatTransition(s)),{delay:i})})},t.prototype.getStateNodes=function(e){var n,r=this;if(!e)return[];var a=e instanceof qa?e.value:bh(e,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,un([],It(gn(i.map(function(c){return r.getStateNode(c).getStateNodes(a[c])}))),!1)),u},t.prototype.handles=function(e){var n=Wj(e);return this.events.includes(n)},t.prototype.resolveState=function(e){var n=e instanceof qa?e:qa.create(e),r=Array.from(dh([],this.getStateNodes(n.value)));return new qa(ve(ve({},n),{value:this.resolve(n.value),configuration:r,done:y0(r,this),tags:uM(r),machine:this.machine}))},t.prototype.transitionLeafNode=function(e,n,r){var a=this.getStateNode(e),s=a.next(n,r);return!s||!s.transitions.length?this.next(n,r):s},t.prototype.transitionCompoundNode=function(e,n,r){var a=Object.keys(e),s=this.getStateNode(a[0]),i=s._transition(e[a[0]],n,r);return!i||!i.transitions.length?this.next(n,r):i},t.prototype.transitionParallelNode=function(e,n,r){var a,s,i={};try{for(var u=vt(Object.keys(e)),c=u.next();!c.done;c=u.next()){var f=c.value,h=e[f];if(h){var m=this.getStateNode(f),g=m._transition(h,n,r);g&&(i[f]=g)}}}catch(E){a={error:E}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(a)throw a.error}}var y=Object.keys(i).map(function(E){return i[E]}),S=gn(y.map(function(E){return E.transitions})),w=y.some(function(E){return E.transitions.length>0});if(!w)return this.next(n,r);var x=gn(Object.keys(i).map(function(E){return i[E].configuration}));return{transitions:S,exitSet:gn(y.map(function(E){return E.exitSet})),configuration:x,source:n,actions:gn(Object.keys(i).map(function(E){return i[E].actions}))}},t.prototype._transition=function(e,n,r){return Mt(e)?this.transitionLeafNode(e,n,r):Object.keys(e).length===1?this.transitionCompoundNode(e,n,r):this.transitionParallelNode(e,n,r)},t.prototype.getTransitionData=function(e,n){return this._transition(e.value,e,or(n))},t.prototype.next=function(e,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=e.context,x=S?Mt(S)&&pc(S)?e.matches(bh(this.getStateNodeById(S).path,this.delimiter)):Uk(bh(S,this.delimiter),Xoe(this.path.slice(0,-2))(e.value)):!0,E=!1;try{E=!y||Yj(this.machine,y,w,n,e)}catch(I){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(I.message))}if(E&&x){g.target!==void 0&&(c=g.target),u.push.apply(u,un([],It(g.actions),!1)),f=g;break}}}catch(I){r={error:I}}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:e.value?[this]:[],source:e,actions:u};var A=gn(c.map(function(I){return s.getRelativeStateNodes(I,e.historyValue)})),k=!!f.internal;return{transitions:[f],exitSet:k?[]:gn(c.map(function(I){return s.getPotentiallyReenteringNodes(I)})),configuration:A,source:e,actions:u}}},t.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var n=[],r=this,a=e;r&&r!==a;)n.push(r),r=r.parent;return r!==a?[]:(n.push(a),n)},t.prototype.getActions=function(e,n,r,a,s,i,u){var c,f,h,m,g=this,y=i?dh([],this.getStateNodes(i.value)):[],S=new Set;try{for(var w=vt(Array.from(e).sort(function(U,j){return U.order-j.order})),x=w.next();!x.done;x=w.next()){var E=x.value;(!fh(y,E)||fh(r.exitSet,E)||E.parent&&S.has(E.parent))&&S.add(E)}}catch(U){c={error:U}}finally{try{x&&!x.done&&(f=w.return)&&f.call(w)}finally{if(c)throw c.error}}try{for(var A=vt(y),k=A.next();!k.done;k=A.next()){var E=k.value;(!fh(e,E)||fh(r.exitSet,E.parent))&&r.exitSet.push(E)}}catch(U){h={error:U}}finally{try{k&&!k.done&&(m=A.return)&&m.call(A)}finally{if(h)throw h.error}}r.exitSet.sort(function(U,j){return j.order-U.order});var I=Array.from(S).sort(function(U,j){return U.order-j.order}),N=new Set(r.exitSet),O=gn(I.map(function(U){var j=[];if(U.type!=="final")return j;var $=U.parent;if(!$.parent)return j;j.push(ch(U.id,U.doneData),ch($.id,U.doneData?Q0(U.doneData,a,s):void 0));var Z=$.parent;return Z.type==="parallel"&&$h(Z).every(function(ne){return y0(r.configuration,ne)})&&j.push(ch(Z.id)),j})),T=I.map(function(U){var j=U.onEntry,$=U.activities.map(function(Z){return az(Z)});return{type:"entry",actions:po(u?un(un([],It(j),!1),It($),!1):un(un([],It($),!1),It(j),!1),g.machine.options.actions)}}).concat({type:"state_done",actions:O.map(function(U){return Xj(U)})}),P=Array.from(N).map(function(U){return{type:"exit",actions:po(un(un([],It(U.onExit),!1),It(U.activities.map(function(j){return sz(j)})),!1),g.machine.options.actions)}}),D=P.concat({type:"transition",actions:po(r.actions,this.machine.options.actions)}).concat(T);if(n){var q=po(gn(un([],It(e),!1).sort(function(U,j){return j.order-U.order}).map(function(U){return U.onExit})),this.machine.options.actions).filter(function(U){return!c3(U)});return D.concat({type:"stop",actions:q})}return D},t.prototype.transition=function(e,n,r,a){e===void 0&&(e=this.initialState);var s=or(n),i;if(e instanceof qa)i=r===void 0?e:this.resolveState(qa.from(e,r));else{var u=Mt(e)?this.resolve(X0(this.getResolvedPath(e))):this.resolve(e),c=r??this.machine.context;i=this.resolveState(qa.from(u,c))}if(this.strict&&!this.events.includes(s.name)&&!Joe(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=dh([],this.getStateNodes(i.value)),m=f.configuration.length?dh(h,f.configuration):h;return f.configuration=un([],It(m),!1),this.resolveTransition(f,i,i.context,a,s)},t.prototype.resolveRaisedTransition=function(e,n,r,a){var s,i=e.actions;return e=this.transition(e,n,void 0,a),e._event=r,e.event=r.data,(s=e.actions).unshift.apply(s,un([],It(i),!1)),e},t.prototype.resolveTransition=function(e,n,r,a,s){var i,u,c,f,h=this;s===void 0&&(s=zl);var m=e.configuration,g=!n||e.transitions.length>0,y=g?e.configuration:n?n.configuration:[],S=y0(y,this),w=g?mie(this.machine,m):void 0,x=n?n.historyValue?n.historyValue:e.source?this.machine.historyValue(n.value):void 0:void 0,E=this.getActions(new Set(y),S,e,r,s,n,a),A=n?ve({},n.activities):{};try{for(var k=vt(E),I=k.next();!I.done;I=k.next()){var N=I.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===o3?A[P.activity.id||P.activity.type]=P:P.type===Pk&&(A[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{I&&!I.done&&(u=k.return)&&u.call(k)}finally{if(i)throw i.error}}var D=It(Fh(this,n,r,s,E,a,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),q=D[0],U=D[1],j=It(tie(q,c3),2),$=j[0],Z=j[1],ne=q.filter(function(J){var G;return J.type===o3&&((G=J.activity)===null||G===void 0?void 0:G.type)===i3}),H=ne.reduce(function(J,G){return J[G.activity.id]=die(G.activity,h.machine,U,s),J},n?ve({},n.children):{}),X=new qa({value:w||n.value,context:U,_event:s,_sessionid:n?n._sessionid:null,historyValue:w?x?nie(x,w):void 0:n?n.historyValue:void 0,history:!w||e.source?n:void 0,actions:w?Z:[],activities:w?A:n?n.activities:{},events:[],configuration:y,transitions:e.transitions,children:H,done:S,tags:uM(y),machine:this}),ae=r!==U;X.changed=s.name===Dk||ae;var he=X.history;he&&delete he.history;var xe=!S&&(this._transient||m.some(function(J){return J._transient}));if(!g&&(!xe||s.name===fg))return X;var z=X;if(!S)for(xe&&(z=this.resolveRaisedTransition(z,{type:qoe},s,a));$.length;){var V=$.shift();z=this.resolveRaisedTransition(z,V._event,s,a)}var K=z.changed||(he?!!z.actions.length||ae||typeof he.value!=typeof z.value||!mz(z.value,he.value):void 0);return z.changed=K,z.history=he,z},t.prototype.getStateNode=function(e){if(pc(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var n=this.states[e];if(!n)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return n},t.prototype.getStateNodeById=function(e){var n=pc(e)?e.slice(h3.length):e;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},t.prototype.getStateNodeByPath=function(e){if(typeof e=="string"&&pc(e))try{return this.getStateNodeById(e.slice(1))}catch{}for(var n=u3(e,this.delimiter).slice(),r=this;n.length;){var a=n.shift();if(!a.length)break;r=r.getStateNode(a)}return r},t.prototype.resolve=function(e){var n,r=this;if(!e)return this.initialStateValue||hc;switch(this.type){case"parallel":return uh(this.initialStateValue,function(s,i){return s?r.getStateNode(i).resolve(e[i]||s):hc});case"compound":if(Mt(e)){var a=this.getStateNode(e);return a.type==="parallel"||a.type==="compound"?(n={},n[e]=a.initialStateValue,n):e}return Object.keys(e).length?uh(e,function(s,i){return s?r.getStateNode(i).resolve(s):hc}):this.initialStateValue||{};default:return e||hc}},t.prototype.getResolvedPath=function(e){if(pc(e)){var n=this.machine.idMap[e.slice(h3.length)];if(!n)throw new Error("Unable to find state node '".concat(e,"'"));return n.path}return u3(e,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var e;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var n;if(this.type==="parallel")n=oM(this.states,function(r){return r.initialStateValue||hc},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=t1(this.states[this.initial])?this.initial:(e={},e[this.initial]=this.states[this.initial].initialStateValue,e)}else n={};return this.__cache.initialStateValue=n,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(e,n){this._init();var r=this.getStateNodes(e);return this.resolveTransition({configuration:r,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,n??this.machine.context,void 0)},Object.defineProperty(t.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var e;if(this.type==="history"){var n=this.config;Mt(n.target)?e=pc(n.target)?X0(this.machine.getStateNodeById(n.target).path.slice(this.path.length-1)):n.target:e=n.target}return e},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(e,n,r){return r===void 0&&(r=!0),r?e.type==="history"?e.resolveHistory(n):e.initialStateNodes:[e]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var e=this;if(t1(this))return[this];if(this.type==="compound"&&!this.initial)return[this];var n=v0(this.initialStateValue);return gn(n.map(function(r){return e.getFromRelativePath(r)}))},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var n=It(e),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)},t.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:oM(this.states,function(n,r){if(!e)return n.historyValue();var a=Mt(e)?void 0:e[r];return n.historyValue(a||n.initialStateValue)},function(n){return!n.history})}},t.prototype.resolveHistory=function(e){var n=this;if(this.type!=="history")return[this];var r=this.parent;if(!e){var a=this.target;return a?gn(v0(a).map(function(i){return r.getFromRelativePath(i)})):r.initialStateNodes}var s=Qoe(r.path,"states")(e).current;return Mt(s)?[r.getStateNode(s)]:gn(v0(s).map(function(i){return n.history==="deep"?r.getFromRelativePath(i):[r.states[i[0]]]}))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var e=this,n=gn(Object.keys(this.states).map(function(r){return e.states[r].stateIds}));return[this.id].concat(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){var e,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){e={error:S}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(i)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter(function(n){return!(!n.target&&!n.actions.length&&n.internal)}).map(function(n){return n.eventType}));return Array.from(e)},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(e){var n=this;if(e!==void 0)return e.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)})},t.prototype.formatTransition=function(e){var n=this,r=iie(e.target),a="internal"in e?e.internal:r?r.some(function(c){return Mt(c)&&c[0]===n.delimiter}):!0,s=this.machine.options.guards,i=this.resolveTarget(r),u=ve(ve({},e),{actions:po(Ha(e.actions)),cond:Kj(e.cond,s),target:i,source:this,internal:a,eventType:e.event,toJSON:function(){return ve(ve({},u),{target:u.target?u.target.map(function(c){return"#".concat(c.id)}):void 0,source:"#".concat(n.id)})}});return u},t.prototype.formatTransitions=function(){var e,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=zx,u=s[i],c=u===void 0?[]:u,f=Mk(s,[typeof i=="symbol"?i:i+""]);a=gn(Object.keys(f).map(function(A){var k=fc(A,f[A]);return k}).concat(fc(zx,c)))}var h=this.config.always?fc("",this.config.always):[],m=this.config.onDone?fc(String(ch(this.id)),this.config.onDone):[],g=gn(this.invoke.map(function(A){var k=[];return A.onDone&&k.push.apply(k,un([],It(fc(String(wh(A.id)),A.onDone)),!1)),A.onError&&k.push.apply(k,un([],It(fc(String(Pc(A.id)),A.onError)),!1)),k})),y=this.after,S=gn(un(un(un(un([],It(m),!1),It(g),!1),It(a),!1),It(h),!1).map(function(A){return Ha(A).map(function(k){return r.formatTransition(k)})}));try{for(var w=vt(y),x=w.next();!x.done;x=w.next()){var E=x.value;S.push(E)}}catch(A){e={error:A}}finally{try{x&&!x.done&&(n=w.return)&&n.call(w)}finally{if(e)throw e.error}}return S},t})();function Td(t,e){return new Iie(t,e)}var ao=iz,kv=tz,Tie=uz,Oie=_.useLayoutEffect;function dM(t){var e=_.useRef();return e.current||(e.current={v:t()}),e.current.v}var n1=function(){return n1=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},n1.apply(this,arguments)},Nie=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n},Mie=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),a,s=[],i;try{for(;(e===void 0||e-- >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 Pie(t,e){var n=dM(function(){return typeof t=="function"?t():t}),r=e.context,a=e.guards,s=e.actions,i=e.activities,u=e.services,c=e.delays;e.state;var f=Nie(e,["context","guards","actions","activities","services","delays","state"]),h=dM(function(){var m={context:r,guards:a,actions:s,activities:i,services:u,delays:c},g=n.withConfig(m,function(){return n1(n1({},n.context),r)});return gz(g,f)});return Oie(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 Lie(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Mie(e,2),a=r[0],s=a===void 0?{}:a,i=r[1],u=Pie(t,s);return _.useEffect(function(){if(i){var c=u.subscribe(Sh(i));return function(){c.unsubscribe()}}},[i]),_.useEffect(function(){var c=s.state;return u.start(c?qa.create(c):void 0),function(){u.stop(),u.status=jn.NotStarted}},[]),u}function Die(t){return t.status!==0?t.getSnapshot():t.machine.initialState}function Uie(t){return"state"in t&&"machine"in t}function jie(t){return"state"in t}var zie=function(t,e){return t===e},Fie=function(t,e){if(Uie(t)){if(t.status===0&&e.current)return e.current;var n=Die(t);return e.current=t.status===0?n:null,n}return jie(t)?t.state:void 0};function $ie(t,e,n,r){n===void 0&&(n=zie);var a=_.useRef(null),s=_.useCallback(function(c){var f=t.subscribe(c).unsubscribe;return f},[t]),i=_.useCallback(function(){return Fie(t,a)},[t,r]),u=$j.useSyncExternalStoreWithSelector(s,i,i,e,n);return u}const Bie=t=>{if(t instanceof Ta)return t;if(t instanceof Error){if(t.name==="InvalidStateError"){const{message:e,recoverySuggestion:n}=Qc[Vt.PasskeyAlreadyExists];return new Ta({name:Vt.PasskeyAlreadyExists,message:e,recoverySuggestion:n,underlyingError:t})}if(t.name==="NotAllowedError"){const{message:e,recoverySuggestion:n}=Qc[Vt.PasskeyRegistrationCanceled];return new Ta({name:Vt.PasskeyRegistrationCanceled,message:e,recoverySuggestion:n,underlyingError:t})}}return mD(t)},Hie=async t=>{try{const e=gD();xd(e,Vt.PasskeyNotSupported);const n=AY(t),r=await navigator.credentials.create({publicKey:n});return NY(r),RY(r)}catch(e){throw Bie(e)}},qie=t=>Mn(Xn,Zn("StartWebAuthnRegistration"),cr(),{...Qn,...t}),Wie=t=>Mn(Xn,Zn("CompleteWebAuthnRegistration"),cr(),{...Qn,...t});async function Vie(){const t=Kt.getConfig().Auth?.Cognito;ut(t);const{userPoolEndpoint:e,userPoolId:n}=t,{tokens:r}=await X1();wd(r);const a=qie({endpointResolver:wt({endpointOverride:e})}),{CredentialCreationOptions:s}=await a({region:St(n),userAgentValue:Dt(Ye.StartWebAuthnRegistration)},{AccessToken:r.accessToken.toString()});OY(s);const i=await Hie(s);await Wie({endpointResolver:wt({endpointOverride:e})})({region:St(n),userAgentValue:Dt(Ye.CompleteWebAuthnRegistration)},{AccessToken:r.accessToken.toString(),Credential:i})}const Gie=t=>Mn(Xn,Zn("ListWebAuthnCredentials"),cr(),{...Qn,...t});async function Kie(t,e){const n=t.getConfig().Auth?.Cognito;ut(n);const{userPoolEndpoint:r,userPoolId:a}=n,{tokens:s}=await t.Auth.fetchAuthSession();wd(s);const i=Gie({endpointResolver:wt({endpointOverride:r})}),{Credentials:u=[],NextToken:c}=await i({region:St(a),userAgentValue:Dt(Ye.ListWebAuthnCredentials)},{AccessToken:s.accessToken.toString(),MaxResults:e?.pageSize,NextToken:e?.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 Fk(t){return Kie(Kt,t)}const $k=t=>t.context.actorRef?.getSnapshot(),Bh=t=>$k(t)?.context,Yie={category:Oa.AI,apis:[lo.CreateConversation,lo.DeleteConversation,lo.ListConversations,lo.UpdateConversation,lo.OnMessage,lo.SendMessage,lo.Generation]},Zie={apis:[Ye.DeleteUser,Ye.UpdatePassword],category:Oa.Auth},Xie={apis:[Ye.SignUp,Ye.ConfirmSignUp,Ye.ResendSignUpCode,Ye.SignIn,Ye.ConfirmSignIn,Ye.FetchUserAttributes,Ye.SignOut,Ye.ResetPassword,Ye.ConfirmResetPassword,Ye.SignInWithRedirect],category:Oa.Auth},Qie={apis:[Wa.UploadData],category:Oa.Storage},Jie={apis:[CE.NotifyMessageInteraction],category:Oa.InAppMessaging},ele={category:Oa.Geo,apis:[gh.SearchByText,gh.SearchForSuggestions,gh.SearchByPlaceId]},tle={category:Oa.Geo,apis:[]},nle={apis:[Wa.UploadData],category:Oa.Storage},rle={apis:[Wa.UploadData,Wa.Copy,Wa.GetUrl,Wa.List,Wa.Remove,Wa.GetDataAccess,Wa.ListCallerAccessGrants],category:Oa.Storage};function ua(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function wo(t){return typeof t=="string"||typeof t=="object"&&Object.prototype.toString.call(t)==="[object String]"}function ale(t){return ua(t)&&Object.prototype.toString.call(t)==="[object Map]"}function sle(t){return ua(t)&&Object.prototype.toString.call(t)==="[object Set]"}function Bk(t){if(t==null)return!0;if(ua(t)&&(ale(t)||sle(t)))return!t.size;if(ua(t)&&(wo(t)||Array.isArray(t)))return!t.length;for(const e in t)if(xo(t,e))return!1;return!0}function ole(t){return Array.isArray(t)&&Bk(t)}function ile(...t){return t.every(ole)}function vz(t){return ua(t)&&Bk(t)}function lle(...t){return t.every(vz)}function xo(t,e){return t!=null&&Object.prototype.hasOwnProperty.call(t,e)}function Co(t){return typeof t=="function"}const Gt=(t,e)=>e?`${t}--${e}`:"",Hr=(t,e,n)=>n?`${t}--${e}`:"";function ule(...t){}function cle(t,e){const n={},r={};return Object.entries(t).forEach(([a,s])=>{e(a)?n[a]=s:r[a]=s}),[n,r]}const yz=({payload:t},e,n)=>{const{data:r,event:a}=t,{send:s}=e,{onSignIn:i,onSignOut:u}=n??{};switch(a){case"signedIn":{Co(i)&&i(t);break}case"signInWithRedirect":{s("SIGN_IN_WITH_REDIRECT");break}case"signedOut":{Co(u)&&u(),s("SIGN_OUT");break}case"tokenRefresh_failure":{if(r?.error?.name===zi.NetworkError)return;s("SIGN_OUT");break}}},dle=(t,e=yz)=>{const n=r=>e(r,t);return As.listen("auth",n,"authenticator-hub-handler")},bz=["+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"],Av={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:bz,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}},fle=["^","$","*",".","[","]","{","}","(",")","?",'"',"!","@","#","%","&","/","\\",",",">","<","'",":",";","|","_","~","`","=","+","-"," "],hle=(t,e)=>{if(e?.matches("federatedSignIn")){if(t.matches("signUpActor"))return"signUp";if(t.matches("signInActor"))return"signIn"}switch(!0){case t.matches("idle"):return"idle";case t.matches("setup"):return"setup";case t.matches("signOut"):return"signOut";case t.matches("authenticated"):return"authenticated";case e?.matches("confirmSignUp"):case e?.matches("resendSignUpCode"):return"confirmSignUp";case e?.matches("confirmSignIn"):return"confirmSignIn";case e?.matches("setupTotp.edit"):case e?.matches("setupTotp.submit"):return"setupTotp";case e?.matches("signIn.submit"):return e?.context.selectedAuthMethod!=null?"signInSelectAuthFactor":"signIn";case e?.matches("signIn.selectMethod"):return"signInSelectAuthFactor";case e?.matches("passkeyPrompt"):return"passkeyPrompt";case e?.matches("signIn"):return"signIn";case e?.matches("signUp"):case e?.matches("autoSignIn"):return"signUp";case e?.matches("forceChangePassword"):return"forceNewPassword";case e?.matches("forgotPassword"):return"forgotPassword";case e?.matches("confirmResetPassword"):return"confirmResetPassword";case e?.matches("selectUserAttributes"):return"verifyUser";case e?.matches("confirmVerifyUserAttribute"):return"confirmVerifyUser";case e?.matches("setupEmail"):return"setupEmail";case e?.matches("selectMfaType"):return"selectMfaType";case t.matches("getCurrentUser"):case e?.matches("fetchUserAttributes"):return"transition";default:return null}},ple=t=>{const e=n=>r=>t({type:n,data:r});return{initializeMachine:e("INIT"),resendCode:e("RESEND"),selectAuthMethod:e("SELECT_METHOD"),signOut:e("SIGN_OUT"),submitForm:e("SUBMIT"),toShowAuthMethods:e("SHOW_AUTH_METHODS"),updateForm:e("CHANGE"),updateBlur:e("BLUR"),toFederatedSignIn:e("FEDERATED_SIGN_IN"),toForgotPassword:e("FORGOT_PASSWORD"),toSignIn:e("SIGN_IN"),toSignUp:e("SIGN_UP"),skipVerification:e("SKIP")}},mle=t=>{const e=Bh(t)??{},{allowedMfaTypes:n,availableAuthMethods:r,challengeName:a,codeDeliveryDetails:s,preferredChallenge:i,remoteError:u,selectedAuthMethod:c,validationError:f,totpSecretCode:h=null,unverifiedUserAttributes:m,username:g}=e,{socialProviders:y=[],loginMechanisms:S}=t.context?.config??{},w=S?.[0],x=e?.user??t.context?.user,E=!!(f&&Object.keys(f).length>0),A=$k(t),k=t.hasTag("pending")||A?.hasTag("pending"),I=hle(t,A),N=(T=>{switch(T){case"idle":case"setup":return"configuring";case"authenticated":return"authenticated";default:return"unauthenticated"}})(I);return{allowedMfaTypes:n,authStatus:N,availableAuthMethods:r,challengeName:a,codeDeliveryDetails:s,error:u,hasValidationErrors:E,isPending:k,loginMechanism:w,preferredChallenge:i,route:I,selectedAuthMethod:c,socialProviders:y,totpSecretCode:h,unverifiedUserAttributes:m,user:x,username:g,validationErrors:f}},gle=({send:t,state:e})=>{const n=ple(t),r=mle(e);return{...n,...r}};var Lc;(function(t){t.Apple="Apple",t.Amazon="Amazon",t.Facebook="Facebook",t.Google="Google"})(Lc||(Lc={}));var fM;(function(t){t.Email="email",t.PhoneNumber="phone_number"})(fM||(fM={}));const vle=["birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website"],yle=["username","email","phone_number"],Sz=[...yle,...vle,"confirmation_code","password","confirm_password"],ble=t=>Sz.includes(t),wz=t=>Sz.includes(t),Sle=t=>Array.isArray(t),wle=t=>t?Sle(t)?t:[t]:null,xle=t=>{const e=t.trim().split("");for(let n=0;n<e.length;n++)n>0&&n<e.length-1&&(e[n]="*");return e.join("")},Cle=t=>{if(t.length<4)return t;const e=t.split("");for(let n=0;n<e.length-4;n++)e[n]="*";return e.join("")},Ele=t=>{const e=t.split("@");return`${xle(e[0])}@${e[1]}`},_le=(t,e)=>t==="Phone Number"?Cle(e):Ele(e),kle=t=>fle.some(e=>t.includes(e)),Ale=(t,e,n)=>encodeURI(`otpauth://totp/${t}:${e}?secret=${n}&issuer=${t}`);function Rle(t,...e){return Object.entries(t).reduce((n,[r,a])=>({...n,[r]:e.includes(r)?a:a?.trim()}),{})}const Ile={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"},b0={...Ile},Ce={...b0};function ye(t){return aD.get(t)}const Hk=t=>{const e=t?.context.config?.loginMechanisms,[n]=e??["username"];return n},Tle=t=>{const e={...t};for(const[n,r]of Object.entries(t)){const{label:a,placeholder:s}=r;e[n]={...r,label:a?ye(a):void 0,placeholder:s?ye(s):void 0}}return e},Ole=t=>Object.entries(t).sort((e,n)=>{const r=e[1].order||Number.MAX_VALUE,a=n[1].order||Number.MAX_VALUE;return r-a}).filter(e=>e[1]!==void 0),Nle="+1",Eo=t=>{let e=Av[t];const{type:n}=e;return n==="tel"&&(e={...e,dialCode:Nle}),e},Rv=t=>{const e=Hk(t);return{...Eo(e),autocomplete:"username"}},S0=t=>({confirmation_code:{...Eo("confirmation_code"),label:"Code *",placeholder:"Code"}}),Mle=t=>{const e=t.context.actorRef?.getSnapshot()?.context,n=e?.availableAuthMethods,r=e?.preferredChallenge,a=!n?.length||n.length===1&&n[0]==="PASSWORD"||n.length>1&&(!r||r==="PASSWORD"),s={username:{...Rv(t)}};return a&&(s.password={...Eo("password"),autocomplete:"current-password"}),s},Ple=t=>{const{loginMechanisms:e,signUpAttributes:n}=t.context.config,r=Hk(t),s=t.context.actorRef?.getSnapshot()?.context?.availableAuthMethods,i=s&&s.length>1,u=Array.from(new Set([...e,"password","confirm_password",...n])),c={};for(const f of u)if(wz(f)){const h=f===r?Rv(t):Eo(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},Lle=t=>({confirmation_code:{...Eo("confirmation_code"),placeholder:"Enter your code"}}),Dle=t=>{const e=Hk(t),{label:n}=Av[e];return{username:{...Rv(t),label:`Enter your ${n.toLowerCase()}`,placeholder:`Enter your ${n.toLowerCase()}`}}},Ule=t=>({...S0(),password:{...Eo("password"),label:"New Password",placeholder:"New Password"},confirm_password:{...Eo("confirm_password"),label:"Confirm Password",placeholder:"Confirm Password"}}),jle=t=>{const e=$k(t),{missingAttributes:n}=e.context,r=Array.from(new Set(["password","confirm_password",...n??[]])),a={};for(const s of r)wz(s)?a[s]={...Eo(s)}:console.debug(`Authenticator does not have a default implementation for ${s}. Customize ForceNewPassword FormFields to add your own.`);return a},zle=t=>({email:Eo("email")}),Fle={signIn:Mle,signUp:Ple,confirmSignUp:Lle,confirmSignIn:S0,forceNewPassword:jle,forgotPassword:Dle,confirmResetPassword:Ule,confirmVerifyUser:S0,setupEmail:zle,setupTotp:S0},$le=(t,e)=>{const n=Fle[t];return n(e)},Ble=(t,e)=>{const n=Bh(e)?.formFields?.[t];return!n||Object.keys(n).length===0?{}:Object.entries(n).reduce((r,[a,s])=>{if((t==="signIn"||t==="forgotPassword")&&a==="username"){const u={...Rv(e),...s};return{...r,[a]:u}}else if(ble(a)){const u={...Av[a],...s};return{...r,[a]:u}}else return{...r,[a]:s}},{})},Hle=(t,e)=>{const n=$le(t,e),r=Ble(t,e),a={...n,...r};return delete a.QR,Tle(a)},qle=t=>t.map(e=>{const n=e[0],r={...e[1],order:void 0};return[n,r]}),Wle=(t,e)=>{const n=Hle(t,e);return qle(Ole(n))},Vle=t=>{switch(t){case"EMAIL_OTP":return ye(Ce.CONFIRM_EMAIL);case"SMS_MFA":return ye(Ce.CONFIRM_SMS);case"SOFTWARE_TOKEN_MFA":return ye(Ce.CONFIRM_TOTP);default:return ye(Ce.CONFIRM_MFA_DEFAULT)}},Gle=t=>{const{DeliveryMedium:e,Destination:n}=t??{},r=e==="EMAIL",a=e==="SMS",s=ye(Ce.CODE_ARRIVAL);return r||a?`${ye(r?Ce.CODE_EMAILED:Ce.CODE_TEXTED)} ${n}. ${s}.`:`${ye(Ce.CODE_SENT)}. ${s}.`},Kle=t=>{const{DeliveryMedium:e}=t??{},n=e==="EMAIL";return ye(!n&&e==="SMS"?Ce.WE_SENT_CODE:n?Ce.WE_EMAILED:Ce.WE_TEXTED)},Yle={amazon:"Amazon",apple:"Apple",facebook:"Facebook",google:"Google"},Zle=(t,e)=>ye(`Sign ${t==="signIn"?"In":"Up"} with ${Yle[e]}`),Xle=t=>ye(t==="MFA_SETUP"?Ce.MFA_SETUP_SELECTION:Ce.MFA_SELECTION),Qle=t=>{switch(t){case"email":return ye(Ce.EMAIL_ADDRESS);case"phone_number":return ye(Ce.PHONE_NUMBER);default:return ye(Ce.USERNAME)}},Jle=t=>{switch(t){case"EMAIL":return ye(b0.EMAIL_OTP);case"SMS":return ye(b0.SMS_MFA);case"TOTP":return ye(b0.SOFTWARE_TOKEN_MFA);default:return ye(t)}},$n={getBackToSignInText:()=>ye(Ce.BACK_SIGN_IN),getChangePasswordText:()=>ye(Ce.CHANGE_PASSWORD),getChangingText:()=>ye(Ce.CHANGING_PASSWORD),getConfirmText:()=>ye(Ce.CONFIRM),getConfirmingText:()=>ye(Ce.CONFIRMING),getContinueText:()=>ye(Ce.CONTINUE),getCopyText:()=>ye(Ce.UPPERCASE_COPY),getHidePasswordText:()=>ye(Ce.HIDE_PASSWORD),getLoadingText:()=>ye(Ce.LOADING),getOrText:()=>ye(Ce.OR),getResendCodeText:()=>ye(Ce.RESEND_CODE),getSendCodeText:()=>ye(Ce.SEND_CODE),getSendingText:()=>ye(Ce.SENDING),getShowPasswordText:()=>ye(Ce.SHOW_PASSWORD),getSubmitText:()=>ye(Ce.SUBMIT),getSubmittingText:()=>ye(Ce.SUBMITTING),getSignInTabText:()=>ye(Ce.SIGN_IN_TAB),getSignUpTabText:()=>ye(Ce.CREATE_ACCOUNT),getForgotPasswordText:t=>ye(t?Ce.FORGOT_PASSWORD:Ce.FORGOT_YOUR_PASSWORD),getSigningInText:()=>ye(Ce.SIGNING_IN_BUTTON),getSignInText:()=>ye(Ce.SIGN_IN_BUTTON),getCreatingAccountText:()=>ye(Ce.CREATING_ACCOUNT),getCreateAccountText:()=>ye(Ce.CREATE_ACCOUNT),getCreateAccountWithEmailText:()=>ye(Ce.CREATE_ACCOUNT_WITH_EMAIL_OTP),getCreateAccountWithPasswordText:()=>ye(Ce.CREATE_ACCOUNT_WITH_PASSWORD),getCreateAccountWithSmsText:()=>ye(Ce.CREATE_ACCOUNT_WITH_SMS_OTP),getDeliveryMessageText:Gle,getDeliveryMethodText:Kle,getChallengeText:Vle,getResetYourPasswordText:()=>ye(Ce.RESET_PASSWORD),getSetupEmailText:()=>ye(Ce.SETUP_EMAIL),getSetupTotpText:()=>ye(Ce.SETUP_TOTP),getSetupTotpInstructionsText:()=>ye("Copy and paste the secret key below into an authenticator app and then enter the code in the text field below."),getCopiedText:()=>ye("COPIED"),getSignInWithFederationText:Zle,getMfaTypeLabelByValue:Jle,getSelectMfaTypeByChallengeName:Xle,getSelectMfaTypeText:()=>ye(Ce.SELECT_MFA_TYPE),getSkipText:()=>ye(Ce.SKIP),getVerifyText:()=>ye(Ce.VERIFY),getVerifyContactText:()=>ye(Ce.VERIFY_CONTACT),getAccountRecoveryInfoText:()=>ye(Ce.VERIFY_HEADING),getPasskeyPromptHeadingText:()=>ye(Ce.PASSKEY_PROMPT_HEADING),getPasskeyPromptDescriptionText:()=>ye(Ce.PASSKEY_PROMPT_DESCRIPTION),getCreatePasskeyText:()=>ye(Ce.CREATE_PASSKEY),getRegisteringText:()=>ye(Ce.REGISTERING),getContinueWithoutPasskeyText:()=>ye(Ce.CONTINUE_WITHOUT_PASSKEY),getPasskeyCreatedSuccessText:()=>ye(Ce.PASSKEY_CREATED_SUCCESS),getPasskeyRegisteredText:()=>ye(Ce.PASSKEY_REGISTERED),getPasskeyRegistrationFailedText:()=>ye(Ce.PASSKEY_REGISTRATION_FAILED),getPasskeyLabelText:()=>ye(Ce.PASSKEY_LABEL),getExistingPasskeysText:()=>ye(Ce.EXISTING_PASSKEYS),getSetupAnotherPasskeyText:()=>ye(Ce.SETUP_ANOTHER_PASSKEY),getSignInWithPasswordText:()=>ye(Ce.SIGN_IN_WITH_PASSWORD),getSignInWithEmailText:()=>ye(Ce.SIGN_IN_WITH_EMAIL),getSignInWithSmsText:()=>ye(Ce.SIGN_IN_WITH_SMS),getSignInWithPasskeyText:()=>ye(Ce.SIGN_IN_WITH_PASSKEY),getOtherSignInOptionsText:()=>ye(Ce.OTHER_SIGN_IN_OPTIONS),getEnterUsernameFirstText:()=>ye(Ce.ENTER_USERNAME_FIRST),getUsernameLabelByLoginMechanism:Qle,getInvalidEmailText:()=>ye("Please enter a valid email"),getRequiredFieldText:()=>ye("This field is required")};var Fx,hM;function xz(){if(hM)return Fx;hM=1;function t(e,n){for(var r=-1,a=e==null?0:e.length,s=Array(a);++r<a;)s[r]=n(e[r],r,e);return s}return Fx=t,Fx}var $x,pM;function eue(){if(pM)return $x;pM=1;var t=Ak(),e=Fj(),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 t;if(c)var E=c(S,w,y,s,i,x);if(!(E===void 0?e(w,S,n|r,c,x):E))return!1}}return!0}return $x=a,$x}var Bx,mM;function Cz(){if(mM)return Bx;mM=1;var t=Oo();function e(n){return n===n&&!t(n)}return Bx=e,Bx}var Hx,gM;function tue(){if(gM)return Hx;gM=1;var t=Cz(),e=zj();function n(r){for(var a=e(r),s=a.length;s--;){var i=a[s],u=r[i];a[s]=[i,u,t(u)]}return a}return Hx=n,Hx}var qx,vM;function Ez(){if(vM)return qx;vM=1;function t(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}return qx=t,qx}var Wx,yM;function nue(){if(yM)return Wx;yM=1;var t=eue(),e=tue(),n=Ez();function r(a){var s=e(a);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(i){return i===a||t(i,a,s)}}return Wx=r,Wx}var Vx,bM;function qk(){if(bM)return Vx;bM=1;var t=Rd(),e=hu(),n="[object Symbol]";function r(a){return typeof a=="symbol"||e(a)&&t(a)==n}return Vx=r,Vx}var Gx,SM;function Wk(){if(SM)return Gx;SM=1;var t=No(),e=qk(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function a(s,i){if(t(s))return!1;var u=typeof s;return u=="number"||u=="symbol"||u=="boolean"||s==null||e(s)?!0:r.test(s)||!n.test(s)||i!=null&&s in Object(i)}return Gx=a,Gx}var Kx,wM;function rue(){if(wM)return Kx;wM=1;var t=kk(),e="Expected a function";function n(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new TypeError(e);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||t),s}return n.Cache=t,Kx=n,Kx}var Yx,xM;function aue(){if(xM)return Yx;xM=1;var t=rue(),e=500;function n(r){var a=t(r,function(i){return s.size===e&&s.clear(),i}),s=a.cache;return a}return Yx=n,Yx}var Zx,CM;function sue(){if(CM)return Zx;CM=1;var t=aue(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=t(function(a){var s=[];return a.charCodeAt(0)===46&&s.push(""),a.replace(e,function(i,u,c,f){s.push(c?f.replace(n,"$1"):u||i)}),s});return Zx=r,Zx}var Xx,EM;function oue(){if(EM)return Xx;EM=1;var t=vv(),e=xz(),n=No(),r=qk(),a=t?t.prototype:void 0,s=a?a.toString:void 0;function i(u){if(typeof u=="string")return u;if(n(u))return e(u,i)+"";if(r(u))return s?s.call(u):"";var c=u+"";return c=="0"&&1/u==-1/0?"-0":c}return Xx=i,Xx}var Qx,_M;function Vk(){if(_M)return Qx;_M=1;var t=oue();function e(n){return n==null?"":t(n)}return Qx=e,Qx}var Jx,kM;function Iv(){if(kM)return Jx;kM=1;var t=No(),e=Wk(),n=sue(),r=Vk();function a(s,i){return t(s)?s:e(s,i)?[s]:n(r(s))}return Jx=a,Jx}var e2,AM;function Ep(){if(AM)return e2;AM=1;var t=qk();function e(n){if(typeof n=="string"||t(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return e2=e,e2}var t2,RM;function Gk(){if(RM)return t2;RM=1;var t=Iv(),e=Ep();function n(r,a){a=t(a,r);for(var s=0,i=a.length;r!=null&&s<i;)r=r[e(a[s++])];return s&&s==i?r:void 0}return t2=n,t2}var n2,IM;function iue(){if(IM)return n2;IM=1;var t=Gk();function e(n,r,a){var s=n==null?void 0:t(n,r);return s===void 0?a:s}return n2=e,n2}var r2,TM;function lue(){if(TM)return r2;TM=1;function t(e,n){return e!=null&&n in Object(e)}return r2=t,r2}var a2,OM;function uue(){if(OM)return a2;OM=1;var t=Iv(),e=Rk(),n=No(),r=Sv(),a=Tk(),s=Ep();function i(u,c,f){c=t(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)||e(u)))}return a2=i,a2}var s2,NM;function cue(){if(NM)return s2;NM=1;var t=lue(),e=uue();function n(r,a){return r!=null&&e(r,a,t)}return s2=n,s2}var o2,MM;function due(){if(MM)return o2;MM=1;var t=Fj(),e=iue(),n=cue(),r=Wk(),a=Cz(),s=Ez(),i=Ep(),u=1,c=2;function f(h,m){return r(h)&&a(m)?s(i(h),m):function(g){var y=e(g,h);return y===void 0&&y===m?n(g,h):t(m,y,u|c)}}return o2=f,o2}var i2,PM;function Kk(){if(PM)return i2;PM=1;function t(e){return e}return i2=t,i2}var l2,LM;function fue(){if(LM)return l2;LM=1;function t(e){return function(n){return n?.[e]}}return l2=t,l2}var u2,DM;function hue(){if(DM)return u2;DM=1;var t=Gk();function e(n){return function(r){return t(r,n)}}return u2=e,u2}var c2,UM;function pue(){if(UM)return c2;UM=1;var t=fue(),e=hue(),n=Wk(),r=Ep();function a(s){return n(s)?t(r(s)):e(s)}return c2=a,c2}var d2,jM;function mue(){if(jM)return d2;jM=1;var t=nue(),e=due(),n=Kk(),r=No(),a=pue();function s(i){return typeof i=="function"?i:i==null?n:typeof i=="object"?r(i)?e(i[0],i[1]):t(i):a(i)}return d2=s,d2}var f2,zM;function _z(){if(zM)return f2;zM=1;var t=fu(),e=(function(){try{var n=t(Object,"defineProperty");return n({},"",{}),n}catch{}})();return f2=e,f2}var h2,FM;function Yk(){if(FM)return h2;FM=1;var t=_z();function e(n,r,a){r=="__proto__"&&t?t(n,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):n[r]=a}return h2=e,h2}var p2,$M;function kz(){if($M)return p2;$M=1;var t=Yk(),e=xp(),n=Object.prototype,r=n.hasOwnProperty;function a(s,i,u){var c=s[i];(!(r.call(s,i)&&e(c,u))||u===void 0&&!(i in s))&&t(s,i,u)}return p2=a,p2}var m2,BM;function gue(){if(BM)return m2;BM=1;var t=kz(),e=Iv(),n=Sv(),r=Oo(),a=Ep();function s(i,u,c,f){if(!r(i))return i;u=e(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])?[]:{})}t(y,S,w),y=y[S]}return i}return m2=s,m2}var g2,HM;function vue(){if(HM)return g2;HM=1;var t=Gk(),e=gue(),n=Iv();function r(a,s,i){for(var u=-1,c=s.length,f={};++u<c;){var h=s[u],m=t(a,h);i(m,h)&&e(f,n(h,a),m)}return f}return g2=r,g2}var v2,qM;function Zk(){if(qM)return v2;qM=1;var t=jj(),e=t(Object.getPrototypeOf,Object);return v2=e,v2}var y2,WM;function yue(){if(WM)return y2;WM=1;var t=Mj(),e=Zk(),n=Dj(),r=Lj(),a=Object.getOwnPropertySymbols,s=a?function(i){for(var u=[];i;)t(u,n(i)),i=e(i);return u}:r;return y2=s,y2}var b2,VM;function bue(){if(VM)return b2;VM=1;function t(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}return b2=t,b2}var S2,GM;function Sue(){if(GM)return S2;GM=1;var t=Oo(),e=Nk(),n=bue(),r=Object.prototype,a=r.hasOwnProperty;function s(i){if(!t(i))return n(i);var u=e(i),c=[];for(var f in i)f=="constructor"&&(u||!a.call(i,f))||c.push(f);return c}return S2=s,S2}var w2,KM;function Xk(){if(KM)return w2;KM=1;var t=Uj(),e=Sue(),n=wv();function r(a){return n(a)?t(a,!0):e(a)}return w2=r,w2}var x2,YM;function wue(){if(YM)return x2;YM=1;var t=Pj(),e=yue(),n=Xk();function r(a){return t(a,n,e)}return x2=r,x2}var C2,ZM;function xue(){if(ZM)return C2;ZM=1;var t=xz(),e=mue(),n=vue(),r=wue();function a(s,i){if(s==null)return{};var u=t(r(s),function(c){return[c]});return i=e(i),n(s,u,function(c,f){return i(c,f[0])})}return C2=a,C2}var Cue=xue();const Eue=yd(Cue),_ue=!0,kue="",Hh=(t,e)=>`${t}${e}`.replace(/[^A-Z0-9+]/gi,""),Aue=(t,e)=>{switch(e){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 e.startsWith("custom:")}},Rue=t=>{const{phone_number:e,...n}=Eue(t,Aue);if(wo(e)&&e!==kue){const{country_code:r}=t;return{...n,phone_number:Hh(r,e)}}return n},Iue=(t,e,n,r)=>{const{password:a,...s}=e,i=Rue(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}:_ue,userAttributes:{...n==="phone_number"?{...c,phone_number:t}:c}};return{username:t,password:u?void 0:a,options:f}},Tue=({formValues:t,loginMechanisms:e})=>{const n=t.__authMethod;if(n==="SMS_OTP"){const{country_code:a,phone_number:s}=t;return Hh(a,s)}if(n==="EMAIL_OTP")return t.email;if(e.includes("username"))return t.username;const r=e[0];if(r==="phone_number"){const{country_code:a,phone_number:s}=t;return Hh(a,s)}return t[r]},Oue=(t,e)=>{const n=[],r=e!==void 0;n.push("PASSWORD"),(r||t?.emailOtpEnabled)&&n.push("EMAIL_OTP"),(r||t?.smsOtpEnabled)&&n.push("SMS_OTP"),(r||t?.webAuthnEnabled)&&n.push("WEB_AUTHN");const a=e??[],s=n.filter(i=>!a.includes(i));if(s.length===0)throw new Error("InvalidPasswordlessSettings: All authentication methods are hidden");return s},{assign:ot}=cz,Nue=ot({actorDoneData:void 0}),Mue=ot({challengeName:void 0}),Pue=ot({missingAttributes:void 0}),Lue=ot({remoteError:void 0}),Due=ot({formValues:t=>({username:t.formValues?.username})}),Uue=ot({touched:{}}),jue=ot({user:void 0}),zue=ot({validationError:{}}),Fue=ot({totpSecretCode:(t,{data:e})=>{const{sharedSecret:n}=e.nextStep?.totpSetupDetails??{};return n}}),$ue=ot({allowedMfaTypes:(t,{data:e})=>e.nextStep?.allowedMFATypes}),Bue=ot({step:"SIGN_IN"}),Hue=ot({step:"SHOULD_CONFIRM_USER_ATTRIBUTE"}),que=ot({step:"CONFIRM_ATTRIBUTE_COMPLETE"}),Wue=ot({challengeName:(t,{data:e})=>{const{signInStep:n}=e.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}}}),Vue=ot({username:({formValues:t,loginMechanisms:e})=>{const n=e[0],{username:r,country_code:a}=t;return n==="phone_number"?Hh(a,r):r}}),Gue=ot({username:Tue}),Kue=ot({username:({formValues:t,loginMechanisms:e})=>{const n=e[0],{username:r,country_code:a}=t;return n==="phone_number"?Hh(a,r):r}}),Yue=ot({step:(t,{data:e})=>e.nextStep.signInStep==="DONE"?"SIGN_IN_COMPLETE":e.nextStep.signInStep}),Zue=ot({step:(t,{data:e})=>e.nextStep.signUpStep==="DONE"?"SIGN_UP_COMPLETE":e.nextStep.signUpStep}),Xue=ot({step:(t,{data:e})=>e.nextStep.resetPasswordStep==="DONE"?"RESET_PASSWORD_COMPLETE":e.nextStep.resetPasswordStep}),Que=ot({missingAttributes:(t,{data:e})=>e.nextStep?.missingAttributes}),Jue=ot({validationError:(t,{data:e})=>e}),ece=ot({remoteError:(t,{data:e})=>{if(e.name==="NoUserPoolError")return"Configuration error (see console) – please contact the administrator";const n=e?.message||"";return n.includes("USER_AUTH flow not enabled")?ye(Ce.PASSWORDLESS_NOT_ENABLED):n.includes("Cannot send code to either")?ye(Ce.CODE_DELIVERY_FAILED):n.includes("Invalid code or auth state")?ye(Ce.VERIFICATION_CODE_INVALID):n.includes("session is expired")?ye(Ce.VERIFICATION_CODE_EXPIRED):n.includes("ceremony has been canceled")?ye(Ce.PASSKEY_AUTHENTICATION_CANCELED):n||e}}),tce=ot({user:(t,{data:e})=>e}),XM=t=>({Destination:t.destination,DeliveryMedium:t.deliveryMedium,AttributeName:t.attributName}),nce=ot({codeDeliveryDetails:(t,{data:e})=>e?.nextStep?.codeDeliveryDetails?XM(e.nextStep.codeDeliveryDetails):XM(e)}),rce=ot({formValues:(t,{data:e})=>{const{name:n,value:r}=e;return{...t.formValues,[n]:r}}}),ace=ot({formValues:(t,{data:e})=>Rle({...t.formValues,...e},"password")}),sce=ot({touched:(t,{data:e})=>({...t.touched,[e.name]:!0})}),oce=ot({unverifiedUserAttributes:(t,{data:e})=>{const n=e||t.fetchedUserAttributes;if(!n)return{};const{email:r,phone_number:a}=n;return{...r&&{email:r},...a&&{phone_number:a}}}}),ice=ot({selectedUserAttribute:void 0}),lce=ot({selectedUserAttribute:t=>t.formValues?.unverifiedAttr}),uce=ot({step:"CONFIRM_SIGN_UP"}),cce=ot({selectedAuthMethod:(t,{data:e})=>e.method}),dce=ot({selectedAuthMethod:(t,{data:e})=>e?.__authMethod||"PASSWORD"}),fce=ot({step:"SELECT_AUTH_METHOD"}),hce=ot({fetchedUserAttributes:(t,e)=>e.data}),pce=ot({hasExistingPasskeys:(t,e)=>e.data}),mce=ot({hasExistingPasskeys:!1}),_p={clearActorDoneData:Nue,clearChallengeName:Mue,clearError:Lue,clearFormValues:Due,clearHasExistingPasskeys:mce,clearMissingAttributes:Pue,clearSelectedUserAttribute:ice,clearTouched:Uue,clearUser:jue,clearValidationError:zue,handleBlur:sce,handleInput:rce,handleSubmit:ace,setAllowedMfaTypes:$ue,setChallengeName:Wue,setCodeDeliveryDetails:nce,setFetchedUserAttributes:hce,setFieldErrors:Jue,setHasExistingPasskeys:pce,setMissingAttributes:Que,setNextResetPasswordStep:Xue,setNextSignInStep:Yue,setNextSignUpStep:Zue,setRemoteError:ece,setConfirmAttributeCompleteStep:que,setConfirmSignUpSignUpStep:uce,setSelectAuthMethodStep:fce,setSelectedAuthMethod:cce,setSelectedAuthMethodFromForm:dce,setShouldVerifyUserAttributeStep:Hue,setSelectedUserAttribute:lce,setSignInStep:Bue,setTotpSecretCode:Fue,setUser:tce,setUnverifiedUserAttributes:oce,setUsernameForgotPassword:Vue,setUsernameSignIn:Kue,setUsernameSignUp:Gue},gce=["CONFIRM_SIGN_IN_WITH_SMS_CODE","CONFIRM_SIGN_IN_WITH_TOTP_CODE","CONFIRM_SIGN_IN_WITH_EMAIL_CODE"],vce=(t,{data:e})=>e?.nextStep.signInStep==="CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",yce=(t,{data:e})=>e?.nextStep?.signInStep==="RESET_PASSWORD",bce=(t,{data:e})=>e?.nextStep.signInStep==="CONFIRM_SIGN_UP",Sce=(t,{data:e})=>e?.nextStep.signUpStep==="COMPLETE_AUTO_SIGN_IN",wce=(t,{data:e})=>e?.nextStep.signUpStep==="DONE"&&t.step==="CONFIRM_SIGN_UP",xce=(t,{data:e})=>e?.nextStep.signInStep==="DONE",Cce=(t,{data:e})=>e?.nextStep.signUpStep==="DONE",Ece=(t,{data:e})=>e?.nextStep.resetPasswordStep==="DONE",_ce=(t,{data:e})=>e?.step==="CONFIRM_ATTRIBUTE_COMPLETE",kce=(t,{data:e})=>e?.step==="CONFIRM_ATTRIBUTE_WITH_CODE",Ace=(t,{data:e})=>e?.step==="SHOULD_CONFIRM_USER_ATTRIBUTE",Rce=(t,{data:e})=>e?.step==="RESET_PASSWORD",Ice=(t,{data:e})=>e?.step==="CONFIRM_SIGN_UP",Tce=({step:t})=>gce.includes(t),Oce=({step:t})=>t==="CONTINUE_SIGN_IN_WITH_TOTP_SETUP",Nce=({step:t})=>t==="CONTINUE_SIGN_IN_WITH_EMAIL_SETUP",Mce=({step:t})=>["CONTINUE_SIGN_IN_WITH_MFA_SELECTION","CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION"].includes(t),Pce=({step:t})=>t==="RESET_PASSWORD",Lce=({step:t})=>t==="CONFIRM_RESET_PASSWORD_WITH_CODE",Dce=({step:t})=>t==="CONFIRM_SIGN_UP",Uce=(t,e)=>{const n=e.data||t.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")},jce=(t,{data:e})=>e.message==="User is already confirmed.",zce=({availableAuthMethods:t,preferredChallenge:e,selectedAuthMethod:n})=>t&&t.length>1&&(!e||n===null),Fce=({passwordless:t,hasExistingPasskeys:e})=>{const{passkeyRegistrationPrompts:n}=t||{};return!n||e?!1:typeof n=="boolean"?n:n.afterSignin==="ALWAYS"},$ce=({passwordless:t,hasExistingPasskeys:e})=>{const{passkeyRegistrationPrompts:n}=t||{};return!n||e?!1:typeof n=="boolean"?n:n.afterSignup==="ALWAYS"},Bce=({passwordless:t})=>t?.passkeyRegistrationPrompts!=null,Hce=({selectedAuthMethod:t,step:e})=>t!=null&&e==="SELECT_AUTH_METHOD",Tv={hasCompletedAttributeConfirmation:_ce,hasCompletedResetPassword:Ece,hasCompletedSignIn:xce,hasCompletedSignUp:Cce,hasPasskeyRegistrationPrompts:Bce,isConfirmSignUpStep:Ice,isConfirmUserAttributeStep:kce,isResetPasswordStep:Rce,isShouldConfirmUserAttributeStep:Ace,isUserAlreadyConfirmed:jce,shouldAutoSignIn:Sce,shouldManualSignIn:wce,shouldConfirmResetPassword:Lce,shouldConfirmSignIn:Tce,shouldConfirmSignInWithNewPassword:vce,shouldConfirmSignUp:Dce,shouldConfirmSignUpFromSignIn:bce,shouldResetPassword:Pce,shouldResetPasswordFromSignIn:yce,shouldReturnToSelectMethod:Hce,shouldSelectAuthMethod:zce,shouldSetupTotp:Oce,shouldSetupEmail:Nce,shouldSelectMfaType:Mce,shouldVerifyAttribute:Uce,shouldPromptPasskeyRegistration:Fce,shouldPromptPasskeyRegistrationAfterSignup:$ce};var E2,QM;function Az(){if(QM)return E2;QM=1;var t=Yk(),e=xp();function n(r,a,s){(s!==void 0&&!e(r[a],s)||s===void 0&&!(a in r))&&t(r,a,s)}return E2=n,E2}var _2,JM;function qce(){if(JM)return _2;JM=1;function t(e){return function(n,r,a){for(var s=-1,i=Object(n),u=a(n),c=u.length;c--;){var f=u[e?c:++s];if(r(i[f],f,i)===!1)break}return n}}return _2=t,_2}var k2,e8;function Wce(){if(e8)return k2;e8=1;var t=qce(),e=t();return k2=e,k2}var hh={exports:{}};hh.exports;var t8;function Vce(){return t8||(t8=1,(function(t,e){var n=Ms(),r=e&&!e.nodeType&&e,a=r&&!0&&t&&!t.nodeType&&t,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}t.exports=c})(hh,hh.exports)),hh.exports}var A2,n8;function Gce(){if(n8)return A2;n8=1;var t=Nj();function e(n){var r=new n.constructor(n.byteLength);return new t(r).set(new t(n)),r}return A2=e,A2}var R2,r8;function Kce(){if(r8)return R2;r8=1;var t=Gce();function e(n,r){var a=r?t(n.buffer):n.buffer;return new n.constructor(a,n.byteOffset,n.length)}return R2=e,R2}var I2,a8;function Yce(){if(a8)return I2;a8=1;function t(e,n){var r=-1,a=e.length;for(n||(n=Array(a));++r<a;)n[r]=e[r];return n}return I2=t,I2}var T2,s8;function Zce(){if(s8)return T2;s8=1;var t=Oo(),e=Object.create,n=(function(){function r(){}return function(a){if(!t(a))return{};if(e)return e(a);r.prototype=a;var s=new r;return r.prototype=void 0,s}})();return T2=n,T2}var O2,o8;function Xce(){if(o8)return O2;o8=1;var t=Zce(),e=Zk(),n=Nk();function r(a){return typeof a.constructor=="function"&&!n(a)?t(e(a)):{}}return O2=r,O2}var N2,i8;function Qce(){if(i8)return N2;i8=1;var t=wv(),e=hu();function n(r){return e(r)&&t(r)}return N2=n,N2}var M2,l8;function Jce(){if(l8)return M2;l8=1;var t=Rd(),e=Zk(),n=hu(),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)||t(h)!=r)return!1;var m=e(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 M2=f,M2}var P2,u8;function Rz(){if(u8)return P2;u8=1;function t(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}return P2=t,P2}var L2,c8;function ede(){if(c8)return L2;c8=1;var t=kz(),e=Yk();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?e(s,h,m):t(s,h,m)}return s}return L2=n,L2}var D2,d8;function tde(){if(d8)return D2;d8=1;var t=ede(),e=Xk();function n(r){return t(r,e(r))}return D2=n,D2}var U2,f8;function nde(){if(f8)return U2;f8=1;var t=Az(),e=Vce(),n=Kce(),r=Yce(),a=Xce(),s=Rk(),i=No(),u=Qce(),c=Ik(),f=Ek(),h=Oo(),m=Jce(),g=Ok(),y=Rz(),S=tde();function w(x,E,A,k,I,N,O){var T=y(x,A),P=y(E,A),D=O.get(P);if(D){t(x,A,D);return}var q=N?N(T,P,A+"",x,E,O):void 0,U=q===void 0;if(U){var j=i(P),$=!j&&c(P),Z=!j&&!$&&g(P);q=P,j||$||Z?i(T)?q=T:u(T)?q=r(T):$?(U=!1,q=e(P,!0)):Z?(U=!1,q=n(P,!0)):q=[]:m(P)||s(P)?(q=T,s(T)?q=S(T):(!h(T)||f(T))&&(q=a(P))):U=!1}U&&(O.set(P,q),I(q,P,k,N,O),O.delete(P)),t(x,A,q)}return U2=w,U2}var j2,h8;function rde(){if(h8)return j2;h8=1;var t=Ak(),e=Az(),n=Wce(),r=nde(),a=Oo(),s=Xk(),i=Rz();function u(c,f,h,m,g){c!==f&&n(f,function(y,S){if(g||(g=new t),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),e(c,S,w)}},s)}return j2=u,j2}var z2,p8;function ade(){if(p8)return z2;p8=1;function t(e,n,r){switch(r.length){case 0:return e.call(n);case 1:return e.call(n,r[0]);case 2:return e.call(n,r[0],r[1]);case 3:return e.call(n,r[0],r[1],r[2])}return e.apply(n,r)}return z2=t,z2}var F2,m8;function sde(){if(m8)return F2;m8=1;var t=ade(),e=Math.max;function n(r,a,s){return a=e(a===void 0?r.length-1:a,0),function(){for(var i=arguments,u=-1,c=e(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),t(r,this,h)}}return F2=n,F2}var $2,g8;function ode(){if(g8)return $2;g8=1;function t(e){return function(){return e}}return $2=t,$2}var B2,v8;function ide(){if(v8)return B2;v8=1;var t=ode(),e=_z(),n=Kk(),r=e?function(a,s){return e(a,"toString",{configurable:!0,enumerable:!1,value:t(s),writable:!0})}:n;return B2=r,B2}var H2,y8;function lde(){if(y8)return H2;y8=1;var t=800,e=16,n=Date.now;function r(a){var s=0,i=0;return function(){var u=n(),c=e-(u-i);if(i=u,c>0){if(++s>=t)return arguments[0]}else s=0;return a.apply(void 0,arguments)}}return H2=r,H2}var q2,b8;function ude(){if(b8)return q2;b8=1;var t=ide(),e=lde(),n=e(t);return q2=n,q2}var W2,S8;function cde(){if(S8)return W2;S8=1;var t=Kk(),e=sde(),n=ude();function r(a,s){return n(e(a,s,t),a+"")}return W2=r,W2}var V2,w8;function dde(){if(w8)return V2;w8=1;var t=xp(),e=wv(),n=Sv(),r=Oo();function a(s,i,u){if(!r(u))return!1;var c=typeof i;return(c=="number"?e(u)&&n(i,u.length):c=="string"&&i in u)?t(u[i],s):!1}return V2=a,V2}var G2,x8;function fde(){if(x8)return G2;x8=1;var t=cde(),e=dde();function n(r){return t(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&&e(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 G2=n,G2}var K2,C8;function hde(){if(C8)return K2;C8=1;var t=rde(),e=fde(),n=e(function(r,a,s){t(r,a,s)});return K2=n,K2}var pde=hde();const mde=yd(pde),Ov=async(t,e,n,r)=>{const a=await Promise.all(r.map(i=>i(t,e,n))),s=mde({},...a);return Bk(s)?Promise.resolve():Promise.reject(s)},gde=8,vde=t=>Array.isArray(t),yde=t=>{if(t)return vde(t)?Object.entries(t).map(([e,n])=>Object.keys(n)[0]):Object.keys(t)},$i={async getAmplifyConfig(){const t=jD.getConfig(),e=t.Auth?.Cognito,{loginWith:n,userAttributes:r}=t.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=yde(r),i=n?.oauth?.providers?n.oauth.providers?.map(f=>f.toString().toLowerCase()):void 0,u=t.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{...e,loginMechanisms:a,signUpAttributes:s,socialProviders:i,passwordlessCapabilities:c}},getCurrentUser:ev,handleSignIn:tk,handleSignUp:fX,handleConfirmSignIn:RD,handleConfirmSignUp:bX,handleForgotPasswordSubmit:mX,handleForgotPassword:AD,handleResendSignUpCode:vX,async validateCustomSignUp(t,e){},async validateFormPassword(t,e,n){const{password:r}=t,{password:a}=e;if(!a||!n)return null;const s=[],i=n.minLength??gde;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&&!kle(r)&&s.push("Password must have special characters"),s.length!==0?{password:s}:null},async validateConfirmPassword(t,e){const{password:n,confirm_password:r}=t,{confirm_password:a,password:s}=e;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(t,e){},async validateRequiredFieldsForAuthMethod(t){const e=t.__authMethod;if(!e)return null;if(e==="EMAIL_OTP"&&!t.email)return{email:"Email is required for Email OTP sign up"};if(e==="SMS_OTP"&&!t.phone_number)return{phone_number:"Phone number is required for SMS OTP sign up"};if(e==="PASSWORD"){const n={};return t.password||(n.password="Password is required"),t.confirm_password||(n.confirm_password="Confirm Password is required"),Object.keys(n).length>0?n:null}return null}};function bde({services:t}){return Td({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:e})=>({step:e})}}},{actions:{..._p,sendUpdate:kv()},guards:Tv,services:{handleResetPassword({username:e}){return t.handleForgotPassword({username:e})},handleConfirmResetPassword({formValues:e,username:n}){const{confirmation_code:r,password:a}=e;return t.handleForgotPasswordSubmit({confirmationCode:r,newPassword:a,username:n})},validateFields(e){return Ov(e.formValues,e.touched,e.passwordSettings,[$i.validateFormPassword,$i.validateConfirmPassword])}}})}const Iz=t=>({entry:["sendUpdate","clearError"],invoke:{src:"signInWithRedirect",onDone:{target:t},onError:{actions:"setRemoteError",target:t}}}),Sde=t=>["CONTINUE_SIGN_IN_WITH_MFA_SELECTION","CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION"].includes(t)?"mfa_type":t==="CONTINUE_SIGN_IN_WITH_EMAIL_SETUP"?"email":"confirmation_code",w0={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"}},hg=t=>({initial:"edit",exit:t,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",...w0}},resend:{tags:"pending",entry:["sendUpdate","clearError"],invoke:{src:"resendSignInCode",onDone:{actions:["setCodeDeliveryDetails","sendUpdate"],target:"edit"},onError:{actions:"setRemoteError",target:"edit"}}}}});function wde({services:t}){return Td({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:e})=>e==="CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",actions:"setActorDoneData",target:"forceChangePassword"},{target:"signIn"}]},federatedSignIn:{...Iz("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 e=await Fk();return e.credentials&&e.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:w0.onDone,onError:[{cond:"shouldReturnToSelectMethod",actions:"setRemoteError",target:"selectMethod"},w0.onError]}}}},confirmSignIn:{...hg(["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",...w0}}}}}},setupTotp:{...hg(["clearFormValues","clearError","clearTouched"])},setupEmail:{...hg(["clearFormValues","clearError","clearTouched"])},selectMfaType:{...hg(["clearFormValues","clearError","clearTouched"])},passkeyPrompt:{entry:"sendUpdate",on:{SUBMIT:{actions:"setConfirmAttributeCompleteStep",target:"resolved"},SKIP:{actions:"setConfirmAttributeCompleteStep",target:"resolved"}}},resolved:{type:"final",data:e=>({codeDeliveryDetails:e.codeDeliveryDetails,remoteError:e.remoteError,step:e.step,unverifiedUserAttributes:e.unverifiedUserAttributes,username:e.username})}}},{actions:{..._p,sendUpdate:kv()},guards:Tv,services:{async fetchUserAttributes(){return PD()},resetPassword({username:e}){return AD({username:e})},handleResendSignUpCode({username:e}){return t.handleResendSignUpCode({username:e})},resendSignInCode({username:e,selectedAuthMethod:n,availableAuthMethods:r,preferredChallenge:a}){const s=n??a??r?.[0]??"PASSWORD";return t.handleSignIn({username:e,options:{authFlowType:"USER_AUTH",preferredChallenge:s}})},handleSignIn({formValues:e,username:n,selectedAuthMethod:r,availableAuthMethods:a,preferredChallenge:s}){const i=r??s??a?.[0]??"PASSWORD";if(i==="PASSWORD"){const{password:u}=e;return t.handleSignIn({username:n,password:u})}else return t.handleSignIn({username:n,options:{authFlowType:"USER_AUTH",preferredChallenge:i}})},confirmSignIn({formValues:e,step:n}){const r=Sde(n),{[r]:a}=e;return t.handleConfirmSignIn({challengeResponse:a})},async handleForceChangePassword({formValues:e}){let{password:n,phone_number:r,country_code:a,confirm_password:s,username:i,...u}=e,c;return r&&(c=`${a}${r}`.replace(/[^A-Z0-9+]/gi,""),u={...u,phone_number:c}),RD({challengeResponse:n,options:{userAttributes:u}})},signInWithRedirect(e,{data:n}){return MD(n)},async validateFields(e){return Ov(e.formValues,e.touched,e.passwordSettings,[$i.validateFormPassword,$i.validateConfirmPassword])}}})}const xde={onDone:[{actions:"setCodeDeliveryDetails",target:"#signUpActor.resolved"}],onError:{actions:["setRemoteError","sendUpdate"]}},Cde={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 Ede({services:t}){return Td({id:"signUpActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldConfirmSignUp",target:"confirmSignUp"},{target:"signUp"}]},autoSignIn:{tags:"pending",invoke:{src:"autoSignIn",...Cde}},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 e=await Fk();return e.credentials&&e.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:{...Iz("signUp")},resetPassword:{invoke:{src:"resetPassword",...xde}},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:e=>({challengeName:e.challengeName,missingAttributes:e.missingAttributes,remoteError:e.remoteError,step:e.step,totpSecretCode:e.totpSecretCode,username:e.username,unverifiedUserAttributes:e.unverifiedUserAttributes,allowedMfaTypes:e.allowedMfaTypes})}}},{actions:{..._p,sendUpdate:kv()},guards:Tv,services:{autoSignIn(){return ek()},async fetchUserAttributes(){return PD()},confirmSignUp({formValues:e,username:n}){const{confirmation_code:r}=e,a={username:n,confirmationCode:r};return t.handleConfirmSignUp(a)},resendSignUpCode({username:e}){return t.handleResendSignUpCode({username:e})},signInWithRedirect(e,{data:n}){return MD(n)},handleSignUp(e){const{formValues:n,loginMechanisms:r,username:a,selectedAuthMethod:s,preferredChallenge:i}=e,u=r[0],f=Iue(a,n,u,s??i);return t.handleSignUp(f)},async validateSignUp(e){return Ov(e.formValues,e.touched,e.passwordSettings,[t.validateFormPassword,t.validateConfirmPassword,t.validatePreferredUsername,t.validateRequiredFieldsForAuthMethod,t.validateCustomSignUp])}}})}const _de=()=>Td({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:()=>ZX()}});function kde(){return Td({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:t})=>({step:t})}}},{actions:{..._p,sendUpdate:kv()},services:{sendUserAttributeVerificationCode({formValues:{unverifiedAttr:t}}){return eQ({userAttributeKey:t})},async confirmVerifyUserAttribute({formValues:{confirmation_code:t},selectedUserAttribute:e}){return xX({confirmationCode:t,userAttributeKey:e})},async validateFields(t){return Ov(t.formValues,t.touched,t.passwordSettings,[$i.validateFormPassword,$i.validateConfirmPassword])}}})}const pg=(t,e)=>{const n=Oue(t.passwordlessCapabilities,t.config?.passwordless?.hiddenAuthMethods),r=t.config?.passwordless?.preferredAuthMethod??t.passwordlessCapabilities?.preferredChallenge;return{...t.actorDoneData,step:t?.actorDoneData?.step??e,formValues:{},touched:{},validationError:{},formFields:t.config?.formFields,loginMechanisms:t.config?.loginMechanisms,passwordSettings:t.config?.passwordSettings,signUpAttributes:t.config?.signUpAttributes,socialProviders:t.config?.socialProviders,availableAuthMethods:n,preferredChallenge:r,passwordless:t.config?.passwordless}},{choose:Ade,stop:Rde}=cz,Bf=t=>Rde(t),Ide={on:{INIT:{actions:"configure",target:"getConfig"},SIGN_OUT:"#authenticator.signOut"}},Tde={always:{actions:"configure",target:"getConfig"}};function Ode(t){const{useNextWaitConfig:e,...n}=t??{};return Td({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:$i,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:e?Tde:Ide,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:Bf("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:Bf("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:Bf("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:Bf("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:Bf("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:{..._p,forwardToActor:Ade([{cond:"hasActor",actions:Tie(({actorRef:a})=>a)}]),setActorDoneData:ao({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:ao({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:Nde(h)??{},initialState:f,loginMechanisms:i,passwordSettings:m,passwordless:g,signUpAttributes:u,socialProviders:c}}}),spawnSignInActor:ao({actorRef:(a,s)=>{const{services:i}=a,u=wde({services:i}).withContext(pg(a,"SIGN_IN"));return $f(u,{name:"signInActor"})}}),spawnSignUpActor:ao({actorRef:(a,s)=>{const{services:i}=a,u=Ede({services:i}).withContext(pg(a,"SIGN_UP"));return $f(u,{name:"signUpActor"})}}),spawnForgotPasswordActor:ao({actorRef:(a,s)=>{const{services:i}=a,u=bde({services:i}).withContext(pg(a,"FORGOT_PASSWORD"));return $f(u,{name:"forgotPasswordActor"})}}),spawnVerifyUserAttributesActor:ao({actorRef:a=>{const s=kde().withContext(pg(a));return $f(s,{name:"verifyUserAttributesActor"})}}),spawnSignOutActor:ao({actorRef:a=>{const s=_de().withContext({user:a?.user});return $f(s,{name:"signOutActor"})}}),configure:ao((a,s)=>{const{services:i,...u}=vz(n)?s.data??{}:n;return{services:{...$i,...i},config:u}}),setHasSetup:ao({hasSetup:!0})},guards:{...Tv,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 Nde(t){return t&&Object.keys(t).forEach(e=>{Object.keys(t[e]).forEach(n=>{let r=t[e][n];r.required=r.isRequired})}),t}const Mde={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},Pde={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"}},Lde={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}"}}},Dde={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}"}}}},Ude={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}"}}}},jde={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}"}}}},zde={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}"}}},Fde={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}"}}},$de={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"}}}},Bde={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}"}}},Hde={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}"}}},qde={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}"}}}},Wde={alignItems:{value:"flex-start"},alignContent:{value:"center"},flexDirection:{value:"column"},justifyContent:{value:"center"}},Vde={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}"}}}}},Gde={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}"}}},Kde={height:{value:"{space.relative.full.value}"}},Yde={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}"}},Zde={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}"}}},Xde={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)"}}}},Qde={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}"}}},Jde={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}"}}}}},efe={gap:{value:"{space.zero.value}"},vertical:{alignItems:{value:"center"}},outer:{alignItems:{value:"center"}}},tfe={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}"}},nfe={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}"}}},rfe={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"}}}},afe={gap:{value:"{space.medium.value}"},justifyContent:{value:"normal"},alignItems:{value:"stretch"},alignContent:{value:"normal"},flexWrap:{value:"nowrap"}},sfe={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}"}}},ofe={highlighted:{fontWeight:{value:"{fontWeights.bold}"}}},ife={lineHeight:{value:1},height:{value:"1em"}},lfe={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}"}}},ufe={maxWidth:{value:"100%"},height:{value:"auto"},objectFit:{value:"initial"},objectPosition:{value:"initial"}},cfe={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}"}}},dfe={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}"}}},ffe={cameraModule:{backgroundColor:{value:"{colors.background.primary.value}"}}},hfe={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}"}}},pfe={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}"}}},mfe={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"}}}},gfe={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}"}}},vfe={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}"}}}},yfe={color:{value:"{components.fieldcontrol.color}"},borderColor:{value:"{components.fieldcontrol.borderColor}"},fontSize:{value:"{components.fieldcontrol.fontSize}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor}"}}},bfe={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}"}}},Sfe={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}"}}}},wfe={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}"}}},xfe={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}"}}},Cfe={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}"}}}},Efe={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}"}}}},_fe={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}"}}},kfe={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"}}}},Afe={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}"}}}},Rfe={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"}}}},Ife={_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}"}}}},Tfe={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}"}}}},Ofe={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}"}}},Nfe={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}"}}},Mfe={color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},Pfe={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}"}}},Lfe={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}"}}}}},Dfe={alignItems:{value:"center"},alignContent:{value:"center"},justifyContent:{value:"flex-start"}},Ufe={accordion:Xde,aiConversation:Dde,alert:Lde,authenticator:jde,autocomplete:Ude,avatar:zde,badge:Fde,breadcrumbs:$de,button:Bde,card:Hde,checkbox:qde,checkboxfield:Wde,collection:Vde,copy:Gde,countrycodeselect:Kde,divider:Yde,dropzone:Zde,field:Qde,fieldcontrol:Jde,fieldgroup:efe,fieldmessages:nfe,fieldset:tfe,fileuploader:rfe,flex:afe,heading:sfe,icon:ife,highlightmatch:ofe,image:ufe,inappmessaging:cfe,input:lfe,link:dfe,liveness:ffe,loader:hfe,menu:pfe,message:mfe,pagination:gfe,passwordfield:vfe,phonenumberfield:yfe,placeholder:bfe,radio:Sfe,radiogroup:wfe,rating:xfe,searchfield:Cfe,select:Efe,selectfield:_fe,sliderfield:kfe,stepperfield:Afe,storagemanager:Rfe,switchfield:Ife,table:Tfe,tabs:Ofe,text:Nfe,textareafield:Mfe,textfield:Pfe,togglebutton:Lfe,togglebuttongroup:Dfe},jfe={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`}}},so={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"}},zfe={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}},Ffe={small:{value:"1.25"},medium:{value:"1.5"},large:{value:"2"}},$fe={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"}},Bfe={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},Hfe={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},qfe={xs:{value:"0.125rem"},small:{value:"0.25rem"},medium:{value:"0.5rem"},large:{value:"1rem"},xl:{value:"2rem"},xxl:{value:"4rem"},xxxl:{value:"8rem"}},Wfe={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}"}}},oo={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%"}}},Vfe={short:{value:"100ms"},medium:{value:"250ms"},long:{value:"500ms"}},Gfe={slideX:{small:{value:"translateX(0.5em)"},medium:{value:"translateX(1em)"},large:{value:"translateX(2em)"}}},Kfe={components:Ufe,borderWidths:Mde,colors:Pde,fonts:jfe,fontSizes:so,fontWeights:zfe,lineHeights:Ffe,opacities:$fe,outlineOffsets:Bfe,outlineWidths:Hfe,radii:qfe,shadows:Wfe,space:oo,time:Vfe,transforms:Gfe};so.xxs,so.xs,so.small,so.medium,so.large,so.xl,so.xxl,so.xxxl,oo.xxxs,oo.xs,oo.small,oo.medium,oo.large,oo.xl,oo.xxl,oo.xxxl;const Yfe={values:{base:0,small:480,medium:768,large:992,xl:1280,xxl:1536},defaultBreakpoint:"base"},Tz={tokens:Kfe,breakpoints:Yfe,name:"default-theme"};var Y2,E8;function Zfe(){if(E8)return Y2;E8=1;function t(e,n,r,a){var s=-1,i=e==null?0:e.length;for(a&&i&&(r=e[++s]);++s<i;)r=n(r,e[s],s,e);return r}return Y2=t,Y2}var Z2,_8;function Xfe(){if(_8)return Z2;_8=1;function t(e){return function(n){return e?.[n]}}return Z2=t,Z2}var X2,k8;function Qfe(){if(k8)return X2;k8=1;var t=Xfe(),e={À:"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=t(e);return X2=n,X2}var Q2,A8;function Jfe(){if(A8)return Q2;A8=1;var t=Qfe(),e=Vk(),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=e(h),h&&h.replace(n,t).replace(c,"")}return Q2=f,Q2}var J2,R8;function ehe(){if(R8)return J2;R8=1;var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function e(n){return n.match(t)||[]}return J2=e,J2}var eC,I8;function the(){if(I8)return eC;I8=1;var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function e(n){return t.test(n)}return eC=e,eC}var tC,T8;function nhe(){if(T8)return tC;T8=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=e+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+"]",E="\\d+",A="["+s+"]",k="["+i+"]",I="[^"+t+y+E+s+i+m+"]",N="\\ud83c[\\udffb-\\udfff]",O="(?:"+x+"|"+N+")",T="[^"+t+"]",P="(?:\\ud83c[\\udde6-\\uddff]){2}",D="[\\ud800-\\udbff][\\udc00-\\udfff]",q="["+m+"]",U="\\u200d",j="(?:"+k+"|"+I+")",$="(?:"+q+"|"+I+")",Z="(?:"+S+"(?:d|ll|m|re|s|t|ve))?",ne="(?:"+S+"(?:D|LL|M|RE|S|T|VE))?",H=O+"?",X="["+g+"]?",ae="(?:"+U+"(?:"+[T,P,D].join("|")+")"+X+H+")*",he="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",z=X+H+ae,V="(?:"+[A,P,D].join("|")+")"+z,K=RegExp([q+"?"+k+"+"+Z+"(?="+[w,q,"$"].join("|")+")",$+"+"+ne+"(?="+[w,q+j,"$"].join("|")+")",q+"?"+j+"+"+Z,q+"+"+ne,xe,he,E,V].join("|"),"g");function J(G){return G.match(K)||[]}return tC=J,tC}var nC,O8;function rhe(){if(O8)return nC;O8=1;var t=ehe(),e=the(),n=Vk(),r=nhe();function a(s,i,u){return s=n(s),i=u?void 0:i,i===void 0?e(s)?r(s):t(s):s.match(i)||[]}return nC=a,nC}var rC,N8;function ahe(){if(N8)return rC;N8=1;var t=Zfe(),e=Jfe(),n=rhe(),r="['’]",a=RegExp(r,"g");function s(i){return function(u){return t(n(e(u).replace(a,"")),i,"")}}return rC=s,rC}var aC,M8;function she(){if(M8)return aC;M8=1;var t=ahe(),e=t(function(n,r,a){return n+(a?"-":"")+r.toLowerCase()});return aC=e,aC}var ohe=she();const Oz=yd(ohe),ihe=/\{([^}]+)\}/g;function Nz(t){const e=new RegExp(ihe);if(typeof t=="string")return e.test(t);if(typeof t=="object"){let n=!1;for(const r in t)if(xo(t,r)){const a=t[r];if(Nz(a)){n=!0;break}}return n}return!1}const lhe="amplify";function p3(t){return Object.entries(t).map(([e,n])=>{const r=Nv(n)?n.toString():Mz({value:n});return`${Oz(e)}:${r}; `}).join(" ")}function Qk({path:t=[]}){return`${Oz([lhe,...t].join(" "))}`}const uhe=["offsetX","offsetY","blurRadius","spreadRadius","color"];function Mz(t){const{value:e}=t;return wo(e)?L8(e):P8(e)?uhe.map(n=>L8(P8(t)?t[n]:e[n])).join(" "):e}function Nv(t){return ua(t)&&xo(t,"value")}function P8(t){return ua(t)&&xo(t,"offsetX")}function L8(t){if(!t)return"";if(Nz(t)){const e=t.replace(/\{|\}/g,"").replace(".value","").split(".");return`var(--${Qk({path:e})})`}return t}const D8=({token:t,path:e})=>{const n=`--${Qk({path:e})}`,{value:r}=t,a=Mz(t);return{name:n,original:r,path:e,value:a,toString:()=>`var(${n})`}};function m3({tokens:t,path:e=[],setupToken:n}){if(xo(t,"value"))return n({token:t,path:e});const r={};for(const a in t)if(xo(t,a)){const s=t[a],i=ua(s)?s:{value:s};r[a]=m3({tokens:i,path:e.concat(a),setupToken:n})}return r}function g3(t,e){e=e||[];for(var n in t)xo(t,n)&&(ua(t[n])&&"value"in t[n]?e.push(t[n]):ua(t[n])&&g3(t[n],e));return e}function Pz(t,e,n){if(t==null)return{};var r,a,s,i,u,c,f=t[0]||{},h=1,m=t.length;for(n=n||[],typeof f!="object"&&(f={});h<m;h++)if((u=t[h])!=null){for(i in u)if(xo(u,i)&&i!=="__proto__"&&(r=f[i],s=u[i],f!==s))if(s&&(ua(s)||(a=Array.isArray(s)))){a?(a=!1,c=r&&Array.isArray(r)?r:[]):c=r&&ua(r)?r:{};var g=n.slice(0);g.push(i),f[i]=Pz([c,s],e,g)}else s!==void 0&&(f[i]=s)}return f}function U8(t,e){return e?`${t} { ${Object.entries(e).map(([n,r])=>`--${n}:${r}; `).join(" ")}}
160
+ `:""}function Ci(t,e){let n="";const{_modifiers:r={},_element:a={},_vars:s,...i}=e;if(Object.keys(i).length){const[u,c]=cle(i,f=>f.startsWith(":")||f.startsWith("["));Object.entries(u).forEach(([f,h])=>{const{_modifiers:m={},_element:g={},_vars:y,...S}=h;n+=`${t}${f} { ${p3(S)} }
161
+ `,n+=U8(`${t}${f}`,y)}),n+=`${t} { ${p3(c)} }
162
+ `}return n+=U8(t,s),Object.entries(r).forEach(([u,c])=>{c&&Object.keys(c).length&&(n+=Ci(`${t}--${u}`,c))}),Object.entries(a).forEach(([u,c])=>{c&&Object.keys(c).length&&(n+=Ci(`${t}__${u}`,c))}),n}function che({theme:t,components:e}){let n="";const{tokens:r,name:a,breakpoints:s}=t;return e.forEach(({name:i,theme:u,overrides:c})=>{const f=`amplify-${i}`,h=`[data-amplify-theme="${a}"] .${f}`,m=Co(u)?u(r):u;n+=Ci(h,m),c&&c.forEach(g=>{const y=Co(g.theme)?g.theme(r):g.theme;if("mediaQuery"in g&&(n+=`@media (${g.mediaQuery}) {
163
+ ${Ci(h,y)}
164
+ }`),"breakpoint"in g){const S=s.values[g.breakpoint];n+=`
165
+ @media (min-width: ${S}px) {
166
+ ${Ci(h,y)}
167
+ }`}"selector"in g&&(n+=Ci(`${g.selector} .${f}`,y)),"colorMode"in g&&(n+=`
168
+ @media (prefers-color-scheme: ${g.colorMode}) {
169
+ ${Ci(`[data-amplify-theme="${a}"][data-amplify-color-mode="system"] .${f}`,y)}
170
+ }
171
+ `,n+=Ci(`[data-amplify-theme="${a}"][data-amplify-color-mode="${g.colorMode}"] .${f}`,y))})}),n}function j8({keys:t,value:e}){return t.reduce((n,r)=>({...n,[r]:{value:`{colors.${e}.${r}.value}`}}),{})}function dhe({animations:t,tokens:e}){let n="";return Object.entries(t).forEach(([r,a])=>{n+=`
172
+ @keyframes ${r} {`,Object.entries(a).forEach(([s,i])=>{n+=`
173
+ ${s} {
174
+ `;const u=Co(i)?i(e):i;n+=p3(u),n+=`
175
+ }`}),n+=`
176
+ }`}),n}function Mv(t,e=Tz){const n=Pz([{},e,{...t,components:{}}]),{primaryColor:r,secondaryColor:a}=n;wo(r)&&(n.tokens.colors.primary=j8({keys:Object.keys(n.tokens.colors[r]),value:r})),wo(a)&&(n.tokens.colors.secondary=j8({keys:Object.keys(n.tokens.colors[a]),value:a}));const s=m3({tokens:n.tokens,setupToken:D8}),{breakpoints:i,name:u}=n;let c=`[data-amplify-theme="${u}"] {
177
+ `+g3(s).map(h=>`${h.name}: ${h.value};`).join(`
178
+ `)+`
179
+ }
180
+ `;t?.components&&(c+=che({theme:{...n,tokens:s},components:t.components}));let f=[];return n.animations&&(c+=dhe({animations:n.animations,tokens:s})),n.overrides&&(f=n.overrides.map(h=>{const m=m3({tokens:h.tokens,setupToken:D8}),g=g3(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 He=(...t)=>{const e=[];for(const n of t)if(n){if(wo(n)){e.push(n);continue}if(typeof n=="number"){e.push(n.toString());continue}if(Array.isArray(n)){e.push(He(...n));continue}if(ua(n)){if(n.toString!==Object.prototype.toString&&n.toString()!=="[object Object]"){e.push(n.toString());continue}for(const r in n)xo(n,r)&&n[r]&&e.push(r)}}return e.join(" ")},fe={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"},fhe=({componentName:t,packageName:e,version:n})=>{const r=[`ui-${e}`,n];switch(t){case"AIConversation":{no({...Yie,additionalDetails:[[t],r]});break}case"Authenticator":{no({...Xie,additionalDetails:[[t],r]});break}case"ChangePassword":case"DeleteUser":{no({...Zie,additionalDetails:[["AccountSettings"],r]});break}case"FileUploader":{no({...Qie,additionalDetails:[[t],r]});break}case"InAppMessaging":{no({...Jie,additionalDetails:[[t],r]});break}case"LocationSearch":{no({...ele,additionalDetails:[[t],r]});break}case"MapView":{no({...tle,additionalDetails:[[t],r]});break}case"StorageManager":{no({...nle,additionalDetails:[[t],r]});break}case"StorageBrowser":{no({...rle,additionalDetails:[[t],r]});break}}return ule},v3=F.createContext(null),hhe=t=>(e,n)=>{yz(e,n,t)};function Lz({children:t}){const[e,n]=F.useState("configuring");F.useEffect(()=>{ev().then(()=>{n("authenticated")}).catch(()=>{n("unauthenticated")})},[]);const r=_.useContext(v3),a=Lie(Ode),s=_.useMemo(()=>r??{authStatus:e,service:a},[e,r,a]),{service:i}=s;return _.useEffect(()=>dle(i,hhe({onSignIn:()=>{n("authenticated")},onSignOut:()=>{n("unauthenticated")}})),[i]),F.createElement(v3.Provider,{value:s},t)}const phe="`useAuthenticator` must be used inside an `Authenticator.Provider`.",mhe=["confirmResetPassword","confirmSignIn","confirmSignUp","confirmVerifyUser","forceNewPassword","forgotPassword","selectMfaType","setupEmail","setupTotp","signIn","signUp","verifyUser"],ghe=t=>mhe.some(e=>e===t),vhe=()=>!1;function yhe(t,e){return t.length!==e.length?!1:t.every((n,r)=>{const a=e[r];return ile(n,a)||lle(n,a)?!0:n===a})}const bhe=t=>(e,n)=>{const r=t(e),a=t(n);return yhe(r,a)},She=t=>({...Bh(t)?.formFields?.setupTotp?.QR}),whe=t=>t.flatMap(([e,n])=>({name:e,...n})),xhe=(t={})=>t&&Object.entries(t).map(([e,n])=>!wo(n)||!e?{}:{name:e,label:n,type:"radio",value:n}),Che=(t=[])=>t.map(e=>({name:"mfa_type",label:$n.getMfaTypeLabelByValue(e),type:"radio",value:e})),Ehe=(t,e)=>ghe(t)?t==="verifyUser"?xhe(Bh(e).unverifiedUserAttributes):t==="selectMfaType"?Che(Bh(e).allowedMfaTypes):whe(Wle(t,e)):[];function xt(t){const e=F.useContext(v3);if(!e)throw new Error(phe);const{service:n}=e,{send:r}=n,a=_.useCallback(w=>({...gle({send:r,state:w})}),[r]),s=t?bhe(t):vhe,{authStatus:i}=e,u=$ie(n,a,s),{route:c,totpSecretCode:f,user:h,...m}=u,g=n.getSnapshot(),y=c==="setupTotp"?She(g):null,S=Ehe(c,g);return{...m,authStatus:i,route:c,totpSecretCode:f,user:h,fields:S,QRFields:y}}const _he=({route:t})=>[t];function khe(t){const{route:e,initializeMachine:n}=xt(_he),r=F.useRef(!1);F.useEffect(()=>{!r.current&&e==="setup"&&(n(t),r.current=!0)},[n,e,t])}const Ahe=({shouldWarn:t,message:e})=>{_.useEffect(()=>{},[t,e])};function Rhe({componentName:t,packageName:e,version:n}){_.useEffect(()=>fhe({componentName:t,packageName:e,version:n}),[t,e,n])}const Dz=_.createContext({theme:Mv(),colorMode:void 0}),Jk={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"},eA={Alert:{dismissButtonLabel:"Dismiss alert"},PhoneNumberField:{countryCodeLabel:"Country code"},PasswordField:{passwordIsHidden:"Password is hidden",passwordIsShown:"Password is shown",showPassword:"Show password"}},y3={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"},Ihe=t=>t in y3,Uz=t=>typeof t=="string"&&t.length===0,z8=t=>t==null||Uz(t),Pv=t=>Object.keys(t),tA=(t,e,n)=>{if(typeof e!="string")return e;if(e.includes(" "))return e.split(" ").map(r=>tA(t,r,n)).join(" ");if(Ihe(t)){const r=e.split("."),a=y3[t];let s=n[a];for(let i=0;i<r.length;i++){if(s){s=s[r[i]];continue}break}return Nv(s)?`var(--${Qk({path:[y3[t],...r]})})`:e}return e},The=({breakpoint:t,breakpoints:e,values:n})=>{const r=n[t];if(r!==void 0)return r;const a=Pv(e).sort((i,u)=>e[u]-e[i]),s=a.slice(a.indexOf(t));for(const i of s){const u=n[i];if(u!==void 0)return u}return null},Ohe=t=>Pv(t).reduce((e,n)=>n in Tz.breakpoints.values?{...e,[n]:t[n]}:e,{}),Nhe=({breakpoint:t,breakpoints:e,values:n})=>{let r={};const a=Pv(e).sort((s,i)=>e[s]-e[i]);return Array.isArray(n)?n.forEach((s,i)=>{r[a[i]]=s}):typeof n=="object"&&(r=Ohe(n)),The({breakpoint:t,breakpoints:e,values:r})},Mhe=({breakpoints:t})=>{const e=Pv(t).sort((n,r)=>t[r]-t[n]);return e.map((n,r)=>{let a="";const s=t[n],i=e[r-1],u=i?t[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}})},Phe=typeof window>"u"?_.useEffect:_.useLayoutEffect,Lhe=({breakpoints:t,defaultBreakpoint:e})=>{const r=typeof window<"u"&&typeof window.matchMedia<"u"?window.matchMedia:null,a=_.useMemo(()=>Mhe({breakpoints:t}),[t]),[s,i]=_.useState(e),u=_.useCallback((c,f)=>{c&&i(f)},[i]);return Phe(()=>{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())}},[t,i,r,a]),_.useDebugValue(s,c=>c),s},Dhe=t=>typeof t>"u"||typeof t.theme>"u"?Mv():t.theme,Uhe=()=>{const t=_.useContext(Dz);return Dhe(t)},jhe=({value:t,propKey:e,tokens:n})=>Nv(t)?t.toString():wo(t)?wo(e)?tA(e,t,n):t:null,zhe=t=>t==="auto"||typeof t=="number"&&!isNaN(t)||typeof t=="string"&&!isNaN(parseFloat(t)),sC=t=>t==="auto"?"auto":`span ${t}`,F8=t=>zhe(t)?sC(t):Array.isArray(t)?t.map(e=>sC(e)):typeof t=="object"&&t!=null?Object.entries(t).reduce((e,[n,r])=>({...e,[n]:sC(r)}),{}):null,Fhe=t=>{const{rowSpan:e,columnSpan:n,row:r,column:a,...s}=t,{rowFromSpanValue:i,columnFromSpanValue:u}=_.useMemo(()=>({rowFromSpanValue:F8(e),columnFromSpanValue:F8(n)}),[e,n]);return{row:z8(r)?i:r,column:z8(a)?u:a,...s}},$he=t=>t in Jk,Bhe=({props:t={},style:e={},breakpoint:n,breakpoints:r,tokens:a})=>{const s={};return Object.keys(t).filter(i=>t[i]!==null).forEach(i=>{if($he(i)){const u=t[i];if(u==null||Uz(u))return;const c=Jk[i];let f="";Nv(u)?f=u.toString():typeof u=="string"?f=tA(i,u,a):typeof u=="number"?f=u:typeof u=="object"&&(f=jhe({propKey:i,tokens:a,value:Nhe({values:u,breakpoint:n,breakpoints:r})})),e={...e,[c]:f}}else typeof t[i]<"u"&&(s[i]=t[i])}),{propStyles:e,nonStyleProps:s}},Hhe=(t,e)=>{const{breakpoints:{values:n,defaultBreakpoint:r},tokens:a}=Uhe(),s=Lhe({breakpoints:n,defaultBreakpoint:r}),i=Fhe(t);return _.useMemo(()=>Bhe({props:i,style:e,breakpoint:s,breakpoints:n,tokens:a}),[i,e,n,s,a])},Yt=t=>_.forwardRef(t),qhe=({as:t="div",children:e,testId:n,ariaLabel:r,isDisabled:a,style:s,inert:i,...u},c)=>{const{propStyles:f,nonStyleProps:h}=Hhe(u,s);return _.createElement(t,{"aria-label":r,"data-testid":n,disabled:a,ref:c,inert:i?"":null,style:f,...h},e)},qe=Yt(qhe);qe.displayName="View";const Hf={minX:0,minY:0,width:24,height:24},Whe=({className:t,as:e="svg",fill:n="currentColor",pathData:r,viewBox:a=Hf,children:s,paths:i,...u},c)=>{const f=a.minX??Hf.minX,h=a.minY??Hf.minY,m=a.width??Hf.width,g=a.height??Hf.height;let y;return s&&(y=s),i&&(y=i.map((S,w)=>_.createElement("path",{...S,key:w}))),r&&(y=_.createElement("path",{d:r,fill:n})),_.createElement(qe,{as:e,className:He(fe.Icon,t),ref:c,viewBox:`${f} ${h} ${m} ${g}`,...u},y)},jz=Yt(Whe);jz.displayName="Icon";const Vhe=_.createContext({});function Lv(t){const e=_.useContext(Vhe);if(t&&e)return e[t]}const Ghe=t=>{const{className:e,...n}=t;return _.createElement(qe,{as:"span",width:"1em",height:"1em",className:He(fe.Icon,e),...n},_.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_.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"})))},Khe=t=>{const{className:e,...n}=t;return _.createElement(qe,{as:"span",width:"1em",height:"1em",className:He(fe.Icon,e),...n},_.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_.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"})))},Yhe=t=>{const{className:e,...n}=t;return _.createElement(qe,{as:"span",width:"1em",height:"1em",className:He(fe.Icon,e),...n},_.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_.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"})))},Zhe=t=>{const{className:e,...n}=t;return _.createElement(qe,{as:"span",width:"1em",height:"1em",className:He(fe.Icon,e),...n},_.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_.createElement("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})))},zz=({variation:t,ariaHidden:e,ariaLabel:n,role:r})=>{const a=Lv("alert");let s;switch(t){case"info":s=a?.info??_.createElement(Yhe,{"aria-hidden":e,"aria-label":n,role:r});break;case"error":s=a?.error??_.createElement(Khe,{"aria-hidden":e,"aria-label":n,role:r});break;case"warning":s=a?.warning??_.createElement(Zhe,{"aria-hidden":e,"aria-label":n,role:r});break;case"success":s=a?.success??_.createElement(Ghe,{"aria-hidden":e,"aria-label":n,role:r});break}return s?_.createElement("span",{className:fe.AlertIcon},s):null};zz.displayName="AlertIcon";const Xhe=globalThis?.document?_.useLayoutEffect:()=>{},Qhe="amplify-id",Jhe=VD.useId||(()=>{});let epe=0;const Bi=t=>{const[e,n]=_.useState(Jhe());return Xhe(()=>{t||n(r=>r??String(epe++))},[t]),t??(e?`${Qhe}-${e}`:"")},Fz=_.createContext({isFieldsetDisabled:!1}),kp=t=>{let n=_.useContext(Fz).isFieldsetDisabled;return(n===void 0||n===!1)&&(n=t),{isFieldsetDisabled:n}},tpe=({className:t,children:e,...n},r)=>_.createElement(qe,{className:He(fe.Flex,t),ref:r,...n},e),Be=Yt(tpe);Be.displayName="Flex";const npe="linear-empty",rpe="linear-filled",ape="circular-empty",spe="circular-filled",$8=8,b3=42,mg=2*b3*Math.PI,ope=({className:t,filledColor:e,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=He(fe.Loader,Gt(fe.Loader,r),Gt(fe.Loader,a),Hr(fe.Loader,"determinate",s),t),g=_.createElement("g",null,_.createElement("line",{x1:"0",x2:"100%",y1:"50%",y2:"50%",style:{stroke:String(n)},"data-testid":npe}),_.createElement("line",{x1:"0",x2:s?h:"100%",y1:"50%",y2:"50%",style:{stroke:s&&u===0?"none":e?String(e):void 0},"data-testid":rpe}),s?_.createElement("text",{"aria-live":"polite",className:He(fe.LoaderLabel,i?fe.VisuallyHidden:null),x:`${-1+u}%`,y:"200%"},h):null),y=_.createElement("g",null,_.createElement("circle",{cx:"50%",cy:"50%",r:`${b3}%`,strokeWidth:`${$8}%`,style:{stroke:String(n)},"data-testid":ape}),_.createElement("circle",{cx:"50%",cy:"50%",r:`${b3}%`,strokeWidth:`${$8}%`,style:{stroke:String(e),strokeDasharray:s?`${mg}% ${mg}%`:void 0,strokeDashoffset:s?`${mg-mg*u/100}%`:void 0},"data-testid":spe}),s?_.createElement("text",{"aria-live":"polite",className:He(fe.LoaderLabel,i?fe.VisuallyHidden:null),x:"130%",y:"80%"},h):null);return _.createElement(qe,{as:"svg","aria-valuenow":s?u:void 0,className:m,ref:f,role:"progressbar",...c},a==="linear"?g:y)},$z=Yt(ope);$z.displayName="Loader";const ipe=["link","primary",void 0],lpe=({className:t,children:e,colorTheme:n,isFullWidth:r=!1,isDisabled:a,isLoading:s,loadingText:i="",size:u,type:c="button",variation:f,...h},m)=>{const g=ipe.includes(f)&&n?`${f??"outlined"}--${n}`:void 0,{isFieldsetDisabled:y}=kp(a??s??h.disabled),S=He(fe.Button,fe.FieldGroupControl,Gt(fe.Button,f),Gt(fe.Button,g),Gt(fe.Button,u),Hr(fe.Button,"disabled",y),Hr(fe.Button,"loading",s),Hr(fe.Button,"fullwidth",r),t);return _.createElement(qe,{ref:m,as:"button",className:S,isDisabled:y,type:c,...h},s?_.createElement(Be,{as:"span",className:fe.ButtonLoaderWrapper},_.createElement($z,{size:u}),i||null):e)},cn=Yt(lpe);cn.displayName="Button";const upe=t=>{const{className:e,size:n,...r}=t;return _.createElement(qe,{as:"span",width:n??"1em",height:n??"1em",className:He(fe.Icon,e),...r},_.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},_.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"})))},cpe=({as:t="p",className:e,children:n,isTruncated:r,variation:a,...s},i)=>{const u=He(fe.Text,Gt(fe.Text,a),Hr(fe.Text,"truncated",r),e);return _.createElement(qe,{as:t,className:u,ref:i,...s},n)},Ia=Yt(cpe);Ia.displayName="Text";const dpe="qa-field-description",Dv=({descriptiveText:t,labelHidden:e,...n})=>t?_.createElement(Ia,{"data-testid":dpe,className:He(fe.FieldDescription,{[fe.VisuallyHidden]:e}),...n},t):null;Dv.displayName="FieldDescription";const Uv=({errorMessage:t,hasError:e,...n})=>e&&t?_.createElement(Ia,{className:fe.FieldErrorMessage,...n},t):null;Uv.displayName="FieldErrorMessage";const fpe=({children:t,className:e,visuallyHidden:n,...r},a)=>_.createElement(qe,{as:"label",className:He(fe.Label,e,{[fe.VisuallyHidden]:n}),ref:a,...r},t),nA=Yt(fpe);nA.displayName="Label";const hpe=({buttonRef:t,children:e,className:n,dismissButtonLabel:r=eA.Alert.dismissButtonLabel,hasIcon:a=!0,heading:s,isDismissible:i=!1,onDismiss:u,variation:c,...f},h)=>{const[m,g]=_.useState(!1),y=Lv("alert"),S=_.useCallback(()=>{g(!m),Co(u)&&u()},[g,u,m]);return m?null:_.createElement(Be,{className:He(fe.Alert,n,Gt(fe.Alert,c)),ref:h,role:"alert",...f},a&&_.createElement(zz,{variation:c,ariaHidden:!0}),_.createElement(qe,{flex:"1"},s&&_.createElement(qe,{className:fe.AlertHeading},s),_.createElement(qe,{className:fe.AlertBody},e)),i&&_.createElement(cn,{ariaLabel:r,variation:"link",className:fe.AlertDismiss,onClick:S,ref:t},y?.close??_.createElement(upe,{"aria-hidden":"true"})))},Bz=Yt(hpe);Bz.displayName="Alert";const Fl=(t,e)=>t&&e?`${t}-${e}`:void 0,ppe=({children:t,className:e,innerEndComponent:n,innerStartComponent:r,orientation:a="horizontal",outerEndComponent:s,outerStartComponent:i,variation:u,...c},f)=>{const h=r!=null,m=n!=null,g=h?fe.FieldGroupHasInnerStart:null,y=m?fe.FieldGroupHasInnerEnd:null,S=He(fe.FieldGroup,g,y,Gt(fe.FieldGroup,a),e);return _.createElement(Be,{className:S,ref:f,...c},i&&_.createElement(qe,{className:He(fe.FieldGroupOuterStart,Gt(fe.FieldGroupOuterStart,u))},i),_.createElement(qe,{className:He(fe.FieldGroupFieldWrapper,Gt(fe.FieldGroupFieldWrapper,a))},r&&_.createElement(qe,{className:fe.FieldGroupInnerStart},r),t,n&&_.createElement(qe,{className:fe.FieldGroupInnerEnd},n)),s&&_.createElement(qe,{className:He(fe.FieldGroupOuterEnd,Gt(fe.FieldGroupOuterEnd,u))},s))},Hz=Yt(ppe);Hz.displayName="FieldGroup";const mpe=({autoComplete:t,checked:e,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=He(fe.Input,fe.FieldGroupControl,Gt(fe.Input,y),Hr(fe.Input,"error",m),Gt(fe.Input,f),n),{isFieldsetDisabled:E}=kp(i);return _.createElement(qe,{"aria-invalid":m,as:"input",autoComplete:t,checked:e,className:x,defaultChecked:r,defaultValue:a,isDisabled:E,id:s,readOnly:u,ref:w,required:c,type:h,value:g,...S})},rA=Yt(mpe);rA.displayName="Input";const gpe=t=>t in Jk,qz=t=>{const e={styleProps:{},rest:{}};return Object.keys(t).forEach(n=>{gpe(n)?e.styleProps={...e.styleProps,[n]:t[n]}:e.rest={...e.rest,[n]:t[n]}}),e},aA=t=>{const e=t.filter(n=>n!==void 0).join(" ");return e.length>0?e:void 0},sA="error",oA="description",vpe=(t,e)=>{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}=t,A=Bi(i),k=Bi(),I=r?Fl(k,oA):void 0,N=s?Fl(k,sA):void 0,O=aA([N,I]),{styleProps:T,rest:P}=qz(E);return _.createElement(Be,{className:He(fe.Field,Gt(fe.Field,y),fe.TextField,n),testId:S,...T},_.createElement(nA,{htmlFor:A,visuallyHidden:h},f),_.createElement(Dv,{id:I,labelHidden:h,descriptiveText:r}),_.createElement(Hz,{outerStartComponent:g,outerEndComponent:m,innerStartComponent:c,innerEndComponent:u,variation:w},_.createElement(rA,{"aria-describedby":O,hasError:s,id:A,ref:e,size:y,variation:w,...x,...P})),_.createElement(Uv,{id:N,hasError:s,errorMessage:a}))},Ap=Yt(vpe);Ap.displayName="TextField";const ype=({as:t="span",children:e,className:n,...r},a)=>_.createElement(qe,{as:t,className:He(fe.VisuallyHidden,n),ref:a,...r},e),jv=Yt(ype);jv.displayName="VisuallyHidden";const bpe=({className:t,orientation:e="horizontal",size:n,label:r,...a},s)=>{const i=He(fe.Divider,Gt(fe.Divider,e),Gt(fe.Divider,n),t);return _.createElement(qe,{"aria-orientation":e,as:"hr",className:i,"data-label":r,ref:s,...a})},iA=Yt(bpe);iA.displayName="Divider";const Spe=t=>{const{className:e,...n}=t;return _.createElement(qe,{as:"span",width:"1em",height:"1em",className:He(fe.Icon,e),...n},_.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_.createElement("path",{d:"M16.59 8.58984L12 13.1698L7.41 8.58984L6 9.99984L12 15.9998L18 9.99984L16.59 8.58984Z",fill:"currentColor"})))},wpe=({children:t,className:e,isDisabled:n,legend:r,legendHidden:a,size:s,testId:i,variation:u="plain",...c},f)=>{const{isFieldsetDisabled:h}=kp(n),m=_.useMemo(()=>({isFieldsetDisabled:h}),[h]),g=He(fe.Fieldset,Gt(fe.Fieldset,u),Gt(fe.Fieldset,s),e),y=He(fe.FieldsetLegend,Gt(fe.FieldsetLegend,s),{[fe.VisuallyHidden]:a});return _.createElement(Fz.Provider,{value:m},_.createElement(Be,{as:"fieldset",className:g,ref:f,disabled:h,testId:i,...c},_.createElement(jv,{as:"legend"},r),_.createElement(qe,{as:"div","aria-hidden":"true",className:y},r),t))},Wz=Yt(wpe);Wz.displayName="Fieldset";const xpe={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},Cpe=({className:t,children:e,isTruncated:n,level:r=6,...a},s)=>_.createElement(qe,{as:xpe[r],className:He(fe.Heading,Gt(fe.Heading,r),Hr(fe.Heading,"truncated",n),t),ref:s,...a},e),Rr=Yt(Cpe);Rr.displayName="Heading";var Epe=_.createContext(void 0),_pe=t=>{const{dir:e,children:n}=t;return C.jsx(Epe.Provider,{value:e,children:n})};const kpe=t=>{const{className:e,...n}=t;return _.createElement(qe,{as:"span",width:"1em",height:"1em",className:He(fe.Icon,e),...n},_.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_.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"})))},Ape=t=>{const{className:e,...n}=t;return _.createElement(qe,{as:"span",width:"1em",height:"1em",className:He(fe.Icon,e),...n},_.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_.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:Rpe,passwordIsShown:Ipe,showPassword:Tpe}=eA.PasswordField,Ope=({fieldType:t,passwordIsHiddenLabel:e=Rpe,passwordIsShownLabel:n=Ipe,showPasswordButtonLabel:r=Tpe,size:a,hasError:s,...i},u)=>{const c=Lv("passwordField"),f=He(fe.FieldShowPassword,Hr(fe.FieldShowPassword,"error",s)),h=t==="password"?c?.visibility??_.createElement(Ape,{"aria-hidden":"true"}):c?.visibilityOff??_.createElement(kpe,{"aria-hidden":"true"});return _.createElement(cn,{"aria-checked":t!=="password",ariaLabel:r,className:f,colorTheme:s?"error":void 0,ref:u,role:"switch",size:a,...i},_.createElement(jv,{"aria-live":"polite"},t==="password"?e:n),h)},Vz=Yt(Ope);Vz.displayName="ShowPasswordButton";const Npe=({autoComplete:t="current-password",label:e,className:n,hideShowPassword:r=!1,passwordIsHiddenLabel:a,passwordIsShownLabel:s,showPasswordButtonLabel:i,showPasswordButtonRef:u,size:c,hasError:f,...h},m)=>{const[g,y]=_.useState("password"),S=_.useCallback(()=>{y(g==="password"?"text":"password")},[y,g]);return _.createElement(Ap,{autoComplete:t,outerEndComponent:r?null:_.createElement(Vz,{fieldType:g,onClick:S,passwordIsHiddenLabel:a,passwordIsShownLabel:s,ref:u,size:c,showPasswordButtonLabel:i,hasError:f}),size:c,type:g,label:e,className:He(fe.PasswordField,n),ref:m,hasError:f,...h})},lA=Yt(Npe);lA.displayName="PasswordField";const Mpe=({autoComplete:t,className:e,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 A=a===void 0&&s===void 0&&h,k=y||S>1,I=He(fe.Select,fe.FieldGroupControl,Gt(fe.Select,n),Gt(fe.Select,r),Hr(fe.Select,"error",i),Hr(fe.Select,"expanded",k),e),N=Lv("select"),{isFieldsetDisabled:O}=kp(m);return _.createElement(qe,{className:fe.SelectWrapper},_.createElement(qe,{"aria-invalid":i,as:"select",autoComplete:t,value:a,defaultValue:A?"":s,isDisabled:O,multiple:y,size:S,required:g,className:I,ref:x,...w},h&&_.createElement("option",{value:""},h),f),k?null:_.createElement(Be,{className:He(fe.SelectIcon,Gt(fe.SelectIcon,n)),color:c,"aria-hidden":"true"},u??N?.expand??_.createElement(Spe,null)))},Gz=Yt(Mpe);Gz.displayName="Select";const Ppe=({children:t,options:e})=>t?(e?.length&&console.warn("Amplify UI: <SelectField> component defaults to rendering children over `options`. When using the `options` prop, omit children."),t):e?.map((n,r)=>_.createElement("option",{label:n,value:n,key:`${n}-${r}`},n)),Lpe=(t,e)=>{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}=t,w=Bi(u),x=Bi(),E=a?Fl(x,oA):void 0,A=i?Fl(x,sA):void 0,k=aA([A,E]),{styleProps:I,rest:N}=qz(S);return _.createElement(Be,{className:He(fe.Field,Gt(fe.Field,m),fe.SelectField,r),testId:g,...I},_.createElement(nA,{htmlFor:w,visuallyHidden:f},c),_.createElement(Dv,{id:E,labelHidden:f,descriptiveText:a}),_.createElement(Gz,{"aria-describedby":k,hasError:i,id:w,ref:e,size:m,...N,...y},Ppe({children:n,options:h})),_.createElement(Uv,{id:A,hasError:i,errorMessage:s}))},Kz=Yt(Lpe);Kz.displayName="SelectField";const Dpe=({className:t,dialCodeList:e,isReadOnly:n,...r},a)=>{const s=e??bz,i=_.useMemo(()=>s.map(u=>_.createElement("option",{key:u,value:u,disabled:n},u)),[s,n]);return _.createElement(Kz,{"aria-disabled":n,autoComplete:"tel-country-code",className:He(fe.CountryCodeSelect,fe.DialCodeSelect,t),labelHidden:!0,ref:a,...r},i)},Yz=Yt(Dpe);Yz.displayName="DialCodeSelect";const Upe=({autoComplete:t="tel-national",className:e,defaultDialCode:n,dialCodeLabel:r=eA.PhoneNumberField.countryCodeLabel,dialCodeList:a,dialCodeName:s,dialCodeRef:i,hasError:u,isDisabled:c,isReadOnly:f,onDialCodeChange:h,onInput:m,size:g,variation:y,...S},w)=>_.createElement(Ap,{outerStartComponent:_.createElement(Yz,{defaultValue:n,dialCodeList:a,className:e,hasError:u,isDisabled:c,isReadOnly:f,label:r,name:s,onChange:h,ref:i,size:g,variation:y}),autoComplete:t,className:He(fe.PhoneNumberField,e),hasError:u,isDisabled:c,isReadOnly:f,onInput:m,ref:w,size:g,type:"tel",variation:y,...S}),Zz=Yt(Upe);Zz.displayName="PhoneNumberField";const jpe={name:"default"},Xz=F.createContext(jpe),zpe=()=>_.useContext(Xz),Fpe=({children:t,className:e,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:E,labelPosition:A}=zpe(),{isFieldsetDisabled:k}=kp(y||r||w&&h!==s),I=f!==void 0?s===f:void 0,N=h!==void 0?s===h:void 0,O=i??A;return _.createElement(Be,{as:"label",className:He(fe.Radio,Hr(fe.Radio,"disabled",k),O?`amplify-label-${O}`:null,e)},t&&_.createElement(Ia,{as:"span",className:He(fe.RadioLabel,Hr(fe.RadioLabel,"disabled",k))},t),_.createElement(rA,{checked:I,className:He(fe.VisuallyHidden,fe.RadioInput),defaultChecked:N,hasError:g,id:n,isDisabled:k,isReadOnly:w,isRequired:S,onChange:x,ref:c,type:"radio",name:m,value:s,...u}),_.createElement(Be,{"aria-hidden":"true",as:"span",className:He(fe.RadioButton,Gt(fe.RadioButton,E)),testId:a}))},uA=Yt(Fpe);uA.displayName="Radio";const $pe=({children:t,className:e,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:E,variation:A,...k},I)=>{const N=Bi(i),O=Bi(),T=r?Fl(O,oA):void 0,P=s?Fl(O,sA):void 0,D=aA([P,T]),q=Fl(x,fe.RadioGroup),U=_.useMemo(()=>({currentValue:E,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,E,g]);return _.createElement(Wz,{className:He(fe.Field,Gt(fe.Field,w),fe.RadioGroupField,e),isDisabled:u,legend:h,legendHidden:m,ref:I,role:"radiogroup",size:w,testId:x,variation:A,...k},_.createElement(Dv,{id:T,labelHidden:m,descriptiveText:r}),_.createElement(Be,{"aria-describedby":D,className:fe.RadioGroup,id:N,testId:q},_.createElement(Xz.Provider,{value:U},t)),_.createElement(Uv,{id:P,hasError:s,errorMessage:a}))},cA=Yt($pe);cA.displayName="RadioGroupField";const zv=_.createContext({groupId:"",activeTab:"",setActiveTab:()=>{}}),Qz="-",Bpe=({className:t,value:e,children:n,onClick:r,as:a="button",role:s="tab",...i},u)=>{const{activeTab:c,setActiveTab:f,groupId:h}=_.useContext(zv);let m=e;typeof m=="string"&&(m=m.replace(" ",Qz));const g=c===e,y=S=>{Co(r)&&r?.(S),f(e)};return _.createElement(qe,{...i,role:s,as:a,id:`${h}-tab-${m}`,"aria-selected":g,"aria-controls":`${h}-panel-${m}`,tabIndex:g?void 0:-1,className:He(fe.TabsItem,Hr(fe.TabsItem,"active",c===e),t),ref:u,onClick:y},n)},dA=Yt(Bpe);dA.displayName="Tabs.Item";const Hpe=t=>_.isValidElement(t),qpe=({className:t,children:e,indicatorPosition:n,spacing:r,role:a="tablist",...s},i)=>{const u=_.useRef(null),{activeTab:c,setActiveTab:f}=_.useContext(zv);_.useImperativeHandle(i,()=>u.current);const h=_.useMemo(()=>_.Children.toArray(e).map(w=>{if(w&&Hpe(w))return w.props.value}).filter(w=>!!w),[e]),m=h.indexOf(c),g=_.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 E=h[w];if(E){f(E);const A=x[w];A?.focus(),A?.click()}},[m,f,h]),y=_.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 E=h[w];if(E){f(E);const A=x[w];A?.focus(),A?.click()}},[m,f,h]),S=_.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 _.createElement(qe,{...s,role:a,onKeyDown:S,className:He(fe.TabsList,n?Gt(fe.TabsList,n):null,r?Gt(fe.TabsList,r):null,t),ref:u},e)},fA=Yt(qpe);fA.displayName="Tabs.List";const Wpe=({className:t,value:e,children:n,role:r="tabpanel",...a},s)=>{const{activeTab:i,isLazy:u,groupId:c}=_.useContext(zv);if(u&&i!==e)return null;let f=e;return typeof f=="string"&&(f=f.replace(" ",Qz)),_.createElement(qe,{...a,role:r,id:`${c}-panel-${f}`,"aria-labelledby":`${c}-tab-${f}`,className:He(fe.TabsPanel,Hr(fe.TabsPanel,"active",i===e),t),ref:s},n)},hA=Yt(Wpe);hA.displayName="Tabs.Panel";const Vpe=({children:t,defaultValue:e,className:n,value:r,onValueChange:a,isLazy:s,...i},u)=>{const c=Bi(),f=r!==void 0,[h,m]=_.useState(()=>f?r:e),g=f?r:h??"",y=_.useCallback(w=>{Co(a)&&a(w),f||m(w)},[a,f]),S=_.useMemo(()=>({activeTab:g,isLazy:s,setActiveTab:y,groupId:c}),[g,y,s,c]);return _.createElement(zv.Provider,{value:S},_.createElement(qe,{...i,ref:u,className:He(n,fe.Tabs)},t))},pA=Yt(Vpe);pA.displayName="Tabs.Container";const Gpe=({items:t,indicatorPosition:e,justifyContent:n,spacing:r,...a},s)=>_.createElement(pA,{...a,ref:s},_.createElement(fA,{indicatorPosition:e,justifyContent:n,spacing:r},t?.map(({value:i,label:u,content:c,...f})=>_.createElement(dA,{...f,key:i,value:i},u))),t?.map(({value:i,content:u,isDisabled:c})=>_.createElement(hA,{key:i,value:i,isDisabled:c},u))),Al=Object.assign(Yt(Gpe),{Item:dA,List:fA,Panel:hA,Container:pA});Al.displayName="Tabs";const oC=({errors:t,id:e,dataAttr:n})=>{if(!(t?.length>0))return null;const r=n?{[n]:!0}:{};return F.createElement(qe,{...r,id:e},t.map(a=>F.createElement(Ia,{key:a,role:"alert",variation:"error"},ye(a))))},Kpe="6.15.4",Ype=({message:t,shouldWarn:e})=>{Ahe({message:t,shouldWarn:e})},Jz=_.createContext(null),da=()=>{const t=_.useContext(Jz);if(!t)throw new Error("`useCustomComponents` cannot be used outside of a `CustomComponentsContext.Provider`");return t},Zpe=t=>{const e=new FormData(t.target);return Object.fromEntries(e)};function fa(){const{submitForm:t,updateBlur:e,updateForm:n}=xt(i=>[i.submitForm,i.updateBlur,i.updateForm]),r=_.useCallback(({target:{name:i}})=>{e({name:i})},[e]),a=_.useCallback(({target:{checked:i,name:u,type:c,value:f}})=>{n({name:u,value:c==="checkbox"&&!i?void 0:f})},[n]),s=_.useCallback(i=>{i.preventDefault(),t(Zpe(i))},[t]);return{handleBlur:r,handleChange:a,handleSubmit:s}}const Kr=()=>{const{error:t}=xt(e=>[e.error]);return F.createElement(F.Fragment,null,t?F.createElement(Bz,{variation:"error",isDismissible:!0},ye(t)):null)};function B8({autocomplete:t,dialCode:e,name:n,type:r,...a}){const{validationErrors:s}=xt(({validationErrors:h})=>[h]),i=_.useMemo(()=>wle(s[n]),[n,s]),u=i?.length>0,c=Bi(),f=u?c:void 0;return r==="tel"?_.createElement(_.Fragment,null,_.createElement(Zz,{...a,name:n,defaultDialCode:e,dialCodeName:"country_code",autoComplete:t,hasError:u,"aria-describedby":f}),_.createElement(oC,{dataAttr:"data-amplify-sign-up-errors",errors:i,id:c})):r==="password"?_.createElement(_.Fragment,null,_.createElement(lA,{...a,name:n,autoCapitalize:"off",autoComplete:t,hasError:u,"aria-describedby":f}),_.createElement(oC,{dataAttr:"data-amplify-sign-up-errors",errors:i,id:c})):_.createElement(_.Fragment,null,_.createElement(Ap,{...a,name:n,autoCapitalize:"off",autoComplete:t,hasError:u,type:r,"aria-describedby":f}),_.createElement(oC,{dataAttr:"data-amplify-sign-up-errors",errors:i,id:c}))}function Ps({includePassword:t}={}){const{fields:e}=xt(({route:u})=>[u]),{selectedAuthMethod:n,preferredChallenge:r}=xt(u=>[u.selectedAuthMethod,u.preferredChallenge]),a=n??r,s=t??(!a||a==="PASSWORD"),i=_.useRef(e.map((u,c)=>(u.name==="password"||u.name==="confirm_password")&&!s?_.createElement(B8,{key:c,...u,isRequired:!1}):_.createElement(B8,{key:c,...u})).filter(Boolean)).current;return _.createElement(_.Fragment,null,i)}function Vr({children:t,className:e,variation:n="default"}){xt(({route:s})=>[s]);const{components:{Header:r,Footer:a}}=da();return F.createElement(qe,{className:e,"data-amplify-authenticator":"","data-variation":n},F.createElement(qe,{"data-amplify-container":""},F.createElement(r,null),F.createElement(qe,{"data-amplify-router":"","data-amplify-router-content":void 0},t),F.createElement(a,null)))}const{getDeliveryMessageText:Xpe,getDeliveryMethodText:Qpe,getConfirmingText:Jpe,getConfirmText:eme,getResendCodeText:tme}=$n;function Xl({className:t,variation:e}){const{isPending:n,resendCode:r,codeDeliveryDetails:a}=xt(f=>[f.isPending,f.resendCode,f.codeDeliveryDetails]),{handleChange:s,handleSubmit:i}=fa(),{components:{ConfirmSignUp:{Header:u=Xl.Header,Footer:c=Xl.Footer}}}=da();return F.createElement(Vr,{className:t,variation:e},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmsignup":"",method:"post",onChange:s,onSubmit:i},F.createElement(Be,{as:"fieldset",direction:"column",isDisabled:n},F.createElement(u,null),F.createElement(Be,{direction:"column"},F.createElement(Ia,{className:"amplify-authenticator__subtitle"},Xpe(a)),F.createElement(Ps,null),F.createElement(Kr,null),F.createElement(cn,{variation:"primary",isDisabled:n,type:"submit",loadingText:Jpe(),isLoading:n},eme()),F.createElement(cn,{onClick:r,type:"button"},tme())),F.createElement(c,null))))}const nme=()=>{const{codeDeliveryDetails:t}=xt(e=>[e.codeDeliveryDetails]);return F.createElement(Rr,{level:4},Qpe(t))};Xl.Header=nme;Xl.Footer=function(){return null};const{getChangePasswordText:eF,getChangingText:rme,getBackToSignInText:ame}=$n,Xa=({className:t,variation:e})=>{const{isPending:n,toSignIn:r}=xt(h=>[h.isPending,h.toSignIn]),{handleBlur:a,handleChange:s,handleSubmit:i}=fa(),{components:{ForceNewPassword:{FormFields:u=Xa.FormFields,Header:c=Xa.Header,Footer:f=Xa.Footer}}}=da();return F.createElement(Vr,{className:t,variation:e},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-forcenewpassword":"",method:"post",onChange:s,onSubmit:i,onBlur:a},F.createElement(Be,{as:"fieldset",direction:"column",isDisabled:n},F.createElement(c,null),F.createElement(u,null),F.createElement(Kr,null),F.createElement(cn,{isDisabled:n,type:"submit",variation:"primary",isLoading:n,loadingText:rme()},eF()),F.createElement(cn,{onClick:r,type:"button",variation:"link",size:"small"},ame()),F.createElement(f,null))))};Xa.FormFields=function(){return F.createElement(Ps,null)};Xa.Header=function(){return F.createElement(Rr,{level:4},eF())};Xa.Footer=function(){return null};var mc={},iC,H8;function sme(){return H8||(H8=1,iC=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),iC}var lC={},bi={},q8;function pu(){if(q8)return bi;q8=1;let t;const e=[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 bi.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},bi.getSymbolTotalCodewords=function(r){return e[r]},bi.getBCHDigit=function(n){let r=0;for(;n!==0;)r++,n>>>=1;return r},bi.setToSJISFunction=function(r){if(typeof r!="function")throw new Error('"toSJISFunc" is not a valid function.');t=r},bi.isKanjiModeEnabled=function(){return typeof t<"u"},bi.toSJIS=function(r){return t(r)},bi}var uC={},W8;function mA(){return W8||(W8=1,(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+n)}}t.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},t.from=function(r,a){if(t.isValid(r))return r;try{return e(r)}catch{return a}}})(uC)),uC}var cC,V8;function ome(){if(V8)return cC;V8=1;function t(){this.buffer=[],this.length=0}return t.prototype={get:function(e){const n=Math.floor(e/8);return(this.buffer[n]>>>7-e%8&1)===1},put:function(e,n){for(let r=0;r<n;r++)this.putBit((e>>>n-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),e&&(this.buffer[n]|=128>>>this.length%8),this.length++}},cC=t,cC}var dC,G8;function ime(){if(G8)return dC;G8=1;function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}return t.prototype.set=function(e,n,r,a){const s=e*this.size+n;this.data[s]=r,a&&(this.reservedBit[s]=!0)},t.prototype.get=function(e,n){return this.data[e*this.size+n]},t.prototype.xor=function(e,n,r){this.data[e*this.size+n]^=r},t.prototype.isReserved=function(e,n){return this.reservedBit[e*this.size+n]},dC=t,dC}var fC={},K8;function lme(){return K8||(K8=1,(function(t){const e=pu().getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const a=Math.floor(r/7)+2,s=e(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()},t.getPositions=function(r){const a=[],s=t.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}})(fC)),fC}var hC={},Y8;function ume(){if(Y8)return hC;Y8=1;const t=pu().getSymbolSize,e=7;return hC.getPositions=function(r){const a=t(r);return[[0,0],[a-e,0],[0,a-e]]},hC}var pC={},Z8;function cme(){return Z8||(Z8=1,(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(a){return a!=null&&a!==""&&!isNaN(a)&&a>=0&&a<=7},t.from=function(a){return t.isValid(a)?parseInt(a,10):void 0},t.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+=e.N1+(u-5)),f=y,u=1),y=a.get(g,m),y===h?c++:(c>=5&&(i+=e.N1+(c-5)),h=y,c=1)}u>=5&&(i+=e.N1+(u-5)),c>=5&&(i+=e.N1+(c-5))}return i},t.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*e.N2},t.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*e.N3},t.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)*e.N4};function n(r,a,s){switch(r){case t.Patterns.PATTERN000:return(a+s)%2===0;case t.Patterns.PATTERN001:return a%2===0;case t.Patterns.PATTERN010:return s%3===0;case t.Patterns.PATTERN011:return(a+s)%3===0;case t.Patterns.PATTERN100:return(Math.floor(a/2)+Math.floor(s/3))%2===0;case t.Patterns.PATTERN101:return a*s%2+a*s%3===0;case t.Patterns.PATTERN110:return(a*s%2+a*s%3)%2===0;case t.Patterns.PATTERN111:return(a*s%3+(a+s)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}t.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))},t.getBestMask=function(a,s){const i=Object.keys(t.Patterns).length;let u=0,c=1/0;for(let f=0;f<i;f++){s(f),t.applyMask(f,a);const h=t.getPenaltyN1(a)+t.getPenaltyN2(a)+t.getPenaltyN3(a)+t.getPenaltyN4(a);t.applyMask(f,a),h<c&&(c=h,u=f)}return u}})(pC)),pC}var gg={},X8;function tF(){if(X8)return gg;X8=1;const t=mA(),e=[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 gg.getBlocksCount=function(a,s){switch(s){case t.L:return e[(a-1)*4+0];case t.M:return e[(a-1)*4+1];case t.Q:return e[(a-1)*4+2];case t.H:return e[(a-1)*4+3];default:return}},gg.getTotalCodewordsCount=function(a,s){switch(s){case t.L:return n[(a-1)*4+0];case t.M:return n[(a-1)*4+1];case t.Q:return n[(a-1)*4+2];case t.H:return n[(a-1)*4+3];default:return}},gg}var mC={},qf={},Q8;function dme(){if(Q8)return qf;Q8=1;const t=new Uint8Array(512),e=new Uint8Array(256);return(function(){let r=1;for(let a=0;a<255;a++)t[a]=r,e[r]=a,r<<=1,r&256&&(r^=285);for(let a=255;a<512;a++)t[a]=t[a-255]})(),qf.log=function(r){if(r<1)throw new Error("log("+r+")");return e[r]},qf.exp=function(r){return t[r]},qf.mul=function(r,a){return r===0||a===0?0:t[e[r]+e[a]]},qf}var J8;function fme(){return J8||(J8=1,(function(t){const e=dme();t.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]^=e.mul(r[i],a[u]);return s},t.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]^=e.mul(a[c],i);let u=0;for(;u<s.length&&s[u]===0;)u++;s=s.slice(u)}return s},t.generateECPolynomial=function(r){let a=new Uint8Array([1]);for(let s=0;s<r;s++)a=t.mul(a,new Uint8Array([1,e.exp(s)]));return a}})(mC)),mC}var gC,e7;function hme(){if(e7)return gC;e7=1;const t=fme();function e(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}return e.prototype.initialize=function(r){this.degree=r,this.genPoly=t.generateECPolynomial(this.degree)},e.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=t.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},gC=e,gC}var vC={},yC={},bC={},t7;function nF(){return t7||(t7=1,bC.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),bC}var gs={},n7;function rF(){if(n7)return gs;n7=1;const t="[0-9]+",e="[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
+ ]))+`;gs.KANJI=new RegExp(n,"g"),gs.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),gs.BYTE=new RegExp(r,"g"),gs.NUMERIC=new RegExp(t,"g"),gs.ALPHANUMERIC=new RegExp(e,"g");const a=new RegExp("^"+n+"$"),s=new RegExp("^"+t+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return gs.testKanji=function(c){return a.test(c)},gs.testNumeric=function(c){return s.test(c)},gs.testAlphanumeric=function(c){return i.test(c)},gs}var r7;function mu(){return r7||(r7=1,(function(t){const e=nF(),n=rF();t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(s,i){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!e.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?s.ccBits[0]:i<27?s.ccBits[1]:s.ccBits[2]},t.getBestModeForData=function(s){return n.testNumeric(s)?t.NUMERIC:n.testAlphanumeric(s)?t.ALPHANUMERIC:n.testKanji(s)?t.KANJI:t.BYTE},t.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},t.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 t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+a)}}t.from=function(s,i){if(t.isValid(s))return s;try{return r(s)}catch{return i}}})(yC)),yC}var a7;function pme(){return a7||(a7=1,(function(t){const e=pu(),n=tF(),r=mA(),a=mu(),s=nF(),i=7973,u=e.getBCHDigit(i);function c(g,y,S){for(let w=1;w<=40;w++)if(y<=t.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)<=t.getCapacity(S,y,a.MIXED))return S}t.from=function(y,S){return s.isValid(y)?parseInt(y,10):S},t.getCapacity=function(y,S,w){if(!s.isValid(y))throw new Error("Invalid QR Code version");typeof w>"u"&&(w=a.BYTE);const x=e.getSymbolTotalCodewords(y),E=n.getTotalCodewordsCount(y,S),A=(x-E)*8;if(w===a.MIXED)return A;const k=A-f(w,y);switch(w){case a.NUMERIC:return Math.floor(k/10*3);case a.ALPHANUMERIC:return Math.floor(k/11*2);case a.KANJI:return Math.floor(k/13);case a.BYTE:default:return Math.floor(k/8)}},t.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)},t.getEncodedBits=function(y){if(!s.isValid(y)||y<7)throw new Error("Invalid QR Code version");let S=y<<12;for(;e.getBCHDigit(S)-u>=0;)S^=i<<e.getBCHDigit(S)-u;return y<<12|S}})(vC)),vC}var SC={},s7;function mme(){if(s7)return SC;s7=1;const t=pu(),e=1335,n=21522,r=t.getBCHDigit(e);return SC.getEncodedBits=function(s,i){const u=s.bit<<3|i;let c=u<<10;for(;t.getBCHDigit(c)-r>=0;)c^=e<<t.getBCHDigit(c)-r;return(u<<10|c)^n},SC}var wC={},xC,o7;function gme(){if(o7)return xC;o7=1;const t=mu();function e(n){this.mode=t.NUMERIC,this.data=n.toString()}return e.getBitsLength=function(r){return 10*Math.floor(r/3)+(r%3?r%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.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))},xC=e,xC}var CC,i7;function vme(){if(i7)return CC;i7=1;const t=mu(),e=["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=t.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=e.indexOf(this.data[s])*45;i+=e.indexOf(this.data[s+1]),a.put(i,11)}this.data.length%2&&a.put(e.indexOf(this.data[s]),6)},CC=n,CC}var EC,l7;function yme(){return l7||(l7=1,EC=function(e){for(var n=[],r=e.length,a=0;a<r;a++){var s=e.charCodeAt(a);if(s>=55296&&s<=56319&&r>a+1){var i=e.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}),EC}var _C,u7;function bme(){if(u7)return _C;u7=1;const t=yme(),e=mu();function n(r){this.mode=e.BYTE,this.data=new Uint8Array(t(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)},_C=n,_C}var kC,c7;function Sme(){if(c7)return kC;c7=1;const t=mu(),e=pu();function n(r){this.mode=t.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=e.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)}},kC=n,kC}var AC={exports:{}},d7;function wme(){return d7||(d7=1,(function(t){var e={single_source_shortest_paths:function(n,r,a){var s={},i={};i[r]=0;var u=e.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 E=["Could not find a path from ",r," to ",a,"."].join("");throw new Error(E)}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=e.single_source_shortest_paths(n,r,a);return e.extract_shortest_path_from_predecessor_list(s,a)},PriorityQueue:{make:function(n){var r=e.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}}};t.exports=e})(AC)),AC.exports}var f7;function xme(){return f7||(f7=1,(function(t){const e=mu(),n=gme(),r=vme(),a=bme(),s=Sme(),i=rF(),u=pu(),c=wme();function f(E){return unescape(encodeURIComponent(E)).length}function h(E,A,k){const I=[];let N;for(;(N=E.exec(k))!==null;)I.push({data:N[0],index:N.index,mode:A,length:N[0].length});return I}function m(E){const A=h(i.NUMERIC,e.NUMERIC,E),k=h(i.ALPHANUMERIC,e.ALPHANUMERIC,E);let I,N;return u.isKanjiModeEnabled()?(I=h(i.BYTE,e.BYTE,E),N=h(i.KANJI,e.KANJI,E)):(I=h(i.BYTE_KANJI,e.BYTE,E),N=[]),A.concat(k,I,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(E,A){switch(A){case e.NUMERIC:return n.getBitsLength(E);case e.ALPHANUMERIC:return r.getBitsLength(E);case e.KANJI:return s.getBitsLength(E);case e.BYTE:return a.getBitsLength(E)}}function y(E){return E.reduce(function(A,k){const I=A.length-1>=0?A[A.length-1]:null;return I&&I.mode===k.mode?(A[A.length-1].data+=k.data,A):(A.push(k),A)},[])}function S(E){const A=[];for(let k=0;k<E.length;k++){const I=E[k];switch(I.mode){case e.NUMERIC:A.push([I,{data:I.data,mode:e.ALPHANUMERIC,length:I.length},{data:I.data,mode:e.BYTE,length:I.length}]);break;case e.ALPHANUMERIC:A.push([I,{data:I.data,mode:e.BYTE,length:I.length}]);break;case e.KANJI:A.push([I,{data:I.data,mode:e.BYTE,length:f(I.data)}]);break;case e.BYTE:A.push([{data:I.data,mode:e.BYTE,length:f(I.data)}])}}return A}function w(E,A){const k={},I={start:{}};let N=["start"];for(let O=0;O<E.length;O++){const T=E[O],P=[];for(let D=0;D<T.length;D++){const q=T[D],U=""+O+D;P.push(U),k[U]={node:q,lastCount:0},I[U]={};for(let j=0;j<N.length;j++){const $=N[j];k[$]&&k[$].node.mode===q.mode?(I[$][U]=g(k[$].lastCount+q.length,q.mode)-g(k[$].lastCount,q.mode),k[$].lastCount+=q.length):(k[$]&&(k[$].lastCount=q.length),I[$][U]=g(q.length,q.mode)+4+e.getCharCountIndicator(q.mode,A))}}N=P}for(let O=0;O<N.length;O++)I[N[O]].end=0;return{map:I,table:k}}function x(E,A){let k;const I=e.getBestModeForData(E);if(k=e.from(A,I),k!==e.BYTE&&k.bit<I.bit)throw new Error('"'+E+'" cannot be encoded with mode '+e.toString(k)+`.
212
+ Suggested mode is: `+e.toString(I));switch(k===e.KANJI&&!u.isKanjiModeEnabled()&&(k=e.BYTE),k){case e.NUMERIC:return new n(E);case e.ALPHANUMERIC:return new r(E);case e.KANJI:return new s(E);case e.BYTE:return new a(E)}}t.fromArray=function(A){return A.reduce(function(k,I){return typeof I=="string"?k.push(x(I,null)):I.data&&k.push(x(I.data,I.mode)),k},[])},t.fromString=function(A,k){const I=m(A,u.isKanjiModeEnabled()),N=S(I),O=w(N,k),T=c.find_path(O.map,"start","end"),P=[];for(let D=1;D<T.length-1;D++)P.push(O.table[T[D]].node);return t.fromArray(y(P))},t.rawSplit=function(A){return t.fromArray(m(A,u.isKanjiModeEnabled()))}})(wC)),wC}var h7;function Cme(){if(h7)return lC;h7=1;const t=pu(),e=mA(),n=ome(),r=ime(),a=lme(),s=ume(),i=cme(),u=tF(),c=hme(),f=pme(),h=mme(),m=mu(),g=xme();function y(O,T){const P=O.size,D=s.getPositions(T);for(let q=0;q<D.length;q++){const U=D[q][0],j=D[q][1];for(let $=-1;$<=7;$++)if(!(U+$<=-1||P<=U+$))for(let Z=-1;Z<=7;Z++)j+Z<=-1||P<=j+Z||($>=0&&$<=6&&(Z===0||Z===6)||Z>=0&&Z<=6&&($===0||$===6)||$>=2&&$<=4&&Z>=2&&Z<=4?O.set(U+$,j+Z,!0,!0):O.set(U+$,j+Z,!1,!0))}}function S(O){const T=O.size;for(let P=8;P<T-8;P++){const D=P%2===0;O.set(P,6,D,!0),O.set(6,P,D,!0)}}function w(O,T){const P=a.getPositions(T);for(let D=0;D<P.length;D++){const q=P[D][0],U=P[D][1];for(let j=-2;j<=2;j++)for(let $=-2;$<=2;$++)j===-2||j===2||$===-2||$===2||j===0&&$===0?O.set(q+j,U+$,!0,!0):O.set(q+j,U+$,!1,!0)}}function x(O,T){const P=O.size,D=f.getEncodedBits(T);let q,U,j;for(let $=0;$<18;$++)q=Math.floor($/3),U=$%3+P-8-3,j=(D>>$&1)===1,O.set(q,U,j,!0),O.set(U,q,j,!0)}function E(O,T,P){const D=O.size,q=h.getEncodedBits(T,P);let U,j;for(U=0;U<15;U++)j=(q>>U&1)===1,U<6?O.set(U,8,j,!0):U<8?O.set(U+1,8,j,!0):O.set(D-15+U,8,j,!0),U<8?O.set(8,D-U-1,j,!0):U<9?O.set(8,15-U-1+1,j,!0):O.set(8,15-U-1,j,!0);O.set(D-8,8,1,!0)}function A(O,T){const P=O.size;let D=-1,q=P-1,U=7,j=0;for(let $=P-1;$>0;$-=2)for($===6&&$--;;){for(let Z=0;Z<2;Z++)if(!O.isReserved(q,$-Z)){let ne=!1;j<T.length&&(ne=(T[j]>>>U&1)===1),O.set(q,$-Z,ne),U--,U===-1&&(j++,U=7)}if(q+=D,q<0||P<=q){q-=D,D=-D;break}}}function k(O,T,P){const D=new n;P.forEach(function(Z){D.put(Z.mode.bit,4),D.put(Z.getLength(),m.getCharCountIndicator(Z.mode,O)),Z.write(D)});const q=t.getSymbolTotalCodewords(O),U=u.getTotalCodewordsCount(O,T),j=(q-U)*8;for(D.getLengthInBits()+4<=j&&D.put(0,4);D.getLengthInBits()%8!==0;)D.putBit(0);const $=(j-D.getLengthInBits())/8;for(let Z=0;Z<$;Z++)D.put(Z%2?17:236,8);return I(D,O,T)}function I(O,T,P){const D=t.getSymbolTotalCodewords(T),q=u.getTotalCodewordsCount(T,P),U=D-q,j=u.getBlocksCount(T,P),$=D%j,Z=j-$,ne=Math.floor(D/j),H=Math.floor(U/j),X=H+1,ae=ne-H,he=new c(ae);let xe=0;const z=new Array(j),V=new Array(j);let K=0;const J=new Uint8Array(O.buffer);for(let be=0;be<j;be++){const Qe=be<Z?H:X;z[be]=J.slice(xe,xe+Qe),V[be]=he.encode(z[be]),xe+=Qe,K=Math.max(K,Qe)}const G=new Uint8Array(D);let ue=0,oe,ce;for(oe=0;oe<K;oe++)for(ce=0;ce<j;ce++)oe<z[ce].length&&(G[ue++]=z[ce][oe]);for(oe=0;oe<ae;oe++)for(ce=0;ce<j;ce++)G[ue++]=V[ce][oe];return G}function N(O,T,P,D){let q;if(Array.isArray(O))q=g.fromArray(O);else if(typeof O=="string"){let ne=T;if(!ne){const H=g.rawSplit(O);ne=f.getBestVersionForData(H,P)}q=g.fromString(O,ne||40)}else throw new Error("Invalid data");const U=f.getBestVersionForData(q,P);if(!U)throw new Error("The amount of data is too big to be stored in a QR Code");if(!T)T=U;else if(T<U)throw new Error(`
213
+ The chosen QR Code version cannot contain this amount of data.
214
+ Minimum version required to store current data is: `+U+`.
215
+ `);const j=k(T,P,q),$=t.getSymbolSize(T),Z=new r($);return y(Z,T),S(Z),w(Z,T),E(Z,P,0),T>=7&&x(Z,T),A(Z,j),isNaN(D)&&(D=i.getBestMask(Z,E.bind(null,Z,P))),i.applyMask(D,Z),E(Z,P,D),{modules:Z,version:T,errorCorrectionLevel:P,maskPattern:D,segments:q}}return lC.create=function(T,P){if(typeof T>"u"||T==="")throw new Error("No input text");let D=e.M,q,U;return typeof P<"u"&&(D=e.from(P.errorCorrectionLevel,e.M),q=f.from(P.version),U=i.from(P.maskPattern),P.toSJISFunc&&t.setToSJISFunction(P.toSJISFunc)),N(T,q,D,U)},lC}var RC={},IC={},p7;function aF(){return p7||(p7=1,(function(t){function e(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("")}}t.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:e(r.color.dark||"#000000ff"),light:e(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},t.getScale=function(r,a){return a.width&&a.width>=r+a.margin*2?a.width/(r+a.margin*2):a.scale},t.getImageWidth=function(r,a){const s=t.getScale(r,a);return Math.floor((r+a.margin*2)*s)},t.qrToImageData=function(r,a,s){const i=a.modules.size,u=a.modules.data,c=t.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),E=Math.floor((y-h)/c);w=m[u[x*i+E]?1:0]}r[S++]=w.r,r[S++]=w.g,r[S++]=w.b,r[S]=w.a}}})(IC)),IC}var m7;function Eme(){return m7||(m7=1,(function(t){const e=aF();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")}}t.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=e.getOptions(c);const h=e.getImageWidth(s.modules.size,c),m=f.getContext("2d"),g=m.createImageData(h,h);return e.qrToImageData(g.data,s,c),n(m,f,h),m.putImageData(g,0,0),f},t.renderToDataURL=function(s,i,u){let c=u;typeof c>"u"&&(!i||!i.getContext)&&(c=i,i=void 0),c||(c={});const f=t.render(s,i,c),h=c.type||"image/png",m=c.rendererOpts||{};return f.toDataURL(h,m.quality)}})(RC)),RC}var TC={},g7;function _me(){if(g7)return TC;g7=1;const t=aF();function e(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 TC.render=function(s,i,u){const c=t.getOptions(i),f=s.modules.size,h=s.modules.data,m=f+c.margin*2,g=c.color.light.a?"<path "+e(c.color.light,"fill")+' d="M0 0h'+m+"v"+m+'H0z"/>':"",y="<path "+e(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},TC}var v7;function kme(){if(v7)return mc;v7=1;const t=sme(),e=Cme(),n=Eme(),r=_me();function a(s,i,u,c,f){const h=[].slice.call(arguments,1),m=h.length,g=typeof h[m-1]=="function";if(!g&&!t())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=e.create(u,c);y(s(w,i,c))}catch(w){S(w)}})}try{const y=e.create(u,c);f(null,s(y,i,c))}catch(y){f(y)}}return mc.create=e.create,mc.toCanvas=a.bind(null,n.render),mc.toDataURL=a.bind(null,n.renderToDataURL),mc.toString=a.bind(null,function(s,i,u){return r.render(s,u)}),mc}var Ame=kme();const Rme=yd(Ame),Ime=t=>t==="signIn"||t==="signUp",gA=t=>!!t&&(t==="EMAIL_OTP"||t==="SMS_MFA"),{getConfirmText:Tme,getConfirmingText:Ome,getBackToSignInText:Nme,getResendCodeText:Mme}=$n,Fv=()=>{const{isPending:t,toSignIn:e,challengeName:n,resendCode:r,selectedAuthMethod:a,availableAuthMethods:s}=xt(c=>[c.isPending,c.toSignIn,c.challengeName,c.resendCode,c.selectedAuthMethod,c.availableAuthMethods]),i=!!a&&a!=="PASSWORD"||!!s?.some(c=>c!=="PASSWORD"),u=gA(n)&&i&&r;return F.createElement(Be,{direction:"column"},F.createElement(cn,{isDisabled:t,type:"submit",variation:"primary",isLoading:t,loadingText:Ome()},Tme()),u&&F.createElement(cn,{onClick:r,type:"button"},Mme()),F.createElement(cn,{onClick:e,type:"button",variation:"link",size:"small"},Nme()))},Pme=new lr("SetupTotp-logger"),{getSetupTotpText:Lme,getCopiedText:Dme,getLoadingText:Ume}=$n,Hi=({className:t,variation:e})=>{const{totpSecretCode:n,isPending:r,username:a,QRFields:s}=xt(I=>[I.isPending,I.totpSecretCode,I.username]),{handleChange:i,handleSubmit:u}=fa(),{components:{SetupTotp:{Header:c=Hi.Header,Footer:f=Hi.Footer}}}=da(),[h,m]=_.useState(!0),[g,y]=_.useState(),[S,w]=_.useState("COPY"),{totpIssuer:x="AWSCognito",totpUsername:E=a}=s??{},A=_.useCallback(async()=>{try{const I=Ale(x,E,n),N=await Rme.toDataURL(I);y(N)}catch(I){Pme.error(I)}finally{m(!1)}},[x,E,n]);_.useEffect(()=>{g||A()},[A,g]);const k=()=>{navigator.clipboard.writeText(n),w(Dme())};return _.createElement(Vr,{className:t,variation:e},_.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-setup-totp":"",method:"post",onChange:i,onSubmit:u},_.createElement(Be,{as:"fieldset",direction:"column",isDisabled:r},_.createElement(c,null),_.createElement(Be,{direction:"column"},h?_.createElement("p",null,Ume(),"…"):_.createElement("img",{"data-amplify-qrcode":!0,src:g,alt:"qr code",width:"228",height:"228"}),_.createElement(Be,{"data-amplify-copy":!0},_.createElement("div",null,n),_.createElement(Be,{"data-amplify-copy-svg":!0,onClick:k},_.createElement("div",{"data-amplify-copy-tooltip":!0},S),_.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},_.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"})))),_.createElement(Ps,null),_.createElement(Kr,null)),_.createElement(Fv,null),_.createElement(f,null))))};Hi.Header=function(){return _.createElement(Rr,{level:3},Lme())};Hi.Footer=function(){return null};const{getSubmitText:jme,getSubmittingText:zme}=$n,$v=t=>{const{cancelButtonSendType:e,cancelButtonText:n,submitButtonText:r}=t,{isPending:a,resendCode:s,skipVerification:i,toSignIn:u}=xt(m=>[m.isPending]),c=()=>{switch(e){case"SKIP":i();break;case"RESEND":s();break;case"SIGN_IN":u();break;default:return}},f=a?F.createElement(F.Fragment,null,zme(),"…"):F.createElement(F.Fragment,null,jme()),h=r??f;return F.createElement(Be,{direction:"column"},F.createElement(cn,{variation:"primary",isDisabled:a,type:"submit"},h),F.createElement(Be,{direction:"column",alignItems:"center"},F.createElement(cn,{onClick:c,type:"button",variation:"link",size:"small"},n)))},Fme=()=>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"})),$me=()=>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"})),Bme=()=>F.createElement(jz,{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"}),Hme=()=>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"})),vg=t=>{const{icon:e,provider:n,text:r}=t,{toFederatedSignIn:a}=xt(),s=u=>{u.preventDefault(),a({provider:n})};let i;return e==="facebook"?i=F.createElement(Bme,null):e==="google"?i=F.createElement($me,null):e==="amazon"?i=F.createElement(Hme,null):e==="apple"&&(i=F.createElement(Fme,null)),F.createElement(cn,{onClick:s,className:"federated-sign-in-button",gap:"1rem"},i,F.createElement(Ia,{as:"span"},r))},{getSignInWithFederationText:yg,getOrText:qme}=$n;function sF(){const{route:t,socialProviders:e}=xt(({route:n,socialProviders:r})=>[n,r]);return e.length===0?null:F.createElement(Be,{direction:"column",padding:"0 0 1rem 0",className:"federated-sign-in-container"},e.map(n=>{switch(n){case"amazon":return F.createElement(vg,{icon:"amazon",key:n,provider:Lc.Amazon,text:yg(t,n)});case"apple":return F.createElement(vg,{icon:"apple",key:n,provider:Lc.Apple,text:yg(t,n)});case"facebook":return F.createElement(vg,{icon:"facebook",key:n,provider:Lc.Facebook,text:yg(t,n)});case"google":return F.createElement(vg,{icon:"google",key:n,provider:Lc.Google,text:yg(t,n)});default:console.error(`Authenticator does not support ${n}. Please open an issue: https://github.com/aws-amplify/amplify-ui/issues/choose`)}}),F.createElement(iA,{size:"small",label:qme()}))}const{getSignInText:bg,getSigningInText:Wme,getForgotPasswordText:Vme,getSignInWithEmailText:Gme,getSignInWithSmsText:Kme,getSignInWithPasskeyText:Yme,getOtherSignInOptionsText:Zme,getEnterUsernameFirstText:Xme}=$n;function _o(){const{isPending:t,availableAuthMethods:e,preferredChallenge:n,toShowAuthMethods:r}=xt(E=>[E.isPending,E.availableAuthMethods,E.preferredChallenge,E.toShowAuthMethods]),{handleChange:a,handleSubmit:s}=fa(),[i,u]=F.useState(""),{components:{SignIn:{Header:c=_o.Header,Footer:f=_o.Footer}}}=da(),m=e&&e.length>1&&n,g=i.trim().length>0,y=F.useCallback(E=>{const{name:A,value:k}=E.target;A==="username"&&typeof k=="string"&&u(k),a(E)},[a]),S=()=>{if(!n)return bg();switch(n){case"EMAIL_OTP":return Gme();case"SMS_OTP":return Kme();case"WEB_AUTHN":return Yme();default:return bg()}},w=E=>{E.preventDefault(),s(E)},x=E=>{E.preventDefault(),r()};return F.createElement(qe,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(sF,null),F.createElement(Be,{direction:"column"},F.createElement(Be,{as:"fieldset",direction:"column",isDisabled:t},F.createElement(jv,null,F.createElement("legend",null,bg())),F.createElement(Ps,null)),F.createElement(Kr,null),F.createElement(cn,{isDisabled:t,type:"submit",variation:"primary",isLoading:t,loadingText:Wme()},m?S():bg()),m&&F.createElement(cn,{onClick:x,size:"small",variation:"link",isDisabled:t||!g,title:g?void 0:Xme()},Zme()),F.createElement(f,null))))}const Qme=()=>{const{toForgotPassword:t}=xt(e=>[e.toForgotPassword]);return F.createElement(qe,{"data-amplify-footer":""},F.createElement(cn,{onClick:t,size:"small",variation:"link"},Vme()))};_o.Footer=Qme;_o.Header=function(){return null};const{getCreateAccountText:y7,getCreatingAccountText:Jme,getCreateAccountWithEmailText:ege,getCreateAccountWithPasswordText:tge,getCreateAccountWithSmsText:nge,getOrText:rge}=$n;function Qa(){const{hasValidationErrors:t,isPending:e,availableAuthMethods:n,preferredChallenge:r,selectedAuthMethod:a}=xt(k=>[k.hasValidationErrors,k.isPending,k.availableAuthMethods,k.preferredChallenge,k.selectedAuthMethod]),{handleChange:s,handleBlur:i,handleSubmit:u}=fa(),{components:{SignUp:{Header:c=Qa.Header,FormFields:f=Qa.FormFields,Footer:h=Qa.Footer}}}=da(),m=n?.filter(k=>k!=="WEB_AUTHN"),g=m&&m.length>1,y=r&&r!=="WEB_AUTHN"?r:"PASSWORD",S=m?.filter(k=>k!==y)??[],x=(a??y)!=="PASSWORD",E=k=>{switch(k){case"EMAIL_OTP":return ege();case"SMS_OTP":return nge();case"PASSWORD":return g?tge():y7();default:return y7()}},A=k=>I=>{I.preventDefault();const N=I.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=k,N.requestSubmit()}};return F.createElement(qe,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(sF,null),F.createElement(Be,{as:"fieldset",direction:"column",isDisabled:e},F.createElement(Be,{direction:"column"},F.createElement(f,{includePassword:!x}),F.createElement(Kr,null)),F.createElement(cn,{isDisabled:(!g||S.length==0)&&t||e,isFullWidth:!0,type:"submit",variation:"primary",isLoading:e,loadingText:Jme(),onClick:A(y)},E(y)),g&&S.length>0&&F.createElement(F.Fragment,null,F.createElement(Be,{justifyContent:"center",padding:"medium 0"},rge()),S.map(k=>F.createElement(cn,{key:k,isDisabled:e,isFullWidth:!0,type:"button",variation:"primary",onClick:A(k)},E(k)))),F.createElement(h,null))))}Qa.Header=function(){return null};Qa.FormFields=function(){return F.createElement(Ps,null)};Qa.Footer=function(){return null};const{getSignInTabText:age,getSignUpTabText:sge}=$n,oge=({className:t,hideSignUp:e,variation:n})=>{const{route:r,toSignIn:a,toSignUp:s}=xt(i=>[i.route,i.toSignIn,i.toSignUp]);return F.createElement(Vr,{className:t,variation:n},e?F.createElement(qe,{"data-amplify-router-content":""},r==="signIn"&&F.createElement(_o,null)):F.createElement(Al.Container,{value:r,isLazy:!0,onValueChange:i=>{i!==r&&(i==="signIn"?a():s())}},F.createElement(Al.List,{spacing:"equal",indicatorPosition:"top"},F.createElement(Al.Item,{value:"signIn"},age()),F.createElement(Al.Item,{value:"signUp"},sge())),F.createElement(Al.Panel,{value:"signIn","data-amplify-router-content":""},F.createElement(_o,null)),F.createElement(Al.Panel,{value:"signUp","data-amplify-router-content":""},F.createElement(Qa,null))))},{getAccountRecoveryInfoText:ige,getSkipText:lge}=$n,Ql=({className:t,variation:e})=>{const{isPending:n}=xt(u=>[u.isPending]),{handleChange:r,handleSubmit:a}=fa(),{components:{ConfirmVerifyUser:{Header:s=Ql.Header,Footer:i=Ql.Footer}}}=da();return F.createElement(Vr,{className:t,variation:e},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmverifyuser":"",method:"post",onChange:r,onSubmit:a},F.createElement(Be,{as:"fieldset",direction:"column",isDisabled:n},F.createElement(s,null),F.createElement(Be,{direction:"column"},F.createElement(Ps,null)),F.createElement(Kr,null),F.createElement($v,{cancelButtonText:lge(),cancelButtonSendType:"SKIP"}),F.createElement(i,null))))};Ql.Header=function(){return F.createElement(Rr,{level:3},ige())};Ql.Footer=function(){return null};const{getSkipText:uge,getVerifyText:cge,getVerifyContactText:dge,getAccountRecoveryInfoText:fge}=$n,hge=t=>Object.entries(t).map(([e,n],r)=>{const a=Av[e].label;return F.createElement(uA,{name:"unverifiedAttr",value:e,key:e,defaultChecked:r===0},ye(a),":"," ",_le(a,n))}),Jl=({className:t,variation:e})=>{const{components:{VerifyUser:{Header:n=Jl.Header,Footer:r=Jl.Footer}}}=da(),{isPending:a,unverifiedUserAttributes:s}=xt(({isPending:h,unverifiedUserAttributes:m})=>[h,m]),{handleChange:i,handleSubmit:u}=fa(),c=a?F.createElement(F.Fragment,null,"Verifying…"):F.createElement(F.Fragment,null,cge()),f=F.createElement(cA,{legend:dge(),name:"verify_context",isDisabled:a,legendHidden:!0},hge(s));return F.createElement(Vr,{className:t,variation:e},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-verifyuser":"",method:"post",onChange:i,onSubmit:u},F.createElement(Be,{as:"fieldset",direction:"column",isDisabled:a},F.createElement(n,null),f,F.createElement(Kr,null),F.createElement($v,{cancelButtonText:uge(),cancelButtonSendType:"SKIP",submitButtonText:c}),F.createElement(r,null))))};Jl.Header=function(){return F.createElement(Rr,{level:3},fge())};Jl.Footer=function(){return null};const{getChallengeText:pge,getDeliveryMessageText:mge,getDeliveryMethodText:gge}=$n,eu=({className:t,variation:e})=>{const{isPending:n,challengeName:r,codeDeliveryDetails:a}=xt(h=>[h.isPending,h.challengeName,h.codeDeliveryDetails]),{handleChange:s,handleSubmit:i}=fa(),{components:{ConfirmSignIn:{Header:u=eu.Header,Footer:c=eu.Footer}}}=da(),f=gA(r)&&a;return F.createElement(Vr,{className:t,variation:e},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmsignin":"",method:"post",onChange:s,onSubmit:i},F.createElement(Be,{as:"fieldset",direction:"column",isDisabled:n},F.createElement(u,null),F.createElement(Be,{direction:"column"},f&&F.createElement(Ia,{className:"amplify-authenticator__subtitle"},mge(a)),F.createElement(Ps,null),F.createElement(Kr,null)),F.createElement(Fv,null),F.createElement(c,null))))};function vge(){const{challengeName:t,codeDeliveryDetails:e}=xt(({challengeName:r,codeDeliveryDetails:a})=>[r,a]),n=gA(t)&&e;return F.createElement(F.Fragment,null,F.createElement(Rr,{level:3},pge(t)),n&&F.createElement(Rr,{level:5},gge(e)))}eu.Header=vge;eu.Footer=function(){return null};const{getResendCodeText:yge,getResetYourPasswordText:bge}=$n,tu=({className:t,variation:e})=>{const{isPending:n}=xt(c=>[c.isPending]),{handleBlur:r,handleChange:a,handleSubmit:s}=fa(),{components:{ConfirmResetPassword:{Header:i=tu.Header,Footer:u=tu.Footer}}}=da();return F.createElement(Vr,{className:t,variation:e},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmresetpassword":"",method:"post",onSubmit:s,onChange:a,onBlur:r},F.createElement(Be,{as:"fieldset",direction:"column",isDisabled:n},F.createElement(i,null),F.createElement(Be,{direction:"column"},F.createElement(Ps,null)),F.createElement(Kr,null),F.createElement($v,{cancelButtonSendType:"RESEND",cancelButtonText:yge()}),F.createElement(u,null))))};tu.Header=function(){const e=bge();return F.createElement(Rr,{level:3},e)};tu.Footer=function(){return null};const{getBackToSignInText:Sge,getSendingText:wge,getSendCodeText:xge,getResetYourPasswordText:Cge}=$n,qi=({className:t,variation:e})=>{const{isPending:n}=xt(u=>[u.isPending]),{handleChange:r,handleSubmit:a}=fa(),{components:{ForgotPassword:{Header:s=qi.Header,Footer:i=qi.Footer}}}=da();return F.createElement(Vr,{className:t,variation:e},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-forgotpassword":"",method:"post",onChange:r,onSubmit:a},F.createElement(Be,{as:"fieldset",direction:"column",isDisabled:n},F.createElement(s,null),F.createElement(Be,{direction:"column"},F.createElement(Ps,null)),F.createElement(Kr,null),F.createElement($v,{cancelButtonText:Sge(),cancelButtonSendType:"SIGN_IN",submitButtonText:n?F.createElement(F.Fragment,null,wge(),"…"):F.createElement(F.Fragment,null,xge())}),F.createElement(i,null))))};qi.Header=function(){return F.createElement(Rr,{level:3},Cge())};qi.Footer=function(){return null};const{getMfaTypeLabelByValue:Ege,getSelectMfaTypeByChallengeName:_ge,getSelectMfaTypeText:kge}=$n,Wi=({className:t,variation:e})=>{const{isPending:n,allowedMfaTypes:r=[]}=xt(c=>[c.isPending,c.allowedMfaTypes]),{handleChange:a,handleSubmit:s}=fa(),{components:{SelectMfaType:{Header:i=Wi.Header,Footer:u=Wi.Footer}}}=da();return _.createElement(Vr,{className:t,variation:e},_.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-select-mfa-type":"",method:"post",onChange:a,onSubmit:s},_.createElement(Be,{as:"fieldset",direction:"column",isDisabled:n},_.createElement(i,null),_.createElement(Be,{direction:"column"},_.createElement(cA,{name:"mfa_type",legend:kge(),legendHidden:!0,isDisabled:n,isRequired:!0},r.map((c,f)=>_.createElement(uA,{name:"mfa_type",key:c,value:c,defaultChecked:f===0},Ege(c)))),_.createElement(Kr,null)),_.createElement(Fv,null),_.createElement(u,null))))};Wi.Header=function(){const{challengeName:e}=xt(n=>[n.challengeName]);return _.createElement(Rr,{level:3},_ge(e))};Wi.Footer=function(){return null};const{getSetupEmailText:Age}=$n,Vi=({className:t,variation:e})=>{const{isPending:n}=xt(u=>[u.isPending]),{handleChange:r,handleSubmit:a}=fa(),{components:{SetupEmail:{Header:s=Vi.Header,Footer:i=Vi.Footer}}}=da();return _.createElement(Vr,{className:t,variation:e},_.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-setup-email":"",method:"post",onChange:r,onSubmit:a},_.createElement(Be,{as:"fieldset",direction:"column",isDisabled:n},_.createElement(s,null),_.createElement(Be,{direction:"column"},_.createElement(Ps,null),_.createElement(Kr,null)),_.createElement(Fv,null),_.createElement(i,null))))};Vi.Header=function(){return _.createElement(Rr,{level:3},Age())};Vi.Footer=function(){return null};const{getSignInWithPasswordText:S3,getSignInWithEmailText:Rge,getSignInWithSmsText:Ige,getSignInWithPasskeyText:Tge,getSigningInText:Oge,getBackToSignInText:Nge,getOrText:Mge,getUsernameLabelByLoginMechanism:Pge}=$n,Lge=t=>{switch(t){case"EMAIL_OTP":return Rge();case"SMS_OTP":return Ige();case"WEB_AUTHN":return Tge();case"PASSWORD":return S3();default:return S3()}},Dge=({className:t,variation:e})=>{const{isPending:n,username:r,availableAuthMethods:a,toSignIn:s,selectAuthMethod:i,loginMechanism:u}=xt(w=>[w.isPending,w.username,w.availableAuthMethods,w.toSignIn,w.selectAuthMethod,w.loginMechanism]),{handleChange:c,handleSubmit:f}=fa(),h=a??[],m=h.includes("PASSWORD"),g=h.filter(w=>w!=="PASSWORD"),y=w=>{i({method:w})},S=Pge(u);return F.createElement(Vr,{className:t,variation:e},F.createElement("form",{"data-amplify-form":!0,"data-amplify-authenticator-signinselect":!0,method:"post",onSubmit:f,onChange:c},F.createElement(Be,{direction:"column"},F.createElement(Ap,{label:S,name:"username",value:r,isReadOnly:!0,isDisabled:!0}),m&&F.createElement(F.Fragment,null,F.createElement(lA,{label:"Password",name:"password",autoComplete:"current-password",isDisabled:n}),F.createElement(cn,{isDisabled:n,type:"submit",variation:"primary",isFullWidth:!0,isLoading:n,loadingText:Oge()},S3())),m&&g.length>0&&F.createElement(iA,{label:Mge()}),g.length>0&&F.createElement(Be,{direction:"column",gap:"0.5rem"},g.map(w=>F.createElement(cn,{key:w,variation:"primary",isFullWidth:!0,isDisabled:n,onClick:()=>y(w)},Lge(w)))),F.createElement(Kr,null),F.createElement(cn,{onClick:s,size:"small",variation:"link",isDisabled:n},Nge()))))},Uge=t=>{const{className:e,...n}=t;return _.createElement(qe,{as:"span",width:"1em",height:"1em",className:He(fe.Icon,e),...n},_.createElement("svg",{width:"54",height:"54",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_.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"})))},jge=t=>{const{className:e,...n}=t;return _.createElement(qe,{as:"span",width:"1em",height:"1em",className:He(fe.Icon,e),...n},_.createElement("svg",{width:"195",height:"128",viewBox:"0 0 195 128",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_.createElement("circle",{cx:"60",cy:"36",r:"31",stroke:"#00404D",strokeWidth:"2"}),_.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"}),_.createElement("circle",{cx:"122",cy:"26",r:"25",fill:"#E9F9FC",stroke:"#00404D",strokeWidth:"2"}),_.createElement("mask",{id:"path-4-inside-1_4178_10171",fill:"white"},_.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"})),_.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)"}),_.createElement("circle",{cx:"167.5",cy:"49.5",r:"19.5",fill:"#E9F9FC",stroke:"#00404D",strokeWidth:"2"}),_.createElement("path",{d:"M167.89 43.65L161.26 54.18H167.89",stroke:"#00404D",strokeWidth:"2"}),_.createElement("path",{d:"M167.5 60.42C173.316 60.42 178.03 55.7056 178.03 49.89V48.72",stroke:"#00404D",strokeWidth:"2"}),_.createElement("circle",{cx:"173.74",cy:"43.26",r:"1",fill:"#00404D",stroke:"#00404D",strokeWidth:"1.12"}),_.createElement("circle",{cx:"160.48",cy:"43.26",r:"1",fill:"#00404D",stroke:"#00404D",strokeWidth:"1.12"}),_.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"}),_.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"}),_.createElement("path",{d:"M138.5 57V66",stroke:"#00404D",strokeWidth:"2"}),_.createElement("path",{d:"M139 104V124",stroke:"#00404D",strokeWidth:"2"}),_.createElement("path",{d:"M134 61.5L143 61.5",stroke:"#00404D",strokeWidth:"2"}),_.createElement("path",{d:"M129 114L149 114",stroke:"#00404D",strokeWidth:"2"})))},{getPasskeyPromptHeadingText:zge,getPasskeyPromptDescriptionText:Fge,getCreatePasskeyText:$ge,getRegisteringText:Bge,getContinueWithoutPasskeyText:Hge,getPasskeyCreatedSuccessText:qge,getPasskeyRegisteredText:Wge,getPasskeyRegistrationFailedText:Vge,getPasskeyLabelText:Gge,getExistingPasskeysText:Kge,getSetupAnotherPasskeyText:Yge,getContinueText:Zge}=$n;function Xge({className:t,variation:e}){const[n,r]=F.useState(!1),[a,s]=F.useState(null),[i,u]=F.useState(!1),[c,f]=F.useState([]),{submitForm:h,isPending:m}=xt(E=>[E.submitForm,E.isPending]),g=F.useCallback(async()=>{try{const E=await Fk();f(E.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 Vie(),r(!0)}catch(E){const A=E,k=A.name??"",I=A.message??"";if(k==="PasskeyRegistrationCanceled"||k==="NotAllowedError"||I.includes("canceled")||I.includes("cancelled")||I.includes("ceremony has been canceled")||I.includes("not allowed")){y();return}s(Vge())}finally{u(!1)}},[y]);if(n)return F.createElement(Vr,{className:t,variation:e},F.createElement(Be,{direction:"column",padding:"large","data-amplify-authenticator-passkeyprompt":""},F.createElement(Be,{direction:"column",gap:"xs"},F.createElement(Uge,{className:"amplify-authenticator__passkey-success-icon"}),F.createElement(Rr,{level:4},qge()),F.createElement(Ia,null,Wge())),c.length>0&&F.createElement(qe,{marginTop:"large"},F.createElement(Rr,{level:5},Kge()),F.createElement(Be,{direction:"column",gap:"xs",marginTop:"xs"},c.map((E,A)=>F.createElement(qe,{key:E.credentialId,className:"amplify-authenticator__passkey-credential-item"},F.createElement(Ia,{fontSize:"small"},E.friendlyCredentialName??`${Gge()} ${A+1}`))))),F.createElement(Be,{direction:"column",gap:"medium",marginTop:"large"},F.createElement(cn,{onClick:()=>{r(!1),w()},variation:"link"},Yge()),F.createElement(cn,{onClick:()=>S(),variation:"primary",isFullWidth:!0},Zge()))));const x=m||i;return F.createElement(Vr,{className:t,variation:e},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-passkeyprompt":""},F.createElement(Be,{direction:"column",gap:"medium"},F.createElement(Rr,{level:4},zge()),F.createElement(Ia,null,Fge()),F.createElement(Be,{justifyContent:"center"},F.createElement(jge,{className:"amplify-authenticator__passkey-icon"})),F.createElement(Be,{direction:"column",gap:"medium"},F.createElement(cn,{onClick:()=>{w()},variation:"primary",isDisabled:x,isLoading:i,loadingText:Bge()},$ge()),F.createElement(cn,{onClick:y,variation:"link",isDisabled:x},Hge()),a&&F.createElement(Ia,{className:"amplify-authenticator__passkey-error"},a),F.createElement(Kr,null)))))}function b7(){return null}const Qge=t=>{switch(t){case"authenticated":case"idle":case"setup":case"transition":return b7;case"confirmSignUp":return Xl;case"confirmSignIn":return eu;case"selectMfaType":return Wi;case"setupEmail":return Vi;case"setupTotp":return Hi;case"signIn":case"signUp":return oge;case"signInSelectAuthFactor":return Dge;case"passkeyPrompt":return Xge;case"forceNewPassword":return Xa;case"forgotPassword":return qi;case"confirmResetPassword":return tu;case"verifyUser":return Jl;case"confirmVerifyUser":return Ql;default:return console.warn(`Unhandled Authenticator route - please open an issue: ${t}`),b7}};function Jge({className:t,hideSignUp:e,variation:n}){const{route:r}=xt(({route:s})=>[s]),a=_.useMemo(()=>Qge(r),[r]);return F.createElement(a,{className:t,hideSignUp:Ime(r)?e:void 0,variation:n})}const e0e={Header:()=>null,SignIn:{Header:_o.Header,Footer:_o.Footer},SignUp:{Header:Qa.Header,FormFields:Qa.FormFields,Footer:Qa.Footer},ConfirmSignUp:{Header:Xl.Header,Footer:Xl.Footer},SelectMfaType:{Header:Wi.Header,Footer:Wi.Footer},SetupEmail:{Header:Vi.Header,Footer:Vi.Footer},SetupTotp:{Header:Hi.Header,Footer:Hi.Footer},ConfirmResetPassword:{Header:tu.Header,Footer:tu.Footer},ConfirmSignIn:{Header:eu.Header,Footer:eu.Footer},VerifyUser:{Header:Jl.Header,Footer:Jl.Footer},ConfirmVerifyUser:{Header:Ql.Header,Footer:Ql.Footer},ForceNewPassword:{Header:Xa.Header,Footer:Xa.Footer,FormFields:Xa.FormFields},ForgotPassword:{Header:qi.Header,Footer:qi.Footer},Footer:()=>null};function t0e({children:t,className:e,components:n,formFields:r,hideSignUp:a,initialState:s,loginMechanisms:i,passwordSettings:u,passwordless:c,signUpAttributes:f,services:h,socialProviders:m,variation:g}){Ype({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}=xt(({route:A,signOut:k,user:I})=>[A,k,I]);khe({initialState:s,loginMechanisms:i,passwordSettings:u,passwordless:c,services:h,signUpAttributes:f,socialProviders:m,formFields:r});const x=_.useMemo(()=>({components:{...e0e,...n}}),[n]);return y==="authenticated"||y==="signOut"?t?_.createElement(_.Fragment,null,Co(t)?t({signOut:S,user:w}):t):null:_.createElement(Jz.Provider,{value:x},_.createElement(Jge,{className:e,hideSignUp:a,variation:g}))}function Ls(t){return Rhe({componentName:"Authenticator",packageName:"react",version:Kpe}),_.createElement(Lz,null,_.createElement(t0e,{...t}))}Ls.Provider=Lz;Ls.ForgotPassword=qi;Ls.SetupTotp=Hi;Ls.SignIn=_o;Ls.SignUp=Qa;Ls.ForceNewPassword=Xa;Ls.SelectMfaType=Wi;Ls.SetupEmail=Vi;const oF=({cssText:t,...e})=>t===void 0||/<\/style/i.test(t)?null:_.createElement("style",{...e,dangerouslySetInnerHTML:{__html:t}});oF.displayName="Style";const iF=({theme:t,...e})=>{if(!t)return null;const{name:n,cssText:r}=t;return _.createElement(oF,{...e,cssText:r,id:`amplify-theme-${n}`})};iF.displayName="ThemeStyle";function n0e({children:t,colorMode:e,direction:n="ltr",nonce:r,theme:a}){const s=_.useMemo(()=>({theme:Mv(a),colorMode:e}),[a,e]);return _.createElement(Dz.Provider,{value:s},_.createElement(_pe,{dir:n},_.createElement("div",{"data-amplify-theme":s.theme.name,"data-amplify-color-mode":e,dir:n},t),a?_.createElement(iF,{theme:s.theme,nonce:r}):null))}const r0e=({configured:t,authStatus:e})=>e==="authenticated",a0e=t=>t?t.signInDetails?.loginId??t.username??null:null,s0e=({children:t,fallback:e=null})=>{const{authStatus:n,signOut:r,user:a}=xt(s=>[s.authStatus,s.signOut,s.user]);return r0e({configured:!0,authStatus:n})?C.jsx(C.Fragment,{children:t({email:a0e(a),signOut:()=>r()})}):C.jsx(C.Fragment,{children:e})},o0e=({children:t,fallback:e=null})=>rv()?C.jsx(s0e,{fallback:e,children:t}):C.jsx(C.Fragment,{children:e}),S7='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Mo=t=>`var(${t})`,mn=Mo("--accent"),i0e=Mo("--accent-hover"),w7=Mo("--accent-soft"),Wf=Mo("--accent-fg"),x7=Mo("--surface"),gc=Mo("--fg"),l0e=Mo("--surface-sunken"),Sg=Mo("--fg-muted"),Vf=Mo("--line"),u0e=Mv({name:"remit",tokens:{colors:{brand:{primary:{10:{value:w7},20:{value:w7},40:{value:mn},60:{value:mn},80:{value:mn},90:{value:mn},100:{value:mn}}},background:{primary:{value:x7},secondary:{value:l0e}},font:{primary:{value:gc},secondary:{value:Sg},tertiary:{value:Sg},interactive:{value:mn},inverse:{value:Wf},hover:{value:mn},focus:{value:mn},active:{value:mn}},border:{primary:{value:Vf},secondary:{value:Vf},focus:{value:mn}}},fonts:{default:{variable:{value:S7},static:{value:S7}}},radii:{small:{value:"3px"},medium:{value:"5px"},large:{value:"7px"}},components:{authenticator:{router:{borderColor:{value:Vf},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:x7}},form:{padding:{value:"1.75rem"}},orContainer:{color:{value:Sg}}},button:{color:{value:gc},primary:{backgroundColor:{value:mn},color:{value:Wf},_hover:{backgroundColor:{value:i0e},color:{value:Wf}},_focus:{backgroundColor:{value:mn},color:{value:Wf}},_active:{backgroundColor:{value:mn},color:{value:Wf}}},link:{color:{value:mn},_hover:{color:{value:mn},backgroundColor:{value:"transparent"}},_focus:{color:{value:mn},backgroundColor:{value:"transparent"}},_active:{color:{value:mn},backgroundColor:{value:"transparent"}}}},fieldcontrol:{color:{value:gc},borderColor:{value:Vf},_focus:{borderColor:{value:mn},boxShadow:{value:`0 0 0 2px ${mn}`}}},field:{label:{color:{value:gc}}},tabs:{borderColor:{value:Vf},item:{color:{value:Sg},backgroundColor:{value:"transparent"},_active:{color:{value:mn},borderColor:{value:mn},backgroundColor:{value:"transparent"}},_hover:{color:{value:mn}},_focus:{color:{value:mn}}}},heading:{color:{value:gc}},text:{color:{value:gc}}}}}),c0e={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"}}},d0e=()=>C.jsx(B0,{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"})]})}),f0e=()=>C.jsx(FU,{note:Rj({betterAuthEnabled:!1,cognitoConfigured:rv()})}),h0e=({children:t})=>{const{authStatus:e}=xt(n=>[n.authStatus]);return e==="authenticated"?C.jsx(C.Fragment,{children:t}):e==="configuring"?C.jsx(fv,{}):C.jsx(n0e,{theme:u0e,children:C.jsxs(zU,{children:[C.jsx($U,{}),C.jsx(Ls,{hideSignUp:!1,formFields:c0e,components:{Footer:f0e}})]})})},p0e=({children:t})=>rv()?C.jsx(Ls.Provider,{children:C.jsx(h0e,{children:t})}):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(d0e,{}),t]}),lF=60;let Gc=null;const uF=()=>Math.floor(Date.now()/1e3),m0e=t=>t!==null&&t.expiresAt-lF>uF(),g0e=async()=>{const e=(await X1()).tokens?.idToken;return e?(Gc={value:e.toString(),expiresAt:e.payload.exp??uF()+lF},Gc.value):(Gc=null,null)},v0e=async()=>rv()?m0e(Gc)?Gc.value:g0e():null,y0e=()=>{Gc=null},r1={configure:zD,getToken:v0e,resetToken:y0e,Shell:p0e,Account:o0e},b0e=({children:t})=>av()?C.jsx(Z0.Shell,{children:t}):C.jsx(r1.Shell,{children:t}),S0e=t=>av()?C.jsx(Z0.Account,{...t}):C.jsx(r1.Account,{...t}),w0e={configure:zD,getToken:()=>av()?Z0.getToken():r1.getToken(),resetToken:()=>{Z0.resetToken(),r1.resetToken()},Shell:b0e,Account:S0e};var Od=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},x0e=class extends Od{#e;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},vA=new x0e,C0e={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},E0e=class{#e=C0e;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,e){return this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}},Nl=new E0e;function _0e(t){setTimeout(t,0)}var k0e=typeof window>"u"||"Deno"in globalThis;function Er(){}function A0e(t,e){return typeof t=="function"?t(e):t}function w3(t){return typeof t=="number"&&t>=0&&t!==1/0}function cF(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Di(t,e){return typeof t=="function"?t(e):t}function ia(t,e){return typeof t=="function"?t(e):t}function C7(t,e){const{type:n="all",exact:r,fetchStatus:a,predicate:s,queryKey:i,stale:u}=t;if(i){if(r){if(e.queryHash!==yA(i,e.options))return!1}else if(!qh(e.queryKey,i))return!1}if(n!=="all"){const c=e.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof u=="boolean"&&e.isStale()!==u||a&&a!==e.state.fetchStatus||s&&!s(e))}function E7(t,e){const{exact:n,status:r,predicate:a,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(nu(e.options.mutationKey)!==nu(s))return!1}else if(!qh(e.options.mutationKey,s))return!1}return!(r&&e.state.status!==r||a&&!a(e))}function yA(t,e){return(e?.queryKeyHashFn||nu)(t)}function nu(t){return JSON.stringify(t,(e,n)=>x3(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function qh(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>qh(t[n],e[n])):!1}var R0e=Object.prototype.hasOwnProperty;function dF(t,e,n=0){if(t===e)return t;if(n>500)return e;const r=_7(t)&&_7(e);if(!r&&!(x3(t)&&x3(e)))return e;const s=(r?t:Object.keys(t)).length,i=r?e:Object.keys(e),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=t[m],y=e[m];if(g===y){c[m]=g,(r?h<s:R0e.call(t,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?t:c}function a1(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function _7(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function x3(t){if(!k7(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!k7(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function k7(t){return Object.prototype.toString.call(t)==="[object Object]"}function I0e(t){return new Promise(e=>{Nl.setTimeout(e,t)})}function C3(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?dF(t,e):e}function T0e(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function O0e(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var bA=Symbol();function fF(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===bA?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function SA(t,e){return typeof t=="function"?t(...e):!!t}function N0e(t,e,n){let r=!1,a;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(a??=e(),r||(r=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),t}var Wh=(()=>{let t=()=>k0e;return{isServer(){return t()},setIsServer(e){t=e}}})();function E3(){let t,e;const n=new Promise((a,s)=>{t=a,e=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}),t(a)},n.reject=a=>{r({status:"rejected",reason:a}),e(a)},n}var M0e=_0e;function P0e(){let t=[],e=0,n=u=>{u()},r=u=>{u()},a=M0e;const s=u=>{e?t.push(u):a(()=>{n(u)})},i=()=>{const u=t;t=[],u.length&&a(()=>{r(()=>{u.forEach(c=>{n(c)})})})};return{batch:u=>{let c;e++;try{c=u()}finally{e--,e||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=P0e(),L0e=class extends Od{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(n=>{n(t)}))}isOnline(){return this.#e}},s1=new L0e;function D0e(t){return Math.min(1e3*2**t,3e4)}function hF(t){return(t??"online")==="online"?s1.isOnline():!0}var _3=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function pF(t){let e=!1,n=0,r;const a=E3(),s=()=>a.status!=="pending",i=w=>{if(!s()){const x=new _3(w);g(x),t.onCancel?.(x)}},u=()=>{e=!0},c=()=>{e=!1},f=()=>vA.isFocused()&&(t.networkMode==="always"||s1.isOnline())&&t.canRun(),h=()=>hF(t.networkMode)&&t.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)},t.onPause?.()}).then(()=>{r=void 0,s()||t.onContinue?.()}),S=()=>{if(s())return;let w;const x=n===0?t.initialPromise:void 0;try{w=x??t.fn()}catch(E){w=Promise.reject(E)}Promise.resolve(w).then(m).catch(E=>{if(s())return;const A=t.retry??(Wh.isServer()?0:3),k=t.retryDelay??D0e,I=typeof k=="function"?k(n,E):k,N=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,E);if(e||!N){g(E);return}n++,t.onFail?.(n,E),I0e(I).then(()=>f()?void 0:y()).then(()=>{e?g(E):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 mF=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),w3(this.gcTime)&&(this.#e=Nl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Wh.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Nl.clearTimeout(this.#e),this.#e=void 0)}};function U0e(t){return{onFetch:(e,n)=>{const r=e.options,a=e.fetchOptions?.meta?.fetchMore?.direction,s=e.state.data?.pages||[],i=e.state.data?.pageParams||[];let u={pages:[],pageParams:[]},c=0;const f=async()=>{let h=!1;const m=S=>{N0e(S,()=>e.signal,()=>h=!0)},g=fF(e.options,e.fetchOptions),y=async(S,w,x)=>{if(h)return Promise.reject(e.signal.reason);if(w==null&&S.pages.length)return Promise.resolve(S);const A=(()=>{const O={client:e.client,queryKey:e.queryKey,pageParam:w,direction:x?"backward":"forward",meta:e.options.meta};return m(O),O})(),k=await g(A),{maxPages:I}=e.options,N=x?O0e:T0e;return{pages:N(S.pages,k,I),pageParams:N(S.pageParams,w,I)}};if(a&&s.length){const S=a==="backward",w=S?gF:k3,x={pages:s,pageParams:i},E=w(r,x);u=await y(x,E,S)}else{const S=t??s.length;do{const w=c===0?i[0]??r.initialPageParam:k3(r,u);if(c>0&&w==null)break;u=await y(u,w),c++}while(c<S)}return u};e.options.persister?e.fetchFn=()=>e.options.persister?.(f,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=f}}}function k3(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function gF(t,{pages:e,pageParams:n}){return e.length>0?t.getPreviousPageParam?.(e[0],e,n[0],n):void 0}function N5e(t,e){return e?k3(t,e)!=null:!1}function M5e(t,e){return!e||!t.getPreviousPageParam?!1:gF(t,e)!=null}var j0e=class extends mF{#e;#t;#n;#r;#s;#a;#i;#o;constructor(t){super(),this.#o=!1,this.#i=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#s=t.client,this.#r=this.#s.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=R7(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(t){if(this.options={...this.#i,...t},t?._type&&(this.#e=t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=R7(this.options);e.data!==void 0&&(this.setState(A7(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(t,e){const n=C3(this.state.data,t,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),n}setState(t){this.#l({type:"setState",state:t})}cancel(t){const e=this.#a?.promise;return this.#a?.cancel(t),e?e.then(Er).catch(Er):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(t=>ia(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===bA||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Di(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!cF(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),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:t}))}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(t,e){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(t&&this.setOptions(t),!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=fF(this.options,e),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:e,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:a};return r(c),c})();(this.#e==="infinite"?U0e(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=pF({initialPromise:e?.initialPromise,fn:i.fetchFn,onCancel:c=>{c instanceof _3&&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 _3){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(t){const e=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...vF(n.data,this.options),fetchMeta:t.meta??null};case"success":const r={...n,...A7(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=t.manual?r:void 0,r;case"error":const a=t.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,...t.state}}};this.state=e(this.state),Fn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:t})})}};function vF(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hF(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function A7(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function R7(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,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 z0e=class extends Od{constructor(t,e){super(),this.options=e,this.#e=t,this.#o=null,this.#i=E3(),this.bindMethods(),this.setOptions(e)}#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),I7(this.#t,this.options)?this.#h():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return A3(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return A3(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#w(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ia(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),e._defaulted&&!a1(this.options,e)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&T7(this.#t,n,this.options,e)&&this.#h(),this.updateResult(),r&&(this.#t!==n||ia(this.options.enabled,this.#t)!==ia(e.enabled,this.#t)||Di(this.options.staleTime,this.#t)!==Di(e.staleTime,this.#t))&&this.#g();const a=this.#v();r&&(this.#t!==n||ia(this.options.enabled,this.#t)!==ia(e.enabled,this.#t)||a!==this.#u)&&this.#y(a)}getOptimisticResult(t){const e=this.#e.getQueryCache().build(this.#e,t),n=this.createResult(e,t);return $0e(this,n)&&(this.#r=n,this.#a=this.options,this.#s=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(t,e){return new Proxy(t,{get:(n,r)=>(this.trackProp(r),e?.(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(t){this.#m.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#e.defaultQueryOptions(t),n=this.#e.getQueryCache().build(this.#e,e);return n.fetch().then(()=>this.createResult(n,e))}fetch(t){return this.#h({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(t){this.#x();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(Er)),e}#g(){this.#S();const t=Di(this.options.staleTime,this.#t);if(Wh.isServer()||this.#r.isStale||!w3(t))return;const n=cF(this.#r.dataUpdatedAt,t)+1;this.#d=Nl.setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(t){this.#w(),this.#u=t,!(Wh.isServer()||ia(this.options.enabled,this.#t)===!1||!w3(this.#u)||this.#u===0)&&(this.#f=Nl.setInterval(()=>{(this.options.refetchIntervalInBackground||vA.isFocused())&&this.#h()},this.#u))}#b(){this.#g(),this.#y(this.#v())}#S(){this.#d!==void 0&&(Nl.clearTimeout(this.#d),this.#d=void 0)}#w(){this.#f!==void 0&&(Nl.clearInterval(this.#f),this.#f=void 0)}createResult(t,e){const n=this.#t,r=this.options,a=this.#r,s=this.#s,i=this.#a,c=t!==n?t.state:this.#n,{state:f}=t;let h={...f},m=!1,g;if(e._optimisticResults){const P=this.hasListeners(),D=!P&&I7(t,e),q=P&&T7(t,n,e,r);(D||q)&&(h={...h,...vF(f.data,t.options)}),e._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:y,errorUpdatedAt:S,status:w}=h;g=h.data;let x=!1;if(e.placeholderData!==void 0&&g===void 0&&w==="pending"){let P;a?.isPlaceholderData&&e.placeholderData===i?.placeholderData?(P=a.data,x=!0):P=typeof e.placeholderData=="function"?e.placeholderData(this.#p?.state.data,this.#p):e.placeholderData,P!==void 0&&(w="success",g=C3(a?.data,P,e),m=!0)}if(e.select&&g!==void 0&&!x)if(a&&g===s?.data&&e.select===this.#c)g=this.#l;else try{this.#c=e.select,g=e.select(g),g=C3(a?.data,g,e),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 E=h.fetchStatus==="fetching",A=w==="pending",k=w==="error",I=A&&E,N=g!==void 0,T={status:w,fetchStatus:h.fetchStatus,isPending:A,isSuccess:w==="success",isError:k,isInitialLoading:I,isLoading:I,data:g,dataUpdatedAt:h.dataUpdatedAt,error:y,errorUpdatedAt:S,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:h.dataUpdateCount>c.dataUpdateCount||h.errorUpdateCount>c.errorUpdateCount,isFetching:E,isRefetching:E&&!A,isLoadingError:k&&!N,isPaused:h.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:k&&N,isStale:wA(t,e),refetch:this.refetch,promise:this.#i,isEnabled:ia(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const P=T.data!==void 0,D=T.status==="error"&&!P,q=$=>{D?$.reject(T.error):P&&$.resolve(T.data)},U=()=>{const $=this.#i=T.promise=E3();q($)},j=this.#i;switch(j.status){case"pending":t.queryHash===n.queryHash&&q(j);break;case"fulfilled":(D||T.data!==j.value)&&U();break;case"rejected":(!D||T.error!==j.reason)&&U();break}}return T}updateResult(){const t=this.#r,e=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),a1(e,t))return;this.#r=e;const n=()=>{if(!t)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]!==t[u]&&s.has(u)})};this.#C({listeners:n()})}#x(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#n=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#C(t){Fn.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function F0e(t,e){return ia(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&ia(e.retryOnMount,t)===!1)}function I7(t,e){return F0e(t,e)||t.state.data!==void 0&&A3(t,e,e.refetchOnMount)}function A3(t,e,n){if(ia(e.enabled,t)!==!1&&Di(e.staleTime,t)!=="static"){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&wA(t,e)}return!1}function T7(t,e,n,r){return(t!==e||ia(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&wA(t,n)}function wA(t,e){return ia(e.enabled,t)!==!1&&t.isStaleByTime(Di(e.staleTime,t))}function $0e(t,e){return!a1(t.getCurrentResult(),e)}var B0e=class extends mF{#e;#t;#n;#r;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||yF(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(e=>e!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}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(t){const e=()=>{this.#s({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=pF({fn:()=>this.options.mutationFn?this.options.mutationFn(t,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:e,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)e();else{this.#s({type:"pending",variables:t,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,n);const i=await this.options.onMutate?.(t,n);i!==this.state.context&&this.#s({type:"pending",context:i,variables:t,isPaused:a})}const s=await this.#r.start();return await this.#n.config.onSuccess?.(s,t,this.state.context,this,n),await this.options.onSuccess?.(s,t,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,t,this.state.context,n),this.#s({type:"success",data:s}),s}catch(s){try{await this.#n.config.onError?.(s,t,this.state.context,this,n)}catch(i){Promise.reject(i)}try{await this.options.onError?.(s,t,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,t,this.state.context,n)}catch(i){Promise.reject(i)}throw this.#s({type:"error",error:s}),s}finally{this.#n.runNext(this)}}#s(t){const e=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),Fn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function yF(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var bF=class extends Od{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,e,n){const r=new B0e({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(e),state:n});return this.add(r),r}add(t){this.#e.add(t);const e=wg(t);if(typeof e=="string"){const n=this.#t.get(e);n?n.push(t):this.#t.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const e=wg(t);if(typeof e=="string"){const n=this.#t.get(e);if(n)if(n.length>1){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}else n[0]===t&&this.#t.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=wg(t);if(typeof e=="string"){const r=this.#t.get(e)?.find(a=>a.state.status==="pending");return!r||r===t}else return!0}runNext(t){const e=wg(t);return typeof e=="string"?this.#t.get(e)?.find(r=>r!==t&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Fn.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const e={exact:!0,...t};return this.getAll().find(n=>E7(e,n))}findAll(t={}){return this.getAll().filter(e=>E7(t,e))}notify(t){Fn.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return Fn.batch(()=>Promise.all(t.map(e=>e.continue().catch(Er))))}};function wg(t){return t.options.scope?.id}var H0e=class extends Od{#e;#t=void 0;#n;#r;constructor(e,n){super(),this.#e=e,this.setOptions(n),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const n=this.options;this.options=this.#e.defaultMutationOptions(e),a1(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&nu(n.mutationKey)!==nu(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#s(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#s(),this.#a()}mutate(e,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(e)}#s(){const e=this.#n?.state??yF();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#a(e){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(e?.type==="success"){try{this.#r.onSuccess?.(e.data,n,r,a)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(e.data,null,n,r,a)}catch(s){Promise.reject(s)}}else if(e?.type==="error"){try{this.#r.onError?.(e.error,n,r,a)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(void 0,e.error,n,r,a)}catch(s){Promise.reject(s)}}}this.listeners.forEach(n=>{n(this.#t)})})}},SF=class extends Od{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,e,n){const r=e.queryKey,a=e.queryHash??yA(r,e);let s=this.get(a);return s||(s=new j0e({client:t,queryKey:r,queryHash:a,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(r)}),this.add(s)),s}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#e.get(t.queryHash);e&&(t.destroy(),e===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Fn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(n=>C7(e,n))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(n=>C7(t,n)):e}notify(t){Fn.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){Fn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Fn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},q0e=class{#e;#t;#n;#r;#s;#a;#i;#o;constructor(t={}){this.#e=t.queryCache||new SF,this.#t=t.mutationCache||new bF,this.#n=t.defaultOptions||{},this.#r=new Map,this.#s=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#i=vA.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=s1.subscribe(async t=>{t&&(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(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=this.#e.build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Di(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),s=this.#e.get(r.queryHash)?.state.data,i=A0e(e,s);if(i!==void 0)return this.#e.build(this,r).setData(i,{...n,manual:!0})}setQueriesData(t,e,n){return Fn.batch(()=>this.#e.findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state}removeQueries(t){const e=this.#e;Fn.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=this.#e;return Fn.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=Fn.batch(()=>this.#e.findAll(t).map(a=>a.cancel(n)));return Promise.all(r).then(Er).catch(Er)}invalidateQueries(t,e={}){return Fn.batch(()=>(this.#e.findAll(t).forEach(n=>{n.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=Fn.batch(()=>this.#e.findAll(t).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let s=a.fetch(void 0,n);return n.throwOnError||(s=s.catch(Er)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Er)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=this.#e.build(this,e);return n.isStaleByTime(Di(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Er).catch(Er)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Er).catch(Er)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return s1.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,e){this.#r.set(nu(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#r.values()],n={};return e.forEach(r=>{qh(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){this.#s.set(nu(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#s.values()],n={};return e.forEach(r=>{qh(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=yA(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===bA&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},wF=_.createContext(void 0),Nd=t=>{const e=_.useContext(wF);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},W0e=({client:t,children:e})=>(_.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),C.jsx(wF.Provider,{value:t,children:e})),xF=_.createContext(!1),V0e=()=>_.useContext(xF);xF.Provider;function G0e(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var K0e=_.createContext(G0e()),Y0e=()=>_.useContext(K0e),Z0e=(t,e,n)=>{const r=n?.state.error&&typeof t.throwOnError=="function"?SA(t.throwOnError,[n.state.error,n]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||r)&&(e.isReset()||(t.retryOnMount=!1))},X0e=t=>{_.useEffect(()=>{t.clearReset()},[t])},Q0e=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:a})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(a&&t.data===void 0||SA(n,[t.error,r])),J0e=t=>{if(t.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},e1e=(t,e)=>t.isLoading&&t.isFetching&&!e,t1e=(t,e)=>t?.suspense&&e.isPending,O7=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function n1e(t,e,n){const r=V0e(),a=Y0e(),s=Nd(),i=s.defaultQueryOptions(t);s.getDefaultOptions().queries?._experimental_beforeQuery?.(i);const u=s.getQueryCache().get(i.queryHash),c=t.subscribed!==!1;i._optimisticResults=r?"isRestoring":c?"optimistic":void 0,J0e(i),Z0e(i,a,u),X0e(a);const f=!s.getQueryCache().get(i.queryHash),[h]=_.useState(()=>new e(s,i)),m=h.getOptimisticResult(i),g=!r&&c;if(_.useSyncExternalStore(_.useCallback(y=>{const S=g?h.subscribe(Fn.batchCalls(y)):Er;return h.updateResult(),S},[h,g]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),_.useEffect(()=>{h.setOptions(i)},[i,h]),t1e(i,m))throw O7(i,h,a);if(Q0e({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&&!Wh.isServer()&&e1e(m,r)&&(f?O7(i,h,a):u?.promise)?.catch(Er).finally(()=>{h.updateResult()}),i.notifyOnChangeProps?m:h.trackResult(m)}function Vh(t,e){return n1e(t,z0e)}function xA(t,e){const n=Nd(),[r]=_.useState(()=>new H0e(n,t));_.useEffect(()=>{r.setOptions(t)},[r,t]);const a=_.useSyncExternalStore(_.useCallback(i=>r.subscribe(Fn.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=_.useCallback((i,u)=>{r.mutate(i,u).catch(Er)},[r]);if(a.error&&SA(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}const r1e="modulepreload",a1e=function(t){return"/"+t},N7={},ct=function(e,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=a1e(f),f in N7)return;N7[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":r1e,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 e().catch(s)})};var M7=_.use,Dc=typeof window<"u"?_.useLayoutEffect:_.useEffect;function OC(t){const e=_.useRef({value:t,prev:null}),n=e.current.value;return t!==n&&(e.current={value:t,prev:n}),e.current.prev}function s1e(t,e,n={},r={}){_.useEffect(()=>{if(!t.current||r.disabled||typeof IntersectionObserver!="function")return;const a=new IntersectionObserver(([s])=>{e(s)},n);return a.observe(t.current),()=>{a.disconnect()}},[e,n,r.disabled,t])}function o1e(t){const e=_.useRef(null);return _.useImperativeHandle(t,()=>e.current,[]),e}const CF=!1;function Gh(t){return t[t.length-1]}function i1e(t){return typeof t=="function"}function Ml(t,e){return i1e(t)?t(e):t}const EF=Object.prototype.hasOwnProperty,P7=Object.prototype.propertyIsEnumerable;function _F(t){for(const e in t)if(EF.call(t,e))return!0;return!1}const l1e=()=>Object.create(null),_l=(t,e)=>Pl(t,e,l1e);function Pl(t,e,n=()=>({}),r=0){if(t===e)return t;if(r>500)return e;const a=e,s=U7(t)&&U7(a);if(!s&&!(o1(t)&&o1(a)))return a;const i=s?t:L7(t);if(!i)return a;const u=s?a:L7(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=t[y],w=a[y];if(S===w){h[y]=S,(s?g<c:EF.call(t,y))&&m++;continue}if(S===null||w===null||typeof S!="object"||typeof w!="object"){h[y]=w;continue}const x=Pl(S,w,n,r+1);h[y]=x,x===S&&m++}return c===f&&m===c?t:h}function L7(t){const e=Object.getOwnPropertyNames(t);for(const a of e)if(!P7.call(t,a))return!1;const n=Object.getOwnPropertySymbols(t);if(n.length===0)return e;const r=e;for(const a of n){if(!P7.call(t,a))return!1;r.push(a)}return r}function o1(t){if(!D7(t))return!1;const e=t.constructor;if(typeof e>"u")return!0;const n=e.prototype;return!(!D7(n)||!n.hasOwnProperty("isPrototypeOf"))}function D7(t){return Object.prototype.toString.call(t)==="[object Object]"}function U7(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function $l(t,e,n){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0,a=t.length;r<a;r++)if(!$l(t[r],e[r],n))return!1;return!0}if(o1(t)&&o1(e)){const r=n?.ignoreUndefined??!0;if(n?.partial){for(const i in e)if((!r||e[i]!==void 0)&&!$l(t[i],e[i],n))return!1;return!0}let a=0;if(!r)a=Object.keys(t).length;else for(const i in t)t[i]!==void 0&&a++;let s=0;for(const i in e)if((!r||e[i]!==void 0)&&(s++,s>a||!$l(t[i],e[i],n)))return!1;return a===s}return!1}function rd(t){let e,n;const r=new Promise((a,s)=>{e=a,n=s});return r.status="pending",r.resolve=a=>{r.status="resolved",r.value=a,e(a),t?.(a)},r.reject=a=>{r.status="rejected",n(a)},r}function u1e(t){return typeof t?.message!="string"?!1:t.message.startsWith("Failed to fetch dynamically imported module")||t.message.startsWith("error loading dynamically imported module")||t.message.startsWith("Importing a module script failed")}function Kh(t){return!!(t&&typeof t=="object"&&typeof t.then=="function")}const c1e=/[\x00-\x1f\x7f"<>`{}]/g;function d1e(t){return t.replace(c1e,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function j7(t){let e;try{e=decodeURI(t)}catch{e=t.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return d1e(e)}const f1e=["http:","https:","mailto:","tel:"];function i1(t,e){if(!t)return!1;try{const n=new URL(t);return!e.has(n.protocol)}catch{return!1}}function Gf(t){if(!t)return{path:t,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(t)&&!t.startsWith("//"))return{path:t,handledProtocolRelativeURL:!1};const e=/%25|%5C/gi;let n=0,r="",a;for(;(a=e.exec(t))!==null;)r+=j7(t.slice(n,a.index))+a[0],n=e.lastIndex;r=r+j7(n?t.slice(n):t);let s=!1;return r.startsWith("//")&&(s=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:s}}function h1e(t){return/\s|[^\u0000-\u007F]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}function p1e(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function bo(){throw new Error("Invariant failed")}function Yh(t){const e=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=e.get(s);if(i)return a(i),i.value},set(s,i){if(e.size>=t&&n){const c=n;e.delete(c.key),c.next&&(n=c.next,c.next.prev=void 0),c===r&&(r=void 0)}const u=e.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),e.set(s,c)}},clear(){e.clear(),n=void 0,r=void 0}}}const Mi=4,kF=5;function m1e(t){const e=t.indexOf("{");if(e===-1)return null;const n=t.indexOf("}",e);return n===-1||e+1>=t.length?null:[e,n]}function AF(t,e,n=new Uint16Array(6)){const r=t.indexOf("/",e),a=r===-1?t.length:r,s=t.substring(e,a);if(!s||!s.includes("$"))return n[0]=0,n[1]=e,n[2]=e,n[3]=a,n[4]=a,n[5]=a,n;if(s==="$"){const u=t.length;return n[0]=2,n[1]=e,n[2]=e,n[3]=u,n[4]=u,n[5]=u,n}if(s.charCodeAt(0)===36)return n[0]=1,n[1]=e,n[2]=e+1,n[3]=a,n[4]=a,n[5]=a,n;const i=m1e(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]=e+u,n[2]=e+h,n[3]=e+m,n[4]=e+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]=e+u,n[2]=e+h,n[3]=e+m,n[4]=e+c+1,n[5]=t.length,n):(n[0]=1,n[1]=e+u,n[2]=e+m,n[3]=e+c,n[4]=e+c+1,n[5]=a,n)}}return n[0]=0,n[1]=e,n[2]=e,n[3]=a,n[4]=a,n[5]=a,n}function Bv(t,e,n,r,a,s,i){i?.(n);let u=r;{const c=n.fullPath??n.from,f=c.length,h=n.options?.caseSensitive??t,m=n.options?.params?.parse??n.options?.parseParams;for(;u<f;){const y=AF(c,u,e);let S;const w=u,x=y[5];switch(u=x+1,s++,y[0]){case 0:{const E=c.substring(y[2],y[3]);if(h){const A=a.static?.get(E);if(A)S=A;else{a.static??=new Map;const k=Ll(n.fullPath??n.from);k.parent=a,k.depth=s,S=k,a.static.set(E,k)}}else{const A=E.toLowerCase(),k=a.staticInsensitive?.get(A);if(k)S=k;else{a.staticInsensitive??=new Map;const I=Ll(n.fullPath??n.from);I.parent=a,I.depth=s,S=I,a.staticInsensitive.set(A,I)}}break}case 1:{const E=c.substring(w,y[1]),A=c.substring(y[4],x),k=h&&!!(E||A),I=E?k?E:E.toLowerCase():void 0,N=A?k?A:A.toLowerCase():void 0,O=!m&&a.dynamic?.find(T=>!T.parse&&T.caseSensitive===k&&T.prefix===I&&T.suffix===N);if(O)S=O;else{const T=MC(1,n.fullPath??n.from,k,I,N);S=T,T.depth=s,T.parent=a,a.dynamic??=[],a.dynamic.push(T)}break}case 3:{const E=c.substring(w,y[1]),A=c.substring(y[4],x),k=h&&!!(E||A),I=E?k?E:E.toLowerCase():void 0,N=A?k?A:A.toLowerCase():void 0,O=!m&&a.optional?.find(T=>!T.parse&&T.caseSensitive===k&&T.prefix===I&&T.suffix===N);if(O)S=O;else{const T=MC(3,n.fullPath??n.from,k,I,N);S=T,T.parent=a,T.depth=s,a.optional??=[],a.optional.push(T)}break}case 2:{const E=c.substring(w,y[1]),A=c.substring(y[4],x),k=h&&!!(E||A),I=E?k?E:E.toLowerCase():void 0,N=A?k?A:A.toLowerCase():void 0,O=MC(2,n.fullPath??n.from,k,I,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=Ll(n.fullPath??n.from);y.kind=kF,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=Ll(n.fullPath??n.from);y.kind=Mi,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)Bv(t,e,c,u,a,s,i)}function NC(t,e){if(t.parse&&!e.parse)return-1;if(!t.parse&&e.parse)return 1;if(t.parse&&e.parse&&(t.priority||e.priority))return e.priority-t.priority;if(t.prefix&&e.prefix&&t.prefix!==e.prefix){if(t.prefix.startsWith(e.prefix))return-1;if(e.prefix.startsWith(t.prefix))return 1}if(t.suffix&&e.suffix&&t.suffix!==e.suffix){if(t.suffix.endsWith(e.suffix))return-1;if(e.suffix.endsWith(t.suffix))return 1}return t.prefix&&!e.prefix?-1:!t.prefix&&e.prefix?1:t.suffix&&!e.suffix?-1:!t.suffix&&e.suffix?1:t.caseSensitive&&!e.caseSensitive?-1:!t.caseSensitive&&e.caseSensitive?1:0}function Ei(t){if(t.pathless)for(const e of t.pathless)Ei(e);if(t.static)for(const e of t.static.values())Ei(e);if(t.staticInsensitive)for(const e of t.staticInsensitive.values())Ei(e);if(t.dynamic?.length){t.dynamic.sort(NC);for(const e of t.dynamic)Ei(e)}if(t.optional?.length){t.optional.sort(NC);for(const e of t.optional)Ei(e)}if(t.wildcard?.length){t.wildcard.sort(NC);for(const e of t.wildcard)Ei(e)}}function Ll(t){return{kind:0,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}}function MC(t,e,n,r,a){return{kind:t,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,caseSensitive:n,prefix:r,suffix:a}}function g1e(t,e){const n=Ll("/"),r=new Uint16Array(6);for(const a of t)Bv(!1,r,a,1,n,0);Ei(n),e.masksTree=n,e.flatCache=Yh(1e3)}function v1e(t,e){t||="/";const n=e.flatCache.get(t);if(n)return n;const r=CA(t,e.masksTree);return e.flatCache.set(t,r),r}function y1e(t,e,n,r,a){t||="/",r||="/";const s=e?`case\0${t}`:t;let i=a.singleCache.get(s);return i||(i=Ll("/"),Bv(e,new Uint16Array(6),{from:t},1,i,0),a.singleCache.set(s,i)),CA(r,i,n)}function b1e(t,e,n=!1){const r=n?t:`nofuzz\0${t}`,a=e.matchCache.get(r);if(a!==void 0)return a;t||="/";let s;try{s=CA(t,e.segmentTree,n)}catch(i){if(i instanceof URIError)s=null;else throw i}return s&&(s.branch=IF(s.route)),e.matchCache.set(r,s),s}function S1e(t){return t==="/"?t:t.replace(/\/{1,}$/,"")}function w1e(t,e=!1,n){const r=Ll(t.fullPath),a=new Uint16Array(6),s={},i={};let u=0;return Bv(e,a,t,1,r,0,c=>{if(n?.(c,u),c.id in s&&bo(),s[c.id]=c,u!==0&&c.path){const f=S1e(c.fullPath);(!i[f]||c.fullPath.endsWith("/"))&&(i[f]=c)}u++}),Ei(r),{processedTree:{segmentTree:r,singleCache:Yh(1e3),matchCache:Yh(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:i}}function CA(t,e,n=!1){const r=t.split("/"),a=C1e(t,r,e,n);if(!a)return null;const[s]=RF(t,r,a);return{route:a.node.route,rawParams:s}}function RF(t,e,n){const r=x1e(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===Mi)break;if(h.kind===kF){f--,i--,c--;continue}const m=e[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),E=m.substring(S,m.length-w);s[x]=decodeURIComponent(E)}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),E=h.suffix||h.prefix?m.substring(S,m.length-w):m;E&&(s[x]=decodeURIComponent(E))}else if(h.kind===2){const y=h,S=t.substring(g+(y.prefix?.length??0),t.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 IF(t){const e=[t];for(;t.parentRoute;)t=t.parentRoute,e.push(t);return e.reverse(),e}function x1e(t){const e=Array(t.depth+1);do e[t.depth]=t,t=t.parent;while(t);return e}function C1e(t,e,n,r){if(t==="/"&&n.index)return{node:n.index,skipped:0};const a=!Gh(e),s=a&&t!=="/",i=e.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:E}=h;let{extract:A,rawParams:k}=h;if(m.kind===2&&m.route&&!Cg(f,h))continue;if(m.parse){if(!z7(t,e,h))continue;k=h.rawParams,A=h.extract}r&&m.route&&m.kind!==Mi&&Cg(c,h)&&(c=h);const I=g===i;if(I&&(m.route&&(!s||m.kind===Mi||m.kind===2)&&Cg(f,h)&&(f=h),!m.optional&&!m.wildcard&&!m.index&&!m.pathless))continue;const N=I?void 0:e[g];let O;if(I&&m.index){const T={node:m.index,index:g,skipped:y,depth:S+1,statics:w,dynamics:x,optionals:E,extract:A,rawParams:k};let P=!0;if(m.index.parse&&(z7(t,e,T)||(P=!1)),P){if(!x&&!E&&!y&&E1e(w,i))return T;Cg(f,T)&&(f=T)}}if(m.wildcard)for(let T=m.wildcard.length-1;T>=0;T--){const P=m.wildcard[T],{prefix:D,suffix:q}=P;if(!(D&&(I||!(P.caseSensitive?N:O??=N.toLowerCase()).startsWith(D)))){if(q){if(I)continue;const U=e.slice(g).join("/").slice(-q.length);if((P.caseSensitive?U:U.toLowerCase())!==q)continue}u.push({node:P,index:i,skipped:y,depth:S+1,statics:w,dynamics:x,optionals:E,extract:A,rawParams:k})}}if(m.optional){const T=y|1<<S,P=S+1;for(let D=m.optional.length-1;D>=0;D--){const q=m.optional[D];u.push({node:q,index:g,skipped:T,depth:P,statics:w,dynamics:x,optionals:E,extract:A,rawParams:k})}if(!I)for(let D=m.optional.length-1;D>=0;D--){const q=m.optional[D],{prefix:U,suffix:j}=q;if(U||j){const $=q.caseSensitive?N:O??=N.toLowerCase();if(U&&!$.startsWith(U)||j&&!$.endsWith(j))continue}u.push({node:q,index:g+1,skipped:y,depth:P,statics:w,dynamics:x,optionals:E+xg(i,g),extract:A,rawParams:k})}}if(!I&&m.dynamic&&N)for(let T=m.dynamic.length-1;T>=0;T--){const P=m.dynamic[T],{prefix:D,suffix:q}=P;if(D||q){const U=P.caseSensitive?N:O??=N.toLowerCase();if(D&&!U.startsWith(D)||q&&!U.endsWith(q))continue}u.push({node:P,index:g+1,skipped:y,depth:S+1,statics:w,dynamics:x+xg(i,g),optionals:E,extract:A,rawParams:k})}if(!I&&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+xg(i,g),dynamics:x,optionals:E,extract:A,rawParams:k})}if(!I&&m.static){const T=m.static.get(N);T&&u.push({node:T,index:g+1,skipped:y,depth:S+1,statics:w+xg(i,g),dynamics:x,optionals:E,extract:A,rawParams:k})}if(m.pathless){const T=S+1;for(let P=m.pathless.length-1;P>=0;P--){const D=m.pathless[P];u.push({node:D,index:g,skipped:y,depth:T,statics:w,dynamics:x,optionals:E,extract:A,rawParams:k})}}}if(f)return f;if(r&&c){let h=c.index;for(let g=0;g<c.index;g++)h+=e[g].length;const m=h===t.length?"/":t.slice(h);return c.rawParams??=Object.create(null),c.rawParams["**"]=decodeURIComponent(m),c}return null}function xg(t,e){return 2**(t-e-1)}function E1e(t,e){return t===2**(e-1)-1}function z7(t,e,n){let r,a;try{[r,a]=RF(t,e,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 Cg(t,e){return t?e.statics>t.statics||e.statics===t.statics&&(e.dynamics>t.dynamics||e.dynamics===t.dynamics&&(e.optionals>t.optionals||e.optionals===t.optionals&&((e.node.kind===Mi)>(t.node.kind===Mi)||e.node.kind===Mi==(t.node.kind===Mi)&&e.depth>t.depth))):!0}function x0(t){return EA(t.filter(e=>e!==void 0).join("/"))}function EA(t){return t.replace(/\/{2,}/g,"/")}function TF(t){return t==="/"?t:t.replace(/^\/{1,}/,"")}function vo(t){const e=t.length;return e>1&&t[e-1]==="/"?t.replace(/\/{1,}$/,""):t}function OF(t){return vo(TF(t))}function l1(t,e){return t?.endsWith("/")&&t!=="/"&&t!==`${e}/`?t.slice(0,-1):t}function _1e(t,e,n){return l1(t,n)===l1(e,n)}function k1e({base:t,to:e,trailingSlash:n="never",cache:r}){const a=e.startsWith("/"),s=!a&&e===".";let i;if(r){i=a?e:s?t:t+"\0"+e;const f=r.get(i);if(f)return f}let u;if(s)u=t.split("/");else if(a)u=e.split("/");else{for(u=t.split("/");u.length>1&&Gh(u)==="";)u.pop();const f=e.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&&(Gh(u)===""?n==="never"&&u.pop():n==="always"&&u.push(""));const c=EA(u.join("/"))||"/";return i&&r&&r.set(i,c),c}function A1e(t){const e=new Map(t.map(a=>[encodeURIComponent(a),a])),n=Array.from(e.keys()).map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(n,"g");return a=>a.replace(r,s=>e.get(s)??s)}function PC(t,e,n){const r=e[t];return typeof r!="string"?r:t==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(a=>$7(a,n)).join("/"):$7(r,n)}function F7({path:t,params:e,decoder:n,...r}){let a=!1;const s=Object.create(null);if(!t||t==="/")return{interpolatedPath:"/",usedParams:s,isMissingParams:a};if(!t.includes("$"))return{interpolatedPath:t,usedParams:s,isMissingParams:a};const i=t.length;let u=0,c,f="";for(;u<i;){const h=u;c=AF(t,h,c);const m=c[5];if(u=m+1,h===m)continue;const g=c[0];if(g===0){f+="/"+t.substring(h,m);continue}if(g===2){const y=e._splat;s._splat=y,s["*"]=y;const S=t.substring(h,c[1]),w=t.substring(c[4],m);if(!y){a=!0,(S||w)&&(f+="/"+S+w);continue}const x=PC("_splat",e,n);f+="/"+S+x+w;continue}if(g===1){const y=t.substring(c[2],c[3]);!a&&!(y in e)&&(a=!0),s[y]=e[y];const S=t.substring(h,c[1]),w=t.substring(c[4],m),x=PC(y,e,n)??"undefined";f+="/"+S+x+w;continue}if(g===3){const y=t.substring(c[2],c[3]),S=e[y];if(S==null)continue;s[y]=S;const w=t.substring(h,c[1]),x=t.substring(c[4],m),E=PC(y,e,n)??"";f+="/"+w+E+x;continue}}return t.endsWith("/")&&(f+="/"),{usedParams:s,interpolatedPath:f||"/",isMissingParams:a}}function $7(t,e){const n=encodeURIComponent(t);return e?.(n)??n}function br(t){return t?.isNotFound===!0}function R1e(){try{return sessionStorage}catch{return}}const I1e="tsr-scroll-restoration-v1_3",NF=R1e();function T1e(){try{return JSON.parse(NF?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function O1e(){try{NF?.setItem(I1e,JSON.stringify(Rc))}catch{}}const Rc=T1e(),B7="data-scroll-restoration-id",N1e=t=>t.state.__TSR_key||t.href;function M1e(t){const e=t.getAttribute(B7);if(e)return`[${B7}="${e}"]`;let n="",r=t,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 Eg=!1;const C0="window";function R3(t){try{return typeof t=="function"?t():document.querySelector(t)}catch{}}function H7(t){const e=new Set;for(const n of t){if(n===C0)continue;const r=R3(n);r&&e.add(r)}return e}function P1e(t,e){const n=t.options.scrollRestoration,r=t._scroll;n&&(r.restoring=!0);const a=t.options.getScrollRestorationKey||N1e,s=new Set,i=u=>{const c=Rc[u]||={};for(const f of s)f===document?c[C0]={scrollX,scrollY}:f.isConnected&&(c[M1e(f)]={scrollX:f.scrollLeft,scrollY:f.scrollTop})};n&&!r.restoration&&(r.restoration=!0,Eg=!1,history.scrollRestoration="manual",document.addEventListener("scroll",u=>{Eg||s.add(u.target)},!0),t.subscribe("onBeforeLoad",u=>{u.fromLocation&&i(a(u.fromLocation)),s.clear()}),addEventListener("pagehide",()=>{i(a(t.stores.resolvedLocation.get()??t.stores.location.get())),O1e()})),!r.reset&&(r.reset=!0,t.subscribe("onRendered",u=>{const c=t.options.scrollRestorationBehavior,f=t.options.scrollToTopSelectors,h=r.next,m=r.hash;let g;if(s.clear(),r.next=!0,r.hash=!1,typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation}))return;const y=a(u.toLocation),S=u.fromLocation&&a(u.fromLocation);if(r.restoring&&S&&S!==y){const w=Rc[S];if(w){let x=Rc[y];for(const E in w){if(E===C0){if(h)continue}else{const A=R3(E);if(!A||h&&f&&(g??=H7(f),g.has(A)))continue}x||(x=Rc[y]={}),x[E]??=w[E]}}}Eg=!0;try{const w=u.toLocation.hash,x=u.toLocation.state.__hashScrollIntoViewOptions??!0;let E=!1;if(h){!w&&f&&(g??=H7(f));const A=w&&x&&m,k=r.restoring?Rc[y]:void 0;if(k)for(const I in k){const{scrollX:N,scrollY:O}=k[I];if(I===C0){if(A)continue;scrollTo({top:O,left:N,behavior:c}),E=!0}else{const T=R3(I);T&&(T.scrollLeft=N,T.scrollTop=O,g?.delete(T))}}if(!w){const I={top:0,left:0,behavior:c};if(E||scrollTo(I),g)for(const N of g)N.scrollTo(I)}}!E&&w&&x&&document.getElementById(w)?.scrollIntoView(x)}finally{Eg=!1}}))}function L1e(t,e=String){const n=new URLSearchParams;for(const r in t){const a=t[r];a!==void 0&&n.set(r,e(a))}return n.toString()}function LC(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}function D1e(t){const e=new URLSearchParams(t),n=Object.create(null);for(const[r,a]of e.entries()){const s=n[r];s==null?n[r]=LC(a):Array.isArray(s)?s.push(LC(a)):n[r]=[s,LC(a)]}return n}const U1e=z1e(JSON.parse),j1e=F1e(JSON.stringify,JSON.parse);function z1e(t){return e=>{e[0]==="?"&&(e=e.substring(1));const n=D1e(e);for(const r in n){const a=n[r];if(typeof a=="string")try{n[r]=t(a)}catch{}}return n}}function F1e(t,e){const n=typeof e=="function";function r(a){if(typeof a=="object"&&a!==null)try{return t(a)}catch{}else if(n&&typeof a=="string")try{return e(a),t(a)}catch{}return a}return a=>{const s=L1e(a,r);return s?`?${s}`:""}}const Bl="__root__";function _A(t){if(t.statusCode=t.statusCode||t.code||307,!t._builtLocation&&!t.reloadDocument&&typeof t.href=="string")try{new URL(t.href),t.reloadDocument=!0}catch{}const e=new Headers(t.headers);t.href&&e.get("Location")===null&&e.set("Location",t.href);const n=new Response(null,{status:t.statusCode,headers:e});if(n.options=t,t.throw)throw n;return n}function $r(t){return t instanceof Response&&!!t.options}function $1e(t){return{input:({url:e})=>{for(const n of t)e=I3(n,e);return e},output:({url:e})=>{for(let n=t.length-1;n>=0;n--)e=MF(t[n],e);return e}}}function B1e(t){const e=OF(t.basepath),n=`/${e}`,r=t.caseSensitive?n:n.toLowerCase(),a=`${r}/`;return{input:({url:s})=>{const i=t.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=x0(["/",e,s.pathname]),s)}}function I3(t,e){const n=t?.input?.({url:e});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return e}function MF(t,e){const n=t?.output?.({url:e});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return e}function H1e(t,e){const{createMutableStore:n,createReadonlyStore:r,batch:a,init:s}=e,i=new Map,u=new Map,c=new Map,f=n(t.status),h=n(t.loadedAt),m=n(t.isLoading),g=n(t.isTransitioning),y=n(t.location),S=n(t.resolvedLocation),w=n(t.statusCode),x=n(t.redirect),E=n([]),A=n([]),k=n([]),I=r(()=>DC(i,E.get())),N=r(()=>DC(u,A.get())),O=r(()=>DC(c,k.get())),T=r(()=>E.get()[0]),P=r(()=>E.get().some(X=>i.get(X)?.get().status==="pending")),D=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:I.get(),location:y.get(),resolvedLocation:S.get(),statusCode:w.get(),redirect:x.get()})),U=Yh(64);function j(X){let ae=U.get(X);return ae||(ae=r(()=>{const he=E.get();for(const xe of he){const z=i.get(xe);if(z&&z.routeId===X)return z.get()}}),U.set(X,ae)),ae}const $={status:f,loadedAt:h,isLoading:m,isTransitioning:g,location:y,resolvedLocation:S,statusCode:w,redirect:x,matchesId:E,pendingIds:A,cachedIds:k,matches:I,pendingMatches:N,cachedMatches:O,firstId:T,hasPending:P,matchRouteDeps:D,matchStores:i,pendingMatchStores:u,cachedMatchStores:c,__store:q,getRouteMatchStore:j,setMatches:Z,setPending:ne,setCached:H};Z(t.matches),s?.($);function Z(X){UC(X,i,E,n,a)}function ne(X){UC(X,u,A,n,a)}function H(X){UC(X,c,k,n,a)}return $}function DC(t,e){const n=[];for(const r of e){const a=t.get(r);a&&n.push(a.get())}return n}function UC(t,e,n,r,a){const s=t.map(u=>u.id),i=new Set(s);a(()=>{for(const u of e.keys())i.has(u)||e.delete(u);for(const u of t){const c=e.get(u.id);if(!c){const f=r(u);f.routeId=u.routeId,e.set(u.id,f);continue}c.routeId=u.routeId,c.get()!==u&&c.set(u)}p1e(n.get(),s)||n.set(s)})}const T3=t=>{if(!t.rendered)return t.rendered=!0,t.onReady?.()},q1e=t=>t.stores.matchesId.get().some(e=>t.stores.matchStores.get(e)?.get()._forcePending),Hv=(t,e)=>!!(t.preload&&!t.router.stores.matchStores.has(e)),Hl=(t,e,n=!0)=>{const r={...t.router.options.context??{}},a=n?e:e-1;for(let s=0;s<=a;s++){const i=t.matches[s];if(!i)continue;const u=t.router.getMatch(i.id);u&&Object.assign(r,u.__routeContext,u.__beforeLoadContext)}return r},q7=(t,e)=>{if(!t.matches.length)return;const n=e.routeId,r=t.matches.findIndex(i=>i.routeId===t.router.routeTree.id),a=r>=0?r:0;let s=n?t.matches.findIndex(i=>i.routeId===n):t.firstBadMatchIndex??t.matches.length-1;s<0&&(s=a);for(let i=s;i>=0;i--){const u=t.matches[i];if(t.router.looseRoutesById[u.routeId].options.notFoundComponent)return i}return n?s:a},Pi=(t,e,n)=>{if(!(!$r(n)&&!br(n)))throw $r(n)&&n.redirectHandled&&!n.options.reloadDocument||(e&&(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.loaderPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loaderPromise=void 0,e._nonReactive.error=n,t.updateMatch(e.id,r=>({...r,status:$r(n)?"redirected":br(n)?"notFound":r.status==="pending"?"success":r.status,context:Hl(t,e.index),isFetching:!1,error:n})),br(n)&&!n.routeId&&(n.routeId=e.routeId),e._nonReactive.loadPromise?.resolve()),$r(n)&&(t.rendered=!0,n.options._fromLocation=t.location,n.redirectHandled=!0,n=t.router.resolveRedirect(n))),n},PF=(t,e)=>{const n=t.router.getMatch(e);return!!(!n||n._nonReactive.dehydrated)},W7=(t,e,n)=>{const r=Hl(t,n);t.updateMatch(e,a=>({...a,context:r}))},Kf=(t,e,n)=>{const{id:r,routeId:a}=t.matches[e],s=t.router.looseRoutesById[a];if(n instanceof Promise)throw n;t.firstBadMatchIndex??=e,Pi(t,t.router.getMatch(r),n);try{s.options.onError?.(n)}catch(i){n=i,Pi(t,t.router.getMatch(r),n)}t.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})),!t.preload&&!$r(n)&&!br(n)&&(t.serialError??=n)},LF=(t,e,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const a=n.options.pendingMs??t.router.options.defaultPendingMs;if(t.onReady&&!Hv(t,e)&&(n.options.loader||n.options.beforeLoad||UF(n))&&typeof a=="number"&&a!==1/0&&(n.options.pendingComponent??t.router.options?.defaultPendingComponent)){const s=setTimeout(()=>{T3(t)},a);r._nonReactive.pendingTimeout=s}},W1e=(t,e,n)=>{const r=t.router.getMatch(e);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;LF(t,e,n,r);const a=()=>{const s=t.router.getMatch(e);s.preload&&(s.status==="redirected"||s.status==="notFound")&&Pi(t,s,s.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(a):a()},V1e=(t,e,n,r)=>{const a=t.router.getMatch(e);let s=a._nonReactive.loadPromise;a._nonReactive.loadPromise=rd(()=>{s?.resolve(),s=void 0});const{paramsError:i,searchError:u}=a;i&&Kf(t,n,i),u&&Kf(t,n,u),LF(t,e,r,a);const c=new AbortController;let f=!1;const h=()=>{f||(f=!0,t.updateMatch(e,I=>({...I,isFetching:"beforeLoad",fetchCount:I.fetchCount+1,abortController:c})))},m=()=>{a._nonReactive.beforeLoadPromise?.resolve(),a._nonReactive.beforeLoadPromise=void 0,t.updateMatch(e,I=>({...I,isFetching:!1}))};if(!r.options.beforeLoad){t.router.batch(()=>{h(),m()});return}a._nonReactive.beforeLoadPromise=rd();const g={...Hl(t,n,!1),...a.__routeContext},{search:y,params:S,cause:w}=a,x=Hv(t,e),E={search:y,abortController:c,params:S,preload:x,context:g,location:t.location,navigate:I=>t.router.navigate({...I,_fromLocation:t.location}),buildLocation:t.router.buildLocation,cause:x?"preload":w,matches:t.matches,routeId:r.id,...t.router.options.additionalContext},A=I=>{if(I===void 0){t.router.batch(()=>{h(),m()});return}($r(I)||br(I))&&(h(),Kf(t,n,I)),t.router.batch(()=>{h(),t.updateMatch(e,N=>({...N,__beforeLoadContext:I})),m()})};let k;try{if(k=r.options.beforeLoad(E),Kh(k))return h(),k.catch(I=>{Kf(t,n,I)}).then(A)}catch(I){h(),Kf(t,n,I)}A(k)},G1e=(t,e)=>{const{id:n,routeId:r}=t.matches[e],a=t.router.looseRoutesById[r],s=()=>u(),i=()=>V1e(t,n,e,a),u=()=>{if(PF(t,n))return;const c=W1e(t,n,a);return Kh(c)?c.then(i):i()};return s()},K1e=(t,e,n)=>{const r=t.router.getMatch(e);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const a={ssr:t.router.options.ssr,matches:t.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}))},DF=(t,e,n,r,a)=>{const s=e[r-1],{params:i,loaderDeps:u,abortController:c,cause:f}=t.router.getMatch(n),h=Hl(t,r),m=Hv(t,n);return{params:i,deps:u,preload:!!m,parentMatchPromise:s,abortController:c,context:h,location:t.location,navigate:g=>t.router.navigate({...g,_fromLocation:t.location}),cause:m?"preload":f,route:a,...t.router.options.additionalContext}},V7=async(t,e,n,r,a)=>{try{const s=t.router.getMatch(n);try{(!(CF??t.router.isServer)||s.ssr===!0)&&Zh(a);const i=a.options.loader,u=typeof i=="function"?i:i?.handler,c=u?.(DF(t,e,n,r,a)),f=!!u&&Kh(c);if((f||a._lazyPromise||a._componentsPromise||a.options.head||a.options.scripts||a.options.headers||s._nonReactive.minPendingPromise)&&t.updateMatch(n,m=>({...m,isFetching:"loader"})),u){const m=f?await c:c;Pi(t,t.router.getMatch(n),m),m!==void 0&&t.updateMatch(n,g=>({...g,loaderData:m}))}a._lazyPromise&&await a._lazyPromise;const h=s._nonReactive.minPendingPromise;h&&await h,a._componentsPromise&&await a._componentsPromise,t.updateMatch(n,m=>({...m,error:void 0,context:Hl(t,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}t.updateMatch(n,f=>({...f,status:f.status==="pending"?"success":f.status,isFetching:!1,context:Hl(t,r)}));return}const c=s._nonReactive.minPendingPromise;c&&await c,br(i)&&await a.options.notFoundComponent?.preload?.(),Pi(t,t.router.getMatch(n),i);try{a.options.onError?.(i)}catch(f){u=f,Pi(t,t.router.getMatch(n),f)}!$r(u)&&!br(u)&&await Zh(a,["errorComponent"]),t.updateMatch(n,f=>({...f,error:u,context:Hl(t,r),status:"error",isFetching:!1}))}}catch(s){const i=t.router.getMatch(n);i&&(i._nonReactive.loaderPromise=void 0),Pi(t,i,s)}},Y1e=async(t,e,n)=>{async function r(y,S,w,x,E){const A=Date.now()-S.updatedAt,k=y?E.options.preloadStaleTime??t.router.options.defaultPreloadStaleTime??3e4:E.options.staleTime??t.router.options.defaultStaleTime??0,I=E.options.shouldReload,N=typeof I=="function"?I(DF(t,e,a,n,E)):I,{status:O,invalid:T}=x,P=A>=k&&(!!t.forceStaleReload||x.cause==="enter"||w!==void 0&&w!==x.id);i=O==="success"&&(T||(N??P)),y&&E.options.preload===!1||(i&&!t.sync&&h?(u=!0,(async()=>{try{await V7(t,e,a,n,E);const D=t.router.getMatch(a);D._nonReactive.loaderPromise?.resolve(),D._nonReactive.loadPromise?.resolve(),D._nonReactive.loaderPromise=void 0,D._nonReactive.loadPromise=void 0}catch(D){$r(D)&&await t.router.navigate(D.options)}})()):O!=="success"||i?await V7(t,e,a,n,E):W7(t,a,n))}const{id:a,routeId:s}=t.matches[n];let i=!1,u=!1;const c=t.router.looseRoutesById[s],f=c.options.loader,h=((typeof f=="function"?void 0:f?.staleReloadMode)??t.router.options.defaultStaleReloadMode)!=="blocking";if(PF(t,a)){if(!t.router.getMatch(a))return t.matches[n];W7(t,a,n)}else{const y=t.router.getMatch(a),S=t.router.stores.matchesId.get()[n],w=(S&&t.router.stores.matchStores.get(S)||null)?.routeId===s?S:t.router.stores.matches.get().find(E=>E.routeId===s)?.id,x=Hv(t,a);if(y._nonReactive.loaderPromise){if(y.status==="success"&&!t.sync&&!y.preload&&h)return y;await y._nonReactive.loaderPromise;const E=t.router.getMatch(a),A=E._nonReactive.error||E.error;A&&Pi(t,E,A),E.status==="pending"&&await r(x,y,w,E,c)}else{const E=x&&!t.router.stores.matchStores.has(a),A=t.router.getMatch(a);A._nonReactive.loaderPromise=rd(),E!==A.preload&&t.updateMatch(a,k=>({...k,preload:E})),await r(x,y,w,A,c)}}const m=t.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?(t.updateMatch(a,y=>({...y,isFetching:g,invalid:!1})),t.router.getMatch(a)):m};async function G7(t){const e=t,n=[];q1e(e.router)&&T3(e);let r;for(let g=0;g<e.matches.length;g++){try{const y=G1e(e,g);Kh(y)&&await y}catch(y){if($r(y))throw y;if(br(y))r=y;else if(!e.preload)throw y;break}if(e.serialError||e.firstBadMatchIndex!=null)break}const a=e.firstBadMatchIndex??e.matches.length,s=r&&!e.preload?q7(e,r):void 0,i=r&&e.preload?0:s!==void 0?Math.min(s+1,a):a;let u,c;for(let g=0;g<i;g++)n.push(Y1e(e,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($r(S))throw S;br(S)?u??=S:c??=S}if(c!==void 0)throw c}const f=u??(r&&!e.preload?r:void 0);let h=e.firstBadMatchIndex!==void 0?e.firstBadMatchIndex:e.matches.length-1;if(!f&&r&&e.preload)return e.matches;if(f){const g=q7(e,f);g===void 0&&bo();const y=e.matches[g],S=e.router.looseRoutesById[y.routeId],w=e.router.options?.defaultNotFoundComponent;!S.options.notFoundComponent&&w&&(S.options.notFoundComponent=w),f.routeId=y.routeId;const x=y.routeId===e.router.routeTree.id;e.updateMatch(y.id,E=>({...E,...x?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:f},isFetching:!1})),h=g,await Zh(S,["notFoundComponent"])}else if(!e.preload){const g=e.matches[0];g.globalNotFound||e.router.getMatch(g.id)?.globalNotFound&&e.updateMatch(g.id,y=>({...y,globalNotFound:!1,error:void 0}))}if(e.serialError&&e.firstBadMatchIndex!==void 0){const g=e.router.looseRoutesById[e.matches[e.firstBadMatchIndex].routeId];await Zh(g,["errorComponent"])}for(let g=0;g<=h;g++){const{id:y,routeId:S}=e.matches[g],w=e.router.looseRoutesById[S];try{const x=K1e(e,y,w);if(x){const E=await x;e.updateMatch(y,A=>({...A,...E}))}}catch(x){console.error(`Error executing head for route ${S}:`,x)}}const m=T3(e);if(Kh(m)&&await m,f)throw f;if(e.serialError&&!e.preload&&!e.onReady)throw e.serialError;return e.matches}function K7(t,e){const n=e.map(r=>t.options[r]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Zh(t,e=E0){!t._lazyLoaded&&t._lazyPromise===void 0&&(t.lazyFn?t._lazyPromise=t.lazyFn().then(r=>{const{id:a,...s}=r.options;Object.assign(t.options,s),t._lazyLoaded=!0,t._lazyPromise=void 0}):t._lazyLoaded=!0);const n=()=>t._componentsLoaded?void 0:e===E0?(()=>{if(t._componentsPromise===void 0){const r=K7(t,E0);r?t._componentsPromise=r.then(()=>{t._componentsLoaded=!0,t._componentsPromise=void 0}):t._componentsLoaded=!0}return t._componentsPromise})():K7(t,e);return t._lazyPromise?t._lazyPromise.then(n):n()}function UF(t){for(const e of E0)if(t.options[e]?.preload)return!0;return!1}const E0=["component","errorComponent","pendingComponent","notFoundComponent"];var Ui="__TSR_index",Y7="popstate",Z7="beforeunload";function Z1e(t){let e=t.getLocation();const n=new Set,r=i=>{e=t.getLocation(),n.forEach(u=>u({location:e,action:i}))},a=i=>{t.notifyOnIndexChange??!0?r(i):e=t.getLocation()},s=async({task:i,navigateOpts:u,...c})=>{if(u?.ignoreBlocker??!1){i();return}const f=t.getBlockers?.()??[],h=c.type==="PUSH"||c.type==="REPLACE";if(typeof document<"u"&&f.length&&h)for(const m of f){const g=u1(c.path,c.state);if(await m.blockerFn({currentLocation:e,nextLocation:g,action:c.type})){t.onBlocked?.();return}}i()};return{get location(){return e},get length(){return t.getLength()},subscribers:n,subscribe:i=>(n.add(i),()=>{n.delete(i)}),push:(i,u,c)=>{const f=e.state[Ui];u=X7(f+1,u),s({task:()=>{t.pushState(i,u),r({type:"PUSH"})},navigateOpts:c,type:"PUSH",path:i,state:u})},replace:(i,u,c)=>{const f=e.state[Ui];u=X7(f,u),s({task:()=>{t.replaceState(i,u),r({type:"REPLACE"})},navigateOpts:c,type:"REPLACE",path:i,state:u})},go:(i,u)=>{s({task:()=>{t.go(i),a({type:"GO",index:i})},navigateOpts:u,type:"GO"})},back:i=>{s({task:()=>{t.back(i?.ignoreBlocker??!1),a({type:"BACK"})},navigateOpts:i,type:"BACK"})},forward:i=>{s({task:()=>{t.forward(i?.ignoreBlocker??!1),a({type:"FORWARD"})},navigateOpts:i,type:"FORWARD"})},canGoBack:()=>e.state[Ui]!==0,createHref:i=>t.createHref(i),block:i=>{if(!t.setBlockers)return()=>{};const u=t.getBlockers?.()??[];return t.setBlockers([...u,i]),()=>{const c=t.getBlockers?.()??[];t.setBlockers?.(c.filter(f=>f!==i))}},flush:()=>t.flush?.(),destroy:()=>t.destroy?.(),notify:r}}function X7(t,e){e||(e={});const n=kA();return{...e,key:n,__TSR_key:n,[Ui]:t}}function X1e(t){const e=typeof document<"u"?window:void 0,n=e.history.pushState,r=e.history.replaceState;let a=[];const s=()=>a,i=P=>a=P,u=(P=>P),c=(()=>u1(`${e.location.pathname}${e.location.search}${e.location.hash}`,e.history.state));if(!e.history.state?.__TSR_key&&!e.history.state?.key){const P=kA();e.history.replaceState({[Ui]:0,key:P,__TSR_key:P},"")}let f=c(),h,m=!1,g=!1,y=!1,S=!1;const w=()=>f;let x,E;const A=()=>{x&&(T._ignoreSubscribers=!0,(x.isPush?e.history.pushState:e.history.replaceState)(x.state,"",x.href),T._ignoreSubscribers=!1,x=void 0,E=void 0,h=void 0)},k=(P,D,q)=>{const U=u(D);E||(h=f),f=u1(D,q),x={href:U,state:q,isPush:x?.isPush||P==="push"},E||(E=Promise.resolve().then(()=>A()))},I=P=>{f=c(),T.notify({type:P})},N=async()=>{if(g){g=!1;return}const P=c(),D=P.state[Ui]-f.state[Ui],q=D===1,U=D===-1,j=!q&&!U||m;m=!1;const $=j?"GO":U?"BACK":"FORWARD",Z=j?{type:"GO",index:D}:{type:U?"BACK":"FORWARD"};if(y)y=!1;else{const ne=s();if(typeof document<"u"&&ne.length){for(const H of ne)if(await H.blockerFn({currentLocation:f,nextLocation:P,action:$})){g=!0,e.history.go(1),T.notify(Z);return}}}f=c(),T.notify(Z)},O=P=>{if(S){S=!1;return}let D=!1;const q=s();if(typeof document<"u"&&q.length)for(const U of q){const j=U.enableBeforeUnload??!0;if(j===!0){D=!0;break}if(typeof j=="function"&&j()===!0){D=!0;break}}if(D)return P.preventDefault(),P.returnValue=""},T=Z1e({getLocation:w,getLength:()=>e.history.length,pushState:(P,D)=>k("push",P,D),replaceState:(P,D)=>k("replace",P,D),back:P=>(P&&(y=!0),S=!0,e.history.back()),forward:P=>{P&&(y=!0),S=!0,e.history.forward()},go:P=>{m=!0,e.history.go(P)},createHref:P=>u(P),flush:A,destroy:()=>{e.history.pushState=n,e.history.replaceState=r,e.removeEventListener(Z7,O,{capture:!0}),e.removeEventListener(Y7,N)},onBlocked:()=>{h&&f!==h&&(f=h)},getBlockers:s,setBlockers:i,notifyOnIndexChange:!1});return e.addEventListener(Z7,O,{capture:!0}),e.addEventListener(Y7,N),e.history.pushState=function(...P){const D=n.apply(e.history,P);return T._ignoreSubscribers||I("PUSH"),D},e.history.replaceState=function(...P){const D=r.apply(e.history,P);return T._ignoreSubscribers||I("REPLACE"),D},T}function Q1e(t){let e=t.replace(/[\x00-\x1f\x7f]/g,"");return e.startsWith("//")&&(e="/"+e.replace(/^\/+/,"")),e}function u1(t,e){const n=Q1e(t),r=n.indexOf("#"),a=n.indexOf("?"),s=kA();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:e||{[Ui]:0,key:s,__TSR_key:s}}}function kA(){return(Math.random()+1).toString(36).substring(7)}function Kc(t,e){const n=e,r=t;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var J1e=class{constructor(t,e){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=A1e(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=X1e()),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=Yh(1e3),h=this.buildRouteTree(),this.setRoutes(h)}if(!this.stores&&this.latestLocation){const h=this.getStoreConfig(this);this.batch=h.batch,this.stores=H1e(tve(this.latestLocation),h),P1e(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=OF(c);m&&m!=="/"&&h.push(B1e({basepath:c})),f&&h.push(f),this.rewrite=h.length===0?void 0:h.length===1?h[0]:$1e(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=w1e(this.routeTree,this.options.caseSensitive,(r,a)=>{r.init({originalIndex:a})});return this.options.routeMasks&&g1e(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 E=this.options.parseSearch(f),A=this.options.stringifySearch(E);return{href:c+A+h,publicHref:c+A+h,pathname:Gf(c).path,external:!1,searchStr:A,search:_l(r?.search,E),hash:Gf(h.slice(1)).path,state:Pl(r?.state,g)}}const y=new URL(m,this.origin),S=I3(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:Gf(S.pathname).path,external:!!this.rewrite&&S.origin!==this.origin,searchStr:x,search:_l(r?.search,w),hash:Gf(S.hash.slice(1)).path,state:Pl(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)=>k1e({base:n,to:r.includes("//")?EA(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=>nve({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,Ml(s.params,m)),w=this.routesByPath[vo(y)];let x;if(w)x=this.getRouteBranch(w);else if(y.includes("$"))x=[];else{const U=this.getMatchedRoutes(y);x=U.matchedRoutes,this.options.notFoundRoute&&(!U.foundRoute||U.foundRoute.path!=="/"&&U.routeParams["**"])&&(x=[...x,this.options.notFoundRoute])}if(x.length&&_F(S))for(const U of x){const j=U.options.params?.stringify??U.options.stringifyParams;if(j)try{Object.assign(S,j(S))}catch{}}const E=n.leaveParams?y:Gf(F7({path:y,params:S,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let A=h;if(n._includeValidateSearch&&this.options.search?.strict){const U={};x.forEach(j=>{if(j.options.validateSearch)try{Object.assign(U,_0(j.options.validateSearch,{...U,...A}))}catch{}}),A=U}A=rve({search:A,dest:s,destRoutes:x,_includeValidateSearch:n._includeValidateSearch}),A=_l(h,A);const k=this.options.stringifySearch(A),I=s.hash===!0?i.hash:s.hash?Ml(s.hash,i.hash):void 0,N=I?`#${I}`:"";let O=s.state===!0?i.state:s.state?Ml(s.state,i.state):{};O=Pl(i.state,O);const T=`${E}${k}${N}`;let P,D,q=!1;if(this.rewrite){const U=new URL(T,this.origin),j=MF(this.rewrite,U);P=U.href.replace(U.origin,""),j.origin!==this.origin?(D=j.href,q=!0):D=j.pathname+j.search+j.hash}else P=h1e(T),D=P;return{publicHref:D,href:P,pathname:E,search:A,searchStr:k,state:O,hash:I??"",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=v1e(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,Ml(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=$l(a.state,this.latestLocation.state);return f.forEach(m=>{delete a.state[m]}),h},u=vo(this.latestLocation.href)===vo(a.href);let c=this.commitLocationPromise;if(this.commitLocationPromise=rd(()=>{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=u1(u,{__TSR_index:n?m:m+1}),y=new URL(g.pathname,this.origin);c.to=I3(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(i1(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=Kc(h,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...m}),this.emit({type:"onBeforeLoad",...m}),await G7({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(),E=x.length,A=this.stores.matches.get();g=E?A.filter(N=>!this.stores.pendingMatchStores.has(N.id)):null;const k=new Set;for(const N of this.stores.pendingMatchStores.values())N.routeId&&k.add(N.routeId);const I=new Set;for(const N of this.stores.matchStores.values())N.routeId&&I.add(N.routeId);y=E?A.filter(N=>!k.has(N.routeId)):null,S=E?x.filter(N=>!I.has(N.routeId)):null,w=E?x.filter(N=>I.has(N.routeId)):A,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),E&&(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,E]of[[y,"onLeave"],[S,"onEnter"],[w,"onStay"]])if(x)for(const A of x)this.looseRoutesById[A.routeId].options[E]?.(A)})})}})}catch(h){$r(h)?(a=h,this.navigate({...a.options,replace:!0,ignoreBlocker:!0})):br(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(Kc(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&&i1(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=Zh,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 G7({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($r(c))return c.options.reloadDocument?void 0:await this.preloadRoute({...c.options,_fromLocation:r});br(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=y1e(s.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,i.pathname,this.processedTree);return!u||n.params&&!$l(u.rawParams,n.params,{partial:!0})?!1:r?.includeSearch??!0?$l(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=e,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??j1e,parseSearch:t.parseSearch??U1e,protocolAllowlist:t.protocolAllowlist??f1e}),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:t,routesByPath:e,processedTree:n}){this.routesById=t,this.routesByPath=e,this.processedTree=n;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(t){let e=this.routeBranchCache.get(t);return e||(e=IF(t),this.routeBranchCache.set(t,e)),e}get looseRoutesById(){return this.routesById}getParentContext(t){return t?.id?t.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(t,e){const n=this.getMatchedRoutes(t.pathname),{foundRoute:r,routeParams:a}=n;let{matchedRoutes:s}=n,i=!1;(r?r.path!=="/"&&a["**"]:vo(t.pathname))&&(this.options.notFoundRoute?s=[...s,this.options.notFoundRoute]:i=!0);const u=i?sve(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 j=g?.search??t.search,$=g?._strictSearch??void 0;try{const Z=_0(m.options.validateSearch,{...j})??void 0;y={...j,...Z},S={...$,...Z},w=void 0}catch(Z){let ne=Z;if(Z instanceof c1||(ne=new c1(Z.message,{cause:Z})),e?.throwOnError)throw ne;y=j,S={},w=ne}}const x=m.options.loaderDeps?.({search:y})??"",E=x?JSON.stringify(x):"",{interpolatedPath:A,usedParams:k}=F7({path:m.fullPath,params:a,decoder:this.pathParamsDecoder,server:this.isServer}),I=m.id+A+E,N=this.getMatch(I),O=f.get(m.id),T=N?._strictParams??k;let P;if(!N)try{Q7(m,T)}catch(j){if(br(j)||$r(j)?P=j:P=new eve(j.message,{cause:j}),e?.throwOnError)throw P}Object.assign(a,T);const D=O?"stay":"enter";let q;if(N)q={...N,cause:D,params:O?.params??a,_strictParams:T,search:_l(O?O.search:N.search,y),_strictSearch:S};else{const j=m.options.loader||m.options.beforeLoad||m.lazyFn||UF(m)?"pending":"success";q={id:I,ssr:m.options.ssr,index:h,routeId:m.id,params:O?.params??a,_strictParams:T,pathname:A,updatedAt:Date.now(),search:O?_l(O.search,y):y,_strictSearch:S,searchError:void 0,status:j,isFetching:!1,error:void 0,paramsError:P,__routeContext:void 0,_nonReactive:{loadPromise:rd()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:D,loaderDeps:O?Pl(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}}e?.preload||(q.globalNotFound=u===m.id),q.searchError=w;const U=this.getParentContext(g);q.context={...U,...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?_l(S.params,a):a,!y){const w=c[h-1],x=this.getParentContext(w);if(g.options.context){const E={deps:m.loaderDeps,params:m.params,context:x??{},location:t,navigate:A=>this.navigate({...A,_fromLocation:t}),buildLocation:this.buildLocation,cause:m.cause,abortController:m.abortController,preload:!!m.preload,matches:c,routeId:g.id};m.__routeContext=g.options.context(E)??void 0}m.context={...x,...m.__routeContext,...m.__beforeLoadContext}}}return c}matchRoutesLightweight(t){const e=Gh(this.stores.matchesId.get()),n=this.lightweightCache.get(t);if(n&&n[0]===e)return n[1];const{matchedRoutes:r,routeParams:a}=this.getMatchedRoutes(t.pathname),s=Gh(r),i={...t.search};for(const m of r)try{Object.assign(i,_0(m.options.validateSearch,i))}catch{}const u=e&&this.stores.matchStores.get(e)?.get(),c=u&&u.routeId===s.id&&u.pathname===t.pathname;let f;if(c)f=u.params;else{const m=Object.assign(Object.create(null),a);for(const g of r)try{Q7(g,m)}catch{}f=m}const h={matchedRoutes:r,fullPath:s.fullPath,search:i,params:f};return this.lightweightCache.set(t,[e,h]),h}},c1=class extends Error{},eve=class extends Error{};function tve(t){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:t,matches:[],statusCode:200}}function _0(t,e){if(t==null)return{};if("~standard"in t){const n=t["~standard"].validate(e);if(n instanceof Promise)throw new c1("Async validation not supported");if(n.issues)throw new c1(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in t?t.parse(e):typeof t=="function"?t(e):{}}function nve({pathname:t,routesById:e,processedTree:n}){const r=Object.create(null),a=vo(t);let s;const i=b1e(a,n,!0);return i&&(s=i.route,Object.assign(r,i.rawParams)),{matchedRoutes:i?.branch||[e.__root__],routeParams:r,foundRoute:s}}function rve({search:t,dest:e,destRoutes:n,_includeValidateSearch:r}){return ave(n)(t,e,r??!1)}function ave(t){let e,n;const r=[];for(const s of t){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=_0(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(!e.search)return{};if(e.search===!0)return i;const f=Ml(e.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 e=u,n=c,a(0,i)}}function sve(t,e){if(t!=="root")for(let n=e.length-1;n>=0;n--){const r=e[n];if(r.children)return r.id}return Bl}function Q7(t,e){const n=t.options.params?.parse??t.options.parseParams;if(n){const r=n(e);if(r===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(e,r)}}const ove="Error preloading route! ☝️";var jF=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(t){if(this.init=e=>{this.originalIndex=e.originalIndex;const n=this.options,r=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=Bl:this.parentRoute||bo();let a=r?Bl:n?.path;a&&a!=="/"&&(a=TF(a));const s=n?.id||a;let i=r?Bl:x0([this.parentRoute.id==="__root__"?"":this.parentRoute.id,s]);a==="__root__"&&(a="/"),i!=="__root__"&&(i=x0(["/",i]));const u=i==="__root__"?"/":x0([this.parentRoute.fullPath,a]);this._path=a,this._id=i,this._fullPath=u,this._to=vo(u)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e=="object"&&e!==null&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>_A({from:this.fullPath,...e}),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},ive=class extends jF{constructor(t){super(t)}};function AA(t){const e=t.errorComponent??RA;return C.jsx(lve,{getResetKey:t.getResetKey,onCatch:t.onCatch,children:({error:n,reset:r})=>n?_.createElement(e,{error:n,reset:r}):t.children})}var lve=class extends _.Component{constructor(...t){super(...t),this.state={error:null}}static getDerivedStateFromProps(t,e){const n=t.getResetKey();return e.error&&e.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidCatch(t,e){this.props.onCatch&&this.props.onCatch(t,e)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function RA({error:t}){const[e,n]=_.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:e?"Hide Error":"Show Error"})]}),C.jsx("div",{style:{height:".25rem"}}),e?C.jsx("div",{children:C.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t.message?C.jsx("code",{children:t.message}):null})}):null]})}function uve({children:t,fallback:e=null}){return zF()?C.jsx(F.Fragment,{children:t}):C.jsx(F.Fragment,{children:e})}function zF(){return F.useSyncExternalStore(cve,()=>!0,()=>!1)}function cve(){return()=>{}}var FF=_.createContext(null);function Yr(t){return _.useContext(FF)}var qv=_.createContext(void 0),dve=_.createContext(void 0),fn=(t=>(t[t.None=0]="None",t[t.Mutable=1]="Mutable",t[t.Watching=2]="Watching",t[t.RecursedCheck=4]="RecursedCheck",t[t.Recursed=8]="Recursed",t[t.Dirty=16]="Dirty",t[t.Pending=32]="Pending",t))(fn||{});function fve({update:t,notify:e,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&&e(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(t(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,E=x.nextSub!==void 0;if(E?(f=m.value,m=m.prev):f=x,y){if(t(h)){E&&u(x),h=f.sub;continue}y=!1}else h.flags&=-33;h=f.sub;const A=f.nextDep;if(A!==void 0){f=A;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&&e(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 hve(t,e,n){const r=typeof t=="object",a=r?t:void 0;return{next:(r?t.next:t)?.bind(a),error:(r?t.error:e)?.bind(a),complete:(r?t.complete:n)?.bind(a)}}const O3=[];let k0=0;const{link:J7,unlink:pve,propagate:mve,checkDirty:$F,shallowPropagate:eP}=fve({update(t){return t._update()},notify(t){O3[N3++]=t,t.flags&=~fn.Watching},unwatched(t){t.depsTail!==void 0&&(t.depsTail=void 0,t.flags=fn.Mutable|fn.Dirty,d1(t))}});let _g=0,N3=0,Ss,M3=0;function BF(t){try{++M3,t()}finally{--M3||HF()}}function d1(t){const e=t.depsTail;let n=e!==void 0?e.nextDep:t.deps;for(;n!==void 0;)n=pve(n,t)}function HF(){if(!(M3>0)){for(;_g<N3;){const t=O3[_g];O3[_g++]=void 0,t.notify()}_g=0,N3=0}}function tP(t,e){const n=typeof t=="function",r=t,a={_snapshot:n?void 0:t,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?fn.None:fn.Mutable,get(){return Ss!==void 0&&J7(a,Ss,k0),a._snapshot},subscribe(s){const i=hve(s),u={current:!1},c=gve(()=>{a.get(),u.current?i.next?.(a._snapshot):u.current=!0});return{unsubscribe:()=>{c.stop()}}},_update(s){const i=Ss,u=e?.compare??Object.is;if(n)Ss=a,++k0,a.depsTail=void 0;else if(s===void 0)return!1;n&&(a.flags=fn.Mutable|fn.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{Ss=i,n&&(a.flags&=~fn.RecursedCheck),d1(a)}}};return n?(a.flags=fn.Mutable|fn.Dirty,a.get=function(){const s=a.flags;if(s&fn.Dirty||s&fn.Pending&&$F(a.deps,a)){if(a._update()){const i=a.subs;i!==void 0&&eP(i)}}else s&fn.Pending&&(a.flags=s&~fn.Pending);return Ss!==void 0&&J7(a,Ss,k0),a._snapshot}):a.set=function(s){if(a._update(s)){const i=a.subs;i!==void 0&&(mve(i),eP(i),HF())}},a}function gve(t){const e=()=>{const r=Ss;Ss=n,++k0,n.depsTail=void 0,n.flags=fn.Watching|fn.RecursedCheck;try{return t()}finally{Ss=r,n.flags&=~fn.RecursedCheck,d1(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:fn.Watching|fn.RecursedCheck,notify(){const r=this.flags;r&fn.Dirty||r&fn.Pending&&$F(this.deps,this)?e():this.flags=fn.Watching},stop(){this.flags=fn.None,this.depsTail=void 0,d1(this)}};return e(),n}function vve(t,e){return t===e}function Gr(t,e,n=vve){const r=_.useCallback(i=>{if(!t)return()=>{};const{unsubscribe:u}=t.subscribe(i);return u},[t]),a=_.useCallback(()=>t?.get(),[t]);return $j.useSyncExternalStoreWithSelector(r,a,a,e,n)}var jC={get(){},subscribe(){return{unsubscribe(){}}}};function yve(t,e){const n=_.useRef();return r=>{const a=t?.select?t.select(r):r;return t?.structuralSharing??e.options.defaultStructuralSharing?n.current=Pl(n.current,a):a}}function gu(t){const e=Yr(),n=_.useContext(t.from?dve:qv),r=t.from?e.stores.getRouteMatchStore(t.from):e.stores.matchStores.get(n),a=yve(t,e),s=Gr(r??jC,i=>i?a(i):jC);if(s!==jC)return s;(t.shouldThrow??!0)&&bo()}function qF(t){return gu({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.loaderData):e.loaderData})}function WF(t){const{select:e,...n}=t;return gu({...n,select:r=>e?e(r.loaderDeps):r.loaderDeps})}function VF(t){return gu({from:t.from,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,strict:t.strict,select:e=>{const n=t.strict===!1?e.params:e._strictParams;return t.select?t.select(n):n}})}function Wv(t){return gu({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.search):e.search})}function Rp(t){const e=Yr();return _.useCallback(n=>e.navigate({...n,from:n.from??t?.from}),[t?.from,e])}function L5e(t){const e=Yr(),n=Rp(),r=_.useRef(null);return Dc(()=>{r.current!==t&&(n(t),r.current=t)},[e,t,n]),null}function GF(t){return gu({...t,select:e=>t.select?t.select(e.context):e.context})}function bve(t,e){const n=Yr(),r=o1e(e),{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:E,disabled:A,style:k,className:I,onClick:N,onBlur:O,onFocus:T,onMouseEnter:P,onMouseLeave:D,onTouchStart:q,ignoreBlocker:U,params:j,search:$,hash:Z,state:ne,mask:H,reloadDocument:X,unsafeRelative:ae,from:he,_fromLocation:xe,...z}=t,V=zF(),K=_.useMemo(()=>t,[n,t.from,t._fromLocation,t.hash,t.to,t.search,t.params,t.state,t.mask,t.unsafeRelative]),J=Gr(n.stores.location,pt=>pt,(pt,nn)=>pt.href===nn.href),G=_.useMemo(()=>{const pt={_fromLocation:J,...K};return n.buildLocation(pt)},[n,J,K]),ue=G.maskedLocation?G.maskedLocation.publicHref:G.publicHref,oe=G.maskedLocation?G.maskedLocation.external:G.external,ce=_.useMemo(()=>_ve(ue,oe,n.history,A),[A,oe,ue,n.history]),be=_.useMemo(()=>{if(ce?.external)return i1(ce.href,n.protocolAllowlist)?void 0:ce.href;if(!kve(u)&&!(typeof u!="string"||u.indexOf(":")===-1))try{return new URL(u),i1(u,n.protocolAllowlist)?void 0:u}catch{}},[u,ce,n.protocolAllowlist]),Qe=_.useMemo(()=>{if(be)return!1;if(i?.exact){if(!_1e(J.pathname,G.pathname,n.basepath))return!1}else{const pt=l1(J.pathname,n.basepath),nn=l1(G.pathname,n.basepath);if(!(pt.startsWith(nn)&&(pt.length===nn.length||pt[nn.length]==="/")))return!1}return(i?.includeSearch??!0)&&!$l(J.search,G.search,{partial:!i?.exact,ignoreUndefined:!i?.explicitUndefined})?!1:i?.includeHash?V&&J.hash===G.hash:!0},[i?.exact,i?.explicitUndefined,i?.includeHash,i?.includeSearch,J,be,V,G.hash,G.pathname,G.search,n.basepath]),Le=Qe?Ml(a,{})??Sve:zC,De=Qe?zC:Ml(s,{})??zC,je=[I,Le.className,De.className].filter(Boolean).join(" "),Ee=(k||Le.style||De.style)&&{...k,...Le.style,...De.style},[Ut,Te]=_.useState(!1),Bn=_.useRef(!1),Zt=t.reloadDocument||be?!1:c??n.options.defaultPreload,Ln=f??n.options.defaultPreloadDelay??0,dr=_.useCallback(()=>{n.preloadRoute({...K,_builtLocation:G}).catch(pt=>{console.warn(pt),console.warn(ove)})},[n,K,G]);s1e(r,_.useCallback(pt=>{pt?.isIntersecting&&dr()},[dr]),Eve,{disabled:!!A||Zt!=="viewport"}),_.useEffect(()=>{Bn.current||!A&&Zt==="render"&&(dr(),Bn.current=!0)},[A,dr,Zt]);const wr=pt=>{const nn=pt.currentTarget.getAttribute("target"),Ir=E!==void 0?E:nn;if(!A&&!Ave(pt)&&!pt.defaultPrevented&&(!Ir||Ir==="_self")&&pt.button===0){pt.preventDefault(),nee.flushSync(()=>{Te(!0)});const La=n.subscribe("onResolved",()=>{La(),Te(!1)});n.navigate({...K,replace:g,resetScroll:S,hashScrollIntoView:m,startTransition:y,viewTransition:w,ignoreBlocker:U})}};if(be)return{...z,ref:r,href:be,...x&&{children:x},...E&&{target:E},...A&&{disabled:A},...k&&{style:k},...I&&{className:I},...N&&{onClick:N},...O&&{onBlur:O},...T&&{onFocus:T},...P&&{onMouseEnter:P},...D&&{onMouseLeave:D},...q&&{onTouchStart:q}};const rs=pt=>{if(A||Zt!=="intent")return;if(!Ln){dr();return}const nn=pt.currentTarget;if(Yf.has(nn))return;const Ir=setTimeout(()=>{Yf.delete(nn),dr()},Ln);Yf.set(nn,Ir)},Do=pt=>{A||Zt!=="intent"||dr()},tn=pt=>{if(A||!Zt||!Ln)return;const nn=pt.currentTarget,Ir=Yf.get(nn);Ir&&(clearTimeout(Ir),Yf.delete(nn))};return{...z,...Le,...De,href:ce?.href,ref:r,onClick:vc([N,wr]),onBlur:vc([O,tn]),onFocus:vc([T,rs]),onMouseEnter:vc([P,rs]),onMouseLeave:vc([D,tn]),onTouchStart:vc([q,Do]),disabled:!!A,target:E,...Ee&&{style:Ee},...je&&{className:je},...A&&wve,...Qe&&xve,...V&&Ut&&Cve}}var zC={},Sve={className:"active"},wve={role:"link","aria-disabled":!0},xve={"data-status":"active","aria-current":"page"},Cve={"data-transitioning":"transitioning"},Yf=new WeakMap,Eve={rootMargin:"100px"},vc=t=>e=>{for(const n of t)if(n){if(e.defaultPrevented)return;n(e)}};function _ve(t,e,n,r){if(!r)return e?{href:t,external:!0}:{href:n.createHref(t)||"/",external:!1}}function kve(t){if(typeof t!="string")return!1;const e=t.charCodeAt(0);return e===47?t.charCodeAt(1)!==47:e===46}function D5e(t){return _.forwardRef(function(n,r){return C.jsx(IA,{...n,_asChild:t,ref:r})})}var IA=_.forwardRef((t,e)=>{const{_asChild:n,...r}=t,{type:a,...s}=bve(r,e),i=typeof r.children=="function"?r.children({isActive:s["data-status"]==="active"}):r.children;if(!n){const{disabled:u,...c}=s;return _.createElement("a",c,i)}return _.createElement(n,s,i)});function Ave(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var Rve=class extends jF{constructor(e){super(e),this.useMatch=n=>gu({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>GF({...n,from:this.id}),this.useSearch=n=>Wv({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>VF({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>WF({...n,from:this.id}),this.useLoaderData=n=>qF({...n,from:this.id}),this.useNavigate=()=>Rp({from:this.fullPath}),this.Link=F.forwardRef((n,r)=>C.jsx(IA,{ref:r,from:this.fullPath,...n}))}};function Ive(t){return new Rve(t)}function Tve(){return t=>Nve(t)}var Ove=class extends ive{constructor(t){super(t),this.useMatch=e=>gu({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>GF({...e,from:this.id}),this.useSearch=e=>Wv({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>VF({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>WF({...e,from:this.id}),this.useLoaderData=e=>qF({...e,from:this.id}),this.useNavigate=()=>Rp({from:this.fullPath}),this.Link=F.forwardRef((e,n)=>C.jsx(IA,{ref:n,from:this.fullPath,...e}))}};function Nve(t){return new Ove(t)}function rt(t){return new Mve(t,{silent:!0}).createRoute}var Mve=class{constructor(t,e){this.path=t,this.createRoute=n=>{const r=Ive(n);return r.isRoot=!1,r},this.silent=e?.silent}};function ht(t,e){let n,r,a,s;const i=()=>(n||(n=t().then(c=>{n=void 0,r=c[e??"default"]}).catch(c=>{if(a=c,u1e(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(M7)M7(i());else throw i();return _.createElement(r,f)};return u.preload=i,u}function Pve(t){const e=Yr(),n=`not-found-${Gr(e.stores.location,r=>r.pathname)}-${Gr(e.stores.status,r=>r)}`;return C.jsx(AA,{getResetKey:()=>n,onCatch:(r,a)=>{if(br(r))t.onCatch?.(r,a);else throw r},errorComponent:({error:r})=>{if(br(r))return t.fallback?.(r);throw r},children:t.children})}function Lve(){return C.jsx("p",{children:"Not Found"})}function Ic(t){return C.jsx(C.Fragment,{children:t.children})}function KF(t,e,n){return e.options.notFoundComponent?C.jsx(e.options.notFoundComponent,{...n}):t.options.defaultNotFoundComponent?C.jsx(t.options.defaultNotFoundComponent,{...n}):C.jsx(Lve,{})}function Dve(t){return null}function Uve(){return Dve(Yr()),null}var jve=(t,e)=>t.routeId===e.routeId&&t._displayPending===e._displayPending,zve=(t,e)=>t[0]===e[0]&&t[1]===e[1],YF=_.memo(function({matchId:e}){const n=Yr(),r=n.stores.matchStores.get(e);r||bo();const a=Gr(n.stores.loadedAt,i=>i),s=Gr(r,i=>i,jve);return C.jsx(Fve,{router:n,matchId:e,resetKey:a,matchState:_.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 Fve({router:t,matchId:e,resetKey:n,matchState:r}){const a=t.routesById[r.routeId],s=a.options.pendingComponent??t.options.defaultPendingComponent,i=s?C.jsx(s,{}):null,u=a.options.errorComponent??t.options.defaultErrorComponent,c=a.options.onCatch??t.options.defaultOnCatch,f=a.isRoot?a.options.notFoundComponent??t.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))?_.Suspense:Ic,g=u?AA:Ic,y=f?Pve:Ic;return C.jsxs(a.isRoot?a.options.shellComponent??Ic:Ic,{children:[C.jsx(qv.Provider,{value:e,children:C.jsx(m,{fallback:i,children:C.jsx(g,{getResetKey:()=>n,errorComponent:u||RA,onCatch:(S,w)=>{if(br(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 _.createElement(f,S)},children:h||r._displayPending?C.jsx(uve,{fallback:i,children:C.jsx(nP,{matchId:e})}):C.jsx(nP,{matchId:e})})})})}),r.parentRouteId===Bl?C.jsxs(C.Fragment,{children:[C.jsx($ve,{}),t.options.scrollRestoration&&CF?C.jsx(Uve,{}):null]}):null]})}function $ve(){const t=Yr(),e=_.useRef();return Dc(()=>{const n=t.stores.resolvedLocation.get(),r=e.current;n&&(!r||r.href!==n.href)&&t.emit({type:"onRendered",...Kc(t.stores.location.get(),r??n)}),e.current=n},[Gr(t.stores.resolvedLocation,n=>n?.state.__TSR_key),t]),null}var nP=_.memo(function({matchId:e}){const n=Yr(),r=(h,m)=>n.getMatch(h.id)?._nonReactive[m]??h._nonReactive[m],a=n.stores.matchStores.get(e);a||bo();const s=Gr(a,h=>h),i=s.routeId,u=n.routesById[i],c=_.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=_.useMemo(()=>{const h=u.options.component??n.options.defaultComponent;return h?C.jsx(h,{},c):C.jsx(ZF,{})},[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=rd();m._nonReactive.minPendingPromise=g,setTimeout(()=>{g.resolve(),m._nonReactive.minPendingPromise=void 0},h)}}throw r(s,"loadPromise")}if(s.status==="notFound")return br(s.error)||bo(),KF(n,u,s.error);if(s.status==="redirected")throw $r(s.error)||bo(),r(s,"loadPromise");if(s.status==="error")throw s.error;return f}),ZF=_.memo(function(){const e=Yr(),n=_.useContext(qv);let r,a=!1,s;{const f=n?e.stores.matchStores.get(n):void 0;[r,a]=Gr(f,h=>[h?.routeId,h?.globalNotFound??!1],zve),s=Gr(e.stores.matchesId,h=>h[h.findIndex(m=>m===n)+1])}const i=r?e.routesById[r]:void 0,u=e.options.defaultPendingComponent?C.jsx(e.options.defaultPendingComponent,{}):null;if(a)return i||bo(),KF(e,i,void 0);if(!s)return null;const c=C.jsx(YF,{matchId:s});return r===Bl?C.jsx(_.Suspense,{fallback:u,children:c}):c});function Bve(){const t=Yr(),e=_.useRef({router:t,mounted:!1}),[n,r]=_.useState(!1),a=Gr(t.stores.isLoading,m=>m),s=Gr(t.stores.hasPending,m=>m),i=OC(a),u=a||n||s,c=OC(u),f=a||s,h=OC(f);return t.startTransition=m=>{r(!0),_.startTransition(()=>{m(),r(!1)})},_.useEffect(()=>{const m=t.history.subscribe(t.load),g=t.buildLocation({to:t.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return vo(t.latestLocation.publicHref)!==vo(g.publicHref)&&t.commitLocation({...g,replace:!0}),()=>{m()}},[t,t.history]),Dc(()=>{if(typeof window<"u"&&t.ssr||e.current.router===t&&e.current.mounted)return;e.current={router:t,mounted:!0},(async()=>{try{await t.load()}catch(g){console.error(g)}})()},[t]),Dc(()=>{i&&!a&&t.emit({type:"onLoad",...Kc(t.stores.location.get(),t.stores.resolvedLocation.get())})},[i,t,a]),Dc(()=>{h&&!f&&t.emit({type:"onBeforeRouteMount",...Kc(t.stores.location.get(),t.stores.resolvedLocation.get())})},[f,h,t]),Dc(()=>{if(c&&!u){const m=Kc(t.stores.location.get(),t.stores.resolvedLocation.get());t.emit({type:"onResolved",...m}),BF(()=>{t.stores.status.set("idle"),t.stores.resolvedLocation.set(t.stores.location.get())})}},[u,c,t]),null}function Hve(){const t=Yr(),e=t.routesById[Bl].options.pendingComponent??t.options.defaultPendingComponent,n=e?C.jsx(e,{}):null,r=C.jsxs(typeof document<"u"&&t.ssr?Ic:_.Suspense,{fallback:n,children:[C.jsx(Bve,{}),C.jsx(qve,{})]});return t.options.InnerWrap?C.jsx(t.options.InnerWrap,{children:r}):r}function qve(){const t=Yr(),e=Gr(t.stores.firstId,a=>a),n=Gr(t.stores.loadedAt,a=>a),r=e?C.jsx(YF,{matchId:e}):null;return C.jsx(qv.Provider,{value:e,children:t.options.disableGlobalCatchBoundary?r:C.jsx(AA,{getResetKey:()=>n,errorComponent:RA,onCatch:void 0,children:r})})}var Wve=t=>({createMutableStore:tP,createReadonlyStore:tP,batch:BF}),Vve=t=>new Gve(t),Gve=class extends J1e{constructor(t){super(t,Wve)}};function Kve({router:t,children:e,...n}){_F(n)&&t.update({...t.options,...n,context:{...t.options.context,...n.context}});const r=C.jsx(FF.Provider,{value:t,children:e});return t.options.Wrap?C.jsx(t.options.Wrap,{children:r}):r}function Yve({router:t,...e}){return C.jsx(Kve,{router:t,...e,children:C.jsx(Hve,{})})}var FC={exports:{}},Zf={},$C={exports:{}},BC={};var rP;function Zve(){return rP||(rP=1,(function(t){function e(H,X){var ae=H.length;H.push(X);e:for(;0<ae;){var he=ae-1>>>1,xe=H[he];if(0<a(xe,X))H[he]=X,H[ae]=xe,ae=he;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var X=H[0],ae=H.pop();if(ae!==X){H[0]=ae;e:for(var he=0,xe=H.length,z=xe>>>1;he<z;){var V=2*(he+1)-1,K=H[V],J=V+1,G=H[J];if(0>a(K,ae))J<xe&&0>a(G,K)?(H[he]=G,H[J]=ae,he=J):(H[he]=K,H[V]=ae,he=V);else if(J<xe&&0>a(G,ae))H[he]=G,H[J]=ae,he=J;else break e}}return X}function a(H,X){var ae=H.sortIndex-X.sortIndex;return ae!==0?ae:H.id-X.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var i=Date,u=i.now();t.unstable_now=function(){return i.now()-u}}var c=[],f=[],h=1,m=null,g=3,y=!1,S=!1,w=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function I(H){for(var X=n(f);X!==null;){if(X.callback===null)r(f);else if(X.startTime<=H)r(f),X.sortIndex=X.expirationTime,e(c,X);else break;X=n(f)}}function N(H){if(w=!1,I(H),!S)if(n(c)!==null)S=!0,O||(O=!0,j());else{var X=n(f);X!==null&&ne(N,X.startTime-H)}}var O=!1,T=-1,P=5,D=-1;function q(){return x?!0:!(t.unstable_now()-D<P)}function U(){if(x=!1,O){var H=t.unstable_now();D=H;var X=!0;try{e:{S=!1,w&&(w=!1,A(T),T=-1),y=!0;var ae=g;try{t:{for(I(H),m=n(c);m!==null&&!(m.expirationTime>H&&q());){var he=m.callback;if(typeof he=="function"){m.callback=null,g=m.priorityLevel;var xe=he(m.expirationTime<=H);if(H=t.unstable_now(),typeof xe=="function"){m.callback=xe,I(H),X=!0;break t}m===n(c)&&r(c),I(H)}else r(c);m=n(c)}if(m!==null)X=!0;else{var z=n(f);z!==null&&ne(N,z.startTime-H),X=!1}}break e}finally{m=null,g=ae,y=!1}X=void 0}}finally{X?j():O=!1}}}var j;if(typeof k=="function")j=function(){k(U)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,Z=$.port2;$.port1.onmessage=U,j=function(){Z.postMessage(null)}}else j=function(){E(U,0)};function ne(H,X){T=E(function(){H(t.unstable_now())},X)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<H?Math.floor(1e3/H):5},t.unstable_getCurrentPriorityLevel=function(){return g},t.unstable_next=function(H){switch(g){case 1:case 2:case 3:var X=3;break;default:X=g}var ae=g;g=X;try{return H()}finally{g=ae}},t.unstable_requestPaint=function(){x=!0},t.unstable_runWithPriority=function(H,X){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var ae=g;g=H;try{return X()}finally{g=ae}},t.unstable_scheduleCallback=function(H,X,ae){var he=t.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?he+ae:he):ae=he,H){case 1:var xe=-1;break;case 2:xe=250;break;case 5:xe=1073741823;break;case 4:xe=1e4;break;default:xe=5e3}return xe=ae+xe,H={id:h++,callback:X,priorityLevel:H,startTime:ae,expirationTime:xe,sortIndex:-1},ae>he?(H.sortIndex=ae,e(f,H),n(c)===null&&H===n(f)&&(w?(A(T),T=-1):w=!0,ne(N,ae-he))):(H.sortIndex=xe,e(c,H),S||y||(S=!0,O||(O=!0,j()))),H},t.unstable_shouldYield=q,t.unstable_wrapCallback=function(H){var X=g;return function(){var ae=g;g=X;try{return H.apply(this,arguments)}finally{g=ae}}}})(BC)),BC}var aP;function Xve(){return aP||(aP=1,$C.exports=Zve()),$C.exports}var sP;function Qve(){if(sP)return Zf;sP=1;var t=Xve(),e=wp(),n=XD();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 R=!1,M=v.child;M;){if(M===d){R=!0,d=v,p=b;break}if(M===p){R=!0,p=v,d=b;break}M=M.sibling}if(!R){for(M=b.child;M;){if(M===d){R=!0,d=b,p=v;break}if(M===p){R=!0,p=b,d=v;break}M=M.sibling}if(!R)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"),E=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),k=Symbol.for("react.context"),I=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"),D=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),U=Symbol.iterator;function j(o){return o===null||typeof o!="object"?null:(o=U&&o[U]||o["@@iterator"],typeof o=="function"?o:null)}var $=Symbol.for("react.client.reference");function Z(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===$?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case w:return"Fragment";case E:return"Profiler";case x:return"StrictMode";case N:return"Suspense";case O:return"SuspenseList";case D:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case S:return"Portal";case k:return o.displayName||"Context";case A:return(o._context.displayName||"Context")+".Consumer";case I: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 ne=Array.isArray,H=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},he=[],xe=-1;function z(o){return{current:o}}function V(o){0>xe||(o.current=he[xe],he[xe]=null,xe--)}function K(o,l){xe++,he[xe]=o.current,o.current=l}var J=z(null),G=z(null),ue=z(null),oe=z(null);function ce(o,l){switch(K(ue,l),K(G,o),K(J,null),l.nodeType){case 9:case 11:o=(o=l.documentElement)&&(o=o.namespaceURI)?k4(o):0;break;default:if(o=l.tagName,l=l.namespaceURI)l=k4(l),o=A4(l,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}V(J),K(J,o)}function be(){V(J),V(G),V(ue)}function Qe(o){o.memoizedState!==null&&K(oe,o);var l=J.current,d=A4(l,o.type);l!==d&&(K(G,o),K(J,d))}function Le(o){G.current===o&&(V(J),V(G)),oe.current===o&&(V(oe),Af._currentValue=ae)}var De,je;function Ee(o){if(De===void 0)try{throw Error()}catch(d){var l=d.stack.trim().match(/\n( *(at )?)/);De=l&&l[1]||"",je=-1<d.stack.indexOf(`
217
+ at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
218
+ `+De+o+je}var Ut=!1;function Te(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 de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(se){var re=se}Reflect.construct(o,[],de)}else{try{de.call()}catch(se){re=se}o.call(de.prototype)}}else{try{throw Error()}catch(se){re=se}(de=o())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(se){if(se&&re&&typeof se.stack=="string")return[se.stack,re.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(),R=b[0],M=b[1];if(R&&M){var B=R.split(`
219
+ `),te=M.split(`
220
+ `);for(v=p=0;p<B.length&&!B[p].includes("DetermineComponentFrameRoot");)p++;for(;v<te.length&&!te[v].includes("DetermineComponentFrameRoot");)v++;if(p===B.length||v===te.length)for(p=B.length-1,v=te.length-1;1<=p&&0<=v&&B[p]!==te[v];)v--;for(;1<=p&&0<=v;p--,v--)if(B[p]!==te[v]){if(p!==1||v!==1)do if(p--,v--,0>v||B[p]!==te[v]){var ie=`
221
+ `+B[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:"")?Ee(d):""}function Bn(o,l){switch(o.tag){case 26:case 27:case 5:return Ee(o.type);case 16:return Ee("Lazy");case 13:return o.child!==l&&l!==null?Ee("Suspense Fallback"):Ee("Suspense");case 19:return Ee("SuspenseList");case 0:case 15:return Te(o.type,!1);case 11:return Te(o.type.render,!1);case 1:return Te(o.type,!0);case 31:return Ee("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 Ln=Object.prototype.hasOwnProperty,dr=t.unstable_scheduleCallback,wr=t.unstable_cancelCallback,rs=t.unstable_shouldYield,Do=t.unstable_requestPaint,tn=t.unstable_now,pt=t.unstable_getCurrentPriorityLevel,nn=t.unstable_ImmediatePriority,Ir=t.unstable_UserBlockingPriority,La=t.unstable_NormalPriority,wu=t.unstable_LowPriority,xu=t.unstable_IdlePriority,Uo=t.log,Cu=t.unstable_setDisableYieldValue,as=null,fr=null;function Da(o){if(typeof Uo=="function"&&Cu(o),fr&&typeof fr.setStrictMode=="function")try{fr.setStrictMode(as,o)}catch{}}var hr=Math.clz32?Math.clz32:jo,Ld=Math.log,Eu=Math.LN2;function jo(o){return o>>>=0,o===0?32:31-(Ld(o)/Eu|0)|0}var xr=256,zo=262144,Ji=4194304;function ss(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 Fo(o,l,d){var p=o.pendingLanes;if(p===0)return 0;var v=0,b=o.suspendedLanes,R=o.pingedLanes;o=o.warmLanes;var M=p&134217727;return M!==0?(p=M&~b,p!==0?v=ss(p):(R&=M,R!==0?v=ss(R):d||(d=M&~o,d!==0&&(v=ss(d))))):(M=p&~b,M!==0?v=ss(M):R!==0?v=ss(R):d||(d=p&~o,d!==0&&(v=ss(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 $o(o,l){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&l)===0}function _u(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 el(){var o=Ji;return Ji<<=1,(Ji&62914560)===0&&(Ji=4194304),o}function Tr(o){for(var l=[],d=0;31>d;d++)l.push(o);return l}function pa(o,l){o.pendingLanes|=l,l!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Dd(o,l,d,p,v,b){var R=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,B=o.expirationTimes,te=o.hiddenUpdates;for(d=R&~d;0<d;){var ie=31-hr(d),de=1<<ie;M[ie]=0,B[ie]=-1;var re=te[ie];if(re!==null)for(te[ie]=null,ie=0;ie<re.length;ie++){var se=re[ie];se!==null&&(se.lane&=-536870913)}d&=~de}p!==0&&ku(o,p,0),b!==0&&v===0&&o.tag!==0&&(o.suspendedLanes|=b&~(R&~l))}function ku(o,l,d){o.pendingLanes|=l,o.suspendedLanes&=~l;var p=31-hr(l);o.entangledLanes|=l,o.entanglements[p]=o.entanglements[p]|1073741824|d&261930}function Up(o,l){var d=o.entangledLanes|=l;for(o=o.entanglements;d;){var p=31-hr(d),v=1<<p;v&l|o[p]&l&&(o[p]|=l),d&=~v}}function Ud(o,l){var d=l&-l;return d=(d&42)!==0?1:tl(d),(d&(o.suspendedLanes|l))!==0?0:d}function tl(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 Au(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Ru(){var o=X.p;return o!==0?o:(o=window.event,o===void 0?32:Z4(o.type))}function jp(o,l){var d=X.p;try{return X.p=o,l()}finally{X.p=d}}var Or=Math.random().toString(36).slice(2),Dn="__reactFiber$"+Or,pr="__reactProps$"+Or,Lt="__reactContainer$"+Or,os="__reactEvents$"+Or,yy="__reactListeners$"+Or,zp="__reactHandles$"+Or,Iu="__reactResources$"+Or,Bo="__reactMarker$"+Or;function Tu(o){delete o[Dn],delete o[pr],delete o[os],delete o[yy],delete o[zp]}function Ho(o){var l=o[Dn];if(l)return l;for(var d=o.parentNode;d;){if(l=d[Lt]||d[Dn]){if(d=l.alternate,l.child!==null||d!==null&&d.child!==null)for(o=P4(o);o!==null;){if(d=o[Dn])return d;o=P4(o)}return l}o=d,d=o.parentNode}return null}function qo(o){if(o=o[Dn]||o[Lt]){var l=o.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return o}return null}function nl(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o.stateNode;throw Error(r(33))}function Wo(o){var l=o[Iu];return l||(l=o[Iu]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Xt(o){o[Bo]=!0}var rl=new Set,is={};function Us(o,l){ma(o,l),ma(o+"Capture",l)}function ma(o,l){for(is[o]=l,o=0;o<l.length;o++)rl.add(l[o])}var by=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]*$"),jd={},zd={};function Ou(o){return Ln.call(zd,o)?!0:Ln.call(jd,o)?!1:by.test(o)?zd[o]=!0:(jd[o]=!0,!1)}function Vo(o,l,d){if(Ou(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 js(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 mr(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 Zr(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Sy(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(R){d=""+R,b.call(this,R)}}),Object.defineProperty(o,l,{enumerable:p.enumerable}),{getValue:function(){return d},setValue:function(R){d=""+R},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function Fd(o){if(!o._valueTracker){var l=Zr(o)?"checked":"value";o._valueTracker=Sy(o,l,""+o[l])}}function $d(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var d=l.getValue(),p="";return o&&(p=Zr(o)?o.checked?"true":"false":o.value),o=p,o!==d?(l.setValue(o),!0):!1}function al(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 Fp=/[\n"\\]/g;function Nr(o){return o.replace(Fp,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function Nu(o,l,d,p,v,b,R,M){o.name="",R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?o.type=R:o.removeAttribute("type"),l!=null?R==="number"?(l===0&&o.value===""||o.value!=l)&&(o.value=""+Hn(l)):o.value!==""+Hn(l)&&(o.value=""+Hn(l)):R!=="submit"&&R!=="reset"||o.removeAttribute("value"),l!=null?Bd(o,R,Hn(l)):d!=null?Bd(o,R,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 $p(o,l,d,p,v,b,R,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)){Fd(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,R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(o.name=R),Fd(o)}function Bd(o,l,d){l==="number"&&al(o.ownerDocument)===o||o.defaultValue===""+d||(o.defaultValue=""+d)}function zs(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 sl(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 Mu(o,l,d,p){if(l==null){if(p!=null){if(d!=null)throw Error(r(92));if(ne(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),Fd(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 L=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||L.has(l)?l==="float"?o.cssFloat=d:o[l]=(""+d).trim():o[l]=d+"px"}function pe(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 Re(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 Ue=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"]]),Ve=/^[\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 Ct(o){return Ve.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Et(){}var qn=null;function Wn(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var ls=null,yn=null;function _R(o){var l=qo(o);if(l&&(o=l.stateNode)){var d=o[pr]||null;e:switch(o=l.stateNode,l.type){case"input":if(Nu(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="'+Nr(""+l)+'"][type="radio"]'),l=0;l<d.length;l++){var p=d[l];if(p!==o&&p.form===o.form){var v=p[pr]||null;if(!v)throw Error(r(90));Nu(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&&$d(p)}break e;case"textarea":sl(o,d.value,d.defaultValue);break e;case"select":l=d.value,l!=null&&zs(o,!!d.multiple,l,!1)}}}var wy=!1;function kR(o,l,d){if(wy)return o(l,d);wy=!0;try{var p=o(l);return p}finally{if(wy=!1,(ls!==null||yn!==null)&&(Rm(),ls&&(l=ls,o=yn,yn=ls=null,_R(l),o)))for(l=0;l<o.length;l++)_R(o[l])}}function Hd(o,l){var d=o.stateNode;if(d===null)return null;var p=d[pr]||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 Fs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xy=!1;if(Fs)try{var qd={};Object.defineProperty(qd,"passive",{get:function(){xy=!0}}),window.addEventListener("test",qd,qd),window.removeEventListener("test",qd,qd)}catch{xy=!1}var Go=null,Cy=null,Bp=null;function AR(){if(Bp)return Bp;var o,l=Cy,d=l.length,p,v="value"in Go?Go.value:Go.textContent,b=v.length;for(o=0;o<d&&l[o]===v[o];o++);var R=d-o;for(p=1;p<=R&&l[d-p]===v[b-p];p++);return Bp=v.slice(o,1<p?1-p:void 0)}function Hp(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 qp(){return!0}function RR(){return!1}function Mr(o){function l(d,p,v,b,R){this._reactName=d,this._targetInst=v,this.type=p,this.nativeEvent=b,this.target=R,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)?qp:RR,this.isPropagationStopped=RR,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=qp)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=qp)},persist:function(){},isPersistent:qp}),l}var ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wp=Mr(ol),Wd=m({},ol,{view:0,detail:0}),kq=Mr(Wd),Ey,_y,Vd,Vp=m({},Wd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ay,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!==Vd&&(Vd&&o.type==="mousemove"?(Ey=o.screenX-Vd.screenX,_y=o.screenY-Vd.screenY):_y=Ey=0,Vd=o),Ey)},movementY:function(o){return"movementY"in o?o.movementY:_y}}),IR=Mr(Vp),Aq=m({},Vp,{dataTransfer:0}),Rq=Mr(Aq),Iq=m({},Wd,{relatedTarget:0}),ky=Mr(Iq),Tq=m({},ol,{animationName:0,elapsedTime:0,pseudoElement:0}),Oq=Mr(Tq),Nq=m({},ol,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),Mq=Mr(Nq),Pq=m({},ol,{data:0}),TR=Mr(Pq),Lq={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Dq={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"},Uq={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jq(o){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(o):(o=Uq[o])?!!l[o]:!1}function Ay(){return jq}var zq=m({},Wd,{key:function(o){if(o.key){var l=Lq[o.key]||o.key;if(l!=="Unidentified")return l}return o.type==="keypress"?(o=Hp(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?Dq[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ay,charCode:function(o){return o.type==="keypress"?Hp(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Hp(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),Fq=Mr(zq),$q=m({},Vp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),OR=Mr($q),Bq=m({},Wd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ay}),Hq=Mr(Bq),qq=m({},ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wq=Mr(qq),Vq=m({},Vp,{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}),Gq=Mr(Vq),Kq=m({},ol,{newState:0,oldState:0}),Yq=Mr(Kq),Zq=[9,13,27,32],Ry=Fs&&"CompositionEvent"in window,Gd=null;Fs&&"documentMode"in document&&(Gd=document.documentMode);var Xq=Fs&&"TextEvent"in window&&!Gd,NR=Fs&&(!Ry||Gd&&8<Gd&&11>=Gd),MR=" ",PR=!1;function LR(o,l){switch(o){case"keyup":return Zq.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function DR(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Pu=!1;function Qq(o,l){switch(o){case"compositionend":return DR(l);case"keypress":return l.which!==32?null:(PR=!0,MR);case"textInput":return o=l.data,o===MR&&PR?null:o;default:return null}}function Jq(o,l){if(Pu)return o==="compositionend"||!Ry&&LR(o,l)?(o=AR(),Bp=Cy=Go=null,Pu=!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 NR&&l.locale!=="ko"?null:l.data;default:return null}}var eW={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 UR(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l==="input"?!!eW[o.type]:l==="textarea"}function jR(o,l,d,p){ls?yn?yn.push(p):yn=[p]:ls=p,l=Lm(l,"onChange"),0<l.length&&(d=new Wp("onChange","change",null,d,p),o.push({event:d,listeners:l}))}var Kd=null,Yd=null;function tW(o){S4(o,0)}function Gp(o){var l=nl(o);if($d(l))return o}function zR(o,l){if(o==="change")return l}var FR=!1;if(Fs){var Iy;if(Fs){var Ty="oninput"in document;if(!Ty){var $R=document.createElement("div");$R.setAttribute("oninput","return;"),Ty=typeof $R.oninput=="function"}Iy=Ty}else Iy=!1;FR=Iy&&(!document.documentMode||9<document.documentMode)}function BR(){Kd&&(Kd.detachEvent("onpropertychange",HR),Yd=Kd=null)}function HR(o){if(o.propertyName==="value"&&Gp(Yd)){var l=[];jR(l,Yd,o,Wn(o)),kR(tW,l)}}function nW(o,l,d){o==="focusin"?(BR(),Kd=l,Yd=d,Kd.attachEvent("onpropertychange",HR)):o==="focusout"&&BR()}function rW(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Gp(Yd)}function aW(o,l){if(o==="click")return Gp(l)}function sW(o,l){if(o==="input"||o==="change")return Gp(l)}function oW(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var Xr=typeof Object.is=="function"?Object.is:oW;function Zd(o,l){if(Xr(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(!Ln.call(l,v)||!Xr(o[v],l[v]))return!1}return!0}function qR(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function WR(o,l){var d=qR(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=qR(d)}}function VR(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?VR(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function GR(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var l=al(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=al(o.document)}return l}function Oy(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 iW=Fs&&"documentMode"in document&&11>=document.documentMode,Lu=null,Ny=null,Xd=null,My=!1;function KR(o,l,d){var p=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;My||Lu==null||Lu!==al(p)||(p=Lu,"selectionStart"in p&&Oy(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}),Xd&&Zd(Xd,p)||(Xd=p,p=Lm(Ny,"onSelect"),0<p.length&&(l=new Wp("onSelect","select",null,l,d),o.push({event:l,listeners:p}),l.target=Lu)))}function il(o,l){var d={};return d[o.toLowerCase()]=l.toLowerCase(),d["Webkit"+o]="webkit"+l,d["Moz"+o]="moz"+l,d}var Du={animationend:il("Animation","AnimationEnd"),animationiteration:il("Animation","AnimationIteration"),animationstart:il("Animation","AnimationStart"),transitionrun:il("Transition","TransitionRun"),transitionstart:il("Transition","TransitionStart"),transitioncancel:il("Transition","TransitionCancel"),transitionend:il("Transition","TransitionEnd")},Py={},YR={};Fs&&(YR=document.createElement("div").style,"AnimationEvent"in window||(delete Du.animationend.animation,delete Du.animationiteration.animation,delete Du.animationstart.animation),"TransitionEvent"in window||delete Du.transitionend.transition);function ll(o){if(Py[o])return Py[o];if(!Du[o])return o;var l=Du[o],d;for(d in l)if(l.hasOwnProperty(d)&&d in YR)return Py[o]=l[d];return o}var ZR=ll("animationend"),XR=ll("animationiteration"),QR=ll("animationstart"),lW=ll("transitionrun"),uW=ll("transitionstart"),cW=ll("transitioncancel"),JR=ll("transitionend"),eI=new Map,Ly="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(" ");Ly.push("scrollEnd");function Ua(o,l){eI.set(o,l),Us(l,[o])}var Kp=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)},ga=[],Uu=0,Dy=0;function Yp(){for(var o=Uu,l=Dy=Uu=0;l<o;){var d=ga[l];ga[l++]=null;var p=ga[l];ga[l++]=null;var v=ga[l];ga[l++]=null;var b=ga[l];if(ga[l++]=null,p!==null&&v!==null){var R=p.pending;R===null?v.next=v:(v.next=R.next,R.next=v),p.pending=v}b!==0&&tI(d,v,b)}}function Zp(o,l,d,p){ga[Uu++]=o,ga[Uu++]=l,ga[Uu++]=d,ga[Uu++]=p,Dy|=p,o.lanes|=p,o=o.alternate,o!==null&&(o.lanes|=p)}function Uy(o,l,d,p){return Zp(o,l,d,p),Xp(o)}function ul(o,l){return Zp(o,null,null,l),Xp(o)}function tI(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-hr(d),o=b.hiddenUpdates,p=o[v],p===null?o[v]=[l]:p.push(l),l.lane=d|536870912),b):null}function Xp(o){if(50<Sf)throw Sf=0,Vb=null,Error(r(185));for(var l=o.return;l!==null;)o=l,l=o.return;return o.tag===3?o.stateNode:null}var ju={};function dW(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 Qr(o,l,d,p){return new dW(o,l,d,p)}function jy(o){return o=o.prototype,!(!o||!o.isReactComponent)}function $s(o,l){var d=o.alternate;return d===null?(d=Qr(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 nI(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 Qp(o,l,d,p,v,b){var R=0;if(p=o,typeof o=="function")jy(o)&&(R=1);else if(typeof o=="string")R=gV(o,d,J.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case D:return o=Qr(31,d,l,v),o.elementType=D,o.lanes=b,o;case w:return cl(d.children,v,b,l);case x:R=8,v|=24;break;case E:return o=Qr(12,d,l,v|2),o.elementType=E,o.lanes=b,o;case N:return o=Qr(13,d,l,v),o.elementType=N,o.lanes=b,o;case O:return o=Qr(19,d,l,v),o.elementType=O,o.lanes=b,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case k:R=10;break e;case A:R=9;break e;case I:R=11;break e;case T:R=14;break e;case P:R=16,p=null;break e}R=29,d=Error(r(130,o===null?"null":typeof o,"")),p=null}return l=Qr(R,d,l,v),l.elementType=o,l.type=p,l.lanes=b,l}function cl(o,l,d,p){return o=Qr(7,o,p,l),o.lanes=d,o}function zy(o,l,d){return o=Qr(6,o,null,l),o.lanes=d,o}function rI(o){var l=Qr(18,null,null,0);return l.stateNode=o,l}function Fy(o,l,d){return l=Qr(4,o.children!==null?o.children:[],o.key,l),l.lanes=d,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}var aI=new WeakMap;function va(o,l){if(typeof o=="object"&&o!==null){var d=aI.get(o);return d!==void 0?d:(l={value:o,source:l,stack:Zt(l)},aI.set(o,l),l)}return{value:o,source:l,stack:Zt(l)}}var zu=[],Fu=0,Jp=null,Qd=0,ya=[],ba=0,Ko=null,us=1,cs="";function Bs(o,l){zu[Fu++]=Qd,zu[Fu++]=Jp,Jp=o,Qd=l}function sI(o,l,d){ya[ba++]=us,ya[ba++]=cs,ya[ba++]=Ko,Ko=o;var p=us;o=cs;var v=32-hr(p)-1;p&=~(1<<v),d+=1;var b=32-hr(l)+v;if(30<b){var R=v-v%5;b=(p&(1<<R)-1).toString(32),p>>=R,v-=R,us=1<<32-hr(l)+v|d<<v|p,cs=b+o}else us=1<<b|d<<v|p,cs=o}function $y(o){o.return!==null&&(Bs(o,1),sI(o,1,0))}function By(o){for(;o===Jp;)Jp=zu[--Fu],zu[Fu]=null,Qd=zu[--Fu],zu[Fu]=null;for(;o===Ko;)Ko=ya[--ba],ya[ba]=null,cs=ya[--ba],ya[ba]=null,us=ya[--ba],ya[ba]=null}function oI(o,l){ya[ba++]=us,ya[ba++]=cs,ya[ba++]=Ko,us=l.id,cs=l.overflow,Ko=o}var er=null,rn=null,mt=!1,Yo=null,Sa=!1,Hy=Error(r(519));function Zo(o){var l=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jd(va(l,o)),Hy}function iI(o){var l=o.stateNode,d=o.type,p=o.memoizedProps;switch(l[Dn]=o,l[pr]=p,d){case"dialog":lt("cancel",l),lt("close",l);break;case"iframe":case"object":case"embed":lt("load",l);break;case"video":case"audio":for(d=0;d<xf.length;d++)lt(xf[d],l);break;case"source":lt("error",l);break;case"img":case"image":case"link":lt("error",l),lt("load",l);break;case"details":lt("toggle",l);break;case"input":lt("invalid",l),$p(l,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":lt("invalid",l);break;case"textarea":lt("invalid",l),Mu(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||E4(l.textContent,d)?(p.popover!=null&&(lt("beforetoggle",l),lt("toggle",l)),p.onScroll!=null&&lt("scroll",l),p.onScrollEnd!=null&&lt("scrollend",l),p.onClick!=null&&(l.onclick=Et),l=!0):l=!1,l||Zo(o,!0)}function lI(o){for(er=o.return;er;)switch(er.tag){case 5:case 31:case 13:Sa=!1;return;case 27:case 3:Sa=!0;return;default:er=er.return}}function $u(o){if(o!==er)return!1;if(!mt)return lI(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")||iS(o.type,o.memoizedProps)),d=!d),d&&rn&&Zo(o),lI(o),l===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));rn=M4(o)}else if(l===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));rn=M4(o)}else l===27?(l=rn,ci(o.type)?(o=fS,fS=null,rn=o):rn=l):rn=er?xa(o.stateNode.nextSibling):null;return!0}function dl(){rn=er=null,mt=!1}function qy(){var o=Yo;return o!==null&&(Ur===null?Ur=o:Ur.push.apply(Ur,o),Yo=null),o}function Jd(o){Yo===null?Yo=[o]:Yo.push(o)}var Wy=z(null),fl=null,Hs=null;function Xo(o,l,d){K(Wy,l._currentValue),l._currentValue=d}function qs(o){o._currentValue=Wy.current,V(Wy)}function Vy(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 Gy(o,l,d,p){var v=o.child;for(v!==null&&(v.return=o);v!==null;){var b=v.dependencies;if(b!==null){var R=v.child;b=b.firstContext;e:for(;b!==null;){var M=b;b=v;for(var B=0;B<l.length;B++)if(M.context===l[B]){b.lanes|=d,M=b.alternate,M!==null&&(M.lanes|=d),Vy(b.return,d,o),p||(R=null);break e}b=M.next}}else if(v.tag===18){if(R=v.return,R===null)throw Error(r(341));R.lanes|=d,b=R.alternate,b!==null&&(b.lanes|=d),Vy(R,d,o),R=null}else R=v.child;if(R!==null)R.return=v;else for(R=v;R!==null;){if(R===o){R=null;break}if(v=R.sibling,v!==null){v.return=R.return,R=v;break}R=R.return}v=R}}function Bu(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 R=v.alternate;if(R===null)throw Error(r(387));if(R=R.memoizedProps,R!==null){var M=v.type;Xr(v.pendingProps.value,R.value)||(o!==null?o.push(M):o=[M])}}else if(v===oe.current){if(R=v.alternate,R===null)throw Error(r(387));R.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(o!==null?o.push(Af):o=[Af])}v=v.return}o!==null&&Gy(l,o,d,p),l.flags|=262144}function em(o){for(o=o.firstContext;o!==null;){if(!Xr(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function hl(o){fl=o,Hs=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function tr(o){return uI(fl,o)}function tm(o,l){return fl===null&&hl(o),uI(o,l)}function uI(o,l){var d=l._currentValue;if(l={context:l,memoizedValue:d,next:null},Hs===null){if(o===null)throw Error(r(308));Hs=l,o.dependencies={lanes:0,firstContext:l},o.flags|=524288}else Hs=Hs.next=l;return d}var fW=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()})}},hW=t.unstable_scheduleCallback,pW=t.unstable_NormalPriority,_n={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ky(){return{controller:new fW,data:new Map,refCount:0}}function ef(o){o.refCount--,o.refCount===0&&hW(pW,function(){o.controller.abort()})}var tf=null,Yy=0,Hu=0,qu=null;function mW(o,l){if(tf===null){var d=tf=[];Yy=0,Hu=Qb(),qu={status:"pending",value:void 0,then:function(p){d.push(p)}}}return Yy++,l.then(cI,cI),l}function cI(){if(--Yy===0&&tf!==null){qu!==null&&(qu.status="fulfilled");var o=tf;tf=null,Hu=0,qu=null;for(var l=0;l<o.length;l++)(0,o[l])()}}function gW(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 dI=H.S;H.S=function(o,l){KT=tn(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&mW(o,l),dI!==null&&dI(o,l)};var pl=z(null);function Zy(){var o=pl.current;return o!==null?o:Qt.pooledCache}function nm(o,l){l===null?K(pl,pl.current):K(pl,l.pool)}function fI(){var o=Zy();return o===null?null:{parent:_n._currentValue,pool:o}}var Wu=Error(r(460)),Xy=Error(r(474)),rm=Error(r(542)),am={then:function(){}};function hI(o){return o=o.status,o==="fulfilled"||o==="rejected"}function pI(o,l,d){switch(d=o[d],d===void 0?o.push(l):d!==l&&(l.then(Et,Et),l=d),l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,gI(o),o;default:if(typeof l.status=="string")l.then(Et,Et);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,gI(o),o}throw gl=l,Wu}}function ml(o){try{var l=o._init;return l(o._payload)}catch(d){throw d!==null&&typeof d=="object"&&typeof d.then=="function"?(gl=d,Wu):d}}var gl=null;function mI(){if(gl===null)throw Error(r(459));var o=gl;return gl=null,o}function gI(o){if(o===Wu||o===rm)throw Error(r(483))}var Vu=null,nf=0;function sm(o){var l=nf;return nf+=1,Vu===null&&(Vu=[]),pI(Vu,o,l)}function rf(o,l){l=l.props.ref,o.ref=l!==void 0?l:null}function om(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 vI(o){function l(Y,W){if(o){var ee=Y.deletions;ee===null?(Y.deletions=[W],Y.flags|=16):ee.push(W)}}function d(Y,W){if(!o)return null;for(;W!==null;)l(Y,W),W=W.sibling;return null}function p(Y){for(var W=new Map;Y!==null;)Y.key!==null?W.set(Y.key,Y):W.set(Y.index,Y),Y=Y.sibling;return W}function v(Y,W){return Y=$s(Y,W),Y.index=0,Y.sibling=null,Y}function b(Y,W,ee){return Y.index=ee,o?(ee=Y.alternate,ee!==null?(ee=ee.index,ee<W?(Y.flags|=67108866,W):ee):(Y.flags|=67108866,W)):(Y.flags|=1048576,W)}function R(Y){return o&&Y.alternate===null&&(Y.flags|=67108866),Y}function M(Y,W,ee,le){return W===null||W.tag!==6?(W=zy(ee,Y.mode,le),W.return=Y,W):(W=v(W,ee),W.return=Y,W)}function B(Y,W,ee,le){var ze=ee.type;return ze===w?ie(Y,W,ee.props.children,le,ee.key):W!==null&&(W.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===P&&ml(ze)===W.type)?(W=v(W,ee.props),rf(W,ee),W.return=Y,W):(W=Qp(ee.type,ee.key,ee.props,null,Y.mode,le),rf(W,ee),W.return=Y,W)}function te(Y,W,ee,le){return W===null||W.tag!==4||W.stateNode.containerInfo!==ee.containerInfo||W.stateNode.implementation!==ee.implementation?(W=Fy(ee,Y.mode,le),W.return=Y,W):(W=v(W,ee.children||[]),W.return=Y,W)}function ie(Y,W,ee,le,ze){return W===null||W.tag!==7?(W=cl(ee,Y.mode,le,ze),W.return=Y,W):(W=v(W,ee),W.return=Y,W)}function de(Y,W,ee){if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return W=zy(""+W,Y.mode,ee),W.return=Y,W;if(typeof W=="object"&&W!==null){switch(W.$$typeof){case y:return ee=Qp(W.type,W.key,W.props,null,Y.mode,ee),rf(ee,W),ee.return=Y,ee;case S:return W=Fy(W,Y.mode,ee),W.return=Y,W;case P:return W=ml(W),de(Y,W,ee)}if(ne(W)||j(W))return W=cl(W,Y.mode,ee,null),W.return=Y,W;if(typeof W.then=="function")return de(Y,sm(W),ee);if(W.$$typeof===k)return de(Y,tm(Y,W),ee);om(Y,W)}return null}function re(Y,W,ee,le){var ze=W!==null?W.key:null;if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return ze!==null?null:M(Y,W,""+ee,le);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case y:return ee.key===ze?B(Y,W,ee,le):null;case S:return ee.key===ze?te(Y,W,ee,le):null;case P:return ee=ml(ee),re(Y,W,ee,le)}if(ne(ee)||j(ee))return ze!==null?null:ie(Y,W,ee,le,null);if(typeof ee.then=="function")return re(Y,W,sm(ee),le);if(ee.$$typeof===k)return re(Y,W,tm(Y,ee),le);om(Y,ee)}return null}function se(Y,W,ee,le,ze){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return Y=Y.get(ee)||null,M(W,Y,""+le,ze);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case y:return Y=Y.get(le.key===null?ee:le.key)||null,B(W,Y,le,ze);case S:return Y=Y.get(le.key===null?ee:le.key)||null,te(W,Y,le,ze);case P:return le=ml(le),se(Y,W,ee,le,ze)}if(ne(le)||j(le))return Y=Y.get(ee)||null,ie(W,Y,le,ze,null);if(typeof le.then=="function")return se(Y,W,ee,sm(le),ze);if(le.$$typeof===k)return se(Y,W,ee,tm(W,le),ze);om(W,le)}return null}function ke(Y,W,ee,le){for(var ze=null,At=null,Ne=W,et=W=0,ft=null;Ne!==null&&et<ee.length;et++){Ne.index>et?(ft=Ne,Ne=null):ft=Ne.sibling;var Rt=re(Y,Ne,ee[et],le);if(Rt===null){Ne===null&&(Ne=ft);break}o&&Ne&&Rt.alternate===null&&l(Y,Ne),W=b(Rt,W,et),At===null?ze=Rt:At.sibling=Rt,At=Rt,Ne=ft}if(et===ee.length)return d(Y,Ne),mt&&Bs(Y,et),ze;if(Ne===null){for(;et<ee.length;et++)Ne=de(Y,ee[et],le),Ne!==null&&(W=b(Ne,W,et),At===null?ze=Ne:At.sibling=Ne,At=Ne);return mt&&Bs(Y,et),ze}for(Ne=p(Ne);et<ee.length;et++)ft=se(Ne,Y,et,ee[et],le),ft!==null&&(o&&ft.alternate!==null&&Ne.delete(ft.key===null?et:ft.key),W=b(ft,W,et),At===null?ze=ft:At.sibling=ft,At=ft);return o&&Ne.forEach(function(mi){return l(Y,mi)}),mt&&Bs(Y,et),ze}function Fe(Y,W,ee,le){if(ee==null)throw Error(r(151));for(var ze=null,At=null,Ne=W,et=W=0,ft=null,Rt=ee.next();Ne!==null&&!Rt.done;et++,Rt=ee.next()){Ne.index>et?(ft=Ne,Ne=null):ft=Ne.sibling;var mi=re(Y,Ne,Rt.value,le);if(mi===null){Ne===null&&(Ne=ft);break}o&&Ne&&mi.alternate===null&&l(Y,Ne),W=b(mi,W,et),At===null?ze=mi:At.sibling=mi,At=mi,Ne=ft}if(Rt.done)return d(Y,Ne),mt&&Bs(Y,et),ze;if(Ne===null){for(;!Rt.done;et++,Rt=ee.next())Rt=de(Y,Rt.value,le),Rt!==null&&(W=b(Rt,W,et),At===null?ze=Rt:At.sibling=Rt,At=Rt);return mt&&Bs(Y,et),ze}for(Ne=p(Ne);!Rt.done;et++,Rt=ee.next())Rt=se(Ne,Y,et,Rt.value,le),Rt!==null&&(o&&Rt.alternate!==null&&Ne.delete(Rt.key===null?et:Rt.key),W=b(Rt,W,et),At===null?ze=Rt:At.sibling=Rt,At=Rt);return o&&Ne.forEach(function(AV){return l(Y,AV)}),mt&&Bs(Y,et),ze}function Wt(Y,W,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 ze=ee.key;W!==null;){if(W.key===ze){if(ze=ee.type,ze===w){if(W.tag===7){d(Y,W.sibling),le=v(W,ee.props.children),le.return=Y,Y=le;break e}}else if(W.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===P&&ml(ze)===W.type){d(Y,W.sibling),le=v(W,ee.props),rf(le,ee),le.return=Y,Y=le;break e}d(Y,W);break}else l(Y,W);W=W.sibling}ee.type===w?(le=cl(ee.props.children,Y.mode,le,ee.key),le.return=Y,Y=le):(le=Qp(ee.type,ee.key,ee.props,null,Y.mode,le),rf(le,ee),le.return=Y,Y=le)}return R(Y);case S:e:{for(ze=ee.key;W!==null;){if(W.key===ze)if(W.tag===4&&W.stateNode.containerInfo===ee.containerInfo&&W.stateNode.implementation===ee.implementation){d(Y,W.sibling),le=v(W,ee.children||[]),le.return=Y,Y=le;break e}else{d(Y,W);break}else l(Y,W);W=W.sibling}le=Fy(ee,Y.mode,le),le.return=Y,Y=le}return R(Y);case P:return ee=ml(ee),Wt(Y,W,ee,le)}if(ne(ee))return ke(Y,W,ee,le);if(j(ee)){if(ze=j(ee),typeof ze!="function")throw Error(r(150));return ee=ze.call(ee),Fe(Y,W,ee,le)}if(typeof ee.then=="function")return Wt(Y,W,sm(ee),le);if(ee.$$typeof===k)return Wt(Y,W,tm(Y,ee),le);om(Y,ee)}return typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint"?(ee=""+ee,W!==null&&W.tag===6?(d(Y,W.sibling),le=v(W,ee),le.return=Y,Y=le):(d(Y,W),le=zy(ee,Y.mode,le),le.return=Y,Y=le),R(Y)):d(Y,W)}return function(Y,W,ee,le){try{nf=0;var ze=Wt(Y,W,ee,le);return Vu=null,ze}catch(Ne){if(Ne===Wu||Ne===rm)throw Ne;var At=Qr(29,Ne,null,Y.mode);return At.lanes=le,At.return=Y,At}}}var vl=vI(!0),yI=vI(!1),Qo=!1;function Qy(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Jy(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 Jo(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function ei(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=Xp(o),tI(o,null,d),l}return Zp(o,p,l,d),Xp(o)}function af(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,Up(o,d)}}function eb(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 R={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};b===null?v=b=R:b=b.next=R,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 tb=!1;function sf(){if(tb){var o=qu;if(o!==null)throw o}}function of(o,l,d,p){tb=!1;var v=o.updateQueue;Qo=!1;var b=v.firstBaseUpdate,R=v.lastBaseUpdate,M=v.shared.pending;if(M!==null){v.shared.pending=null;var B=M,te=B.next;B.next=null,R===null?b=te:R.next=te,R=B;var ie=o.alternate;ie!==null&&(ie=ie.updateQueue,M=ie.lastBaseUpdate,M!==R&&(M===null?ie.firstBaseUpdate=te:M.next=te,ie.lastBaseUpdate=B))}if(b!==null){var de=v.baseState;R=0,ie=te=B=null,M=b;do{var re=M.lane&-536870913,se=re!==M.lane;if(se?(dt&re)===re:(p&re)===re){re!==0&&re===Hu&&(tb=!0),ie!==null&&(ie=ie.next={lane:0,tag:M.tag,payload:M.payload,callback:null,next:null});e:{var ke=o,Fe=M;re=l;var Wt=d;switch(Fe.tag){case 1:if(ke=Fe.payload,typeof ke=="function"){de=ke.call(Wt,de,re);break e}de=ke;break e;case 3:ke.flags=ke.flags&-65537|128;case 0:if(ke=Fe.payload,re=typeof ke=="function"?ke.call(Wt,de,re):ke,re==null)break e;de=m({},de,re);break e;case 2:Qo=!0}}re=M.callback,re!==null&&(o.flags|=64,se&&(o.flags|=8192),se=v.callbacks,se===null?v.callbacks=[re]:se.push(re))}else se={lane:re,tag:M.tag,payload:M.payload,callback:M.callback,next:null},ie===null?(te=ie=se,B=de):ie=ie.next=se,R|=re;if(M=M.next,M===null){if(M=v.shared.pending,M===null)break;se=M,M=se.next,se.next=null,v.lastBaseUpdate=se,v.shared.pending=null}}while(!0);ie===null&&(B=de),v.baseState=B,v.firstBaseUpdate=te,v.lastBaseUpdate=ie,b===null&&(v.shared.lanes=0),si|=R,o.lanes=R,o.memoizedState=de}}function bI(o,l){if(typeof o!="function")throw Error(r(191,o));o.call(l)}function SI(o,l){var d=o.callbacks;if(d!==null)for(o.callbacks=null,o=0;o<d.length;o++)bI(d[o],l)}var Gu=z(null),im=z(0);function wI(o,l){o=Js,K(im,o),K(Gu,l),Js=o|l.baseLanes}function nb(){K(im,Js),K(Gu,Gu.current)}function rb(){Js=im.current,V(Gu),V(im)}var Jr=z(null),wa=null;function ti(o){var l=o.alternate;K(Cn,Cn.current&1),K(Jr,o),wa===null&&(l===null||Gu.current!==null||l.memoizedState!==null)&&(wa=o)}function ab(o){K(Cn,Cn.current),K(Jr,o),wa===null&&(wa=o)}function xI(o){o.tag===22?(K(Cn,Cn.current),K(Jr,o),wa===null&&(wa=o)):ni()}function ni(){K(Cn,Cn.current),K(Jr,Jr.current)}function ea(o){V(Jr),wa===o&&(wa=null),V(Cn)}var Cn=z(0);function lm(o){for(var l=o;l!==null;){if(l.tag===13){var d=l.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||cS(d)||dS(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 Ws=0,Je=null,Ht=null,kn=null,um=!1,Ku=!1,yl=!1,cm=0,lf=0,Yu=null,vW=0;function bn(){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(!Xr(o[d],l[d]))return!1;return!0}function ob(o,l,d,p,v,b){return Ws=b,Je=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,H.H=o===null||o.memoizedState===null?sT:wb,yl=!1,b=d(p,v),yl=!1,Ku&&(b=EI(l,d,p,v)),CI(o),b}function CI(o){H.H=df;var l=Ht!==null&&Ht.next!==null;if(Ws=0,kn=Ht=Je=null,um=!1,lf=0,Yu=null,l)throw Error(r(300));o===null||An||(o=o.dependencies,o!==null&&em(o)&&(An=!0))}function EI(o,l,d,p){Je=o;var v=0;do{if(Ku&&(Yu=null),lf=0,Ku=!1,25<=v)throw Error(r(301));if(v+=1,kn=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)}H.H=oT,b=l(d,p)}while(Ku);return b}function yW(){var o=H.H,l=o.useState()[0];return l=typeof l.then=="function"?uf(l):l,o=o.useState()[0],(Ht!==null?Ht.memoizedState:null)!==o&&(Je.flags|=1024),l}function ib(){var o=cm!==0;return cm=0,o}function lb(o,l,d){l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~d}function ub(o){if(um){for(o=o.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}um=!1}Ws=0,kn=Ht=Je=null,Ku=!1,lf=cm=0,Yu=null}function Cr(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kn===null?Je.memoizedState=kn=o:kn=kn.next=o,kn}function En(){if(Ht===null){var o=Je.alternate;o=o!==null?o.memoizedState:null}else o=Ht.next;var l=kn===null?Je.memoizedState:kn.next;if(l!==null)kn=l,Ht=o;else{if(o===null)throw Je.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},kn===null?Je.memoizedState=kn=o:kn=kn.next=o}return kn}function dm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function uf(o){var l=lf;return lf+=1,Yu===null&&(Yu=[]),o=pI(Yu,o,l),l=Je,(kn===null?l.memoizedState:kn.next)===null&&(l=l.alternate,H.H=l===null||l.memoizedState===null?sT:wb),o}function fm(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return uf(o);if(o.$$typeof===k)return tr(o)}throw Error(r(438,String(o)))}function cb(o){var l=null,d=Je.updateQueue;if(d!==null&&(l=d.memoCache),l==null){var p=Je.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=dm(),Je.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 Vs(o,l){return typeof l=="function"?l(o):l}function hm(o){var l=En();return db(l,Ht,o)}function db(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 R=v.next;v.next=b.next,b.next=R}l.baseQueue=v=b,p.pending=null}if(b=o.baseState,v===null)o.memoizedState=b;else{l=v.next;var M=R=null,B=null,te=l,ie=!1;do{var de=te.lane&-536870913;if(de!==te.lane?(dt&de)===de:(Ws&de)===de){var re=te.revertLane;if(re===0)B!==null&&(B=B.next={lane:0,revertLane:0,gesture:null,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null}),de===Hu&&(ie=!0);else if((Ws&re)===re){te=te.next,re===Hu&&(ie=!0);continue}else de={lane:0,revertLane:te.revertLane,gesture:null,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},B===null?(M=B=de,R=b):B=B.next=de,Je.lanes|=re,si|=re;de=te.action,yl&&d(b,de),b=te.hasEagerState?te.eagerState:d(b,de)}else re={lane:de,revertLane:te.revertLane,gesture:te.gesture,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},B===null?(M=B=re,R=b):B=B.next=re,Je.lanes|=de,si|=de;te=te.next}while(te!==null&&te!==l);if(B===null?R=b:B.next=M,!Xr(b,o.memoizedState)&&(An=!0,ie&&(d=qu,d!==null)))throw d;o.memoizedState=b,o.baseState=R,o.baseQueue=B,p.lastRenderedState=b}return v===null&&(p.lanes=0),[o.memoizedState,p.dispatch]}function fb(o){var l=En(),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 R=v=v.next;do b=o(b,R.action),R=R.next;while(R!==v);Xr(b,l.memoizedState)||(An=!0),l.memoizedState=b,l.baseQueue===null&&(l.baseState=b),d.lastRenderedState=b}return[b,p]}function _I(o,l,d){var p=Je,v=En(),b=mt;if(b){if(d===void 0)throw Error(r(407));d=d()}else d=l();var R=!Xr((Ht||v).memoizedState,d);if(R&&(v.memoizedState=d,An=!0),v=v.queue,mb(RI.bind(null,p,v,o),[o]),v.getSnapshot!==l||R||kn!==null&&kn.memoizedState.tag&1){if(p.flags|=2048,Zu(9,{destroy:void 0},AI.bind(null,p,v,d,l),null),Qt===null)throw Error(r(349));b||(Ws&127)!==0||kI(p,l,d)}return d}function kI(o,l,d){o.flags|=16384,o={getSnapshot:l,value:d},l=Je.updateQueue,l===null?(l=dm(),Je.updateQueue=l,l.stores=[o]):(d=l.stores,d===null?l.stores=[o]:d.push(o))}function AI(o,l,d,p){l.value=d,l.getSnapshot=p,II(l)&&TI(o)}function RI(o,l,d){return d(function(){II(l)&&TI(o)})}function II(o){var l=o.getSnapshot;o=o.value;try{var d=l();return!Xr(o,d)}catch{return!0}}function TI(o){var l=ul(o,2);l!==null&&jr(l,o,2)}function hb(o){var l=Cr();if(typeof o=="function"){var d=o;if(o=d(),yl){Da(!0);try{d()}finally{Da(!1)}}}return l.memoizedState=l.baseState=o,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vs,lastRenderedState:o},l}function OI(o,l,d,p){return o.baseState=d,db(o,Ht,typeof p=="function"?p:Vs)}function bW(o,l,d,p,v){if(gm(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(R){b.listeners.push(R)}};H.T!==null?d(!0):b.isTransition=!1,p(b),d=l.pending,d===null?(b.next=l.pending=b,NI(l,b)):(b.next=d.next,l.pending=d.next=b)}}function NI(o,l){var d=l.action,p=l.payload,v=o.state;if(l.isTransition){var b=H.T,R={};H.T=R;try{var M=d(v,p),B=H.S;B!==null&&B(R,M),MI(o,l,M)}catch(te){pb(o,l,te)}finally{b!==null&&R.types!==null&&(b.types=R.types),H.T=b}}else try{b=d(v,p),MI(o,l,b)}catch(te){pb(o,l,te)}}function MI(o,l,d){d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(function(p){PI(o,l,p)},function(p){return pb(o,l,p)}):PI(o,l,d)}function PI(o,l,d){l.status="fulfilled",l.value=d,LI(l),o.state=d,l=o.pending,l!==null&&(d=l.next,d===l?o.pending=null:(d=d.next,l.next=d,NI(o,d)))}function pb(o,l,d){var p=o.pending;if(o.pending=null,p!==null){p=p.next;do l.status="rejected",l.reason=d,LI(l),l=l.next;while(l!==p)}o.action=null}function LI(o){o=o.listeners;for(var l=0;l<o.length;l++)(0,o[l])()}function DI(o,l){return l}function UI(o,l){if(mt){var d=Qt.formState;if(d!==null){e:{var p=Je;if(mt){if(rn){t:{for(var v=rn,b=Sa;v.nodeType!==8;){if(!b){v=null;break t}if(v=xa(v.nextSibling),v===null){v=null;break t}}b=v.data,v=b==="F!"||b==="F"?v:null}if(v){rn=xa(v.nextSibling),p=v.data==="F!";break e}}Zo(p)}p=!1}p&&(l=d[0])}}return d=Cr(),d.memoizedState=d.baseState=l,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:DI,lastRenderedState:l},d.queue=p,d=nT.bind(null,Je,p),p.dispatch=d,p=hb(!1),b=Sb.bind(null,Je,!1,p.queue),p=Cr(),v={state:l,dispatch:null,action:o,pending:null},p.queue=v,d=bW.bind(null,Je,v,b,d),v.dispatch=d,p.memoizedState=o,[l,d,!1]}function jI(o){var l=En();return zI(l,Ht,o)}function zI(o,l,d){if(l=db(o,l,DI)[0],o=hm(Vs)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var p=uf(l)}catch(R){throw R===Wu?rm:R}else p=l;l=En();var v=l.queue,b=v.dispatch;return d!==l.memoizedState&&(Je.flags|=2048,Zu(9,{destroy:void 0},SW.bind(null,v,d),null)),[p,b,o]}function SW(o,l){o.action=l}function FI(o){var l=En(),d=Ht;if(d!==null)return zI(l,d,o);En(),l=l.memoizedState,d=En();var p=d.queue.dispatch;return d.memoizedState=o,[l,p,!1]}function Zu(o,l,d,p){return o={tag:o,create:d,deps:p,inst:l,next:null},l=Je.updateQueue,l===null&&(l=dm(),Je.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 $I(){return En().memoizedState}function pm(o,l,d,p){var v=Cr();Je.flags|=o,v.memoizedState=Zu(1|l,{destroy:void 0},d,p===void 0?null:p)}function mm(o,l,d,p){var v=En();p=p===void 0?null:p;var b=v.memoizedState.inst;Ht!==null&&p!==null&&sb(p,Ht.memoizedState.deps)?v.memoizedState=Zu(l,b,d,p):(Je.flags|=o,v.memoizedState=Zu(1|l,b,d,p))}function BI(o,l){pm(8390656,8,o,l)}function mb(o,l){mm(2048,8,o,l)}function wW(o){Je.flags|=4;var l=Je.updateQueue;if(l===null)l=dm(),Je.updateQueue=l,l.events=[o];else{var d=l.events;d===null?l.events=[o]:d.push(o)}}function HI(o){var l=En().memoizedState;return wW({ref:l,nextImpl:o}),function(){if((Nt&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}function qI(o,l){return mm(4,2,o,l)}function WI(o,l){return mm(4,4,o,l)}function VI(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 GI(o,l,d){d=d!=null?d.concat([o]):null,mm(4,4,VI.bind(null,l,o),d)}function gb(){}function KI(o,l){var d=En();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 YI(o,l){var d=En();l=l===void 0?null:l;var p=d.memoizedState;if(l!==null&&sb(l,p[1]))return p[0];if(p=o(),yl){Da(!0);try{o()}finally{Da(!1)}}return d.memoizedState=[p,l],p}function vb(o,l,d){return d===void 0||(Ws&1073741824)!==0&&(dt&261930)===0?o.memoizedState=l:(o.memoizedState=d,o=ZT(),Je.lanes|=o,si|=o,d)}function ZI(o,l,d,p){return Xr(d,l)?d:Gu.current!==null?(o=vb(o,d,p),Xr(o,l)||(An=!0),o):(Ws&42)===0||(Ws&1073741824)!==0&&(dt&261930)===0?(An=!0,o.memoizedState=d):(o=ZT(),Je.lanes|=o,si|=o,l)}function XI(o,l,d,p,v){var b=X.p;X.p=b!==0&&8>b?b:8;var R=H.T,M={};H.T=M,Sb(o,!1,l,d);try{var B=v(),te=H.S;if(te!==null&&te(M,B),B!==null&&typeof B=="object"&&typeof B.then=="function"){var ie=gW(B,p);cf(o,l,ie,ra(o))}else cf(o,l,p,ra(o))}catch(de){cf(o,l,{then:function(){},status:"rejected",reason:de},ra())}finally{X.p=b,R!==null&&M.types!==null&&(R.types=M.types),H.T=R}}function xW(){}function yb(o,l,d,p){if(o.tag!==5)throw Error(r(476));var v=QI(o).queue;XI(o,v,l,ae,d===null?xW:function(){return JI(o),d(p)})}function QI(o){var l=o.memoizedState;if(l!==null)return l;l={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vs,lastRenderedState:ae},next:null};var d={};return l.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vs,lastRenderedState:d},next:null},o.memoizedState=l,o=o.alternate,o!==null&&(o.memoizedState=l),l}function JI(o){var l=QI(o);l.next===null&&(l=o.alternate.memoizedState),cf(o,l.next.queue,{},ra())}function bb(){return tr(Af)}function eT(){return En().memoizedState}function tT(){return En().memoizedState}function CW(o){for(var l=o.return;l!==null;){switch(l.tag){case 24:case 3:var d=ra();o=Jo(d);var p=ei(l,o,d);p!==null&&(jr(p,l,d),af(p,l,d)),l={cache:Ky()},o.payload=l;return}l=l.return}}function EW(o,l,d){var p=ra();d={lane:p,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},gm(o)?rT(l,d):(d=Uy(o,l,d,p),d!==null&&(jr(d,o,p),aT(d,l,p)))}function nT(o,l,d){var p=ra();cf(o,l,d,p)}function cf(o,l,d,p){var v={lane:p,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null};if(gm(o))rT(l,v);else{var b=o.alternate;if(o.lanes===0&&(b===null||b.lanes===0)&&(b=l.lastRenderedReducer,b!==null))try{var R=l.lastRenderedState,M=b(R,d);if(v.hasEagerState=!0,v.eagerState=M,Xr(M,R))return Zp(o,l,v,0),Qt===null&&Yp(),!1}catch{}if(d=Uy(o,l,v,p),d!==null)return jr(d,o,p),aT(d,l,p),!0}return!1}function Sb(o,l,d,p){if(p={lane:2,revertLane:Qb(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},gm(o)){if(l)throw Error(r(479))}else l=Uy(o,d,p,2),l!==null&&jr(l,o,2)}function gm(o){var l=o.alternate;return o===Je||l!==null&&l===Je}function rT(o,l){Ku=um=!0;var d=o.pending;d===null?l.next=l:(l.next=d.next,d.next=l),o.pending=l}function aT(o,l,d){if((d&4194048)!==0){var p=l.lanes;p&=o.pendingLanes,d|=p,l.lanes=d,Up(o,d)}}var df={readContext:tr,use:fm,useCallback:bn,useContext:bn,useEffect:bn,useImperativeHandle:bn,useLayoutEffect:bn,useInsertionEffect:bn,useMemo:bn,useReducer:bn,useRef:bn,useState:bn,useDebugValue:bn,useDeferredValue:bn,useTransition:bn,useSyncExternalStore:bn,useId:bn,useHostTransitionStatus:bn,useFormState:bn,useActionState:bn,useOptimistic:bn,useMemoCache:bn,useCacheRefresh:bn};df.useEffectEvent=bn;var sT={readContext:tr,use:fm,useCallback:function(o,l){return Cr().memoizedState=[o,l===void 0?null:l],o},useContext:tr,useEffect:BI,useImperativeHandle:function(o,l,d){d=d!=null?d.concat([o]):null,pm(4194308,4,VI.bind(null,l,o),d)},useLayoutEffect:function(o,l){return pm(4194308,4,o,l)},useInsertionEffect:function(o,l){pm(4,2,o,l)},useMemo:function(o,l){var d=Cr();l=l===void 0?null:l;var p=o();if(yl){Da(!0);try{o()}finally{Da(!1)}}return d.memoizedState=[p,l],p},useReducer:function(o,l,d){var p=Cr();if(d!==void 0){var v=d(l);if(yl){Da(!0);try{d(l)}finally{Da(!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=EW.bind(null,Je,o),[p.memoizedState,o]},useRef:function(o){var l=Cr();return o={current:o},l.memoizedState=o},useState:function(o){o=hb(o);var l=o.queue,d=nT.bind(null,Je,l);return l.dispatch=d,[o.memoizedState,d]},useDebugValue:gb,useDeferredValue:function(o,l){var d=Cr();return vb(d,o,l)},useTransition:function(){var o=hb(!1);return o=XI.bind(null,Je,o.queue,!0,!1),Cr().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,l,d){var p=Je,v=Cr();if(mt){if(d===void 0)throw Error(r(407));d=d()}else{if(d=l(),Qt===null)throw Error(r(349));(dt&127)!==0||kI(p,l,d)}v.memoizedState=d;var b={value:d,getSnapshot:l};return v.queue=b,BI(RI.bind(null,p,b,o),[o]),p.flags|=2048,Zu(9,{destroy:void 0},AI.bind(null,p,b,d,l),null),d},useId:function(){var o=Cr(),l=Qt.identifierPrefix;if(mt){var d=cs,p=us;d=(p&~(1<<32-hr(p)-1)).toString(32)+d,l="_"+l+"R_"+d,d=cm++,0<d&&(l+="H"+d.toString(32)),l+="_"}else d=vW++,l="_"+l+"r_"+d.toString(32)+"_";return o.memoizedState=l},useHostTransitionStatus:bb,useFormState:UI,useActionState:UI,useOptimistic:function(o){var l=Cr();l.memoizedState=l.baseState=o;var d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=d,l=Sb.bind(null,Je,!0,d),d.dispatch=l,[o,l]},useMemoCache:cb,useCacheRefresh:function(){return Cr().memoizedState=CW.bind(null,Je)},useEffectEvent:function(o){var l=Cr(),d={impl:o};return l.memoizedState=d,function(){if((Nt&2)!==0)throw Error(r(440));return d.impl.apply(void 0,arguments)}}},wb={readContext:tr,use:fm,useCallback:KI,useContext:tr,useEffect:mb,useImperativeHandle:GI,useInsertionEffect:qI,useLayoutEffect:WI,useMemo:YI,useReducer:hm,useRef:$I,useState:function(){return hm(Vs)},useDebugValue:gb,useDeferredValue:function(o,l){var d=En();return ZI(d,Ht.memoizedState,o,l)},useTransition:function(){var o=hm(Vs)[0],l=En().memoizedState;return[typeof o=="boolean"?o:uf(o),l]},useSyncExternalStore:_I,useId:eT,useHostTransitionStatus:bb,useFormState:jI,useActionState:jI,useOptimistic:function(o,l){var d=En();return OI(d,Ht,o,l)},useMemoCache:cb,useCacheRefresh:tT};wb.useEffectEvent=HI;var oT={readContext:tr,use:fm,useCallback:KI,useContext:tr,useEffect:mb,useImperativeHandle:GI,useInsertionEffect:qI,useLayoutEffect:WI,useMemo:YI,useReducer:fb,useRef:$I,useState:function(){return fb(Vs)},useDebugValue:gb,useDeferredValue:function(o,l){var d=En();return Ht===null?vb(d,o,l):ZI(d,Ht.memoizedState,o,l)},useTransition:function(){var o=fb(Vs)[0],l=En().memoizedState;return[typeof o=="boolean"?o:uf(o),l]},useSyncExternalStore:_I,useId:eT,useHostTransitionStatus:bb,useFormState:FI,useActionState:FI,useOptimistic:function(o,l){var d=En();return Ht!==null?OI(d,Ht,o,l):(d.baseState=o,[o,d.queue.dispatch])},useMemoCache:cb,useCacheRefresh:tT};oT.useEffectEvent=HI;function xb(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 Cb={enqueueSetState:function(o,l,d){o=o._reactInternals;var p=ra(),v=Jo(p);v.payload=l,d!=null&&(v.callback=d),l=ei(o,v,p),l!==null&&(jr(l,o,p),af(l,o,p))},enqueueReplaceState:function(o,l,d){o=o._reactInternals;var p=ra(),v=Jo(p);v.tag=1,v.payload=l,d!=null&&(v.callback=d),l=ei(o,v,p),l!==null&&(jr(l,o,p),af(l,o,p))},enqueueForceUpdate:function(o,l){o=o._reactInternals;var d=ra(),p=Jo(d);p.tag=2,l!=null&&(p.callback=l),l=ei(o,p,d),l!==null&&(jr(l,o,d),af(l,o,d))}};function iT(o,l,d,p,v,b,R){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(p,b,R):l.prototype&&l.prototype.isPureReactComponent?!Zd(d,p)||!Zd(v,b):!0}function lT(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&&Cb.enqueueReplaceState(l,l.state,null)}function bl(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 uT(o){Kp(o)}function cT(o){console.error(o)}function dT(o){Kp(o)}function vm(o,l){try{var d=o.onUncaughtError;d(l.value,{componentStack:l.stack})}catch(p){setTimeout(function(){throw p})}}function fT(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 Eb(o,l,d){return d=Jo(d),d.tag=3,d.payload={element:null},d.callback=function(){vm(o,l)},d}function hT(o){return o=Jo(o),o.tag=3,o}function pT(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(){fT(l,d,p)}}var R=d.stateNode;R!==null&&typeof R.componentDidCatch=="function"&&(o.callback=function(){fT(l,d,p),typeof v!="function"&&(oi===null?oi=new Set([this]):oi.add(this));var M=p.stack;this.componentDidCatch(p.value,{componentStack:M!==null?M:""})})}function _W(o,l,d,p,v){if(d.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(l=d.alternate,l!==null&&Bu(l,d,v,!0),d=Jr.current,d!==null){switch(d.tag){case 31:case 13:return wa===null?Im():d.alternate===null&&Sn===0&&(Sn=3),d.flags&=-257,d.flags|=65536,d.lanes=v,p===am?d.flags|=16384:(l=d.updateQueue,l===null?d.updateQueue=new Set([p]):l.add(p),Yb(o,p,v)),!1;case 22:return d.flags|=65536,p===am?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)),Yb(o,p,v)),!1}throw Error(r(435,d.tag))}return Yb(o,p,v),Im(),!1}if(mt)return l=Jr.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=v,p!==Hy&&(o=Error(r(422),{cause:p}),Jd(va(o,d)))):(p!==Hy&&(l=Error(r(423),{cause:p}),Jd(va(l,d))),o=o.current.alternate,o.flags|=65536,v&=-v,o.lanes|=v,p=va(p,d),v=Eb(o.stateNode,p,v),eb(o,v),Sn!==4&&(Sn=2)),!1;var b=Error(r(520),{cause:p});if(b=va(b,d),bf===null?bf=[b]:bf.push(b),Sn!==4&&(Sn=2),l===null)return!0;p=va(p,d),d=l;do{switch(d.tag){case 3:return d.flags|=65536,o=v&-v,d.lanes|=o,o=Eb(d.stateNode,p,o),eb(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"&&(oi===null||!oi.has(b))))return d.flags|=65536,v&=-v,d.lanes|=v,v=hT(v),pT(v,o,d,p),eb(d,v),!1}d=d.return}while(d!==null);return!1}var _b=Error(r(461)),An=!1;function nr(o,l,d,p){l.child=o===null?yI(l,null,d,p):vl(l,o.child,d,p)}function mT(o,l,d,p,v){d=d.render;var b=l.ref;if("ref"in p){var R={};for(var M in p)M!=="ref"&&(R[M]=p[M])}else R=p;return hl(l),p=ob(o,l,d,R,b,v),M=ib(),o!==null&&!An?(lb(o,l,v),Gs(o,l,v)):(mt&&M&&$y(l),l.flags|=1,nr(o,l,p,v),l.child)}function gT(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,vT(o,l,b,p,v)):(o=Qp(d.type,null,p,l,l.mode,v),o.ref=l.ref,o.return=l,l.child=o)}if(b=o.child,!Mb(o,v)){var R=b.memoizedProps;if(d=d.compare,d=d!==null?d:Zd,d(R,p)&&o.ref===l.ref)return Gs(o,l,v)}return l.flags|=1,o=$s(b,p),o.ref=l.ref,o.return=l,l.child=o}function vT(o,l,d,p,v){if(o!==null){var b=o.memoizedProps;if(Zd(b,p)&&o.ref===l.ref)if(An=!1,l.pendingProps=p=b,Mb(o,v))(o.flags&131072)!==0&&(An=!0);else return l.lanes=o.lanes,Gs(o,l,v)}return kb(o,l,d,p,v)}function yT(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 bT(o,l,b,d,p)}if((d&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},o!==null&&nm(l,b!==null?b.cachePool:null),b!==null?wI(l,b):nb(),xI(l);else return p=l.lanes=536870912,bT(o,l,b!==null?b.baseLanes|d:d,d,p)}else b!==null?(nm(l,b.cachePool),wI(l,b),ni(),l.memoizedState=null):(o!==null&&nm(l,null),nb(),ni());return nr(o,l,v,d),l.child}function ff(o,l){return o!==null&&o.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function bT(o,l,d,p,v){var b=Zy();return b=b===null?null:{parent:_n._currentValue,pool:b},l.memoizedState={baseLanes:d,cachePool:b},o!==null&&nm(l,null),nb(),xI(l),o!==null&&Bu(o,l,p,!0),l.childLanes=v,null}function ym(o,l){return l=Sm({mode:l.mode,children:l.children},o.mode),l.ref=o.ref,o.child=l,l.return=o,l}function ST(o,l,d){return vl(l,o.child,null,d),o=ym(l,l.pendingProps),o.flags|=2,ea(l),l.memoizedState=null,o}function kW(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=ym(l,p),l.lanes=536870912,ff(null,o);if(ab(l),(o=rn)?(o=N4(o,Sa),o=o!==null&&o.data==="&"?o:null,o!==null&&(l.memoizedState={dehydrated:o,treeContext:Ko!==null?{id:us,overflow:cs}:null,retryLane:536870912,hydrationErrors:null},d=rI(o),d.return=l,l.child=d,er=l,rn=null)):o=null,o===null)throw Zo(l);return l.lanes=536870912,null}return ym(l,p)}var b=o.memoizedState;if(b!==null){var R=b.dehydrated;if(ab(l),v)if(l.flags&256)l.flags&=-257,l=ST(o,l,d);else if(l.memoizedState!==null)l.child=o.child,l.flags|=128,l=null;else throw Error(r(558));else if(An||Bu(o,l,d,!1),v=(d&o.childLanes)!==0,An||v){if(p=Qt,p!==null&&(R=Ud(p,d),R!==0&&R!==b.retryLane))throw b.retryLane=R,ul(o,R),jr(p,o,R),_b;Im(),l=ST(o,l,d)}else o=b.treeContext,rn=xa(R.nextSibling),er=l,mt=!0,Yo=null,Sa=!1,o!==null&&oI(l,o),l=ym(l,p),l.flags|=4096;return l}return o=$s(o.child,{mode:p.mode,children:p.children}),o.ref=l.ref,l.child=o,o.return=l,o}function bm(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 kb(o,l,d,p,v){return hl(l),d=ob(o,l,d,p,void 0,v),p=ib(),o!==null&&!An?(lb(o,l,v),Gs(o,l,v)):(mt&&p&&$y(l),l.flags|=1,nr(o,l,d,v),l.child)}function wT(o,l,d,p,v,b){return hl(l),l.updateQueue=null,d=EI(l,p,d,v),CI(o),p=ib(),o!==null&&!An?(lb(o,l,b),Gs(o,l,b)):(mt&&p&&$y(l),l.flags|=1,nr(o,l,d,b),l.child)}function xT(o,l,d,p,v){if(hl(l),l.stateNode===null){var b=ju,R=d.contextType;typeof R=="object"&&R!==null&&(b=tr(R)),b=new d(p,b),l.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Cb,l.stateNode=b,b._reactInternals=l,b=l.stateNode,b.props=p,b.state=l.memoizedState,b.refs={},Qy(l),R=d.contextType,b.context=typeof R=="object"&&R!==null?tr(R):ju,b.state=l.memoizedState,R=d.getDerivedStateFromProps,typeof R=="function"&&(xb(l,d,R,p),b.state=l.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(R=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),R!==b.state&&Cb.enqueueReplaceState(b,b.state,null),of(l,p,b,v),sf(),b.state=l.memoizedState),typeof b.componentDidMount=="function"&&(l.flags|=4194308),p=!0}else if(o===null){b=l.stateNode;var M=l.memoizedProps,B=bl(d,M);b.props=B;var te=b.context,ie=d.contextType;R=ju,typeof ie=="object"&&ie!==null&&(R=tr(ie));var de=d.getDerivedStateFromProps;ie=typeof de=="function"||typeof b.getSnapshotBeforeUpdate=="function",M=l.pendingProps!==M,ie||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(M||te!==R)&&lT(l,b,p,R),Qo=!1;var re=l.memoizedState;b.state=re,of(l,p,b,v),sf(),te=l.memoizedState,M||re!==te||Qo?(typeof de=="function"&&(xb(l,d,de,p),te=l.memoizedState),(B=Qo||iT(l,d,B,p,re,te,R))?(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=R,p=B):(typeof b.componentDidMount=="function"&&(l.flags|=4194308),p=!1)}else{b=l.stateNode,Jy(o,l),R=l.memoizedProps,ie=bl(d,R),b.props=ie,de=l.pendingProps,re=b.context,te=d.contextType,B=ju,typeof te=="object"&&te!==null&&(B=tr(te)),M=d.getDerivedStateFromProps,(te=typeof M=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(R!==de||re!==B)&&lT(l,b,p,B),Qo=!1,re=l.memoizedState,b.state=re,of(l,p,b,v),sf();var se=l.memoizedState;R!==de||re!==se||Qo||o!==null&&o.dependencies!==null&&em(o.dependencies)?(typeof M=="function"&&(xb(l,d,M,p),se=l.memoizedState),(ie=Qo||iT(l,d,ie,p,re,se,B)||o!==null&&o.dependencies!==null&&em(o.dependencies))?(te||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(p,se,B),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(p,se,B)),typeof b.componentDidUpdate=="function"&&(l.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof b.componentDidUpdate!="function"||R===o.memoizedProps&&re===o.memoizedState||(l.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||R===o.memoizedProps&&re===o.memoizedState||(l.flags|=1024),l.memoizedProps=p,l.memoizedState=se),b.props=p,b.state=se,b.context=B,p=ie):(typeof b.componentDidUpdate!="function"||R===o.memoizedProps&&re===o.memoizedState||(l.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||R===o.memoizedProps&&re===o.memoizedState||(l.flags|=1024),p=!1)}return b=p,bm(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=vl(l,o.child,null,v),l.child=vl(l,null,d,v)):nr(o,l,d,v),l.memoizedState=b.state,o=l.child):o=Gs(o,l,v),o}function CT(o,l,d,p){return dl(),l.flags|=256,nr(o,l,d,p),l.child}var Ab={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rb(o){return{baseLanes:o,cachePool:fI()}}function Ib(o,l,d){return o=o!==null?o.childLanes&~d:0,l&&(o|=na),o}function ET(o,l,d){var p=l.pendingProps,v=!1,b=(l.flags&128)!==0,R;if((R=b)||(R=o!==null&&o.memoizedState===null?!1:(Cn.current&2)!==0),R&&(v=!0,l.flags&=-129),R=(l.flags&32)!==0,l.flags&=-33,o===null){if(mt){if(v?ti(l):ni(),(o=rn)?(o=N4(o,Sa),o=o!==null&&o.data!=="&"?o:null,o!==null&&(l.memoizedState={dehydrated:o,treeContext:Ko!==null?{id:us,overflow:cs}:null,retryLane:536870912,hydrationErrors:null},d=rI(o),d.return=l,l.child=d,er=l,rn=null)):o=null,o===null)throw Zo(l);return dS(o)?l.lanes=32:l.lanes=536870912,null}var M=p.children;return p=p.fallback,v?(ni(),v=l.mode,M=Sm({mode:"hidden",children:M},v),p=cl(p,v,d,null),M.return=l,p.return=l,M.sibling=p,l.child=M,p=l.child,p.memoizedState=Rb(d),p.childLanes=Ib(o,R,d),l.memoizedState=Ab,ff(null,p)):(ti(l),Tb(l,M))}var B=o.memoizedState;if(B!==null&&(M=B.dehydrated,M!==null)){if(b)l.flags&256?(ti(l),l.flags&=-257,l=Ob(o,l,d)):l.memoizedState!==null?(ni(),l.child=o.child,l.flags|=128,l=null):(ni(),M=p.fallback,v=l.mode,p=Sm({mode:"visible",children:p.children},v),M=cl(M,v,d,null),M.flags|=2,p.return=l,M.return=l,p.sibling=M,l.child=p,vl(l,o.child,null,d),p=l.child,p.memoizedState=Rb(d),p.childLanes=Ib(o,R,d),l.memoizedState=Ab,l=ff(null,p));else if(ti(l),dS(M)){if(R=M.nextSibling&&M.nextSibling.dataset,R)var te=R.dgst;R=te,p=Error(r(419)),p.stack="",p.digest=R,Jd({value:p,source:null,stack:null}),l=Ob(o,l,d)}else if(An||Bu(o,l,d,!1),R=(d&o.childLanes)!==0,An||R){if(R=Qt,R!==null&&(p=Ud(R,d),p!==0&&p!==B.retryLane))throw B.retryLane=p,ul(o,p),jr(R,o,p),_b;cS(M)||Im(),l=Ob(o,l,d)}else cS(M)?(l.flags|=192,l.child=o.child,l=null):(o=B.treeContext,rn=xa(M.nextSibling),er=l,mt=!0,Yo=null,Sa=!1,o!==null&&oI(l,o),l=Tb(l,p.children),l.flags|=4096);return l}return v?(ni(),M=p.fallback,v=l.mode,B=o.child,te=B.sibling,p=$s(B,{mode:"hidden",children:p.children}),p.subtreeFlags=B.subtreeFlags&65011712,te!==null?M=$s(te,M):(M=cl(M,v,d,null),M.flags|=2),M.return=l,p.return=l,p.sibling=M,l.child=p,ff(null,p),p=l.child,M=o.child.memoizedState,M===null?M=Rb(d):(v=M.cachePool,v!==null?(B=_n._currentValue,v=v.parent!==B?{parent:B,pool:B}:v):v=fI(),M={baseLanes:M.baseLanes|d,cachePool:v}),p.memoizedState=M,p.childLanes=Ib(o,R,d),l.memoizedState=Ab,ff(o.child,p)):(ti(l),d=o.child,o=d.sibling,d=$s(d,{mode:"visible",children:p.children}),d.return=l,d.sibling=null,o!==null&&(R=l.deletions,R===null?(l.deletions=[o],l.flags|=16):R.push(o)),l.child=d,l.memoizedState=null,d)}function Tb(o,l){return l=Sm({mode:"visible",children:l},o.mode),l.return=o,o.child=l}function Sm(o,l){return o=Qr(22,o,null,l),o.lanes=0,o}function Ob(o,l,d){return vl(l,o.child,null,d),o=Tb(l,l.pendingProps.children),o.flags|=2,l.memoizedState=null,o}function _T(o,l,d){o.lanes|=l;var p=o.alternate;p!==null&&(p.lanes|=l),Vy(o.return,l,d)}function Nb(o,l,d,p,v,b){var R=o.memoizedState;R===null?o.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:p,tail:d,tailMode:v,treeForkCount:b}:(R.isBackwards=l,R.rendering=null,R.renderingStartTime=0,R.last=p,R.tail=d,R.tailMode=v,R.treeForkCount=b)}function kT(o,l,d){var p=l.pendingProps,v=p.revealOrder,b=p.tail;p=p.children;var R=Cn.current,M=(R&2)!==0;if(M?(R=R&1|2,l.flags|=128):R&=1,K(Cn,R),nr(o,l,p,d),p=mt?Qd:0,!M&&o!==null&&(o.flags&128)!==0)e:for(o=l.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&_T(o,d,l);else if(o.tag===19)_T(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&&lm(o)===null&&(v=d),d=d.sibling;d=v,d===null?(v=l.child,l.child=null):(v=d.sibling,d.sibling=null),Nb(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&&lm(o)===null){l.child=v;break}o=v.sibling,v.sibling=d,d=v,v=o}Nb(l,!0,d,null,b,p);break;case"together":Nb(l,!1,null,null,void 0,p);break;default:l.memoizedState=null}return l.child}function Gs(o,l,d){if(o!==null&&(l.dependencies=o.dependencies),si|=l.lanes,(d&l.childLanes)===0)if(o!==null){if(Bu(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=$s(o,o.pendingProps),l.child=d,d.return=l;o.sibling!==null;)o=o.sibling,d=d.sibling=$s(o,o.pendingProps),d.return=l;d.sibling=null}return l.child}function Mb(o,l){return(o.lanes&l)!==0?!0:(o=o.dependencies,!!(o!==null&&em(o)))}function AW(o,l,d){switch(l.tag){case 3:ce(l,l.stateNode.containerInfo),Xo(l,_n,o.memoizedState.cache),dl();break;case 27:case 5:Qe(l);break;case 4:ce(l,l.stateNode.containerInfo);break;case 10:Xo(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,ab(l),null;break;case 13:var p=l.memoizedState;if(p!==null)return p.dehydrated!==null?(ti(l),l.flags|=128,null):(d&l.child.childLanes)!==0?ET(o,l,d):(ti(l),o=Gs(o,l,d),o!==null?o.sibling:null);ti(l);break;case 19:var v=(o.flags&128)!==0;if(p=(d&l.childLanes)!==0,p||(Bu(o,l,d,!1),p=(d&l.childLanes)!==0),v){if(p)return kT(o,l,d);l.flags|=128}if(v=l.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),K(Cn,Cn.current),p)break;return null;case 22:return l.lanes=0,yT(o,l,d,l.pendingProps);case 24:Xo(l,_n,o.memoizedState.cache)}return Gs(o,l,d)}function AT(o,l,d){if(o!==null)if(o.memoizedProps!==l.pendingProps)An=!0;else{if(!Mb(o,d)&&(l.flags&128)===0)return An=!1,AW(o,l,d);An=(o.flags&131072)!==0}else An=!1,mt&&(l.flags&1048576)!==0&&sI(l,Qd,l.index);switch(l.lanes=0,l.tag){case 16:e:{var p=l.pendingProps;if(o=ml(l.elementType),l.type=o,typeof o=="function")jy(o)?(p=bl(o,p),l.tag=1,l=xT(null,l,o,p,d)):(l.tag=0,l=kb(null,l,o,p,d));else{if(o!=null){var v=o.$$typeof;if(v===I){l.tag=11,l=mT(null,l,o,p,d);break e}else if(v===T){l.tag=14,l=gT(null,l,o,p,d);break e}}throw l=Z(o)||o,Error(r(306,l,""))}}return l;case 0:return kb(o,l,l.type,l.pendingProps,d);case 1:return p=l.type,v=bl(p,l.pendingProps),xT(o,l,p,v,d);case 3:e:{if(ce(l,l.stateNode.containerInfo),o===null)throw Error(r(387));p=l.pendingProps;var b=l.memoizedState;v=b.element,Jy(o,l),of(l,p,null,d);var R=l.memoizedState;if(p=R.cache,Xo(l,_n,p),p!==b.cache&&Gy(l,[_n],d,!0),sf(),p=R.element,b.isDehydrated)if(b={element:p,isDehydrated:!1,cache:R.cache},l.updateQueue.baseState=b,l.memoizedState=b,l.flags&256){l=CT(o,l,p,d);break e}else if(p!==v){v=va(Error(r(424)),l),Jd(v),l=CT(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,rn=xa(o.firstChild),er=l,mt=!0,Yo=null,Sa=!0,d=yI(l,null,p,d),l.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(dl(),p===v){l=Gs(o,l,d);break e}nr(o,l,p,d)}l=l.child}return l;case 26:return bm(o,l),o===null?(d=j4(l.type,null,l.pendingProps,null))?l.memoizedState=d:mt||(d=l.type,o=l.pendingProps,p=Dm(ue.current).createElement(d),p[Dn]=l,p[pr]=o,rr(p,d,o),Xt(p),l.stateNode=p):l.memoizedState=j4(l.type,o.memoizedProps,l.pendingProps,o.memoizedState),null;case 27:return Qe(l),o===null&&mt&&(p=l.stateNode=L4(l.type,l.pendingProps,ue.current),er=l,Sa=!0,v=rn,ci(l.type)?(fS=v,rn=xa(p.firstChild)):rn=v),nr(o,l,l.pendingProps.children,d),bm(o,l),o===null&&(l.flags|=4194304),l.child;case 5:return o===null&&mt&&((v=p=rn)&&(p=rV(p,l.type,l.pendingProps,Sa),p!==null?(l.stateNode=p,er=l,rn=xa(p.firstChild),Sa=!1,v=!0):v=!1),v||Zo(l)),Qe(l),v=l.type,b=l.pendingProps,R=o!==null?o.memoizedProps:null,p=b.children,iS(v,b)?p=null:R!==null&&iS(v,R)&&(l.flags|=32),l.memoizedState!==null&&(v=ob(o,l,yW,null,null,d),Af._currentValue=v),bm(o,l),nr(o,l,p,d),l.child;case 6:return o===null&&mt&&((o=d=rn)&&(d=aV(d,l.pendingProps,Sa),d!==null?(l.stateNode=d,er=l,rn=null,o=!0):o=!1),o||Zo(l)),null;case 13:return ET(o,l,d);case 4:return ce(l,l.stateNode.containerInfo),p=l.pendingProps,o===null?l.child=vl(l,null,p,d):nr(o,l,p,d),l.child;case 11:return mT(o,l,l.type,l.pendingProps,d);case 7:return nr(o,l,l.pendingProps,d),l.child;case 8:return nr(o,l,l.pendingProps.children,d),l.child;case 12:return nr(o,l,l.pendingProps.children,d),l.child;case 10:return p=l.pendingProps,Xo(l,l.type,p.value),nr(o,l,p.children,d),l.child;case 9:return v=l.type._context,p=l.pendingProps.children,hl(l),v=tr(v),p=p(v),l.flags|=1,nr(o,l,p,d),l.child;case 14:return gT(o,l,l.type,l.pendingProps,d);case 15:return vT(o,l,l.type,l.pendingProps,d);case 19:return kT(o,l,d);case 31:return kW(o,l,d);case 22:return yT(o,l,d,l.pendingProps);case 24:return hl(l),p=tr(_n),o===null?(v=Zy(),v===null&&(v=Qt,b=Ky(),v.pooledCache=b,b.refCount++,b!==null&&(v.pooledCacheLanes|=d),v=b),l.memoizedState={parent:p,cache:v},Qy(l),Xo(l,_n,v)):((o.lanes&d)!==0&&(Jy(o,l),of(l,null,null,d),sf()),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),Xo(l,_n,p)):(p=b.cache,Xo(l,_n,p),p!==v.cache&&Gy(l,[_n],d,!0))),nr(o,l,l.pendingProps.children,d),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function Ks(o){o.flags|=4}function Pb(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(e4())o.flags|=8192;else throw gl=am,Xy}else o.flags&=-16777217}function RT(o,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!H4(l))if(e4())o.flags|=8192;else throw gl=am,Xy}function wm(o,l){l!==null&&(o.flags|=4),o.flags&16384&&(l=o.tag!==22?el():536870912,o.lanes|=l,ec|=l)}function hf(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 an(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 RW(o,l,d){var p=l.pendingProps;switch(By(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return an(l),null;case 1:return an(l),null;case 3:return d=l.stateNode,p=null,o!==null&&(p=o.memoizedState.cache),l.memoizedState.cache!==p&&(l.flags|=2048),qs(_n),be(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(o===null||o.child===null)&&($u(l)?Ks(l):o===null||o.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,qy())),an(l),null;case 26:var v=l.type,b=l.memoizedState;return o===null?(Ks(l),b!==null?(an(l),RT(l,b)):(an(l),Pb(l,v,null,p,d))):b?b!==o.memoizedState?(Ks(l),an(l),RT(l,b)):(an(l),l.flags&=-16777217):(o=o.memoizedProps,o!==p&&Ks(l),an(l),Pb(l,v,o,p,d)),null;case 27:if(Le(l),d=ue.current,v=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==p&&Ks(l);else{if(!p){if(l.stateNode===null)throw Error(r(166));return an(l),null}o=J.current,$u(l)?iI(l):(o=L4(v,p,d),l.stateNode=o,Ks(l))}return an(l),null;case 5:if(Le(l),v=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==p&&Ks(l);else{if(!p){if(l.stateNode===null)throw Error(r(166));return an(l),null}if(b=J.current,$u(l))iI(l);else{var R=Dm(ue.current);switch(b){case 1:b=R.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:b=R.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":b=R.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":b=R.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":b=R.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof p.is=="string"?R.createElement("select",{is:p.is}):R.createElement("select"),p.multiple?b.multiple=!0:p.size&&(b.size=p.size);break;default:b=typeof p.is=="string"?R.createElement(v,{is:p.is}):R.createElement(v)}}b[Dn]=l,b[pr]=p;e:for(R=l.child;R!==null;){if(R.tag===5||R.tag===6)b.appendChild(R.stateNode);else if(R.tag!==4&&R.tag!==27&&R.child!==null){R.child.return=R,R=R.child;continue}if(R===l)break e;for(;R.sibling===null;){if(R.return===null||R.return===l)break e;R=R.return}R.sibling.return=R.return,R=R.sibling}l.stateNode=b;e:switch(rr(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&&Ks(l)}}return an(l),Pb(l,l.type,o===null?null:o.memoizedProps,l.pendingProps,d),null;case 6:if(o&&l.stateNode!=null)o.memoizedProps!==p&&Ks(l);else{if(typeof p!="string"&&l.stateNode===null)throw Error(r(166));if(o=ue.current,$u(l)){if(o=l.stateNode,d=l.memoizedProps,p=null,v=er,v!==null)switch(v.tag){case 27:case 5:p=v.memoizedProps}o[Dn]=l,o=!!(o.nodeValue===d||p!==null&&p.suppressHydrationWarning===!0||E4(o.nodeValue,d)),o||Zo(l,!0)}else o=Dm(o).createTextNode(p),o[Dn]=l,l.stateNode=o}return an(l),null;case 31:if(d=l.memoizedState,o===null||o.memoizedState!==null){if(p=$u(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[Dn]=l}else dl(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;an(l),o=!1}else d=qy(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=d),o=!0;if(!o)return l.flags&256?(ea(l),l):(ea(l),null);if((l.flags&128)!==0)throw Error(r(558))}return an(l),null;case 13:if(p=l.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(v=$u(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[Dn]=l}else dl(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;an(l),v=!1}else v=qy(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=v),v=!0;if(!v)return l.flags&256?(ea(l),l):(ea(l),null)}return ea(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),wm(l,l.updateQueue),an(l),null);case 4:return be(),o===null&&nS(l.stateNode.containerInfo),an(l),null;case 10:return qs(l.type),an(l),null;case 19:if(V(Cn),p=l.memoizedState,p===null)return an(l),null;if(v=(l.flags&128)!==0,b=p.rendering,b===null)if(v)hf(p,!1);else{if(Sn!==0||o!==null&&(o.flags&128)!==0)for(o=l.child;o!==null;){if(b=lm(o),b!==null){for(l.flags|=128,hf(p,!1),o=b.updateQueue,l.updateQueue=o,wm(l,o),l.subtreeFlags=0,o=d,d=l.child;d!==null;)nI(d,o),d=d.sibling;return K(Cn,Cn.current&1|2),mt&&Bs(l,p.treeForkCount),l.child}o=o.sibling}p.tail!==null&&tn()>km&&(l.flags|=128,v=!0,hf(p,!1),l.lanes=4194304)}else{if(!v)if(o=lm(b),o!==null){if(l.flags|=128,v=!0,o=o.updateQueue,l.updateQueue=o,wm(l,o),hf(p,!0),p.tail===null&&p.tailMode==="hidden"&&!b.alternate&&!mt)return an(l),null}else 2*tn()-p.renderingStartTime>km&&d!==536870912&&(l.flags|=128,v=!0,hf(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=tn(),o.sibling=null,d=Cn.current,K(Cn,v?d&1|2:d&1),mt&&Bs(l,p.treeForkCount),o):(an(l),null);case 22:case 23:return ea(l),rb(),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&&(an(l),l.subtreeFlags&6&&(l.flags|=8192)):an(l),d=l.updateQueue,d!==null&&wm(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&&V(pl),null;case 24:return d=null,o!==null&&(d=o.memoizedState.cache),l.memoizedState.cache!==d&&(l.flags|=2048),qs(_n),an(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function IW(o,l){switch(By(l),l.tag){case 1:return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return qs(_n),be(),o=l.flags,(o&65536)!==0&&(o&128)===0?(l.flags=o&-65537|128,l):null;case 26:case 27:case 5:return Le(l),null;case 31:if(l.memoizedState!==null){if(ea(l),l.alternate===null)throw Error(r(340));dl()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 13:if(ea(l),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(r(340));dl()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return V(Cn),null;case 4:return be(),null;case 10:return qs(l.type),null;case 22:case 23:return ea(l),rb(),o!==null&&V(pl),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 24:return qs(_n),null;case 25:return null;default:return null}}function IT(o,l){switch(By(l),l.tag){case 3:qs(_n),be();break;case 26:case 27:case 5:Le(l);break;case 4:be();break;case 31:l.memoizedState!==null&&ea(l);break;case 13:ea(l);break;case 19:V(Cn);break;case 10:qs(l.type);break;case 22:case 23:ea(l),rb(),o!==null&&V(pl);break;case 24:qs(_n)}}function pf(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,R=d.inst;p=b(),R.destroy=p}d=d.next}while(d!==v)}}catch(M){zt(l,l.return,M)}}function ri(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 R=p.inst,M=R.destroy;if(M!==void 0){R.destroy=void 0,v=l;var B=d,te=M;try{te()}catch(ie){zt(v,B,ie)}}}p=p.next}while(p!==b)}}catch(ie){zt(l,l.return,ie)}}function TT(o){var l=o.updateQueue;if(l!==null){var d=o.stateNode;try{SI(l,d)}catch(p){zt(o,o.return,p)}}}function OT(o,l,d){d.props=bl(o.type,o.memoizedProps),d.state=o.memoizedState;try{d.componentWillUnmount()}catch(p){zt(o,l,p)}}function mf(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 ds(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 NT(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 Lb(o,l,d){try{var p=o.stateNode;XW(p,o.type,d,l),p[pr]=l}catch(v){zt(o,o.return,v)}}function MT(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&ci(o.type)||o.tag===4}function Db(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||MT(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&&ci(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 Ub(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=Et));else if(p!==4&&(p===27&&ci(o.type)&&(d=o.stateNode,l=null),o=o.child,o!==null))for(Ub(o,l,d),o=o.sibling;o!==null;)Ub(o,l,d),o=o.sibling}function xm(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&&ci(o.type)&&(d=o.stateNode),o=o.child,o!==null))for(xm(o,l,d),o=o.sibling;o!==null;)xm(o,l,d),o=o.sibling}function PT(o){var l=o.stateNode,d=o.memoizedProps;try{for(var p=o.type,v=l.attributes;v.length;)l.removeAttributeNode(v[0]);rr(l,p,d),l[Dn]=o,l[pr]=d}catch(b){zt(o,o.return,b)}}var Ys=!1,Rn=!1,jb=!1,LT=typeof WeakSet=="function"?WeakSet:Set,Vn=null;function TW(o,l){if(o=o.containerInfo,sS=Hm,o=GR(o),Oy(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 R=0,M=-1,B=-1,te=0,ie=0,de=o,re=null;t:for(;;){for(var se;de!==d||v!==0&&de.nodeType!==3||(M=R+v),de!==b||p!==0&&de.nodeType!==3||(B=R+p),de.nodeType===3&&(R+=de.nodeValue.length),(se=de.firstChild)!==null;)re=de,de=se;for(;;){if(de===o)break t;if(re===d&&++te===v&&(M=R),re===b&&++ie===p&&(B=R),(se=de.nextSibling)!==null)break;de=re,re=de.parentNode}de=se}d=M===-1||B===-1?null:{start:M,end:B}}else d=null}d=d||{start:0,end:0}}else d=null;for(oS={focusedElem:o,selectionRange:d},Hm=!1,Vn=l;Vn!==null;)if(l=Vn,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,Vn=o;else for(;Vn!==null;){switch(l=Vn,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 ke=bl(d.type,v);o=p.getSnapshotBeforeUpdate(ke,b),p.__reactInternalSnapshotBeforeUpdate=o}catch(Fe){zt(d,d.return,Fe)}}break;case 3:if((o&1024)!==0){if(o=l.stateNode.containerInfo,d=o.nodeType,d===9)uS(o);else if(d===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":uS(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,Vn=o;break}Vn=l.return}}function DT(o,l,d){var p=d.flags;switch(d.tag){case 0:case 11:case 15:Xs(o,d),p&4&&pf(5,d);break;case 1:if(Xs(o,d),p&4)if(o=d.stateNode,l===null)try{o.componentDidMount()}catch(R){zt(d,d.return,R)}else{var v=bl(d.type,l.memoizedProps);l=l.memoizedState;try{o.componentDidUpdate(v,l,o.__reactInternalSnapshotBeforeUpdate)}catch(R){zt(d,d.return,R)}}p&64&&TT(d),p&512&&mf(d,d.return);break;case 3:if(Xs(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{SI(o,l)}catch(R){zt(d,d.return,R)}}break;case 27:l===null&&p&4&&PT(d);case 26:case 5:Xs(o,d),l===null&&p&4&&NT(d),p&512&&mf(d,d.return);break;case 12:Xs(o,d);break;case 31:Xs(o,d),p&4&&zT(o,d);break;case 13:Xs(o,d),p&4&&FT(o,d),p&64&&(o=d.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(d=zW.bind(null,d),sV(o,d))));break;case 22:if(p=d.memoizedState!==null||Ys,!p){l=l!==null&&l.memoizedState!==null||Rn,v=Ys;var b=Rn;Ys=p,(Rn=l)&&!b?Qs(o,d,(d.subtreeFlags&8772)!==0):Xs(o,d),Ys=v,Rn=b}break;case 30:break;default:Xs(o,d)}}function UT(o){var l=o.alternate;l!==null&&(o.alternate=null,UT(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&Tu(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 dn=null,Pr=!1;function Zs(o,l,d){for(d=d.child;d!==null;)jT(o,l,d),d=d.sibling}function jT(o,l,d){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(as,d)}catch{}switch(d.tag){case 26:Rn||ds(d,l),Zs(o,l,d),d.memoizedState?d.memoizedState.count--:d.stateNode&&(d=d.stateNode,d.parentNode.removeChild(d));break;case 27:Rn||ds(d,l);var p=dn,v=Pr;ci(d.type)&&(dn=d.stateNode,Pr=!1),Zs(o,l,d),Ef(d.stateNode),dn=p,Pr=v;break;case 5:Rn||ds(d,l);case 6:if(p=dn,v=Pr,dn=null,Zs(o,l,d),dn=p,Pr=v,dn!==null)if(Pr)try{(dn.nodeType===9?dn.body:dn.nodeName==="HTML"?dn.ownerDocument.body:dn).removeChild(d.stateNode)}catch(b){zt(d,l,b)}else try{dn.removeChild(d.stateNode)}catch(b){zt(d,l,b)}break;case 18:dn!==null&&(Pr?(o=dn,T4(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,d.stateNode),lc(o)):T4(dn,d.stateNode));break;case 4:p=dn,v=Pr,dn=d.stateNode.containerInfo,Pr=!0,Zs(o,l,d),dn=p,Pr=v;break;case 0:case 11:case 14:case 15:ri(2,d,l),Rn||ri(4,d,l),Zs(o,l,d);break;case 1:Rn||(ds(d,l),p=d.stateNode,typeof p.componentWillUnmount=="function"&&OT(d,l,p)),Zs(o,l,d);break;case 21:Zs(o,l,d);break;case 22:Rn=(p=Rn)||d.memoizedState!==null,Zs(o,l,d),Rn=p;break;default:Zs(o,l,d)}}function zT(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{lc(o)}catch(d){zt(l,l.return,d)}}}function FT(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{lc(o)}catch(d){zt(l,l.return,d)}}function OW(o){switch(o.tag){case 31:case 13:case 19:var l=o.stateNode;return l===null&&(l=o.stateNode=new LT),l;case 22:return o=o.stateNode,l=o._retryCache,l===null&&(l=o._retryCache=new LT),l;default:throw Error(r(435,o.tag))}}function Cm(o,l){var d=OW(o);l.forEach(function(p){if(!d.has(p)){d.add(p);var v=FW.bind(null,o,p);p.then(v,v)}})}function Lr(o,l){var d=l.deletions;if(d!==null)for(var p=0;p<d.length;p++){var v=d[p],b=o,R=l,M=R;e:for(;M!==null;){switch(M.tag){case 27:if(ci(M.type)){dn=M.stateNode,Pr=!1;break e}break;case 5:dn=M.stateNode,Pr=!1;break e;case 3:case 4:dn=M.stateNode.containerInfo,Pr=!0;break e}M=M.return}if(dn===null)throw Error(r(160));jT(b,R,v),dn=null,Pr=!1,b=v.alternate,b!==null&&(b.return=null),v.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)$T(l,o),l=l.sibling}var ja=null;function $T(o,l){var d=o.alternate,p=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Lr(l,o),Dr(o),p&4&&(ri(3,o,o.return),pf(3,o),ri(5,o,o.return));break;case 1:Lr(l,o),Dr(o),p&512&&(Rn||d===null||ds(d,d.return)),p&64&&Ys&&(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=ja;if(Lr(l,o),Dr(o),p&512&&(Rn||d===null||ds(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[Bo]||b[Dn]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=v.createElement(p),v.head.insertBefore(b,v.querySelector("head > title"))),rr(b,p,d),b[Dn]=o,Xt(b),p=b;break e;case"link":var R=$4("link","href",v).get(p+(d.href||""));if(R){for(var M=0;M<R.length;M++)if(b=R[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)){R.splice(M,1);break t}}b=v.createElement(p),rr(b,p,d),v.head.appendChild(b);break;case"meta":if(R=$4("meta","content",v).get(p+(d.content||""))){for(M=0;M<R.length;M++)if(b=R[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)){R.splice(M,1);break t}}b=v.createElement(p),rr(b,p,d),v.head.appendChild(b);break;default:throw Error(r(468,p))}b[Dn]=o,Xt(b),p=b}o.stateNode=p}else B4(v,o.type,o.stateNode);else o.stateNode=F4(v,p,o.memoizedProps);else b!==p?(b===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):b.count--,p===null?B4(v,o.type,o.stateNode):F4(v,p,o.memoizedProps)):p===null&&o.stateNode!==null&&Lb(o,o.memoizedProps,d.memoizedProps)}break;case 27:Lr(l,o),Dr(o),p&512&&(Rn||d===null||ds(d,d.return)),d!==null&&p&4&&Lb(o,o.memoizedProps,d.memoizedProps);break;case 5:if(Lr(l,o),Dr(o),p&512&&(Rn||d===null||ds(d,d.return)),o.flags&32){v=o.stateNode;try{me(v,"")}catch(ke){zt(o,o.return,ke)}}p&4&&o.stateNode!=null&&(v=o.memoizedProps,Lb(o,v,d!==null?d.memoizedProps:v)),p&1024&&(jb=!0);break;case 6:if(Lr(l,o),Dr(o),p&4){if(o.stateNode===null)throw Error(r(162));p=o.memoizedProps,d=o.stateNode;try{d.nodeValue=p}catch(ke){zt(o,o.return,ke)}}break;case 3:if(zm=null,v=ja,ja=Um(l.containerInfo),Lr(l,o),ja=v,Dr(o),p&4&&d!==null&&d.memoizedState.isDehydrated)try{lc(l.containerInfo)}catch(ke){zt(o,o.return,ke)}jb&&(jb=!1,BT(o));break;case 4:p=ja,ja=Um(o.stateNode.containerInfo),Lr(l,o),Dr(o),ja=p;break;case 12:Lr(l,o),Dr(o);break;case 31:Lr(l,o),Dr(o),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,Cm(o,p)));break;case 13:Lr(l,o),Dr(o),o.child.flags&8192&&o.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(_m=tn()),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,Cm(o,p)));break;case 22:v=o.memoizedState!==null;var B=d!==null&&d.memoizedState!==null,te=Ys,ie=Rn;if(Ys=te||v,Rn=ie||B,Lr(l,o),Rn=ie,Ys=te,Dr(o),p&8192)e:for(l=o.stateNode,l._visibility=v?l._visibility&-2:l._visibility|1,v&&(d===null||B||Ys||Rn||Sl(o)),d=null,l=o;;){if(l.tag===5||l.tag===26){if(d===null){B=d=l;try{if(b=B.stateNode,v)R=b.style,typeof R.setProperty=="function"?R.setProperty("display","none","important"):R.display="none";else{M=B.stateNode;var de=B.memoizedProps.style,re=de!=null&&de.hasOwnProperty("display")?de.display:null;M.style.display=re==null||typeof re=="boolean"?"":(""+re).trim()}}catch(ke){zt(B,B.return,ke)}}}else if(l.tag===6){if(d===null){B=l;try{B.stateNode.nodeValue=v?"":B.memoizedProps}catch(ke){zt(B,B.return,ke)}}}else if(l.tag===18){if(d===null){B=l;try{var se=B.stateNode;v?O4(se,!0):O4(B.stateNode,!1)}catch(ke){zt(B,B.return,ke)}}}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,Cm(o,d))));break;case 19:Lr(l,o),Dr(o),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,Cm(o,p)));break;case 30:break;case 21:break;default:Lr(l,o),Dr(o)}}function Dr(o){var l=o.flags;if(l&2){try{for(var d,p=o.return;p!==null;){if(MT(p)){d=p;break}p=p.return}if(d==null)throw Error(r(160));switch(d.tag){case 27:var v=d.stateNode,b=Db(o);xm(o,b,v);break;case 5:var R=d.stateNode;d.flags&32&&(me(R,""),d.flags&=-33);var M=Db(o);xm(o,M,R);break;case 3:case 4:var B=d.stateNode.containerInfo,te=Db(o);Ub(o,te,B);break;default:throw Error(r(161))}}catch(ie){zt(o,o.return,ie)}o.flags&=-3}l&4096&&(o.flags&=-4097)}function BT(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var l=o;BT(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),o=o.sibling}}function Xs(o,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)DT(o,l.alternate,l),l=l.sibling}function Sl(o){for(o=o.child;o!==null;){var l=o;switch(l.tag){case 0:case 11:case 14:case 15:ri(4,l,l.return),Sl(l);break;case 1:ds(l,l.return);var d=l.stateNode;typeof d.componentWillUnmount=="function"&&OT(l,l.return,d),Sl(l);break;case 27:Ef(l.stateNode);case 26:case 5:ds(l,l.return),Sl(l);break;case 22:l.memoizedState===null&&Sl(l);break;case 30:Sl(l);break;default:Sl(l)}o=o.sibling}}function Qs(o,l,d){for(d=d&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var p=l.alternate,v=o,b=l,R=b.flags;switch(b.tag){case 0:case 11:case 15:Qs(v,b,d),pf(4,b);break;case 1:if(Qs(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 B=v.shared.hiddenCallbacks;if(B!==null)for(v.shared.hiddenCallbacks=null,v=0;v<B.length;v++)bI(B[v],M)}catch(te){zt(p,p.return,te)}}d&&R&64&&TT(b),mf(b,b.return);break;case 27:PT(b);case 26:case 5:Qs(v,b,d),d&&p===null&&R&4&&NT(b),mf(b,b.return);break;case 12:Qs(v,b,d);break;case 31:Qs(v,b,d),d&&R&4&&zT(v,b);break;case 13:Qs(v,b,d),d&&R&4&&FT(v,b);break;case 22:b.memoizedState===null&&Qs(v,b,d),mf(b,b.return);break;case 30:break;default:Qs(v,b,d)}l=l.sibling}}function zb(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&&ef(d))}function Fb(o,l){o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&ef(o))}function za(o,l,d,p){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)HT(o,l,d,p),l=l.sibling}function HT(o,l,d,p){var v=l.flags;switch(l.tag){case 0:case 11:case 15:za(o,l,d,p),v&2048&&pf(9,l);break;case 1:za(o,l,d,p);break;case 3:za(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&&ef(o)));break;case 12:if(v&2048){za(o,l,d,p),o=l.stateNode;try{var b=l.memoizedProps,R=b.id,M=b.onPostCommit;typeof M=="function"&&M(R,l.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(B){zt(l,l.return,B)}}else za(o,l,d,p);break;case 31:za(o,l,d,p);break;case 13:za(o,l,d,p);break;case 23:break;case 22:b=l.stateNode,R=l.alternate,l.memoizedState!==null?b._visibility&2?za(o,l,d,p):gf(o,l):b._visibility&2?za(o,l,d,p):(b._visibility|=2,Xu(o,l,d,p,(l.subtreeFlags&10256)!==0||!1)),v&2048&&zb(R,l);break;case 24:za(o,l,d,p),v&2048&&Fb(l.alternate,l);break;default:za(o,l,d,p)}}function Xu(o,l,d,p,v){for(v=v&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var b=o,R=l,M=d,B=p,te=R.flags;switch(R.tag){case 0:case 11:case 15:Xu(b,R,M,B,v),pf(8,R);break;case 23:break;case 22:var ie=R.stateNode;R.memoizedState!==null?ie._visibility&2?Xu(b,R,M,B,v):gf(b,R):(ie._visibility|=2,Xu(b,R,M,B,v)),v&&te&2048&&zb(R.alternate,R);break;case 24:Xu(b,R,M,B,v),v&&te&2048&&Fb(R.alternate,R);break;default:Xu(b,R,M,B,v)}l=l.sibling}}function gf(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:gf(d,p),v&2048&&zb(p.alternate,p);break;case 24:gf(d,p),v&2048&&Fb(p.alternate,p);break;default:gf(d,p)}l=l.sibling}}var vf=8192;function Qu(o,l,d){if(o.subtreeFlags&vf)for(o=o.child;o!==null;)qT(o,l,d),o=o.sibling}function qT(o,l,d){switch(o.tag){case 26:Qu(o,l,d),o.flags&vf&&o.memoizedState!==null&&vV(d,ja,o.memoizedState,o.memoizedProps);break;case 5:Qu(o,l,d);break;case 3:case 4:var p=ja;ja=Um(o.stateNode.containerInfo),Qu(o,l,d),ja=p;break;case 22:o.memoizedState===null&&(p=o.alternate,p!==null&&p.memoizedState!==null?(p=vf,vf=16777216,Qu(o,l,d),vf=p):Qu(o,l,d));break;default:Qu(o,l,d)}}function WT(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 yf(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];Vn=p,GT(p,o)}WT(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)VT(o),o=o.sibling}function VT(o){switch(o.tag){case 0:case 11:case 15:yf(o),o.flags&2048&&ri(9,o,o.return);break;case 3:yf(o);break;case 12:yf(o);break;case 22:var l=o.stateNode;o.memoizedState!==null&&l._visibility&2&&(o.return===null||o.return.tag!==13)?(l._visibility&=-3,Em(o)):yf(o);break;default:yf(o)}}function Em(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];Vn=p,GT(p,o)}WT(o)}for(o=o.child;o!==null;){switch(l=o,l.tag){case 0:case 11:case 15:ri(8,l,l.return),Em(l);break;case 22:d=l.stateNode,d._visibility&2&&(d._visibility&=-3,Em(l));break;default:Em(l)}o=o.sibling}}function GT(o,l){for(;Vn!==null;){var d=Vn;switch(d.tag){case 0:case 11:case 15:ri(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:ef(d.memoizedState.cache)}if(p=d.child,p!==null)p.return=d,Vn=p;else e:for(d=o;Vn!==null;){p=Vn;var v=p.sibling,b=p.return;if(UT(p),p===d){Vn=null;break e}if(v!==null){v.return=b,Vn=v;break e}Vn=b}}}var NW={getCacheForType:function(o){var l=tr(_n),d=l.data.get(o);return d===void 0&&(d=o(),l.data.set(o,d)),d},cacheSignal:function(){return tr(_n).controller.signal}},MW=typeof WeakMap=="function"?WeakMap:Map,Nt=0,Qt=null,it=null,dt=0,jt=0,ta=null,ai=!1,Ju=!1,$b=!1,Js=0,Sn=0,si=0,wl=0,Bb=0,na=0,ec=0,bf=null,Ur=null,Hb=!1,_m=0,KT=0,km=1/0,Am=null,oi=null,Un=0,ii=null,tc=null,eo=0,qb=0,Wb=null,YT=null,Sf=0,Vb=null;function ra(){return(Nt&2)!==0&&dt!==0?dt&-dt:H.T!==null?Qb():Ru()}function ZT(){if(na===0)if((dt&536870912)===0||mt){var o=zo;zo<<=1,(zo&3932160)===0&&(zo=262144),na=o}else na=536870912;return o=Jr.current,o!==null&&(o.flags|=32),na}function jr(o,l,d){(o===Qt&&(jt===2||jt===9)||o.cancelPendingCommit!==null)&&(nc(o,0),li(o,dt,na,!1)),pa(o,d),((Nt&2)===0||o!==Qt)&&(o===Qt&&((Nt&2)===0&&(wl|=d),Sn===4&&li(o,dt,na,!1)),fs(o))}function XT(o,l,d){if((Nt&6)!==0)throw Error(r(327));var p=!d&&(l&127)===0&&(l&o.expiredLanes)===0||$o(o,l),v=p?DW(o,l):Kb(o,l,!0),b=p;do{if(v===0){Ju&&!p&&li(o,l,0,!1);break}else{if(d=o.current.alternate,b&&!PW(d)){v=Kb(o,l,!1),b=!1;continue}if(v===2){if(b=l,o.errorRecoveryDisabledLanes&b)var R=0;else R=o.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){l=R;e:{var M=o;v=bf;var B=M.current.memoizedState.isDehydrated;if(B&&(nc(M,R).flags|=256),R=Kb(M,R,!1),R!==2){if($b&&!B){M.errorRecoveryDisabledLanes|=b,wl|=b,v=4;break e}b=Ur,Ur=v,b!==null&&(Ur===null?Ur=b:Ur.push.apply(Ur,b))}v=R}if(b=!1,v!==2)continue}}if(v===1){nc(o,0),li(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:li(p,l,na,!ai);break e;case 2:Ur=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(v=_m+300-tn(),10<v)){if(li(p,l,na,!ai),Fo(p,0,!0)!==0)break e;eo=l,p.timeoutHandle=R4(QT.bind(null,p,d,Ur,Am,Hb,l,na,wl,ec,ai,b,"Throttled",-0,0),v);break e}QT(p,d,Ur,Am,Hb,l,na,wl,ec,ai,b,null,-0,0)}}break}while(!0);fs(o)}function QT(o,l,d,p,v,b,R,M,B,te,ie,de,re,se){if(o.timeoutHandle=-1,de=l.subtreeFlags,de&8192||(de&16785408)===16785408){de={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Et},qT(l,b,de);var ke=(b&62914560)===b?_m-tn():(b&4194048)===b?KT-tn():0;if(ke=yV(de,ke),ke!==null){eo=b,o.cancelPendingCommit=ke(o4.bind(null,o,l,b,d,p,v,R,M,B,ie,de,null,re,se)),li(o,b,R,!te);return}}o4(o,l,b,d,p,v,R,M,B)}function PW(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(!Xr(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 li(o,l,d,p){l&=~Bb,l&=~wl,o.suspendedLanes|=l,o.pingedLanes&=~l,p&&(o.warmLanes|=l),p=o.expirationTimes;for(var v=l;0<v;){var b=31-hr(v),R=1<<b;p[b]=-1,v&=~R}d!==0&&ku(o,d,l)}function Rm(){return(Nt&6)===0?(wf(0),!1):!0}function Gb(){if(it!==null){if(jt===0)var o=it.return;else o=it,Hs=fl=null,ub(o),Vu=null,nf=0,o=it;for(;o!==null;)IT(o.alternate,o),o=o.return;it=null}}function nc(o,l){var d=o.timeoutHandle;d!==-1&&(o.timeoutHandle=-1,eV(d)),d=o.cancelPendingCommit,d!==null&&(o.cancelPendingCommit=null,d()),eo=0,Gb(),Qt=o,it=d=$s(o.current,null),dt=l,jt=0,ta=null,ai=!1,Ju=$o(o,l),$b=!1,ec=na=Bb=wl=si=Sn=0,Ur=bf=null,Hb=!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-hr(p),b=1<<v;l|=o[v],p&=~b}return Js=l,Yp(),d}function JT(o,l){Je=null,H.H=df,l===Wu||l===rm?(l=mI(),jt=3):l===Xy?(l=mI(),jt=4):jt=l===_b?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,ta=l,it===null&&(Sn=1,vm(o,va(l,o.current)))}function e4(){var o=Jr.current;return o===null?!0:(dt&4194048)===dt?wa===null:(dt&62914560)===dt||(dt&536870912)!==0?o===wa:!1}function t4(){var o=H.H;return H.H=df,o===null?df:o}function n4(){var o=H.A;return H.A=NW,o}function Im(){Sn=4,ai||(dt&4194048)!==dt&&Jr.current!==null||(Ju=!0),(si&134217727)===0&&(wl&134217727)===0||Qt===null||li(Qt,dt,na,!1)}function Kb(o,l,d){var p=Nt;Nt|=2;var v=t4(),b=n4();(Qt!==o||dt!==l)&&(Am=null,nc(o,l)),l=!1;var R=Sn;e:do try{if(jt!==0&&it!==null){var M=it,B=ta;switch(jt){case 8:Gb(),R=6;break e;case 3:case 2:case 9:case 6:Jr.current===null&&(l=!0);var te=jt;if(jt=0,ta=null,rc(o,M,B,te),d&&Ju){R=0;break e}break;default:te=jt,jt=0,ta=null,rc(o,M,B,te)}}LW(),R=Sn;break}catch(ie){JT(o,ie)}while(!0);return l&&o.shellSuspendCounter++,Hs=fl=null,Nt=p,H.H=v,H.A=b,it===null&&(Qt=null,dt=0,Yp()),R}function LW(){for(;it!==null;)r4(it)}function DW(o,l){var d=Nt;Nt|=2;var p=t4(),v=n4();Qt!==o||dt!==l?(Am=null,km=tn()+500,nc(o,l)):Ju=$o(o,l);e:do try{if(jt!==0&&it!==null){l=it;var b=ta;t:switch(jt){case 1:jt=0,ta=null,rc(o,l,b,1);break;case 2:case 9:if(hI(b)){jt=0,ta=null,a4(l);break}l=function(){jt!==2&&jt!==9||Qt!==o||(jt=7),fs(o)},b.then(l,l);break e;case 3:jt=7;break e;case 4:jt=5;break e;case 7:hI(b)?(jt=0,ta=null,a4(l)):(jt=0,ta=null,rc(o,l,b,7));break;case 5:var R=null;switch(it.tag){case 26:R=it.memoizedState;case 5:case 27:var M=it;if(R?H4(R):M.stateNode.complete){jt=0,ta=null;var B=M.sibling;if(B!==null)it=B;else{var te=M.return;te!==null?(it=te,Tm(te)):it=null}break t}}jt=0,ta=null,rc(o,l,b,5);break;case 6:jt=0,ta=null,rc(o,l,b,6);break;case 8:Gb(),Sn=6;break e;default:throw Error(r(462))}}UW();break}catch(ie){JT(o,ie)}while(!0);return Hs=fl=null,H.H=p,H.A=v,Nt=d,it!==null?0:(Qt=null,dt=0,Yp(),Sn)}function UW(){for(;it!==null&&!rs();)r4(it)}function r4(o){var l=AT(o.alternate,o,Js);o.memoizedProps=o.pendingProps,l===null?Tm(o):it=l}function a4(o){var l=o,d=l.alternate;switch(l.tag){case 15:case 0:l=wT(d,l,l.pendingProps,l.type,void 0,dt);break;case 11:l=wT(d,l,l.pendingProps,l.type.render,l.ref,dt);break;case 5:ub(l);default:IT(d,l),l=it=nI(l,Js),l=AT(d,l,Js)}o.memoizedProps=o.pendingProps,l===null?Tm(o):it=l}function rc(o,l,d,p){Hs=fl=null,ub(l),Vu=null,nf=0;var v=l.return;try{if(_W(o,v,l,d,dt)){Sn=1,vm(o,va(d,o.current)),it=null;return}}catch(b){if(v!==null)throw it=v,b;Sn=1,vm(o,va(d,o.current)),it=null;return}l.flags&32768?(mt||p===1?o=!0:Ju||(dt&536870912)!==0?o=!1:(ai=o=!0,(p===2||p===9||p===3||p===6)&&(p=Jr.current,p!==null&&p.tag===13&&(p.flags|=16384))),s4(l,o)):Tm(l)}function Tm(o){var l=o;do{if((l.flags&32768)!==0){s4(l,ai);return}o=l.return;var d=RW(l.alternate,l,Js);if(d!==null){it=d;return}if(l=l.sibling,l!==null){it=l;return}it=l=o}while(l!==null);Sn===0&&(Sn=5)}function s4(o,l){do{var d=IW(o.alternate,o);if(d!==null){d.flags&=32767,it=d;return}if(d=o.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!l&&(o=o.sibling,o!==null)){it=o;return}it=o=d}while(o!==null);Sn=6,it=null}function o4(o,l,d,p,v,b,R,M,B){o.cancelPendingCommit=null;do Om();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|=Dy,Dd(o,d,b,R,M,B),o===Qt&&(it=Qt=null,dt=0),tc=l,ii=o,eo=d,qb=b,Wb=v,YT=p,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,$W(La,function(){return d4(),null})):(o.callbackNode=null,o.callbackPriority=0),p=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||p){p=H.T,H.T=null,v=X.p,X.p=2,R=Nt,Nt|=4;try{TW(o,l,d)}finally{Nt=R,X.p=v,H.T=p}}Un=1,i4(),l4(),u4()}}function i4(){if(Un===1){Un=0;var o=ii,l=tc,d=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||d){d=H.T,H.T=null;var p=X.p;X.p=2;var v=Nt;Nt|=4;try{$T(l,o);var b=oS,R=GR(o.containerInfo),M=b.focusedElem,B=b.selectionRange;if(R!==M&&M&&M.ownerDocument&&VR(M.ownerDocument.documentElement,M)){if(B!==null&&Oy(M)){var te=B.start,ie=B.end;if(ie===void 0&&(ie=te),"selectionStart"in M)M.selectionStart=te,M.selectionEnd=Math.min(ie,M.value.length);else{var de=M.ownerDocument||document,re=de&&de.defaultView||window;if(re.getSelection){var se=re.getSelection(),ke=M.textContent.length,Fe=Math.min(B.start,ke),Wt=B.end===void 0?Fe:Math.min(B.end,ke);!se.extend&&Fe>Wt&&(R=Wt,Wt=Fe,Fe=R);var Y=WR(M,Fe),W=WR(M,Wt);if(Y&&W&&(se.rangeCount!==1||se.anchorNode!==Y.node||se.anchorOffset!==Y.offset||se.focusNode!==W.node||se.focusOffset!==W.offset)){var ee=de.createRange();ee.setStart(Y.node,Y.offset),se.removeAllRanges(),Fe>Wt?(se.addRange(ee),se.extend(W.node,W.offset)):(ee.setEnd(W.node,W.offset),se.addRange(ee))}}}}for(de=[],se=M;se=se.parentNode;)se.nodeType===1&&de.push({element:se,left:se.scrollLeft,top:se.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M<de.length;M++){var le=de[M];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}Hm=!!sS,oS=sS=null}finally{Nt=v,X.p=p,H.T=d}}o.current=l,Un=2}}function l4(){if(Un===2){Un=0;var o=ii,l=tc,d=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||d){d=H.T,H.T=null;var p=X.p;X.p=2;var v=Nt;Nt|=4;try{DT(o,l.alternate,l)}finally{Nt=v,X.p=p,H.T=d}}Un=3}}function u4(){if(Un===4||Un===3){Un=0,Do();var o=ii,l=tc,d=eo,p=YT;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Un=5:(Un=0,tc=ii=null,c4(o,o.pendingLanes));var v=o.pendingLanes;if(v===0&&(oi=null),Au(d),l=l.stateNode,fr&&typeof fr.onCommitFiberRoot=="function")try{fr.onCommitFiberRoot(as,l,void 0,(l.current.flags&128)===128)}catch{}if(p!==null){l=H.T,v=X.p,X.p=2,H.T=null;try{for(var b=o.onRecoverableError,R=0;R<p.length;R++){var M=p[R];b(M.value,{componentStack:M.stack})}}finally{H.T=l,X.p=v}}(eo&3)!==0&&Om(),fs(o),v=o.pendingLanes,(d&261930)!==0&&(v&42)!==0?o===Vb?Sf++:(Sf=0,Vb=o):Sf=0,wf(0)}}function c4(o,l){(o.pooledCacheLanes&=l)===0&&(l=o.pooledCache,l!=null&&(o.pooledCache=null,ef(l)))}function Om(){return i4(),l4(),u4(),d4()}function d4(){if(Un!==5)return!1;var o=ii,l=qb;qb=0;var d=Au(eo),p=H.T,v=X.p;try{X.p=32>d?32:d,H.T=null,d=Wb,Wb=null;var b=ii,R=eo;if(Un=0,tc=ii=null,eo=0,(Nt&6)!==0)throw Error(r(331));var M=Nt;if(Nt|=4,VT(b.current),HT(b,b.current,R,d),Nt=M,wf(0,!1),fr&&typeof fr.onPostCommitFiberRoot=="function")try{fr.onPostCommitFiberRoot(as,b)}catch{}return!0}finally{X.p=v,H.T=p,c4(o,l)}}function f4(o,l,d){l=va(d,l),l=Eb(o.stateNode,l,2),o=ei(o,l,2),o!==null&&(pa(o,2),fs(o))}function zt(o,l,d){if(o.tag===3)f4(o,o,d);else for(;l!==null;){if(l.tag===3){f4(l,o,d);break}else if(l.tag===1){var p=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(oi===null||!oi.has(p))){o=va(d,o),d=hT(2),p=ei(l,d,2),p!==null&&(pT(d,p,l,o),pa(p,2),fs(p));break}}l=l.return}}function Yb(o,l,d){var p=o.pingCache;if(p===null){p=o.pingCache=new MW;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)||($b=!0,v.add(d),o=jW.bind(null,o,l,d),l.then(o,o))}function jW(o,l,d){var p=o.pingCache;p!==null&&p.delete(l),o.pingedLanes|=o.suspendedLanes&d,o.warmLanes&=~d,Qt===o&&(dt&d)===d&&(Sn===4||Sn===3&&(dt&62914560)===dt&&300>tn()-_m?(Nt&2)===0&&nc(o,0):Bb|=d,ec===dt&&(ec=0)),fs(o)}function h4(o,l){l===0&&(l=el()),o=ul(o,l),o!==null&&(pa(o,l),fs(o))}function zW(o){var l=o.memoizedState,d=0;l!==null&&(d=l.retryLane),h4(o,d)}function FW(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),h4(o,d)}function $W(o,l){return dr(o,l)}var Nm=null,ac=null,Zb=!1,Mm=!1,Xb=!1,ui=0;function fs(o){o!==ac&&o.next===null&&(ac===null?Nm=ac=o:ac=ac.next=o),Mm=!0,Zb||(Zb=!0,HW())}function wf(o,l){if(!Xb&&Mm){Xb=!0;do for(var d=!1,p=Nm;p!==null;){if(o!==0){var v=p.pendingLanes;if(v===0)var b=0;else{var R=p.suspendedLanes,M=p.pingedLanes;b=(1<<31-hr(42|o)+1)-1,b&=v&~(R&~M),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(d=!0,v4(p,b))}else b=dt,b=Fo(p,p===Qt?b:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(b&3)===0||$o(p,b)||(d=!0,v4(p,b));p=p.next}while(d);Xb=!1}}function BW(){p4()}function p4(){Mm=Zb=!1;var o=0;ui!==0&&JW()&&(o=ui);for(var l=tn(),d=null,p=Nm;p!==null;){var v=p.next,b=m4(p,l);b===0?(p.next=null,d===null?Nm=v:d.next=v,v===null&&(ac=d)):(d=p,(o!==0||(b&3)!==0)&&(Mm=!0)),p=v}Un!==0&&Un!==5||wf(o),ui!==0&&(ui=0)}function m4(o,l){for(var d=o.suspendedLanes,p=o.pingedLanes,v=o.expirationTimes,b=o.pendingLanes&-62914561;0<b;){var R=31-hr(b),M=1<<R,B=v[R];B===-1?((M&d)===0||(M&p)!==0)&&(v[R]=_u(M,l)):B<=l&&(o.expiredLanes|=M),b&=~M}if(l=Qt,d=dt,d=Fo(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&&wr(p),o.callbackNode=null,o.callbackPriority=0;if((d&3)===0||$o(o,d)){if(l=d&-d,l===o.callbackPriority)return l;switch(p!==null&&wr(p),Au(d)){case 2:case 8:d=Ir;break;case 32:d=La;break;case 268435456:d=xu;break;default:d=La}return p=g4.bind(null,o),d=dr(d,p),o.callbackPriority=l,o.callbackNode=d,l}return p!==null&&p!==null&&wr(p),o.callbackPriority=2,o.callbackNode=null,2}function g4(o,l){if(Un!==0&&Un!==5)return o.callbackNode=null,o.callbackPriority=0,null;var d=o.callbackNode;if(Om()&&o.callbackNode!==d)return null;var p=dt;return p=Fo(o,o===Qt?p:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),p===0?null:(XT(o,p,l),m4(o,tn()),o.callbackNode!=null&&o.callbackNode===d?g4.bind(null,o):null)}function v4(o,l){if(Om())return null;XT(o,l,!0)}function HW(){tV(function(){(Nt&6)!==0?dr(nn,BW):p4()})}function Qb(){if(ui===0){var o=Hu;o===0&&(o=xr,xr<<=1,(xr&261888)===0&&(xr=256)),ui=o}return ui}function y4(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Ct(""+o)}function b4(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 qW(o,l,d,p,v){if(l==="submit"&&d&&d.stateNode===v){var b=y4((v[pr]||null).action),R=p.submitter;R&&(l=(l=R[pr]||null)?y4(l.formAction):R.getAttribute("formAction"),l!==null&&(b=l,R=null));var M=new Wp("action","action",null,p,v);o.push({event:M,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(ui!==0){var B=R?b4(v,R):new FormData(v);yb(d,{pending:!0,data:B,method:v.method,action:b},null,B)}}else typeof b=="function"&&(M.preventDefault(),B=R?b4(v,R):new FormData(v),yb(d,{pending:!0,data:B,method:v.method,action:b},b,B))},currentTarget:v}]})}}for(var Jb=0;Jb<Ly.length;Jb++){var eS=Ly[Jb],WW=eS.toLowerCase(),VW=eS[0].toUpperCase()+eS.slice(1);Ua(WW,"on"+VW)}Ua(ZR,"onAnimationEnd"),Ua(XR,"onAnimationIteration"),Ua(QR,"onAnimationStart"),Ua("dblclick","onDoubleClick"),Ua("focusin","onFocus"),Ua("focusout","onBlur"),Ua(lW,"onTransitionRun"),Ua(uW,"onTransitionStart"),Ua(cW,"onTransitionCancel"),Ua(JR,"onTransitionEnd"),ma("onMouseEnter",["mouseout","mouseover"]),ma("onMouseLeave",["mouseout","mouseover"]),ma("onPointerEnter",["pointerout","pointerover"]),ma("onPointerLeave",["pointerout","pointerover"]),Us("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Us("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Us("onBeforeInput",["compositionend","keypress","textInput","paste"]),Us("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Us("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Us("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xf="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(" "),GW=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xf));function S4(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 R=p.length-1;0<=R;R--){var M=p[R],B=M.instance,te=M.currentTarget;if(M=M.listener,B!==b&&v.isPropagationStopped())break e;b=M,v.currentTarget=te;try{b(v)}catch(ie){Kp(ie)}v.currentTarget=null,b=B}else for(R=0;R<p.length;R++){if(M=p[R],B=M.instance,te=M.currentTarget,M=M.listener,B!==b&&v.isPropagationStopped())break e;b=M,v.currentTarget=te;try{b(v)}catch(ie){Kp(ie)}v.currentTarget=null,b=B}}}}function lt(o,l){var d=l[os];d===void 0&&(d=l[os]=new Set);var p=o+"__bubble";d.has(p)||(w4(l,o,2,!1),d.add(p))}function tS(o,l,d){var p=0;l&&(p|=4),w4(d,o,p,l)}var Pm="_reactListening"+Math.random().toString(36).slice(2);function nS(o){if(!o[Pm]){o[Pm]=!0,rl.forEach(function(d){d!=="selectionchange"&&(GW.has(d)||tS(d,!1,o),tS(d,!0,o))});var l=o.nodeType===9?o:o.ownerDocument;l===null||l[Pm]||(l[Pm]=!0,tS("selectionchange",!1,l))}}function w4(o,l,d,p){switch(Z4(l)){case 2:var v=wV;break;case 8:v=xV;break;default:v=vS}d=v.bind(null,l,d,o),v=void 0,!xy||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 rS(o,l,d,p,v){var b=p;if((l&1)===0&&(l&2)===0&&p!==null)e:for(;;){if(p===null)return;var R=p.tag;if(R===3||R===4){var M=p.stateNode.containerInfo;if(M===v)break;if(R===4)for(R=p.return;R!==null;){var B=R.tag;if((B===3||B===4)&&R.stateNode.containerInfo===v)return;R=R.return}for(;M!==null;){if(R=Ho(M),R===null)return;if(B=R.tag,B===5||B===6||B===26||B===27){p=b=R;continue e}M=M.parentNode}}p=p.return}kR(function(){var te=b,ie=Wn(d),de=[];e:{var re=eI.get(o);if(re!==void 0){var se=Wp,ke=o;switch(o){case"keypress":if(Hp(d)===0)break e;case"keydown":case"keyup":se=Fq;break;case"focusin":ke="focus",se=ky;break;case"focusout":ke="blur",se=ky;break;case"beforeblur":case"afterblur":se=ky;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":se=IR;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=Rq;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=Hq;break;case ZR:case XR:case QR:se=Oq;break;case JR:se=Wq;break;case"scroll":case"scrollend":se=kq;break;case"wheel":se=Gq;break;case"copy":case"cut":case"paste":se=Mq;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=OR;break;case"toggle":case"beforetoggle":se=Yq}var Fe=(l&4)!==0,Wt=!Fe&&(o==="scroll"||o==="scrollend"),Y=Fe?re!==null?re+"Capture":null:re;Fe=[];for(var W=te,ee;W!==null;){var le=W;if(ee=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||ee===null||Y===null||(le=Hd(W,Y),le!=null&&Fe.push(Cf(W,le,ee))),Wt)break;W=W.return}0<Fe.length&&(re=new se(re,ke,null,d,ie),de.push({event:re,listeners:Fe}))}}if((l&7)===0){e:{if(re=o==="mouseover"||o==="pointerover",se=o==="mouseout"||o==="pointerout",re&&d!==qn&&(ke=d.relatedTarget||d.fromElement)&&(Ho(ke)||ke[Lt]))break e;if((se||re)&&(re=ie.window===ie?ie:(re=ie.ownerDocument)?re.defaultView||re.parentWindow:window,se?(ke=d.relatedTarget||d.toElement,se=te,ke=ke?Ho(ke):null,ke!==null&&(Wt=s(ke),Fe=ke.tag,ke!==Wt||Fe!==5&&Fe!==27&&Fe!==6)&&(ke=null)):(se=null,ke=te),se!==ke)){if(Fe=IR,le="onMouseLeave",Y="onMouseEnter",W="mouse",(o==="pointerout"||o==="pointerover")&&(Fe=OR,le="onPointerLeave",Y="onPointerEnter",W="pointer"),Wt=se==null?re:nl(se),ee=ke==null?re:nl(ke),re=new Fe(le,W+"leave",se,d,ie),re.target=Wt,re.relatedTarget=ee,le=null,Ho(ie)===te&&(Fe=new Fe(Y,W+"enter",ke,d,ie),Fe.target=ee,Fe.relatedTarget=Wt,le=Fe),Wt=le,se&&ke)t:{for(Fe=KW,Y=se,W=ke,ee=0,le=Y;le;le=Fe(le))ee++;le=0;for(var ze=W;ze;ze=Fe(ze))le++;for(;0<ee-le;)Y=Fe(Y),ee--;for(;0<le-ee;)W=Fe(W),le--;for(;ee--;){if(Y===W||W!==null&&Y===W.alternate){Fe=Y;break t}Y=Fe(Y),W=Fe(W)}Fe=null}else Fe=null;se!==null&&x4(de,re,se,Fe,!1),ke!==null&&Wt!==null&&x4(de,Wt,ke,Fe,!0)}}e:{if(re=te?nl(te):window,se=re.nodeName&&re.nodeName.toLowerCase(),se==="select"||se==="input"&&re.type==="file")var At=zR;else if(UR(re))if(FR)At=sW;else{At=rW;var Ne=nW}else se=re.nodeName,!se||se.toLowerCase()!=="input"||re.type!=="checkbox"&&re.type!=="radio"?te&&Re(te.elementType)&&(At=zR):At=aW;if(At&&(At=At(o,te))){jR(de,At,d,ie);break e}Ne&&Ne(o,re,te),o==="focusout"&&te&&re.type==="number"&&te.memoizedProps.value!=null&&Bd(re,"number",re.value)}switch(Ne=te?nl(te):window,o){case"focusin":(UR(Ne)||Ne.contentEditable==="true")&&(Lu=Ne,Ny=te,Xd=null);break;case"focusout":Xd=Ny=Lu=null;break;case"mousedown":My=!0;break;case"contextmenu":case"mouseup":case"dragend":My=!1,KR(de,d,ie);break;case"selectionchange":if(iW)break;case"keydown":case"keyup":KR(de,d,ie)}var et;if(Ry)e:{switch(o){case"compositionstart":var ft="onCompositionStart";break e;case"compositionend":ft="onCompositionEnd";break e;case"compositionupdate":ft="onCompositionUpdate";break e}ft=void 0}else Pu?LR(o,d)&&(ft="onCompositionEnd"):o==="keydown"&&d.keyCode===229&&(ft="onCompositionStart");ft&&(NR&&d.locale!=="ko"&&(Pu||ft!=="onCompositionStart"?ft==="onCompositionEnd"&&Pu&&(et=AR()):(Go=ie,Cy="value"in Go?Go.value:Go.textContent,Pu=!0)),Ne=Lm(te,ft),0<Ne.length&&(ft=new TR(ft,o,null,d,ie),de.push({event:ft,listeners:Ne}),et?ft.data=et:(et=DR(d),et!==null&&(ft.data=et)))),(et=Xq?Qq(o,d):Jq(o,d))&&(ft=Lm(te,"onBeforeInput"),0<ft.length&&(Ne=new TR("onBeforeInput","beforeinput",null,d,ie),de.push({event:Ne,listeners:ft}),Ne.data=et)),qW(de,o,te,d,ie)}S4(de,l)})}function Cf(o,l,d){return{instance:o,listener:l,currentTarget:d}}function Lm(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=Hd(o,d),v!=null&&p.unshift(Cf(o,v,b)),v=Hd(o,l),v!=null&&p.push(Cf(o,v,b))),o.tag===3)return p;o=o.return}return[]}function KW(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function x4(o,l,d,p,v){for(var b=l._reactName,R=[];d!==null&&d!==p;){var M=d,B=M.alternate,te=M.stateNode;if(M=M.tag,B!==null&&B===p)break;M!==5&&M!==26&&M!==27||te===null||(B=te,v?(te=Hd(d,b),te!=null&&R.unshift(Cf(d,te,B))):v||(te=Hd(d,b),te!=null&&R.push(Cf(d,te,B)))),d=d.return}R.length!==0&&o.push({event:l,listeners:R})}var YW=/\r\n?/g,ZW=/\u0000|\uFFFD/g;function C4(o){return(typeof o=="string"?o:""+o).replace(YW,`
224
+ `).replace(ZW,"")}function E4(o,l){return l=C4(l),C4(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":js(o,"class",p);break;case"tabIndex":js(o,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":js(o,d,p);break;case"style":pe(o,p,b);break;case"data":if(l!=="object"){js(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=Ct(""+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=Ct(""+p),o.setAttribute(d,p);break;case"onClick":p!=null&&(o.onclick=Et);break;case"onScroll":p!=null&&lt("scroll",o);break;case"onScrollEnd":p!=null&&lt("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=Ct(""+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":lt("beforetoggle",o),lt("toggle",o),Vo(o,"popover",p);break;case"xlinkActuate":mr(o,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":mr(o,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":mr(o,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":mr(o,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":mr(o,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":mr(o,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":mr(o,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":mr(o,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":mr(o,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":Vo(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=Ue.get(d)||d,Vo(o,d,p))}}function aS(o,l,d,p,v,b){switch(d){case"style":pe(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&&lt("scroll",o);break;case"onScrollEnd":p!=null&&lt("scrollend",o);break;case"onClick":p!=null&&(o.onclick=Et);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!is.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[pr]||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,""):Vo(o,d,p)}}}function rr(o,l,d){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":lt("error",o),lt("load",o);var p=!1,v=!1,b;for(b in d)if(d.hasOwnProperty(b)){var R=d[b];if(R!=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,R,d,null)}}v&&qt(o,l,"srcSet",d.srcSet,d,null),p&&qt(o,l,"src",d.src,d,null);return;case"input":lt("invalid",o);var M=b=R=v=null,B=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":R=ie;break;case"checked":B=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)}}$p(o,b,M,B,te,R,v,!1);return;case"select":lt("invalid",o),p=R=b=null;for(v in d)if(d.hasOwnProperty(v)&&(M=d[v],M!=null))switch(v){case"value":b=M;break;case"defaultValue":R=M;break;case"multiple":p=M;default:qt(o,l,v,M,d,null)}l=b,d=R,o.multiple=!!p,l!=null?zs(o,!!p,l,!1):d!=null&&zs(o,!!p,d,!0);return;case"textarea":lt("invalid",o),b=v=p=null;for(R in d)if(d.hasOwnProperty(R)&&(M=d[R],M!=null))switch(R){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,R,M,d,null)}Mu(o,p,v,b);return;case"option":for(B in d)d.hasOwnProperty(B)&&(p=d[B],p!=null)&&(B==="selected"?o.selected=p&&typeof p!="function"&&typeof p!="symbol":qt(o,l,B,p,d,null));return;case"dialog":lt("beforetoggle",o),lt("toggle",o),lt("cancel",o),lt("close",o);break;case"iframe":case"object":lt("load",o);break;case"video":case"audio":for(p=0;p<xf.length;p++)lt(xf[p],o);break;case"image":lt("error",o),lt("load",o);break;case"details":lt("toggle",o);break;case"embed":case"source":case"link":lt("error",o),lt("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(Re(l)){for(ie in d)d.hasOwnProperty(ie)&&(p=d[ie],p!==void 0&&aS(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 XW(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,R=null,M=null,B=null,te=null,ie=null;for(se in d){var de=d[se];if(d.hasOwnProperty(se)&&de!=null)switch(se){case"checked":break;case"value":break;case"defaultValue":B=de;default:p.hasOwnProperty(se)||qt(o,l,se,null,p,de)}}for(var re in p){var se=p[re];if(de=d[re],p.hasOwnProperty(re)&&(se!=null||de!=null))switch(re){case"type":b=se;break;case"name":v=se;break;case"checked":te=se;break;case"defaultChecked":ie=se;break;case"value":R=se;break;case"defaultValue":M=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,l));break;default:se!==de&&qt(o,l,re,se,p,de)}}Nu(o,R,M,B,te,ie,b,v);return;case"select":se=R=M=re=null;for(b in d)if(B=d[b],d.hasOwnProperty(b)&&B!=null)switch(b){case"value":break;case"multiple":se=B;default:p.hasOwnProperty(b)||qt(o,l,b,null,p,B)}for(v in p)if(b=p[v],B=d[v],p.hasOwnProperty(v)&&(b!=null||B!=null))switch(v){case"value":re=b;break;case"defaultValue":M=b;break;case"multiple":R=b;default:b!==B&&qt(o,l,v,b,p,B)}l=M,d=R,p=se,re!=null?zs(o,!!d,re,!1):!!p!=!!d&&(l!=null?zs(o,!!d,l,!0):zs(o,!!d,d?[]:"",!1));return;case"textarea":se=re=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(R in p)if(v=p[R],b=d[R],p.hasOwnProperty(R)&&(v!=null||b!=null))switch(R){case"value":re=v;break;case"defaultValue":se=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==b&&qt(o,l,R,v,p,b)}sl(o,re,se);return;case"option":for(var ke in d)re=d[ke],d.hasOwnProperty(ke)&&re!=null&&!p.hasOwnProperty(ke)&&(ke==="selected"?o.selected=!1:qt(o,l,ke,null,p,re));for(B in p)re=p[B],se=d[B],p.hasOwnProperty(B)&&re!==se&&(re!=null||se!=null)&&(B==="selected"?o.selected=re&&typeof re!="function"&&typeof re!="symbol":qt(o,l,B,re,p,se));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 Fe in d)re=d[Fe],d.hasOwnProperty(Fe)&&re!=null&&!p.hasOwnProperty(Fe)&&qt(o,l,Fe,null,p,re);for(te in p)if(re=p[te],se=d[te],p.hasOwnProperty(te)&&re!==se&&(re!=null||se!=null))switch(te){case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(137,l));break;default:qt(o,l,te,re,p,se)}return;default:if(Re(l)){for(var Wt in d)re=d[Wt],d.hasOwnProperty(Wt)&&re!==void 0&&!p.hasOwnProperty(Wt)&&aS(o,l,Wt,void 0,p,re);for(ie in p)re=p[ie],se=d[ie],!p.hasOwnProperty(ie)||re===se||re===void 0&&se===void 0||aS(o,l,ie,re,p,se);return}}for(var Y in d)re=d[Y],d.hasOwnProperty(Y)&&re!=null&&!p.hasOwnProperty(Y)&&qt(o,l,Y,null,p,re);for(de in p)re=p[de],se=d[de],!p.hasOwnProperty(de)||re===se||re==null&&se==null||qt(o,l,de,re,p,se)}function _4(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function QW(){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,R=v.initiatorType,M=v.duration;if(b&&M&&_4(R)){for(R=0,M=v.responseEnd,p+=1;p<d.length;p++){var B=d[p],te=B.startTime;if(te>M)break;var ie=B.transferSize,de=B.initiatorType;ie&&_4(de)&&(B=B.responseEnd,R+=ie*(B<M?1:(M-te)/(B-te)))}if(--p,l+=8*(b+R)/(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,oS=null;function Dm(o){return o.nodeType===9?o:o.ownerDocument}function k4(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 A4(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 iS(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 lS=null;function JW(){var o=window.event;return o&&o.type==="popstate"?o===lS?!1:(lS=o,!0):(lS=null,!1)}var R4=typeof setTimeout=="function"?setTimeout:void 0,eV=typeof clearTimeout=="function"?clearTimeout:void 0,I4=typeof Promise=="function"?Promise:void 0,tV=typeof queueMicrotask=="function"?queueMicrotask:typeof I4<"u"?function(o){return I4.resolve(null).then(o).catch(nV)}:R4;function nV(o){setTimeout(function(){throw o})}function ci(o){return o==="head"}function T4(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),lc(l);return}p--}else if(d==="$"||d==="$?"||d==="$~"||d==="$!"||d==="&")p++;else if(d==="html")Ef(o.ownerDocument.documentElement);else if(d==="head"){d=o.ownerDocument.head,Ef(d);for(var b=d.firstChild;b;){var R=b.nextSibling,M=b.nodeName;b[Bo]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&b.rel.toLowerCase()==="stylesheet"||d.removeChild(b),b=R}}else d==="body"&&Ef(o.ownerDocument.body);d=v}while(d);lc(l)}function O4(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 uS(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":uS(d),Tu(d);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(d.rel.toLowerCase()==="stylesheet")continue}o.removeChild(d)}}function rV(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[Bo])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=xa(o.nextSibling),o===null)break}return null}function aV(o,l,d){if(l==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!d||(o=xa(o.nextSibling),o===null))return null;return o}function N4(o,l){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!l||(o=xa(o.nextSibling),o===null))return null;return o}function cS(o){return o.data==="$?"||o.data==="$~"}function dS(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function sV(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 xa(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 fS=null;function M4(o){o=o.nextSibling;for(var l=0;o;){if(o.nodeType===8){var d=o.data;if(d==="/$"||d==="/&"){if(l===0)return xa(o.nextSibling);l--}else d!=="$"&&d!=="$!"&&d!=="$?"&&d!=="$~"&&d!=="&"||l++}o=o.nextSibling}return null}function P4(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 L4(o,l,d){switch(l=Dm(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 Ef(o){for(var l=o.attributes;l.length;)o.removeAttributeNode(l[0]);Tu(o)}var Ca=new Map,D4=new Set;function Um(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var to=X.d;X.d={f:oV,r:iV,D:lV,C:uV,L:cV,m:dV,X:hV,S:fV,M:pV};function oV(){var o=to.f(),l=Rm();return o||l}function iV(o){var l=qo(o);l!==null&&l.tag===5&&l.type==="form"?JI(l):to.r(o)}var sc=typeof document>"u"?null:document;function U4(o,l,d){var p=sc;if(p&&typeof l=="string"&&l){var v=Nr(l);v='link[rel="'+o+'"][href="'+v+'"]',typeof d=="string"&&(v+='[crossorigin="'+d+'"]'),D4.has(v)||(D4.add(v),o={rel:o,crossOrigin:d,href:l},p.querySelector(v)===null&&(l=p.createElement("link"),rr(l,"link",o),Xt(l),p.head.appendChild(l)))}}function lV(o){to.D(o),U4("dns-prefetch",o,null)}function uV(o,l){to.C(o,l),U4("preconnect",o,l)}function cV(o,l,d){to.L(o,l,d);var p=sc;if(p&&o&&l){var v='link[rel="preload"][as="'+Nr(l)+'"]';l==="image"&&d&&d.imageSrcSet?(v+='[imagesrcset="'+Nr(d.imageSrcSet)+'"]',typeof d.imageSizes=="string"&&(v+='[imagesizes="'+Nr(d.imageSizes)+'"]')):v+='[href="'+Nr(o)+'"]';var b=v;switch(l){case"style":b=oc(o);break;case"script":b=ic(o)}Ca.has(b)||(o=m({rel:"preload",href:l==="image"&&d&&d.imageSrcSet?void 0:o,as:l},d),Ca.set(b,o),p.querySelector(v)!==null||l==="style"&&p.querySelector(_f(b))||l==="script"&&p.querySelector(kf(b))||(l=p.createElement("link"),rr(l,"link",o),Xt(l),p.head.appendChild(l)))}}function dV(o,l){to.m(o,l);var d=sc;if(d&&o){var p=l&&typeof l.as=="string"?l.as:"script",v='link[rel="modulepreload"][as="'+Nr(p)+'"][href="'+Nr(o)+'"]',b=v;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=ic(o)}if(!Ca.has(b)&&(o=m({rel:"modulepreload",href:o},l),Ca.set(b,o),d.querySelector(v)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(d.querySelector(kf(b)))return}p=d.createElement("link"),rr(p,"link",o),Xt(p),d.head.appendChild(p)}}}function fV(o,l,d){to.S(o,l,d);var p=sc;if(p&&o){var v=Wo(p).hoistableStyles,b=oc(o);l=l||"default";var R=v.get(b);if(!R){var M={loading:0,preload:null};if(R=p.querySelector(_f(b)))M.loading=5;else{o=m({rel:"stylesheet",href:o,"data-precedence":l},d),(d=Ca.get(b))&&hS(o,d);var B=R=p.createElement("link");Xt(B),rr(B,"link",o),B._p=new Promise(function(te,ie){B.onload=te,B.onerror=ie}),B.addEventListener("load",function(){M.loading|=1}),B.addEventListener("error",function(){M.loading|=2}),M.loading|=4,jm(R,l,p)}R={type:"stylesheet",instance:R,count:1,state:M},v.set(b,R)}}}function hV(o,l){to.X(o,l);var d=sc;if(d&&o){var p=Wo(d).hoistableScripts,v=ic(o),b=p.get(v);b||(b=d.querySelector(kf(v)),b||(o=m({src:o,async:!0},l),(l=Ca.get(v))&&pS(o,l),b=d.createElement("script"),Xt(b),rr(b,"link",o),d.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},p.set(v,b))}}function pV(o,l){to.M(o,l);var d=sc;if(d&&o){var p=Wo(d).hoistableScripts,v=ic(o),b=p.get(v);b||(b=d.querySelector(kf(v)),b||(o=m({src:o,async:!0,type:"module"},l),(l=Ca.get(v))&&pS(o,l),b=d.createElement("script"),Xt(b),rr(b,"link",o),d.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},p.set(v,b))}}function j4(o,l,d,p){var v=(v=ue.current)?Um(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=oc(d.href),d=Wo(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=oc(d.href);var b=Wo(v).hoistableStyles,R=b.get(o);if(R||(v=v.ownerDocument||v,R={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(o,R),(b=v.querySelector(_f(o)))&&!b._p&&(R.instance=b,R.state.loading=5),Ca.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},Ca.set(o,d),b||mV(v,o,d,R.state))),l&&p===null)throw Error(r(528,""));return R}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=ic(d),d=Wo(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 oc(o){return'href="'+Nr(o)+'"'}function _f(o){return'link[rel="stylesheet"]['+o+"]"}function z4(o){return m({},o,{"data-precedence":o.precedence,precedence:null})}function mV(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}),rr(l,"link",d),Xt(l),o.head.appendChild(l))}function ic(o){return'[src="'+Nr(o)+'"]'}function kf(o){return"script[async]"+o}function F4(o,l,d){if(l.count++,l.instance===null)switch(l.type){case"style":var p=o.querySelector('style[data-href~="'+Nr(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),rr(p,"style",v),jm(p,d.precedence,o),l.instance=p;case"stylesheet":v=oc(d.href);var b=o.querySelector(_f(v));if(b)return l.state.loading|=4,l.instance=b,Xt(b),b;p=z4(d),(v=Ca.get(v))&&hS(p,v),b=(o.ownerDocument||o).createElement("link"),Xt(b);var R=b;return R._p=new Promise(function(M,B){R.onload=M,R.onerror=B}),rr(b,"link",p),l.state.loading|=4,jm(b,d.precedence,o),l.instance=b;case"script":return b=ic(d.src),(v=o.querySelector(kf(b)))?(l.instance=v,Xt(v),v):(p=d,(v=Ca.get(b))&&(p=m({},d),pS(p,v)),o=o.ownerDocument||o,v=o.createElement("script"),Xt(v),rr(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,jm(p,d.precedence,o));return l.instance}function jm(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,R=0;R<p.length;R++){var M=p[R];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 hS(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.title==null&&(o.title=l.title)}function pS(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.integrity==null&&(o.integrity=l.integrity)}var zm=null;function $4(o,l,d){if(zm===null){var p=new Map,v=zm=new Map;v.set(d,p)}else v=zm,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[Bo]||b[Dn]||o==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var R=b.getAttribute(l)||"";R=o+R;var M=p.get(R);M?M.push(b):p.set(R,[b])}}return p}function B4(o,l,d){o=o.ownerDocument||o,o.head.insertBefore(d,l==="title"?o.querySelector("head > title"):null)}function gV(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 H4(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function vV(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=oc(p.href),b=l.querySelector(_f(v));if(b){l=b._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(o.count++,o=Fm.bind(o),l.then(o,o)),d.state.loading|=4,d.instance=b,Xt(b);return}b=l.ownerDocument||l,p=z4(p),(v=Ca.get(v))&&hS(p,v),b=b.createElement("link"),Xt(b);var R=b;R._p=new Promise(function(M,B){R.onload=M,R.onerror=B}),rr(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=Fm.bind(o),l.addEventListener("load",d),l.addEventListener("error",d))}}var mS=0;function yV(o,l){return o.stylesheets&&o.count===0&&Bm(o,o.stylesheets),0<o.count||0<o.imgCount?function(d){var p=setTimeout(function(){if(o.stylesheets&&Bm(o,o.stylesheets),o.unsuspend){var b=o.unsuspend;o.unsuspend=null,b()}},6e4+l);0<o.imgBytes&&mS===0&&(mS=62500*QW());var v=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&Bm(o,o.stylesheets),o.unsuspend)){var b=o.unsuspend;o.unsuspend=null,b()}},(o.imgBytes>mS?50:800)+l);return o.unsuspend=d,function(){o.unsuspend=null,clearTimeout(p),clearTimeout(v)}}:null}function Fm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bm(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var $m=null;function Bm(o,l){o.stylesheets=null,o.unsuspend!==null&&(o.count++,$m=new Map,l.forEach(bV,o),$m=null,Fm.call(o))}function bV(o,l){if(!(l.state.loading&4)){var d=$m.get(o);if(d)var p=d.get(null);else{d=new Map,$m.set(o,d);for(var v=o.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<v.length;b++){var R=v[b];(R.nodeName==="LINK"||R.getAttribute("media")!=="not all")&&(d.set(R.dataset.precedence,R),p=R)}p&&d.set(null,p)}v=l.instance,R=v.getAttribute("data-precedence"),b=d.get(R)||p,b===p&&d.set(null,v),d.set(R,v),this.count++,p=Fm.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 Af={$$typeof:k,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function SV(o,l,d,p,v,b,R,M,B){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=Tr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tr(0),this.hiddenUpdates=Tr(null),this.identifierPrefix=p,this.onUncaughtError=v,this.onCaughtError=b,this.onRecoverableError=R,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=B,this.incompleteTransitions=new Map}function q4(o,l,d,p,v,b,R,M,B,te,ie,de){return o=new SV(o,l,d,R,B,te,ie,de,M),l=1,b===!0&&(l|=24),b=Qr(3,null,null,l),o.current=b,b.stateNode=o,l=Ky(),l.refCount++,o.pooledCache=l,l.refCount++,b.memoizedState={element:p,isDehydrated:d,cache:l},Qy(b),o}function W4(o){return o?(o=ju,o):ju}function V4(o,l,d,p,v,b){v=W4(v),p.context===null?p.context=v:p.pendingContext=v,p=Jo(l),p.payload={element:d},b=b===void 0?null:b,b!==null&&(p.callback=b),d=ei(o,p,l),d!==null&&(jr(d,o,l),af(d,o,l))}function G4(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var d=o.retryLane;o.retryLane=d!==0&&d<l?d:l}}function gS(o,l){G4(o,l),(o=o.alternate)&&G4(o,l)}function K4(o){if(o.tag===13||o.tag===31){var l=ul(o,67108864);l!==null&&jr(l,o,67108864),gS(o,67108864)}}function Y4(o){if(o.tag===13||o.tag===31){var l=ra();l=tl(l);var d=ul(o,l);d!==null&&jr(d,o,l),gS(o,l)}}var Hm=!0;function wV(o,l,d,p){var v=H.T;H.T=null;var b=X.p;try{X.p=2,vS(o,l,d,p)}finally{X.p=b,H.T=v}}function xV(o,l,d,p){var v=H.T;H.T=null;var b=X.p;try{X.p=8,vS(o,l,d,p)}finally{X.p=b,H.T=v}}function vS(o,l,d,p){if(Hm){var v=yS(p);if(v===null)rS(o,l,p,qm,d),X4(o,p);else if(EV(v,o,l,d,p))p.stopPropagation();else if(X4(o,p),l&4&&-1<CV.indexOf(o)){for(;v!==null;){var b=qo(v);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var R=ss(b.pendingLanes);if(R!==0){var M=b;for(M.pendingLanes|=2,M.entangledLanes|=2;R;){var B=1<<31-hr(R);M.entanglements[1]|=B,R&=~B}fs(b),(Nt&6)===0&&(km=tn()+500,wf(0))}}break;case 31:case 13:M=ul(b,2),M!==null&&jr(M,b,2),Rm(),gS(b,2)}if(b=yS(p),b===null&&rS(o,l,p,qm,d),b===v)break;v=b}v!==null&&p.stopPropagation()}else rS(o,l,p,null,d)}}function yS(o){return o=Wn(o),bS(o)}var qm=null;function bS(o){if(qm=null,o=Ho(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 qm=o,null}function Z4(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 nn:return 2;case Ir:return 8;case La:case wu:return 32;case xu:return 268435456;default:return 32}default:return 32}}var SS=!1,di=null,fi=null,hi=null,Rf=new Map,If=new Map,pi=[],CV="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 X4(o,l){switch(o){case"focusin":case"focusout":di=null;break;case"dragenter":case"dragleave":fi=null;break;case"mouseover":case"mouseout":hi=null;break;case"pointerover":case"pointerout":Rf.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":If.delete(l.pointerId)}}function Tf(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=qo(l),l!==null&&K4(l)),o):(o.eventSystemFlags|=p,l=o.targetContainers,v!==null&&l.indexOf(v)===-1&&l.push(v),o)}function EV(o,l,d,p,v){switch(l){case"focusin":return di=Tf(di,o,l,d,p,v),!0;case"dragenter":return fi=Tf(fi,o,l,d,p,v),!0;case"mouseover":return hi=Tf(hi,o,l,d,p,v),!0;case"pointerover":var b=v.pointerId;return Rf.set(b,Tf(Rf.get(b)||null,o,l,d,p,v)),!0;case"gotpointercapture":return b=v.pointerId,If.set(b,Tf(If.get(b)||null,o,l,d,p,v)),!0}return!1}function Q4(o){var l=Ho(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,jp(o.priority,function(){Y4(d)});return}}else if(l===31){if(l=u(d),l!==null){o.blockedOn=l,jp(o.priority,function(){Y4(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 Wm(o){if(o.blockedOn!==null)return!1;for(var l=o.targetContainers;0<l.length;){var d=yS(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=qo(d),l!==null&&K4(l),o.blockedOn=d,!1;l.shift()}return!0}function J4(o,l,d){Wm(o)&&d.delete(l)}function _V(){SS=!1,di!==null&&Wm(di)&&(di=null),fi!==null&&Wm(fi)&&(fi=null),hi!==null&&Wm(hi)&&(hi=null),Rf.forEach(J4),If.forEach(J4)}function Vm(o,l){o.blockedOn===l&&(o.blockedOn=null,SS||(SS=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,_V)))}var Gm=null;function e5(o){Gm!==o&&(Gm=o,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Gm===o&&(Gm=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(bS(p||d)===null)continue;break}var b=qo(d);b!==null&&(o.splice(l,3),l-=3,yb(b,{pending:!0,data:v,method:d.method,action:p},p,v))}}))}function lc(o){function l(B){return Vm(B,o)}di!==null&&Vm(di,o),fi!==null&&Vm(fi,o),hi!==null&&Vm(hi,o),Rf.forEach(l),If.forEach(l);for(var d=0;d<pi.length;d++){var p=pi[d];p.blockedOn===o&&(p.blockedOn=null)}for(;0<pi.length&&(d=pi[0],d.blockedOn===null);)Q4(d),d.blockedOn===null&&pi.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],R=v[pr]||null;if(typeof b=="function")R||e5(d);else if(R){var M=null;if(b&&b.hasAttribute("formAction")){if(v=b,R=b[pr]||null)M=R.formAction;else if(bS(v)!==null)continue}else M=R.action;typeof M=="function"?d[p+1]=M:(d.splice(p,3),p-=3),e5(d)}}}function t5(){function o(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(R){return v=R})},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 wS(o){this._internalRoot=o}Km.prototype.render=wS.prototype.render=function(o){var l=this._internalRoot;if(l===null)throw Error(r(409));var d=l.current,p=ra();V4(d,p,o,l,null,null)},Km.prototype.unmount=wS.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var l=o.containerInfo;V4(o.current,2,null,o,null,null),Rm(),l[Lt]=null}};function Km(o){this._internalRoot=o}Km.prototype.unstable_scheduleHydration=function(o){if(o){var l=Ru();o={blockedOn:null,target:o,priority:l};for(var d=0;d<pi.length&&l!==0&&l<pi[d].priority;d++);pi.splice(d,0,o),d===0&&Q4(o)}};var n5=e.version;if(n5!=="19.2.7")throw Error(r(527,n5,"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 kV={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ym=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ym.isDisabled&&Ym.supportsFiber)try{as=Ym.inject(kV),fr=Ym}catch{}}return Zf.createRoot=function(o,l){if(!a(o))throw Error(r(299));var d=!1,p="",v=uT,b=cT,R=dT;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&&(R=l.onRecoverableError)),l=q4(o,1,!1,null,null,d,p,null,v,b,R,t5),o[Lt]=l.current,nS(o),new wS(l)},Zf.hydrateRoot=function(o,l,d){if(!a(o))throw Error(r(299));var p=!1,v="",b=uT,R=cT,M=dT,B=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&&(R=d.onCaughtError),d.onRecoverableError!==void 0&&(M=d.onRecoverableError),d.formState!==void 0&&(B=d.formState)),l=q4(o,1,!0,l,d??null,p,v,B,b,R,M,t5),l.context=W4(null),d=l.current,p=ra(),p=tl(p),v=Jo(p),v.callback=null,ei(d,v,p),d=p,l.current.lanes=d,pa(l,d),fs(l),o[Lt]=l.current,nS(o),new Km(l)},Zf.version="19.2.7",Zf}var oP;function Jve(){if(oP)return FC.exports;oP=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),FC.exports=Qve(),FC.exports}var eye=Jve();const tye={bodySerializer:t=>JSON.stringify(t,(e,n)=>typeof n=="bigint"?n.toString():n)};function nye({onRequest:t,onSseError:e,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 E=h.signal??new AbortController().signal;for(;!E.aborted;){x++;const A=h.headers instanceof Headers?h.headers:new Headers(h.headers);m!==void 0&&A.set("Last-Event-ID",m);try{const k={redirect:"follow",...h,body:h.serializedBody,headers:A,signal:E};let I=new Request(f,k);t&&(I=await t(f,k));const O=await(h.fetch??globalThis.fetch)(I);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 D=()=>{try{T.cancel()}catch{}};E.addEventListener("abort",D);try{for(;;){const{done:q,value:U}=await T.read();if(q)break;P+=U,P=P.replace(/\r\n?/g,`
225
+ `);const j=P.split(`
226
+
227
+ `);P=j.pop()??"";for(const $ of j){const Z=$.split(`
228
+ `),ne=[];let H;for(const he of Z)if(he.startsWith("data:"))ne.push(he.replace(/^data:\s*/,""));else if(he.startsWith("event:"))H=he.replace(/^event:\s*/,"");else if(he.startsWith("id:"))m=he.replace(/^id:\s*/,"");else if(he.startsWith("retry:")){const xe=Number.parseInt(he.replace(/^retry:\s*/,""),10);Number.isNaN(xe)||(w=xe)}let X,ae=!1;if(ne.length){const he=ne.join(`
229
+ `);try{X=JSON.parse(he),ae=!0}catch{X=he}}ae&&(a&&await a(X),r&&(X=await r(X))),n?.({data:X,event:H,id:m,retry:w}),ne.length&&(yield X)}}}finally{E.removeEventListener("abort",D),T.releaseLock()}break}catch(k){if(e?.(k),i!==void 0&&x>=i)break;const I=Math.min(w*2**(x-1),u??3e4);await g(I)}}}()}}const rye=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},aye=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},sye=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},XF=({allowReserved:t,explode:e,name:n,style:r,value:a})=>{if(!e){const u=(t?a:a.map(c=>encodeURIComponent(c))).join(aye(r));switch(r){case"label":return`.${u}`;case"matrix":return`;${n}=${u}`;case"simple":return u;default:return`${n}=${u}`}}const s=rye(r),i=a.map(u=>r==="label"||r==="simple"?t?u:encodeURIComponent(u):Vv({allowReserved:t,name:n,value:u})).join(s);return r==="label"||r==="matrix"?s+i:i},Vv=({allowReserved:t,name:e,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`${e}=${t?n:encodeURIComponent(n)}`},QF=({allowReserved:t,explode:e,name:n,style:r,value:a,valueOnly:s})=>{if(a instanceof Date)return s?a.toISOString():`${n}=${a.toISOString()}`;if(r!=="deepObject"&&!e){let c=[];Object.entries(a).forEach(([h,m])=>{c=[...c,h,t?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=sye(r),u=Object.entries(a).map(([c,f])=>Vv({allowReserved:t,name:r==="deepObject"?`${n}[${c}]`:c,value:f})).join(i);return r==="label"||r==="matrix"?i+u:u},oye=/\{[^{}]+\}/g,iye=({path:t,url:e})=>{let n=e;const r=e.match(oye);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=t[i];if(c==null)continue;if(Array.isArray(c)){n=n.replace(a,XF({explode:s,name:i,style:u,value:c}));continue}if(typeof c=="object"){n=n.replace(a,QF({explode:s,name:i,style:u,value:c,valueOnly:!0}));continue}if(u==="matrix"){n=n.replace(a,`;${Vv({name:i,value:c})}`);continue}const f=encodeURIComponent(u==="label"?`.${c}`:c);n=n.replace(a,f)}return n},lye=({baseUrl:t,path:e,query:n,querySerializer:r,url:a})=>{const s=a.startsWith("/")?a:`/${a}`;let i=(t??"")+s;e&&(i=iye({path:e,url:i}));let u=n?r(n):"";return u.startsWith("?")&&(u=u.substring(1)),u&&(i+=`?${u}`),i};function iP(t){const e=t.body!==void 0;if(e&&t.bodySerializer)return"serializedBody"in t?t.serializedBody!==void 0&&t.serializedBody!==""?t.serializedBody:null:t.body!==""?t.body:null;if(e)return t.body}const uye=async(t,e)=>{const n=typeof e=="function"?await e(t):e;if(n)return t.scheme==="bearer"?`Bearer ${n}`:t.scheme==="basic"?`Basic ${btoa(n)}`:n},JF=({parameters:t={},...e}={})=>r=>{const a=[];if(r&&typeof r=="object")for(const s in r){const i=r[s];if(i==null)continue;const u=t[s]||e;if(Array.isArray(i)){const c=XF({allowReserved:u.allowReserved,explode:!0,name:s,style:"form",value:i,...u.array});c&&a.push(c)}else if(typeof i=="object"){const c=QF({allowReserved:u.allowReserved,explode:!0,name:s,style:"deepObject",value:i,...u.object});c&&a.push(c)}else{const c=Vv({allowReserved:u.allowReserved,name:s,value:i});c&&a.push(c)}}return a.join("&")},cye=t=>{if(!t)return"stream";const e=t.split(";")[0]?.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(n=>e.startsWith(n)))return"blob";if(e.startsWith("text/"))return"text"}},dye=(t,e)=>e?!!(t.headers.has(e)||t.query?.[e]||t.headers.get("Cookie")?.includes(`${e}=`)):!1;async function fye(t){for(const e of t.security??[]){if(dye(t,e.name))continue;const n=await uye(e,t.auth);if(!n)continue;const r=e.name??"Authorization";switch(e.in){case"query":t.query||(t.query={}),t.query[r]=n;break;case"cookie":t.headers.append("Cookie",`${r}=${n}`);break;default:t.headers.set(r,n);break}}}const lP=t=>lye({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:JF(t.querySerializer),url:t.url}),uP=(t,e)=>{const n={...t,...e};return n.baseUrl?.endsWith("/")&&(n.baseUrl=n.baseUrl.substring(0,n.baseUrl.length-1)),n.headers=e$(t.headers,e.headers),n},hye=t=>{const e=[];return t.forEach((n,r)=>{e.push([r,n])}),e},e$=(...t)=>{const e=new Headers;for(const n of t){if(!n)continue;const r=n instanceof Headers?hye(n):Object.entries(n);for(const[a,s]of r)if(s===null)e.delete(a);else if(Array.isArray(s))for(const i of s)e.append(a,i);else s!==void 0&&e.set(a,typeof s=="object"?JSON.stringify(s):s)}return e};class HC{fns=[];clear(){this.fns=[]}eject(e){const n=this.getInterceptorIndex(e);this.fns[n]&&(this.fns[n]=null)}exists(e){const n=this.getInterceptorIndex(e);return!!this.fns[n]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,n){const r=this.getInterceptorIndex(e);return this.fns[r]?(this.fns[r]=n,e):!1}use(e){return this.fns.push(e),this.fns.length-1}}const pye=()=>({error:new HC,request:new HC,response:new HC}),mye=JF({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),gye={"Content-Type":"application/json"},t$=(t={})=>({...tye,headers:gye,parseAs:"auto",querySerializer:mye,...t}),vye=(t={})=>{let e=uP(t$(),t);const n=()=>({...e}),r=h=>(e=uP(e,h),n()),a=pye(),s=async h=>{const m={...e,...h,fetch:h.fetch??e.fetch??globalThis.fetch,headers:e$(e.headers,h.headers),serializedBody:void 0};m.security&&await fye(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=lP(g);return{opts:g,url:y}},i=async h=>{const m=h.throwOnError??e.throwOnError,g=h.responseStyle??e.responseStyle;let y,S;try{const{opts:w,url:x}=await s(h),E={redirect:"follow",...w,body:iP(w)};y=new Request(x,E);for(const O of a.request.fns)O&&(y=await O(y,w));const A=w.fetch;S=await A(y);for(const O of a.response.fns)O&&(S=await O(S,y,w));const k={request:y,response:S};if(S.ok){const O=(w.parseAs==="auto"?cye(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,...k}}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,...k}}return O==="json"&&(w.responseValidator&&await w.responseValidator(T),w.responseTransformer&&(T=await w.responseTransformer(T))),w.responseStyle==="data"?T:{data:T,...k}}const I=await S.text();let N;try{N=JSON.parse(I)}catch{}throw N??I}catch(w){let x=w;for(const E of a.error.fns)E&&(x=await E(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 nye({...g,body:g.body,method:h,onRequest:async(S,w)=>{let x=new Request(S,w);for(const E of a.request.fns)E&&(x=await E(x,g));return x},serializedBody:iP(g),url:y})};return{buildUrl:h=>lP({...e,...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")}},Pe=vye(t$({baseUrl:"https://api.remit.example.com"}));let cP=!1;const yye=t=>{cP||(Pe.interceptors.request.use(async e=>{const n=await t.getToken();return n&&e.headers.set("Authorization",`Bearer ${n}`),e}),cP=!0)},bye=({children:t})=>C.jsx(C.Fragment,{children:t}),Sye={configure:()=>{},getToken:async()=>null,resetToken:()=>{},Shell:bye,Account:({fallback:t=null})=>C.jsx(C.Fragment,{children:t})},n$=_.createContext(Sye),wye=n$.Provider,j5e=()=>_.useContext(n$),xye=(t,e)=>{Sj(t,e.meta,"nobody")&&Yl(t)},Cye=(t,e,n,r)=>{Sj(t,r.meta,"user")&&Yl(t)},P3=t=>new TextEncoder().encode(t),r$={},L3={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),r$[t]=e,L3[e]=t}function Eye(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const e=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2){const r=t.slice(n,n+2).toLowerCase();if(r in L3)e[n/2]=L3[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return e}function ql(t){let e="";for(let n=0;n<t.byteLength;n++)e+=r$[t[n]];return e}const Xh=t=>t instanceof Uint8Array?t:typeof t=="string"?P3(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),_ye=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]";class ko{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){const n=new ko({...e,headers:{...e.headers}});return n.query&&(n.query=kye(n.query)),n}static isInstance(e){if(!e)return!1;const n=e;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"}clone(){return ko.clone(this)}}function kye(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return{...e,[n]:Array.isArray(r)?[...r]:r}},{})}class Qh{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const n=e;return typeof n.statusCode=="number"&&typeof n.headers=="object"}}const dP=t=>{if(typeof t=="function")return t;const e=Promise.resolve(t);return()=>e},Wl=t=>encodeURIComponent(t).replace(/[!'()*]/g,Aye),Aye=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`;function TA(t){const e=[];for(let n of Object.keys(t).sort()){const r=t[n];if(n=Wl(n),Array.isArray(r))for(let a=0,s=r.length;a<s;a++)e.push(`${n}=${Wl(r[a])}`);else{let a=n;(r||typeof r=="string")&&(a+=`=${Wl(r)}`),e.push(a)}}return e.join("&")}const kg="[aws-rum-web:unknown.unknown]";class Se{static configure(e){Se.debugEnabled=e}static getCallerInfo(){var e,n;try{const r=new Error().stack;if(!r)return kg;const a=r.split(`
230
+ `);if(a.length<4)return kg;const s=a[3];if(!s)return kg;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=(e=c[c.length-2])!==null&&e!==void 0?e:"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 kg}static info(e,...n){if(!Se.debugEnabled)return;const r=this.getCallerInfo();console.info(r,e,...n)}static debug(e,...n){if(!Se.debugEnabled)return;const r=this.getCallerInfo();console.debug(r,e,...n)}static warn(e,...n){if(!Se.debugEnabled)return;const r=this.getCallerInfo();console.warn(r,e,...n)}static error(e,...n){if(!Se.debugEnabled)return;const r=this.getCallerInfo();console.error(r,e,...n)}}Se.debugEnabled=!1;const fP=2048,hP=.2,Rye=()=>typeof CompressionStream<"u",Iye=async t=>{const e=new Blob([t]).stream().pipeThrough(new CompressionStream("gzip"));return new Uint8Array(await new Response(e).arrayBuffer())},Tye=async t=>{const e=t.length;if(Se.debug(`compressIfBeneficial called, payload size: ${e}B`),!Rye())return Se.debug("CompressionStream not supported, skipping compression"),{body:t,compressed:!1};if(e<fP)return Se.debug(`Payload size ${e}B below threshold ${fP}B, skipping compression`),{body:t,compressed:!1};const n=await Iye(t),r=1-n.length/e;return r>=hP?(Se.debug(`Compressed ${e}B -> ${n.length}B (${(r*100).toFixed(1)}% reduction)`),{body:n,compressed:!0}):(Se.debug(`Compression ratio ${(r*100).toFixed(1)}% below threshold ${hP*100}%, skipping`),{body:t,compressed:!1})},Oye="POST",Nye="application/json",Mye="text/plain;charset=UTF-8",Pye=64e3;class Lye{constructor(e,n){this.sendFetch=async r=>{var a,s;const i=JSON.stringify(pP(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 Tye(i):{body:i,compressed:!1},h=await this.getHttpRequestOptions(r,c,Nye,f);let m=new ko(h);return this.signing&&(m=await this.signing.sign(m)),this.config.fetchRequestHandler.handle(m)},this.sendBeacon=async r=>{const a=JSON.stringify(pP(r));if(a.length>Pye)throw new Error("Payload too large for sendBeacon");const s=await this.getHttpRequestOptions(r,a,Mye,!1);let i=new ko(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:Oye,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=e,this.signing=n}}const pP=t=>{const e=[];t.RumEvents.forEach(r=>e.push(Dye(r)));let n={BatchId:t.BatchId,AppMonitorDetails:t.AppMonitorDetails,UserDetails:t.UserDetails,RumEvents:e};return t.SessionMetadata&&(n=Object.assign(Object.assign({},n),{SessionMetadata:t.SessionMetadata})),t.Alias&&(n=Object.assign(Object.assign({},n),{Alias:t.Alias})),n},Dye=t=>({id:t.id,timestamp:Math.round(t.timestamp.getTime()/1e3),type:t.type,metadata:t.metadata,details:t.details});class Uye{handle(e){const n=this.sendBeacon(e);return new Promise((r,a)=>{n?r({response:new Qh({statusCode:200})}):a()})}updateHttpClientConfig(e,n){}httpHandlerConfigs(){return{}}sendBeacon(e){let n=e.path;if(e.query){const s=TA(e.query);s&&(n+=`?${s}`)}const{port:r}=e,a=`${e.protocol}//${e.hostname}${r?`:${r}`:""}${n}`;return navigator.sendBeacon(a,e.body)}}const jye=(t=0)=>new Promise((e,n)=>{t&&setTimeout(()=>{const r=new Error(`Request did not complete within ${t} ms`);r.name="TimeoutError",n(r)},t)});let zye=class{constructor({fetchFunction:e,requestTimeout:n}={}){this.requestTimeout=n,this.fetchFunction=e}destroy(){}handle(e,{abortSignal:n}={}){const r=this.requestTimeout;if(n?.aborted){const g=new Error("Request aborted");return g.name="AbortError",Promise.reject(g)}let a=e.path;if(e.query){const g=TA(e.query);g&&(a+=`?${g}`)}const{port:s,method:i}=e,u=`${e.protocol}//${e.hostname}${s?`:${s}`:""}${a}`,f={body:i==="GET"||i==="HEAD"?void 0:e.body,headers:new Headers(e.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 Qh({headers:S,statusCode:g.status,body:g.body})}:g.blob().then(x=>({response:new Qh({headers:S,statusCode:g.status,body:x})}))}),jye(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(e,n){}httpHandlerConfigs(){return{}}};const sr=[];for(let t=0;t<256;++t)sr.push((t+256).toString(16).slice(1));function Fye(t,e=0){return(sr[t[e+0]]+sr[t[e+1]]+sr[t[e+2]]+sr[t[e+3]]+"-"+sr[t[e+4]]+sr[t[e+5]]+"-"+sr[t[e+6]]+sr[t[e+7]]+"-"+sr[t[e+8]]+sr[t[e+9]]+"-"+sr[t[e+10]]+sr[t[e+11]]+sr[t[e+12]]+sr[t[e+13]]+sr[t[e+14]]+sr[t[e+15]]).toLowerCase()}let qC;const $ye=new Uint8Array(16);function Bye(){if(!qC){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");qC=crypto.getRandomValues.bind(crypto)}return qC($ye)}const Hye=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),mP={randomUUID:Hye};function qye(t,e,n){t=t||{};const r=t.random??t.rng?.()??Bye();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,Fye(r)}function xh(t,e,n){return mP.randomUUID&&!t?mP.randomUUID():qye(t)}const OA=t=>{if(crypto)return crypto.getRandomValues(t);if(msCrypto)return msCrypto.getRandomValues(t);throw new Error("No crypto library found.")},a$=[];for(let t=0;t<256;t++)a$[t]=(t+256).toString(16).substr(1);const Gv="X-Amzn-Trace-Id",Kv="traceparent",Wye=2,Vye=32,Gye=16,Kye=4,s$=(t,e)=>Array.isArray(e)?e.some(n=>n.test(t)):e,o$={logicalServiceName:"rum.aws.amazon.com",urlsToInclude:[/.*/],urlsToExclude:[/cognito\-identity\.([^\.]*\.)?amazonaws\.com/,/sts\.([^\.]*\.)?amazonaws\.com/],stackTraceLength:200,recordAllRequests:!1,addXRayTraceIdHeader:!1},Yye=t=>200<=t&&t<300,i$=t=>Math.floor(t/100)===4,NA=t=>Math.floor(t/100)===5,MA=t=>t===429,l$=(t,e)=>{const n=e.urlsToInclude.some(a=>a.test(t)),r=e.urlsToExclude.some(a=>a.test(t));return n&&!r},Uc=()=>Date.now()/1e3,Zye=(t,e,n)=>{const r={request:{}};return r.request.method=e?.method?e.method:"GET",r.request.traced=n,r.request.url=A0(t),r},u$=(t,e,n,r)=>({version:"1.0.0",name:t,origin:"AWS::RUM::AppMonitor",id:f$(),start_time:e,trace_id:n?nbe():tbe(),end_time:void 0,subsegments:[],in_progress:!1}),c$=(t,e,n)=>{const r={id:f$(),name:t,start_time:e,end_time:void 0,in_progress:!1,namespace:t.endsWith(".amazonaws.com")?"aws":"remote"};return n&&(r.http=n),r},d$=t=>{try{return t.hostname?t.hostname:t.url?new URL(t.url).hostname:new URL(t.toString()).hostname}catch{return window.location.hostname}},Xye=(t,e,n,r)=>{t.headers||(t.headers={}),r?t.headers[Kv]=LA(e,n):t.headers[Gv]=PA(e,n)},Qye=(t,e,n,r)=>{r?t.set(Kv,LA(e,n)):t.set(Gv,PA(e,n))},PA=(t,e)=>"Root="+t+";Parent="+e+";Sampled=1",LA=(t,e)=>"00-"+t+"-"+e+"-01",Jye=t=>t?.length===Kye&&t[0].length===Wye&&t[1].length===Vye&&t[2].length===Gye&&(t[3]==="00"||t[3]==="01"),ebe=(t,e)=>{var n,r;const a={};if(t)if(e){const s=(n=t.get(Kv))===null||n===void 0?void 0:n.split("-");s&&Jye(s)&&(a.traceId=s[1],a.segmentId=s[2])}else{const s=(r=t.get(Gv))===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},A0=t=>t.url?t.url:t.toString(),tbe=()=>`1-${rbe()}-${abe()}`,nbe=()=>{const t=new Uint8Array(16);return OA(t),`${DA(t)}`},f$=()=>{const t=new Uint8Array(8);return OA(t),DA(t)},rbe=()=>Math.floor(Date.now()/1e3).toString(16),abe=()=>{const t=new Uint8Array(12);return OA(t),DA(t)},DA=t=>{let e="";for(let n=0;n<t.length;n++)e+=a$[t[n]];return e};class sbe{constructor(e,n,r=a=>2e3*Math.pow(2,a-1)){this.handler=e,this.retries=n,this.backoff=r}async handle(e){let n=this.retries;for(;;)try{const r=await this.handler.handle(e);if(Yye(r.response.statusCode))return r;throw r.response.statusCode}catch(r){if(typeof r=="number"&&!MA(r)&&!NA(r))throw new Error(`${r}`);if(n<=0)throw r;n--,await this.sleep(this.backoff(this.retries-n))}}async sleep(e){return new Promise(n=>setTimeout(n,e))}updateHttpClientConfig(e,n){}httpHandlerConfigs(){return{}}}const ad="cwr_c",f1="cwr_i",h1="cwr_s",p1="cwr_u",obe=3e4,ibe="arw-module",gP="CWR: Cannot dispatch; no AWS credentials.";class lbe{constructor(e,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 Lye({fetchRequestHandler:new sbe(new zye({fetchFunction:this.config.fetchFunction}),this.config.retries),beaconRequestHandler:new Uye,endpoint:i,region:u,credentials:c,headers:this.headers,compressionStrategy:f},h)},this.applicationId=e,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(gP)),sendBeacon:()=>Promise.reject(new Error(gP))}:this.rum=this.buildClient(this.endpoint,this.region,void 0,this.config.compressionStrategy),this.credentialStorageKey=this.config.cookieAttributes.unique?`${ad}_${e}`:ad,this.identityStorageKey=this.config.cookieAttributes.unique?`${f1}_${e}`:f1}enable(){this.enabled=!0,this.startDispatchTimer()}disable(){this.stopDispatchTimer(),this.enabled=!1,Se.warn("Dispatch disabled")}setAwsCredentials(e){this.credentialProvider=e,this.rum=this.buildClient(this.endpoint,this.region,e,this.config.compressionStrategy),typeof e=="function"&&e()}setCognitoCredentialProviderFactory(e){this.cognitoCredentialProviderFactory=e}setSigningConfigFactory(e){this.signingConfigFactory=e}setCognitoCredentials(e,n){this.identityPoolId=e,this.guestRoleArn=n,this.cognitoCredentialProviderFactory&&this.setAwsCredentials(this.cognitoCredentialProviderFactory(this.config,this.applicationId,e,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(e=!1){return this.enabled?e&&this.eventCache.hasCandidates()?!0:this.eventCache.hasEvents():!1}createRequest(e=!1){return{BatchId:xh(),AppMonitorDetails:this.eventCache.getAppMonitorDetails(),UserDetails:this.eventCache.getUserDetails(),SessionMetadata:JSON.stringify(this.eventCache.getCommonMetadata()),RumEvents:this.eventCache.getEventBatch(e),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 h$={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),h$[t]=e}function ube(t){let e="";for(let n=0;n<t.byteLength;n++)e+=h$[t[n]];return e}class cbe{format(e){const n=[];for(const s of Object.keys(e)){const i=P3(s);n.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[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(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?_a.boolTrue:_a.boolFalse]);case"byte":return Uint8Array.from([_a.byte,e.value]);case"short":const n=new DataView(new ArrayBuffer(3));return n.setUint8(0,_a.short),n.setInt16(1,e.value,!1),new Uint8Array(n.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,_a.integer),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const a=new Uint8Array(9);return a[0]=_a.long,a.set(e.value.bytes,1),a;case"binary":const s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,_a.byteArray),s.setUint16(1,e.value.byteLength,!1);const i=new Uint8Array(s.buffer);return i.set(e.value,3),i;case"string":const u=P3(e.value),c=new DataView(new ArrayBuffer(3+u.byteLength));c.setUint8(0,_a.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]=_a.timestamp,h.set(UA.fromNumber(e.value.valueOf()).bytes,1),h;case"uuid":if(!dbe.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const m=new Uint8Array(17);return m[0]=_a.uuid,m.set(Eye(e.value.replace(/-/g,"")),1),m}}}var _a;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(_a||(_a={}));const dbe=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class UA{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} 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(e));r>-1&&a>0;r--,a/=256)n[r]=a;return e<0&&vP(n),new UA(n)}valueOf(){const e=this.bytes.slice(0),n=e[0]&128;return n&&vP(e),parseInt(ql(e),16)*(n?-1:1)}toString(){return String(this.valueOf())}}function vP(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}const fbe="X-Amz-Algorithm",hbe="X-Amz-Credential",p$="X-Amz-Date",pbe="X-Amz-SignedHeaders",mbe="X-Amz-Expires",m$="X-Amz-Signature",g$="X-Amz-Security-Token",v$="authorization",y$=p$.toLowerCase(),gbe="date",vbe=[v$,y$,gbe],ybe=m$.toLowerCase(),D3="x-amz-content-sha256",bbe=g$.toLowerCase(),Sbe={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},wbe=/^proxy-/,xbe=/^sec-/,WC="AWS4-HMAC-SHA256",Cbe="AWS4-HMAC-SHA256-PAYLOAD",Ebe="UNSIGNED-PAYLOAD",_be=50,b$="aws4_request",kbe=3600*24*7,Abe=({query:t={}})=>{const e=[],n={};for(const r of Object.keys(t)){if(r.toLowerCase()===ybe)continue;const a=Wl(r);e.push(a);const s=t[r];typeof s=="string"?n[a]=`${a}=${Wl(s)}`:Array.isArray(s)&&(n[a]=s.slice(0).reduce((i,u)=>i.concat([`${a}=${Wl(u)}`]),[]).sort().join("&"))}return e.sort().map(r=>n[r]).filter(r=>r).join("&")},Rbe=t=>Ibe(t).toISOString().replace(/\.\d{3}Z$/,"Z"),Ibe=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t;class Tbe{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:n,region:r,service:a,sha256:s,uriEscapePath:i=!0}){this.service=a,this.sha256=s,this.uriEscapePath=i,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=dP(r),this.credentialProvider=dP(n)}createCanonicalRequest(e,n,r){const a=Object.keys(n).sort();return`${e.method}
231
+ ${this.getCanonicalPath(e)}
232
+ ${Abe(e)}
233
+ ${a.map(s=>`${s}:${n[s]}`).join(`
234
+ `)}
235
+
236
+ ${a.join(";")}
237
+ ${r}`}async createStringToSign(e,n,r,a){const s=new this.sha256;s.update(Xh(r));const i=await s.digest();return`${a}
238
+ ${e}
239
+ ${n}
240
+ ${ql(i)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const n=[];for(const s of e.split("/"))s?.length!==0&&s!=="."&&(s===".."?n.pop():n.push(s));const r=`${e?.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&e?.endsWith("/")?"/":""}`;return Wl(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(e){const n=Rbe(e).replace(/[-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}const Ag={},VC=[],GC=(t,e,n)=>`${t}/${e}/${n}/${b$}`,Obe=async(t,e,n,r,a)=>{const s=await yP(t,e.secretAccessKey,e.accessKeyId),i=`${n}:${r}:${a}:${ql(s)}:${e.sessionToken}`;if(i in Ag)return Ag[i];for(VC.push(i);VC.length>_be;)delete Ag[VC.shift()];let u=`AWS4${e.secretAccessKey}`;for(const c of[n,r,a,b$])u=await yP(t,u,c);return Ag[i]=u},yP=(t,e,n)=>{const r=new t(e);return r.update(Xh(n)),r.digest()},bP=({headers:t},e,n)=>{const r={};for(const a of Object.keys(t).sort()){if(t[a]==null)continue;const s=a.toLowerCase();(s in Sbe||e?.has(s)||wbe.test(s)||xbe.test(s))&&(!n||n&&!n.has(s))||(r[s]=t[a].trim().replace(/\s+/g," "))}return r},KC=async({headers:t,body:e},n)=>{for(const r of Object.keys(t))if(r.toLowerCase()===D3)return t[r];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||_ye(e)){const r=new n;return r.update(Xh(e)),ql(await r.digest())}return Ebe},Nbe=(t,e)=>{t=t.toLowerCase();for(const n of Object.keys(e))if(t===n.toLowerCase())return!0;return!1},Mbe=(t,e={})=>{const{headers:n,query:r={}}=ko.clone(t);for(const a of Object.keys(n)){const s=a.toLowerCase();(s.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(s)||e.hoistableHeaders?.has(s))&&(r[a]=n[a],delete n[a])}return{...t,headers:n,query:r}},SP=t=>{t=ko.clone(t);for(const e of Object.keys(t.headers))vbe.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t};class Pbe extends Tbe{headerFormatter=new cbe;constructor({applyChecksum:e,credentials:n,region:r,service:a,sha256:s,uriEscapePath:i=!0}){super({applyChecksum:e,credentials:n,region:r,service:a,sha256:s,uriEscapePath:i})}async presign(e,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>kbe)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const w=GC(S,g,h??this.service),x=Mbe(SP(e),{unhoistableHeaders:i,hoistableHeaders:c});m.sessionToken&&(x.query[g$]=m.sessionToken),x.query[fbe]=WC,x.query[hbe]=`${m.accessKeyId}/${w}`,x.query[p$]=y,x.query[mbe]=a.toString(10);const E=bP(x,s,u);return x.query[pbe]=this.getCanonicalHeaderList(E),x.query[m$]=await this.getSignature(y,w,this.getSigningKey(m,g,S,h),this.createCanonicalRequest(x,E,await KC(e,this.sha256))),x}async sign(e,n){return typeof e=="string"?this.signString(e,n):e.headers&&e.payload?this.signEvent(e,n):e.message?this.signMessage(e,n):this.signRequest(e,n)}async signEvent({headers:e,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=GC(f,c,i??this.service),g=await KC({headers:{},body:n},this.sha256),y=new this.sha256;y.update(e);const S=ql(await y.digest()),w=[Cbe,h,m,a,S,g].join(`
241
+ `);return this.signString(w,{signingDate:r,signingRegion:c,signingService:i,eventStreamCredentials:u})}async signMessage(e,{signingDate:n=new Date,signingRegion:r,signingService:a,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:n,signingRegion:r,signingService:a,priorSignature:e.priorSignature,eventStreamCredentials:s}).then(u=>({message:e.message,signature:u}))}async signString(e,{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(Xh(e)),ql(await f.digest())}async signRequest(e,{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=SP(e),{longDate:h,shortDate:m}=this.formatDate(n),g=GC(m,c,i??this.service);f.headers[y$]=h,u.sessionToken&&(f.headers[bbe]=u.sessionToken);const y=await KC(f,this.sha256);!Nbe(D3,f.headers)&&this.applyChecksum&&(f.headers[D3]=y);const S=bP(f,a,r),w=await this.getSignature(h,g,this.getSigningKey(u,c,m,i),this.createCanonicalRequest(f,S,y));return f.headers[v$]=`${WC} Credential=${u.accessKeyId}/${g}, SignedHeaders=${this.getCanonicalHeaderList(S)}, Signature=${w}`,f}async getSignature(e,n,r,a){const s=await this.createStringToSign(e,n,a,WC),i=new this.sha256(await r);return i.update(Xh(s)),ql(await i.digest())}getSigningKey(e,n,r,a){return Obe(this.sha256,e,r,n,a||this.service)}}const Lbe="rum",Dbe={expiresIn:60},Ube=(t,e)=>{const n=new Pbe({applyChecksum:!0,credentials:t,region:e,service:Lbe,uriEscapePath:!0,sha256:Gl});return{sign:async r=>await n.sign(r),presign:async r=>await n.presign(r,Dbe),hashAndEncode:async r=>{const a=new Gl;return a.update(r),ube(await a.digest()).toLowerCase()}}};function wP(t,e){return new Request(t,e)}function jbe(t=0){return new Promise((e,n)=>{t&&setTimeout(()=>{const r=new Error(`Request did not complete within ${t} ms`);r.name="TimeoutError",n(r)},t)})}const YC={supported:void 0};class Yv{config;configProvider;static create(e){return typeof e?.handle=="function"?e:new Yv(e)}constructor(e){typeof e=="function"?this.configProvider=e().then(n=>n||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),YC.supported===void 0&&(YC.supported=typeof Request<"u"&&"keepalive"in wP("https://[::1]"))}destroy(){}async handle(e,{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 A=xP(n);return Promise.reject(A)}let u=e.path;const c=TA(e.query||{});c&&(u+=`?${c}`),e.fragment&&(u+=`#${e.fragment}`);let f="";if(e.username!=null||e.password!=null){const A=e.username??"",k=e.password??"";f=`${A}:${k}@`}const{port:h,method:m}=e,g=`${e.protocol}//${f}${e.hostname}${h?`:${h}`:""}${u}`,y=m==="GET"||m==="HEAD"?void 0:e.body,S={body:y,headers:new Headers(e.headers),method:m,credentials:i};this.config?.cache&&(S.cache=this.config.cache),y&&(S.duplex="half"),typeof AbortController<"u"&&(S.signal=n),YC.supported&&(S.keepalive=s),typeof this.config.requestInit=="function"&&Object.assign(S,this.config.requestInit(e));let w=()=>{};const x=wP(g,S),E=[fetch(x).then(A=>{const k=A.headers,I={};for(const O of k.entries())I[O[0]]=O[1];return A.body!=null?{response:new Qh({headers:I,reason:A.statusText,statusCode:A.status,body:A.body})}:A.blob().then(O=>({response:new Qh({headers:I,reason:A.statusText,statusCode:A.status,body:O})}))}),jbe(a)];return n&&E.push(new Promise((A,k)=>{const I=()=>{const N=xP(n);k(N)};if(typeof n.addEventListener=="function"){const N=n;N.addEventListener("abort",I,{once:!0}),w=()=>N.removeEventListener("abort",I)}else n.onabort=I})),Promise.race(E).finally(w)}updateHttpClientConfig(e,n){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[e]=n,r))}httpHandlerConfigs(){return this.config??{}}}function xP(t){const e=t&&typeof t=="object"&&"reason"in t?t.reason:void 0;if(e){if(e instanceof Error){const a=new Error("Request aborted");return a.name="AbortError",a.cause=e,a}const r=new Error(String(e));return r.name="AbortError",r}const n=new Error("Request aborted");return n.name="AbortError",n}const ZC=async t=>{const{value:e}=await t.body.getReader().read();return JSON.parse(String.fromCharCode.apply(null,e))},zbe=async t=>{const{value:e}=await t.body.getReader().read();return String.fromCharCode.apply(null,e)},Fbe="POST",$be="application/x-www-form-urlencoded",Bbe="https:",Hbe="AssumeRoleWithWebIdentity",qbe="2011-06-15";class Wbe{constructor(e){this.assumeRoleWithWebIdentity=async n=>{try{const r=Object.assign(Object.assign({},n),{Action:Hbe,Version:qbe}),a=new URLSearchParams(Object.entries(r)).toString(),s=new ko({method:Fbe,headers:{"content-type":$be,host:this.hostname},protocol:Bbe,hostname:this.hostname,body:a}),{response:i}=await this.fetchRequestHandler.handle(s),u=await zbe(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.${e.region}.amazonaws.com`,this.fetchRequestHandler=e.fetchRequestHandler}}const Vbe="POST",Gbe="application/x-amz-json-1.1",Kbe="https:",Ybe="AWSCognitoIdentityService.GetId",Zbe="AWSCognitoIdentityService.GetOpenIdToken",Xbe="AWSCognitoIdentityService.GetCredentialsForIdentity";class Qbe{constructor(e){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(Ybe,i),c=await ZC((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(Zbe,a),{response:i}=await this.fetchRequestHandler.handle(s);return this.validateOpenIdTokenResponse(await ZC(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(Xbe,a),{response:i}=await this.fetchRequestHandler.handle(s),{AccessKeyId:u,Expiration:c,SecretKey:f,SessionToken:h}=this.validateCredenentialsResponse(await ZC(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 ko({method:Vbe,headers:{"content-type":Gbe,"x-amz-target":r},protocol:Kbe,hostname:this.hostname,body:a}),this.hostname=`cognito-identity.${e.region}.amazonaws.com`,this.fetchRequestHandler=e.fetchRequestHandler,this.config=e.clientConfig,this.identityStorageKey=!((n=e.clientConfig)===null||n===void 0)&&n.cookieAttributes.unique?`${f1}_${e.applicationId}`:f1}}class S${constructor(e,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=e.identityPoolId.split(":")[0];this.config=e,this.cognitoIdentityClient=new Qbe({fetchRequestHandler:new Yv,region:r,clientConfig:e,applicationId:n}),this.credentialStorageKey=this.config.cookieAttributes.unique?`${ad}_${n}`:ad}renewCredentials(){if(!this.credentials||!this.credentials.expiration)return!0;const e=new Date(this.credentials.expiration.getTime()-obe);return new Date>e}}class Jbe extends S${constructor(e,n){super(e,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=e.identityPoolId.split(":")[0];this.stsClient=new Wbe({fetchRequestHandler:new Yv,region:r})}}class eSe extends S${constructor(e,n){super(e,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 ha="com.amazon.rum",tSe="com.amazonaws.rum",m1=`${ha}.http_event`,w$=`${ha}.xray_trace_event`,nSe=`${ha}.largest_contentful_paint_event`,rSe=`${ha}.first_input_delay_event`,aSe=`${ha}.cumulative_layout_shift_event`,sSe=`${ha}.interaction_to_next_paint_event`,U3=`${ha}.performance_navigation_event`,x$=`${ha}.performance_resource_event`,oSe=`${ha}.dom_event`,iSe=`${ha}.js_error_event`,lSe=`${ha}.page_view_event`,j3=`${ha}.session_start_event`,CP=`${ha}.rrweb_event`;class Ma{constructor(e){this.enabled=!0,this.pluginId=Ma.generatePluginId(e)}static generatePluginId(e){return`${Ma.idPrefix}.${e}`}load(e){var n;this.context=e,(n=this.onload)===null||n===void 0||n.call(this)}getPluginId(){return this.pluginId}}Ma.idPrefix=tSe;class uSe{constructor(e){this.context=e,this.plugins=new Map}addPlugin(e){const n=e.getPluginId();if(this.hasPlugin(n))throw new Error(`Plugin "${n}" already defined in the PluginManager`);this.plugins.set(n,e),e.load(this.context),Se.debug(`Plugin loaded: ${n}`)}updatePlugin(e,n){var r;const a=this.getPlugin(e);(r=a?.update)===null||r===void 0||r.call(a,n)}enable(){this.plugins.forEach(e=>e.enable())}disable(){this.plugins.forEach(e=>e.disable())}flush(){this.plugins.forEach(e=>{var n;return(n=e.flush)===null||n===void 0?void 0:n.call(e)})}hasPlugin(e){return!!this.getPlugin(e)}record(e,n){const r=this.getPlugin(e);if(r?.record instanceof Function)r.record(n);else throw new Error("AWS RUM Client record: Invalid plugin ID")}getPlugin(e){var n;return(n=this.plugins.get(e))!==null&&n!==void 0?n:this.plugins.get(Ma.generatePluginId(e))}}const EP=(t,e,n,r,a)=>{let s=t+"=";s+=e||"",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},cSe=(t,e)=>{let n=t+"=";n+=`; Expires=${new Date(0)}`,n+=`; Domain=${e.domain}`,n+=`; Path=${e.path}`,n+=`; SameSite=${e.sameSite}`,n+=e.secure?"Secure":"",document.cookie=n},_P=t=>{const e=document.cookie.split("; ");for(const n of e){const r=n.split("=");if(r[0]===t)return r[1]}return""};var Ch;(function(t){t.Path="PATH",t.Hash="HASH",t.PathAndHash="PATH_AND_HASH"})(Ch||(Ch={}));const dSe=()=>{var t,e;const n=navigator.userAgentData;if(!n)return;const r=(t=n.brands)!==null&&t!==void 0?t:[],a=(e=r.find(s=>s.brand!=="Chromium"&&!s.brand.startsWith("Not")))!==null&&e!==void 0?e:r[0];return{browserName:a?.brand,browserVersion:a?.version,osName:n.platform,deviceType:n.mobile?"mobile":"desktop"}},Rg="00000000-0000-0000-0000-000000000000",fSe="desktop",hSe="web";class pSe{constructor(e,n,r,a){this.isSessionIdManual=!1,this.isUserIdManual=!1,this.appMonitorDetails=e,this.config=n,this.recordEvent=r,this.pageManager=a,this.sessionCookieName=this.config.cookieAttributes.unique?`${h1}_${this.appMonitorDetails.id}`:h1,this.session={sessionId:Rg,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===Rg?this.createSession():new Date>=this.sessionExpiry&&this.createSession(),this.session)}getAttributes(){return this.attributes}addSessionAttributes(e){this.attributes=Object.assign(Object.assign({},this.attributes),e)}pinSessionId(e){if(!e){Se.warn("pinSessionId called with empty value; ignoring.");return}this.isSessionIdManual=!0,e!==this.session.sessionId&&this.adoptSession(e)}startSession(e){return e?.userId!==void 0&&(e.userId?(this.isUserIdManual=!0,e.userId!==this.userId&&this.adoptUser(e.userId)):Se.warn("startSession called with empty userId; ignoring user rotation.")),e?.sessionId!==void 0?e.sessionId?(this.isSessionIdManual=!0,this.adoptSession(e.sessionId),this.config.suppressSessionStartEvent||this.recordEvent(j3,{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:Rg}pinUserId(e){if(!e){Se.warn("pinUserId called with empty value; ignoring.");return}this.isUserIdManual=!0,e!==this.userId&&this.adoptUser(e)}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 e="";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()?(e=this.getUserIdCookie(),this.userId=e||xh(),this.createOrRenewUserCookie(e,this.userExpiry)):this.userId=xh()}createOrRenewSessionCookie(e,n){btoa&&EP(this.sessionCookieName,btoa(JSON.stringify(e)),this.config.cookieAttributes,void 0,n)}createOrRenewUserCookie(e,n){EP(p1,e,this.config.cookieAttributes,void 0,n)}getUserIdCookie(){return _P(p1)}getSessionFromCookie(){if(this.useCookies()){const e=_P(this.sessionCookieName);if(e&&atob)try{this.session=JSON.parse(atob(e)),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:xh(),record:this.session.sessionId===Rg?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(j3,{version:"1.0.0"})}adoptSession(e){this.session={sessionId:e,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: ${e}`)}adoptUser(e){this.userId=e,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: ${e}`)}renewSession(){this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.session.page=this.pageManager.getPage(),this.storeSessionAsCookie()}collectAttributes(){var e;const n=dSe();this.attributes={browserLanguage:navigator.language,browserName:n?.browserName,browserVersion:n?.browserVersion,osName:n?.osName,osVersion:n?.osVersion,deviceType:(e=n?.deviceType)!==null&&e!==void 0?e:fSe,platformType:hSe,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 mSe{constructor(e,n){this.config=e,this.record=n,this.page=void 0,this.resumed=!1,this.recordInteraction=!1}getPage(){return this.page}getAttributes(){return this.attributes}resumeSession(e){this.recordInteraction=!0,e&&(this.page=e,this.resumed=!0)}recordPageView(e){let n;if(typeof e=="string"?n=e:n=e.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 e=="object"?e:void 0);return}else{Se.debug(`No page change detected for: ${n}`);return}this.collectAttributes(this.page,typeof e=="object"?e:void 0),this.recordPageViewEvent(this.page)}createNextPage(e,n){const r=Date.now();Se.debug(`Creating next page ${n}, interaction: ${e.interaction+1}`),this.timeOnParentPage=r-e.start,this.resumed=!1,this.page={pageId:n,parentPageId:e.pageId,interaction:e.interaction+1,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:r}}createLandingPage(e){this.page={pageId:e,interaction:0,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:Date.now()}}collectAttributes(e,n){var r;this.attributes={title:!((r=n?.pageAttributes)===null||r===void 0)&&r.title?n.pageAttributes.title:document.title,pageId:e.pageId},this.recordInteraction&&(this.attributes.interaction=e.interaction,e.parentPageId!==void 0&&(this.attributes.parentPageId=e.parentPageId)),n?.pageTags&&(this.attributes.pageTags=n.pageTags),n?.pageAttributes&&(this.attributes=Object.assign(Object.assign({},n.pageAttributes),this.attributes))}createPageViewEvent(e){const n={version:"1.0.0",pageId:e.pageId};return this.recordInteraction&&(n.interaction=e.interaction,n.pageInteractionId=e.pageId+"-"+e.interaction,e.parentPageId!==void 0&&(n.parentPageInteractionId=e.parentPageId+"-"+(e.interaction-1),n.timeOnParentPage=this.timeOnParentPage),n.referrer=document.referrer,n.referrerDomain=this.getDomainFromReferrer()),n}recordPageViewEvent(e){this.record(lSe,this.createPageViewEvent(e))}useCookies(){return navigator.cookieEnabled&&this.config.allowCookies}getDomainFromReferrer(){try{return new URL(document.referrer).hostname}catch{return document.referrer==="localhost"?document.referrer:""}}}var Jh;(function(t){t.EVENT="event"})(Jh||(Jh={}));class C${constructor(){this.subscribers=new Map}subscribe(e,n){var r;const a=(r=this.subscribers.get(e))!==null&&r!==void 0?r:[];a.length||this.subscribers.set(e,a),a.push(n)}unsubscribe(e,n){const r=this.subscribers.get(e);if(r){for(let a=0;a<r.length;a++)if(r[a]===n)return r.splice(a,1),!0}return!1}dispatch(e,n){const r=this.subscribers.get(e);if(r)for(const a of r)a(n)}}const gSe="3.1.0",vSe=new Set(["pageId","parentPageId","interaction","pageTags","title"]),XC=(t,e)=>{if(!t)return{};const n={};for(const[r,a]of Object.entries(t)){if(r.startsWith("aws:")){Se.warn(`Dropping ${e} metadata key "${r}": "aws:" namespace is reserved.`);continue}if((e==="event"||e==="hook")&&vSe.has(r)){Se.warn(`Dropping ${e} metadata key "${r}": owned by page state.`);continue}const s=typeof a;if(s!=="string"&&s!=="number"&&s!=="boolean"){Se.warn(`Dropping ${e} metadata key "${r}": value must be string|number|boolean.`);continue}n[r]=a}return n};class ySe{constructor(e,n,r=new C$){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!==j3&&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(Jh.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=XC(i,"event");let h={};if(this.eventMetadataHook)try{const y=Object.freeze(Object.assign({},c)),S=this.eventMetadataHook(a,s,y);S&&(h=XC(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:xh(),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=e,this.config=n,this.enabled=!0,this.pageManager=new mSe(n,this.recordEvent),this.sessionManager=new pSe(e,n,this.recordEvent,this.pageManager),this.installationMethod=n.client,this.applicationAttributes=Object.freeze(XC(n.applicationAttributes,"application"))}enable(){this.enabled=!0}disable(){this.enabled=!1}setPluginFlushHook(e){this.pluginFlushHook=e}isSessionSampled(){return this.sessionManager.isSampled()}hasEvents(){if(this.sessionLimitExceeded>0){const e=this.events.length+this.sessionLimitExceeded;this.sessionManager.isSampled()?Se.warn(`Dropped ${this.sessionLimitExceeded} of ${e} recently observed events (${(this.sessionLimitExceeded/e*100).toFixed(2)}%) because the session limit has exceeded. Consider increasing sessionEventLimit (currently ${this.config.sessionEventLimit}) to ${e} or more to avoid data loss.`):Se.warn(`Dropped ${this.sessionLimitExceeded} of ${e} recently observed events (${(this.sessionLimitExceeded/e*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(e=!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(e&&((n=this.pluginFlushHook)===null||n===void 0||n.call(this)),e&&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(e){this.sessionManager.addSessionAttributes(e)}getCommonMetadata(){return Object.assign(Object.assign(Object.assign({},this.sessionManager.getAttributes()),this.applicationAttributes),{version:"1.0.0","aws:client":this.installationMethod,"aws:clientVersion":gSe})}setEventMetadataHook(e){this.eventMetadataHook=e}clearEventMetadataHook(){this.eventMetadataHook=void 0}isCurrentUrlAllowed(){const e=document.location.toString(),n=this.config.pagesToExclude.some(a=>a.test(e));return this.config.pagesToInclude.some(a=>a.test(e))&&!n}}var On;(function(t){t.OTHER="other",t.STYLESHEET="stylesheet",t.DOCUMENT="document",t.SCRIPT="script",t.IMAGE="image",t.FONT="font"})(On||(On={}));var co;(function(t){t.IMG="img",t.IMAGE="image",t.INPUT="input",t.IFRAME="iframe",t.FRAME="frame",t.SCRIPT="script",t.CSS="css"})(co||(co={}));const kP=t=>[t.startTime,t.duration].join("#"),bSe=[{name:On.STYLESHEET,list:["css","less"]},{name:On.DOCUMENT,list:["htm","html","ts","doc","docx","pdf","xls","xlsx"]},{name:On.SCRIPT,list:["js"]},{name:On.IMAGE,list:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"]},{name:On.FONT,list:["fnt","fon","otf","ttf","woff"]}],AP=(t,e)=>{let n=On.OTHER;if(t){const r=t.substring(t.lastIndexOf("/")+1),a=r.substring(r.lastIndexOf(".")+1).split(/[?#]/)[0];bSe.forEach(s=>{s.list.indexOf(a)>-1&&(n=s.name)})}if(e&&n===On.OTHER)switch(e){case co.IMAGE:case co.IMG:case co.INPUT:n=On.IMAGE;break;case co.IFRAME:case co.FRAME:n=On.DOCUMENT;break;case co.SCRIPT:n=On.SCRIPT;break;case co.CSS:n=On.STYLESHEET;break}return n},SSe=()=>PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint"),wSe=/\/appmonitors\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,xSe=(t,e)=>{try{return new URL(t).hostname===e&&wSe.test(t)}catch{return!1}},E$="dom-event",CSe={interactionId:()=>"",enableMutationObserver:!1,events:[]};class jA extends Ma{constructor(e){super(E$),this.enabled=!1,this.eventListenerMap=new Map,this.config=Object.assign(Object.assign({},CSe),e)}static getElementInfo(e){const n={name:"UNKNOWN"};return e.target instanceof Node&&(n.name=e.target.nodeName),e.target instanceof Element&&e.target.id&&(n.id=e.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(e){e.forEach(n=>{this.addEventHandler(n),this.config.events.push(n)})}onload(){this.enable()}removeListeners(){this.config.events.forEach(e=>this.removeEventHandler(e))}addListeners(){this.config.events.forEach(e=>this.addEventHandler(e))}getEventListener(e){return n=>{var r;const a=jA.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}:{}),e?{cssLocator:e}:{});!((r=this.context)===null||r===void 0)&&r.record&&this.context.record(oSe,i)}}addEventHandler(e){const n=e.event,r=this.getEventListener(e.cssLocator),a=[],s=this.eventListenerMap.has(e)?this.eventListenerMap.get(e):[];if(e.cssLocator)document.querySelectorAll(e.cssLocator).forEach(u=>{a.push(u)});else if(e.elementId){const i=document.getElementById(e.elementId);i&&a.push(i)}else e.element&&a.push(e.element);a.forEach(i=>{i.addEventListener(n,r),s.push({element:i,eventListener:r})}),this.eventListenerMap.set(e,s)}removeEventHandler(e){const n=this.eventListenerMap.get(e);n&&(n.forEach(r=>{const a=r.element,s=r.eventListener;a.removeEventListener(e.event,s)}),this.eventListenerMap.delete(e))}observeDOMMutation(){this.observer=new MutationObserver(()=>{this.removeListeners(),this.addListeners()}),this.observer.observe(document,{childList:!0,subtree:!0})}}const ESe=t=>{const e=typeof t;return(e==="object"||e==="function")&&!!t},_Se=t=>{const e={version:"1.0.0",type:"undefined",message:"undefined"};return t.type!==void 0&&(e.type=t.type),t.message!==void 0&&(e.message=t.message),t.filename!==void 0&&(e.filename=t.filename),t.lineno!==void 0&&(e.lineno=t.lineno),t.colno!==void 0&&(e.colno=t.colno),e},kSe=(t,e)=>{t.type!=="unhandledrejection"&&(t.type=e.toString()),t.message=e.toString()},ASe=(t,e,n)=>{e.name&&(t.type=e.name),e.message&&(t.message=e.message),e.fileName&&(t.filename=e.fileName),e.lineNumber&&(t.lineno=e.lineNumber),e.columnNumber&&(t.colno=e.columnNumber),n&&e.stack&&(t.stack=e.stack.length>n?e.stack.substring(0,n)+"...":e.stack)},_$=t=>t!==Object(t)&&t!==void 0&&t!==null,zA=(t,e)=>{const n=_Se(t),r=t.error;return ESe(r)?ASe(n,r,e):_$(r)&&kSe(n,r),n},k$="js-error",RSe={stackTraceLength:1e3,ignore:()=>!1};class ISe extends Ma{constructor(e){super(k$),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({},RSe),e)}enable(){this.enabled||(this.addEventHandler(),this.enabled=!0)}disable(){this.enabled&&(this.removeEventHandler(),this.enabled=!1)}record(e){e instanceof ErrorEvent?this.recordJsErrorEvent(e):this.recordJsErrorEvent({type:"error",error:e})}onload(){this.addEventHandler()}recordJsErrorEvent(e){var n;(n=this.context)===null||n===void 0||n.record(iSe,zA(e,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 TSe=t=>t.entryType==="resource"&&(!/^https?:/.test(t.name)||/^(fetch|xmlhttprequest)$/.test(t.initiatorType)),FA={eventLimit:10,ignore:TSe,recordAllTypes:[On.DOCUMENT,On.SCRIPT,On.STYLESHEET,On.FONT],sampleTypes:[On.IMAGE,On.OTHER],reportAllLCP:!1,reportAllCLS:!1,reportAllINP:!1},OSe="navigation",yc="navigation",QC="load";class NSe extends Ma{constructor(e){super(OSe),this.eventListener=()=>{performance.getEntriesByType(yc).length===0?this.performanceNavigationEventHandlerTimingLevel1():new PerformanceObserver(r=>{r.getEntries().filter(a=>a.entryType===yc).filter(a=>!this.config.ignore(a)).forEach(a=>{this.performanceNavigationEventHandlerTimingLevel2(a)})}).observe({entryTypes:[yc]})},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(U3,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(U3,a)},this.config=Object.assign(Object.assign({},FA),e)}enable(){this.enabled||(this.enabled=!0,window.addEventListener(QC,this.eventListener))}disable(){this.enabled&&(this.enabled=!1,this.eventListener&&window.removeEventListener(QC,this.eventListener))}hasTheWindowLoadEventFired(){return window.performance&&window.performance.getEntriesByType(yc).length?!!window.performance.getEntriesByType(yc)[0].loadEventEnd:!1}onload(){this.enabled&&(this.hasTheWindowLoadEventFired()?window.performance.getEntriesByType(yc).filter(e=>!this.config.ignore(e)).forEach(e=>this.performanceNavigationEventHandlerTimingLevel2(e)):window.addEventListener(QC,this.eventListener))}}var JC,RP;function MSe(){if(RP)return JC;RP=1;function t(c){return typeof c=="function"}var e=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&&(t(c.logger)?e=c.logger:e("new logger isn't a function, not replacing"))}function a(c,f,h){if(!c||!c[f]){e("no original function "+f+" to wrap");return}if(!h){e("no wrapper function"),e(new Error().stack);return}if(!t(c[f])||!t(h)){e("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{e("must provide one or more modules to patch"),e(new Error().stack);return}if(!(f&&Array.isArray(f))){e("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]){e("no function to unwrap."),e(new Error().stack);return}if(!c[f].__unwrap)e("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{e("must provide one or more modules to patch"),e(new Error().stack);return}if(!(f&&Array.isArray(f))){e("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,JC=r,JC}var g1=MSe();const PSe=yd(g1),IP=ML({__proto__:null,default:PSe},[g1]);class $A extends Ma{constructor(){super(...arguments),this.enable=this.patch.bind(this,!0),this.disable=this.patch.bind(this,!1),this.enabled=!1}patchAll(){const e=g1.wrap.bind(IP);for(const n of this.patches)e(n.nodule,n.name,n.wrapper())}unpatchAll(){const e=g1.unwrap.bind(IP);for(const n of this.patches)e(n.nodule,n.name)}patch(e=!0){this.enabled!==e&&(this.enabled=e,e?this.patchAll():this.unpatchAll())}}const LSe="page-view";class DSe extends $A{constructor(){super(LSe),this.pushState=()=>{const e=this;return n=>function(r,a,s){const i=n.apply(this,arguments);return e.recordPageView(),i}},this.replaceState=()=>{const e=this;return n=>function(r,a,s){const i=n.apply(this,arguments);return e.recordPageView(),i}},this.popstateListener=e=>{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 e=window.location.pathname,n=window.location.hash;switch(this.context.config.pageIdFormat){case Ch.PathAndHash:return e&&n?e+n:e||n||"";case Ch.Hash:return n||"";case Ch.Path:default:return e||""}}}const USe="resource",eE="resource";class jSe extends Ma{constructor(e){super(USe),this.performanceEntryHandler=n=>{this.recordPerformanceEntries(n.getEntries())},this.recordPerformanceEntries=n=>{n.forEach(r=>{if(r.entryType!==eE||this.config.ignore(r))return;const{name:a,initiatorType:s}=r,i=AP(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(!xSe(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:AP(n,a),transferSize:i};this.context.config.recordResourceUrl&&(c.targetUrl=n),this.context.record(x$,c)}},this.config=Object.assign(Object.assign({},FA),e),this.eventCount=0,this.resourceObserver=new PerformanceObserver(this.performanceEntryHandler)}enable(){this.enabled||(this.enabled=!0,this.resourceObserver.observe({type:eE,buffered:!0}))}disable(){this.enabled&&(this.enabled=!1,this.resourceObserver.disconnect())}onload(){this.resourceObserver.observe({type:eE,buffered:!0})}}var z3,TP,Zv=function(){var t=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart<performance.now())return t},BA=function(t){if(document.readyState==="loading")return"loading";var e=Zv();if(e){if(t<e.domInteractive)return"loading";if(e.domContentLoadedEventStart===0||t<e.domContentLoadedEventStart)return"dom-interactive";if(e.domComplete===0||t<e.domComplete)return"dom-content-loaded"}return"complete"},zSe=function(t){var e=t.nodeName;return t.nodeType===1?e.toLowerCase():e.toUpperCase().replace(/^#/,"")},Xv=function(t,e){var n="";try{for(;t&&t.nodeType!==9;){var r=t,a=r.id?"#"+r.id:zSe(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>(e||100)-1)return n||a;if(n=n?a+">"+n:a,r.id)break;t=r.parentNode}}catch{}return n},A$=-1,FSe=function(){return A$},Md=function(t){addEventListener("pageshow",(function(e){e.persisted&&(A$=e.timeStamp,t(e))}),!0)},HA=function(){var t=Zv();return t&&t.activationStart||0},Os=function(t,e){var n=Zv(),r="navigate";return FSe()>=0?r="back-forward-cache":n&&(document.prerendering||HA()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:e===void 0?-1:e,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},vu=function(t,e,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var r=new PerformanceObserver((function(a){Promise.resolve().then((function(){e(a.getEntries())}))}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch{}},Ns=function(t,e,n,r){var a,s;return function(i){e.value>=0&&(i||r)&&((s=e.value-(a||0))||a===void 0)&&(a=e.value,e.delta=s,e.rating=(function(u,c){return u>c[1]?"poor":u>c[0]?"needs-improvement":"good"})(e.value,n),t(e))}},qA=function(t){requestAnimationFrame((function(){return requestAnimationFrame((function(){return t()}))}))},Ip=function(t){document.addEventListener("visibilitychange",(function(){document.visibilityState==="hidden"&&t()}))},Qv=function(t){var e=!1;return function(){e||(t(),e=!0)}},jc=-1,OP=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},v1=function(t){document.visibilityState==="hidden"&&jc>-1&&(jc=t.type==="visibilitychange"?t.timeStamp:0,$Se())},NP=function(){addEventListener("visibilitychange",v1,!0),addEventListener("prerenderingchange",v1,!0)},$Se=function(){removeEventListener("visibilitychange",v1,!0),removeEventListener("prerenderingchange",v1,!0)},WA=function(){return jc<0&&(jc=OP(),NP(),Md((function(){setTimeout((function(){jc=OP(),NP()}),0)}))),{get firstHiddenTime(){return jc}}},Jv=function(t){document.prerendering?addEventListener("prerenderingchange",(function(){return t()}),!0):t()},MP=[1800,3e3],BSe=function(t,e){e=e||{},Jv((function(){var n,r=WA(),a=Os("FCP"),s=vu("paint",(function(i){i.forEach((function(u){u.name==="first-contentful-paint"&&(s.disconnect(),u.startTime<r.firstHiddenTime&&(a.value=Math.max(u.startTime-HA(),0),a.entries.push(u),n(!0)))}))}));s&&(n=Ns(t,a,MP,e.reportAllChanges),Md((function(i){a=Os("FCP"),n=Ns(t,a,MP,e.reportAllChanges),qA((function(){a.value=performance.now()-i.timeStamp,n(!0)}))})))}))},PP=[.1,.25],HSe=function(t,e){(function(n,r){r=r||{},BSe(Qv((function(){var a,s=Os("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=vu("layout-shift",c);f&&(a=Ns(n,s,PP,r.reportAllChanges),Ip((function(){c(f.takeRecords()),a(!0)})),Md((function(){i=0,s=Os("CLS",0),a=Ns(n,s,PP,r.reportAllChanges),qA((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:Xv(c.node),largestShiftTime:u.startTime,largestShiftValue:u.value,largestShiftSource:c,largestShiftEntry:u,loadState:BA(u.startTime)})}}return Object.assign(a,{attribution:i})})(n);t(r)}),e)},R$=0,tE=1/0,Ig=0,qSe=function(t){t.forEach((function(e){e.interactionId&&(tE=Math.min(tE,e.interactionId),Ig=Math.max(Ig,e.interactionId),R$=Ig?(Ig-tE)/7+1:0)}))},I$=function(){return z3?R$:performance.interactionCount||0},WSe=function(){"interactionCount"in performance||z3||(z3=vu("event",qSe,{type:"event",buffered:!0,durationThreshold:0}))},Ga=[],Eh=new Map,T$=0,VSe=function(){var t=Math.min(Ga.length-1,Math.floor((I$()-T$)/50));return Ga[t]},O$=[],GSe=function(t){if(O$.forEach((function(a){return a(t)})),t.interactionId||t.entryType==="first-input"){var e=Ga[Ga.length-1],n=Eh.get(t.interactionId);if(n||Ga.length<10||t.duration>e.latency){if(n)t.duration>n.latency?(n.entries=[t],n.latency=t.duration):t.duration===n.latency&&t.startTime===n.entries[0].startTime&&n.entries.push(t);else{var r={id:t.interactionId,latency:t.duration,entries:[t]};Eh.set(r.id,r),Ga.push(r)}Ga.sort((function(a,s){return s.latency-a.latency})),Ga.length>10&&Ga.splice(10).forEach((function(a){return Eh.delete(a.id)}))}}},VA=function(t){var e=self.requestIdleCallback||self.setTimeout,n=-1;return t=Qv(t),document.visibilityState==="hidden"?t():(n=e(t),Ip(t)),n},LP=[200,500],KSe=function(t,e){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(e=e||{},Jv((function(){var n;WSe();var r,a=Os("INP"),s=function(u){VA((function(){u.forEach(GSe);var c=VSe();c&&c.latency!==a.value&&(a.value=c.latency,a.entries=c.entries,r())}))},i=vu("event",s,{durationThreshold:(n=e.durationThreshold)!==null&&n!==void 0?n:40});r=Ns(t,a,LP,e.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),Ip((function(){s(i.takeRecords()),r(!0)})),Md((function(){T$=I$(),Ga.length=0,Eh.clear(),a=Os("INP"),r=Ns(t,a,LP,e.reportAllChanges)})))})))},Yc=[],Ti=[],F3=0,GA=new WeakMap,Zc=new Map,$3=-1,YSe=function(t){Yc=Yc.concat(t),N$()},N$=function(){$3<0&&($3=VA(ZSe))},ZSe=function(){Zc.size>10&&Zc.forEach((function(i,u){Eh.has(u)||Zc.delete(u)}));var t=Ga.map((function(i){return GA.get(i.entries[0])})),e=Ti.length-50;Ti=Ti.filter((function(i,u){return u>=e||t.includes(i)}));for(var n=new Set,r=0;r<Ti.length;r++){var a=Ti[r];P$(a.startTime,a.processingEnd).forEach((function(i){n.add(i)}))}var s=Yc.length-1-50;Yc=Yc.filter((function(i,u){return i.startTime>F3&&u>s||n.has(i)})),$3=-1};O$.push((function(t){t.interactionId&&t.target&&!Zc.has(t.interactionId)&&Zc.set(t.interactionId,t.target)}),(function(t){var e,n=t.startTime+t.duration;F3=Math.max(F3,t.processingEnd);for(var r=Ti.length-1;r>=0;r--){var a=Ti[r];if(Math.abs(n-a.renderTime)<=8){(e=a).startTime=Math.min(t.startTime,e.startTime),e.processingStart=Math.min(t.processingStart,e.processingStart),e.processingEnd=Math.max(t.processingEnd,e.processingEnd),e.entries.push(t);break}}e||(e={startTime:t.startTime,processingStart:t.processingStart,processingEnd:t.processingEnd,renderTime:n,entries:[t]},Ti.push(e)),(t.interactionId||t.entryType==="first-input")&&GA.set(t,e),N$()}));var Oi,_h,M$,y1,P$=function(t,e){for(var n,r=[],a=0;n=Yc[a];a++)if(!(n.startTime+n.duration<t)){if(n.startTime>e)break;r.push(n)}return r},XSe=function(t,e){TP||(TP=vu("long-animation-frame",YSe)),KSe((function(n){var r=(function(a){var s=a.entries[0],i=GA.get(s),u=s.processingStart,c=i.processingEnd,f=i.entries.sort((function(x,E){return x.processingStart-E.processingStart})),h=P$(s.startTime,c),m=a.entries.find((function(x){return x.target})),g=m&&m.target||Zc.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:Xv(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:BA(s.startTime)};return Object.assign(a,{attribution:w})})(n);t(r)}),e)},DP=[2500,4e3],nE={},QSe=function(t,e){(function(n,r){r=r||{},Jv((function(){var a,s=WA(),i=Os("LCP"),u=function(h){r.reportAllChanges||(h=h.slice(-1)),h.forEach((function(m){m.startTime<s.firstHiddenTime&&(i.value=Math.max(m.startTime-HA(),0),i.entries=[m],a())}))},c=vu("largest-contentful-paint",u);if(c){a=Ns(n,i,DP,r.reportAllChanges);var f=Qv((function(){nE[i.id]||(u(c.takeRecords()),c.disconnect(),nE[i.id]=!0,a(!0))}));["keydown","click"].forEach((function(h){addEventListener(h,(function(){return VA(f)}),{once:!0,capture:!0})})),Ip(f),Md((function(h){i=Os("LCP"),a=Ns(n,i,DP,r.reportAllChanges),qA((function(){i.value=performance.now()-h.timeStamp,nE[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=Zv();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:Xv(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);t(r)}),e)},ph={passive:!0,capture:!0},JSe=new Date,UP=function(t,e){Oi||(Oi=e,_h=t,M$=new Date,D$(removeEventListener),L$())},L$=function(){if(_h>=0&&_h<M$-JSe){var t={entryType:"first-input",name:Oi.type,target:Oi.target,cancelable:Oi.cancelable,startTime:Oi.timeStamp,processingStart:Oi.timeStamp+_h};y1.forEach((function(e){e(t)})),y1=[]}},ewe=function(t){if(t.cancelable){var e=(t.timeStamp>1e12?new Date:performance.now())-t.timeStamp;t.type=="pointerdown"?(function(n,r){var a=function(){UP(n,r),i()},s=function(){i()},i=function(){removeEventListener("pointerup",a,ph),removeEventListener("pointercancel",s,ph)};addEventListener("pointerup",a,ph),addEventListener("pointercancel",s,ph)})(e,t):UP(e,t)}},D$=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach((function(e){return t(e,ewe,ph)}))},jP=[100,300],twe=function(t,e){e=e||{},Jv((function(){var n,r=WA(),a=Os("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=vu("first-input",i);n=Ns(t,a,jP,e.reportAllChanges),u&&(Ip(Qv((function(){i(u.takeRecords()),u.disconnect()}))),Md((function(){var c;a=Os("FID"),n=Ns(t,a,jP,e.reportAllChanges),y1=[],_h=-1,Oi=null,D$(addEventListener),c=s,y1.push(c),L$()})))}))},nwe=function(t,e){twe((function(n){var r=(function(a){var s=a.entries[0],i={eventTarget:Xv(s.target),eventType:s.name,eventTime:s.startTime,eventEntry:s,loadState:BA(s.startTime)};return Object.assign(a,{attribution:i})})(n);t(r)}),e)};const rwe="web-vitals";class awe extends Ma{constructor(e){super(rwe),this.resourceEventIds=new Map,this.cacheLCPCandidates=SSe(),this.handleEvent=n=>{switch(n.type){case x$:const r=n.details;this.cacheLCPCandidates&&r.fileType===On.IMAGE&&this.resourceEventIds.set(kP(n.details),n.id);break;case U3:this.navigationEventId=n.id;break}},this.config=Object.assign(Object.assign({},FA),e)}enable(){}disable(){}onload(){this.context.eventBus.subscribe(Jh.EVENT,this.handleEvent),QSe(e=>this.handleLCP(e),{reportAllChanges:this.config.reportAllLCP}),nwe(e=>this.handleFID(e)),HSe(e=>this.handleCLS(e),{reportAllChanges:!0}),XSe(e=>this.handleINP(e),{reportAllChanges:!0})}handleLCP(e){var n,r;const a=e.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=kP(a?.lcpResourceEntry);s.lcpResourceEntry=this.resourceEventIds.get(i)}this.navigationEventId&&(s.navigationEntry=this.navigationEventId),(n=this.context)===null||n===void 0||n.record(nSe,{version:"1.0.0",value:e.value,attribution:s}),(r=this.context)===null||r===void 0||r.eventBus.unsubscribe(Jh.EVENT,this.handleEvent),this.resourceEventIds.clear(),this.navigationEventId=void 0}handleCLS(e){const n=e.attribution,{record:r,recordCandidate:a}=this.context;(this.config.reportAllCLS?r:a)(aSe,{version:"1.0.0",value:e.value,attribution:{largestShiftTarget:n?.largestShiftTarget,largestShiftValue:n?.largestShiftValue,largestShiftTime:n?.largestShiftTime,loadState:n?.loadState}})}handleFID(e){var n;const r=e.attribution;(n=this.context)===null||n===void 0||n.record(rSe,{version:"1.0.0",value:e.value,attribution:{eventTarget:r?.eventTarget,eventType:r?.eventType,eventTime:r?.eventTime,loadState:r?.loadState}})}handleINP(e){const n=e.attribution,{record:r,recordCandidate:a}=this.context;(this.config.reportAllINP?r:a)(sSe,{version:"1.0.0",value:e.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 swe="fetch";class owe extends $A{constructor(e){super(swe),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=Uc(),i=Zye(n,r,!0),u=u$(this.config.logicalServiceName,s,this.context.config.enableW3CTraceId),c=c$(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 Qye(n.headers,s.trace_id,s.subsegments[0].id,this.context.config.enableW3CTraceId);r||(r={},[].push.call(a,r)),Xye(r,s.trace_id,s.subsegments[0].id,this.context.config.enableW3CTraceId)},this.endTrace=(n,r,a)=>{if(n){const s=Uc();if(n.subsegments[0].end_time=s,n.end_time=s,r){n.subsegments[0].http.response={status:r.status},MA(r.status)?(n.subsegments[0].throttle=!0,n.throttle=!0):i$(r.status)?(n.subsegments[0].error=!0,n.error=!0):NA(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):_$(a)&&this.appendErrorCauseFromPrimitive(n.subsegments[0],a.toString())),this.context.record(w$,n)}},this.createHttpEvent=(n,r)=>{const a=n;return{version:"1.0.0",request:{url:A0(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(m1,n))},this.recordHttpEventWithError=(n,r)=>{n.error=zA({type:"error",error:r},this.config.stackTraceLength),this.context.record(m1,n)},this.fetch=(n,r,a,s,i)=>{const u=this.createHttpEvent(s,i);let c;if(!l$(A0(s),this.config))return n.apply(r,a);const f=ebe(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({},o$),e)}get patches(){return[{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]}onload(){this.enable()}isTraceIdHeaderEnabled(e){const n=A0(e);return s$(n,this.config.addXRayTraceIdHeader)}appendErrorCauseFromPrimitive(e,n){e.cause={exceptions:[{type:n}]}}appendErrorCauseFromObject(e,n){e.cause={exceptions:[{type:n.name,message:n.message}]}}}class iwe extends Error{constructor(e){super(e),this.name="XMLHttpRequest error"}}const lwe="xhr";class uwe extends $A{constructor(e){super(lwe),this.addXRayTraceIdHeader=n=>s$(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=Uc();a.trace.end_time=s,a.trace.subsegments[0].end_time=s,a.trace.subsegments[0].http.response={status:r.status},MA(r.status)?(a.trace.subsegments[0].throttle=!0,a.trace.throttle=!0):i$(r.status)?(a.trace.subsegments[0].error=!0,a.trace.error=!0):NA(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=Uc();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 iwe(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=Uc();n.trace=u$(this.config.logicalServiceName,r,this.context.config.enableW3CTraceId),n.trace.subsegments.push(c$(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(Kv,LA(a.trace.trace_id,a.trace.subsegments[0].id)):this.setRequestHeader(Gv,PA(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 l$(s,n.config)&&n.xhrMap.set(this,{url:s,method:a,async:i}),r.apply(this,arguments)}},this.config=Object.assign(Object.assign({},o$),e),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(e,n,r){if(e){const a=Uc();e.trace.end_time=a,e.trace.subsegments[0].end_time=a,e.trace.subsegments[0].error=!0,e.trace.subsegments[0].cause={exceptions:[{type:r}]},this.recordTraceEvent(e.trace),this.recordHttpEventWithError(e,n,r)}}statusOk(e){return e>=200&&e<300}recordHttpEventWithResponse(e,n){this.xhrMap.delete(n);const r={version:"1.0.0",request:{method:e.method,url:e.url},response:{status:n.status,statusText:n.statusText}};this.isTracingEnabled()&&(r.trace_id=e.trace.trace_id,r.segment_id=e.trace.subsegments[0].id),(this.config.recordAllRequests||!this.statusOk(n.status))&&this.context.record(m1,r)}recordHttpEventWithError(e,n,r){this.xhrMap.delete(n);const a={version:"1.0.0",request:{method:e.method,url:e.url},error:zA({type:"error",error:r},this.config.stackTraceLength)};this.isTracingEnabled()&&(a.trace_id=e.trace.trace_id,a.segment_id=e.trace.subsegments[0].id),this.context.record(m1,a)}recordTraceEvent(e){!this.isSyntheticsUA&&this.isTracingEnabled()&&this.isSessionRecorded()&&this.context.record(w$,e)}}var b1={},cwe=Object.defineProperty,dwe=(t,e,n)=>e in t?cwe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,we=(t,e,n)=>dwe(t,typeof e!="symbol"?e+"":e,n),zP,fwe=Object.defineProperty,hwe=(t,e,n)=>e in t?fwe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,FP=(t,e,n)=>hwe(t,typeof e!="symbol"?e+"":e,n),zn=(t=>(t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t))(zn||{});const $P={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},BP={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Tg={},pwe=()=>!!globalThis.Zone;function KA(t){if(Tg[t])return Tg[t];const e=globalThis[t],n=e.prototype,r=t in $P?$P[t]: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=t in BP?BP[t]: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&&!pwe())return Tg[t]=e.prototype,e.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const c=u.contentWindow;if(!c)return e.prototype;const f=c[t].prototype;return document.body.removeChild(u),f?Tg[t]=f:n}catch{return n}}const rE={};function Po(t,e,n){var r;const a=`${t}.${String(n)}`;if(rE[a])return rE[a].call(e);const s=KA(t),i=(r=Object.getOwnPropertyDescriptor(s,n))==null?void 0:r.get;return i?(rE[a]=i,i.call(e)):e[n]}const aE={};function U$(t,e,n){const r=`${t}.${String(n)}`;if(aE[r])return aE[r].bind(e);const s=KA(t)[n];return typeof s!="function"?e[n]:(aE[r]=s,s.bind(e))}function mwe(t){return Po("Node",t,"ownerDocument")}function gwe(t){return Po("Node",t,"childNodes")}function vwe(t){return Po("Node",t,"parentNode")}function ywe(t){return Po("Node",t,"parentElement")}function bwe(t){return Po("Node",t,"textContent")}function Swe(t,e){return U$("Node",t,"contains")(e)}function wwe(t){return U$("Node",t,"getRootNode")()}function xwe(t){return!t||!("host"in t)?null:Po("ShadowRoot",t,"host")}function Cwe(t){return t.styleSheets}function Ewe(t){return!t||!("shadowRoot"in t)?null:Po("Element",t,"shadowRoot")}function _we(t,e){return Po("Element",t,"querySelector")(e)}function kwe(t,e){return Po("Element",t,"querySelectorAll")(e)}function Awe(){return KA("MutationObserver").constructor}function Rwe(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],a=n(r);return typeof a=="function"&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=a,()=>{t[e]=r}}catch{return()=>{}}}const yr={ownerDocument:mwe,childNodes:gwe,parentNode:vwe,parentElement:ywe,textContent:bwe,contains:Swe,getRootNode:wwe,host:xwe,styleSheets:Cwe,shadowRoot:Ewe,querySelector:_we,querySelectorAll:kwe,mutationObserver:Awe,patch:Rwe};function j$(t){return t.nodeType===t.ELEMENT_NODE}function kh(t){const e=t&&"host"in t&&"mode"in t&&yr.host(t)||null;return!!(e&&"shadowRoot"in e&&yr.shadowRoot(e)===t)}function Ah(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function Iwe(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function Twe(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const n=["@import",`url(${JSON.stringify(t.href)})`];return t.layerName===""?n.push("layer"):t.layerName&&n.push(`layer(${t.layerName})`),t.supportsText&&n.push(`supports(${t.supportsText})`),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}function B3(t){try{const e=t.rules||t.cssRules;if(!e)return null;let n=t.href;!n&&t.ownerNode&&(n=t.ownerNode.baseURI);const r=Array.from(e,a=>z$(a,n)).join("");return Iwe(r)}catch{return null}}function z$(t,e){if(Nwe(t)){let n;try{n=B3(t.styleSheet)||Twe(t)}catch{n=t.cssText}return t.styleSheet.href?x1(n,t.styleSheet.href):n}else{let n=t.cssText;return Mwe(t)&&t.selectorText.includes(":")&&(n=Owe(n)),e?x1(n,e):n}}function Owe(t){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}function Nwe(t){return"styleSheet"in t}function Mwe(t){return"selectorText"in t}class F${constructor(){FP(this,"idNodeMap",new Map),FP(this,"nodeMetaMap",new WeakMap)}getId(e){var n;return e?((n=this.getMeta(e))==null?void 0:n.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const n=this.getId(e);this.idNodeMap.delete(n),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,n){const r=n.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,n)}replace(e,n){const r=this.getNode(e);if(r){const a=this.nodeMetaMap.get(r);a&&this.nodeMetaMap.set(n,a)}this.idNodeMap.set(e,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Pwe(){return new F$}function S1({element:t,maskInputOptions:e,tagName:n,type:r,value:a,maskInputFn:s}){let i=a||"";const u=r&&ru(r);return(e[n.toLowerCase()]||u&&e[u])&&(s?i=s(i,t):i="*".repeat(i.length)),i}function ru(t){return t.toLowerCase()}const HP="__rrweb_original__";function Lwe(t){const e=t.getContext("2d");if(!e)return!0;const n=50;for(let r=0;r<t.width;r+=n)for(let a=0;a<t.height;a+=n){const s=e.getImageData,i=HP in s?s[HP]:s;if(new Uint32Array(i.call(e,r,a,Math.min(n,t.width-r),Math.min(n,t.height-a)).data.buffer).some(c=>c!==0))return!1}return!0}function w1(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?ru(e):null}function $$(t,e){let n;try{n=new URL(t,e??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,a=n.pathname.match(r);return a?.[1]??null}function Dwe(t){let e="";return t.indexOf("//")>-1?e=t.split("/").slice(0,3).join("/"):e=t.split("/")[0],e=e.split("?")[0],e}const Uwe=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,jwe=/^(?:[a-z+]+:)?\/\//i,zwe=/^www\..*/i,Fwe=/^(data:)([^,]*),(.*)/i;function x1(t,e){return(t||"").replace(Uwe,(n,r,a,s,i,u)=>{const c=a||i||u,f=r||s||"";if(!c)return n;if(jwe.test(c)||zwe.test(c))return`url(${f}${c}${f})`;if(Fwe.test(c))return`url(${f}${c}${f})`;if(c[0]==="/")return`url(${f}${Dwe(e)+c}${f})`;const h=e.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 Og(t,e=!1){return e?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function $we(t,e,n=!1){const r=Array.from(e.childNodes),a=[];let s=0;if(r.length>1&&t&&typeof t=="string"){let i=Og(t,n);const u=i.length/t.length;for(let c=1;c<r.length;c++)if(r[c].textContent&&typeof r[c].textContent=="string"){const f=Og(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(t),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=Og(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<t.length;){if(s+=1,s>50*r.length)return a.push(t),a;const x=Og(t.substring(0,w),n);if(x.length===S){a.push(t.substring(0,w)),t=t.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(t),a}function Bwe(t,e){return $we(t,e).join("/* rr_split */")}let Hwe=1;const qwe=new RegExp("[^a-z0-9-_:]"),ep=-2;function B$(){return Hwe++}function Wwe(t){if(t instanceof HTMLFormElement)return"form";const e=ru(t.tagName);return qwe.test(e)?"div":e}let bc,qP;const Vwe=/^[^ \t\n\r\u000c]+/,Gwe=/^[, \t\n\r\u000c]+/;function Kwe(t,e){if(e.trim()==="")return e;let n=0;function r(s){let i;const u=s.exec(e.substring(n));return u?(i=u[0],n+=i.length,i):""}const a=[];for(;r(Gwe),!(n>=e.length);){let s=r(Vwe);if(s.slice(-1)===",")s=zc(t,s.substring(0,s.length-1)),a.push(s);else{let i="";s=zc(t,s);let u=!1;for(;;){const c=e.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 WP=new WeakMap;function zc(t,e){return!e||e.trim()===""?e:YA(t,e)}function Ywe(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function YA(t,e){let n=WP.get(t);if(n||(n=t.createElement("a"),WP.set(t,n)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return n.setAttribute("href",e),n.href}function H$(t,e,n,r){return r&&(n==="src"||n==="href"&&!(e==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&["table","td","th"].includes(e)?zc(t,r):n==="srcset"?Kwe(t,r):n==="style"?x1(r,YA(t)):e==="object"&&n==="data"?zc(t,r):r)}function q$(t,e,n){return["video","audio"].includes(t)&&e==="autoplay"}function Zwe(t,e,n){try{if(typeof e=="string"){if(t.classList.contains(e))return!0}else for(let r=t.classList.length;r--;){const a=t.classList[r];if(e.test(a))return!0}if(n)return t.matches(n)}catch{}return!1}function C1(t,e,n){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return n?C1(yr.parentNode(t),e,n):!1;for(let r=t.classList.length;r--;){const a=t.classList[r];if(e.test(a))return!0}return n?C1(yr.parentNode(t),e,n):!1}function W$(t,e,n,r){let a;if(j$(t)){if(a=t,!yr.childNodes(a).length)return!1}else{if(yr.parentElement(t)===null)return!1;a=yr.parentElement(t)}try{if(typeof e=="string"){if(r){if(a.closest(`.${e}`))return!0}else if(a.classList.contains(e))return!0}else if(C1(a,e,r))return!0;if(n){if(r){if(a.closest(n))return!0}else if(a.matches(n))return!0}}catch{}return!1}function Xwe(t,e,n){const r=t.contentWindow;if(!r)return;let a=!1,s;try{s=r.document.readyState}catch{return}if(s!=="complete"){const u=setTimeout(()=>{a||(e(),a=!0)},n);t.addEventListener("load",()=>{clearTimeout(u),a=!0,e()});return}const i="about:blank";if(r.location.href!==i||t.src===i||t.src==="")return setTimeout(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}function Qwe(t,e,n){let r=!1,a;try{a=t.sheet}catch{return}if(a)return;const s=setTimeout(()=>{r||(e(),r=!0)},n);t.addEventListener("load",()=>{clearTimeout(s),r=!0,e()})}function Jwe(t,e){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}=e,E=exe(n,r);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:zn.Document,childNodes:[],compatMode:t.compatMode}:{type:zn.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:zn.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:E};case t.ELEMENT_NODE:return nxe(t,{doc:n,blockClass:a,blockSelector:s,inlineStylesheet:u,maskInputOptions:c,maskInputFn:h,dataURLOptions:m,inlineImages:g,recordCanvas:y,keepIframeSrcFn:S,newlyAddedElement:w,rootId:E});case t.TEXT_NODE:return txe(t,{doc:n,needsMask:i,maskTextFn:f,rootId:E,cssCaptured:x});case t.CDATA_SECTION_NODE:return{type:zn.CDATA,textContent:"",rootId:E};case t.COMMENT_NODE:return{type:zn.Comment,textContent:yr.textContent(t)||"",rootId:E};default:return!1}}function exe(t,e){if(!e.hasNode(t))return;const n=e.getId(t);return n===1?void 0:n}function txe(t,e){const{needsMask:n,maskTextFn:r,rootId:a,cssCaptured:s}=e,i=yr.parentNode(t),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=yr.textContent(t),f&&c&&(c=x1(c,YA(e.doc)))),!f&&!h&&c&&n&&(c=r?r(c,yr.parentElement(t)):c.replace(/[\S]/g,"*")),{type:zn.Text,textContent:c||"",rootId:a}}function nxe(t,e){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}=e,S=Zwe(t,r,a),w=Wwe(t);let x={};const E=t.attributes.length;for(let k=0;k<E;k++){const I=t.attributes[k];q$(w,I.name,I.value)||(x[I.name]=H$(n,w,ru(I.name),I.value))}if(w==="link"&&s){const k=Array.from(n.styleSheets).find(N=>N.href===t.href);let I=null;k&&(I=B3(k)),I&&(delete x.rel,delete x.href,x._cssText=I)}if(w==="style"&&t.sheet){let k=B3(t.sheet);k&&(t.childNodes.length>1&&(k=Bwe(k,t)),x._cssText=k)}if(["input","textarea","select"].includes(w)){const k=t.value,I=t.checked;x.type!=="radio"&&x.type!=="checkbox"&&x.type!=="submit"&&x.type!=="button"&&k?x.value=S1({element:t,type:w1(t),tagName:w,value:k,maskInputOptions:i,maskInputFn:u}):I&&(x.checked=I)}if(w==="option"&&(t.selected&&!i.select?x.selected=!0:delete x.selected),w==="dialog"&&t.open&&(x.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),w==="canvas"&&h){if(t.__context==="2d")Lwe(t)||(x.rr_dataURL=t.toDataURL(c.type,c.quality));else if(!("__context"in t)){const k=t.toDataURL(c.type,c.quality),I=n.createElement("canvas");I.width=t.width,I.height=t.height;const N=I.toDataURL(c.type,c.quality);k!==N&&(x.rr_dataURL=k)}}if(w==="img"&&f){bc||(bc=n.createElement("canvas"),qP=bc.getContext("2d"));const k=t,I=k.currentSrc||k.getAttribute("src")||"<unknown-src>",N=k.crossOrigin,O=()=>{k.removeEventListener("load",O);try{bc.width=k.naturalWidth,bc.height=k.naturalHeight,qP.drawImage(k,0,0),x.rr_dataURL=bc.toDataURL(c.type,c.quality)}catch(T){if(k.crossOrigin!=="anonymous"){k.crossOrigin="anonymous",k.complete&&k.naturalWidth!==0?O():k.addEventListener("load",O);return}else console.warn(`Cannot inline img src=${I}! Error: ${T}`)}k.crossOrigin==="anonymous"&&(N?x.crossOrigin=N:k.removeAttribute("crossorigin"))};k.complete&&k.naturalWidth!==0?O():k.addEventListener("load",O)}if(["audio","video"].includes(w)){const k=x;k.rr_mediaState=t.paused?"paused":"played",k.rr_mediaCurrentTime=t.currentTime,k.rr_mediaPlaybackRate=t.playbackRate,k.rr_mediaMuted=t.muted,k.rr_mediaLoop=t.loop,k.rr_mediaVolume=t.volume}if(g||(t.scrollLeft&&(x.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(x.rr_scrollTop=t.scrollTop)),S){const{width:k,height:I}=t.getBoundingClientRect();x={class:x.class,rr_width:`${k}px`,rr_height:`${I}px`}}w==="iframe"&&!m(x.src)&&(t.contentDocument||(x.rr_src=x.src),delete x.src);let A;try{customElements.get(w)&&(A=!0)}catch{}return{type:zn.Element,tagName:w,attributes:x,childNodes:[],isSVG:Ywe(t)||void 0,needBlock:S,rootId:y,isCustom:A}}function Jt(t){return t==null?"":t.toLowerCase()}function V$(t){return t===!0||t==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:t==="all",headMetaDescKeywords:t==="all",headTitleMutations:t==="all"}:t||{}}function rxe(t,e){if(e.comment&&t.type===zn.Comment)return!0;if(t.type===zn.Element){if(e.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"&&t.attributes.as==="script"||t.attributes.rel==="modulepreload")||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&$$(t.attributes.href)==="js"))return!0;if(e.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(Jt(t.attributes.name).match(/^msapplication-tile(image|color)$/)||Jt(t.attributes.name)==="application-name"||Jt(t.attributes.rel)==="icon"||Jt(t.attributes.rel)==="apple-touch-icon"||Jt(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(e.headMetaDescKeywords&&Jt(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(Jt(t.attributes.property).match(/^(og|twitter|fb):/)||Jt(t.attributes.name).match(/^(og|twitter):/)||Jt(t.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(Jt(t.attributes.name)==="robots"||Jt(t.attributes.name)==="googlebot"||Jt(t.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(Jt(t.attributes.name)==="author"||Jt(t.attributes.name)==="generator"||Jt(t.attributes.name)==="framework"||Jt(t.attributes.name)==="publisher"||Jt(t.attributes.name)==="progid"||Jt(t.attributes.property).match(/^article:/)||Jt(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(Jt(t.attributes.name)==="google-site-verification"||Jt(t.attributes.name)==="yandex-verification"||Jt(t.attributes.name)==="csrf-token"||Jt(t.attributes.name)==="p:domain_verify"||Jt(t.attributes.name)==="verify-v1"||Jt(t.attributes.name)==="verification"||Jt(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Fc(t,e){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:E,onIframeLoad:A,iframeLoadTimeout:k=5e3,onStylesheetLoad:I,stylesheetLoadTimeout:N=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:T=!1,cssCaptured:P=!1}=e;let{needsMask:D}=e,{preserveWhiteSpace:q=!0}=e;D||(D=W$(t,i,u,D===void 0));const U=Jwe(t,{doc:n,mirror:r,blockClass:a,blockSelector:s,needsMask:D,inlineStylesheet:f,maskInputOptions:h,maskTextFn:m,maskInputFn:g,dataURLOptions:S,inlineImages:w,recordCanvas:x,keepIframeSrcFn:O,newlyAddedElement:T,cssCaptured:P});if(!U)return console.warn(t,"not serialized"),null;let j;r.hasNode(t)?j=r.getId(t):rxe(U,y)||!q&&U.type===zn.Text&&!U.textContent.replace(/^\s+|\s+$/gm,"").length?j=ep:j=B$();const $=Object.assign(U,{id:j});if(r.add(t,$),j===ep)return null;E&&E(t);let Z=!c;if($.type===zn.Element){Z=Z&&!$.needBlock,delete $.needBlock;const H=yr.shadowRoot(t);H&&Ah(H)&&($.isShadowHost=!0)}if(($.type===zn.Document||$.type===zn.Element)&&Z){y.headWhitespace&&$.type===zn.Element&&$.tagName==="head"&&(q=!1);const H={doc:n,mirror:r,blockClass:a,blockSelector:s,needsMask:D,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:E,onIframeLoad:A,iframeLoadTimeout:k,onStylesheetLoad:I,stylesheetLoadTimeout:N,keepIframeSrcFn:O,cssCaptured:!1};if(!($.type===zn.Element&&$.tagName==="textarea"&&$.attributes.value!==void 0)){$.type===zn.Element&&$.attributes._cssText!==void 0&&typeof $.attributes._cssText=="string"&&(H.cssCaptured=!0);for(const ae of Array.from(yr.childNodes(t))){const he=Fc(ae,H);he&&$.childNodes.push(he)}}let X=null;if(j$(t)&&(X=yr.shadowRoot(t)))for(const ae of Array.from(yr.childNodes(X))){const he=Fc(ae,H);he&&(Ah(X)&&(he.isShadow=!0),$.childNodes.push(he))}}const ne=yr.parentNode(t);return ne&&kh(ne)&&Ah(ne)&&($.isShadow=!0),$.type===zn.Element&&$.tagName==="iframe"&&Xwe(t,()=>{const H=t.contentDocument;if(H&&A){const X=Fc(H,{doc:H,mirror:r,blockClass:a,blockSelector:s,needsMask:D,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:E,onIframeLoad:A,iframeLoadTimeout:k,onStylesheetLoad:I,stylesheetLoadTimeout:N,keepIframeSrcFn:O});X&&A(t,X)}},k),$.type===zn.Element&&$.tagName==="link"&&typeof $.attributes.rel=="string"&&($.attributes.rel==="stylesheet"||$.attributes.rel==="preload"&&typeof $.attributes.href=="string"&&$$($.attributes.href)==="css")&&Qwe(t,()=>{if(I){const H=Fc(t,{doc:n,mirror:r,blockClass:a,blockSelector:s,needsMask:D,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:E,onIframeLoad:A,iframeLoadTimeout:k,onStylesheetLoad:I,stylesheetLoadTimeout:N,keepIframeSrcFn:O});H&&I(t,H)}},N),$}function axe(t,e){const{mirror:n=new F$,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:E,iframeLoadTimeout:A,onStylesheetLoad:k,stylesheetLoadTimeout:I,keepIframeSrcFn:N=()=>!1}=e||{},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=V$(y);return Fc(t,{doc:t,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:E,iframeLoadTimeout:A,onStylesheetLoad:k,stylesheetLoadTimeout:I,keepIframeSrcFn:N,newlyAddedElement:!1})}function sxe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function oxe(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var ZA={exports:{}},on=String,G$=function(){return{isColorSupported:!1,reset:on,bold:on,dim:on,italic:on,underline:on,inverse:on,hidden:on,strikethrough:on,black:on,red:on,green:on,yellow:on,blue:on,magenta:on,cyan:on,white:on,gray:on,bgBlack:on,bgRed:on,bgGreen:on,bgYellow:on,bgBlue:on,bgMagenta:on,bgCyan:on,bgWhite:on}};ZA.exports=G$();ZA.exports.createColors=G$;var ixe=ZA.exports;const lxe={},uxe=Object.freeze(Object.defineProperty({__proto__:null,default:lxe},Symbol.toStringTag,{value:"Module"})),ts=oxe(uxe);let VP=ixe,GP=ts,H3=class K$ extends Error{constructor(e,n,r,a,s,i){super(e),this.name="CssSyntaxError",this.reason=e,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,K$)}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(e){if(!this.source)return"";let n=this.source;e==null&&(e=VP.isColorSupported),GP&&e&&(n=GP(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(e){let{bold:f,gray:h,red:m}=VP.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 e=this.showSourceCode();return e&&(e=`
244
+
245
+ `+e+`
246
+ `),this.name+": "+this.message+e}};var XA=H3;H3.default=H3;var Tp={};Tp.isClean=Symbol("isClean");Tp.my=Symbol("my");const KP={after:`
247
+ `,beforeClose:`
248
+ `,beforeComment:`
249
+ `,beforeDecl:`
250
+ `,beforeOpen:" ",beforeRule:`
251
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function cxe(t){return t[0].toUpperCase()+t.slice(1)}let q3=class{constructor(e){this.builder=e}atrule(e,n){let r="@"+e.name,a=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:a&&(r+=" "),e.nodes)this.block(e,r+a);else{let s=(e.raws.between||"")+(n?";":"");this.builder(r+a+s,e)}}beforeAfter(e,n){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):n==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let a=e.parent,s=0;for(;a&&a.type!=="root";)s+=1,a=a.parent;if(r.includes(`
252
+ `)){let i=this.raw(e,null,"indent");if(i.length)for(let u=0;u<s;u++)r+=i}return r}block(e,n){let r=this.raw(e,"between","beforeOpen");this.builder(n+r+"{",e,"start");let a;e.nodes&&e.nodes.length?(this.body(e),a=this.raw(e,"after")):a=this.raw(e,"after","emptyBody"),a&&this.builder(a),this.builder("}",e,"end")}body(e){let n=e.nodes.length-1;for(;n>0&&e.nodes[n].type==="comment";)n-=1;let r=this.raw(e,"semicolon");for(let a=0;a<e.nodes.length;a++){let s=e.nodes[a],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,n!==a||r)}}comment(e){let n=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+n+e.text+r+"*/",e)}decl(e,n){let r=this.raw(e,"between","colon"),a=e.prop+r+this.rawValue(e,"value");e.important&&(a+=e.raws.important||" !important"),n&&(a+=";"),this.builder(a,e)}document(e){this.body(e)}raw(e,n,r){let a;if(r||(r=n),n&&(a=e.raws[n],typeof a<"u"))return a;let s=e.parent;if(r==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return KP[r];let i=e.root();if(i.rawCache||(i.rawCache={}),typeof i.rawCache[r]<"u")return i.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let u="raw"+cxe(r);this[u]?a=this[u](i,e):i.walk(c=>{if(a=c.raws[n],typeof a<"u")return!1})}return typeof a>"u"&&(a=KP[r]),i.rawCache[r]=a,a}rawBeforeClose(e){let n;return e.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(e,n){let r;return e.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(e,n){let r;return e.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(e){let n;return e.walk(r=>{if(r.type!=="decl"&&(n=r.raws.between,typeof n<"u"))return!1}),n}rawBeforeRule(e){let n;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.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(e){let n;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return n=r.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(n=r.raws.after,typeof n<"u"))return!1}),n}rawIndent(e){if(e.raws.indent)return e.raws.indent;let n;return e.walk(r=>{let a=r.parent;if(a&&a!==e&&a.parent&&a.parent===e&&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(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(n=r.raws.semicolon,typeof n<"u"))return!1}),n}rawValue(e,n){let r=e[n],a=e.raws[n];return a&&a.value===r?a.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,n){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,n)}};var Y$=q3;q3.default=q3;let dxe=Y$;function W3(t,e){new dxe(e).stringify(t)}var ey=W3;W3.default=W3;let{isClean:Ng,my:fxe}=Tp,hxe=XA,pxe=Y$,mxe=ey;function V3(t,e){let n=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let a=t[r],s=typeof a;r==="parent"&&s==="object"?e&&(n[r]=e):r==="source"?n[r]=a:Array.isArray(a)?n[r]=a.map(i=>V3(i,n)):(s==="object"&&a!==null&&(a=V3(a)),n[r]=a)}return n}let G3=class{constructor(e={}){this.raws={},this[Ng]=!1,this[fxe]=!0;for(let n in e)if(n==="nodes"){this.nodes=[];for(let r of e[n])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[n]=e[n]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let n=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let n in e)this[n]=e[n];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let n=V3(this);for(let r in e)n[r]=e[r];return n}cloneAfter(e={}){let n=this.clone(e);return this.parent.insertAfter(this,n),n}cloneBefore(e={}){let n=this.clone(e);return this.parent.insertBefore(this,n),n}error(e,n={}){if(this.source){let{end:r,start:a}=this.rangeBy(n);return this.source.input.error(e,{column:a.column,line:a.line},{column:r.column,line:r.line},n)}return new hxe(e)}getProxyProcessor(){return{get(e,n){return n==="proxyOf"?e:n==="root"?()=>e.root().toProxy():e[n]},set(e,n,r){return e[n]===r||(e[n]=r,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Ng]){this[Ng]=!1;let e=this;for(;e=e.parent;)e[Ng]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,n){let r=this.source.start;if(e.index)r=this.positionInside(e.index,n);else if(e.word){n=this.toString();let a=n.indexOf(e.word);a!==-1&&(r=this.positionInside(a,n))}return r}positionInside(e,n){let r=n||this.toString(),a=this.source.start.column,s=this.source.start.line;for(let i=0;i<e;i++)r[i]===`
258
+ `?(a=1,s+=1):a+=1;return{column:a,line:s}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){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(e.word){let a=this.toString(),s=a.indexOf(e.word);s!==-1&&(n=this.positionInside(s,a),r=this.positionInside(s+e.word.length,a))}else e.start?n={column:e.start.column,line:e.start.line}:e.index&&(n=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.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(e,n){return new pxe().raw(this,e,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let n=this,r=!1;for(let a of e)a===this?r=!0:r?(this.parent.insertAfter(n,a),n=a):this.parent.insertBefore(n,a);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,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(e=mxe){e.stringify&&(e=e.stringify);let n="";return e(this,r=>{n+=r}),n}warn(e,n,r){let a={node:this};for(let s in r)a[s]=r[s];return e.warn(n,a)}get proxyOf(){return this}};var ty=G3;G3.default=G3;let gxe=ty,K3=class extends gxe{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var ny=K3;K3.default=K3;let vxe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",yxe=(t=21)=>{let e="",n=t;for(;n--;)e+=vxe[Math.random()*64|0];return e};var bxe={nanoid:yxe};let{SourceMapConsumer:YP,SourceMapGenerator:ZP}=ts,{existsSync:Sxe,readFileSync:wxe}=ts,{dirname:sE,join:xxe}=ts;function Cxe(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let Y3=class{constructor(e,n){if(n.map===!1)return;this.loadAnnotation(e),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 YP(this.text)),this.consumerCache}decodeInline(e){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(e)||s.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(n.test(e)||r.test(e))return Cxe(e.substr(RegExp.lastMatch.length));let i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let n=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!n)return;let r=e.lastIndexOf(n.pop()),a=e.indexOf("*/",r);r>-1&&a>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,a)))}loadFile(e){if(this.root=sE(e),Sxe(e))return this.mapFile=e,wxe(e,"utf-8").toString().trim()}loadMap(e,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let r=n(e);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 YP)return ZP.fromSourceMap(n).toString();if(n instanceof ZP)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 e&&(r=xxe(sE(e),r)),this.loadFile(r)}}}startWith(e,n){return e?e.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Z$=Y3;Y3.default=Y3;let{SourceMapConsumer:Exe,SourceMapGenerator:_xe}=ts,{fileURLToPath:XP,pathToFileURL:Mg}=ts,{isAbsolute:Z3,resolve:X3}=ts,{nanoid:kxe}=bxe,oE=ts,QP=XA,Axe=Z$,iE=Symbol("fromOffsetCache"),Rxe=!!(Exe&&_xe),JP=!!(X3&&Z3),E1=class{constructor(e,n={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!JP||/^\w+:\/\//.test(n.from)||Z3(n.from)?this.file=n.from:this.file=X3(n.from)),JP&&Rxe){let r=new Axe(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 "+kxe(6)+">"),this.map&&(this.map.file=this.from)}error(e,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 QP(e,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 QP(e,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&&(Mg&&(s.input.url=Mg(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let n,r;if(this[iE])r=this[iE];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[iE]=r}n=r[r.length-1];let a=0;if(e>=n)a=r.length-1;else{let s=r.length-2,i;for(;a<s;)if(i=a+(s-a>>1),e<r[i])s=i-1;else if(e>=r[i+1])a=i+1;else{a=i;break}}return{col:e-r[a]+1,line:a+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:X3(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,n,r,a){if(!this.map)return!1;let s=this.map.consumer(),i=s.originalPositionFor({column:n,line:e});if(!i.source)return!1;let u;typeof r=="number"&&(u=s.originalPositionFor({column:a,line:r}));let c;Z3(i.source)?c=Mg(i.source):c=new URL(i.source,this.map.consumer().sourceRoot||Mg(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(XP)f.file=XP(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 e={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(e[n]=this[n]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var ry=E1;E1.default=E1;oE&&oE.registerInput&&oE.registerInput(E1);let{SourceMapConsumer:X$,SourceMapGenerator:R0}=ts,{dirname:I0,relative:Q$,resolve:J$,sep:eB}=ts,{pathToFileURL:e9}=ts,Ixe=ry,Txe=!!(X$&&R0),Oxe=!!(I0&&J$&&Q$&&eB),Nxe=class{constructor(e,n,r,a){this.stringify=e,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 e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let n=`
260
+ `;this.css.includes(`\r
261
+ `)&&(n=`\r
262
+ `),this.css+=n+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let n=this.toUrl(this.path(e.file)),r=e.root||I0(e.file),a;this.mapOpts.sourcesContent===!1?(a=new X$(e.text),a.sourcesContent&&(a.sourcesContent=null)):a=e.consumer(),this.map.applySourceMap(a,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let n=this.root.nodes.length-1;n>=0;n--)e=this.root.nodes[n],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Oxe&&Txe&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,n=>{e+=n}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=R0.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new R0({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 R0({file:this.outputFile(),ignoreInvalidMapping:!0});let e=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=e,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?(e+=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=e,a.generated.column=n-2,this.map.addMapping(a)):(a.source=r,a.original.line=1,a.original.column=0,a.generated.line=e,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(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!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(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let n=this.memoizedPaths.get(e);if(n)return n;let r=this.opts.to?I0(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=I0(J$(r,this.mapOpts.annotation)));let a=Q$(r,e);return this.memoizedPaths.set(e,a),a}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let n=e.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let e=new Ixe(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(n=>{if(n.source){let r=n.source.input.from;if(r&&!e[r]){e[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(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let n=this.memoizedFileURLs.get(e);if(n)return n;if(e9){let r=e9(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let n=this.memoizedURLs.get(e);if(n)return n;eB==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var tB=Nxe;let Mxe=ty,Q3=class extends Mxe{constructor(e){super(e),this.type="comment"}};var ay=Q3;Q3.default=Q3;let{isClean:nB,my:rB}=Tp,aB=ny,sB=ay,Pxe=ty,oB,QA,JA,iB;function lB(t){return t.map(e=>(e.nodes&&(e.nodes=lB(e.nodes)),delete e.source,e))}function uB(t){if(t[nB]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)uB(e)}let Ao=class cB extends Pxe{append(...e){for(let n of e){let r=this.normalize(n,this.last);for(let a of r)this.proxyOf.nodes.push(a)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let n of this.nodes)n.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let n=this.getIterator(),r,a;for(;this.indexes[n]<this.proxyOf.nodes.length&&(r=this.indexes[n],a=e(this.proxyOf.nodes[r],r),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,n){return n==="proxyOf"?e:e[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?(...r)=>e[n](...r.map(a=>typeof a=="function"?(s,i)=>a(s.toProxy(),i):a)):n==="every"||n==="some"?r=>e[n]((a,...s)=>r(a.toProxy(),...s)):n==="root"?()=>e.root().toProxy():n==="nodes"?e.nodes.map(r=>r.toProxy()):n==="first"||n==="last"?e[n].toProxy():e[n]:e[n]},set(e,n,r){return e[n]===r||(e[n]=r,(n==="name"||n==="params"||n==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,n){let r=this.index(e),a=this.normalize(n,this.proxyOf.nodes[r]).reverse();r=this.index(e);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(e,n){let r=this.index(e),a=r===0?"prepend":!1,s=this.normalize(n,this.proxyOf.nodes[r],a).reverse();r=this.index(e);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(e,n){if(typeof e=="string")e=lB(oB(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let a of e)a.parent&&a.parent.removeChild(a,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let a of e)a.parent&&a.parent.removeChild(a,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new aB(e)]}else if(e.selector)e=[new QA(e)];else if(e.name)e=[new JA(e)];else if(e.text)e=[new sB(e)];else throw new Error("Unknown node type in node creation");return e.map(a=>(a[rB]||cB.rebuild(a),a=a.proxyOf,a.parent&&a.parent.removeChild(a),a[nB]&&uB(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(...e){e=e.reverse();for(let n of e){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(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let n;for(let r in this.indexes)n=this.indexes[r],n>=e&&(this.indexes[r]=n-1);return this.markDirty(),this}replaceValues(e,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(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((n,r)=>{let a;try{a=e(n,r)}catch(s){throw n.addToError(s)}return a!==!1&&n.walk&&(a=n.walk(e)),a})}walkAtRules(e,n){return n?e instanceof RegExp?this.walk((r,a)=>{if(r.type==="atrule"&&e.test(r.name))return n(r,a)}):this.walk((r,a)=>{if(r.type==="atrule"&&r.name===e)return n(r,a)}):(n=e,this.walk((r,a)=>{if(r.type==="atrule")return n(r,a)}))}walkComments(e){return this.walk((n,r)=>{if(n.type==="comment")return e(n,r)})}walkDecls(e,n){return n?e instanceof RegExp?this.walk((r,a)=>{if(r.type==="decl"&&e.test(r.prop))return n(r,a)}):this.walk((r,a)=>{if(r.type==="decl"&&r.prop===e)return n(r,a)}):(n=e,this.walk((r,a)=>{if(r.type==="decl")return n(r,a)}))}walkRules(e,n){return n?e instanceof RegExp?this.walk((r,a)=>{if(r.type==="rule"&&e.test(r.selector))return n(r,a)}):this.walk((r,a)=>{if(r.type==="rule"&&r.selector===e)return n(r,a)}):(n=e,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]}};Ao.registerParse=t=>{oB=t};Ao.registerRule=t=>{QA=t};Ao.registerAtRule=t=>{JA=t};Ao.registerRoot=t=>{iB=t};var yu=Ao;Ao.default=Ao;Ao.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,JA.prototype):t.type==="rule"?Object.setPrototypeOf(t,QA.prototype):t.type==="decl"?Object.setPrototypeOf(t,aB.prototype):t.type==="comment"?Object.setPrototypeOf(t,sB.prototype):t.type==="root"&&Object.setPrototypeOf(t,iB.prototype),t[rB]=!0,t.nodes&&t.nodes.forEach(e=>{Ao.rebuild(e)})};let Lxe=yu,dB,fB,tp=class extends Lxe{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new dB(new fB,this,e).stringify()}};tp.registerLazyResult=t=>{dB=t};tp.registerProcessor=t=>{fB=t};var eR=tp;tp.default=tp;let J3=class{constructor(e,n={}){if(this.type="warning",this.text=e,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 hB=J3;J3.default=J3;let Dxe=hB,e_=class{constructor(e,n,r){this.processor=e,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new Dxe(e,n);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var tR=e_;e_.default=e_;const lE=39,t9=34,Pg=92,n9=47,Lg=10,Xf=32,Dg=12,Ug=9,jg=13,Uxe=91,jxe=93,zxe=40,Fxe=41,$xe=123,Bxe=125,Hxe=59,qxe=42,Wxe=58,Vxe=64,zg=/[\t\n\f\r "#'()/;[\\\]{}]/g,Fg=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Gxe=/.[\r\n"'(/\\]/,r9=/[\da-f]/i;var Kxe=function(e,n={}){let r=e.css.valueOf(),a=n.ignoreErrors,s,i,u,c,f,h,m,g,y,S,w=r.length,x=0,E=[],A=[];function k(){return x}function I(P){throw e.error("Unclosed "+P,x)}function N(){return A.length===0&&x>=w}function O(P){if(A.length)return A.pop();if(x>=w)return;let D=P?P.ignoreUnclosed:!1;switch(s=r.charCodeAt(x),s){case Lg:case Xf:case Ug:case jg:case Dg:{i=x;do i+=1,s=r.charCodeAt(i);while(s===Xf||s===Lg||s===Ug||s===jg||s===Dg);S=["space",r.slice(x,i)],x=i-1;break}case Uxe:case jxe:case $xe:case Bxe:case Wxe:case Hxe:case Fxe:{let q=String.fromCharCode(s);S=[q,q,x];break}case zxe:{if(g=E.length?E.pop()[1]:"",y=r.charCodeAt(x+1),g==="url"&&y!==lE&&y!==t9&&y!==Xf&&y!==Lg&&y!==Ug&&y!==Dg&&y!==jg){i=x;do{if(h=!1,i=r.indexOf(")",i+1),i===-1)if(a||D){i=x;break}else I("bracket");for(m=i;r.charCodeAt(m-1)===Pg;)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||Gxe.test(c)?S=["(","(",x]:(S=["brackets",c,x,i],x=i);break}case lE:case t9:{u=s===lE?"'":'"',i=x;do{if(h=!1,i=r.indexOf(u,i+1),i===-1)if(a||D){i=x+1;break}else I("string");for(m=i;r.charCodeAt(m-1)===Pg;)m-=1,h=!h}while(h);S=["string",r.slice(x,i+1),x,i],x=i;break}case Vxe:{zg.lastIndex=x+1,zg.test(r),zg.lastIndex===0?i=r.length-1:i=zg.lastIndex-2,S=["at-word",r.slice(x,i+1),x,i],x=i;break}case Pg:{for(i=x,f=!0;r.charCodeAt(i+1)===Pg;)i+=1,f=!f;if(s=r.charCodeAt(i+1),f&&s!==n9&&s!==Xf&&s!==Lg&&s!==Ug&&s!==jg&&s!==Dg&&(i+=1,r9.test(r.charAt(i)))){for(;r9.test(r.charAt(i+1));)i+=1;r.charCodeAt(i+1)===Xf&&(i+=1)}S=["word",r.slice(x,i+1),x,i],x=i;break}default:{s===n9&&r.charCodeAt(x+1)===qxe?(i=r.indexOf("*/",x+2)+1,i===0&&(a||D?i=r.length:I("comment")),S=["comment",r.slice(x,i+1),x,i],x=i):(Fg.lastIndex=x+1,Fg.test(r),Fg.lastIndex===0?i=r.length-1:i=Fg.lastIndex-2,S=["word",r.slice(x,i+1),x,i],E.push(S),x=i);break}}return x++,S}function T(P){A.push(P)}return{back:T,endOfFile:N,nextToken:O,position:k}};let pB=yu,_1=class extends pB{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var nR=_1;_1.default=_1;pB.registerAtRule(_1);let mB=yu,gB,vB,sd=class extends mB{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,n,r){let a=super.normalize(e);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(e,n){let r=this.index(e);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new gB(new vB,this,e).stringify()}};sd.registerLazyResult=t=>{gB=t};sd.registerProcessor=t=>{vB=t};var Op=sd;sd.default=sd;mB.registerRoot(sd);let np={comma(t){return np.split(t,[","],!0)},space(t){let e=[" ",`
264
+ `," "];return np.split(t,e)},split(t,e,n){let r=[],a="",s=!1,i=0,u=!1,c="",f=!1;for(let h of t)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&&e.includes(h)&&(s=!0),s?(a!==""&&r.push(a.trim()),a="",s=!1):a+=h;return(n||a!=="")&&r.push(a.trim()),r}};var yB=np;np.default=np;let bB=yu,Yxe=yB,k1=class extends bB{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Yxe.comma(this.selector)}set selectors(e){let n=this.selector?this.selector.match(/,\s*/):null,r=n?n[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var rR=k1;k1.default=k1;bB.registerRule(k1);let Zxe=ny,Xxe=Kxe,Qxe=ay,Jxe=nR,e2e=Op,a9=rR;const s9={empty:!0,space:!0};function t2e(t){for(let e=t.length-1;e>=0;e--){let n=t[e],r=n[3]||n[2];if(r)return r}}let n2e=class{constructor(e){this.input=e,this.root=new e2e,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let n=new Jxe;n.name=e[1].slice(1),n.name===""&&this.unnamedAtrule(n,e),this.init(n,e[2]);let r,a,s,i=!1,u=!1,c=[],f=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[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(e[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(e);break}else c.push(e);else c.push(e);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&&(e=c[c.length-1],n.source.end=this.getPosition(e[3]||e[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(e){let n=this.colon(e);if(n===!1)return;let r=0,a;for(let s=n-1;s>=0&&(a=e[s],!(a[0]!=="space"&&(r+=1,r===2)));s--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}colon(e){let n=0,r,a,s;for(let[i,u]of e.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(e){let n=new Qxe;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++;let r=e[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=Xxe(this.input)}decl(e,n){let r=new Zxe;this.init(r,e[0][2]);let a=e[e.length-1];for(a[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(a[3]||a[2]||t2e(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let f=e[0][0];if(f===":"||f==="space"||f==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let s;for(;e.length;)if(s=e.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(;e.length&&(u=e[0][0],!(u!=="space"&&u!=="comment"));)i.push(e.shift());this.precheckMissedSemicolon(e);for(let f=e.length-1;f>=0;f--){if(s=e[f],s[1].toLowerCase()==="!important"){r.important=!0;let h=this.stringFrom(e,f);h=this.spacesFromEnd(e)+h,h!==" !important"&&(r.raws.important=h);break}else if(s[1].toLowerCase()==="important"){let h=e.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,e=h)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(r.raws.between+=i.map(f=>f[1]).join(""),i=[]),this.raw(r,"value",i.concat(e),n),r.value.includes(":")&&!n&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let n=new a9;this.init(n,e[2]),n.selector="",n.raws.between="",this.current=n}end(e){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(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}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(e){if(this.spaces+=e[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(e){let n=this.input.fromOffset(e);return{column:n.col,line:n.line,offset:e}}init(e,n){this.current.push(e),e.source={input:this.input,start:this.getPosition(n)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let n=!1,r=null,a=!1,s=null,i=[],u=e[1].startsWith("--"),c=[],f=e;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 e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,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",!s9[m]&&!s9[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],"");e.raws[n]={raw:g,value:c}}e[n]=c}rule(e){e.pop();let n=new a9;this.init(n,e[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(n,"selector",e),this.current=n}spacesAndCommentsFromEnd(e){let n,r="";for(;e.length&&(n=e[e.length-1][0],!(n!=="space"&&n!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let n,r="";for(;e.length&&(n=e[0][0],!(n!=="space"&&n!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let n,r="";for(;e.length&&(n=e[e.length-1][0],n==="space");)r=e.pop()[1]+r;return r}stringFrom(e,n){let r="";for(let a=n;a<e.length;a++)r+=e[a][1];return e.splice(n,e.length-n),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})}};var r2e=n2e;let a2e=yu,s2e=r2e,o2e=ry;function A1(t,e){let n=new o2e(t,e),r=new s2e(n);try{r.parse()}catch(a){throw a}return r.root}var aR=A1;A1.default=A1;a2e.registerParse(A1);let{isClean:vs,my:i2e}=Tp,l2e=tB,u2e=ey,c2e=yu,d2e=eR,o9=tR,f2e=aR,h2e=Op;const p2e={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},m2e={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},g2e={Once:!0,postcssPlugin:!0,prepare:!0},od=0;function Qf(t){return typeof t=="object"&&typeof t.then=="function"}function SB(t){let e=!1,n=p2e[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[n,n+"-"+e,od,n+"Exit",n+"Exit-"+e]:e?[n,n+"-"+e,n+"Exit",n+"Exit-"+e]:t.append?[n,od,n+"Exit"]:[n,n+"Exit"]}function i9(t){let e;return t.type==="document"?e=["Document",od,"DocumentExit"]:t.type==="root"?e=["Root",od,"RootExit"]:e=SB(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function t_(t){return t[vs]=!1,t.nodes&&t.nodes.forEach(e=>t_(e)),t}let n_={},id=class wB{constructor(e,n,r){this.stringified=!1,this.processed=!1;let a;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))a=t_(n);else if(n instanceof wB||n instanceof o9)a=t_(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=f2e;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[i2e]&&c2e.rebuild(a)}this.result=new o9(e,a,r),this.helpers={...n_,postcss:n_,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(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,n){let r=this.result.lastPlugin;try{n&&n.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(a){console&&console.error&&console.error(a)}return e}prepareVisitors(){this.listeners={};let e=(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(!m2e[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!g2e[r])if(typeof n[r]=="object")for(let a in n[r])a==="*"?e(n,r,n[r][a]):e(n,r+"-"+a.toLowerCase(),n[r][a]);else typeof n[r]=="function"&&e(n,r,n[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let n=this.plugins[e],r=this.runOnRoot(n);if(Qf(r))try{await r}catch(a){throw this.handleError(a)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[vs];){e[vs]=!0;let n=[i9(e)];for(;n.length>0;){let r=this.visitTick(n);if(Qf(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(e.type==="document"){let a=e.nodes.map(s=>r(s,this.helpers));await Promise.all(a)}else await r(e,this.helpers)}catch(a){throw this.handleError(a)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return Qf(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(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 e=this.result.opts,n=u2e;e.syntax&&(n=e.syntax.stringify),e.stringifier&&(n=e.stringifier),n.stringify&&(n=n.stringify);let a=new l2e(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 e of this.plugins){let n=this.runOnRoot(e);if(Qf(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[vs];)e[vs]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let n of e.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,n){return this.async().then(e,n)}toString(){return this.css}visitSync(e,n){for(let[r,a]of e){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(Qf(s))throw this.getAsyncError()}}visitTick(e){let n=e[e.length-1],{node:r,visitors:a}=n;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.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[vs]){u[vs]=!0,e.push(i9(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===od){r.nodes&&r.nodes.length&&(r[vs]=!0,n.iterator=r.getIterator());return}else if(this.listeners[i]){n.visitors=this.listeners[i];return}}e.pop()}walkSync(e){e[vs]=!0;let n=SB(e);for(let r of n)if(r===od)e.nodes&&e.each(a=>{a[vs]||this.walkSync(a)});else{let a=this.listeners[r];if(a&&this.visitSync(a,e.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"}};id.registerPostcss=t=>{n_=t};var xB=id;id.default=id;h2e.registerLazyResult(id);d2e.registerLazyResult(id);let v2e=tB,y2e=ey,b2e=aR;const S2e=tR;let r_=class{constructor(e,n,r){n=n.toString(),this.stringified=!1,this._processor=e,this._css=n,this._opts=r,this._map=void 0;let a,s=y2e;this.result=new S2e(this._processor,a,this._opts),this.result.css=n;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let u=new v2e(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(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,n){return this.async().then(e,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 e,n=b2e;try{e=n(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var w2e=r_;r_.default=r_;let x2e=w2e,C2e=xB,E2e=eR,_2e=Op,rp=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let n=[];for(let r of e)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(e,n={}){return!this.plugins.length&&!n.parser&&!n.stringifier&&!n.syntax?new x2e(this,e,n):new C2e(this,e,n)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var k2e=rp;rp.default=rp;_2e.registerProcessor(rp);E2e.registerProcessor(rp);let A2e=ny,R2e=Z$,I2e=ay,T2e=nR,O2e=ry,N2e=Op,M2e=rR;function ap(t,e){if(Array.isArray(t))return t.map(a=>ap(a));let{inputs:n,...r}=t;if(n){e=[];for(let a of n){let s={...a,__proto__:O2e.prototype};s.map&&(s.map={...s.map,__proto__:R2e.prototype}),e.push(s)}}if(r.nodes&&(r.nodes=t.nodes.map(a=>ap(a,e))),r.source){let{inputId:a,...s}=r.source;r.source=s,a!=null&&(r.source.input=e[a])}if(r.type==="root")return new N2e(r);if(r.type==="decl")return new A2e(r);if(r.type==="rule")return new M2e(r);if(r.type==="comment")return new I2e(r);if(r.type==="atrule")return new T2e(r);throw new Error("Unknown node type: "+t.type)}var P2e=ap;ap.default=ap;let L2e=XA,CB=ny,D2e=xB,U2e=yu,sR=k2e,j2e=ey,z2e=P2e,EB=eR,F2e=hB,_B=ay,kB=nR,$2e=tR,B2e=ry,H2e=aR,q2e=yB,AB=rR,RB=Op,W2e=ty;function $t(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new sR(t)}$t.plugin=function(e,n){let r=!1;function a(...i){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
265
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),b1.LANG&&b1.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
266
+ https://www.w3ctech.com/topic/2226`));let u=n(...i);return u.postcssPlugin=e,u.postcssVersion=new sR().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=j2e;$t.parse=H2e;$t.fromJSON=z2e;$t.list=q2e;$t.comment=t=>new _B(t);$t.atRule=t=>new kB(t);$t.decl=t=>new CB(t);$t.rule=t=>new AB(t);$t.root=t=>new RB(t);$t.document=t=>new EB(t);$t.CssSyntaxError=L2e;$t.Declaration=CB;$t.Container=U2e;$t.Processor=sR;$t.Document=EB;$t.Comment=_B;$t.Warning=F2e;$t.AtRule=kB;$t.Result=$2e;$t.Input=B2e;$t.Rule=AB;$t.Root=RB;$t.Node=W2e;D2e.registerPostcss($t);var V2e=$t;$t.default=$t;const hn=sxe(V2e);hn.stringify;hn.fromJSON;hn.plugin;hn.parse;hn.list;hn.document;hn.comment;hn.atRule;hn.rule;hn.decl;hn.root;hn.CssSyntaxError;hn.Declaration;hn.Container;hn.Processor;hn.Document;hn.Comment;hn.Warning;hn.AtRule;hn.Result;hn.Input;hn.Rule;hn.Root;hn.Node;var G2e=Object.defineProperty,K2e=(t,e,n)=>e in t?G2e(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ea=(t,e,n)=>K2e(t,typeof e!="symbol"?e+"":e,n);function Y2e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Z2e(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var oR={exports:{}},ln=String,IB=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}};oR.exports=IB();oR.exports.createColors=IB;var X2e=oR.exports;const Q2e={},J2e=Object.freeze(Object.defineProperty({__proto__:null,default:Q2e},Symbol.toStringTag,{value:"Module"})),ns=Z2e(J2e);let l9=X2e,u9=ns,a_=class TB extends Error{constructor(e,n,r,a,s,i){super(e),this.name="CssSyntaxError",this.reason=e,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,TB)}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(e){if(!this.source)return"";let n=this.source;e==null&&(e=l9.isColorSupported),u9&&e&&(n=u9(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(e){let{bold:f,gray:h,red:m}=l9.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 e=this.showSourceCode();return e&&(e=`
269
+
270
+ `+e+`
271
+ `),this.name+": "+this.message+e}};var iR=a_;a_.default=a_;var Np={};Np.isClean=Symbol("isClean");Np.my=Symbol("my");const c9={after:`
272
+ `,beforeClose:`
273
+ `,beforeComment:`
274
+ `,beforeDecl:`
275
+ `,beforeOpen:" ",beforeRule:`
276
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function eCe(t){return t[0].toUpperCase()+t.slice(1)}let s_=class{constructor(e){this.builder=e}atrule(e,n){let r="@"+e.name,a=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:a&&(r+=" "),e.nodes)this.block(e,r+a);else{let s=(e.raws.between||"")+(n?";":"");this.builder(r+a+s,e)}}beforeAfter(e,n){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):n==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let a=e.parent,s=0;for(;a&&a.type!=="root";)s+=1,a=a.parent;if(r.includes(`
277
+ `)){let i=this.raw(e,null,"indent");if(i.length)for(let u=0;u<s;u++)r+=i}return r}block(e,n){let r=this.raw(e,"between","beforeOpen");this.builder(n+r+"{",e,"start");let a;e.nodes&&e.nodes.length?(this.body(e),a=this.raw(e,"after")):a=this.raw(e,"after","emptyBody"),a&&this.builder(a),this.builder("}",e,"end")}body(e){let n=e.nodes.length-1;for(;n>0&&e.nodes[n].type==="comment";)n-=1;let r=this.raw(e,"semicolon");for(let a=0;a<e.nodes.length;a++){let s=e.nodes[a],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,n!==a||r)}}comment(e){let n=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+n+e.text+r+"*/",e)}decl(e,n){let r=this.raw(e,"between","colon"),a=e.prop+r+this.rawValue(e,"value");e.important&&(a+=e.raws.important||" !important"),n&&(a+=";"),this.builder(a,e)}document(e){this.body(e)}raw(e,n,r){let a;if(r||(r=n),n&&(a=e.raws[n],typeof a<"u"))return a;let s=e.parent;if(r==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return c9[r];let i=e.root();if(i.rawCache||(i.rawCache={}),typeof i.rawCache[r]<"u")return i.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let u="raw"+eCe(r);this[u]?a=this[u](i,e):i.walk(c=>{if(a=c.raws[n],typeof a<"u")return!1})}return typeof a>"u"&&(a=c9[r]),i.rawCache[r]=a,a}rawBeforeClose(e){let n;return e.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(e,n){let r;return e.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(e,n){let r;return e.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(e){let n;return e.walk(r=>{if(r.type!=="decl"&&(n=r.raws.between,typeof n<"u"))return!1}),n}rawBeforeRule(e){let n;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.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(e){let n;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return n=r.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(n=r.raws.after,typeof n<"u"))return!1}),n}rawIndent(e){if(e.raws.indent)return e.raws.indent;let n;return e.walk(r=>{let a=r.parent;if(a&&a!==e&&a.parent&&a.parent===e&&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(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(n=r.raws.semicolon,typeof n<"u"))return!1}),n}rawValue(e,n){let r=e[n],a=e.raws[n];return a&&a.value===r?a.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,n){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,n)}};var OB=s_;s_.default=s_;let tCe=OB;function o_(t,e){new tCe(e).stringify(t)}var sy=o_;o_.default=o_;let{isClean:$g,my:nCe}=Np,rCe=iR,aCe=OB,sCe=sy;function i_(t,e){let n=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let a=t[r],s=typeof a;r==="parent"&&s==="object"?e&&(n[r]=e):r==="source"?n[r]=a:Array.isArray(a)?n[r]=a.map(i=>i_(i,n)):(s==="object"&&a!==null&&(a=i_(a)),n[r]=a)}return n}let l_=class{constructor(e={}){this.raws={},this[$g]=!1,this[nCe]=!0;for(let n in e)if(n==="nodes"){this.nodes=[];for(let r of e[n])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[n]=e[n]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let n=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let n in e)this[n]=e[n];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let n=i_(this);for(let r in e)n[r]=e[r];return n}cloneAfter(e={}){let n=this.clone(e);return this.parent.insertAfter(this,n),n}cloneBefore(e={}){let n=this.clone(e);return this.parent.insertBefore(this,n),n}error(e,n={}){if(this.source){let{end:r,start:a}=this.rangeBy(n);return this.source.input.error(e,{column:a.column,line:a.line},{column:r.column,line:r.line},n)}return new rCe(e)}getProxyProcessor(){return{get(e,n){return n==="proxyOf"?e:n==="root"?()=>e.root().toProxy():e[n]},set(e,n,r){return e[n]===r||(e[n]=r,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&e.markDirty()),!0}}}markDirty(){if(this[$g]){this[$g]=!1;let e=this;for(;e=e.parent;)e[$g]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,n){let r=this.source.start;if(e.index)r=this.positionInside(e.index,n);else if(e.word){n=this.toString();let a=n.indexOf(e.word);a!==-1&&(r=this.positionInside(a,n))}return r}positionInside(e,n){let r=n||this.toString(),a=this.source.start.column,s=this.source.start.line;for(let i=0;i<e;i++)r[i]===`
283
+ `?(a=1,s+=1):a+=1;return{column:a,line:s}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){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(e.word){let a=this.toString(),s=a.indexOf(e.word);s!==-1&&(n=this.positionInside(s,a),r=this.positionInside(s+e.word.length,a))}else e.start?n={column:e.start.column,line:e.start.line}:e.index&&(n=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.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(e,n){return new aCe().raw(this,e,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let n=this,r=!1;for(let a of e)a===this?r=!0:r?(this.parent.insertAfter(n,a),n=a):this.parent.insertBefore(n,a);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,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(e=sCe){e.stringify&&(e=e.stringify);let n="";return e(this,r=>{n+=r}),n}warn(e,n,r){let a={node:this};for(let s in r)a[s]=r[s];return e.warn(n,a)}get proxyOf(){return this}};var oy=l_;l_.default=l_;let oCe=oy,u_=class extends oCe{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var iy=u_;u_.default=u_;let iCe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",lCe=(t=21)=>{let e="",n=t;for(;n--;)e+=iCe[Math.random()*64|0];return e};var uCe={nanoid:lCe};let{SourceMapConsumer:d9,SourceMapGenerator:f9}=ns,{existsSync:cCe,readFileSync:dCe}=ns,{dirname:uE,join:fCe}=ns;function hCe(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let c_=class{constructor(e,n){if(n.map===!1)return;this.loadAnnotation(e),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=uE(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new d9(this.text)),this.consumerCache}decodeInline(e){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(e)||s.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(n.test(e)||r.test(e))return hCe(e.substr(RegExp.lastMatch.length));let i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let n=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!n)return;let r=e.lastIndexOf(n.pop()),a=e.indexOf("*/",r);r>-1&&a>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,a)))}loadFile(e){if(this.root=uE(e),cCe(e))return this.mapFile=e,dCe(e,"utf-8").toString().trim()}loadMap(e,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let r=n(e);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 d9)return f9.fromSourceMap(n).toString();if(n instanceof f9)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 e&&(r=fCe(uE(e),r)),this.loadFile(r)}}}startWith(e,n){return e?e.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var NB=c_;c_.default=c_;let{SourceMapConsumer:pCe,SourceMapGenerator:mCe}=ns,{fileURLToPath:h9,pathToFileURL:Bg}=ns,{isAbsolute:d_,resolve:f_}=ns,{nanoid:gCe}=uCe,cE=ns,p9=iR,vCe=NB,dE=Symbol("fromOffsetCache"),yCe=!!(pCe&&mCe),m9=!!(f_&&d_),R1=class{constructor(e,n={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!m9||/^\w+:\/\//.test(n.from)||d_(n.from)?this.file=n.from:this.file=f_(n.from)),m9&&yCe){let r=new vCe(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 "+gCe(6)+">"),this.map&&(this.map.file=this.from)}error(e,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 p9(e,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 p9(e,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&&(Bg&&(s.input.url=Bg(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let n,r;if(this[dE])r=this[dE];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[dE]=r}n=r[r.length-1];let a=0;if(e>=n)a=r.length-1;else{let s=r.length-2,i;for(;a<s;)if(i=a+(s-a>>1),e<r[i])s=i-1;else if(e>=r[i+1])a=i+1;else{a=i;break}}return{col:e-r[a]+1,line:a+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:f_(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,n,r,a){if(!this.map)return!1;let s=this.map.consumer(),i=s.originalPositionFor({column:n,line:e});if(!i.source)return!1;let u;typeof r=="number"&&(u=s.originalPositionFor({column:a,line:r}));let c;d_(i.source)?c=Bg(i.source):c=new URL(i.source,this.map.consumer().sourceRoot||Bg(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(h9)f.file=h9(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 e={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(e[n]=this[n]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var ly=R1;R1.default=R1;cE&&cE.registerInput&&cE.registerInput(R1);let{SourceMapConsumer:MB,SourceMapGenerator:T0}=ns,{dirname:O0,relative:PB,resolve:LB,sep:DB}=ns,{pathToFileURL:g9}=ns,bCe=ly,SCe=!!(MB&&T0),wCe=!!(O0&&LB&&PB&&DB),xCe=class{constructor(e,n,r,a){this.stringify=e,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 e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let n=`
285
+ `;this.css.includes(`\r
286
+ `)&&(n=`\r
287
+ `),this.css+=n+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let n=this.toUrl(this.path(e.file)),r=e.root||O0(e.file),a;this.mapOpts.sourcesContent===!1?(a=new MB(e.text),a.sourcesContent&&(a.sourcesContent=null)):a=e.consumer(),this.map.applySourceMap(a,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let n=this.root.nodes.length-1;n>=0;n--)e=this.root.nodes[n],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),wCe&&SCe&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,n=>{e+=n}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=T0.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new T0({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 T0({file:this.outputFile(),ignoreInvalidMapping:!0});let e=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=e,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?(e+=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=e,a.generated.column=n-2,this.map.addMapping(a)):(a.source=r,a.original.line=1,a.original.column=0,a.generated.line=e,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(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!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(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let n=this.memoizedPaths.get(e);if(n)return n;let r=this.opts.to?O0(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=O0(LB(r,this.mapOpts.annotation)));let a=PB(r,e);return this.memoizedPaths.set(e,a),a}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let n=e.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let e=new bCe(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(n=>{if(n.source){let r=n.source.input.from;if(r&&!e[r]){e[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(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let n=this.memoizedFileURLs.get(e);if(n)return n;if(g9){let r=g9(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let n=this.memoizedURLs.get(e);if(n)return n;DB==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var UB=xCe;let CCe=oy,h_=class extends CCe{constructor(e){super(e),this.type="comment"}};var uy=h_;h_.default=h_;let{isClean:jB,my:zB}=Np,FB=iy,$B=uy,ECe=oy,BB,lR,uR,HB;function qB(t){return t.map(e=>(e.nodes&&(e.nodes=qB(e.nodes)),delete e.source,e))}function WB(t){if(t[jB]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)WB(e)}let Ro=class VB extends ECe{append(...e){for(let n of e){let r=this.normalize(n,this.last);for(let a of r)this.proxyOf.nodes.push(a)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let n of this.nodes)n.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let n=this.getIterator(),r,a;for(;this.indexes[n]<this.proxyOf.nodes.length&&(r=this.indexes[n],a=e(this.proxyOf.nodes[r],r),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,n){return n==="proxyOf"?e:e[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?(...r)=>e[n](...r.map(a=>typeof a=="function"?(s,i)=>a(s.toProxy(),i):a)):n==="every"||n==="some"?r=>e[n]((a,...s)=>r(a.toProxy(),...s)):n==="root"?()=>e.root().toProxy():n==="nodes"?e.nodes.map(r=>r.toProxy()):n==="first"||n==="last"?e[n].toProxy():e[n]:e[n]},set(e,n,r){return e[n]===r||(e[n]=r,(n==="name"||n==="params"||n==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,n){let r=this.index(e),a=this.normalize(n,this.proxyOf.nodes[r]).reverse();r=this.index(e);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(e,n){let r=this.index(e),a=r===0?"prepend":!1,s=this.normalize(n,this.proxyOf.nodes[r],a).reverse();r=this.index(e);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(e,n){if(typeof e=="string")e=qB(BB(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let a of e)a.parent&&a.parent.removeChild(a,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let a of e)a.parent&&a.parent.removeChild(a,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new FB(e)]}else if(e.selector)e=[new lR(e)];else if(e.name)e=[new uR(e)];else if(e.text)e=[new $B(e)];else throw new Error("Unknown node type in node creation");return e.map(a=>(a[zB]||VB.rebuild(a),a=a.proxyOf,a.parent&&a.parent.removeChild(a),a[jB]&&WB(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(...e){e=e.reverse();for(let n of e){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(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let n;for(let r in this.indexes)n=this.indexes[r],n>=e&&(this.indexes[r]=n-1);return this.markDirty(),this}replaceValues(e,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(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((n,r)=>{let a;try{a=e(n,r)}catch(s){throw n.addToError(s)}return a!==!1&&n.walk&&(a=n.walk(e)),a})}walkAtRules(e,n){return n?e instanceof RegExp?this.walk((r,a)=>{if(r.type==="atrule"&&e.test(r.name))return n(r,a)}):this.walk((r,a)=>{if(r.type==="atrule"&&r.name===e)return n(r,a)}):(n=e,this.walk((r,a)=>{if(r.type==="atrule")return n(r,a)}))}walkComments(e){return this.walk((n,r)=>{if(n.type==="comment")return e(n,r)})}walkDecls(e,n){return n?e instanceof RegExp?this.walk((r,a)=>{if(r.type==="decl"&&e.test(r.prop))return n(r,a)}):this.walk((r,a)=>{if(r.type==="decl"&&r.prop===e)return n(r,a)}):(n=e,this.walk((r,a)=>{if(r.type==="decl")return n(r,a)}))}walkRules(e,n){return n?e instanceof RegExp?this.walk((r,a)=>{if(r.type==="rule"&&e.test(r.selector))return n(r,a)}):this.walk((r,a)=>{if(r.type==="rule"&&r.selector===e)return n(r,a)}):(n=e,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]}};Ro.registerParse=t=>{BB=t};Ro.registerRule=t=>{lR=t};Ro.registerAtRule=t=>{uR=t};Ro.registerRoot=t=>{HB=t};var bu=Ro;Ro.default=Ro;Ro.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,uR.prototype):t.type==="rule"?Object.setPrototypeOf(t,lR.prototype):t.type==="decl"?Object.setPrototypeOf(t,FB.prototype):t.type==="comment"?Object.setPrototypeOf(t,$B.prototype):t.type==="root"&&Object.setPrototypeOf(t,HB.prototype),t[zB]=!0,t.nodes&&t.nodes.forEach(e=>{Ro.rebuild(e)})};let _Ce=bu,GB,KB,sp=class extends _Ce{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new GB(new KB,this,e).stringify()}};sp.registerLazyResult=t=>{GB=t};sp.registerProcessor=t=>{KB=t};var cR=sp;sp.default=sp;let p_=class{constructor(e,n={}){if(this.type="warning",this.text=e,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 YB=p_;p_.default=p_;let kCe=YB,m_=class{constructor(e,n,r){this.processor=e,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new kCe(e,n);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var dR=m_;m_.default=m_;const fE=39,v9=34,Hg=92,y9=47,qg=10,Jf=32,Wg=12,Vg=9,Gg=13,ACe=91,RCe=93,ICe=40,TCe=41,OCe=123,NCe=125,MCe=59,PCe=42,LCe=58,DCe=64,Kg=/[\t\n\f\r "#'()/;[\\\]{}]/g,Yg=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,UCe=/.[\r\n"'(/\\]/,b9=/[\da-f]/i;var jCe=function(e,n={}){let r=e.css.valueOf(),a=n.ignoreErrors,s,i,u,c,f,h,m,g,y,S,w=r.length,x=0,E=[],A=[];function k(){return x}function I(P){throw e.error("Unclosed "+P,x)}function N(){return A.length===0&&x>=w}function O(P){if(A.length)return A.pop();if(x>=w)return;let D=P?P.ignoreUnclosed:!1;switch(s=r.charCodeAt(x),s){case qg:case Jf:case Vg:case Gg:case Wg:{i=x;do i+=1,s=r.charCodeAt(i);while(s===Jf||s===qg||s===Vg||s===Gg||s===Wg);S=["space",r.slice(x,i)],x=i-1;break}case ACe:case RCe:case OCe:case NCe:case LCe:case MCe:case TCe:{let q=String.fromCharCode(s);S=[q,q,x];break}case ICe:{if(g=E.length?E.pop()[1]:"",y=r.charCodeAt(x+1),g==="url"&&y!==fE&&y!==v9&&y!==Jf&&y!==qg&&y!==Vg&&y!==Wg&&y!==Gg){i=x;do{if(h=!1,i=r.indexOf(")",i+1),i===-1)if(a||D){i=x;break}else I("bracket");for(m=i;r.charCodeAt(m-1)===Hg;)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||UCe.test(c)?S=["(","(",x]:(S=["brackets",c,x,i],x=i);break}case fE:case v9:{u=s===fE?"'":'"',i=x;do{if(h=!1,i=r.indexOf(u,i+1),i===-1)if(a||D){i=x+1;break}else I("string");for(m=i;r.charCodeAt(m-1)===Hg;)m-=1,h=!h}while(h);S=["string",r.slice(x,i+1),x,i],x=i;break}case DCe:{Kg.lastIndex=x+1,Kg.test(r),Kg.lastIndex===0?i=r.length-1:i=Kg.lastIndex-2,S=["at-word",r.slice(x,i+1),x,i],x=i;break}case Hg:{for(i=x,f=!0;r.charCodeAt(i+1)===Hg;)i+=1,f=!f;if(s=r.charCodeAt(i+1),f&&s!==y9&&s!==Jf&&s!==qg&&s!==Vg&&s!==Gg&&s!==Wg&&(i+=1,b9.test(r.charAt(i)))){for(;b9.test(r.charAt(i+1));)i+=1;r.charCodeAt(i+1)===Jf&&(i+=1)}S=["word",r.slice(x,i+1),x,i],x=i;break}default:{s===y9&&r.charCodeAt(x+1)===PCe?(i=r.indexOf("*/",x+2)+1,i===0&&(a||D?i=r.length:I("comment")),S=["comment",r.slice(x,i+1),x,i],x=i):(Yg.lastIndex=x+1,Yg.test(r),Yg.lastIndex===0?i=r.length-1:i=Yg.lastIndex-2,S=["word",r.slice(x,i+1),x,i],E.push(S),x=i);break}}return x++,S}function T(P){A.push(P)}return{back:T,endOfFile:N,nextToken:O,position:k}};let ZB=bu,I1=class extends ZB{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var fR=I1;I1.default=I1;ZB.registerAtRule(I1);let XB=bu,QB,JB,ld=class extends XB{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,n,r){let a=super.normalize(e);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(e,n){let r=this.index(e);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new QB(new JB,this,e).stringify()}};ld.registerLazyResult=t=>{QB=t};ld.registerProcessor=t=>{JB=t};var Mp=ld;ld.default=ld;XB.registerRoot(ld);let op={comma(t){return op.split(t,[","],!0)},space(t){let e=[" ",`
289
+ `," "];return op.split(t,e)},split(t,e,n){let r=[],a="",s=!1,i=0,u=!1,c="",f=!1;for(let h of t)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&&e.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=op;op.default=op;let tH=bu,zCe=eH,T1=class extends tH{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return zCe.comma(this.selector)}set selectors(e){let n=this.selector?this.selector.match(/,\s*/):null,r=n?n[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var hR=T1;T1.default=T1;tH.registerRule(T1);let FCe=iy,$Ce=jCe,BCe=uy,HCe=fR,qCe=Mp,S9=hR;const w9={empty:!0,space:!0};function WCe(t){for(let e=t.length-1;e>=0;e--){let n=t[e],r=n[3]||n[2];if(r)return r}}let VCe=class{constructor(e){this.input=e,this.root=new qCe,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let n=new HCe;n.name=e[1].slice(1),n.name===""&&this.unnamedAtrule(n,e),this.init(n,e[2]);let r,a,s,i=!1,u=!1,c=[],f=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[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(e[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(e);break}else c.push(e);else c.push(e);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&&(e=c[c.length-1],n.source.end=this.getPosition(e[3]||e[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(e){let n=this.colon(e);if(n===!1)return;let r=0,a;for(let s=n-1;s>=0&&(a=e[s],!(a[0]!=="space"&&(r+=1,r===2)));s--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}colon(e){let n=0,r,a,s;for(let[i,u]of e.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(e){let n=new BCe;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++;let r=e[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=$Ce(this.input)}decl(e,n){let r=new FCe;this.init(r,e[0][2]);let a=e[e.length-1];for(a[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(a[3]||a[2]||WCe(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let f=e[0][0];if(f===":"||f==="space"||f==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let s;for(;e.length;)if(s=e.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(;e.length&&(u=e[0][0],!(u!=="space"&&u!=="comment"));)i.push(e.shift());this.precheckMissedSemicolon(e);for(let f=e.length-1;f>=0;f--){if(s=e[f],s[1].toLowerCase()==="!important"){r.important=!0;let h=this.stringFrom(e,f);h=this.spacesFromEnd(e)+h,h!==" !important"&&(r.raws.important=h);break}else if(s[1].toLowerCase()==="important"){let h=e.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,e=h)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(r.raws.between+=i.map(f=>f[1]).join(""),i=[]),this.raw(r,"value",i.concat(e),n),r.value.includes(":")&&!n&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let n=new S9;this.init(n,e[2]),n.selector="",n.raws.between="",this.current=n}end(e){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(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}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(e){if(this.spaces+=e[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(e){let n=this.input.fromOffset(e);return{column:n.col,line:n.line,offset:e}}init(e,n){this.current.push(e),e.source={input:this.input,start:this.getPosition(n)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let n=!1,r=null,a=!1,s=null,i=[],u=e[1].startsWith("--"),c=[],f=e;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 e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,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",!w9[m]&&!w9[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],"");e.raws[n]={raw:g,value:c}}e[n]=c}rule(e){e.pop();let n=new S9;this.init(n,e[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(n,"selector",e),this.current=n}spacesAndCommentsFromEnd(e){let n,r="";for(;e.length&&(n=e[e.length-1][0],!(n!=="space"&&n!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let n,r="";for(;e.length&&(n=e[0][0],!(n!=="space"&&n!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let n,r="";for(;e.length&&(n=e[e.length-1][0],n==="space");)r=e.pop()[1]+r;return r}stringFrom(e,n){let r="";for(let a=n;a<e.length;a++)r+=e[a][1];return e.splice(n,e.length-n),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})}};var GCe=VCe;let KCe=bu,YCe=GCe,ZCe=ly;function O1(t,e){let n=new ZCe(t,e),r=new YCe(n);try{r.parse()}catch(a){throw a}return r.root}var pR=O1;O1.default=O1;KCe.registerParse(O1);let{isClean:ys,my:XCe}=Np,QCe=UB,JCe=sy,eEe=bu,tEe=cR,x9=dR,nEe=pR,rEe=Mp;const aEe={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},sEe={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},oEe={Once:!0,postcssPlugin:!0,prepare:!0},ud=0;function eh(t){return typeof t=="object"&&typeof t.then=="function"}function nH(t){let e=!1,n=aEe[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[n,n+"-"+e,ud,n+"Exit",n+"Exit-"+e]:e?[n,n+"-"+e,n+"Exit",n+"Exit-"+e]:t.append?[n,ud,n+"Exit"]:[n,n+"Exit"]}function C9(t){let e;return t.type==="document"?e=["Document",ud,"DocumentExit"]:t.type==="root"?e=["Root",ud,"RootExit"]:e=nH(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function g_(t){return t[ys]=!1,t.nodes&&t.nodes.forEach(e=>g_(e)),t}let v_={},cd=class rH{constructor(e,n,r){this.stringified=!1,this.processed=!1;let a;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))a=g_(n);else if(n instanceof rH||n instanceof x9)a=g_(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=nEe;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[XCe]&&eEe.rebuild(a)}this.result=new x9(e,a,r),this.helpers={...v_,postcss:v_,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(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,n){let r=this.result.lastPlugin;try{n&&n.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(a){console&&console.error&&console.error(a)}return e}prepareVisitors(){this.listeners={};let e=(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(!sEe[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!oEe[r])if(typeof n[r]=="object")for(let a in n[r])a==="*"?e(n,r,n[r][a]):e(n,r+"-"+a.toLowerCase(),n[r][a]);else typeof n[r]=="function"&&e(n,r,n[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let n=this.plugins[e],r=this.runOnRoot(n);if(eh(r))try{await r}catch(a){throw this.handleError(a)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ys];){e[ys]=!0;let n=[C9(e)];for(;n.length>0;){let r=this.visitTick(n);if(eh(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(e.type==="document"){let a=e.nodes.map(s=>r(s,this.helpers));await Promise.all(a)}else await r(e,this.helpers)}catch(a){throw this.handleError(a)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return eh(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(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 e=this.result.opts,n=JCe;e.syntax&&(n=e.syntax.stringify),e.stringifier&&(n=e.stringifier),n.stringify&&(n=n.stringify);let a=new QCe(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 e of this.plugins){let n=this.runOnRoot(e);if(eh(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ys];)e[ys]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let n of e.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,n){return this.async().then(e,n)}toString(){return this.css}visitSync(e,n){for(let[r,a]of e){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(eh(s))throw this.getAsyncError()}}visitTick(e){let n=e[e.length-1],{node:r,visitors:a}=n;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.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[ys]){u[ys]=!0,e.push(C9(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===ud){r.nodes&&r.nodes.length&&(r[ys]=!0,n.iterator=r.getIterator());return}else if(this.listeners[i]){n.visitors=this.listeners[i];return}}e.pop()}walkSync(e){e[ys]=!0;let n=nH(e);for(let r of n)if(r===ud)e.nodes&&e.each(a=>{a[ys]||this.walkSync(a)});else{let a=this.listeners[r];if(a&&this.visitSync(a,e.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"}};cd.registerPostcss=t=>{v_=t};var aH=cd;cd.default=cd;rEe.registerLazyResult(cd);tEe.registerLazyResult(cd);let iEe=UB,lEe=sy,uEe=pR;const cEe=dR;let y_=class{constructor(e,n,r){n=n.toString(),this.stringified=!1,this._processor=e,this._css=n,this._opts=r,this._map=void 0;let a,s=lEe;this.result=new cEe(this._processor,a,this._opts),this.result.css=n;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let u=new iEe(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(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,n){return this.async().then(e,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 e,n=uEe;try{e=n(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var dEe=y_;y_.default=y_;let fEe=dEe,hEe=aH,pEe=cR,mEe=Mp,ip=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let n=[];for(let r of e)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(e,n={}){return!this.plugins.length&&!n.parser&&!n.stringifier&&!n.syntax?new fEe(this,e,n):new hEe(this,e,n)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var gEe=ip;ip.default=ip;mEe.registerProcessor(ip);pEe.registerProcessor(ip);let vEe=iy,yEe=NB,bEe=uy,SEe=fR,wEe=ly,xEe=Mp,CEe=hR;function lp(t,e){if(Array.isArray(t))return t.map(a=>lp(a));let{inputs:n,...r}=t;if(n){e=[];for(let a of n){let s={...a,__proto__:wEe.prototype};s.map&&(s.map={...s.map,__proto__:yEe.prototype}),e.push(s)}}if(r.nodes&&(r.nodes=t.nodes.map(a=>lp(a,e))),r.source){let{inputId:a,...s}=r.source;r.source=s,a!=null&&(r.source.input=e[a])}if(r.type==="root")return new xEe(r);if(r.type==="decl")return new vEe(r);if(r.type==="rule")return new CEe(r);if(r.type==="comment")return new bEe(r);if(r.type==="atrule")return new SEe(r);throw new Error("Unknown node type: "+t.type)}var EEe=lp;lp.default=lp;let _Ee=iR,sH=iy,kEe=aH,AEe=bu,mR=gEe,REe=sy,IEe=EEe,oH=cR,TEe=YB,iH=uy,lH=fR,OEe=dR,NEe=ly,MEe=pR,PEe=eH,uH=hR,cH=Mp,LEe=oy;function Bt(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new mR(t)}Bt.plugin=function(e,n){let r=!1;function a(...i){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
290
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),b1.LANG&&b1.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
291
+ https://www.w3ctech.com/topic/2226`));let u=n(...i);return u.postcssPlugin=e,u.postcssVersion=new mR().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=REe;Bt.parse=MEe;Bt.fromJSON=IEe;Bt.list=PEe;Bt.comment=t=>new iH(t);Bt.atRule=t=>new lH(t);Bt.decl=t=>new sH(t);Bt.rule=t=>new uH(t);Bt.root=t=>new cH(t);Bt.document=t=>new oH(t);Bt.CssSyntaxError=_Ee;Bt.Declaration=sH;Bt.Container=AEe;Bt.Processor=mR;Bt.Document=oH;Bt.Comment=iH;Bt.Warning=TEe;Bt.AtRule=lH;Bt.Result=OEe;Bt.Input=NEe;Bt.Rule=uH;Bt.Root=cH;Bt.Node=LEe;kEe.registerPostcss(Bt);var DEe=Bt;Bt.default=Bt;const pn=Y2e(DEe);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;class gR{constructor(...e){Ea(this,"parentElement",null),Ea(this,"parentNode",null),Ea(this,"ownerDocument"),Ea(this,"firstChild",null),Ea(this,"lastChild",null),Ea(this,"previousSibling",null),Ea(this,"nextSibling",null),Ea(this,"ELEMENT_NODE",1),Ea(this,"TEXT_NODE",3),Ea(this,"nodeType"),Ea(this,"nodeName"),Ea(this,"RRNodeType")}get childNodes(){const e=[];let n=this.firstChild;for(;n;)e.push(n),n=n.nextSibling;return e}contains(e){if(e instanceof gR){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,n){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const E9={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},_9={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Zg={},UEe=()=>!!globalThis.Zone;function vR(t){if(Zg[t])return Zg[t];const e=globalThis[t],n=e.prototype,r=t in E9?E9[t]: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=t in _9?_9[t]: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&&!UEe())return Zg[t]=e.prototype,e.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const c=u.contentWindow;if(!c)return e.prototype;const f=c[t].prototype;return document.body.removeChild(u),f?Zg[t]=f:n}catch{return n}}const hE={};function Lo(t,e,n){var r;const a=`${t}.${String(n)}`;if(hE[a])return hE[a].call(e);const s=vR(t),i=(r=Object.getOwnPropertyDescriptor(s,n))==null?void 0:r.get;return i?(hE[a]=i,i.call(e)):e[n]}const pE={};function dH(t,e,n){const r=`${t}.${String(n)}`;if(pE[r])return pE[r].bind(e);const s=vR(t)[n];return typeof s!="function"?e[n]:(pE[r]=s,s.bind(e))}function jEe(t){return Lo("Node",t,"ownerDocument")}function zEe(t){return Lo("Node",t,"childNodes")}function FEe(t){return Lo("Node",t,"parentNode")}function $Ee(t){return Lo("Node",t,"parentElement")}function BEe(t){return Lo("Node",t,"textContent")}function HEe(t,e){return dH("Node",t,"contains")(e)}function qEe(t){return dH("Node",t,"getRootNode")()}function WEe(t){return!t||!("host"in t)?null:Lo("ShadowRoot",t,"host")}function VEe(t){return t.styleSheets}function GEe(t){return!t||!("shadowRoot"in t)?null:Lo("Element",t,"shadowRoot")}function KEe(t,e){return Lo("Element",t,"querySelector")(e)}function YEe(t,e){return Lo("Element",t,"querySelectorAll")(e)}function fH(){return vR("MutationObserver").constructor}function Su(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],a=n(r);return typeof a=="function"&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=a,()=>{t[e]=r}}catch{return()=>{}}}const at={ownerDocument:jEe,childNodes:zEe,parentNode:FEe,parentElement:$Ee,textContent:BEe,contains:HEe,getRootNode:qEe,host:WEe,styleSheets:VEe,shadowRoot:GEe,querySelector:KEe,querySelectorAll:YEe,mutationObserver:fH,patch:Su};function _r(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const Tc=`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(Tc),-1},getNode(){return console.error(Tc),null},removeNodeFromMap(){console.error(Tc)},has(){return console.error(Tc),!1},reset(){console.error(Tc)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(k9=new Proxy(k9,{get(t,e,n){return e==="map"&&console.error(Tc),Reflect.get(t,e,n)}}));function up(t,e,n={}){let r=null,a=0;return function(...s){const i=Date.now();!a&&n.leading===!1&&(a=i);const u=e-(i-a),c=this;u<=0||u>e?(r&&(clearTimeout(r),r=null),a=i,t.apply(c,s)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{a=n.leading===!1?0:Date.now(),r=null,t.apply(c,s)},u))}}function cy(t,e,n,r,a=window){const s=a.Object.getOwnPropertyDescriptor(t,e);return a.Object.defineProperty(t,e,r?n:{set(i){setTimeout(()=>{n.set.call(this,i)},0),s&&s.set&&s.set.call(this,i)}}),()=>cy(t,e,s||{},!0)}let N1=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(N1=()=>new Date().getTime());function hH(t){var e,n,r,a;const s=t.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:s.documentElement.scrollLeft||s?.body&&((e=at.parentElement(s.body))==null?void 0:e.scrollLeft)||((n=s?.body)==null?void 0:n.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:s?.documentElement.scrollTop||s?.body&&((r=at.parentElement(s.body))==null?void 0:r.scrollTop)||((a=s?.body)==null?void 0:a.scrollTop)||0}}function pH(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function mH(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function gH(t){return t?t.nodeType===t.ELEMENT_NODE?t:at.parentElement(t):null}function kr(t,e,n,r){if(!t)return!1;const a=gH(t);if(!a)return!1;try{if(typeof e=="string"){if(a.classList.contains(e)||r&&a.closest("."+e)!==null)return!0}else if(C1(a,e,r))return!0}catch{}return!!(n&&(a.matches(n)||r&&a.closest(n)!==null))}function ZEe(t,e){return e.getId(t)!==-1}function mE(t,e,n){return t.tagName==="TITLE"&&n.headTitleMutations?!0:e.getId(t)===ep}function vH(t,e){if(kh(t))return!1;const n=e.getId(t);if(!e.has(n))return!0;const r=at.parentNode(t);return r&&r.nodeType===t.DOCUMENT_NODE?!1:r?vH(r,e):!0}function b_(t){return!!t.changedTouches}function XEe(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function yH(t,e){return!!(t.nodeName==="IFRAME"&&e.getMeta(t))}function bH(t,e){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&e.getMeta(t))}function S_(t){return t?t instanceof gR&&"shadowRoot"in t?!!t.shadowRoot:!!at.shadowRoot(t):!1}class QEe{constructor(){we(this,"id",1),we(this,"styleIDMap",new WeakMap),we(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,n){if(this.has(e))return this.getId(e);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function SH(t){var e;let n=null;return"getRootNode"in t&&((e=at.getRootNode(t))==null?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&at.host(at.getRootNode(t))&&(n=at.host(at.getRootNode(t))),n}function JEe(t){let e=t,n;for(;n=SH(e);)e=n;return e}function e3e(t){const e=at.ownerDocument(t);if(!e)return!1;const n=JEe(t);return at.contains(e,n)}function wH(t){const e=at.ownerDocument(t);return e?at.contains(e,t)||e3e(t):!1}var _t=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(_t||{}),gt=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(gt||{}),zr=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(zr||{}),io=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(io||{}),dd=(t=>(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(dd||{}),Oc=(t=>(t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t))(Oc||{}),xH=(t=>(t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t))(xH||{});function A9(t){return"__ln"in t}class t3e{constructor(){we(this,"length",0),we(this,"head",null),we(this,"tail",null)}get(e){if(e>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<e;r++)n=n?.next||null;return n}addNode(e){const n={value:e,previous:null,next:null};if(e.__ln=n,e.previousSibling&&A9(e.previousSibling)){const r=e.previousSibling.__ln.next;n.next=r,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(e.nextSibling&&A9(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;n.previous=r,n.next=e.nextSibling.__ln,e.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(e){const n=e.__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),e.__ln&&delete e.__ln,this.length--)}}const R9=(t,e)=>`${t}@${e}`;class n3e{constructor(){we(this,"frozen",!1),we(this,"locked",!1),we(this,"texts",[]),we(this,"attributes",[]),we(this,"attributeMap",new WeakMap),we(this,"removes",[]),we(this,"mapRemoves",[]),we(this,"movedMap",{}),we(this,"addedSet",new Set),we(this,"movedSet",new Set),we(this,"droppedSet",new Set),we(this,"removesSubTreeCache",new Set),we(this,"mutationCb"),we(this,"blockClass"),we(this,"blockSelector"),we(this,"maskTextClass"),we(this,"maskTextSelector"),we(this,"inlineStylesheet"),we(this,"maskInputOptions"),we(this,"maskTextFn"),we(this,"maskInputFn"),we(this,"keepIframeSrcFn"),we(this,"recordCanvas"),we(this,"inlineImages"),we(this,"slimDOMOptions"),we(this,"dataURLOptions"),we(this,"doc"),we(this,"mirror"),we(this,"iframeManager"),we(this,"stylesheetManager"),we(this,"shadowDomManager"),we(this,"canvasManager"),we(this,"processedNodeManager"),we(this,"unattachedDoc"),we(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),we(this,"emit",()=>{if(this.frozen||this.locked)return;const e=[],n=new Set,r=new t3e,a=c=>{let f=c,h=ep;for(;h===ep;)f=f&&f.nextSibling,h=f&&this.mirror.getId(f);return h},s=c=>{const f=at.parentNode(c);if(!f||!wH(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=kh(f)?this.mirror.getId(SH(c)):this.mirror.getId(f),g=a(c);if(m===-1||g===-1)return r.addNode(c);const y=Fc(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=>{yH(S,this.mirror)&&this.iframeManager.addIframe(S),bH(S,this.mirror)&&this.stylesheetManager.trackLinkElement(S),S_(c)&&this.shadowDomManager.addShadowRoot(at.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&&(e.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)I9(this.removesSubTreeCache,c,this.mirror)&&!this.movedSet.has(at.parentNode(c))||s(c);for(const c of this.addedSet)!T9(this.droppedSet,c)&&!I9(this.removesSubTreeCache,c,this.mirror)||T9(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(at.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(at.parentNode(h.value));if(a(h.value)===-1)continue;if(m!==-1){c=h;break}else{const y=h.value,S=at.parentNode(y);if(S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const w=at.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=at.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:e};!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))}),we(this,"genTextAreaValueMutation",e=>{let n=this.attributeMap.get(e);n||(n={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(e,n));const r=Array.from(at.childNodes(e),a=>at.textContent(a)||"").join("");n.attributes.value=S1({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:w1(e),value:r,maskInputFn:this.maskInputFn})}),we(this,"processMutation",e=>{if(!mE(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const n=at.textContent(e.target);!kr(e.target,this.blockClass,this.blockSelector,!1)&&n!==e.oldValue&&this.texts.push({value:W$(e.target,this.maskTextClass,this.maskTextSelector,!0)&&n?this.maskTextFn?this.maskTextFn(n,gH(e.target)):n.replace(/[\S]/g,"*"):n,node:e.target});break}case"attributes":{const n=e.target;let r=e.attributeName,a=e.target.getAttribute(r);if(r==="value"){const i=w1(n);a=S1({element:n,maskInputOptions:this.maskInputOptions,tagName:n.tagName,type:i,value:a,maskInputFn:this.maskInputFn})}if(kr(e.target,this.blockClass,this.blockSelector,!1)||a===e.oldValue)return;let s=this.attributeMap.get(e.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(a))if(!n.contentDocument)r="rr_src";else return;if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),r==="type"&&n.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!q$(n.tagName,r))if(s.attributes[r]=H$(this.doc,ru(n.tagName),ru(r),a),r==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");e.oldValue&&i.setAttribute("style",e.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(kr(e.target,this.blockClass,this.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(n=>this.genAdds(n,e.target)),e.removedNodes.forEach(n=>{const r=this.mirror.getId(n),a=kh(e.target)?this.mirror.getId(at.host(e.target)):this.mirror.getId(e.target);kr(e.target,this.blockClass,this.blockSelector,!1)||mE(n,this.mirror,this.slimDOMOptions)||!ZEe(n,this.mirror)||(this.addedSet.has(n)?(w_(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(e.target)&&r===-1||vH(e.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[R9(r,a)]?w_(this.movedSet,n):(this.removes.push({parentId:a,id:r,isShadow:kh(e.target)&&Ah(e.target)?!0:void 0}),r3e(n,this.removesSubTreeCache))),this.mapRemoves.push(n))});break}}}),we(this,"genAdds",(e,n)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(mE(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[R9(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);kr(e,this.blockClass,this.blockSelector,!1)||(at.childNodes(e).forEach(r=>this.genAdds(r)),S_(e)&&at.childNodes(at.shadowRoot(e)).forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,e)}))}})}init(e){["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]=e[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 w_(t,e){t.delete(e),at.childNodes(e).forEach(n=>w_(t,n))}function r3e(t,e){const n=[t];for(;n.length;){const r=n.pop();e.has(r)||(e.add(r),at.childNodes(r).forEach(a=>n.push(a)))}}function I9(t,e,n){return t.size===0?!1:a3e(t,e)}function a3e(t,e,n){const r=at.parentNode(e);return r?t.has(r):!1}function T9(t,e){return t.size===0?!1:CH(t,e)}function CH(t,e){const n=at.parentNode(e);return n?t.has(n)?!0:CH(t,n):!1}let Rh;function s3e(t){Rh=t}function o3e(){Rh=void 0}const bt=t=>Rh?(...n)=>{try{return t(...n)}catch(r){if(Rh&&Rh(r)===!0)return;throw r}}:t,Dl=[];function Pp(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function EH(t,e){const n=new n3e;Dl.push(n),n.init(t);const r=new(fH())(bt(n.processMutations.bind(n)));return r.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function i3e({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(e.mousemove===!1)return()=>{};const a=typeof e.mousemove=="number"?e.mousemove:50,s=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500;let i=[],u;const c=up(bt(m=>{const g=Date.now()-u;t(i.map(y=>(y.timeOffset-=g,y)),m),i=[],u=null}),s),f=bt(up(bt(m=>{const g=Pp(m),{clientX:y,clientY:S}=b_(m)?m.changedTouches[0]:m;u||(u=N1()),i.push({x:y,y:S,id:r.getId(g),timeOffset:N1()-u}),c(typeof DragEvent<"u"&&m instanceof DragEvent?gt.Drag:m instanceof MouseEvent?gt.MouseMove:gt.TouchMove)}),a,{trailing:!1})),h=[_r("mousemove",f,n),_r("touchmove",f,n),_r("drag",f,n)];return bt(()=>{h.forEach(m=>m())})}function l3e({mouseInteractionCb:t,doc:e,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=Pp(m);if(kr(g,r,a,!0))return;let y=null,S=h;if("pointerType"in m){switch(m.pointerType){case"mouse":y=io.Mouse;break;case"touch":y=io.Touch;break;case"pen":y=io.Pen;break}y===io.Touch?zr[h]===zr.MouseDown?S="TouchStart":zr[h]===zr.MouseUp&&(S="TouchEnd"):io.Pen}else b_(m)&&(y=io.Touch);y!==null?(c=y,(S.startsWith("Touch")&&y===io.Touch||S.startsWith("Mouse")&&y===io.Mouse)&&(y=null)):zr[h]===zr.Click&&(y=c,c=null);const w=b_(m)?m.changedTouches[0]:m;if(!w)return;const x=n.getId(g),{clientX:E,clientY:A}=w;bt(t)({type:zr[S],id:x,x:E,y:A,...y!==null&&{pointerType:y}})};return Object.keys(zr).filter(h=>Number.isNaN(Number(h))&&!h.endsWith("_Departed")&&i[h]!==!1).forEach(h=>{let m=ru(h);const g=f(h);if(window.PointerEvent)switch(zr[h]){case zr.MouseDown:case zr.MouseUp:m=m.replace("mouse","pointer");break;case zr.TouchStart:case zr.TouchEnd:return}u.push(_r(m,g,e))}),bt(()=>{u.forEach(h=>h())})}function _H({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:a,sampling:s}){const i=bt(up(bt(u=>{const c=Pp(u);if(!c||kr(c,r,a,!0))return;const f=n.getId(c);if(c===e&&e.defaultView){const h=hH(e.defaultView);t({id:f,x:h.left,y:h.top})}else t({id:f,x:c.scrollLeft,y:c.scrollTop})}),s.scroll||100));return _r("scroll",i,e)}function u3e({viewportResizeCb:t},{win:e}){let n=-1,r=-1;const a=bt(up(bt(()=>{const s=pH(),i=mH();(n!==s||r!==i)&&(t({width:Number(i),height:Number(s)}),n=s,r=i)}),200));return _r("resize",a,e)}const c3e=["INPUT","TEXTAREA","SELECT"],O9=new WeakMap;function d3e({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:a,ignoreClass:s,ignoreSelector:i,maskInputOptions:u,maskInputFn:c,sampling:f,userTriggeredOnInput:h}){function m(A){let k=Pp(A);const I=A.isTrusted,N=k&&k.tagName;if(k&&N==="OPTION"&&(k=at.parentElement(k)),!k||!N||c3e.indexOf(N)<0||kr(k,r,a,!0)||k.classList.contains(s)||i&&k.matches(i))return;let O=k.value,T=!1;const P=w1(k)||"";P==="radio"||P==="checkbox"?T=k.checked:(u[N.toLowerCase()]||u[P])&&(O=S1({element:k,maskInputOptions:u,tagName:N,type:P,value:O,maskInputFn:c})),g(k,h?{text:O,isChecked:T,userTriggered:I}:{text:O,isChecked:T});const D=k.name;P==="radio"&&D&&T&&e.querySelectorAll(`input[type="radio"][name="${D}"]`).forEach(q=>{if(q!==k){const U=q.value;g(q,h?{text:U,isChecked:!T,userTriggered:!1}:{text:U,isChecked:!T})}})}function g(A,k){const I=O9.get(A);if(!I||I.text!==k.text||I.isChecked!==k.isChecked){O9.set(A,k);const N=n.getId(A);bt(t)({...k,id:N})}}const S=(f.input==="last"?["change"]:["input","change"]).map(A=>_r(A,bt(m),e)),w=e.defaultView;if(!w)return()=>{S.forEach(A=>A())};const x=w.Object.getOwnPropertyDescriptor(w.HTMLInputElement.prototype,"value"),E=[[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(...E.map(A=>cy(A[0],A[1],{set(){bt(m)({target:this,isTrusted:!1})}},!1,w))),bt(()=>{S.forEach(A=>A())})}function M1(t){const e=[];function n(r,a){if(Xg("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Xg("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Xg("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Xg("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(t,e)}function _i(t,e,n){let r,a;return t?(t.ownerNode?r=e.getId(t.ownerNode):a=n.getId(t),{styleId:a,id:r}):{}}function f3e({styleSheetRuleCb:t,mirror:e,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:bt((h,m,g)=>{const[y,S]=g,{id:w,styleId:x}=_i(m,e,n.styleMirror);return(w&&w!==-1||x&&x!==-1)&&t({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:bt((h,m,g)=>{const[y]=g,{id:S,styleId:w}=_i(m,e,n.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({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:bt((h,m,g)=>{const[y]=g,{id:S,styleId:w}=_i(m,e,n.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({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:bt((h,m,g)=>{const[y]=g,{id:S,styleId:w}=_i(m,e,n.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({id:S,styleId:w,replaceSync:y}),h.apply(m,g)})}));const c={};Qg("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Qg("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Qg("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Qg("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:bt((g,y,S)=>{const[w,x]=S,{id:E,styleId:A}=_i(y.parentStyleSheet,e,n.styleMirror);return(E&&E!==-1||A&&A!==-1)&&t({id:E,styleId:A,adds:[{rule:w,index:[...M1(y),x||0]}]}),g.apply(y,S)})}),m.prototype.deleteRule=new Proxy(f[h].deleteRule,{apply:bt((g,y,S)=>{const[w]=S,{id:x,styleId:E}=_i(y.parentStyleSheet,e,n.styleMirror);return(x&&x!==-1||E&&E!==-1)&&t({id:x,styleId:E,removes:[{index:[...M1(y),w]}]}),g.apply(y,S)})})}),bt(()=>{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 kH({mirror:t,stylesheetManager:e},n){var r,a,s;let i=null;n.nodeName==="#document"?i=t.getId(n):i=t.getId(at.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{e.adoptStyleSheets(f,i)}catch{}return m}}),bt(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function h3e({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:a}){const s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:bt((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}=_i((h=c.parentRule)==null?void 0:h.parentStyleSheet,e,r.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({id:S,styleId:w,set:{property:m,value:g,priority:y},index:M1(c.parentRule)}),u.apply(c,f)})});const i=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:bt((u,c,f)=>{var h;const[m]=f;if(n.has(m))return i.apply(c,[m]);const{id:g,styleId:y}=_i((h=c.parentRule)==null?void 0:h.parentStyleSheet,e,r.styleMirror);return(g&&g!==-1||y&&y!==-1)&&t({id:g,styleId:y,remove:{property:m},index:M1(c.parentRule)}),u.apply(c,f)})}),bt(()=>{a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=i})}function p3e({mediaInteractionCb:t,blockClass:e,blockSelector:n,mirror:r,sampling:a,doc:s}){const i=bt(c=>up(bt(f=>{const h=Pp(f);if(!h||kr(h,e,n,!0))return;const{currentTime:m,volume:g,muted:y,playbackRate:S,loop:w}=h;t({type:c,id:r.getId(h),currentTime:m,volume:g,muted:y,playbackRate:S,loop:w})}),a.media||500)),u=[_r("play",i(Oc.Play),s),_r("pause",i(Oc.Pause),s),_r("seeked",i(Oc.Seeked),s),_r("volumechange",i(Oc.VolumeChange),s),_r("ratechange",i(Oc.RateChange),s)];return bt(()=>{u.forEach(c=>c())})}function m3e({fontCb:t,doc:e}){const n=e.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=Su(e.fonts,"add",function(u){return function(c){return setTimeout(bt(()=>{const f=a.get(c);f&&(t(f),a.delete(c))}),0),u.apply(this,[c])}});return r.push(()=>{n.FontFace=s}),r.push(i),bt(()=>{r.forEach(u=>u())})}function g3e(t){const{doc:e,mirror:n,blockClass:r,blockSelector:a,selectionCb:s}=t;let i=!0;const u=bt(()=>{const c=e.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;kr(y,r,a,!0)||kr(w,r,a,!0)||f.push({start:n.getId(y),startOffset:S,end:n.getId(w),endOffset:x})}s({ranges:f})});return u(),_r("selectionchange",u)}function v3e({doc:t,customElementCb:e}){const n=t.defaultView;return!n||!n.customElements?()=>{}:Su(n.customElements,"define",function(a){return function(s,i,u){try{e({define:{name:s}})}catch{console.warn(`Custom element callback failed for ${s}`)}return a.apply(this,[s,i,u])}})}function y3e(t,e){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}=t;t.mutationCb=(...w)=>{e.mutation&&e.mutation(...w),n(...w)},t.mousemoveCb=(...w)=>{e.mousemove&&e.mousemove(...w),r(...w)},t.mouseInteractionCb=(...w)=>{e.mouseInteraction&&e.mouseInteraction(...w),a(...w)},t.scrollCb=(...w)=>{e.scroll&&e.scroll(...w),s(...w)},t.viewportResizeCb=(...w)=>{e.viewportResize&&e.viewportResize(...w),i(...w)},t.inputCb=(...w)=>{e.input&&e.input(...w),u(...w)},t.mediaInteractionCb=(...w)=>{e.mediaInteaction&&e.mediaInteaction(...w),c(...w)},t.styleSheetRuleCb=(...w)=>{e.styleSheetRule&&e.styleSheetRule(...w),f(...w)},t.styleDeclarationCb=(...w)=>{e.styleDeclaration&&e.styleDeclaration(...w),h(...w)},t.canvasMutationCb=(...w)=>{e.canvasMutation&&e.canvasMutation(...w),m(...w)},t.fontCb=(...w)=>{e.font&&e.font(...w),g(...w)},t.selectionCb=(...w)=>{e.selection&&e.selection(...w),y(...w)},t.customElementCb=(...w)=>{e.customElement&&e.customElement(...w),S(...w)}}function b3e(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};y3e(t,e);let r;t.recordDOM&&(r=EH(t,t.doc));const a=i3e(t),s=l3e(t),i=_H(t),u=u3e(t,{win:n}),c=d3e(t),f=p3e(t);let h=()=>{},m=()=>{},g=()=>{},y=()=>{};t.recordDOM&&(h=f3e(t,{win:n}),m=kH(t,t.doc),g=h3e(t,{win:n}),t.collectFonts&&(y=m3e(t)));const S=g3e(t),w=v3e(t),x=[];for(const E of t.plugins)x.push(E.observer(E.callback,n,E.options));return bt(()=>{Dl.forEach(E=>E.reset()),r?.disconnect(),a(),s(),i(),u(),c(),f(),h(),m(),g(),y(),S(),w(),x.forEach(E=>E())})}function Xg(t){return typeof window[t]<"u"}function Qg(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class N9{constructor(e){we(this,"iframeIdToRemoteIdMap",new WeakMap),we(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,n,r,a){const s=r||this.getIdToRemoteIdMap(e),i=a||this.getRemoteIdToIdMap(e);let u=s.get(n);return u||(u=this.generateIdFn(),s.set(n,u),i.set(u,n)),u}getIds(e,n){const r=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return n.map(s=>this.getId(e,s,r,a))}getRemoteId(e,n,r){const a=r||this.getRemoteIdToIdMap(e);if(typeof n!="number")return n;const s=a.get(n);return s||-1}getRemoteIds(e,n){const r=this.getRemoteIdToIdMap(e);return n.map(a=>this.getRemoteId(e,a,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let n=this.iframeIdToRemoteIdMap.get(e);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(e,n)),n}getRemoteIdToIdMap(e){let n=this.iframeRemoteIdToIdMap.get(e);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(e,n)),n}}class S3e{constructor(e){we(this,"iframes",new WeakMap),we(this,"crossOriginIframeMap",new WeakMap),we(this,"crossOriginIframeMirror",new N9(B$)),we(this,"crossOriginIframeStyleMirror"),we(this,"crossOriginIframeRootIdMap",new WeakMap),we(this,"mirror"),we(this,"mutationCb"),we(this,"wrappedEmit"),we(this,"loadListener"),we(this,"stylesheetManager"),we(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new N9(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,n){var r,a;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((r=e.contentWindow)==null||r.addEventListener("message",this.handleMessage.bind(this))),(a=this.loadListener)==null||a.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const n=e;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!e.source)return;const a=this.crossOriginIframeMap.get(e.source);if(!a)return;const s=this.transformCrossOriginEvent(a,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(e,n){var r;switch(n.type){case _t.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(n.data.node,e);const a=n.data.node.id;return this.crossOriginIframeRootIdMap.set(e,a),this.patchRootIdOnNode(n.data.node,a),{timestamp:n.timestamp,type:_t.IncrementalSnapshot,data:{source:gt.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case _t.Meta:case _t.Load:case _t.DomContentLoaded:return!1;case _t.Plugin:return n;case _t.Custom:return this.replaceIds(n.data.payload,e,["id","parentId","previousId","nextId"]),n;case _t.IncrementalSnapshot:switch(n.data.source){case gt.Mutation:return n.data.adds.forEach(a=>{this.replaceIds(a,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(a.node,e);const s=this.crossOriginIframeRootIdMap.get(e);s&&this.patchRootIdOnNode(a.node,s)}),n.data.removes.forEach(a=>{this.replaceIds(a,e,["parentId","id"])}),n.data.attributes.forEach(a=>{this.replaceIds(a,e,["id"])}),n.data.texts.forEach(a=>{this.replaceIds(a,e,["id"])}),n;case gt.Drag:case gt.TouchMove:case gt.MouseMove:return n.data.positions.forEach(a=>{this.replaceIds(a,e,["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,e,["id"]),n;case gt.StyleSheetRule:case gt.StyleDeclaration:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleId"]),n;case gt.Font:return n;case gt.Selection:return n.data.ranges.forEach(a=>{this.replaceIds(a,e,["start","end"])}),n;case gt.AdoptedStyleSheet:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleIds"]),(r=n.data.styles)==null||r.forEach(a=>{this.replaceStyleIds(a,e,["styleId"])}),n}}return!1}replace(e,n,r,a){for(const s of a)!Array.isArray(n[s])&&typeof n[s]!="number"||(Array.isArray(n[s])?n[s]=e.getIds(r,n[s]):n[s]=e.getId(r,n[s]));return n}replaceIds(e,n,r){return this.replace(this.crossOriginIframeMirror,e,n,r)}replaceStyleIds(e,n,r){return this.replace(this.crossOriginIframeStyleMirror,e,n,r)}replaceIdOnNode(e,n){this.replaceIds(e,n,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(e,n){e.type!==xH.Document&&!e.rootId&&(e.rootId=n),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class w3e{constructor(e){we(this,"shadowDoms",new WeakSet),we(this,"mutationCb"),we(this,"scrollCb"),we(this,"bypassOptions"),we(this,"mirror"),we(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,n){if(!Ah(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=EH({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(_H({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(at.host(e))),this.restoreHandlers.push(kH({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,n){const r=this;this.restoreHandlers.push(Su(e.prototype,"attachShadow",function(a){return function(s){const i=a.call(this,s),u=at.shadowRoot(this);return u&&wH(this)&&r.addShadowRoot(u,n),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var $c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",x3e=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Jg=0;Jg<$c.length;Jg++)x3e[$c.charCodeAt(Jg)]=Jg;var C3e=function(t){var e=new Uint8Array(t),n,r=e.length,a="";for(n=0;n<r;n+=3)a+=$c[e[n]>>2],a+=$c[(e[n]&3)<<4|e[n+1]>>4],a+=$c[(e[n+1]&15)<<2|e[n+2]>>6],a+=$c[e[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 M9=new Map;function E3e(t,e){let n=M9.get(t);return n||(n=new Map,M9.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}const AH=(t,e,n)=>{if(!t||!(IH(t,e)||typeof t=="object"))return;const r=t.constructor.name,a=E3e(n,r);let s=a.indexOf(t);return s===-1&&(s=a.length,a.push(t)),s};function N0(t,e,n){if(t instanceof Array)return t.map(r=>N0(r,e,n));if(t===null)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer){const r=t.constructor.name,a=C3e(t);return{rr_type:r,base64:a}}else{if(t instanceof DataView)return{rr_type:t.constructor.name,args:[N0(t.buffer,e,n),t.byteOffset,t.byteLength]};if(t instanceof HTMLImageElement){const r=t.constructor.name,{src:a}=t;return{rr_type:r,src:a}}else if(t instanceof HTMLCanvasElement){const r="HTMLImageElement",a=t.toDataURL();return{rr_type:r,src:a}}else{if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[N0(t.data,e,n),t.width,t.height]};if(IH(t,e)||typeof t=="object"){const r=t.constructor.name,a=AH(t,e,n);return{rr_type:r,index:a}}}}return t}const RH=(t,e,n)=>t.map(r=>N0(r,e,n)),IH=(t,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(a=>typeof e[a]=="function").find(a=>t instanceof e[a]);function _3e(t,e,n,r){const a=[],s=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const i of s)try{if(typeof e.CanvasRenderingContext2D.prototype[i]!="function")continue;const u=Su(e.CanvasRenderingContext2D.prototype,i,function(c){return function(...f){return kr(this.canvas,n,r,!0)||setTimeout(()=>{const h=RH(f,e,this);t(this.canvas,{type:dd["2D"],property:i,args:h})},0),c.apply(this,f)}});a.push(u)}catch{const u=cy(e.CanvasRenderingContext2D.prototype,i,{set(c){t(this.canvas,{type:dd["2D"],property:i,args:[c],setter:!0})}});a.push(u)}return()=>{a.forEach(i=>i())}}function k3e(t){return t==="experimental-webgl"?"webgl":t}function P9(t,e,n,r){const a=[];try{const s=Su(t.HTMLCanvasElement.prototype,"getContext",function(i){return function(u,...c){if(!kr(this,e,n,!0)){const f=k3e(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 L9(t,e,n,r,a,s){const i=[],u=Object.getOwnPropertyNames(t);for(const c of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if(typeof t[c]!="function")continue;const f=Su(t,c,function(h){return function(...m){const g=h.apply(this,m);if(AH(g,s,this),"tagName"in this.canvas&&!kr(this.canvas,r,a,!0)){const y=RH(m,s,this),S={type:e,property:c,args:y};n(this.canvas,S)}return g}});i.push(f)}catch{const f=cy(t,c,{set(h){n(this.canvas,{type:e,property:c,args:[h],setter:!0})}});i.push(f)}return i}function A3e(t,e,n,r){const a=[];return a.push(...L9(e.WebGLRenderingContext.prototype,dd.WebGL,t,n,r,e)),typeof e.WebGL2RenderingContext<"u"&&a.push(...L9(e.WebGL2RenderingContext.prototype,dd.WebGL2,t,n,r,e)),()=>{a.forEach(s=>s())}}const TH="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",R3e=t=>Uint8Array.from(atob(t),e=>e.charCodeAt(0)),D9=typeof window<"u"&&window.Blob&&new Blob([R3e(TH)],{type:"text/javascript;charset=utf-8"});function I3e(t){let e;try{if(e=D9&&(window.URL||window.webkitURL).createObjectURL(D9),!e)throw"";const n=new Worker(e,{name:t?.name});return n.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(e)}),n}catch{return new Worker("data:text/javascript;base64,"+TH,{name:t?.name})}finally{e&&(window.URL||window.webkitURL).revokeObjectURL(e)}}class T3e{constructor(e){we(this,"pendingCanvasMutations",new Map),we(this,"rafStamps",{latestId:0,invokeId:null}),we(this,"mirror"),we(this,"mutationCb"),we(this,"resetObservers"),we(this,"frozen",!1),we(this,"locked",!1),we(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}=e;this.mutationCb=e.mutationCb,this.mirror=e.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(e,n,r,a,s){const i=P9(n,r,a,!0),u=new Map,c=new I3e;c.onmessage=S=>{const{id:w}=S.data;if(u.set(w,!1),!("base64"in S.data))return;const{base64:x,type:E,width:A,height:k}=S.data;this.mutationCb({id:w,type:dd["2D"],commands:[{property:"clearRect",args:[0,0,A,k]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:x}],type:E}]},0,0]}]})};const f=1e3/e;let h=0,m;const g=()=>{const S=[];return n.document.querySelectorAll("canvas").forEach(w=>{kr(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 E=this.mirror.getId(w);if(u.get(E)||w.width===0||w.height===0)return;if(u.set(E,!0),["webgl","webgl2"].includes(w.__context)){const k=w.getContext(w.__context);((x=k?.getContextAttributes())==null?void 0:x.preserveDrawingBuffer)===!1&&k.clear(k.COLOR_BUFFER_BIT)}const A=await createImageBitmap(w);c.postMessage({id:E,bitmap:A,width:w.width,height:w.height,dataURLOptions:s.dataURLOptions},[A])}),m=requestAnimationFrame(y)};m=requestAnimationFrame(y),this.resetObservers=()=>{i(),cancelAnimationFrame(m)}}initCanvasMutationObserver(e,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const a=P9(e,n,r,!1),s=_3e(this.processMutation.bind(this),e,n,r),i=A3e(this.processMutation.bind(this),e,n,r);this.resetObservers=()=>{a(),s(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=n=>{this.rafStamps.latestId=n,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);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(e)}}class O3e{constructor(e){we(this,"trackedLinkElements",new WeakSet),we(this,"mutationCb"),we(this,"adoptedStyleSheetCb"),we(this,"styleMirror",new QEe),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,n){if(e.length===0)return;const r={id:n,styleIds:[]},a=[];for(const s of e){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:z$(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(e){}}class N3e{constructor(){we(this,"nodeMap",new WeakMap),we(this,"active",!1)}inOtherBuffer(e,n){const r=this.nodeMap.get(e);return r&&Array.from(r).some(a=>a!==n)}add(e,n){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(n))}destroy(){}}let wn,M0,gE,P1=!1;try{if(Array.from([1],t=>t*2)[0]!==2){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=((zP=t.contentWindow)==null?void 0:zP.Array.from)||Array.from,document.body.removeChild(t)}}catch(t){console.debug("Unable to override Array.from",t)}const Ba=Pwe();function Lp(t={}){const{emit:e,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:E,sampling:A={},dataURLOptions:k={},mousemoveWait:I,recordDOM:N=!0,recordCanvas:O=!1,recordCrossOriginIframes:T=!1,recordAfter:P=t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load",userTriggeredOnInput:D=!1,collectFonts:q=!1,inlineImages:U=!1,plugins:j,keepIframeSrcFn:$=()=>!1,ignoreCSSAttributes:Z=new Set([]),errorHandler:ne}=t;s3e(ne);const H=T?window.parent===window:!0;let X=!1;if(!H)try{window.parent.document&&(X=!1)}catch{X=!0}if(H&&!e)throw new Error("emit function is required");if(!H&&!X)return()=>{};I!==void 0&&A.mousemove===void 0&&(A.mousemove=I),Ba.reset();const ae=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},he=V$(y);XEe();let xe,z=0;const V=Le=>{for(const De of j||[])De.eventProcessor&&(Le=De.eventProcessor(Le));return E&&!X&&(Le=E(Le)),Le};wn=(Le,De)=>{var je;const Ee=Le;if(Ee.timestamp=N1(),(je=Dl[0])!=null&&je.isFrozen()&&Ee.type!==_t.FullSnapshot&&!(Ee.type===_t.IncrementalSnapshot&&Ee.data.source===gt.Mutation)&&Dl.forEach(Ut=>Ut.unfreeze()),H)e?.(V(Ee),De);else if(X){const Ut={type:"rrweb",event:V(Ee),origin:window.location.origin,isCheckout:De};window.parent.postMessage(Ut,"*")}if(Ee.type===_t.FullSnapshot)xe=Ee,z=0;else if(Ee.type===_t.IncrementalSnapshot){if(Ee.data.source===gt.Mutation&&Ee.data.isAttachIframe)return;z++;const Ut=r&&z>=r,Te=n&&Ee.timestamp-xe.timestamp>n;(Ut||Te)&&M0(!0)}};const K=Le=>{wn({type:_t.IncrementalSnapshot,data:{source:gt.Mutation,...Le}})},J=Le=>wn({type:_t.IncrementalSnapshot,data:{source:gt.Scroll,...Le}}),G=Le=>wn({type:_t.IncrementalSnapshot,data:{source:gt.CanvasMutation,...Le}}),ue=Le=>wn({type:_t.IncrementalSnapshot,data:{source:gt.AdoptedStyleSheet,...Le}}),oe=new O3e({mutationCb:K,adoptedStyleSheetCb:ue}),ce=new S3e({mirror:Ba,mutationCb:K,stylesheetManager:oe,recordCrossOriginIframes:T,wrappedEmit:wn});for(const Le of j||[])Le.getMirror&&Le.getMirror({nodeMirror:Ba,crossOriginIframeMirror:ce.crossOriginIframeMirror,crossOriginIframeStyleMirror:ce.crossOriginIframeStyleMirror});const be=new N3e;gE=new T3e({recordCanvas:O,mutationCb:G,win:window,blockClass:a,blockSelector:s,mirror:Ba,sampling:A.canvas,dataURLOptions:k});const Qe=new w3e({mutationCb:K,scrollCb:J,bypassOptions:{blockClass:a,blockSelector:s,maskTextClass:c,maskTextSelector:f,inlineStylesheet:h,maskInputOptions:ae,dataURLOptions:k,maskTextFn:w,maskInputFn:S,recordCanvas:O,inlineImages:U,sampling:A,slimDOMOptions:he,iframeManager:ce,stylesheetManager:oe,canvasManager:gE,keepIframeSrcFn:$,processedNodeManager:be},mirror:Ba});M0=(Le=!1)=>{if(!N)return;wn({type:_t.Meta,data:{href:window.location.href,width:mH(),height:pH()}},Le),oe.reset(),Qe.init(),Dl.forEach(je=>je.lock());const De=axe(document,{mirror:Ba,blockClass:a,blockSelector:s,maskTextClass:c,maskTextSelector:f,inlineStylesheet:h,maskAllInputs:ae,maskTextFn:w,maskInputFn:S,slimDOM:he,dataURLOptions:k,recordCanvas:O,inlineImages:U,onSerialize:je=>{yH(je,Ba)&&ce.addIframe(je),bH(je,Ba)&&oe.trackLinkElement(je),S_(je)&&Qe.addShadowRoot(at.shadowRoot(je),document)},onIframeLoad:(je,Ee)=>{ce.attachIframe(je,Ee),Qe.observeAttachShadow(je)},onStylesheetLoad:(je,Ee)=>{oe.attachLinkElement(je,Ee)},keepIframeSrcFn:$});if(!De)return console.warn("Failed to snapshot the document");wn({type:_t.FullSnapshot,data:{node:De,initialOffset:hH(window)}},Le),Dl.forEach(je=>je.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&oe.adoptStyleSheets(document.adoptedStyleSheets,Ba.getId(document))};try{const Le=[],De=Ee=>{var Ut;return bt(b3e)({mutationCb:K,mousemoveCb:(Te,Bn)=>wn({type:_t.IncrementalSnapshot,data:{source:Bn,positions:Te}}),mouseInteractionCb:Te=>wn({type:_t.IncrementalSnapshot,data:{source:gt.MouseInteraction,...Te}}),scrollCb:J,viewportResizeCb:Te=>wn({type:_t.IncrementalSnapshot,data:{source:gt.ViewportResize,...Te}}),inputCb:Te=>wn({type:_t.IncrementalSnapshot,data:{source:gt.Input,...Te}}),mediaInteractionCb:Te=>wn({type:_t.IncrementalSnapshot,data:{source:gt.MediaInteraction,...Te}}),styleSheetRuleCb:Te=>wn({type:_t.IncrementalSnapshot,data:{source:gt.StyleSheetRule,...Te}}),styleDeclarationCb:Te=>wn({type:_t.IncrementalSnapshot,data:{source:gt.StyleDeclaration,...Te}}),canvasMutationCb:G,fontCb:Te=>wn({type:_t.IncrementalSnapshot,data:{source:gt.Font,...Te}}),selectionCb:Te=>{wn({type:_t.IncrementalSnapshot,data:{source:gt.Selection,...Te}})},customElementCb:Te=>{wn({type:_t.IncrementalSnapshot,data:{source:gt.CustomElement,...Te}})},blockClass:a,ignoreClass:i,ignoreSelector:u,maskTextClass:c,maskTextSelector:f,maskInputOptions:ae,inlineStylesheet:h,sampling:A,recordDOM:N,recordCanvas:O,inlineImages:U,userTriggeredOnInput:D,collectFonts:q,doc:Ee,maskInputFn:S,maskTextFn:w,keepIframeSrcFn:$,blockSelector:s,slimDOMOptions:he,dataURLOptions:k,mirror:Ba,iframeManager:ce,stylesheetManager:oe,shadowDomManager:Qe,processedNodeManager:be,canvasManager:gE,ignoreCSSAttributes:Z,plugins:((Ut=j?.filter(Te=>Te.observer))==null?void 0:Ut.map(Te=>({observer:Te.observer,options:Te.options,callback:Bn=>wn({type:_t.Plugin,data:{plugin:Te.name,payload:Bn}})})))||[]},x)};ce.addLoadListener(Ee=>{try{Le.push(De(Ee.contentDocument))}catch(Ut){console.warn(Ut)}});const je=()=>{M0(),Le.push(De(document)),P1=!0};return["interactive","complete"].includes(document.readyState)?je():(Le.push(_r("DOMContentLoaded",()=>{wn({type:_t.DomContentLoaded,data:{}}),P==="DOMContentLoaded"&&je()})),Le.push(_r("load",()=>{wn({type:_t.Load,data:{}}),P==="load"&&je()},window))),()=>{Le.forEach(Ee=>{try{Ee()}catch(Ut){String(Ut).toLowerCase().includes("cross-origin")||console.warn(Ut)}}),be.destroy(),P1=!1,o3e()}}catch(Le){console.warn(Le)}}Lp.addCustomEvent=(t,e)=>{if(!P1)throw new Error("please add custom event after start recording");wn({type:_t.Custom,data:{tag:t,payload:e}})};Lp.freezePage=()=>{Dl.forEach(t=>t.freeze())};Lp.takeFullSnapshot=t=>{if(!P1)throw new Error("please take full snapshot after start recording");M0(t)};Lp.mirror=Ba;var U9;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(U9||(U9={}));const M3e="rrweb",P3e={maskAllInputs:!0,maskTextSelector:"*",maskInputOptions:void 0},L3e={additionalSampleRate:1,batchSize:50,flushInterval:5e3,recordOptions:{slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,recordCrossOriginIframes:!1}},j9=L3e;class D3e extends Ma{constructor(e){super(M3e),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({},j9.recordOptions),e?.recordOptions),P3e);this.config=Object.assign(Object.assign(Object.assign({},j9),e),{recordOptions:n}),Se.info("RRWebPlugin initialized",{additionalSampleRate:this.config.additionalSampleRate,batchSize:this.config.batchSize,flushInterval:this.config.flushInterval})}enable(){var e;if(this.enabled){Se.info("RRWebPlugin already enabled");return}const n=(e=this.context)===null||e===void 0?void 0:e.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(e){const n=e?.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 e=Lp(Object.assign(Object.assign({},this.config.recordOptions),{emit:this.handleRRWebEvent.bind(this)}));e?(this.stopRecording=e,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(e){this.isRecording&&(this.recordingEvents.push(e),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 e=[...this.recordingEvents],n={version:"1.0.0",events:e,eventCount:e.length};this.context.record(CP,n),Se.info("RRWebPlugin events sent to RUM",{eventType:CP,eventCount:this.recordingEvents.length}),this.recordingEvents=[]}}var U3e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n},x_;(function(t){t.Path="PATH",t.Hash="HASH",t.PathAndHash="PATH_AND_HASH"})(x_||(x_={}));const OH="us-west-2",C_=`https://dataplane.rum.${OH}.amazonaws.com`,NH=()=>({unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}),MH=t=>({allowCookies:!1,batchLimit:100,client:ibe,compressionStrategy:{enabled:!0},cookieAttributes:t,debug:!1,disableAutoPageView:!1,dispatchInterval:5*1e3,enableRumClient:!0,enableXRay:!1,endpoint:C_,endpointUrl:new URL(C_),eventCacheSize:1e3,eventPluginsToLoad:[],pageIdFormat:x_.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 j3e=class{constructor(e,n,r,a={}){var{cookieAttributes:s}=a,i=U3e(a,["cookieAttributes"]);this.eventBus=new C$,typeof r>"u"&&(r="us-west-2"),this.applicationId=e;const u=Object.assign(Object.assign({},NH()),s);this.config=Object.assign(Object.assign({fetchFunction:fetch},MH(u)),i),this.config.sessionId&&(this.config.suppressSessionStartEvent=!0),this.config.endpoint=i.endpoint?i.endpoint:C_.replace(OH,r),this.config.endpointUrl=new URL(this.config.endpoint),Se.configure(this.config.debug),Se.info("Initialized RUM Slim"),this.eventCache=new ySe({id:e,version:n},this.config,this.eventBus),this.dispatchManager=this.initDispatch(r,e),this.pluginManager=this.initPluginManager(e,n),this.eventCache.setPluginFlushHook(()=>this.pluginManager.flush()),this.config.enableRumClient?this.enable():this.disable()}setAwsCredentials(e){this.dispatchManager.setAwsCredentials(e)}setSigningConfigFactory(e){this.dispatchManager.setSigningConfigFactory(e)}addSessionAttributes(e){this.eventCache.addSessionAttributes(e)}getSessionId(){return this.eventCache.getSessionId()}pinSessionId(e){this.eventCache.pinSessionId(e)}startSession(e){return this.eventCache.startSession(e)}getUserId(){return this.eventCache.getUserId()}pinUserId(e){this.eventCache.pinUserId(e)}setEventMetadataHook(e){this.eventCache.setEventMetadataHook(e)}clearEventMetadataHook(){this.eventCache.clearEventMetadataHook()}addPlugin(e){this.pluginManager.addPlugin(e)}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(e){this.config.allowCookies=e}clearCookies(){const e=this.config.cookieAttributes;[h1,p1,ad,`${h1}_${this.applicationId}`,`${p1}_${this.applicationId}`,`${ad}_${this.applicationId}`].forEach(r=>cSe(r,e))}recordPageView(e){this.eventCache.recordPageView(e)}recordError(e){this.pluginManager.record("com.amazonaws.rum.js-error",e)}registerDomEvents(e){this.pluginManager.updatePlugin("com.amazonaws.rum.dom-event",e)}recordEvent(e,n,r){this.eventCache.recordEvent(e,n,r)}initDispatch(e,n){return new lbe(n,e,this.config.endpointUrl,this.eventCache,this.config)}initPluginManager(e,n){const r={applicationId:e,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 uSe(r);return this.config.disableAutoPageView||a.addPlugin(new DSe),this.config.eventPluginsToLoad.forEach(s=>{a.addPlugin(s)}),a}};var Ya;(function(t){t.Errors="errors",t.Performance="performance",t.Interaction="interaction",t.Http="http",t.Replay="replay"})(Ya||(Ya={}));var z9;(function(t){t.Path="PATH",t.Hash="HASH",t.PathAndHash="PATH_AND_HASH"})(z9||(z9={}));const z3e=t=>Object.assign(Object.assign({},MH(t)),{signing:!0,telemetries:[Ya.Errors,Ya.Performance,Ya.Http,Ya.Replay]});class F3e extends j3e{constructor(e,n,r,a={}){super(e,n,r,Object.assign(Object.assign({},z3e(NH())),a)),Se.info(`RUM client initialized for app: ${e}`),Se.info(`Telemetries enabled: ${this.config.telemetries.join(", ")||"none"}`)}initDispatch(e,n){const r=super.initDispatch(e,n);return r.setSigningConfigFactory(Ube),r.setCognitoCredentialProviderFactory((a,s,i,u)=>{const c={identityPoolId:i,guestRoleArn:u,cookieAttributes:a.cookieAttributes};return i&&u?new Jbe(c,s).ChainAnonymousCredentialsProvider:new eSe(c,s).ChainAnonymousCredentialsProvider}),this.config.signing&&this.config.identityPoolId&&r.setCognitoCredentials(this.config.identityPoolId,this.config.guestRoleArn),r}initPluginManager(e,n){const r=super.initPluginManager(e,n);return this.constructBuiltinPlugins().forEach(s=>{r.addPlugin(s)}),r}recordError(e){this.pluginManager.record(k$,e)}registerDomEvents(e){this.pluginManager.updatePlugin(E$,e)}constructBuiltinPlugins(){let e=[];const n=this.telemetryFunctor();return this.config.telemetries.forEach(r=>{typeof r=="string"&&n[r.toLowerCase()]?e=[...e,...n[r.toLowerCase()]({})]:Array.isArray(r)&&n[r[0].toLowerCase()]&&(e=[...e,...n[r[0].toLowerCase()](r[1])])}),e}telemetryFunctor(){return{[Ya.Errors]:e=>[new ISe(e)],[Ya.Performance]:e=>[new NSe(e),new jSe(e),new awe(e)],[Ya.Interaction]:e=>[new jA(e)],[Ya.Http]:e=>[new uwe(e),new owe(e)],[Ya.Replay]:e=>[new D3e(e)]}}}const PH={recordPageView:()=>{},recordError:()=>{},recordEvent:()=>{},recordTiming:()=>{}},$3e=/([?&](token|access_token|id_token|authorization)=[^&]*)|\/messages\/[a-z0-9_-]+/gi;function LH(t){return t.replace($3e,"[redacted]")}function B3e(t){const e=t.indexOf("?"),n=t.indexOf("#"),r=e===-1&&n===-1?t.length:e===-1?n:n===-1?e:Math.min(e,n);return LH(t.slice(0,r))}function H3e(t){const e=LH(t.message);if(e===t.message)return t;const n=new Error(e);return n.name=t.name,n.stack=t.stack,n}function q3e(t){return{recordPageView(e){t.recordPageView(B3e(e))},recordError(e,n){t.recordError(H3e(e)),n&&t.recordEvent("telemetry.error_context",n)},recordEvent(e,n){t.recordEvent(e,n??{})},recordTiming(e,n,r){t.recordEvent("telemetry.timing",{...r,name:e,durationMs:String(n)})}}}function F9(t){return t instanceof Error?t:new Error(String(t))}function W3e(t){window.addEventListener("error",e=>{t.recordError(F9(e.error??e.message))}),window.addEventListener("unhandledrejection",e=>{t.recordError(F9(e.reason))})}function V3e(){const{appMonitorId:t,identityPoolId:e,region:n}=nv().rum;if(!t)return PH;const r=new F3e(t,"1.0.0",n,{sessionSampleRate:1,identityPoolId:e,endpoint:`https://dataplane.rum.${n}.amazonaws.com`,telemetries:["performance"],disableAutoPageView:!0,allowCookies:!1,enableXRay:!1}),a=q3e(r);return W3e(a),a}const DH=_.createContext(PH);function bOe(){return _.useContext(DH)}const E_="remit.theme",G3e="dark";function $9(){return typeof localStorage>"u"?"system":localStorage.getItem(E_)??"system"}function __(t){if(typeof document>"u")return;const e=t==="dark"||t==="system"&&typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle(G3e,e)}function SOe(t){typeof localStorage<"u"&&(t==="system"?localStorage.removeItem(E_):localStorage.setItem(E_,t)),__(t)}const K3e=()=>{if(typeof window>"u"||(__($9()),typeof window.matchMedia!="function"))return;const t=window.matchMedia("(prefers-color-scheme: dark)"),e=()=>{__($9())};typeof t.addEventListener=="function"?t.addEventListener("change",e):t.addListener(e)},Y3e=(t,e,n,r)=>{const a=[n,{code:e,...r||{}}];if(t?.services?.logger?.forward)return t.services.logger.forward(a,"warn","react-i18next::",!0);Vl(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),t?.services?.logger?.warn?t.services.logger.warn(...a):console?.warn&&console.warn(...a)},B9={},k_=(t,e,n,r)=>{Vl(n)&&B9[n]||(Vl(n)&&(B9[n]=new Date),Y3e(t,e,n,r))},UH=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},A_=(t,e,n)=>{t.loadNamespaces(e,UH(t,n))},H9=(t,e,n,r)=>{if(Vl(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return A_(t,n,r);n.forEach(a=>{t.options.ns.indexOf(a)<0&&t.options.ns.push(a)}),t.loadLanguages(e,UH(t,r))},Z3e=(t,e,n={})=>!e.languages||!e.languages.length?(k_(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(r,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!a(r.isLanguageChangingTo,t))return!1}}),Vl=t=>typeof t=="string",X3e=t=>typeof t=="object"&&t!==null,Q3e=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,J3e={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},e_e=t=>J3e[t],t_e=t=>t.replace(Q3e,e_e);let R_={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:t_e};const n_e=(t={})=>{R_={...R_,...t}},r_e=()=>R_;let jH;const a_e=t=>{jH=t},s_e=()=>jH,o_e={type:"3rdParty",init(t){n_e(t.options.react),a_e(t)}},i_e=_.createContext();class l_e{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const u_e=(t,e)=>{const n=_.useRef();return _.useEffect(()=>{n.current=t},[t,e]),n.current},zH=(t,e,n,r)=>t.getFixedT(e,n,r),c_e=(t,e,n,r)=>_.useCallback(zH(t,e,n,r),[t,e,n,r]),FH=(t,e={})=>{const{i18n:n}=e,{i18n:r,defaultNS:a}=_.useContext(i_e)||{},s=n||r||s_e();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new l_e),!s){k_(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const I=(O,T)=>Vl(T)?T:X3e(T)&&Vl(T.defaultValue)?T.defaultValue:Array.isArray(O)?O[O.length-1]:O,N=[I,{},!1];return N.t=I,N.i18n={},N.ready=!1,N}s.options.react?.wait&&k_(s,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...r_e(),...s.options.react,...e},{useSuspense:u,keyPrefix:c}=i;let f=t||a||s.options?.defaultNS;f=Vl(f)?[f]:f||["translation"],s.reportNamespaces.addUsedNamespaces?.(f);const h=(s.isInitialized||s.initializedStoreOnce)&&f.every(I=>Z3e(I,s,i)),m=c_e(s,e.lng||null,i.nsMode==="fallback"?f:f[0],c),g=()=>m,y=()=>zH(s,e.lng||null,i.nsMode==="fallback"?f:f[0],c),[S,w]=_.useState(g);let x=f.join();e.lng&&(x=`${e.lng}${x}`);const E=u_e(x),A=_.useRef(!0);_.useEffect(()=>{const{bindI18n:I,bindI18nStore:N}=i;A.current=!0,!h&&!u&&(e.lng?H9(s,e.lng,f,()=>{A.current&&w(y)}):A_(s,f,()=>{A.current&&w(y)})),h&&E&&E!==x&&A.current&&w(y);const O=()=>{A.current&&w(y)};return I&&s?.on(I,O),N&&s?.store.on(N,O),()=>{A.current=!1,s&&I&&I?.split(" ").forEach(T=>s.off(T,O)),N&&s&&N.split(" ").forEach(T=>s.store.off(T,O))}},[s,x]),_.useEffect(()=>{A.current&&h&&w(g)},[s,c,h]);const k=[S,s,h];if(k.t=S,k.i18n=s,k.ready=h,h||!h&&!u)return k;throw new Promise(I=>{e.lng?H9(s,e.lng,f,()=>I()):A_(s,f,()=>I())})},d_e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts",...t,headers:{"Content-Type":"application/json",...t.headers}}),f_e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/oauth/microsoft/start",...t,headers:{"Content-Type":"application/json",...t.headers}}),h_e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/test-connection",...t,headers:{"Content-Type":"application/json",...t.headers}}),p_e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}",...t}),m_e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),g_e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters",...t}),v_e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters",...t,headers:{"Content-Type":"application/json",...t.headers}}),y_e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters/{filterId}",...t}),b_e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters/{filterId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),S_e=t=>(t.client??Pe).put({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/folder-roles/{role}",...t,headers:{"Content-Type":"application/json",...t.headers}}),w_e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels",...t}),x_e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels",...t,headers:{"Content-Type":"application/json",...t.headers}}),C_e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels/{labelId}",...t}),E_e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels/{labelId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),__e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes",...t}),k_e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes",...t,headers:{"Content-Type":"application/json",...t.headers}}),wOe=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes/{mailboxId}",...t}),A_e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes/{mailboxId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),R_e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize",...t,headers:{"Content-Type":"application/json",...t.headers}}),I_e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize/preview",...t,headers:{"Content-Type":"application/json",...t.headers}}),T_e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize/{organizeJobId}",...t}),O_e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/sync",...t}),N_e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/sync/status",...t}),M_e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/trash/empty",...t}),P_e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/addresses/search",...t}),L_e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/addresses/{addressId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),D_e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/config",...t}),xOe=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/mailboxes/{mailboxId}/threads",...t}),U_e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/mailboxes/{mailboxId}/threads/search",...t}),j_e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/me",...t,headers:{"Content-Type":"application/json",...t.headers}}),z_e=t=>(t?.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/me/export",...t}),F_e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/me/quarantine",...t}),$_e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/me/vip-suggestions",...t}),B_e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/delete",...t,headers:{"Content-Type":"application/json",...t.headers}}),H_e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/flags",...t,headers:{"Content-Type":"application/json",...t.headers}}),q_e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/labels",...t,headers:{"Content-Type":"application/json",...t.headers}}),W_e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/move",...t,headers:{"Content-Type":"application/json",...t.headers}}),COe=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/not-spam",...t,headers:{"Content-Type":"application/json",...t.headers}}),EOe=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/report-spam",...t,headers:{"Content-Type":"application/json",...t.headers}}),V_e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}",...t}),G_e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}/flags",...t,headers:{"Content-Type":"application/json",...t.headers}}),K_e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}/raw",...t}),Y_e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox",...t}),Z_e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox",...t,headers:{"Content-Type":"application/json",...t.headers}}),X_e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...t}),Q_e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...t}),J_e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),eke=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}/send",...t}),tke=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/search/semantic",...t}),nke=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/system/update",...t}),rke=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/system/update",...t,headers:{"Content-Type":"application/json",...t.headers}}),ake=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/threads",...t}),ske=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/threads/{threadId}/messages",...t}),_Oe=t=>({mutationFn:async n=>{const{data:r}=await d_e({...t,...n,throwOnError:!0});return r}}),Pn=(t,e,n,r)=>{const a={_id:t,baseUrl:e?.baseUrl||(e?.client??Pe).getConfig().baseUrl};return e?.body&&(a.body=e.body),e?.headers&&(a.headers=e.headers),e?.path&&(a.path=e.path),e?.query&&(a.query=e.query),[a]},kOe=t=>({mutationFn:async n=>{const{data:r}=await f_e({...t,...n,throwOnError:!0});return r}}),AOe=t=>({mutationFn:async n=>{const{data:r}=await h_e({...t,...n,throwOnError:!0});return r}}),ROe=t=>({mutationFn:async n=>{const{data:r}=await p_e({...t,...n,throwOnError:!0});return r}}),IOe=t=>({mutationFn:async n=>{const{data:r}=await m_e({...t,...n,throwOnError:!0});return r}}),oke=t=>Pn("filterOperationsListFilters",t),TOe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await g_e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:oke(t)}),OOe=t=>({mutationFn:async n=>{const{data:r}=await v_e({...t,...n,throwOnError:!0});return r}}),NOe=t=>({mutationFn:async n=>{const{data:r}=await y_e({...t,...n,throwOnError:!0});return r}}),MOe=t=>Pn("filterDetailOperationsGetFilter",t),POe=t=>({mutationFn:async n=>{const{data:r}=await b_e({...t,...n,throwOnError:!0});return r}}),ike=t=>({mutationFn:async n=>{const{data:r}=await S_e({...t,...n,throwOnError:!0});return r}}),lke=t=>Pn("labelOperationsListLabels",t),LOe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await w_e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:lke(t)}),DOe=t=>({mutationFn:async n=>{const{data:r}=await x_e({...t,...n,throwOnError:!0});return r}}),UOe=t=>({mutationFn:async n=>{const{data:r}=await C_e({...t,...n,throwOnError:!0});return r}}),jOe=t=>({mutationFn:async n=>{const{data:r}=await E_e({...t,...n,throwOnError:!0});return r}}),$H=t=>Pn("mailboxOperationsListMailboxes",t),I_=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await __e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:$H(t)}),uke=t=>({mutationFn:async n=>{const{data:r}=await k_e({...t,...n,throwOnError:!0});return r}}),zOe=t=>({mutationFn:async n=>{const{data:r}=await A_e({...t,...n,throwOnError:!0});return r}}),FOe=t=>({mutationFn:async n=>{const{data:r}=await R_e({...t,...n,throwOnError:!0});return r}}),$Oe=t=>({mutationFn:async n=>{const{data:r}=await I_e({...t,...n,throwOnError:!0});return r}}),cke=t=>Pn("organizeJobDetailOperationsGetOrganizeJob",t),BOe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await T_e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:cke(t)}),HOe=t=>({mutationFn:async n=>{const{data:r}=await O_e({...t,...n,throwOnError:!0});return r}}),dke=t=>Pn("syncOperationsGetSyncStatus",t),qOe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await N_e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:dke(t)}),WOe=t=>({mutationFn:async n=>{const{data:r}=await M_e({...t,...n,throwOnError:!0});return r}}),fke=t=>Pn("addressOperationsSearchAddresses",t),VOe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await P_e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:fke(t)}),GOe=t=>({mutationFn:async n=>{const{data:r}=await L_e({...t,...n,throwOnError:!0});return r}}),BH=t=>Pn("configOperationsGetConfig",t),HH=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await D_e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:BH(t)}),KOe=t=>Pn("threadOperationsListThreads",t),hke=t=>Pn("threadOperationsSearchThreads",t),YOe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await U_e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:hke(t)}),ZOe=t=>({mutationFn:async n=>{const{data:r}=await j_e({...t,...n,throwOnError:!0});return r}}),XOe=t=>({mutationFn:async n=>{const{data:r}=await z_e({...t,...n,throwOnError:!0});return r}}),pke=t=>Pn("meOperationsListQuarantine",t),QOe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await F_e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:pke(t)}),mke=t=>Pn("meOperationsListVipSuggestions",t),JOe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await $_e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:mke(t)}),e6e=t=>({mutationFn:async n=>{const{data:r}=await B_e({...t,...n,throwOnError:!0});return r}}),t6e=t=>({mutationFn:async n=>{const{data:r}=await H_e({...t,...n,throwOnError:!0});return r}}),n6e=t=>({mutationFn:async n=>{const{data:r}=await q_e({...t,...n,throwOnError:!0});return r}}),r6e=t=>({mutationFn:async n=>{const{data:r}=await W_e({...t,...n,throwOnError:!0});return r}}),gke=t=>Pn("messageOperationsDescribeMessage",t),a6e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await V_e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:gke(t)}),s6e=t=>({mutationFn:async n=>{const{data:r}=await G_e({...t,...n,throwOnError:!0});return r}}),vke=t=>Pn("messageOperationsGetRawMessage",t),o6e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await K_e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:vke(t)}),qH=t=>Pn("outboxOperationsListOutboxMessages",t),i6e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await Y_e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:qH(t)}),l6e=t=>({mutationFn:async n=>{const{data:r}=await Z_e({...t,...n,throwOnError:!0});return r}}),u6e=t=>({mutationFn:async n=>{const{data:r}=await X_e({...t,...n,throwOnError:!0});return r}}),yke=t=>Pn("outboxDetailOperationsGetOutboxMessage",t),bke=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await Q_e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:yke(t)}),c6e=t=>({mutationFn:async n=>{const{data:r}=await J_e({...t,...n,throwOnError:!0});return r}}),d6e=t=>({mutationFn:async n=>{const{data:r}=await eke({...t,...n,throwOnError:!0});return r}}),Ske=t=>Pn("semanticSearchOperationsSemanticSearch",t),f6e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await tke({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:Ske(t)}),WH=t=>Pn("systemOperationsGetSystemUpdate",t),wke=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await nke({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:WH(t)}),xke=t=>({mutationFn:async n=>{const{data:r}=await rke({...t,...n,throwOnError:!0});return r}}),Cke=t=>Pn("unifiedThreadOperationsListAllThreads",t),Eke=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await ake({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:Cke(t)}),_ke=t=>Pn("threadDetailOperationsListThreadMessages",t),h6e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await ske({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:_ke(t)}),VH=_.createContext(void 0),kke=2e3,Ake=6e4,Rke=({children:t})=>{const[e,n]=_.useState(),r=_.useRef(0),a=Nd(),{data:s}=Vh({...bke({path:{outboxMessageId:e??""}}),enabled:!!e,refetchInterval:c=>{const f=c.state.data?.status;return f==="sent"||f==="unfiled"||f==="failed"||f==="blocked"||Date.now()-r.current>Ake?!1:kke}});_.useEffect(()=>{if(!s||!e)return;(s.status==="sent"||s.status==="unfiled"||s.status==="failed"||s.status==="blocked")&&(n(void 0),a.invalidateQueries({queryKey:qH()}))},[s,e,a]);const i=_.useCallback(c=>{r.current=Date.now(),n(c)},[]),u=_.useMemo(()=>({startSendPolling:i}),[i]);return C.jsx(VH.Provider,{value:u,children:t})},p6e=()=>{const t=_.useContext(VH);if(!t)throw new Error("useCompose must be used within a ComposeProvider");return t},Ike={Inbox:"Inbox",Drafts:"Drafts",Sent:"Sent",Archive:"Archive",Junk:"Junk",Trash:"Trash",All:"All",Flagged:"Flagged"},q9={synced:"synced",failed:"failed"},m6e={uncategorized:"uncategorized",personal:"personal",newsletter:"newsletter",marketing:"marketing",automated:"automated",transactional:"transactional",social:"social"},g6e={Lookalike:"Lookalike",ForeignAddress:"ForeignAddress",Unrelated:"Unrelated"},v6e={MoveToInbox:"MoveToInbox",MoveToJunk:"MoveToJunk"},y6e={Attachment:"attachment"},Tke=new Set(["none","stale","unconfirmed"]),Oke=new Set(Object.values(Ike)),GH=t=>typeof t=="object"&&t!==null?t:void 0,vE=(t,e)=>{const n=t?.[e];return typeof n=="string"?n:void 0},b6e=t=>{const e=GH(t);if(e?.code!=="folder_role_unresolved")return;const{details:n}=e;if(typeof n!="object"||n===null)return;const r=vE(n,"reason"),a=vE(n,"role"),s=vE(n,"accountId");if(!(!r||!Tke.has(r))&&!(!a||!Oke.has(a)||!s))return{reason:r,role:a,accountId:s}},Nke=t=>GH(t)?.code==="mailbox_not_settled",yE={Inbox:"inbox",Drafts:"drafts",Sent:"sent",Archive:"archive",Junk:"junk",Trash:"trash",All:"all",Flagged:"flagged"},S6e={inbox:"Inbox",drafts:"Drafts",sent:"Sent",archive:"Archive",junk:"Junk",trash:"Trash",all:"All",flagged:"Flagged"},cp=["inbox","flagged","drafts","sent","archive","all","junk","trash"];function dy(t){const e=new Map,n=[...t].sort((r,a)=>cp.indexOf(yE[r.role])-cp.indexOf(yE[a.role]));for(const r of n){if(!r.mailboxId||e.has(r.mailboxId))continue;const a=yE[r.role];a&&e.set(r.mailboxId,a)}return e}const dp=t=>{const e=t.split("/");return e[e.length-1]||t};function KH(t,e,n){const r=t.displayNameOverride?.trim();if(r)return r;const a=dp(t.fullPath);return!e||!n?a:n(`sidebar.${e}`,a)}const Mke=new Set(["sent","drafts","trash"]),w6e=t=>t===void 0||!Mke.has(t),Pke=3e4,Lke=1e3,Dke="The folder couldn't be created on the mail server. Please try again.",Uke="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.",jke=(t,e)=>new Promise((n,r)=>{if(e?.aborted){r(e.reason);return}const a=setTimeout(()=>{e?.removeEventListener("abort",s),n()},t),s=()=>{clearTimeout(a),r(e?.reason)};e?.addEventListener("abort",s,{once:!0})});async function zke({fetchMailboxes:t,mailboxId:e,signal:n,timeoutMs:r=Pke,pollIntervalMs:a=Lke,delay:s=jke,now:i=Date.now}){const u=i()+r;for(;;){n?.throwIfAborted();const f=(await t()).find(h=>h.mailboxId===e);if(f?.syncStatus===q9.synced)return f;if(f?.syncStatus===q9.failed)throw new Error(Dke);if(i()>=u)throw new Error(Uke);await s(a,n)}}function YH(t,e){const n=t.trim();return e?`${e.fullPath}${e.hierarchyDelimiter}${n}`:n}const W9=(t,e)=>{const n=t.split(e);return n[0]?.toLowerCase()==="inbox"&&(n[0]="INBOX"),n.join(e)};function Fke({name:t,delimiter:e,parent:n,existingPaths:r}){const a=t.trim();if(a==="")return"Enter a folder name.";if(a.includes(e))return`A folder name can't contain "${e}".`;const s=W9(YH(a,n),e);if(r.some(u=>W9(u,e)===s))return"A folder with that name already exists."}function $ke(t){const e=Nd(),{data:n}=Vh({...I_({path:{accountId:t??""}}),enabled:!!t}),r=xA({...uke(),onSuccess:()=>{t&&e.invalidateQueries({queryKey:$H({path:{accountId:t}})})}}),a=_.useRef(new Map),s=_.useCallback(async(u,c,f)=>{if(!t)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=YH(u,g);let S=a.current.get(y);if(!S){const x=g?.hierarchyDelimiter??h[0]?.hierarchyDelimiter??"/",E=Fke({name:u,delimiter:x,parent:g,existingPaths:h.map(k=>k.fullPath)});if(E)throw new Error(E);S=(await r.mutateAsync({path:{accountId:t},body:{fullPath:y,namespaceType:"personal"}})).mailboxId,a.current.set(y,S)}const w=await zke({mailboxId:S,signal:f,fetchMailboxes:async()=>(await e.fetchQuery({...I_({path:{accountId:t}}),staleTime:0})).items??[]});return a.current.delete(y),{id:w.mailboxId,label:dp(w.fullPath),path:w.fullPath}},[r,t,n,e]);return{createFolder:_.useCallback((u,c)=>s(u,"",c),[s]),createFolderIn:s,mutation:r}}const Bke=()=>{const{t}=FH("mail",{useSuspense:!1});return _.useCallback((e,n)=>t(e,{defaultValue:n}),[t])},x6e=100,Hke=t=>t.trim().toLowerCase()==="inbox",qke=(t,e)=>{const n=`${t.fullPath}${t.hierarchyDelimiter}`;return e.some(r=>r.mailboxId!==t.mailboxId&&r.fullPath.startsWith(n))},Wke=(t,e)=>e.find(n=>n.mailboxId!=null&&n.mailboxId===t)?.role;function C6e(t,e,n){if(Hke(t.fullPath))return{deletable:!1,reason:"inbox",message:"The inbox can't be deleted."};const r=Wke(t.mailboxId,n);return r?{deletable:!1,reason:"role",message:`This folder is your ${r} folder. Reassign that role before deleting it.`}:qke(t,e)?{deletable:!1,reason:"children",message:"This folder has subfolders. Delete them first."}:{deletable:!0}}function Vke(t,e){return t.filter(n=>n.mailboxId!==e)}function E6e(t){return{total:t,moved:0,phase:t===0?"moved":"moving"}}function _6e(t,e){if(t.phase!=="moving")return t;const n=Math.min(t.total,t.moved+Math.max(0,e));return{...t,moved:n,phase:n>=t.total?"moved":"moving"}}function k6e(t,e){return{...t,phase:"failed",error:e}}function A6e(t){return`Moved ${t.moved} of ${t.total}`}function R6e(t){return t>0?"choose-fate":"confirm-empty"}const Gke=new Set(["outbox","postvak uit","boîte d'envoi","postausgang","buzón de salida","posta in uscita","送信トレイ","送件匣","发件箱","skrzynka nadawcza"]),Kke=t=>{const e=dp(t.fullPath).trim().toLowerCase();return Gke.has(e)},V9=cp.length,Yke=(t,e)=>{const n=dy(e);return[...t.filter(a=>{const s=n.get(a.mailboxId);return s==="drafts"||s==="sent"?!1:!Kke(a)})].sort((a,s)=>{const i=n.has(a.mailboxId)?cp.indexOf(n.get(a.mailboxId)??"inbox"):V9,u=n.has(s.mailboxId)?cp.indexOf(n.get(s.mailboxId)??"inbox"):V9;return i!==u?i-u:dp(a.fullPath).localeCompare(dp(s.fullPath),void 0,{sensitivity:"base",numeric:!0})})},Zke=t=>t[0]?.hierarchyDelimiter??"/",Xke=({mailboxes:t,folderAppointments:e,currentMailboxId:n,excludeMailboxId:r,translator:a})=>{const s=Yke(t,e),i=dy(e);return(r?Vke(s,r):s).map(c=>({id:c.mailboxId,label:KH(c,i.get(c.mailboxId),a),path:c.fullPath,isCurrent:c.mailboxId===n,messageCount:c.messageCount}))},ZH=_.createContext(void 0),G9=Symbol("appoint-failed"),Qke=({children:t})=>{const e=Nd(),n=Bke(),[r,a]=_.useState(null),[s,i]=_.useState(),[u,c]=_.useState({kind:"choosing"}),f=r?.accountId,{data:h}=Vh({...HH(),staleTime:1/0,enabled:!!f}),{data:m}=Vh({...I_({path:{accountId:f??""}}),enabled:!!f}),{createFolderIn:g}=$ke(f),y=xA(ike()),S=h?.accounts.find(j=>j.accountId===f),w=_.useMemo(()=>m?.items??[],[m]),x=_.useMemo(()=>S?.folderAppointments??[],[S]),E=_.useMemo(()=>Xke({mailboxes:w,folderAppointments:x,translator:n}),[w,x,n]),A=x.find(j=>j.role===r?.role),k=r?.guessedMailboxId??A?.mailboxId,I=w.find(j=>j.mailboxId===k),N=r?.trashFolderLabel??(I?KH(I,dy(x).get(I.mailboxId),n):void 0),O=_.useRef(null),T=_.useCallback(()=>{O.current=null,a(null),i(void 0),c({kind:"choosing"})},[]),P=_.useCallback(j=>{O.current=j,a(j),c({kind:"choosing"}),i(j.reason==="unconfirmed"?j.guessedMailboxId:void 0)},[]),D=_.useCallback(j=>{O.current===j&&T()},[T]),q=_.useCallback(j=>{r&&(c({kind:"appointing"}),y.mutateAsync({path:{accountId:r.accountId,role:r.role},body:{mailboxId:j}}).catch($=>(c({kind:"appoint-failed",cause:Nke($)?"mailbox-pending":"generic"}),G9)).then(async $=>{$!==G9&&(await e.invalidateQueries({queryKey:BH()}),c({kind:"acting"}),await r.onAppointed(),D(r))}).catch(()=>D(r)))},[r,y,e,D]),U=_.useMemo(()=>({requestAppointment:P}),[P]);return C.jsxs(ZH.Provider,{value:U,children:[t,r&&C.jsx(Xre,{open:!0,reason:r.reason,action:r.action,folders:E,delimiter:Zke(w),trashFolderLabel:N,staleFolderLabel:r.staleFolderLabel??A?.staleAppointmentPath,accountEmail:(h?.accounts.length??0)>1?S?.email:void 0,phase:u,selectedId:s,onSelect:i,onCreateFolder:g,onConfirm:q,onCancel:T})]})},I6e=()=>{const t=_.useContext(ZH);if(!t)throw new Error("useRoleAppointmentPrompt must be used within a RoleAppointmentPromptProvider");return t},Jke=600,eAe=300,XH="remit logs",tAe="https://github.com/remit-mail/reader/releases/tag/",nAe={checking:"preparing",pulling:"preparing",snapshotting:"preparing",stopping:"restarting",starting:"restarting",verifying:"reconnecting",committing:"reconnecting",rollingBack:"reconnecting",recovering:"reconnecting"};function yR(t){return nAe[t]??"reconnecting"}function QH(t){const e=Qi(t);return e===404||e===403||e===401}function JH(t,e){const n=t?.check;if(n?.status==="ok"&&!(!n.updateAvailable||!n.latestVersion))return{version:n.latestVersion,releasedAt:L1(n.publishedAt)??e,releaseNotesUrl:n.releaseNotesUrl??tq(n.latestVersion),summary:n.summary??""}}function rAe(t){const e=t?.check.schemaVersion,n=t?.currentSchemaVersion;return e===void 0||n===void 0?!1:e>n}function K9(){return Jke+eAe}function eq(t,e){return Math.max(0,Math.floor((e-t)/1e3))}function L1(t){if(!t)return;const e=Date.parse(t);return Number.isNaN(e)?void 0:e}function tq(t){return`${tAe}${t}`}function Ih(t,e,n,r,a){return{status:"applying",runId:t,version:e,target:n,phase:r,elapsedSeconds:a}}function aAe(t,e,n){switch(n){case"succeeded":return{status:"succeeded",runId:e.runId,version:e.targetVersion,previousVersion:e.fromVersion,releaseNotesUrl:t.check.releaseNotesUrl??tq(e.targetVersion)};case"rolledBack":return{status:"rolledBack",runId:e.runId,version:e.fromVersion,attemptedVersion:e.targetVersion,reason:e.message,logsCommand:e.logCommand};case"rollbackFailed":return{status:"rollbackFailed",runId:e.runId,attemptedVersion:e.targetVersion,previousVersion:e.fromVersion,reason:e.message,logsCommand:e.logCommand};case"abandoned":return{status:"abandoned",runId:e.runId,version:e.fromVersion,attemptedVersion:e.targetVersion,reason:e.message,logsCommand:e.logCommand};default:return n}}function sAe(t,e,n){const r=t.check;if(e)return{status:"checking",version:t.currentVersion};if(r.status==="failed")return{status:"checkFailed",version:t.currentVersion,reason:r.error??"Remit could not reach the update service.",lastCheckedAt:L1(r.lastCheckedAt)};if(r.status==="disabled")return{status:"neverChecked",version:t.currentVersion};const a=JH(t,n);return a?{status:"available",version:t.currentVersion,release:a}:{status:"upToDate",version:t.currentVersion,checkedAt:L1(r.lastCheckedAt)??n}}function bE(t,e,n){return{surface:{status:"ready",section:t,overlay:e},releaseHeld:n}}function oAe(t,e){return{surface:{status:"ready",section:Ih(t.runId,t.previousVersion,t.attemptedVersion,"reconnecting",e),overlay:{kind:"neverCameBack",attemptedVersion:t.attemptedVersion,previousVersion:t.previousVersion,elapsedSeconds:e,logsCommand:XH}},releaseHeld:!1}}function iAe(t,e,n,r,a){const s=eq(t.startedAt,a),i=e?.currentVersion??t.previousVersion,u=!r&&n!==null&&n.runId===t.runId;if(u&&n!==null&&n.outcome!==null)return null;if(u&&n!==null){const c=yR(n.phase);return bE(Ih(n.runId,i,n.targetVersion,c,s),{kind:"applying",target:n.targetVersion,phase:c,elapsedSeconds:s},!1)}return r?s>K9()?oAe(t,s):bE(Ih(t.runId,t.previousVersion,t.attemptedVersion,"reconnecting",s),{kind:"applying",target:t.attemptedVersion,phase:"reconnecting",elapsedSeconds:s},!1):e===void 0?{surface:{status:"loading"},releaseHeld:!1}:s>K9()?{surface:{status:"ready",section:{status:"unreachable",runId:t.runId,previousVersion:t.previousVersion,attemptedVersion:t.attemptedVersion,elapsedSeconds:s,logsCommand:n?.logCommand??XH},overlay:{kind:"none"}},releaseHeld:!0}:bE(Ih(t.runId,i,t.attemptedVersion,t.phase,s),{kind:"applying",target:t.attemptedVersion,phase:t.phase,elapsedSeconds:s},!1)}function Y9(t){const{data:e,isError:n,isFetching:r,dismissedRunId:a,checkRequested:s,now:i}=t;if(n)return{status:"ready",section:{status:"checkFailed",version:e?.currentVersion??"the current version",reason:"Remit could not reach the update service."},overlay:{kind:"none"}};if(!e)return{status:"loading"};const u=e.run,c=u!==null&&a!==null&&u.runId===a;if(u!==null&&!c&&u.outcome!==null)return{status:"ready",section:aAe(e,u,u.outcome),overlay:{kind:"none"}};if(u!==null&&!c&&u.outcome===null){const f=eq(L1(u.startedAt)??i,i),h=yR(u.phase);return{status:"ready",section:Ih(u.runId,u.fromVersion,u.targetVersion,h,f),overlay:{kind:"applying",target:u.targetVersion,phase:h,elapsedSeconds:f}}}return{status:"ready",section:sAe(e,s&&r,i),overlay:{kind:"none"}}}function lAe(t){const{data:e,isError:n,error:r,held:a,now:s}=t,i=e?.run??null;if(QH(r)&&!a)return{surface:{status:"absent"},releaseHeld:!0};if(a){const u=iAe(a,e,i,n,s);return u||{surface:Y9(t),releaseHeld:!0}}return{surface:Y9(t),releaseHeld:!1}}const uAe=3e4,cAe=5e3;function dAe(t,e,n){if(QH(t)&&!n)return!1;const r=e!==null&&e.outcome===null;return n||r?cAe:uAe}function fAe(){const t=Nd(),[e,n]=_.useState(null),[r,a]=_.useState(null),[s,i]=_.useState(!1),u=_.useRef(e);u.current=e;const c=Vh({...wke(),retry:!1,meta:{softError:!0},refetchInterval:k=>dAe(k.state.error,k.state.data?.run??null,u.current!==null)}),f=lAe({data:c.data,isError:c.isError,error:c.error,isFetching:c.isFetching,held:e,dismissedRunId:r,checkRequested:s,now:Date.now()}),h=_.useRef(null);h.current=f.surface.status==="ready"&&"runId"in f.surface.section?f.surface.section.runId:null;const{releaseHeld:m}=f;_.useEffect(()=>{m&&n(k=>k===null?k:null)},[m]),_.useEffect(()=>{s&&!c.isFetching&&i(!1)},[s,c.isFetching]);const{refetch:g}=c,y=_.useCallback(()=>{i(!0),g()},[g]),S=_.useCallback(()=>{g()},[g]),w=xA({...xke(),meta:{softError:!0},onSuccess:k=>{const I=k.run;I!==null&&(n({runId:I.runId,attemptedVersion:I.targetVersion,previousVersion:I.fromVersion,phase:yR(I.phase),startedAt:Date.now()}),a(null)),t.setQueryData(WH(),k)},onError:()=>{g()}}),{mutate:x}=w,E=_.useCallback(k=>{x({body:{targetVersion:k}})},[x]),A=_.useCallback(()=>{h.current!==null&&a(h.current),n(null)},[]);return{surface:f.surface,appliesSchemaMigration:rAe(c.data),currentVersion:c.data?.currentVersion,release:JH(c.data,Date.now()),onCheck:y,install:E,onDismissResult:A,onRetryConnection:S}}const bR=_.createContext(null);function hAe({children:t}){const e=fAe();return _.createElement(bR.Provider,{value:e},t)}function pAe(){const t=_.useContext(bR);if(t===null)throw new Error("useSelfUpdate must be used within a SelfUpdateProvider");return t}function mAe(){return _.useContext(bR)}function gAe(){const{surface:t,onRetryConnection:e}=pAe();if(t.status!=="ready")return null;const{overlay:n}=t;return n.kind==="applying"?C.jsx(Hae,{target:n.target,phase:n.phase,elapsedSeconds:n.elapsedSeconds}):n.kind==="neverCameBack"?C.jsx(qae,{attemptedVersion:n.attemptedVersion,previousVersion:n.previousVersion,elapsedSeconds:n.elapsedSeconds,logsCommand:n.logsCommand,onRetryConnection:e}):null}const vAe={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"}},yAe={error:dee,warning:ed,info:tU},bAe={error:"Error",warning:"Warning",info:"Information"},SAe=({id:t,severity:e,title:n,detail:r,action:a,onDismiss:s})=>{const i=vAe[e],u=yAe[e];return C.jsxs("div",{role:e==="error"?"alert":"status","aria-live":e==="error"?"assertive":"polite",className:Ie("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:Ie("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:Ie("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(t),className:"shrink-0 rounded-md p-1 text-fg-muted hover:bg-surface-raised hover:text-fg transition-colors","aria-label":`Dismiss ${bAe[e].toLowerCase()}`,children:C.jsx(Ts,{className:"size-4","aria-hidden":"true"})})]})},wAe=({errors:t,onDismiss:e})=>t.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:t.map(n=>C.jsx(SAe,{id:n.id,severity:n.severity,title:n.title,detail:n.detail,action:n.action,onDismiss:e},n.id))})}),Z9=5,T6e=(t,e,n)=>({title:t,detail:nq(n)??e,error:n}),nq=t=>{if(t!=null){if(t instanceof Error)return t.message||void 0;if(typeof t=="string")return t||void 0;if(typeof t=="object"&&"message"in t&&typeof t.message=="string")return t.message||void 0}},O6e=t=>{const e=nq(t);return e?e.startsWith("Message not found"):!1},xAe=(t,e,n)=>t.severity===n&&t.title===e.title&&t.detail===e.detail,CAe=(t,e)=>{const r=[...t.filter(a=>!xAe(a,{title:e.title,detail:e.detail,severity:e.severity},e.severity)),e];return r.length<=Z9?r:r.slice(r.length-Z9)},EAe=(t,e)=>t.filter(n=>n.id!==e),_Ae=(t,e,n)=>({id:e,severity:t.severity??"error",title:t.title,detail:t.detail,action:t.action,createdAt:n}),rq=_.createContext(void 0),kAe=t=>{if(t.action)return t.action;if((t.severity??"error")==="error")return{label:"Report an issue",href:wk(Y0({title:`Bug: ${t.title}`,errorMessage:t.detail?`${t.title} — ${t.detail}`:t.title,stack:t.error instanceof Error?t.error.stack:void 0}))}},AAe=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():`banner-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,RAe=({children:t})=>{const[e,n]=_.useState([]),r=_.useCallback(u=>{if(u.error!=null&&bj(u.error))return Yl(u.error).correlationId;const c=_Ae({...u,action:kAe(u)},AAe(),Date.now());return n(f=>CAe(f,c)),c.id},[]),a=_.useCallback(u=>{n(c=>EAe(c,u))},[]),s=_.useCallback(()=>{n([])},[]),i=_.useMemo(()=>({errors:e,pushError:r,dismissError:a,clearAll:s}),[e,r,a,s]);return C.jsxs(rq.Provider,{value:i,children:[t,C.jsx(wAe,{errors:e,onDismiss:a})]})},N6e=()=>{const t=_.useContext(rq);if(!t)throw new Error("useErrorBanners must be used within an ErrorBannerProvider");return t},IAe=({error:t,reset:e,info:n})=>{const r=hv(t),a=Yl(t,{recoverable:r,componentStack:n?.componentStack});return C.jsx(Aj,{fatal:a,onRetry:r?e:void 0})},Dp=Tve()({component:OAe,errorComponent:IAe}),TAe=()=>{const{t}=FH("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:t("accessibility.skipToContent","Skip to main content")})};function OAe(){return C.jsxs(RAe,{children:[C.jsx(Qke,{children:C.jsxs(hAe,{children:[C.jsxs(Rke,{children:[C.jsx(TAe,{}),C.jsx("main",{id:"main-content",className:"h-dvh overflow-hidden",children:C.jsx(_.Suspense,{fallback:C.jsx(fv,{}),children:C.jsx(ZF,{})})})]}),C.jsx(gAe,{})]})}),C.jsx(kj,{})]})}const NAe=rt("/")({beforeLoad:()=>{throw _A({to:"/mail/brief"})}});var Tt;(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function n(a){throw new Error}t.assertNever=n,t.arrayToEnum=a=>{const s={};for(const i of a)s[i]=i;return s},t.getValidEnumValues=a=>{const s=t.objectKeys(a).filter(u=>typeof a[a[u]]!="number"),i={};for(const u of s)i[u]=a[u];return t.objectValues(i)},t.objectValues=a=>t.objectKeys(a).map(function(s){return a[s]}),t.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},t.find=(a,s)=>{for(const i of a)if(s(i))return i},t.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)}t.joinValues=r,t.jsonStringifyReplacer=(a,s)=>typeof s=="bigint"?s.toString():s})(Tt||(Tt={}));var X9;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(X9||(X9={}));const Oe=Tt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ki=t=>{switch(typeof t){case"undefined":return Oe.undefined;case"string":return Oe.string;case"number":return Number.isNaN(t)?Oe.nan:Oe.number;case"boolean":return Oe.boolean;case"function":return Oe.function;case"bigint":return Oe.bigint;case"symbol":return Oe.symbol;case"object":return Array.isArray(t)?Oe.array:t===null?Oe.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?Oe.promise:typeof Map<"u"&&t instanceof Map?Oe.map:typeof Set<"u"&&t instanceof Set?Oe.set:typeof Date<"u"&&t instanceof Date?Oe.date:Oe.object;default:return Oe.unknown}},ge=Tt.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 Io extends Error{get errors(){return this.issues}constructor(e){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=e}format(e){const n=e||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(e){if(!(e instanceof Io))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Tt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=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(e(a))}else r.push(e(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Io.create=t=>new Io(t);const T_=(t,e)=>{let n;switch(t.code){case ge.invalid_type:t.received===Oe.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case ge.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,Tt.jsonStringifyReplacer)}`;break;case ge.unrecognized_keys:n=`Unrecognized key(s) in object: ${Tt.joinValues(t.keys,", ")}`;break;case ge.invalid_union:n="Invalid input";break;case ge.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Tt.joinValues(t.options)}`;break;case ge.invalid_enum_value:n=`Invalid enum value. Expected ${Tt.joinValues(t.options)}, received '${t.received}'`;break;case ge.invalid_arguments:n="Invalid function arguments";break;case ge.invalid_return_type:n="Invalid function return type";break;case ge.invalid_date:n="Invalid date";break;case ge.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:Tt.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case ge.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case ge.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case ge.custom:n="Invalid input";break;case ge.invalid_intersection_types:n="Intersection results could not be merged";break;case ge.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case ge.not_finite:n="Number must be finite";break;default:n=e.defaultError,Tt.assertNever(t)}return{message:n}};let MAe=T_;function PAe(){return MAe}const LAe=t=>{const{data:e,path:n,errorMaps:r,issueData:a}=t,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:e,defaultError:u}).message;return{...a,path:s,message:u}};function _e(t,e){const n=PAe(),r=LAe({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===T_?void 0:T_].filter(a=>!!a)});t.common.issues.push(r)}class ca{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const a of n){if(a.status==="aborted")return Ze;a.status==="dirty"&&e.dirty(),r.push(a.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const a of n){const s=await a.key,i=await a.value;r.push({key:s,value:i})}return ca.mergeObjectSync(e,r)}static mergeObjectSync(e,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"&&e.dirty(),i.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(r[s.value]=i.value)}return{status:e.value,value:r}}}const Ze=Object.freeze({status:"aborted"}),mh=t=>({status:"dirty",value:t}),Pa=t=>({status:"valid",value:t}),Q9=t=>t.status==="aborted",J9=t=>t.status==="dirty",fd=t=>t.status==="valid",D1=t=>typeof Promise<"u"&&t instanceof Promise;var Me;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(Me||(Me={}));class Gi{constructor(e,n,r,a){this._cachedPath=[],this.parent=e,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 eL=(t,e)=>{if(fd(e))return{success:!0,data:e.value};if(!t.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 Io(t.common.issues);return this._error=n,this._error}}};function st(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:a}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(i,u)=>{const{message:c}=t;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 kt{get description(){return this._def.description}_getType(e){return ki(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:ki(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ca,ctx:{common:e.parent.common,data:e.data,parsedType:ki(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(D1(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){const r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ki(e)},a=this._parseSync({data:e,path:r.path,parent:r});return eL(r,a)}"~validate"(e){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ki(e)};if(!this["~standard"].async)try{const r=this._parseSync({data:e,path:[],parent:n});return fd(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:e,path:[],parent:n}).then(r=>fd(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ki(e)},a=this._parse({data:e,path:r.path,parent:r}),s=await(D1(a)?a:Promise.resolve(a));return eL(r,s)}refine(e,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=e(a),u=()=>s.addIssue({code:ge.custom,...r(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(c=>c?!0:(u(),!1)):i?!0:(u(),!1)})}refinement(e,n){return this._refinement((r,a)=>e(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(e){return new md({schema:this,typeName:Xe.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,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 ji.create(this,this._def)}nullable(){return gd.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return _s.create(this)}promise(){return F1.create(this,this._def)}or(e){return j1.create([this,e],this._def)}and(e){return z1.create(this,e,this._def)}transform(e){return new md({...st(this._def),schema:this,typeName:Xe.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new P_({...st(this._def),innerType:this,defaultValue:n,typeName:Xe.ZodDefault})}brand(){return new aRe({typeName:Xe.ZodBranded,type:this,...st(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new L_({...st(this._def),innerType:this,catchValue:n,typeName:Xe.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return SR.create(this,e)}readonly(){return D_.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const DAe=/^c[^\s-]{8,}$/i,UAe=/^[0-9a-z]+$/,jAe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,zAe=/^[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,FAe=/^[a-z0-9_-]{21}$/i,$Ae=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,BAe=/^[-+]?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)?)??$/,HAe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,qAe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let SE;const WAe=/^(?:(?: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])$/,VAe=/^(?:(?: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])$/,GAe=/^(([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]))$/,KAe=/^(([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])$/,YAe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ZAe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,aq="((\\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])))",XAe=new RegExp(`^${aq}$`);function sq(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function QAe(t){return new RegExp(`^${sq(t)}$`)}function JAe(t){let e=`${aq}T${sq(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function eRe(t,e){return!!((e==="v4"||!e)&&WAe.test(t)||(e==="v6"||!e)&&GAe.test(t))}function tRe(t,e){if(!$Ae.test(t))return!1;try{const[n]=t.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||e&&a.alg!==e)}catch{return!1}}function nRe(t,e){return!!((e==="v4"||!e)&&VAe.test(t)||(e==="v6"||!e)&&KAe.test(t))}class yo extends kt{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Oe.string){const s=this._getOrReturnCtx(e);return _e(s,{code:ge.invalid_type,expected:Oe.string,received:s.parsedType}),Ze}const r=new ca;let a;for(const s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(a=this._getOrReturnCtx(e,a),_e(a,{code:ge.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")e.data.length>s.value&&(a=this._getOrReturnCtx(e,a),_e(a,{code:ge.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const i=e.data.length>s.value,u=e.data.length<s.value;(i||u)&&(a=this._getOrReturnCtx(e,a),i?_e(a,{code:ge.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):u&&_e(a,{code:ge.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")HAe.test(e.data)||(a=this._getOrReturnCtx(e,a),_e(a,{validation:"email",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")SE||(SE=new RegExp(qAe,"u")),SE.test(e.data)||(a=this._getOrReturnCtx(e,a),_e(a,{validation:"emoji",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")zAe.test(e.data)||(a=this._getOrReturnCtx(e,a),_e(a,{validation:"uuid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="nanoid")FAe.test(e.data)||(a=this._getOrReturnCtx(e,a),_e(a,{validation:"nanoid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")DAe.test(e.data)||(a=this._getOrReturnCtx(e,a),_e(a,{validation:"cuid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")UAe.test(e.data)||(a=this._getOrReturnCtx(e,a),_e(a,{validation:"cuid2",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")jAe.test(e.data)||(a=this._getOrReturnCtx(e,a),_e(a,{validation:"ulid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),_e(a,{validation:"url",code:ge.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),_e(a,{validation:"regex",code:ge.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(a=this._getOrReturnCtx(e,a),_e(a,{code:ge.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(a=this._getOrReturnCtx(e,a),_e(a,{code:ge.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(a=this._getOrReturnCtx(e,a),_e(a,{code:ge.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?JAe(s).test(e.data)||(a=this._getOrReturnCtx(e,a),_e(a,{code:ge.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="date"?XAe.test(e.data)||(a=this._getOrReturnCtx(e,a),_e(a,{code:ge.invalid_string,validation:"date",message:s.message}),r.dirty()):s.kind==="time"?QAe(s).test(e.data)||(a=this._getOrReturnCtx(e,a),_e(a,{code:ge.invalid_string,validation:"time",message:s.message}),r.dirty()):s.kind==="duration"?BAe.test(e.data)||(a=this._getOrReturnCtx(e,a),_e(a,{validation:"duration",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="ip"?eRe(e.data,s.version)||(a=this._getOrReturnCtx(e,a),_e(a,{validation:"ip",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="jwt"?tRe(e.data,s.alg)||(a=this._getOrReturnCtx(e,a),_e(a,{validation:"jwt",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="cidr"?nRe(e.data,s.version)||(a=this._getOrReturnCtx(e,a),_e(a,{validation:"cidr",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="base64"?YAe.test(e.data)||(a=this._getOrReturnCtx(e,a),_e(a,{validation:"base64",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="base64url"?ZAe.test(e.data)||(a=this._getOrReturnCtx(e,a),_e(a,{validation:"base64url",code:ge.invalid_string,message:s.message}),r.dirty()):Tt.assertNever(s);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(a=>e.test(a),{validation:n,code:ge.invalid_string,...Me.errToObj(r)})}_addCheck(e){return new yo({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Me.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Me.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Me.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Me.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...Me.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Me.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Me.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Me.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...Me.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...Me.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...Me.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Me.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...Me.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...Me.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...Me.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...Me.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...Me.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n?.position,...Me.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...Me.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...Me.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...Me.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...Me.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...Me.errToObj(n)})}nonempty(e){return this.min(1,Me.errToObj(e))}trim(){return new yo({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new yo({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new yo({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}yo.create=t=>new yo({checks:[],typeName:Xe.ZodString,coerce:t?.coerce??!1,...st(t)});function rRe(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=n>r?n:r,s=Number.parseInt(t.toFixed(a).replace(".","")),i=Number.parseInt(e.toFixed(a).replace(".",""));return s%i/10**a}class au extends kt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Oe.number){const s=this._getOrReturnCtx(e);return _e(s,{code:ge.invalid_type,expected:Oe.number,received:s.parsedType}),Ze}let r;const a=new ca;for(const s of this._def.checks)s.kind==="int"?Tt.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),_e(r,{code:ge.invalid_type,expected:"integer",received:"float",message:s.message}),a.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(r=this._getOrReturnCtx(e,r),_e(r,{code:ge.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),_e(r,{code:ge.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?rRe(e.data,s.value)!==0&&(r=this._getOrReturnCtx(e,r),_e(r,{code:ge.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),_e(r,{code:ge.not_finite,message:s.message}),a.dirty()):Tt.assertNever(s);return{status:a.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,Me.toString(n))}gt(e,n){return this.setLimit("min",e,!1,Me.toString(n))}lte(e,n){return this.setLimit("max",e,!0,Me.toString(n))}lt(e,n){return this.setLimit("max",e,!1,Me.toString(n))}setLimit(e,n,r,a){return new au({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:Me.toString(a)}]})}_addCheck(e){return new au({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Me.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Me.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Me.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Me.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Me.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:Me.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:Me.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Me.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Me.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Tt.isInteger(e.value))}get isFinite(){let e=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"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}}au.create=t=>new au({checks:[],typeName:Xe.ZodNumber,coerce:t?.coerce||!1,...st(t)});class su extends kt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==Oe.bigint)return this._getInvalidInput(e);let r;const a=new ca;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(r=this._getOrReturnCtx(e,r),_e(r,{code:ge.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),_e(r,{code:ge.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),_e(r,{code:ge.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):Tt.assertNever(s);return{status:a.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return _e(n,{code:ge.invalid_type,expected:Oe.bigint,received:n.parsedType}),Ze}gte(e,n){return this.setLimit("min",e,!0,Me.toString(n))}gt(e,n){return this.setLimit("min",e,!1,Me.toString(n))}lte(e,n){return this.setLimit("max",e,!0,Me.toString(n))}lt(e,n){return this.setLimit("max",e,!1,Me.toString(n))}setLimit(e,n,r,a){return new su({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:Me.toString(a)}]})}_addCheck(e){return new su({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Me.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Me.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Me.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Me.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:Me.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}su.create=t=>new su({checks:[],typeName:Xe.ZodBigInt,coerce:t?.coerce??!1,...st(t)});class U1 extends kt{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Oe.boolean){const r=this._getOrReturnCtx(e);return _e(r,{code:ge.invalid_type,expected:Oe.boolean,received:r.parsedType}),Ze}return Pa(e.data)}}U1.create=t=>new U1({typeName:Xe.ZodBoolean,coerce:t?.coerce||!1,...st(t)});class hd extends kt{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Oe.date){const s=this._getOrReturnCtx(e);return _e(s,{code:ge.invalid_type,expected:Oe.date,received:s.parsedType}),Ze}if(Number.isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return _e(s,{code:ge.invalid_date}),Ze}const r=new ca;let a;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(a=this._getOrReturnCtx(e,a),_e(a,{code:ge.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(a=this._getOrReturnCtx(e,a),_e(a,{code:ge.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):Tt.assertNever(s);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new hd({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:Me.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:Me.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}hd.create=t=>new hd({checks:[],coerce:t?.coerce||!1,typeName:Xe.ZodDate,...st(t)});class tL extends kt{_parse(e){if(this._getType(e)!==Oe.symbol){const r=this._getOrReturnCtx(e);return _e(r,{code:ge.invalid_type,expected:Oe.symbol,received:r.parsedType}),Ze}return Pa(e.data)}}tL.create=t=>new tL({typeName:Xe.ZodSymbol,...st(t)});class nL extends kt{_parse(e){if(this._getType(e)!==Oe.undefined){const r=this._getOrReturnCtx(e);return _e(r,{code:ge.invalid_type,expected:Oe.undefined,received:r.parsedType}),Ze}return Pa(e.data)}}nL.create=t=>new nL({typeName:Xe.ZodUndefined,...st(t)});class rL extends kt{_parse(e){if(this._getType(e)!==Oe.null){const r=this._getOrReturnCtx(e);return _e(r,{code:ge.invalid_type,expected:Oe.null,received:r.parsedType}),Ze}return Pa(e.data)}}rL.create=t=>new rL({typeName:Xe.ZodNull,...st(t)});class aL extends kt{constructor(){super(...arguments),this._any=!0}_parse(e){return Pa(e.data)}}aL.create=t=>new aL({typeName:Xe.ZodAny,...st(t)});class O_ extends kt{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Pa(e.data)}}O_.create=t=>new O_({typeName:Xe.ZodUnknown,...st(t)});class Ki extends kt{_parse(e){const n=this._getOrReturnCtx(e);return _e(n,{code:ge.invalid_type,expected:Oe.never,received:n.parsedType}),Ze}}Ki.create=t=>new Ki({typeName:Xe.ZodNever,...st(t)});class sL extends kt{_parse(e){if(this._getType(e)!==Oe.undefined){const r=this._getOrReturnCtx(e);return _e(r,{code:ge.invalid_type,expected:Oe.void,received:r.parsedType}),Ze}return Pa(e.data)}}sL.create=t=>new sL({typeName:Xe.ZodVoid,...st(t)});class _s extends kt{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),a=this._def;if(n.parsedType!==Oe.array)return _e(n,{code:ge.invalid_type,expected:Oe.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?ge.too_big:ge.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:ge.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:ge.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 Gi(n,i,n.path,u)))).then(i=>ca.mergeArray(r,i));const s=[...n.data].map((i,u)=>a.type._parseSync(new Gi(n,i,n.path,u)));return ca.mergeArray(r,s)}get element(){return this._def.type}min(e,n){return new _s({...this._def,minLength:{value:e,message:Me.toString(n)}})}max(e,n){return new _s({...this._def,maxLength:{value:e,message:Me.toString(n)}})}length(e,n){return new _s({...this._def,exactLength:{value:e,message:Me.toString(n)}})}nonempty(e){return this.min(1,e)}}_s.create=(t,e)=>new _s({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Xe.ZodArray,...st(e)});function Nc(t){if(t instanceof Tn){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=ji.create(Nc(r))}return new Tn({...t._def,shape:()=>e})}else return t instanceof _s?new _s({...t._def,type:Nc(t.element)}):t instanceof ji?ji.create(Nc(t.unwrap())):t instanceof gd?gd.create(Nc(t.unwrap())):t instanceof ou?ou.create(t.items.map(e=>Nc(e))):t}class Tn extends kt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=Tt.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==Oe.object){const f=this._getOrReturnCtx(e);return _e(f,{code:ge.invalid_type,expected:Oe.object,received:f.parsedType}),Ze}const{status:r,ctx:a}=this._processInputParams(e),{shape:s,keys:i}=this._getCached(),u=[];if(!(this._def.catchall instanceof Ki&&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 Gi(a,m,a.path,f)),alwaysSet:f in a.data})}if(this._def.catchall instanceof Ki){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:ge.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 Gi(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=>ca.mergeObjectSync(r,f)):ca.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(e){return Me.errToObj,new Tn({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{const a=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:Me.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new Tn({...this._def,unknownKeys:"strip"})}passthrough(){return new Tn({...this._def,unknownKeys:"passthrough"})}extend(e){return new Tn({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Tn({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Xe.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new Tn({...this._def,catchall:e})}pick(e){const n={};for(const r of Tt.objectKeys(e))e[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Tn({...this._def,shape:()=>n})}omit(e){const n={};for(const r of Tt.objectKeys(this.shape))e[r]||(n[r]=this.shape[r]);return new Tn({...this._def,shape:()=>n})}deepPartial(){return Nc(this)}partial(e){const n={};for(const r of Tt.objectKeys(this.shape)){const a=this.shape[r];e&&!e[r]?n[r]=a:n[r]=a.optional()}return new Tn({...this._def,shape:()=>n})}required(e){const n={};for(const r of Tt.objectKeys(this.shape))if(e&&!e[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof ji;)s=s._def.innerType;n[r]=s}return new Tn({...this._def,shape:()=>n})}keyof(){return oq(Tt.objectKeys(this.shape))}}Tn.create=(t,e)=>new Tn({shape:()=>t,unknownKeys:"strip",catchall:Ki.create(),typeName:Xe.ZodObject,...st(e)});Tn.strictCreate=(t,e)=>new Tn({shape:()=>t,unknownKeys:"strict",catchall:Ki.create(),typeName:Xe.ZodObject,...st(e)});Tn.lazycreate=(t,e)=>new Tn({shape:t,unknownKeys:"strip",catchall:Ki.create(),typeName:Xe.ZodObject,...st(e)});class j1 extends kt{_parse(e){const{ctx:n}=this._processInputParams(e),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 Io(u.ctx.common.issues));return _e(n,{code:ge.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 Io(c));return _e(n,{code:ge.invalid_union,unionErrors:u}),Ze}}get options(){return this._def.options}}j1.create=(t,e)=>new j1({options:t,typeName:Xe.ZodUnion,...st(e)});function N_(t,e){const n=ki(t),r=ki(e);if(t===e)return{valid:!0,data:t};if(n===Oe.object&&r===Oe.object){const a=Tt.objectKeys(e),s=Tt.objectKeys(t).filter(u=>a.indexOf(u)!==-1),i={...t,...e};for(const u of s){const c=N_(t[u],e[u]);if(!c.valid)return{valid:!1};i[u]=c.data}return{valid:!0,data:i}}else if(n===Oe.array&&r===Oe.array){if(t.length!==e.length)return{valid:!1};const a=[];for(let s=0;s<t.length;s++){const i=t[s],u=e[s],c=N_(i,u);if(!c.valid)return{valid:!1};a.push(c.data)}return{valid:!0,data:a}}else return n===Oe.date&&r===Oe.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class z1 extends kt{_parse(e){const{status:n,ctx:r}=this._processInputParams(e),a=(s,i)=>{if(Q9(s)||Q9(i))return Ze;const u=N_(s.value,i.value);return u.valid?((J9(s)||J9(i))&&n.dirty(),{status:n.value,value:u.data}):(_e(r,{code:ge.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}))}}z1.create=(t,e,n)=>new z1({left:t,right:e,typeName:Xe.ZodIntersection,...st(n)});class ou extends kt{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Oe.array)return _e(r,{code:ge.invalid_type,expected:Oe.array,received:r.parsedType}),Ze;if(r.data.length<this._def.items.length)return _e(r,{code:ge.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:ge.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 Gi(r,i,r.path,u)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>ca.mergeArray(n,i)):ca.mergeArray(n,s)}get items(){return this._def.items}rest(e){return new ou({...this._def,rest:e})}}ou.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ou({items:t,typeName:Xe.ZodTuple,rest:null,...st(e)})};class oL extends kt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Oe.map)return _e(r,{code:ge.invalid_type,expected:Oe.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 Gi(r,u,r.path,[f,"key"])),value:s._parse(new Gi(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}}}}oL.create=(t,e,n)=>new oL({valueType:e,keyType:t,typeName:Xe.ZodMap,...st(n)});class fp extends kt{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Oe.set)return _e(r,{code:ge.invalid_type,expected:Oe.set,received:r.parsedType}),Ze;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(_e(r,{code:ge.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:ge.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 Gi(r,c,r.path,f)));return r.common.async?Promise.all(u).then(c=>i(c)):i(u)}min(e,n){return new fp({...this._def,minSize:{value:e,message:Me.toString(n)}})}max(e,n){return new fp({...this._def,maxSize:{value:e,message:Me.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}fp.create=(t,e)=>new fp({valueType:t,minSize:null,maxSize:null,typeName:Xe.ZodSet,...st(e)});class iL extends kt{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}iL.create=(t,e)=>new iL({getter:t,typeName:Xe.ZodLazy,...st(e)});class M_ extends kt{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return _e(n,{received:n.data,code:ge.invalid_literal,expected:this._def.value}),Ze}return{status:"valid",value:e.data}}get value(){return this._def.value}}M_.create=(t,e)=>new M_({value:t,typeName:Xe.ZodLiteral,...st(e)});function oq(t,e){return new pd({values:t,typeName:Xe.ZodEnum,...st(e)})}class pd extends kt{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return _e(n,{expected:Tt.joinValues(r),received:n.parsedType,code:ge.invalid_type}),Ze}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return _e(n,{received:n.data,code:ge.invalid_enum_value,options:r}),Ze}return Pa(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return pd.create(e,{...this._def,...n})}exclude(e,n=this._def){return pd.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}}pd.create=oq;class lL extends kt{_parse(e){const n=Tt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==Oe.string&&r.parsedType!==Oe.number){const a=Tt.objectValues(n);return _e(r,{expected:Tt.joinValues(a),received:r.parsedType,code:ge.invalid_type}),Ze}if(this._cache||(this._cache=new Set(Tt.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const a=Tt.objectValues(n);return _e(r,{received:r.data,code:ge.invalid_enum_value,options:a}),Ze}return Pa(e.data)}get enum(){return this._def.values}}lL.create=(t,e)=>new lL({values:t,typeName:Xe.ZodNativeEnum,...st(e)});class F1 extends kt{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==Oe.promise&&n.common.async===!1)return _e(n,{code:ge.invalid_type,expected:Oe.promise,received:n.parsedType}),Ze;const r=n.parsedType===Oe.promise?n.data:Promise.resolve(n.data);return Pa(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}F1.create=(t,e)=>new F1({type:t,typeName:Xe.ZodPromise,...st(e)});class md extends kt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Xe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),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"?mh(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"?mh(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(!fd(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=>fd(i)?Promise.resolve(a.transform(i.value,s)).then(u=>({status:n.value,value:u})):Ze);Tt.assertNever(a)}}md.create=(t,e,n)=>new md({schema:t,typeName:Xe.ZodEffects,effect:e,...st(n)});md.createWithPreprocess=(t,e,n)=>new md({schema:e,effect:{type:"preprocess",transform:t},typeName:Xe.ZodEffects,...st(n)});class ji extends kt{_parse(e){return this._getType(e)===Oe.undefined?Pa(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ji.create=(t,e)=>new ji({innerType:t,typeName:Xe.ZodOptional,...st(e)});class gd extends kt{_parse(e){return this._getType(e)===Oe.null?Pa(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}gd.create=(t,e)=>new gd({innerType:t,typeName:Xe.ZodNullable,...st(e)});class P_ extends kt{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===Oe.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}P_.create=(t,e)=>new P_({innerType:t,typeName:Xe.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...st(e)});class L_ extends kt{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return D1(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Io(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Io(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}L_.create=(t,e)=>new L_({innerType:t,typeName:Xe.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...st(e)});class uL extends kt{_parse(e){if(this._getType(e)!==Oe.nan){const r=this._getOrReturnCtx(e);return _e(r,{code:ge.invalid_type,expected:Oe.nan,received:r.parsedType}),Ze}return{status:"valid",value:e.data}}}uL.create=t=>new uL({typeName:Xe.ZodNaN,...st(t)});class aRe extends kt{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class SR extends kt{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);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(),mh(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(e,n){return new SR({in:e,out:n,typeName:Xe.ZodPipeline})}}class D_ extends kt{_parse(e){const n=this._def.innerType._parse(e),r=a=>(fd(a)&&(a.value=Object.freeze(a.value)),a);return D1(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}D_.create=(t,e)=>new D_({innerType:t,typeName:Xe.ZodReadonly,...st(e)});var Xe;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(Xe||(Xe={}));const Th=yo.create;au.create;su.create;const sRe=U1.create;hd.create;const iq=O_.create;Ki.create;_s.create;const wR=Tn.create;j1.create;z1.create;ou.create;const oRe=M_.create,iRe=pd.create;F1.create;ji.create;gd.create;const M6e={string:(t=>yo.create({...t,coerce:!0})),number:(t=>au.create({...t,coerce:!0})),boolean:(t=>U1.create({...t,coerce:!0})),bigint:(t=>su.create({...t,coerce:!0})),date:(t=>hd.create({...t,coerce:!0}))},lRe=iRe(["match","properties","folder","rule","name","review","run"]),uRe=t=>{const e=lRe.safeParse(t);return e.success?e.data:void 0},cRe=oRe("search"),dRe=t=>{const e=cRe.safeParse(t);return e.success?e.data:void 0},fRe=iq().transform(dRe),hRe=()=>Wv({from:"/mail",select:t=>t.wizardFrom}),pRe=iq().transform(uRe),mRe=(t,e)=>dv(t,e)+1,lq=()=>Wv({from:"/mail",select:t=>t.wizard}),gRe=()=>{const t=Rp();return _.useCallback((e,n)=>{t({to:".",search:r=>({...r,wizard:e,wizardFrom:n})})},[t])},P6e=()=>{const t=lq(),e=gRe(),[n,r]=_.useState("organize"),a=_.useCallback(i=>{r(i),e("match")},[e]),s=_.useCallback(()=>{e("properties","search")},[e]);return{verb:n,start:a,startFromSearch:s,isOpen:t!==void 0}},L6e=t=>{const e=Yr(),n=Rp(),r=lq(),a=hRe(),s=_.useRef(r!==void 0),i=_.useRef(a),u=_.useRef(void 0);_.useEffect(()=>{u.current=void 0},[r]),_.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:t,wizardFrom:m})})))()},[t,n]);const c=_.useCallback(m=>{m===r||u.current===m||(u.current=m,n({to:".",search:g=>({...g,wizard:m})}))},[n,r]),f=_.useCallback(()=>{e.history.back()},[e]),h=_.useCallback((m,g)=>{e.history.go(-mRe(m,g))},[e]);return{step:r,goToStep:c,goBack:f,closeWizard:h}},vRe=nv().apiUrl;Pe.setConfig({baseUrl:vRe,fetch:GD});Pe.interceptors.error.use((t,e)=>{if(t instanceof a3||!e)return t;const n=t,r=n&&typeof n=="object"&&"message"in n?String(n.message):`Request failed with status ${e.status}`;return new a3(r,e.status,n)});const yRe=new Map;function D6e(t){const e=new Map;for(const n of t){const r=dy(n.folderAppointments);for(const[a,s]of r)e.set(a,{role:s});for(const a of n.mailboxes){const s=r.get(a.mailboxId);e.set(a.mailboxId,{...s?{role:s}:{},providerPath:a.fullPath})}}return e}function U6e(t,e){const n=e[0];if(!t)return n?{mailboxId:n}:{};for(const a of e){const s=t.get(a);if(s&&Nre(s)!==void 0)return{mailboxId:a,folder:s}}if(!n)return{};const r=t.get(n);return{mailboxId:n,...r?{folder:r}:{}}}const bRe=_.createContext(null),j6e=()=>_.useContext(bRe)??{accounts:[],mailboxNameIndex:new Map,accountNameIndex:new Map,resultFolderIndex:yRe,searchQuery:"",searchInput:"",searchViewKey:"",onSearchChange:()=>{},onSearchClear:()=>{},onSearchClearQuery:()=>{},intelligenceOpen:!1,onToggleIntelligence:()=>{}},SRe=()=>ct(()=>import("./mail-DP6MOTXv.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])),wRe=wR({q:Th().optional(),wizard:pRe,wizardFrom:fRe}),xRe=rt("/mail")({loader:({context:{queryClient:t}})=>{t.prefetchQuery(HH()),t.prefetchQuery({...Eke(),staleTime:6e4})},component:ht(SRe,"component"),validateSearch:wRe}),CRe=()=>ct(()=>import("./onboarding-Bzp0A5vU.js"),__vite__mapDeps([21,22,20,11,23])),ERe=rt("/onboarding")({component:ht(CRe,"component")});function _Re(){const t=mAe(),e=t?.surface.status==="ready"&&t.surface.section.status==="available";return C.jsx($ae,{show:e,children:C.jsx(Iee,{className:"size-4"})})}const kRe=()=>ct(()=>import("./settings-D0vLL1bF.js"),[]),z6e=[{id:"accounts",label:"Accounts",icon:C.jsx(eU,{className:"size-4"})},{id:"senders",label:"Senders & Rules",icon:C.jsx(Ree,{className:"size-4"})},{id:"folders",label:"Folder roles",icon:C.jsx(yee,{className:"size-4"})},{id:"filters",label:"Filters",icon:C.jsx(mee,{className:"size-4"})},{id:"labels",label:"Labels",icon:C.jsx(kee,{className:"size-4"})},{id:"appearance",label:"Appearance",icon:C.jsx(wee,{className:"size-4"})},{id:"advanced",label:"Advanced",icon:C.jsx(_Re,{})}],F6e={accounts:"/settings/accounts",senders:"/settings/senders",folders:"/settings/folders",filters:"/settings/filters",labels:"/settings/labels",appearance:"/settings/appearance",advanced:"/settings/advanced"},ARe=rt("/settings")({component:ht(kRe,"component")}),fy=wR({q:Th().optional()}),uq=fy.extend({}),RRe=fy.extend({}),IRe=fy.extend({}),TRe=fy.extend({}),ORe=uq,NRe=rt("/mail/")({validateSearch:ORe,beforeLoad:({search:t})=>{throw _A({to:"/mail/brief",search:t,replace:!0})}}),MRe=()=>ct(()=>import("./_mailboxId-C7WRjGbl.js"),__vite__mapDeps([24,6,7,8,9,2,3,10,11,12,13,25,26,20,4,14,15,1,27,28,23,18,29,30,31,32,33,16,34,35,36,37,38,39,40,41,42])),PRe=rt("/mail/$mailboxId")({component:ht(MRe,"component"),validateSearch:TRe}),LRe=()=>ct(()=>import("./brief-BYabPV-y.js"),__vite__mapDeps([43,8])),DRe=()=>ct(()=>import("./brief-DgOZtpST.js"),__vite__mapDeps([44,6,7,8,9,2,3,10,11,12,13,45,26,20,4,27,1,28,23,18,29,30,31,32,33,16,14,15,36,37,38,46,42])),URe=rt("/mail/brief")({component:ht(DRe,"component"),validateSearch:uq,errorComponent:ht(LRe,"errorComponent")}),jRe=()=>ct(()=>import("./flagged-DZIbRuYM.js"),__vite__mapDeps([47,8])),zRe=()=>ct(()=>import("./flagged-CT7GRBpL.js"),__vite__mapDeps([48,6,7,8,9,2,3,10,11,12,13,49,26,20,4,27,1,28,23,18,29,30,31,32,33,16,34,46,42])),FRe=rt("/mail/flagged")({component:ht(zRe,"component"),validateSearch:RRe,errorComponent:ht(jRe,"errorComponent")}),$Re=()=>ct(()=>import("./outbox-DcgYlvD2.js"),__vite__mapDeps([50,6,7,8,9,2,3,10,11,12,13,51,26,20,4,15,33,52,53,35,16,29,19,38,42])),BRe=rt("/mail/outbox")({component:ht($Re,"component"),validateSearch:IRe}),HRe=()=>ct(()=>import("./index-DuoENJdd.js"),[]),qRe=rt("/settings/")({component:ht(HRe,"component")}),WRe=()=>ct(()=>import("./accounts-CXixIelX.js"),__vite__mapDeps([54,52,55,18,16,40,22,20,11,23,10,30,8,29,56])),VRe=wR({editAccountId:Th().optional(),focusSmtp:sRe().optional(),connected:Th().optional(),oauthError:Th().optional()}),GRe=rt("/settings/accounts")({component:ht(WRe,"component"),validateSearch:VRe}),KRe=()=>ct(()=>import("./advanced-DMcFlw9k.js"),__vite__mapDeps([57,55,18,16,40,17,41,8,30,53,33,31,56,20])),YRe=rt("/settings/advanced")({component:ht(KRe,"component")}),ZRe=()=>ct(()=>import("./appearance-CWI7d_AE.js"),__vite__mapDeps([58,55,18,16,40,56,20])),XRe=rt("/settings/appearance")({component:ht(ZRe,"component")}),QRe=()=>ct(()=>import("./filters-Fgd0dMg6.js"),__vite__mapDeps([59,55,18,16,40,39,3,36,32,41,8])),JRe=rt("/settings/filters")({component:ht(QRe,"component")}),eIe=()=>ct(()=>import("./folders-DSIv1EdN.js"),__vite__mapDeps([60,5,55,18,16,40,8])),tIe=rt("/settings/folders")({component:ht(eIe,"component")}),nIe=()=>ct(()=>import("./labels-DtEvX-em.js"),__vite__mapDeps([61,13,55,18,16,40,8,36])),rIe=rt("/settings/labels")({component:ht(nIe,"component")}),aIe=()=>ct(()=>import("./senders-DAq8Em3A.js"),__vite__mapDeps([62,20,55,18,16,40,8,12,29,56])),sIe=rt("/settings/senders")({component:ht(aIe,"component")}),oIe=()=>ct(()=>import("./suggested-vips-CDSYSOei.js"),[]),iIe=rt("/settings/suggested-vips")({component:ht(oIe,"component")}),lIe=()=>ct(()=>import("./index-52lciyqj.js"),__vite__mapDeps([63,25,26,20,2,3,4,14,15,1,27,28,23,18,9,10,11,12,8,29,30,31,32,13,33,16,34,35,36,37,38,39,40,41])),uIe=rt("/mail/$mailboxId/")({component:ht(lIe,"component")}),cIe=()=>ct(()=>import("./_threadId-o-H-Jg2_.js"),[]),dIe=rt("/mail/$mailboxId/$threadId")({component:ht(cIe,"component")}),fIe=()=>ct(()=>import("./index-DG-9lbAY.js"),__vite__mapDeps([64,45,26,20,2,3,4,27,1,28,23,18,9,10,11,12,8,29,30,31,32,13,33,16,14,15,36,37,38,46])),hIe=rt("/mail/brief/")({component:ht(fIe,"component")}),pIe=()=>ct(()=>import("./_threadId-DiTlMLmK.js"),[]),mIe=rt("/mail/brief/$threadId")({component:ht(pIe,"component")}),gIe=()=>ct(()=>import("./index-WoxYtNwQ.js"),__vite__mapDeps([65,49,26,20,2,3,4,27,1,28,23,18,9,10,11,12,8,29,30,31,32,13,33,16,34,46])),vIe=rt("/mail/flagged/")({component:ht(gIe,"component")}),yIe=()=>ct(()=>import("./_threadId-bmbC9-QI.js"),[]),bIe=rt("/mail/flagged/$threadId")({component:ht(yIe,"component")}),SIe=()=>ct(()=>import("./index-Ds3Dhe_m.js"),__vite__mapDeps([66,51,26,20,2,3,4,15,33,52,53,35,16,29,19,38])),wIe=rt("/mail/outbox/")({component:ht(SIe,"component")}),xIe=()=>ct(()=>import("./index-u48XjL7T.js"),__vite__mapDeps([67,25,26,20,2,3,4,14,15,1,27,28,23,18,9,10,11,12,8,29,30,31,32,13,33,16,34,35,36,37,38,39,40,41])),CIe=rt("/mail/$mailboxId/$threadId/")({component:ht(xIe,"component")}),EIe=()=>ct(()=>import("./_messageId-DxVRxybh.js"),__vite__mapDeps([68,25,26,20,2,3,4,14,15,1,27,28,23,18,9,10,11,12,8,29,30,31,32,13,33,16,34,35,36,37,38,39,40,41])),_Ie=rt("/mail/$mailboxId/$threadId/$messageId")({component:ht(EIe,"component")}),kIe=()=>ct(()=>import("./compose._-_outboxMessageId_-D4G2SovG.js"),__vite__mapDeps([69,7,8,9,2,3,10,11,12,13])),AIe=rt("/mail/$mailboxId/compose/{-$outboxMessageId}")({component:ht(kIe,"component")}),RIe=()=>ct(()=>import("./index-B44y3Bc9.js"),__vite__mapDeps([70,45,26,20,2,3,4,27,1,28,23,18,9,10,11,12,8,29,30,31,32,13,33,16,14,15,36,37,38,46])),IIe=rt("/mail/brief/$threadId/")({component:ht(RIe,"component")}),TIe=()=>ct(()=>import("./_messageId-B44y3Bc9.js"),__vite__mapDeps([71,45,26,20,2,3,4,27,1,28,23,18,9,10,11,12,8,29,30,31,32,13,33,16,14,15,36,37,38,46])),OIe=rt("/mail/brief/$threadId/$messageId")({component:ht(TIe,"component")}),NIe=()=>ct(()=>import("./compose._-_outboxMessageId_-95IeyaNp.js"),__vite__mapDeps([72,7,8,9,2,3,10,11,12,13])),MIe=rt("/mail/brief/compose/{-$outboxMessageId}")({component:ht(NIe,"component")}),PIe=()=>ct(()=>import("./index-JUWsb_TU.js"),__vite__mapDeps([73,49,26,20,2,3,4,27,1,28,23,18,9,10,11,12,8,29,30,31,32,13,33,16,34,46])),LIe=rt("/mail/flagged/$threadId/")({component:ht(PIe,"component")}),DIe=()=>ct(()=>import("./_messageId-JUWsb_TU.js"),__vite__mapDeps([74,49,26,20,2,3,4,27,1,28,23,18,9,10,11,12,8,29,30,31,32,13,33,16,34,46])),UIe=rt("/mail/flagged/$threadId/$messageId")({component:ht(DIe,"component")}),jIe=()=>ct(()=>import("./compose._-_outboxMessageId_-D4m1_-nR.js"),__vite__mapDeps([75,7,8,9,2,3,10,11,12,13])),zIe=rt("/mail/flagged/compose/{-$outboxMessageId}")({component:ht(jIe,"component")}),FIe=()=>ct(()=>import("./compose._-_outboxMessageId_-CB4LoT6K.js"),__vite__mapDeps([76,7,8,9,2,3,10,11,12,13])),$Ie=rt("/mail/outbox/compose/{-$outboxMessageId}")({component:ht(FIe,"component")}),BIe=()=>ct(()=>import("./_outboxMessageId-CTWgaX1u.js"),__vite__mapDeps([77,51,26,20,2,3,4,15,33,52,53,35,16,29,19,38])),HIe=rt("/mail/outbox/draft/$outboxMessageId")({component:ht(BIe,"component")}),qIe=rt("/mail/$mailboxId/$threadId/$messageId/$mode/{-$outboxMessageId}")({}),WIe=rt("/mail/brief/$threadId/$messageId/$mode/{-$outboxMessageId}")({}),VIe=rt("/mail/flagged/$threadId/$messageId/$mode/{-$outboxMessageId}")({}),GIe=NAe.update({id:"/",path:"/",getParentRoute:()=>Dp}),Pd=xRe.update({id:"/mail",path:"/mail",getParentRoute:()=>Dp}),KIe=ERe.update({id:"/onboarding",path:"/onboarding",getParentRoute:()=>Dp}),Ds=ARe.update({id:"/settings",path:"/settings",getParentRoute:()=>Dp}),YIe=NRe.update({id:"/",path:"/",getParentRoute:()=>Pd}),hy=PRe.update({id:"/$mailboxId",path:"/$mailboxId",getParentRoute:()=>Pd}),py=URe.update({id:"/brief",path:"/brief",getParentRoute:()=>Pd}),my=FRe.update({id:"/flagged",path:"/flagged",getParentRoute:()=>Pd}),gy=BRe.update({id:"/outbox",path:"/outbox",getParentRoute:()=>Pd}),ZIe=qRe.update({id:"/",path:"/",getParentRoute:()=>Ds}),XIe=GRe.update({id:"/accounts",path:"/accounts",getParentRoute:()=>Ds}),QIe=YRe.update({id:"/advanced",path:"/advanced",getParentRoute:()=>Ds}),JIe=XRe.update({id:"/appearance",path:"/appearance",getParentRoute:()=>Ds}),eTe=JRe.update({id:"/filters",path:"/filters",getParentRoute:()=>Ds}),tTe=tIe.update({id:"/folders",path:"/folders",getParentRoute:()=>Ds}),nTe=rIe.update({id:"/labels",path:"/labels",getParentRoute:()=>Ds}),rTe=sIe.update({id:"/senders",path:"/senders",getParentRoute:()=>Ds}),aTe=iIe.update({id:"/suggested-vips",path:"/suggested-vips",getParentRoute:()=>Ds}),sTe=uIe.update({id:"/",path:"/",getParentRoute:()=>hy}),xR=dIe.update({id:"/$threadId",path:"/$threadId",getParentRoute:()=>hy}),oTe=hIe.update({id:"/",path:"/",getParentRoute:()=>py}),CR=mIe.update({id:"/$threadId",path:"/$threadId",getParentRoute:()=>py}),iTe=vIe.update({id:"/",path:"/",getParentRoute:()=>my}),ER=bIe.update({id:"/$threadId",path:"/$threadId",getParentRoute:()=>my}),lTe=wIe.update({id:"/",path:"/",getParentRoute:()=>gy}),uTe=CIe.update({id:"/",path:"/",getParentRoute:()=>xR}),cq=_Ie.update({id:"/$messageId",path:"/$messageId",getParentRoute:()=>xR}),cTe=AIe.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>hy}),dTe=IIe.update({id:"/",path:"/",getParentRoute:()=>CR}),dq=OIe.update({id:"/$messageId",path:"/$messageId",getParentRoute:()=>CR}),fTe=MIe.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>py}),hTe=LIe.update({id:"/",path:"/",getParentRoute:()=>ER}),fq=UIe.update({id:"/$messageId",path:"/$messageId",getParentRoute:()=>ER}),pTe=zIe.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>my}),mTe=$Ie.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>gy}),gTe=HIe.update({id:"/draft/$outboxMessageId",path:"/draft/$outboxMessageId",getParentRoute:()=>gy}),vTe=qIe.update({id:"/$mode/{-$outboxMessageId}",path:"/$mode/{-$outboxMessageId}",getParentRoute:()=>cq}),yTe=WIe.update({id:"/$mode/{-$outboxMessageId}",path:"/$mode/{-$outboxMessageId}",getParentRoute:()=>dq}),bTe=VIe.update({id:"/$mode/{-$outboxMessageId}",path:"/$mode/{-$outboxMessageId}",getParentRoute:()=>fq}),STe={MailMailboxIdThreadIdMessageIdModeChar123OutboxMessageIdChar125Route:vTe},wTe=cq._addFileChildren(STe),xTe={MailMailboxIdThreadIdMessageIdRoute:wTe,MailMailboxIdThreadIdIndexRoute:uTe},CTe=xR._addFileChildren(xTe),ETe={MailMailboxIdThreadIdRoute:CTe,MailMailboxIdIndexRoute:sTe,MailMailboxIdComposeChar123OutboxMessageIdChar125Route:cTe},_Te=hy._addFileChildren(ETe),kTe={MailBriefThreadIdMessageIdModeChar123OutboxMessageIdChar125Route:yTe},ATe=dq._addFileChildren(kTe),RTe={MailBriefThreadIdMessageIdRoute:ATe,MailBriefThreadIdIndexRoute:dTe},ITe=CR._addFileChildren(RTe),TTe={MailBriefThreadIdRoute:ITe,MailBriefIndexRoute:oTe,MailBriefComposeChar123OutboxMessageIdChar125Route:fTe},OTe=py._addFileChildren(TTe),NTe={MailFlaggedThreadIdMessageIdModeChar123OutboxMessageIdChar125Route:bTe},MTe=fq._addFileChildren(NTe),PTe={MailFlaggedThreadIdMessageIdRoute:MTe,MailFlaggedThreadIdIndexRoute:hTe},LTe=ER._addFileChildren(PTe),DTe={MailFlaggedThreadIdRoute:LTe,MailFlaggedIndexRoute:iTe,MailFlaggedComposeChar123OutboxMessageIdChar125Route:pTe},UTe=my._addFileChildren(DTe),jTe={MailOutboxIndexRoute:lTe,MailOutboxComposeChar123OutboxMessageIdChar125Route:mTe,MailOutboxDraftOutboxMessageIdRoute:gTe},zTe=gy._addFileChildren(jTe),FTe={MailMailboxIdRoute:_Te,MailBriefRoute:OTe,MailFlaggedRoute:UTe,MailOutboxRoute:zTe,MailIndexRoute:YIe},$Te=Pd._addFileChildren(FTe),BTe={SettingsAccountsRoute:XIe,SettingsAdvancedRoute:QIe,SettingsAppearanceRoute:JIe,SettingsFiltersRoute:eTe,SettingsFoldersRoute:tTe,SettingsLabelsRoute:nTe,SettingsSendersRoute:rTe,SettingsSuggestedVipsRoute:aTe,SettingsIndexRoute:ZIe},HTe=Ds._addFileChildren(BTe),qTe={IndexRoute:GIe,MailRoute:$Te,OnboardingRoute:KIe,SettingsRoute:HTe},WTe=Dp._addFileChildren(qTe)._addFileTypes(),VTe=(t,e)=>{const n=Vve({routeTree:WTe,context:{queryClient:t},defaultPreload:"intent",defaultPendingComponent:fv,defaultPendingMs:200,defaultPendingMinMs:300});return n.subscribe("onResolved",r=>{e.recordPageView(r.toLocation.pathname),Sse(r.toLocation.pathname)}),n},We=t=>typeof t=="string",th=()=>{let t,e;const n=new Promise((r,a)=>{t=r,e=a});return n.resolve=t,n.reject=e,n},cL=t=>t==null?"":""+t,GTe=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},KTe=/###/g,dL=t=>t&&t.indexOf("###")>-1?t.replace(KTe,"."):t,fL=t=>!t||We(t),Oh=(t,e,n)=>{const r=We(e)?e.split("."):e;let a=0;for(;a<r.length-1;){if(fL(t))return{};const s=dL(r[a]);!t[s]&&n&&(t[s]=new n),Object.prototype.hasOwnProperty.call(t,s)?t=t[s]:t={},++a}return fL(t)?{}:{obj:t,k:dL(r[a])}},hL=(t,e,n)=>{const{obj:r,k:a}=Oh(t,e,Object);if(r!==void 0||e.length===1){r[a]=n;return}let s=e[e.length-1],i=e.slice(0,e.length-1),u=Oh(t,i,Object);for(;u.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),u=Oh(t,i,Object),u?.obj&&typeof u.obj[`${u.k}.${s}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${s}`]=n},YTe=(t,e,n,r)=>{const{obj:a,k:s}=Oh(t,e,Object);a[s]=a[s]||[],a[s].push(n)},$1=(t,e)=>{const{obj:n,k:r}=Oh(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},ZTe=(t,e,n)=>{const r=$1(t,n);return r!==void 0?r:$1(e,n)},hq=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?We(t[r])||t[r]instanceof String||We(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):hq(t[r],e[r],n):t[r]=e[r]);return t},Sc=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var XTe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const QTe=t=>We(t)?t.replace(/[&<>"'\/]/g,e=>XTe[e]):t;class JTe{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const e4e=[" ",",","?","!",";"],t4e=new JTe(20),n4e=(t,e,n)=>{e=e||"",n=n||"";const r=e4e.filter(i=>e.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const a=t4e.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let s=!a.test(t);if(!s){const i=t.indexOf(n);i>0&&!a.test(t.substring(0,i))&&(s=!0)}return s},U_=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const r=e.split(n);let a=t;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},B1=t=>t?.replace("_","-"),r4e={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class H1{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||r4e,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,a){return a&&!this.debug?null:(We(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new H1(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new H1(this.logger,e)}}var Es=new H1;class vy{constructor(){this.observers={}}on(e,n){return e.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(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){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[e]&&Array.from(this.observers[e].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,[e,...r])})}}class pL extends vy{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,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;e.indexOf(".")>-1?u=e.split("."):(u=[e,n],r&&(Array.isArray(r)?u.push(...r):We(r)&&s?u.push(...r.split(s)):u.push(r)));const c=$1(this.data,u);return!c&&!n&&!r&&e.indexOf(".")>-1&&(e=u[0],n=u[1],r=u.slice(2).join(".")),c||!i||!We(r)?c:U_(this.data?.[e]?.[n],r,s)}addResource(e,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=[e,n];r&&(u=u.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(u=e.split("."),a=n,n=u[1]),this.addNamespaces(n),hL(this.data,u,a),s.silent||this.emit("added",e,n,r,a)}addResources(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(We(r[s])||Array.isArray(r[s]))&&this.addResource(e,n,s,r[s],{silent:!0});a.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},u=[e,n];e.indexOf(".")>-1&&(u=e.split("."),a=r,r=n,n=u[1]),this.addNamespaces(n);let c=$1(this.data,u)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?hq(c,r,s):c={...c,...r},hL(this.data,u,c),i.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var pq={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,a){return t.forEach(s=>{e=this.processors[s]?.process(e,n,r,a)??e}),e}};const mL={},gL=t=>!We(t)&&typeof t!="boolean"&&typeof t!="number";class q1 extends vy{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),GTe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Es.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};return e==null?!1:this.resolve(e,n)?.res!==void 0}extractFromKey(e,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&&e.indexOf(r)>-1,u=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!n4e(e,r,a);if(i&&!u){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:We(s)?[s]:s};const f=e.split(r);(r!==a||r===a&&this.options.ns.indexOf(f[0])>-1)&&(s=f.shift()),e=f.join(a)}return{key:e,namespaces:We(s)?[s]:s}}translate(e,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);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(e[e.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 U=n.nsSeparator||this.options.nsSeparator;return a?{res:`${c}${U}${i}`,usedKey:i,exactUsedKey:i,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${U}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:i}const m=this.resolve(e,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,E=!this.i18nFormat||this.i18nFormat.handleAsObject,A=n.count!==void 0&&!We(n.count),k=q1.hasDefaultValue(n),I=A?this.pluralResolver.getSuffix(f,n.count,n):"",N=n.ordinal&&A?this.pluralResolver.getSuffix(f,n.count,{ordinal:!1}):"",O=A&&!n.ordinal&&n.count===0,T=O&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${I}`]||n[`defaultValue${N}`]||n.defaultValue;let P=g;E&&!g&&k&&(P=T);const D=gL(P),q=Object.prototype.toString.apply(P);if(E&&P&&D&&w.indexOf(q)<0&&!(We(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 U=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=U,m.usedParams=this.getUsedParamsDetails(n),m):U}if(s){const U=Array.isArray(P),j=U?[]:{},$=U?S:y;for(const Z in P)if(Object.prototype.hasOwnProperty.call(P,Z)){const ne=`${$}${s}${Z}`;k&&!g?j[Z]=this.translate(ne,{...n,defaultValue:gL(T)?T[Z]:void 0,joinArrays:!1,ns:u}):j[Z]=this.translate(ne,{...n,joinArrays:!1,ns:u}),j[Z]===ne&&(j[Z]=P[Z])}g=j}}else if(E&&We(x)&&Array.isArray(g))g=g.join(x),g&&(g=this.extendTranslation(g,e,n,r));else{let U=!1,j=!1;!this.isValidLookup(g)&&k&&(U=!0,g=T),this.isValidLookup(g)||(j=!0,g=i);const Z=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&j?void 0:g,ne=k&&T!==g&&this.options.updateMissing;if(j||U||ne){if(this.logger.log(ne?"updateKey":"missingKey",f,c,i,ne?T:g),s){const he=this.resolve(i,{...n,keySeparator:!1});he&&he.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 H=[];const X=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&X&&X[0])for(let he=0;he<X.length;he++)H.push(X[he]);else this.options.saveMissingTo==="all"?H=this.languageUtils.toResolveHierarchy(n.lng||this.language):H.push(n.lng||this.language);const ae=(he,xe,z)=>{const V=k&&z!==g?z:Z;this.options.missingKeyHandler?this.options.missingKeyHandler(he,c,xe,V,ne,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(he,c,xe,V,ne,n),this.emit("missingKey",he,c,xe,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?H.forEach(he=>{const xe=this.pluralResolver.getSuffixes(he,n);O&&n[`defaultValue${this.options.pluralSeparator}zero`]&&xe.indexOf(`${this.options.pluralSeparator}zero`)<0&&xe.push(`${this.options.pluralSeparator}zero`),xe.forEach(z=>{ae([he],i+z,n[`defaultValue${z}`]||T)})}):ae(H,i,T))}g=this.extendTranslation(g,e,n,m,r),j&&g===i&&this.options.appendNamespaceToMissingKey&&(g=`${c}:${i}`),(j||U)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,U?g:void 0))}return a?(m.res=g,m.usedParams=this.getUsedParamsDetails(n),m):g}extendTranslation(e,n,r,a,s){var i=this;if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...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=We(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(f){const g=e.match(this.interpolator.nestingRegexp);h=g&&g.length}let m=r.replace&&!We(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),e=this.interpolator.interpolate(e,m,r.lng||this.language||a.usedLng,r),f){const g=e.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&&(e=this.interpolator.nest(e,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=We(u)?[u]:u;return e!=null&&c?.length&&r.applyPostProcessor!==!1&&(e=pq.handle(c,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,a,s,i,u;return We(e)&&(e=[e]),e.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&&!We(n.count),y=g&&!n.ordinal&&n.count===0,S=n.context!==void 0&&(We(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,!mL[`${w[0]}-${x}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(u)&&(mL[`${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(E=>{if(this.isValidLookup(r))return;i=E;const A=[h];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(A,h,E,x,n);else{let I;g&&(I=this.pluralResolver.getSuffix(E,n.count,n));const N=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(A.push(h+I),n.ordinal&&I.indexOf(O)===0&&A.push(h+I.replace(O,this.options.pluralSeparator)),y&&A.push(h+N)),S){const T=`${h}${this.options.contextSeparator}${n.context}`;A.push(T),g&&(A.push(T+I),n.ordinal&&I.indexOf(O)===0&&A.push(T+I.replace(O,this.options.pluralSeparator)),y&&A.push(T+N))}}let k;for(;k=A.pop();)this.isValidLookup(r)||(s=k,r=this.getResource(E,x,k,n))}))})}),{res:r,usedKey:a,exactUsedKey:s,usedLng:i,usedNS:u}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,r,a):this.resourceStore.getResource(e,n,r,a)}getUsedParamsDetails(){let e=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=e.replace&&!We(e.replace);let a=r?e.replace:e;if(r&&typeof e.count<"u"&&(a.count=e.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(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}class vL{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Es.create("languageUtils")}getScriptPartFromCode(e){if(e=B1(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=B1(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(We(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&e.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(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),We(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],e),a=[],s=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return We(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):We(e)&&s(this.formatLanguageCode(e)),r.forEach(i=>{a.indexOf(i)<0&&s(this.formatLanguageCode(i))}),a}}const yL={zero:0,one:1,two:2,few:3,many:4,other:5},bL={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class a4e{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=Es.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=B1(e==="dev"?"en":e),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!"),bL;if(!e.match(/-|_/))return bL;const c=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(c,n)}return this.pluralRulesCache[s]=i,i}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,r).map(a=>`${n}${a}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,s)=>yL[a]-yL[s]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(e,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,r))}}const SL=function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=ZTe(t,e,n);return!s&&a&&We(n)&&(s=U_(t,n,r),s===void 0&&(s=U_(e,n,r))),s},wE=t=>t.replace(/\$/g,"$$$$");class s4e{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Es.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.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:E,alwaysFormat:A}=e.interpolation;this.escape=n!==void 0?n:QTe,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=s?Sc(s):i||"{{",this.suffix=u?Sc(u):c||"}}",this.formatSeparator=f||",",this.unescapePrefix=h?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":h||"",this.nestingPrefix=g?Sc(g):y||Sc("$t("),this.nestingSuffix=S?Sc(S):w||Sc(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=E||1e3,this.alwaysFormat=A!==void 0?A:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,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 E=SL(n,c,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(E,void 0,r,{...a,...n,interpolationkey:y}):E}const S=y.split(this.formatSeparator),w=S.shift().trim(),x=S.join(this.formatSeparator).trim();return this.format(SL(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=>wE(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?wE(this.escape(y)):wE(y)}].forEach(y=>{for(u=0;s=y.regex.exec(e);){const S=s[1].trim();if(i=f(S),i===void 0)if(typeof h=="function"){const x=h(e,s,a);i=We(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 ${e}`),i="";else!We(i)&&!this.useRawValueToEscape&&(i=cL(i));const w=y.safeValue(i);if(e=e.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}}),e}nest(e,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(e);){let c=[];i={...r},i=i.replace&&!We(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]===e&&!We(s))return s;We(s)||(s=cL(s)),s||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`),s=""),f&&(s=c.reduce((h,m)=>this.format(h,m,r.lng,{...r,interpolationkey:a[1].trim()}),s.trim())),e=e.replace(a[0],s),this.regexp.lastIndex=0}return e}}const o4e=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);e==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):e==="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:e,formatOptions:n}},wc=t=>{const e={};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=e[i];return u||(u=t(B1(r),a),e[i]=u),u(n)}};class i4e{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Es.create("formatter"),this.options=e,this.formats={number:wc((n,r)=>{const a=new Intl.NumberFormat(n,{...r});return s=>a.format(s)}),currency:wc((n,r)=>{const a=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>a.format(s)}),datetime:wc((n,r)=>{const a=new Intl.DateTimeFormat(n,{...r});return s=>a.format(s)}),relativetime:wc((n,r)=>{const a=new Intl.RelativeTimeFormat(n,{...r});return s=>a.format(s,r.range||"day")}),list:wc((n,r)=>{const a=new Intl.ListFormat(n,{...r});return s=>a.format(s)})},this.init(e)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=wc(n)}format(e,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}=o4e(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},e)}}const l4e=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class u4e extends vy{constructor(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=Es.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(e,n,r,a){const s={},i={},u={},c={};return e.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(e,n,r){const a=e.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[e]=n?-1:2,n&&r&&(this.state[e]=0);const u={};this.queue.forEach(c=>{YTe(c.loaded,[s],i),l4e(c,e),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(e,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(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,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,e,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(e,n);f&&typeof f.then=="function"?f.then(h=>u(null,h)).catch(u):u(null,f)}catch(f){u(f)}return}return c(e,n,u)}prepareLoading(e,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();We(e)&&(e=this.languageUtils.toResolveHierarchy(e)),We(n)&&(n=[n]);const s=this.queueLoad(e,n,r,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=e.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(e,i,u)})}saveMissing(e,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(e,n,r,a,c):h=f(e,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(e,n,r,a,u,c)}!e||!e[0]||this.store.addResource(e[0],n,r,a)}}}const wL=()=>({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:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),We(t[1])&&(e.defaultValue=t[1]),We(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),xL=t=>(We(t.ns)&&(t.ns=[t.ns]),We(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),We(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),e0=()=>{},c4e=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class hp extends vy{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=xL(e),this.services={},this.logger=Es,this.modules={external:[]},c4e(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=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&&(We(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=wL();this.options={...a,...this.options,...xL(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?Es.init(s(this.modules.logger),this.options):Es.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=i4e;const m=new vL(this.options);this.store=new pL(this.options.resources,this.options);const g=this.services;g.logger=Es,g.resourceStore=this.store,g.languageUtils=m,g.pluralResolver=new a4e(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 s4e(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new u4e(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];e.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];e.emit(y,...w)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=e0),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 e.store[h](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=function(){return e.store[h](...arguments),e}});const c=th(),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(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e0;const a=We(e)?e:this.language;if(typeof e=="function"&&(r=e),!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(e,n,r){const a=th();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=e0),this.services.backendConnector.reload(e,n,s=>{a.resolve(),r(s)}),a}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&pq.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-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(e,n){var r=this;this.isLanguageChangingTo=e;const a=th();this.emit("languageChanging",e);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=>{!e&&!c&&this.services.languageDetector&&(c=[]);const f=We(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!e&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!e&&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(e),a}getFixedT(e,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 We(e)?s.lng=e:s.lngs=e,s.ns=n,s.keyPrefix=r,s}t(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.translator?.translate(...n)}exists(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.translator?.exists(...n)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){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,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,e)&&(!a||i(s,e)))}loadNamespaces(e,n){const r=th();return this.options.ns?(We(e)&&(e=[e]),e.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(e,n){const r=th();We(e)&&(e=[e]);const a=this.options.preload||[],s=e.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(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)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 vL(wL());return n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new hp(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e0;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const a={...this.options,...e,isClone:!0},s=new hp(a);if((e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["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 pL(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 Sr=hp.createInstance();Sr.createInstance=hp.createInstance;Sr.createInstance;Sr.dir;Sr.init;Sr.loadResources;Sr.reloadResources;Sr.use;Sr.changeLanguage;Sr.getFixedT;Sr.t;Sr.exists;Sr.setDefaultNamespace;Sr.hasLoadedNamespace;Sr.loadNamespaces;Sr.loadLanguages;const{slice:d4e,forEach:f4e}=[];function h4e(t){return f4e.call(d4e.call(arguments,1),e=>{if(e)for(const n in e)t[n]===void 0&&(t[n]=e[n])}),t}function p4e(t){return typeof t!="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(t))}const CL=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,m4e=function(t,e){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},a=encodeURIComponent(e);let s=`${t}=${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(!CL.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!CL.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},EL={create(t,e,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=m4e(t,e,a)},read(t){const e=`${t}=`,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(e)===0)return a.substring(e.length,a.length)}return null},remove(t,e){this.create(t,"",-1,e)}};var g4e={name:"cookie",lookup(t){let{lookupCookie:e}=t;if(e&&typeof document<"u")return EL.read(e)||void 0},cacheUserLanguage(t,e){let{lookupCookie:n,cookieMinutes:r,cookieDomain:a,cookieOptions:s}=e;n&&typeof document<"u"&&EL.create(n,t,r,a,s)}},v4e={name:"querystring",lookup(t){let{lookupQuerystring:e}=t,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)===e&&(n=s[i].substring(u+1))}}return n}},y4e={name:"hash",lookup(t){let{lookupHash:e,lookupFromHashIndex:n}=t,r;if(typeof window<"u"){const{hash:a}=window.location;if(a&&a.length>2){const s=a.substring(1);if(e){const i=s.split("&");for(let u=0;u<i.length;u++){const c=i[u].indexOf("=");c>0&&i[u].substring(0,c)===e&&(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 xc=null;const _L=()=>{if(xc!==null)return xc;try{if(xc=typeof window<"u"&&window.localStorage!==null,!xc)return!1;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{xc=!1}return xc};var b4e={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&_L())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:n}=e;n&&_L()&&window.localStorage.setItem(n,t)}};let Cc=null;const kL=()=>{if(Cc!==null)return Cc;try{if(Cc=typeof window<"u"&&window.sessionStorage!==null,!Cc)return!1;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Cc=!1}return Cc};var S4e={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&kL())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:n}=e;n&&kL()&&window.sessionStorage.setItem(n,t)}},w4e={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:a}=navigator;if(n)for(let s=0;s<n.length;s++)e.push(n[s]);r&&e.push(r),a&&e.push(a)}return e.length>0?e:void 0}},x4e={name:"htmlTag",lookup(t){let{htmlTag:e}=t,n;const r=e||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},C4e={name:"path",lookup(t){let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof e=="number"?e:0]?.replace("/",""):void 0}},E4e={name:"subdomain",lookup(t){let{lookupFromSubdomainIndex:e}=t;const n=typeof e=="number"?e+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 mq=!1;try{document.cookie,mq=!0}catch{}const gq=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];mq||gq.splice(1,1);const _4e=()=>({order:gq,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t});class vq{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,n)}init(){let e=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=e,this.options=h4e(n,this.options||{},_4e()),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(g4e),this.addDetector(v4e),this.addDetector(b4e),this.addDetector(S4e),this.addDetector(w4e),this.addDetector(x4e),this.addDetector(C4e),this.addDetector(E4e),this.addDetector(y4e)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return e.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&&!p4e(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(e,this.options)}))}}vq.type="languageDetector";function k4e(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=A4e(t))||e){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[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(t)},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 A4e(t,e){if(t){if(typeof t=="string")return AL(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?AL(t,e):void 0}}function AL(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function j_(t){"@babel/helpers - typeof";return j_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j_(t)}var yq=["__proto__","constructor","prototype"];function bq(t){return!(typeof t!="string"||t.length===0||t.length>128||yq.indexOf(t)>-1||t.indexOf("..")>-1||t.indexOf("\\")>-1||/[?#%\s@]/.test(t)||/[\x00-\x1F\x7F]/.test(t))}function Sq(t){return!(!bq(t)||t.indexOf("/")>-1)}function R4e(t){return bq(t)}var I4e={lng:Sq,ns:R4e};function t0(t){return typeof t!="string"?t:t.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function T4e(t){if(typeof t!="string"||t.length===0)return t;try{var e=new URL(t);return e.username||e.password?(e.username="",e.password="",e.toString()):t}catch{return t.replace(/(\/\/)[^/@\s]+@/g,"$1")}}function wq(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":j_(XMLHttpRequest))==="object"}function O4e(t){return!!t&&typeof t.then=="function"}function N4e(t){return O4e(t)?t:Promise.resolve(t)}var M4e=/\{\{(.+?)\}\}/g;function RL(t,e){var n=!1,r=t.replace(M4e,function(a,s){var i=s.trim();if(yq.indexOf(i)>-1)return a;var u=e[i];if(u==null)return a;var c=I4e[i]||Sq,f=String(u).split("+"),h=k4e(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 IL(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function TL(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?IL(Object(n),!0).forEach(function(r){P4e(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):IL(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function P4e(t,e,n){return(e=L4e(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function L4e(t){var e=D4e(t,"string");return iu(e)=="symbol"?e:e+""}function D4e(t,e){if(iu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(iu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function iu(t){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iu(t)}var Yi=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?Yi=global.fetch:typeof window<"u"&&window.fetch&&(Yi=window.fetch);var pp;wq()&&(typeof global<"u"&&global.XMLHttpRequest?pp=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(pp=window.XMLHttpRequest));var W1;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?W1=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(W1=window.ActiveXObject));typeof Yi!="function"&&(Yi=void 0);if(!Yi&&!pp&&!W1)try{ct(()=>import("./browser-ponyfill-DU2Y7A0e.js").then(t=>t.b),[]).then(function(t){Yi=t.default}).catch(function(){})}catch{}var xq=["__proto__","constructor","prototype"],z_=function(e,n){if(n&&iu(n)==="object"){for(var r="",a=0,s=Object.keys(n);a<s.length;a++){var i=s[a];xq.indexOf(i)>-1||(r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]))}if(!r)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+r.slice(1)}return e},OL=function(e,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(e,n);if(i instanceof Promise){i.then(s).catch(r);return}}typeof fetch=="function"?fetch(e,n).then(s).catch(r):Yi(e,n).then(s).catch(r)},U4e=function(e,n,r,a){e.queryStringParams&&(n=z_(n,e.queryStringParams));var s=TL({},typeof e.customHeaders=="function"?e.customHeaders():e.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 e.requestOptions=="function"?e.requestOptions(r):e.requestOptions,u=TL({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:s},e._omitFetchOptions?{}:i),c=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{OL(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]}),OL(n,u,a,c),e._omitFetchOptions=!0}catch(h){a(h)}}},j4e=function(e,n,r,a){r&&iu(r)==="object"&&(r=z_("",r).slice(1)),e.queryStringParams&&(n=z_(n,e.queryStringParams));try{var s=pp?new pp:new W1("MSXML2.XMLHTTP.3.0");s.open(r?"POST":"GET",n,1),e.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!e.withCredentials,r&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var i=e.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];xq.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)}},z4e=function(e,n,r,a){if(typeof r=="function"&&(a=r,r=void 0),a=a||function(){},Yi&&n.indexOf("file:")!==0)return U4e(e,n,r,a);if(wq()||typeof ActiveXObject=="function")return j4e(e,n,r,a);a(new Error("No fetch and no xhr implementation found!"))};function vd(t){"@babel/helpers - typeof";return vd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vd(t)}function NL(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function xE(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?NL(Object(n),!0).forEach(function(r){Cq(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):NL(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function F4e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $4e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Eq(r.key),r)}}function B4e(t,e,n){return e&&$4e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Cq(t,e,n){return(e=Eq(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Eq(t){var e=H4e(t,"string");return vd(e)=="symbol"?e:e+""}function H4e(t,e){if(vd(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(vd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var q4e=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 Cq({},r,a||"")},parseLoadPayload:function(n,r){},request:z4e,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},_q=(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};F4e(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return B4e(t,[{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=xE(xE(xE({},q4e()),this.options||{}),a),this.allOptions=s,this.services&&this.options.reloadInterval){var i=setInterval(function(){return r.reload()},this.options.reloadInterval);vd(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=N4e(c),c.then(function(f){if(!f)return i(null,{});var h=RL(f,{lng:n.join("+"),ns:a.join("+")});if(h==null){var m=n.map(t0).join(", "),g=a.map(t0).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=t0(T4e(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(E){return y.indexOf(E)>-1});if(S)return r("failed loading "+h+": "+t0(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=RL(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)})})})}}}])})();_q.type="backend";Sr.use(_q).use(vq).use(o_e).init({fallbackLng:"en",supportedLngs:["en","nl","de","fr"],ns:["common","mail","settings","errors"],defaultNS:"common",backend:{loadPath:"/locales/{{lng}}/{{ns}}.json"},detection:{order:["navigator","htmlTag"],caches:[]},interpolation:{escapeValue:!1},react:{useSuspense:!0,bindI18n:"languageChanged loaded"}});const W4e=({authProvider:t,rootElementId:e="root"})=>{vse(),K3e(),t.configure(),yye(t);const n=V3e();ise(n);const r=new q0e({queryCache:new SF({onError:xye}),mutationCache:new bF({onError:Cye}),defaultOptions:{queries:{staleTime:3e4,gcTime:5*6e4,retry:1}}}),a=VTe(r,n);n.recordPageView(window.location.pathname);const s=document.getElementById(e);if(!s)throw new Error(`Root element not found: #${e}`);const{Shell:i}=t;eye.createRoot(s).render(C.jsx(_.StrictMode,{children:C.jsx(DH.Provider,{value:n,children:C.jsxs(W0e,{client:r,children:[C.jsx(wye,{value:t,children:C.jsx(i,{children:C.jsx(Yve,{router:a})})}),!1]})})}))};W4e({authProvider:w0e});export{L5e as $,lee as A,en as B,zE as C,hte as D,D6e as E,bee as F,Yr as G,yd as H,eU as I,O_e as J,$H as K,Sj as L,See as M,Yl as N,ok as O,nv as P,HH as Q,bRe as R,FE as S,Aee as T,ZF as U,BH as V,bOe as W,Ts as X,PRe as Y,fv as Z,Q4e as _,_ee as a,__e as a$,d5e as a0,fk as a1,Hne as a2,ed as a3,F as a4,N6e as a5,f5e as a6,xA as a7,T6e as a8,IOe as a9,Rre as aA,R5e as aB,A5e as aC,yE as aD,QOe as aE,wk as aF,Y0 as aG,pAe as aH,ese as aI,Qae as aJ,Xae as aK,$9 as aL,f0 as aM,SOe as aN,MOe as aO,POe as aP,$ke as aQ,KU as aR,v5e as aS,sre as aT,tne as aU,Bke as aV,Xke as aW,Zke as aX,mk as aY,y5e as aZ,wOe as a_,AOe as aa,_Oe as ab,WU as ac,es as ad,jre as ae,Ph as af,sv as ag,wR as ah,sRe as ai,Th as aj,M6e as ak,ZOe as al,XOe as am,BE as an,GRe as ao,kOe as ap,ROe as aq,z6e as ar,B0 as as,qE as at,xee as au,F6e as av,hk as aw,qOe as ax,J4e as ay,Are as az,Ie as b,O7 as b$,E6e as b0,k6e as b1,W_e as b2,_6e as b3,xOe as b4,x6e as b5,R6e as b6,A6e as b7,gee as b8,ike as b9,hv as bA,Jte as bB,a5e as bC,t5e as bD,n6e as bE,WE as bF,ene as bG,kee as bH,f6e as bI,LOe as bJ,DOe as bK,lke as bL,jOe as bM,UOe as bN,Pre as bO,Od as bP,Fn as bQ,a1 as bR,dF as bS,z0e as bT,V0e as bU,Y0e as bV,J0e as bW,Z0e as bX,X0e as bY,Er as bZ,t1e as b_,zOe as ba,C6e as bb,Nke as bc,S6e as bd,s5e as be,JOe as bf,mke as bg,GOe as bh,VOe as bi,w5e as bj,qH as bk,u6e as bl,nee as bm,P6e as bn,lq as bo,HOe as bp,I6e as bq,b6e as br,nq as bs,WOe as bt,YOe as bu,m6e as bv,hke as bw,U_e as bx,Y4e as by,Eke as bz,Ot as c,L6e as c$,Q0e as c0,dp as c1,Gr as c2,yve as c3,iRe as c4,D5e as c5,S5e as c6,gke as c7,GD as c8,$ne as c9,n5e as cA,Zte as cB,Fre as cC,Qte as cD,I5e as cE,a6e as cF,Cke as cG,t6e as cH,_ke as cI,s6e as cJ,v6e as cK,r6e as cL,EOe as cM,COe as cN,a3 as cO,e6e as cP,y6e as cQ,o6e as cR,O6e as cS,h6e as cT,Z4e as cU,g6e as cV,fke as cW,H_e as cX,B_e as cY,$Oe as cZ,hRe as c_,Bne as ca,uee as cb,o5e as cc,VD as cd,u5 as ce,V4e as cf,G4e as cg,T5e as ch,l6e as ci,c6e as cj,ct as ck,p6e as cl,bke as cm,m5e as cn,d6e as co,p5e as cp,eee as cq,lU as cr,e5e as cs,tU as ct,Yte as cu,JD as cv,Nre as cw,mee as cx,zne as cy,b5e as cz,cee as d,C5e as d0,dv as d1,E5e as d2,_5e as d3,k5e as d4,U6e as d5,gRe as d6,x5e as d7,r5e as d8,dte as d9,Wte as da,M5e as db,N5e as dc,n1e as dd,FOe as de,BOe as df,g5e as dg,OOe as dh,oke as di,TOe as dj,NOe as dk,ake as dl,Zm as dm,c5e as dn,h5e as dp,Vte as dq,fee as dr,Wne as ds,u5e as dt,i5e as du,l5e as dv,dee as e,Eee as f,Cee as g,pee as h,X4e as i,C as j,j5e as k,j6e as l,Rp as m,Nd as n,O5e as o,FH as p,I_ as q,_ as r,Vh as s,i6e as t,Gte as u,dy as v,VF as w,KH as x,w6e as y,KOe as z};