cosmic-ai-genius 0.3.27 → 0.3.28
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap";@import"https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap";.genius-sdk__VoiceCall-module__genius-voice-call-container___pMQPi{position:fixed;bottom:20px;right:20px;width:200px;height:64px;background:#f6f6f6;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border-radius:36px;box-shadow:0 0 0 1px #0000000d,0 8px 24px #0000001f;z-index:10000;animation:genius-sdk__VoiceCall-module__slideIn___09HIS .3s ease-out}@keyframes genius-sdk__VoiceCall-module__slideIn___09HIS{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.genius-sdk__VoiceCall-module__genius-voice-call-content___D6lvV{display:flex;align-items:center;height:100%;padding:0 12px}.genius-sdk__VoiceCall-module__genius-voice-call-buttons___-r2z6{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;height:100%}.genius-sdk__VoiceCall-module__genius-voice-call-genius-icon___zXrKa{width:40px;height:40px;border-radius:50%;background:linear-gradient(140.43deg,#9747ff 41.482%,#1b85ff 116.12%);display:flex;align-items:center;justify-content:center;flex-shrink:0}.genius-sdk__VoiceCall-module__genius-voice-call-genius-icon-inner___ZNVcG{width:19.195px;height:19.195px;color:#fff;display:flex;align-items:center;justify-content:center}.genius-sdk__VoiceCall-module__genius-voice-call-genius-icon-inner___ZNVcG svg{width:100%;height:100%;fill:currentColor}.genius-sdk__VoiceCall-module__genius-voice-call-voice-container___Tp-nw{flex:1;display:flex;align-items:center;justify-content:center}.genius-sdk__VoiceCall-module__genius-voice-call-mic-button___t10z7{background:#fff;border:1px solid #e1e1e1;border-radius:35.2px;box-shadow:0 1px 3px #0000000f;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;flex-shrink:0}.genius-sdk__VoiceCall-module__genius-voice-call-mic-button___t10z7>svg{width:20px;height:20px;color:#5f5f5f;flex-shrink:0}.genius-sdk__VoiceCall-module__genius-voice-call-waveform___fQ96-{display:flex;align-items:center;justify-content:center;animation:genius-sdk__VoiceCall-module__pulse___ao-NY 1.5s ease-in-out infinite;flex-shrink:0}.genius-sdk__VoiceCall-module__genius-voice-call-waveform___fQ96- svg{width:20px;height:20px;color:#1b85ff}.genius-sdk__VoiceCall-module__genius-voice-call-waveform___fQ96- rect{animation:genius-sdk__VoiceCall-module__wave___W214g 1.2s ease-in-out infinite}.genius-sdk__VoiceCall-module__genius-voice-call-waveform___fQ96- rect:nth-child(1){animation-delay:0s}.genius-sdk__VoiceCall-module__genius-voice-call-waveform___fQ96- rect:nth-child(2){animation-delay:.1s}.genius-sdk__VoiceCall-module__genius-voice-call-waveform___fQ96- rect:nth-child(3){animation-delay:.2s}.genius-sdk__VoiceCall-module__genius-voice-call-waveform___fQ96- rect:nth-child(4){animation-delay:.3s}.genius-sdk__VoiceCall-module__genius-voice-call-waveform___fQ96- rect:nth-child(5){animation-delay:.4s}@keyframes genius-sdk__VoiceCall-module__pulse___ao-NY{0%,to{opacity:.3}50%{opacity:1}}@keyframes genius-sdk__VoiceCall-module__wave___W214g{0%,to{transform:scaleY(.5)}50%{transform:scaleY(1)}}.genius-sdk__VoiceCall-module__genius-voice-call-end-button___hwnPC{width:44px;height:44px;background:#fff;border:1px solid #e1e1e1;border-radius:35.2px;box-shadow:0 1px 3px #0000000f;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;flex-shrink:0;padding:0}.genius-sdk__VoiceCall-module__genius-voice-call-end-button___hwnPC:hover{background:#fee2e2;border-color:#fca5a5}.genius-sdk__VoiceCall-module__genius-voice-call-end-button___hwnPC:active{transform:scale(.95)}.genius-sdk__VoiceCall-module__genius-voice-call-end-button___hwnPC svg{width:20px;height:20px;color:#f04438}@media (max-width: 768px){.genius-sdk__VoiceCall-module__genius-voice-call-container___pMQPi{bottom:10px;right:10px;left:10px;width:auto;max-width:300px;margin:0 auto}}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD{border:1px solid #EDEDED!important;border-radius:.5rem;display:flex;flex-direction:column;gap:.75rem;position:relative}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-container___PF9Kl{background:#fff;border-radius:.25rem;box-shadow:0 1px 3px #0000001a}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-item___S61g8{transition:all .2s ease}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-item___S61g8:hover{transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-bullet___iqmNl{flex-shrink:0;border-radius:.125rem;transition:all .2s ease}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-table___sQOwt{border-collapse:collapse;width:100%}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-table___sQOwt th{background:#f8f9fa;font-weight:600}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-table___sQOwt td,.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-table___sQOwt th{padding:.5rem;text-align:left;border-bottom:1px solid #e9ecef}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-table___sQOwt tr:hover{background:#007bff0d}@media (max-width: 768px){.genius-sdk__Highchart-module__highchart-wrapper___sM-hD{position:relative;margin-top:1.5rem}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-container___PF9Kl{padding:.5rem}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-item___S61g8{padding:.5rem .25rem}}@media (min-width: 769px){.genius-sdk__Highchart-module__highchart-wrapper___sM-hD,.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-container___PF9Kl{padding:1rem}}.genius-sdk__Highchart-module__highcharts-container___ygpjY{font-family:Inter,sans-serif!important}.genius-sdk__Highchart-module__highcharts-title___vYLWj{font-size:16px!important;font-weight:600!important;color:#9aa0a6!important}.genius-sdk__Highchart-module__highcharts-legend-item___QKt2l text{color:#5f6368!important;font-weight:500!important}.genius-sdk__Highchart-module__highcharts-axis-labels___0y1KO text{color:#9aa0a6!important}.genius-sdk__Highchart-module__highcharts-yaxis-labels___ZcIXe text{color:#9aa0a6!important}.genius-sdk__Highchart-module__highcharts-grid-line___gITcn{stroke:#e0e0e0!important}.genius-sdk__Highchart-module__highcharts-point___5Wqsl{stroke-width:2px!important}.genius-sdk__Highchart-module__highcharts-plot-background___XvssF{fill:#fff!important}.genius-sdk__Highchart-module__custom-legend___8txpT{background:#fff;border-radius:.5rem;box-shadow:0 2px 8px #0000001a;padding:1rem;margin:.5rem 0}.genius-sdk__Highchart-module__custom-legend-item___nUPlX{display:flex;align-items:center;gap:.5rem;padding:.25rem 0;cursor:pointer;transition:all .2s ease}.genius-sdk__Highchart-module__custom-legend-item___nUPlX:hover{background:#007bff0d;border-radius:.25rem}.genius-sdk__Highchart-module__custom-legend-bullet___3hLh2{width:12px;height:12px;border-radius:2px;flex-shrink:0}.genius-sdk__Highchart-module__custom-legend-text___Ja4cM{flex:1;font-size:.875rem;color:#374151;font-weight:500}.genius-sdk__Highchart-module__custom-legend-value___sMiwT{font-size:.75rem;color:#6b7280;font-weight:600}@media (max-width: 640px){.genius-sdk__Highchart-module__highchart-wrapper___sM-hD.genius-sdk__Highchart-module__flex-row___qsVq8{flex-direction:column}.genius-sdk__Highchart-module__custom-legend___8txpT{margin:.5rem 0 0}.genius-sdk__Highchart-module__custom-legend-item___nUPlX{padding:.5rem .25rem}.genius-sdk__Highchart-module__custom-legend-text___Ja4cM{font-size:.8rem}}.genius-sdk__Highchart-module__highchart-loading___XW7h3{position:relative;min-height:200px;display:flex;align-items:center;justify-content:center}.genius-sdk__Highchart-module__highchart-loading___XW7h3:after{content:"";width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #3498db;border-radius:50%;animation:genius-sdk__Highchart-module__spin___H-wRz 1s linear infinite}@keyframes genius-sdk__Highchart-module__spin___H-wRz{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:root{--modal-width-collapsed: 440px;--modal-height-collapsed: 680px;--modal-width-xl: 887px;--modal-height-xl: 90vh;--modal-width-lg: 796px;--modal-height-lg: 90vh;--modal-width-md-lg: 720px;--modal-height-md-lg: 90vh;--modal-width-md: 720px;--modal-height-md: 90vh;--modal-width-sm: 100%;--modal-height-sm: 90vh;--modal-max-width-sm: 720px;--modal-width-xs: 100%;--modal-height-xs: 100%}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-backdrop___1dyxh{position:fixed;top:0;left:0;right:0;bottom:0;background:#0003;z-index:9998;opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-backdrop___1dyxh.genius-sdk__GeniusChatbotDashboard-module__visible___ojnlM{opacity:.5;background:#77777780;visibility:visible}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW{position:fixed;bottom:20px;right:20px;width:var(--modal-width-collapsed);height:var(--modal-height-collapsed);background:#fff;border-radius:16px;border:1px solid #d9d9d9;display:flex;flex-direction:column;font-family:Inter,sans-serif;box-shadow:0 1px 8px -1px #0000000a;overflow:hidden;z-index:9999;transition:all .3s ease;touch-action:pan-y}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H{width:var(--modal-width-xl);height:var(--modal-height-xl)}@media (min-width: 1401px){.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H{width:var(--modal-width-xl);height:var(--modal-height-xl)}}@media (min-width: 1201px) and (max-width: 1400px){.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H{width:var(--modal-width-lg);height:var(--modal-height-lg)}}@media (min-width: 1025px) and (max-width: 1200px){.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H{width:var(--modal-width-md-lg);height:var(--modal-height-md-lg)}}@media (min-width: 921px) and (max-width: 1024px){.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H{width:var(--modal-width-md);height:var(--modal-height-md)}}@media (max-width: 1400px){.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-container___UTRzH:not(.genius-sdk__GeniusChatbotDashboard-module__single-line___VKYFP){height:100px!important;padding:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-container___UTRzH:not(.genius-sdk__GeniusChatbotDashboard-module__single-line___VKYFP) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1{max-height:32px;font-size:14px;line-height:20px}}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-top-bar___3z76Q{display:flex;justify-content:space-between;align-items:center;padding:16px 28px;border-bottom:1px solid #ededed;background:#fff;flex-shrink:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-icons-left___22uJz{display:flex;gap:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-icons-right___C5UjC{display:flex;gap:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-icon-container___4dRqI{background:transparent;border:none;padding:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .2s}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-icon-container___4dRqI:hover{opacity:.7}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-icon-container___4dRqI svg{width:20px;height:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-icon-container___4dRqI.genius-sdk__GeniusChatbotDashboard-module__with-text___skVCO{gap:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-back-text___Od1bW{font-size:14px;font-weight:500;color:#383838}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34{flex:1;display:flex;flex-direction:column;align-items:center;position:relative;overflow:hidden;background:#fff;padding-top:80px;min-height:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq):after{content:"";position:absolute;bottom:0;margin-right:8px;left:0;right:0;height:60px;padding-right:12px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(2px);pointer-events:none;z-index:5}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:not(:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq)){justify-content:center;padding-top:80px;padding-bottom:120px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-branding___7PzdS{display:flex;flex-direction:column;align-items:center;gap:16px;margin-bottom:24px;padding-top:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-logo-container___zHKb3{display:flex;flex-direction:column;gap:20px;align-items:center}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-logo___oWWc4{width:42px;height:42px;border-radius:29.781px;background:linear-gradient(140deg,#9747ff -41.48%,#1b85ff 116.12%);box-shadow:0 0 10.993px 3.664px #e9e7ff,0 0 2.644px #fff6 inset;display:flex;align-items:center;justify-content:center;padding:11.84px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-logo___oWWc4 svg{width:18.32px;height:18.32px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-welcome___ee72M{text-align:center;max-width:642px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-welcome___ee72M h2{font-weight:600;font-size:22px;line-height:35.2px;color:#2b2b2b;margin:0 0 4px;letter-spacing:-.44px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-welcome___ee72M p{font-weight:500;font-size:22px;line-height:35.2px;color:#5f5f5f;margin:0;letter-spacing:-.44px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-suggestions___ZcAU8{display:flex;gap:8px;justify-content:center;width:100%;padding:0;margin-top:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:not(:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq)) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-suggestions___ZcAU8{position:relative;top:auto;left:auto;right:auto;margin-bottom:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-suggestion___JFR-a{display:flex;padding:8px 12px;align-items:center;gap:8px;border-radius:12px;border:1px solid var(--Color-Gray-300, #EDEDED);background:var(--Color-Gray-0, #FFF);color:var(--Color-Gray-1600, #454545);text-align:center;font-family:Inter;font-size:12px;font-style:normal;font-weight:600;line-height:20px;cursor:pointer;transition:all .2s;white-space:nowrap}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-suggestion___JFR-a:hover{background:#f5f5f5}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-suggestion___JFR-a svg{width:16px;height:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-area___ofUbJ{display:flex;flex-direction:column;gap:10px;margin-left:auto;margin-right:auto;margin-bottom:20px;bottom:auto;left:auto;right:auto;width:400px;max-width:400px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:not(:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq)) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-area___ofUbJ{position:relative;bottom:auto;left:auto;right:auto;width:599px;max-width:599px;margin-bottom:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-container___UTRzH{background:#fff;height:124px;border:1px solid #ededed;border-radius:20px;padding:16px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 1px 8px -1px #0000000a;box-sizing:border-box;width:100%}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1{width:100%;border:none;outline:none;font-size:16px;line-height:24px;color:#1c1c1c;background:#fff;background-color:#fff;font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;flex:1;max-height:48px;align-self:flex-start;padding-top:0;padding-left:0;text-align:left;resize:none;overflow-y:auto}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1::placeholder{color:#868686;text-align:left}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1:focus{background:#fff;background-color:#fff}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1:active{background:#fff;background-color:#fff}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1::-webkit-scrollbar{width:4px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1::-webkit-scrollbar-track{background:transparent}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1::-webkit-scrollbar-thumb{background:#e1e1e1;border-radius:2px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1::-webkit-scrollbar-thumb:hover{background:#d0d0d0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-actions___YK8kC{display:flex;justify-content:end;align-items:center}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-attachment-button___pbzwc{background:#fff;border:1px solid #ededed;border-radius:28.8px;padding:9.6px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;width:36px;height:36px;box-sizing:border-box}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-attachment-button___pbzwc:hover{background:#f5f5f5}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-attachment-button___pbzwc svg{width:16.8px;height:16.8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-container___B-AOf{display:flex;gap:6px;align-items:center}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-microphone-button___lZ7h0{background:#fff;border:1px solid #ededed;border-radius:28.8px;padding:9.6px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;width:36px;height:36px;box-sizing:border-box}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-microphone-button___lZ7h0:hover{background:#f5f5f5}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-microphone-button___lZ7h0:disabled{opacity:.5;cursor:not-allowed}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-microphone-button___lZ7h0:disabled:hover{background:#fff}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-microphone-button___lZ7h0 svg{width:16.8px;height:16.8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-send-button___fLXEm{background:#1b85ff;border:none;border-radius:27.83px;padding:9.89px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;width:36px;height:36px;box-sizing:border-box}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-send-button___fLXEm:hover{opacity:.8}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-send-button___fLXEm:disabled{opacity:.5;cursor:not-allowed}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-send-button___fLXEm:disabled:hover{opacity:.5}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-send-button___fLXEm svg{width:16.21px;height:16.21px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-cancel-button___kn9Lg{display:flex;padding:9.895px;justify-content:center;align-items:center;gap:7.421px;border-radius:27.829px;background:#2e2e2e}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-cancel-button___kn9Lg:hover{background:#2e2e2e}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-cancel-button___kn9Lg:disabled{opacity:.5;cursor:not-allowed}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-cancel-button___kn9Lg:disabled:hover{background:#fff}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-cancel-button___kn9Lg svg{width:16px;height:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-retry-button___5oreu{background:#52c41a;border:none;border-radius:27.83px;padding:9.89px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;width:36px;height:36px;box-sizing:border-box}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-retry-button___5oreu:hover{opacity:.8}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-retry-button___5oreu:disabled{opacity:.5;cursor:not-allowed}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-retry-button___5oreu:disabled:hover{opacity:.5}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-retry-button___5oreu svg{width:16px;height:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-send-retry-container___yxRGt{display:flex;gap:6px;align-items:center}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-security-info___VwRHO{position:absolute;bottom:24px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:6px;font-weight:500;font-size:12px;line-height:20px;color:#939393;white-space:nowrap}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-security-info___VwRHO svg{width:18px;height:18px;flex-shrink:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq{flex:1;width:100%;overflow-y:auto;overflow-x:hidden;padding:24px 32px 180px;position:relative;min-height:0;-webkit-overflow-scrolling:touch}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq::-webkit-scrollbar{width:6px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq::-webkit-scrollbar-track{background:transparent}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq::-webkit-scrollbar-thumb:hover{background:#9ca3af}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-messages-container___8m6PY{display:flex;flex-direction:column;width:100%;min-height:min-content}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-scroll-button___YMYFi{background:#fff;border:1px solid #e1e5e9;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;color:#6b7280;z-index:10;align-self:center;padding:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-scroll-button___YMYFi:hover{border:1px solid #e1e5e9}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW{display:flex;width:100%;position:relative;margin-bottom:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW.genius-sdk__GeniusChatbotDashboard-module__user___5X16B{justify-content:flex-end}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW.genius-sdk__GeniusChatbotDashboard-module__user___5X16B .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-bubble___Dq5Eg{background:#f6f6f6;border-radius:25px 25px 12px;padding:16px 20px;max-width:567px;margin-bottom:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW.genius-sdk__GeniusChatbotDashboard-module__user___5X16B .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5{font-size:16px;line-height:24px;color:#2b2b2b;font-weight:400;font-family:Inter,sans-serif;letter-spacing:-.16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW.genius-sdk__GeniusChatbotDashboard-module__assistant___t65-b{justify-content:flex-start;align-items:flex-start;flex-direction:column;position:relative;margin-bottom:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW.genius-sdk__GeniusChatbotDashboard-module__assistant___t65-b:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-thinking___ceEhk){flex-direction:row;align-items:center;margin-bottom:40px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW.genius-sdk__GeniusChatbotDashboard-module__assistant___t65-b:not(:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-assistant-icon___urK-s)){margin-top:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-assistant-icon___urK-s{border-radius:17.018px;background:linear-gradient(140deg,#9747ff -41.48%,#1b85ff 116.12%);box-shadow:0 0 6.282px 2.094px #e9e7ff,inset 0 0 1.511px #fff6;display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:6.77px;margin-bottom:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW.genius-sdk__GeniusChatbotDashboard-module__assistant___t65-b:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-thinking___ceEhk) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-assistant-icon___urK-s{margin-bottom:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-assistant-icon___urK-s svg{width:10.47px;height:10.47px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW.genius-sdk__GeniusChatbotDashboard-module__assistant___t65-b .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-bubble___Dq5Eg{width:100%;display:flex;flex-direction:column;gap:16px;margin-bottom:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW.genius-sdk__GeniusChatbotDashboard-module__assistant___t65-b .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5{font-size:16px;line-height:175%;color:#1e1e1e;font-weight:400}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-thinking___ceEhk{display:flex;align-items:center;font-size:14px;color:#2b2b2b;margin-left:8px}@keyframes genius-sdk__GeniusChatbotDashboard-module__ellipsis___kKDif{to{width:1.25em}}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-thinking___ceEhk:after{content:"...";overflow:hidden;display:inline-block;vertical-align:bottom;animation:genius-sdk__GeniusChatbotDashboard-module__ellipsis___kKDif 1.5s infinite;width:0px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5{font-family:Inter,sans-serif;line-height:20px;margin-top:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 code{color:inherit!important;background-color:inherit;padding:inherit;border-radius:inherit;font-family:inherit;font-size:inherit}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 ul,.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 ol{margin:.5em 0;padding-top:16px;padding-left:1.5em;list-style-position:inside}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 ul{list-style-type:disc}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 ol{list-style-type:decimal}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 li{padding-left:.5em;text-indent:-1.5em;margin:.25em 0 .25em 1.5em}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 ul ul,.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 ol ol,.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 ul ol,.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 ol ul{margin-top:.25em;margin-bottom:.25em}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-branding___7PzdS,.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-suggestions___ZcAU8{display:none}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq){padding-top:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-area___ofUbJ{position:absolute;bottom:0;left:16px;right:16px;width:auto;max-width:none;padding:0;background:#ffffff03;z-index:10}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-wrapper___n9Jj1{background:#fcfcfc;border-radius:36px;width:fit-content;height:fit-content;position:relative;margin:0 auto}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-recording-container___GiftZ{border-radius:36px;border:1px solid #e1e1e1;box-shadow:0 12px 32px 6px #0000000f,0 -2px 8px -1px #0000000a;padding:12px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;width:fit-content;height:fit-content;box-sizing:border-box;position:relative}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-button___-NShR{background:#fff;border:1px solid #e1e1e1;border-radius:35.2px;padding:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 3px #0000000f;transition:all .2s;flex-shrink:0;min-height:48px;box-sizing:border-box}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-button___-NShR:hover{background:#f5f5f5}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-button___-NShR svg{width:24px;height:24px;flex-shrink:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-controls___P235l{display:flex;gap:8px;align-items:center;flex-shrink:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-button___-NShR.genius-sdk__GeniusChatbotDashboard-module__voice-active___qB2ym{gap:8px;padding:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-area___ofUbJ:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-recording-container___GiftZ){padding:0 200px;height:114px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-area___ofUbJ .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-wrapper___n9Jj1{width:fit-content;height:auto;margin:0 auto}@media (min-width: 769px) and (max-width: 920px){.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW{width:var(--modal-width-collapsed);height:var(--modal-height-collapsed);bottom:20px;right:20px;left:auto;transform:none}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H{width:var(--modal-width-sm);max-width:var(--modal-max-width-sm);height:var(--modal-height-sm);bottom:20px;right:20px;left:auto;transform:none}}@media (max-width: 768px){.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW{width:var(--modal-width-xs);height:var(--modal-height-xs);bottom:0;left:0;right:0;border-radius:0;max-width:none;transform:none}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H{width:var(--modal-width-xs);height:var(--modal-height-xs)}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-area___ofUbJ{left:20px;right:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-suggestions___ZcAU8{flex-wrap:wrap}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq{padding:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-wrapper___n9Jj1{max-width:100%}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-area___ofUbJ:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-recording-container___GiftZ){padding:0 20px}}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-overlay___zDkbs{position:absolute;top:0;left:0;right:0;bottom:0;background:#fff;z-index:10;display:flex;flex-direction:column;touch-action:pan-y}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-container___ecQs7{flex:1;display:flex;flex-direction:column;background:#fff;min-height:0;overflow:hidden}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-header___zjLS-{display:flex;align-items:center;justify-content:space-between;padding:16px 28px;border-bottom:1px solid #ededed;background:#fff}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-header-left___mWOQO{display:flex;align-items:center;gap:6px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-header___zjLS- h2{color:var(--Color-Gray-1800, #2B2B2B);font-feature-settings:"liga" off,"clig" off;font-family:Inter;font-size:16px;font-style:normal;font-weight:500;line-height:24px;margin:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-back___ELQ0K{background:transparent;border:none;padding:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .2s}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-back___ELQ0K:hover{opacity:.7}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-back___ELQ0K svg{width:20px;height:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-actions___lqL15{display:flex;gap:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-action___-ug8n{background:transparent;border:none;padding:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .2s}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-action___-ug8n:hover{opacity:.7}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-action___-ug8n svg{width:20px;height:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-list___7jHy4{flex:1;overflow-y:auto;overflow-x:hidden;padding:20px;min-height:0;-webkit-overflow-scrolling:touch}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-list___7jHy4::-webkit-scrollbar{width:6px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-list___7jHy4::-webkit-scrollbar-track{background:transparent}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-list___7jHy4::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-list___7jHy4::-webkit-scrollbar-thumb:hover{background:#9ca3af}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item___XW2rl{padding:16px 14px;cursor:pointer;transition:background .2s}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item___XW2rl:hover{background:#f9f9f9;border-radius:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-content___feueq{display:flex;flex-direction:column;gap:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-title___YJNj8{font-size:16px;font-weight:500;line-height:24px;color:#2b2b2b}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-date___dlGyR{font-size:14px;font-weight:400;line-height:20px;color:#868686}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-single-stat-card___v4WS2{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:16px;width:200px;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f;margin-bottom:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-single-stat-title___yod6C{font-size:14px;color:#6b7280;margin-bottom:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-single-stat-value___Hyo-h{font-size:24px;font-weight:600;color:#111827}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-container___FxxTR{width:100%;overflow:hidden;margin-bottom:0;border:1px solid #e5e7eb;border-radius:8px;background:#fff;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-wrapper___zVypd{width:100%;overflow-x:auto;scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.1) transparent}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-wrapper___zVypd::-webkit-scrollbar{height:6px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-wrapper___zVypd::-webkit-scrollbar-track{background:transparent}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-wrapper___zVypd::-webkit-scrollbar-thumb{background-color:#0000001a;border-radius:3px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table___wpMRb{width:100%;border-collapse:collapse;background-color:#fff;min-width:600px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-head___rdA-0{background-color:#f6f6f6;border-bottom:1px solid #e5e7eb}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-head-row___VpPSu{height:48px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-head-cell___8eVeo{padding:12px 16px;text-align:left;font-weight:600;font-size:12px;line-height:16px;text-transform:uppercase;letter-spacing:.05em;color:#6b7280;white-space:nowrap;border-bottom:1px solid #e5e7eb}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-head-content___CwrnG{display:flex;align-items:center;gap:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-body___bElU6{background:#fff}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-row___ko-q1{border-bottom:1px solid #f3f4f6;transition:background-color .15s ease;cursor:pointer}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-row___ko-q1:hover{background-color:#f9fafb}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-row___ko-q1:last-child{border-bottom:none}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-cell___7wz17{padding:16px;font-size:14px;line-height:20px;color:#111827}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-cell-content___5Wdi8{display:flex;align-items:center;gap:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-pagination___Saw-v{display:flex;justify-content:space-between;align-items:center;padding:16px;border-top:1px solid #e5e7eb;background:#fff}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-pagination-info___G6snm{font-size:14px;color:#6b7280;font-weight:500}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-controls___Cyqw8{display:flex;gap:8px;color:#6b7280}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-controls___Cyqw8 button{background:#fff;border-radius:6px;padding:8px 12px;cursor:pointer;transition:all .2s;color:#6b7280;font-size:14px;font-weight:500;min-height:36px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-controls___Cyqw8 button:hover:not(:disabled){background:#f3f4f6;border-color:#d1d5db}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-controls___Cyqw8 button:disabled{opacity:.5;cursor:not-allowed;background:#f9fafb}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-button___1YLi8{min-width:32px;height:32px;padding:4px 10px;background:#fff;border:1px solid transparent;border-radius:8px;font-size:12px;font-weight:500;color:#374151;cursor:pointer;transition:all .2s ease;display:inline-flex;align-items:center;justify-content:center}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-button___1YLi8:hover:not(:disabled){background:#f9fafb;border-color:#d1d5db}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-button___1YLi8:disabled{opacity:.5;cursor:not-allowed}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-button___1YLi8.genius-sdk__GeniusChatbotDashboard-module__active___odK6T{background:#e8f3ff;color:#9333ea;border:1px solid #E8F3FF}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-pagination-dots___lYvds{display:inline-flex;align-items:center;justify-content:center;color:#5f6368;padding:0 8px;font-size:14px;font-weight:500;-webkit-user-select:none;user-select:none}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-chart-container___JDX-b{width:100%;min-height:300px;margin-bottom:0;display:block;position:relative}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-single-stat-wrapper___70ycH{display:block;width:fit-content;margin-bottom:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-wrapper-container___plSHR{display:block;width:100%;margin-bottom:0;position:relative}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-top-bar___3z76Q{padding:16px 20px 12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34{padding:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-welcome___ee72M h2{font-size:18px;line-height:28px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-welcome___ee72M p{font-size:16px;line-height:24px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-suggestions___ZcAU8{top:auto;flex-wrap:wrap;padding:0 20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-suggestion___JFR-a{font-size:11px;padding:6px 10px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-area___ofUbJ{bottom:auto;left:auto;right:auto;width:400px;max-width:400px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-security-info___VwRHO{bottom:16px;font-size:11px;padding:0 20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq{padding:16px 16px 120px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-messages-container___8m6PY{gap:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5{font-size:14px;line-height:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-area___ofUbJ{position:absolute;bottom:0;left:16px;right:16px;width:auto;max-width:none;padding:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-container___FxxTR{border-radius:6px;margin-bottom:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table___wpMRb{min-width:400px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-head-cell___8eVeo{padding:8px 12px;font-size:11px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-cell___7wz17{padding:10px 12px;font-size:13px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-pagination___Saw-v{padding:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-pagination-info___G6snm{font-size:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-button___1YLi8{min-width:28px;height:28px;font-size:12px;padding:0 8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-controls___Cyqw8{gap:4px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-single-stat___LF3B2{padding:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-single-stat___LF3B2 h3{font-size:32px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-chart-container___JDX-b{min-height:250px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-description___u0ZbF{font-family:Inter,sans-serif;font-size:14px;font-weight:400;line-height:36px;color:#5f5f5f;padding:0;display:block}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-description___u0ZbF p{margin:12px 0;line-height:36px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-description___u0ZbF br{display:block;content:"";margin:12px 0;height:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-description___u0ZbF br+*{margin-top:10px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-description___u0ZbF div{line-height:24px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-description___u0ZbF div+div{margin-top:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-description___u0ZbF>*:first-child{margin-top:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-description___u0ZbF>*:last-child{margin-bottom:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-description___u0ZbF span,.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-value-pill___JXBgS{display:inline-block;background-color:#f3f4f6;color:#797979;padding:6px;margin-left:2px;margin-right:2px;border-radius:4px;font-size:12px;font-weight:500;line-height:120%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;vertical-align:middle;white-space:nowrap}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-loading___GoUb2,.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-empty___yZcdH{padding:20px;text-align:center;color:#666;font-size:14px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-loading___GoUb2{display:flex;align-items:center;justify-content:center;gap:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-empty___yZcdH{opacity:.7}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item___XW2rl{position:relative;padding:14px 16px;cursor:pointer;transition:background-color .2s ease;display:flex;align-items:center;justify-content:space-between}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item___XW2rl:hover{background-color:#f5f5f5}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item___XW2rl:last-child{border-bottom:none}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-content___feueq{flex:1;min-width:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-title___YJNj8{font-size:14px;font-weight:500;color:#333;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-date___dlGyR{font-size:12px;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-delete___H2xQq{background:none;border:none;padding:4px;cursor:pointer;opacity:0;transition:opacity .2s ease;color:#999;margin-left:8px;flex-shrink:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item___XW2rl:hover .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-delete___H2xQq{opacity:1}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-delete___H2xQq:hover{color:#f44}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-delete___H2xQq svg{width:16px;height:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-container___UTRzH.genius-sdk__GeniusChatbotDashboard-module__single-line___VKYFP{height:56px;padding:8px 8px 8px 16px;display:flex;flex-direction:row;align-items:center;gap:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1.genius-sdk__GeniusChatbotDashboard-module__single-line-input___KZ0ag{min-height:auto;max-height:none;height:40px;line-height:40px;padding:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-container___UTRzH.genius-sdk__GeniusChatbotDashboard-module__single-line___VKYFP .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-actions___YK8kC{flex-direction:row;align-items:center;gap:8px;margin-top:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-container___UTRzH.genius-sdk__GeniusChatbotDashboard-module__single-line___VKYFP .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-container___B-AOf{display:flex;align-items:center;gap:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-container___UTRzH.genius-sdk__GeniusChatbotDashboard-module__single-line___VKYFP .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-microphone-button___lZ7h0,.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-container___UTRzH.genius-sdk__GeniusChatbotDashboard-module__single-line___VKYFP .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-send-button___fLXEm,.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-container___UTRzH.genius-sdk__GeniusChatbotDashboard-module__single-line___VKYFP .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-cancel-button___kn9Lg{width:40px;height:40px;padding:0;display:flex;align-items:center;justify-content:center}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content-wrapper___xUicT{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-retry-button-inline___ynxrN{padding:8px;border:none;border-radius:6px;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-retry-button-inline___ynxrN svg{width:16px;height:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-bubble___Dq5Eg{display:flex;flex-direction:column;align-items:flex-start}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-action-buttons___bHBgd{display:flex;align-items:center;margin-top:4px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-like-button-inline___qxDXm{padding:8px 8px 8px 0;border:none;border-radius:6px;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-like-button-inline___qxDXm:disabled{cursor:default;opacity:1}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-like-button-inline___qxDXm svg{width:16px;height:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-dislike-button-inline___tnM54{padding:8px;border:none;border-radius:6px;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-dislike-button-inline___tnM54:disabled{cursor:default;opacity:1}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-dislike-button-inline___tnM54 svg{width:16px;height:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-overlay___DDtOF{position:absolute;top:0;left:0;right:0;bottom:0;background:#fff;z-index:10;display:flex;flex-direction:column}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-container___-v-cr{flex:1;display:flex;flex-direction:column;background:#fff;font-family:Inter,sans-serif}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-header___ePdx4{display:flex;justify-content:space-between;align-items:center;padding:16px 28px;border-bottom:1px solid #ededed;background:#fff;flex-shrink:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-icons-left___5weo7{display:flex;gap:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-icons-right___A-hiJ{display:flex;gap:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-icon-container___WCKoK{background:transparent;border:none;padding:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .2s}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-icon-container___WCKoK:hover{opacity:.7}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-icon-container___WCKoK svg{width:20px;height:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-body___vGLbY{flex:1;overflow-y:auto;display:flex;justify-content:center;align-items:flex-start;padding:32px 24px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-content___s2-PA{max-width:500px;width:100%;display:flex;flex-direction:column;gap:24px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-icon___QOTA1{width:32px;height:32px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-title___ttd2-{color:#454545;font-size:20px;font-weight:600;margin:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-options___sTDuz{display:flex;flex-direction:column;gap:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-option___1tKP5{padding:10px 16px;border:1px solid #E1E1E1;border-radius:8px;background:#fff;color:#797979;font-size:14px;font-weight:500;cursor:pointer;text-align:left;transition:all .2s}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-option___1tKP5:hover{background:#f5f5f5;border-color:#d1d5db}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-option___1tKP5.genius-sdk__GeniusChatbotDashboard-module__selected___rX0Dk{border-color:#1b85ff;color:#1b85ff;background:#f0f7ff}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-textarea-container___7V-Y8{display:flex;flex-direction:column;gap:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-label___CCyHp{color:#525252;font-size:14px;font-weight:500;margin:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-textarea___aE0kA{width:100%;min-height:120px;padding:14px;border:1px solid #E1E1E1;border-radius:8px;background:#fff;color:#111;font-family:Inter,sans-serif;font-size:14px;font-weight:500;resize:vertical;transition:all .2s}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-textarea___aE0kA:focus{outline:none;border-color:#1b85ff;box-shadow:0 0 0 3px #1b85ff1a}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-textarea___aE0kA::placeholder{color:#999}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-error___TC-hH{color:#dc2626;font-size:12px;margin:4px 0 0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-submit___-XcUM{width:120px;height:40px;padding:8px 16px;background:#1b85ff;color:#fff;border:none;border-radius:6px;font-family:Inter,sans-serif;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;margin-top:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-submit___-XcUM:hover{background:#1573e6;transform:translateY(-1px);box-shadow:0 2px 8px #1b85ff4d}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-submit___-XcUM:active{transform:translateY(0);box-shadow:0 1px 4px #1b85ff33}@media (max-width: 768px){.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-header___ePdx4{padding:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-body___vGLbY{padding:20px 16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-title___ttd2-{font-size:18px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-option___1tKP5{font-size:13px;padding:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-textarea___aE0kA{min-height:100px;font-size:13px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-submit___-XcUM{width:100px;height:36px;font-size:13px}}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5{width:100%}.genius-sdk__GeniusChatbotDashboard-module__voice-connecting-bar___Xy8LB{width:11px;border-radius:10px;flex-shrink:0;background-color:#e8f3ff;transition:background-color .3s ease}.genius-sdk__GeniusChatbotDashboard-module__voice-connecting-bar___Xy8LB.genius-sdk__GeniusChatbotDashboard-module__active___odK6T{background-color:#499dff}.genius-sdk__GeniusChatbotDashboard-module__voice-connecting-bar-1___H5h9a{height:23px;animation:genius-sdk__GeniusChatbotDashboard-module__fluidWave1___fI9GU 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotDashboard-module__voice-connecting-bar-2___fq2Ss{height:75px;animation:genius-sdk__GeniusChatbotDashboard-module__fluidWave2___G5nZM 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotDashboard-module__voice-connecting-bar-3___N2Ejq{height:55px;animation:genius-sdk__GeniusChatbotDashboard-module__fluidWave3___V1nF5 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotDashboard-module__voice-connecting-bar-4___kH-hV{height:23px;animation:genius-sdk__GeniusChatbotDashboard-module__fluidWave4___RjM9P 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotDashboard-module__voice-connecting-bar-5___W7Poa{height:75px;animation:genius-sdk__GeniusChatbotDashboard-module__fluidWave5___QDxGW 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotDashboard-module__voice-connecting-bar-6___h-Ip7{height:19px;animation:genius-sdk__GeniusChatbotDashboard-module__fluidWave6___NJN6- 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes genius-sdk__GeniusChatbotDashboard-module__fluidWave1___fI9GU{0%{background-color:#499dff}8%{background-color:#6ba8ff}16%{background-color:#8bb4ff}25%{background-color:#abc0ff}33%{background-color:#cbccff}41%{background-color:#e8f3ff}50%{background-color:#e8f3ff}58%{background-color:#cbccff}66%{background-color:#abc0ff}75%{background-color:#8bb4ff}83%{background-color:#6ba8ff}91%{background-color:#499dff}95%{background-color:#e8f3ff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotDashboard-module__fluidWave2___G5nZM{0%{background-color:#e8f3ff}4%{background-color:#499dff}12%{background-color:#6ba8ff}20%{background-color:#8bb4ff}29%{background-color:#abc0ff}37%{background-color:#cbccff}45%{background-color:#e8f3ff}54%{background-color:#e8f3ff}62%{background-color:#cbccff}70%{background-color:#abc0ff}79%{background-color:#8bb4ff}87%{background-color:#6ba8ff}95%{background-color:#499dff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotDashboard-module__fluidWave3___V1nF5{0%{background-color:#e8f3ff}8%{background-color:#e8f3ff}16%{background-color:#499dff}24%{background-color:#6ba8ff}33%{background-color:#8bb4ff}41%{background-color:#abc0ff}49%{background-color:#cbccff}58%{background-color:#e8f3ff}66%{background-color:#e8f3ff}74%{background-color:#cbccff}83%{background-color:#abc0ff}91%{background-color:#8bb4ff}99%{background-color:#6ba8ff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotDashboard-module__fluidWave4___RjM9P{0%{background-color:#e8f3ff}12%{background-color:#e8f3ff}20%{background-color:#499dff}28%{background-color:#6ba8ff}37%{background-color:#8bb4ff}45%{background-color:#abc0ff}53%{background-color:#cbccff}62%{background-color:#e8f3ff}70%{background-color:#e8f3ff}78%{background-color:#cbccff}87%{background-color:#abc0ff}95%{background-color:#8bb4ff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotDashboard-module__fluidWave5___QDxGW{0%{background-color:#e8f3ff}16%{background-color:#e8f3ff}24%{background-color:#499dff}32%{background-color:#6ba8ff}41%{background-color:#8bb4ff}49%{background-color:#abc0ff}57%{background-color:#cbccff}66%{background-color:#e8f3ff}74%{background-color:#e8f3ff}82%{background-color:#cbccff}91%{background-color:#abc0ff}99%{background-color:#8bb4ff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotDashboard-module__fluidWave6___NJN6-{0%{background-color:#e8f3ff}20%{background-color:#e8f3ff}28%{background-color:#499dff}36%{background-color:#6ba8ff}45%{background-color:#8bb4ff}53%{background-color:#abc0ff}61%{background-color:#cbccff}70%{background-color:#e8f3ff}78%{background-color:#e8f3ff}86%{background-color:#cbccff}95%{background-color:#abc0ff}96%{background-color:#8bb4ff}97%{background-color:#6ba8ff}98%{background-color:#499dff}to{background-color:#499dff}}.genius-sdk__SuccessRateComparison-module__rca-box___RAENl{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;border-radius:.75rem;border-width:1px;border-style:solid;border-color:#e1e1e1;background-color:#fcfcfc;width:100%;padding:1.25rem;gap:1rem}.genius-sdk__SuccessRateComparison-module__rca-box-text___q8twB{color:var(--jp-2-light-gray-1500);font-family:Inter,sans-serif;font-size:.875rem;font-weight:500;line-height:1.25rem;font-feature-settings:"liga" off}.genius-sdk__SuccessRateComparison-module__rca-box-buttons___afFSd{display:flex;gap:12px}.genius-sdk__SuccessRateComparison-module__rca-box-btn___R6e-B{padding:8px 24px;border-radius:6px;font-size:14px;font-weight:600;border:none;cursor:pointer}.genius-sdk__SuccessRateComparison-module__rca-box-btn-primary___kDURb{background:#6767f6;color:#fff}.genius-sdk__SuccessRateComparison-module__rca-box-btn-primary___kDURb:disabled{background:#b2dfdb;color:#fff;cursor:not-allowed}.genius-sdk__SuccessRateComparison-module__rca-box-btn-secondary___5zMpR{background:#fff;color:#008242;border:1px solid #e0e0e0}.genius-sdk__SuccessRateComparison-module__rca-box-btn-secondary___5zMpR:disabled{color:#bdbdbd;border-color:#e0e0e0;cursor:not-allowed}.genius-sdk__SuccessRateComparison-module__rca-box-support___QUmJe{color:#424242;font-family:Inter,sans-serif;font-size:16px;font-weight:700;margin-top:12px}.genius-sdk__SuccessRateComparison-module__rca-box-support-link___Y1z02{color:#1976d2;text-decoration:underline}.genius-sdk__SuccessRateComparison-module__rca-box-status___GGBgz{font-family:Inter,sans-serif;font-size:14px;font-weight:500;margin-top:12px}.genius-sdk__SuccessRateComparison-module__rca-box-status-success___X-CHD{color:#008242}.genius-sdk__SuccessRateComparison-module__rca-box-status-error___YOsai{color:#d32f2f}.genius-sdk__SuccessRateComparison-module__rca-box-status-processing___vwB4x{color:#757575}.genius-sdk__ConnectionTooltip-module__tooltip-container___Ge4hD{position:absolute;bottom:60px;left:50%;transform:translate(-50%);z-index:1001;animation:genius-sdk__ConnectionTooltip-module__fade-in___2qUKj .3s ease-out forwards;width:calc(100% - 32px);max-width:350px;display:flex;justify-content:center}.genius-sdk__ConnectionTooltip-module__tooltip___Dw96d{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;padding:0;position:relative;width:fit-content}.genius-sdk__ConnectionTooltip-module__tooltip-text___Zd-1L{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px;font-weight:400;line-height:20px;color:#454545;margin:0;text-align:center;white-space:nowrap}@keyframes genius-sdk__ConnectionTooltip-module__fade-in___2qUKj{0%{opacity:0;transform:translate(-50%) translateY(10px)}to{opacity:1;transform:translate(-50%) translateY(0)}}@media (max-width: 640px){.genius-sdk__ConnectionTooltip-module__tooltip-container___Ge4hD{bottom:110px;width:calc(100% - 24px);max-width:320px}.genius-sdk__ConnectionTooltip-module__tooltip-text___Zd-1L{font-size:13px;line-height:18px}}@media (max-width: 480px){.genius-sdk__ConnectionTooltip-module__tooltip-container___Ge4hD{bottom:96px;width:calc(100% - 16px);max-width:300px}.genius-sdk__ConnectionTooltip-module__tooltip-text___Zd-1L{font-size:12px;line-height:16px}}.genius-sdk__SimpleChat-module__simple-chat___8hiCW{height:100%;display:flex;flex-direction:column;background:#fff;position:relative}.genius-sdk__SimpleChat-module__welcome-container___NYmMP{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:60px 16px 100px;width:100%;max-width:100%;overflow-x:hidden}.genius-sdk__SimpleChat-module__welcome-header___F6yjX{text-align:center;margin-bottom:40px;display:flex;flex-direction:column;align-items:center;gap:16px}.genius-sdk__SimpleChat-module__welcome-title___nULPu{font-size:18px;font-weight:600;color:#2b2b2b;margin:0 0 8px;display:inline;line-height:1.6}.genius-sdk__SimpleChat-module__sparkle-icon___UeoaE{width:60px;height:60px;background:#5865f2;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 0 10.99px 3.66px #e9e7ff;position:relative}.genius-sdk__SimpleChat-module__wave-emoji___euNW9{font-size:32px;display:inline-block;animation:genius-sdk__SimpleChat-module__wave___c2Nl- .6s ease-in-out 2}@keyframes genius-sdk__SimpleChat-module__wave___c2Nl-{0%,to{transform:rotate(0)}25%{transform:rotate(-10deg)}75%{transform:rotate(10deg)}}.genius-sdk__SimpleChat-module__welcome-subtitle___Mi863{font-size:14px;color:#5f5f5f;margin:0;font-weight:500;line-height:1.6;letter-spacing:-.36px}.genius-sdk__SimpleChat-module__option-cards___RU4Xe{display:flex;flex-direction:row;gap:12px;width:100%;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:4px 0 8px;justify-content:center}.genius-sdk__SimpleChat-module__option-cards___RU4Xe::-webkit-scrollbar{display:none}.genius-sdk__SimpleChat-module__option-card___uxVHc{background:#fff;border:1px solid #ededed;border-radius:14px;padding:10px 12px;cursor:pointer;transition:all .2s ease;position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;flex:0 0 200px;min-width:200px;gap:8px}.genius-sdk__SimpleChat-module__option-card___uxVHc:hover{transform:translateY(-2px);box-shadow:0 2px 12px #0000001a;border-color:#e0e0e0}.genius-sdk__SimpleChat-module__card-icon-wrapper___ErlQj{width:28px;height:28px;border-radius:24.72px;display:flex;align-items:center;justify-content:center;flex-shrink:0;position:relative}.genius-sdk__SimpleChat-module__card-icon-wrapper___ErlQj.genius-sdk__SimpleChat-module__purple___OJIoJ{background:#8f49de;border:1.1px solid #6b30ab}.genius-sdk__SimpleChat-module__card-icon-wrapper___ErlQj.genius-sdk__SimpleChat-module__blue___i6H9v{background:#06aed4;border:1.1px solid #058baa}.genius-sdk__SimpleChat-module__card-icon-wrapper___ErlQj.genius-sdk__SimpleChat-module__red___eUlkU{background:#ef4444;border:1.1px solid #dc2626}.genius-sdk__SimpleChat-module__card-title___AZwKi{font-size:13px;font-weight:600;color:#454545;margin:0;line-height:18px;white-space:nowrap}.genius-sdk__SimpleChat-module__card-description___lprtn{font-size:12px;color:#5f5f5f;margin:0;line-height:16px;letter-spacing:-.12px}.genius-sdk__SimpleChat-module__card-icon-wrapper___ErlQj svg{width:12px;height:12px}.genius-sdk__SimpleChat-module__card-title___AZwKi+.genius-sdk__SimpleChat-module__card-description___lprtn{margin-top:1px}.genius-sdk__SimpleChat-module__messages-container___DInMa{flex:1;overflow-y:auto;padding:24px 24px 280px;display:flex;flex-direction:column;gap:16px}.genius-sdk__SimpleChat-module__messages-container___DInMa::-webkit-scrollbar{width:6px}.genius-sdk__SimpleChat-module__messages-container___DInMa::-webkit-scrollbar-track{background:#f9fafb}.genius-sdk__SimpleChat-module__messages-container___DInMa::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:3px}.genius-sdk__SimpleChat-module__message___mJ5zW{display:flex;align-items:flex-start;gap:12px;max-width:80%}.genius-sdk__SimpleChat-module__message___mJ5zW.genius-sdk__SimpleChat-module__user___wV-32{align-self:flex-end;justify-content:flex-end;margin-left:auto}.genius-sdk__SimpleChat-module__message___mJ5zW.genius-sdk__SimpleChat-module__bot___CI52h{align-self:flex-start}.genius-sdk__SimpleChat-module__bot-message-group___ZeXmk{width:100%}.genius-sdk__SimpleChat-module__bot-content-wrapper___GwC1Y{display:flex;flex-direction:column;gap:4px;max-width:80%;width:100%}.genius-sdk__SimpleChat-module__bot-message-group___ZeXmk .genius-sdk__SimpleChat-module__bot-content-wrapper___GwC1Y{max-width:100%;width:100%}.genius-sdk__SimpleChat-module__message-icon___7RObu{width:32px;height:32px;border-radius:50%;background:#6366f1;display:flex;align-items:center;justify-content:center;flex-shrink:0;align-self:flex-start}.genius-sdk__SimpleChat-module__sparkle-icon___UeoaE img,.genius-sdk__SimpleChat-module__message-icon___7RObu img{filter:brightness(0) invert(1)}.genius-sdk__SimpleChat-module__message-bubble___adDU7{margin-top:12px;background:#f3f4f6;padding:12px 18px;border-radius:20px;color:var(--Color-Gray-1900, #1E1E1E);font-feature-settings:"liga" off,"clig" off;font-family:Inter;font-size:16px;font-style:normal;font-weight:400;line-height:175%;caret-color:transparent}.genius-sdk__SimpleChat-module__message___mJ5zW.genius-sdk__SimpleChat-module__user___wV-32 .genius-sdk__SimpleChat-module__message-bubble___adDU7{background:#fff;border:1px solid #e5e7eb;box-shadow:0 1px 3px #0000000d;color:#374151}.genius-sdk__SimpleChat-module__connecting-pill___GdNZ2{position:absolute;bottom:80px;left:50%;transform:translate(-50%);background:#6b7280;color:#fff;padding:10px 24px;border-radius:24px;font-size:14px;box-shadow:0 4px 12px #00000026;animation:genius-sdk__SimpleChat-module__fadeIn___aXSg- .3s ease}@keyframes genius-sdk__SimpleChat-module__fadeIn___aXSg-{0%{opacity:0;transform:translate(-50%) translateY(10px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.genius-sdk__SimpleChat-module__message___mJ5zW.genius-sdk__SimpleChat-module__user___wV-32 .genius-sdk__SimpleChat-module__message-bubble___adDU7.genius-sdk__SimpleChat-module__pending___FoZ0X{border:1px solid #6366f1!important;box-shadow:0 1px 3px #6366f11a,0 0 0 2px #6366f11a!important;animation:genius-sdk__SimpleChat-module__pulse-border___LdMpS 2s ease-in-out infinite!important;position:relative}.genius-sdk__SimpleChat-module__message___mJ5zW.genius-sdk__SimpleChat-module__user___wV-32 .genius-sdk__SimpleChat-module__message-bubble___adDU7.genius-sdk__SimpleChat-module__pending___FoZ0X:after{content:""!important;position:absolute;right:8px;top:50%;transform:translateY(-50%);width:6px;height:6px;background:#6366f1;border-radius:50%;animation:genius-sdk__SimpleChat-module__typing-pulse___7h8yP 1.5s ease-in-out infinite!important;display:block!important}.genius-sdk__SimpleChat-module__message___mJ5zW.genius-sdk__SimpleChat-module__user___wV-32 .genius-sdk__SimpleChat-module__message-bubble___adDU7:not(.genius-sdk__SimpleChat-module__pending___FoZ0X){animation:none!important;border:1px solid #e5e7eb!important;box-shadow:0 1px 3px #0000000d!important}.genius-sdk__SimpleChat-module__message___mJ5zW.genius-sdk__SimpleChat-module__user___wV-32 .genius-sdk__SimpleChat-module__message-bubble___adDU7:not(.genius-sdk__SimpleChat-module__pending___FoZ0X):after{display:none!important;animation:none!important;content:none!important}@keyframes genius-sdk__SimpleChat-module__pulse-border___LdMpS{0%,to{box-shadow:0 1px 3px #6366f11a,0 0 0 2px #6366f11a;border-color:#6366f1}50%{box-shadow:0 1px 3px #6366f133,0 0 0 2px #6366f133;border-color:#4f46e5}}@keyframes genius-sdk__SimpleChat-module__typing-pulse___7h8yP{0%,to{opacity:.3;transform:translateY(-50%) scale(.8)}50%{opacity:1;transform:translateY(-50%) scale(1.2)}}.genius-sdk__SimpleChat-module__message___mJ5zW.genius-sdk__SimpleChat-module__user___wV-32 .genius-sdk__SimpleChat-module__message-bubble___adDU7.genius-sdk__SimpleChat-module__inaudible___VaA8q{color:#9ca3af;font-style:italic}.genius-sdk__SimpleChat-module__visual-components___eVmx0{margin-top:12px;display:flex;flex-direction:column;gap:12px;width:100%;max-width:none}.genius-sdk__SimpleChat-module__tool-description___-90-h{font-family:Inter,sans-serif;font-size:14px;font-weight:400;line-height:36px;color:#5f5f5f;padding:0;display:block}.genius-sdk__SimpleChat-module__tool-description___-90-h p{margin:12px 0;line-height:36px}.genius-sdk__SimpleChat-module__tool-description___-90-h br{display:block;content:"";margin:12px 0;height:12px}.genius-sdk__SimpleChat-module__tool-description___-90-h br+*{margin-top:10px}.genius-sdk__SimpleChat-module__tool-description___-90-h div{line-height:24px}.genius-sdk__SimpleChat-module__tool-description___-90-h div+div{margin-top:8px}.genius-sdk__SimpleChat-module__tool-description___-90-h>*:first-child{margin-top:0}.genius-sdk__SimpleChat-module__tool-description___-90-h>*:last-child{margin-bottom:0}.genius-sdk__SimpleChat-module__tool-description___-90-h span{display:inline-block;background-color:#f3f4f6;color:#797979;padding:6px;margin-left:2px;margin-right:2px;border-radius:4px;font-size:12px;font-weight:500;line-height:120%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;vertical-align:middle;white-space:nowrap}.genius-sdk__SimpleChat-module__chart-container___6ojrT{width:100%!important;margin:0}.genius-sdk__SimpleChat-module__single-stat-container___-8qmU{width:100%;margin:0}.genius-sdk__SimpleChat-module__table-container___Qk2YY{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:8px 0;width:100%}.genius-sdk__SimpleChat-module__table-container___Qk2YY::-webkit-scrollbar{height:8px}.genius-sdk__SimpleChat-module__table-container___Qk2YY::-webkit-scrollbar-track{background:#ededed;border-radius:4px}.genius-sdk__SimpleChat-module__table-container___Qk2YY::-webkit-scrollbar-thumb{background:#9c9c9f;border-radius:4px}.genius-sdk__SimpleChat-module__table-container___Qk2YY::-webkit-scrollbar-thumb:hover{background:#8a8a8e}.genius-sdk__SimpleChat-module__table-container___Qk2YY{position:relative;background:linear-gradient(to right,#fff 30%,#fff0),linear-gradient(to right,#fff0,#fff 70%) 100% 0,radial-gradient(farthest-side at 0% 50%,rgba(0,0,0,.1),transparent),radial-gradient(farthest-side at 100% 50%,rgba(0,0,0,.1),transparent) 100% 0;background-repeat:no-repeat;background-size:40px 100%,40px 100%,14px 100%,14px 100%;background-position:0 0,100%,0 0,100%;background-attachment:local,local,scroll,scroll}@media (max-width: 640px){.genius-sdk__SimpleChat-module__visual-components___eVmx0{margin-top:8px;gap:8px;width:100%}.genius-sdk__SimpleChat-module__chart-container___6ojrT,.genius-sdk__SimpleChat-module__single-stat-container___-8qmU,.genius-sdk__SimpleChat-module__table-container___Qk2YY{padding:12px;border-radius:8px;width:100%;margin:0}.genius-sdk__SimpleChat-module__tool-description___-90-h{font-size:12px;line-height:32px}}@media (max-width: 640px){.genius-sdk__SimpleChat-module__welcome-container___NYmMP{padding:40px 20px 80px}.genius-sdk__SimpleChat-module__welcome-title___nULPu{font-size:18px}.genius-sdk__SimpleChat-module__welcome-subtitle___Mi863{font-size:14px}.genius-sdk__SimpleChat-module__option-cards___RU4Xe{gap:10px;justify-content:flex-start}.genius-sdk__SimpleChat-module__option-card___uxVHc{flex:0 0 180px;min-width:180px}.genius-sdk__SimpleChat-module__messages-container___DInMa{padding:20px 20px 240px}.genius-sdk__SimpleChat-module__message___mJ5zW{max-width:90%}}@media (max-width: 480px){.genius-sdk__SimpleChat-module__welcome-container___NYmMP{padding:32px 16px 75px}.genius-sdk__SimpleChat-module__welcome-title___nULPu{font-size:16px}.genius-sdk__SimpleChat-module__welcome-subtitle___Mi863{font-size:13px}.genius-sdk__SimpleChat-module__option-cards___RU4Xe{gap:8px;justify-content:flex-start}.genius-sdk__SimpleChat-module__option-card___uxVHc{padding:10px;flex:0 0 170px;min-width:170px}.genius-sdk__SimpleChat-module__card-title___AZwKi{font-size:13px}.genius-sdk__SimpleChat-module__card-description___lprtn{font-size:11px}.genius-sdk__SimpleChat-module__messages-container___DInMa{padding:16px 16px 220px;gap:12px}.genius-sdk__SimpleChat-module__message-bubble___adDU7{font-size:14px;padding:10px 16px}}.genius-sdk__SimpleChat-module__streaming-cursor___4zqB6{display:inline-block;width:8px;height:8px;background-color:#8b5cf6;margin-left:4px;border-radius:50%;animation:genius-sdk__SimpleChat-module__pulse___VzuBS 1.5s infinite;vertical-align:middle}@keyframes genius-sdk__SimpleChat-module__pulse___VzuBS{0%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.genius-sdk__SimpleChat-module__spoken-text___Sa5q0{color:#111827;font-weight:500;transition:all .3s ease}.genius-sdk__SimpleChat-module__unspoken-text___5YvDS{color:#9ca3af;font-weight:400;transition:all .3s ease}.genius-sdk__SimpleChat-module__pending-message___bJptQ{display:inline-block;padding:4px 0}.genius-sdk__SimpleChat-module__loading-dots___m46tG{display:inline-flex;gap:4px;align-items:center}.genius-sdk__SimpleChat-module__loading-dots___m46tG span{display:inline-block;width:8px;height:8px;border-radius:50%;background-color:#0000004d;animation:genius-sdk__SimpleChat-module__loading-pulse___OOiCK 1.4s ease-in-out infinite}.genius-sdk__SimpleChat-module__message___mJ5zW.genius-sdk__SimpleChat-module__bot___CI52h .genius-sdk__SimpleChat-module__loading-dots___m46tG span{background-color:#8b5cf666}.genius-sdk__SimpleChat-module__loading-dots___m46tG span:nth-child(1){animation-delay:-.32s}.genius-sdk__SimpleChat-module__loading-dots___m46tG span:nth-child(2){animation-delay:-.16s}@keyframes genius-sdk__SimpleChat-module__loading-pulse___OOiCK{0%,80%,to{opacity:.4;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}.thinking-loader{display:inline-flex;flex-direction:column;max-width:400px;margin-top:6px;margin-bottom:8px}.thinking-header{display:flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none}.thinking-main{display:flex;align-items:center;gap:8px}.thinking-dots{display:inline-flex;gap:4px}.thinking-dots span{width:4px;height:4px;background-color:#3b82f6;border-radius:50%;animation:thinking-pulse 1.4s ease-in-out infinite both}.thinking-dots span:nth-child(1){animation-delay:-.32s}.thinking-dots span:nth-child(2){animation-delay:-.16s}@keyframes thinking-pulse{0%,80%,to{opacity:.3;transform:scale(1)}40%{opacity:1;transform:scale(1.2)}}.thinking-text{color:#6b7280;font-size:14px;font-weight:400}.chevron{transition:transform .2s ease;color:#6b7280;flex-shrink:0}.chevron.expanded{transform:rotate(180deg)}.tool-calls-dropdown{margin-top:8px;padding-left:20px;animation:slideDown .2s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.tool-call-item{padding:8px 0}.tool-call-header-item{display:flex;align-items:center;gap:8px;margin-bottom:8px}.tool-status{display:flex;align-items:center;justify-content:center;width:16px;height:16px}.spinner{width:12px;height:12px;border:1.5px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.tool-name{color:#111827;font-size:13px;font-weight:500;flex:1}.tool-duration{color:#6b7280;font-size:12px}.tool-arguments,.tool-result{margin-left:24px;margin-bottom:8px}.section-label{color:#9ca3af;font-size:11px;text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}.arguments-list{display:flex;flex-direction:column;gap:4px}.argument-item{display:flex;gap:6px;font-size:12px;line-height:1.4}.argument-key{color:#6b7280;min-width:fit-content}.argument-value{color:#374151;word-break:break-word;font-family:SF Mono,Monaco,Consolas,Courier New,monospace}.tool-result-text{color:#374151;font-size:12px;line-height:1.5}.tool-result-object{margin-top:4px}.tool-result-object pre{margin:0;padding:8px;background:#f3f4f6;border-radius:6px;font-size:11px;color:#374151;overflow-x:auto;max-height:200px;overflow-y:auto;font-family:SF Mono,Monaco,Consolas,Courier New,monospace}.tool-result-error{color:#dc2626;font-size:12px;padding:8px;background:#fef2f2;border-radius:6px;border:1px solid #fecaca}.error-label{font-weight:600}.tool-divider{height:1px;background:#e5e7eb;margin:12px 0}.genius-sdk__BottomBar-module__bottom-bar-container___BGRI7{position:sticky;bottom:40px;left:50%;transform:translate(-50%);width:calc(100% - 32px);max-width:350px;z-index:1000;display:flex;justify-content:center;align-items:center}.genius-sdk__BottomBar-module__bottom-bar-glow___A493n{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(100% + 40px);max-width:390px;filter:blur(20px);opacity:0;pointer-events:none;z-index:-1;animation:genius-sdk__BottomBar-module__fade-in___4ZShq .3s ease-out forwards}.genius-sdk__BottomBar-module__glow-bar___V3Qwb{width:100%;height:80px;border-radius:40px;background-size:200% 100%}@keyframes genius-sdk__BottomBar-module__glow-shift___lJVTh{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes genius-sdk__BottomBar-module__fade-in___4ZShq{0%{opacity:0}to{opacity:.4}}@keyframes genius-sdk__BottomBar-module__fade-out___wxLht{0%{opacity:.4}to{opacity:0}}@keyframes genius-sdk__BottomBar-module__glow-pulse___yKqwn{0%,to{opacity:.3;transform:translate(-50%,-50%) scale(.95)}50%{opacity:.6;transform:translate(-50%,-50%) scale(1.05)}}.genius-sdk__BottomBar-module__bottom-bar___XaxVJ{position:relative;width:fit-content;height:72px;border-radius:36px;background:#fcfcfcf2;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid #E1E1E1;box-shadow:0 12px 32px 6px #0000000f,0 -2px 8px -1px #0000000a;display:flex;align-items:center;justify-content:center}.genius-sdk__BottomBar-module__bar-content___6OsEK{display:flex;align-items:center;gap:12px;padding:12px;width:100%;max-width:100%}.genius-sdk__BottomBar-module__bar-button___iPlFP{width:24px;height:24px;border-radius:0;background:transparent;border:none;box-shadow:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;padding:0;flex-shrink:0}.genius-sdk__BottomBar-module__attachment-container___0Kbir:hover,.genius-sdk__BottomBar-module__waveform-send-container___HvkWS:hover,.genius-sdk__BottomBar-module__microphone-icon-container___qgstN:hover:not(.genius-sdk__BottomBar-module__disabled___FdMpB){background:#f9f9f9;border-color:#d4d4d4}.genius-sdk__BottomBar-module__attachment-container___0Kbir:active,.genius-sdk__BottomBar-module__waveform-send-container___HvkWS:active,.genius-sdk__BottomBar-module__microphone-icon-container___qgstN:active:not(.genius-sdk__BottomBar-module__disabled___FdMpB){background:#f2f2f2}.genius-sdk__BottomBar-module__bar-button___iPlFP:disabled{opacity:.5;cursor:not-allowed}.genius-sdk__BottomBar-module__x-button___LrIa0 svg{width:12px;height:12px}.genius-sdk__BottomBar-module__waveform-send-container___HvkWS .genius-sdk__BottomBar-module__bar-button___iPlFP svg{width:15px;height:16px}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN .genius-sdk__BottomBar-module__bar-button___iPlFP svg{width:14px;height:19px}.genius-sdk__BottomBar-module__attachment-container___0Kbir{display:flex;align-items:center;background:#fff;border-radius:35.2px;border:1px solid #E1E1E1;box-shadow:0 1px 3px #0000000f;padding:12px;gap:14.667px}.genius-sdk__BottomBar-module__voice-container___APP75{display:flex;align-items:center;gap:8px}.genius-sdk__BottomBar-module__waveform-send-container___HvkWS{display:flex;align-items:center;background:#fff;border-radius:35.2px;border:1px solid #E1E1E1;box-shadow:0 1px 3px #0000000f;padding:12px;gap:8px;cursor:pointer}.genius-sdk__BottomBar-module__waveform-send-container___HvkWS.genius-sdk__BottomBar-module__disabled___FdMpB{cursor:not-allowed;opacity:.5}.genius-sdk__BottomBar-module__waveform-send-container___HvkWS.genius-sdk__BottomBar-module__muted___G3eus{background:#feeceb;border-color:#f68f88}.genius-sdk__BottomBar-module__waveform-send-container___HvkWS.genius-sdk__BottomBar-module__muted___G3eus:hover:not(.genius-sdk__BottomBar-module__disabled___FdMpB){background:#feeceb;border-color:#f68f88}.genius-sdk__BottomBar-module__waveform-send-container___HvkWS.genius-sdk__BottomBar-module__muted___G3eus:active:not(.genius-sdk__BottomBar-module__disabled___FdMpB){background:#feeceb;border-color:#f68f88}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN{display:flex;align-items:center;background:#fff;border-radius:35.2px;border:1px solid #E1E1E1;box-shadow:0 1px 3px #0000000f;padding:12px;gap:8px;cursor:pointer}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN.genius-sdk__BottomBar-module__disabled___FdMpB{cursor:not-allowed;opacity:.5}.genius-sdk__BottomBar-module__recording-indicator___FwtQv{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.genius-sdk__BottomBar-module__recording-indicator___FwtQv svg{width:11px;height:14px}.genius-sdk__BottomBar-module__mic-button___klzpP{position:relative}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN.genius-sdk__BottomBar-module__muted___G3eus{background:#feeceb;border-color:#f68f88}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN.genius-sdk__BottomBar-module__muted___G3eus:hover:not(.genius-sdk__BottomBar-module__disabled___FdMpB){background:#feeceb;border-color:#f68f88}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN.genius-sdk__BottomBar-module__muted___G3eus:active:not(.genius-sdk__BottomBar-module__disabled___FdMpB){background:#feeceb;border-color:#f68f88}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN:has(.genius-sdk__BottomBar-module__mic-button___klzpP.genius-sdk__BottomBar-module__muted___G3eus){background:#feeceb;border-color:#f68f88}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN:has(.genius-sdk__BottomBar-module__mic-button___klzpP.genius-sdk__BottomBar-module__muted___G3eus):hover:not(.genius-sdk__BottomBar-module__disabled___FdMpB){background:#feeceb;border-color:#f68f88}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN:has(.genius-sdk__BottomBar-module__mic-button___klzpP.genius-sdk__BottomBar-module__muted___G3eus):active:not(.genius-sdk__BottomBar-module__disabled___FdMpB){background:#feeceb;border-color:#f68f88}.genius-sdk__BottomBar-module__mic-tooltip___yr63U,.genius-sdk__BottomBar-module__speaker-tooltip___J3r-b{position:absolute;bottom:calc(100% + 8px);right:50%;transform:translate(50%);background:#111;color:#fff;padding:4px 8px;border-radius:4px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:12px;font-weight:400;line-height:18px;white-space:nowrap;opacity:0;visibility:hidden;transition:all .2s ease;pointer-events:none;z-index:1000}.genius-sdk__BottomBar-module__mic-button___klzpP:hover .genius-sdk__BottomBar-module__mic-tooltip___yr63U,.genius-sdk__BottomBar-module__speaker-button___QsWdq:hover .genius-sdk__BottomBar-module__speaker-tooltip___J3r-b{opacity:1;visibility:visible}.genius-sdk__BottomBar-module__tooltip-arrow___pgGVw{position:absolute;bottom:-4px;right:50%;transform:translate(50%);width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #111111}@media (max-width: 640px){.genius-sdk__BottomBar-module__bottom-bar-container___BGRI7{position:fixed;bottom:30px;width:calc(100% - 24px);max-width:320px}.genius-sdk__BottomBar-module__bottom-bar-glow___A493n{width:calc(100% + 30px)}.genius-sdk__BottomBar-module__bottom-bar___XaxVJ{height:64px;width:fit-content}.genius-sdk__BottomBar-module__bar-content___6OsEK{padding:10px}.genius-sdk__BottomBar-module__bar-button___iPlFP{width:24px;height:24px}.genius-sdk__BottomBar-module__attachment-container___0Kbir,.genius-sdk__BottomBar-module__waveform-send-container___HvkWS,.genius-sdk__BottomBar-module__microphone-icon-container___qgstN{padding:10px}.genius-sdk__BottomBar-module__glow-bar___V3Qwb{height:70px}}@media (max-width: 480px){.genius-sdk__BottomBar-module__bottom-bar-container___BGRI7{position:fixed;bottom:20px;width:calc(100% - 16px);max-width:300px}.genius-sdk__BottomBar-module__bottom-bar-glow___A493n{width:calc(100% + 25px)}.genius-sdk__BottomBar-module__bottom-bar___XaxVJ{height:60px}.genius-sdk__BottomBar-module__bar-content___6OsEK{padding:8px;gap:8px}.genius-sdk__BottomBar-module__bar-button___iPlFP{width:24px;height:24px}.genius-sdk__BottomBar-module__attachment-container___0Kbir,.genius-sdk__BottomBar-module__waveform-send-container___HvkWS,.genius-sdk__BottomBar-module__microphone-icon-container___qgstN{padding:8px;gap:6px}.genius-sdk__BottomBar-module__voice-container___APP75{gap:6px}.genius-sdk__BottomBar-module__x-button___LrIa0 svg{width:10px;height:10px}.genius-sdk__BottomBar-module__waveform-send-container___HvkWS .genius-sdk__BottomBar-module__bar-button___iPlFP svg{width:13px;height:14px}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN .genius-sdk__BottomBar-module__bar-button___iPlFP svg{width:12px;height:17px}.genius-sdk__BottomBar-module__recording-indicator___FwtQv{width:20px;height:20px}.genius-sdk__BottomBar-module__recording-indicator___FwtQv svg{width:9px;height:12px}.genius-sdk__BottomBar-module__glow-bar___V3Qwb{height:65px}}*{box-sizing:border-box}body{margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background:#fff;color:#111827;height:100vh;overflow:hidden;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.genius-sdk__App-module__app___ksh-Z{height:100vh;display:flex;flex-direction:column;background:#fff;position:relative}.genius-sdk__App-module__connection-manager___oCx--{display:none}.genius-sdk__App-module__simple-chat___Uql5N{z-index:1}.genius-sdk__App-module__bottom-controls___gY5P0{z-index:100}.genius-sdk__App-module__connecting-pill___ISw9M{z-index:99}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-wrapper___BtGde{position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-container___AxurG{width:100%;height:100vh;height:100dvh;background:var(--genius-background);display:flex;flex-direction:column;overflow:hidden}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-header___LZvKZ{height:64px;background:var(--genius-white);border-bottom:1px solid var(--genius-grey-100);padding:16px;display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-header-icons___nkbc4{display:flex;gap:12px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-body___Nljp1{flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;min-height:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-content___9CHzt{display:flex;gap:24px;flex-direction:column;overflow-y:auto;padding:0 0 160px;flex:1;min-height:0;-webkit-overflow-scrolling:touch}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-content___9CHzt.genius-sdk__GeniusChatbotMobile-module__single-line___-vJMf{padding-bottom:100px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-welcome___i2CC0{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 16px 20px;min-height:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-branding___z6abT{display:flex;flex-direction:column;align-items:center;gap:16px;width:270px!important}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-logo-container___BMri1{display:flex;flex-direction:column;gap:20px;align-items:center;justify-content:start;padding:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-logo___kNw8B{width:42.52px;height:42.52px;border-radius:29.7811px;background:linear-gradient(140deg,#9747ff -41.48%,#1b85ff 116.12%);box-shadow:0 0 10.993px 3.664px #e9e7ff,0 0 2.644px #fff6 inset;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;padding:11.8389px;gap:6.618px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-logo___kNw8B:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;box-shadow:0 0 2.64362px inset #fff6;border-radius:29.7811px;pointer-events:none}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-logo-icon___NOPGn{color:var(--genius-white);display:flex;align-items:center;justify-content:center}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-welcome-text___Eov4M{text-align:center;min-width:100%;width:min-content;position:relative;flex-shrink:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-welcome-title___FzkYR{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:18px;font-weight:600;color:#2b2b2b;line-height:160%;margin:0;letter-spacing:-.36px;font-style:normal;display:block}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-welcome-subtitle___P2N48{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#5f5f5f;font-size:18px;line-height:160%;margin:0;font-weight:500;letter-spacing:-.36px;font-style:normal;display:inline}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input-section___hHmrd{position:fixed;bottom:0;left:0;right:0;background:#fff;border:1px solid #ededed;border-top-left-radius:20px;border-top-right-radius:20px;box-shadow:0 1px 8px -1px #0000000a;height:140px;display:flex;flex-direction:column;justify-content:flex-start;padding:16px;padding-bottom:env(safe-area-inset-bottom,16px);z-index:1000;transform:translateZ(0)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input-container___wdwox{display:flex;flex-direction:column;gap:16px;background:transparent;border:none;padding:0;height:100%;justify-content:space-between}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input-row___uNlWm{display:flex;align-items:flex-end;justify-content:space-between;padding-bottom:24px;width:100%}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input___kMLVV{flex:1;border:none;outline:none;font-size:16px;font-weight:400;color:#454545;background:transparent;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:24px;letter-spacing:-.16px;padding:0;text-align:left;width:100%;height:24px;resize:none}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input-section___hHmrd.genius-sdk__GeniusChatbotMobile-module__single-line___-vJMf{height:80px;padding:12px 16px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input-container___wdwox.genius-sdk__GeniusChatbotMobile-module__single-line___-vJMf{flex-direction:row;align-items:center;gap:12px;height:auto;justify-content:space-between}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input___kMLVV.genius-sdk__GeniusChatbotMobile-module__single-line-input___e6KVp{height:auto;min-height:24px;max-height:24px;overflow:hidden}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input-row___uNlWm.genius-sdk__GeniusChatbotMobile-module__single-line___-vJMf{padding-bottom:0;width:auto;flex:none}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input___kMLVV::placeholder{color:#868686;font-feature-settings:"liga" off,"clig" off;font-family:Inter;font-size:16px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:-.16px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input-actions___vzTQ4{display:flex;align-items:center;gap:8px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-icon-button___cx5-N{padding:9.6px;border-radius:28.8px;border:1px solid #EDEDED;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;color:#5f5f5f;flex-shrink:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-icon-button-header___lBaEW{background:#fff;border-radius:28.8px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;color:#5f5f5f;flex-shrink:0;padding:6px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-icon-button___cx5-N:hover{background:#f5f5f5}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-icon-button___cx5-N:active{transform:scale(.95)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-icon-button___cx5-N svg{width:16.8px;height:16.8px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-send-button___OWEoN{background:#1b85ff;border:none;border-radius:27.8293px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;flex-shrink:0;color:var(--genius-white);padding:9.89487px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-send-button___OWEoN:hover{transform:scale(1.05);box-shadow:0 4px 16px #1b85ff52}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-send-button___OWEoN:active{transform:scale(.98)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-send-button___OWEoN:disabled{opacity:.5;cursor:not-allowed}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-send-button___OWEoN:disabled:hover{transform:none;box-shadow:none}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-send-button___OWEoN svg{width:16.21px;height:16.21px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-cancel-button___9yO-b{display:flex;padding:9.895px;justify-content:center;align-items:center;gap:7.421px;border-radius:27.829px;background:#2e2e2e}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-cancel-button___9yO-b:hover{background:#2e2e2e;transform:scale(1.05)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-cancel-button___9yO-b:active{transform:scale(.98)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-cancel-button___9yO-b:disabled{opacity:.5;cursor:not-allowed}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-cancel-button___9yO-b:disabled:hover{background:#fff;transform:none}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-cancel-button___9yO-b svg{width:16px;height:16px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-messages___0BV99{display:flex;flex-direction:column;gap:16px;padding:24px 16px;flex:1}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message___7dFqy{display:flex;flex-direction:column;gap:8px;animation:genius-sdk__GeniusChatbotMobile-module__fadeIn___wwyEU .3s ease-out}@keyframes genius-sdk__GeniusChatbotMobile-module__fadeIn___wwyEU{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message___7dFqy.genius-sdk__GeniusChatbotMobile-module__user___PtOAo{align-items:flex-end}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message___7dFqy.genius-sdk__GeniusChatbotMobile-module__assistant___yaDOh{align-items:flex-start}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message-content___LYxmY{max-width:85%;padding:12px 16px;border-radius:16px;font-size:16px;line-height:24px;word-wrap:break-word}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message___7dFqy.genius-sdk__GeniusChatbotMobile-module__user___PtOAo .genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message-content___LYxmY{background:var(--genius-primary-blue);color:var(--genius-white);border-bottom-right-radius:4px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message___7dFqy.genius-sdk__GeniusChatbotMobile-module__assistant___yaDOh .genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message-content___LYxmY{background:var(--genius-white);color:var(--genius-text-primary);border:1px solid var(--genius-grey-100);border-bottom-left-radius:4px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-suggestions___8Su-Y{position:fixed;bottom:140px;left:0;right:0;display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding:0 12px 16px;scrollbar-width:none;-ms-overflow-style:none;background:transparent;flex-wrap:nowrap;scroll-behavior:smooth;z-index:999}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-suggestions___8Su-Y.genius-sdk__GeniusChatbotMobile-module__single-line___-vJMf{bottom:80px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-suggestions___8Su-Y::-webkit-scrollbar{display:none}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-suggestion___-7Od1{background:#fff;border:1px solid #ededed;border-radius:12px;padding:8px 12px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:12px;font-weight:600;color:#454545;cursor:pointer;white-space:nowrap;transition:all .2s;flex-shrink:0;line-height:20px;text-align:center;display:flex;align-items:center;gap:8px;box-sizing:border-box}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-suggestion___-7Od1:hover{background:#f5f5f5;border-color:#d0d0d0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-suggestion___-7Od1:active{background:#ededed;transform:scale(.98)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-suggestion___-7Od1 svg{width:16px;height:16px;color:currentColor;flex-shrink:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-loading___812RY{display:flex;align-items:center;gap:8px;padding:12px 16px;background:var(--genius-white);border:1px solid var(--genius-grey-100);border-radius:16px 16px 16px 4px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-loading-dots___9C82M{display:flex;gap:4px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-loading-dot___kNaDD{width:8px;height:8px;background:var(--genius-grey-500);border-radius:50%;animation:genius-sdk__GeniusChatbotMobile-module__pulse___pyEhS 1.5s ease-in-out infinite}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-loading-dot___kNaDD:nth-child(2){animation-delay:.2s}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-loading-dot___kNaDD:nth-child(3){animation-delay:.4s}@keyframes genius-sdk__GeniusChatbotMobile-module__pulse___pyEhS{0%,80%,to{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-description___UBJ5A{font-family:Inter,sans-serif;font-size:14px;font-weight:400;line-height:36px;color:#5f5f5f;padding:0;display:block}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-description___UBJ5A p{margin:12px 0;line-height:36px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-description___UBJ5A br{display:block;content:"";margin:12px 0;height:12px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-description___UBJ5A br+*{margin-top:10px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-description___UBJ5A div{line-height:24px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-description___UBJ5A div+div{margin-top:8px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-description___UBJ5A>*:first-child{margin-top:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-description___UBJ5A>*:last-child{margin-bottom:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-value-pill___UVZN2{display:inline-block;background-color:#f3f4f6;color:#797979;padding:6px;margin-left:2px;margin-right:2px;border-radius:4px;font-size:12px;font-weight:500;line-height:120%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;vertical-align:middle;white-space:nowrap}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-chart-container___SFGsK{width:100%;min-height:300px;margin:12px 0;background:var(--genius-white);border-radius:12px;padding:16px;box-shadow:0 2px 8px #00000014}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-single-stat-wrapper___AvedJ{margin:12px 0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-table-wrapper___UWzSR{width:100%;overflow-x:auto;margin:12px 0;border-radius:12px;background:var(--genius-white);box-shadow:0 2px 8px #00000014}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-overlay___hW74x{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--genius-white);z-index:10000;display:flex;flex-direction:column}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-container___FJKqB{width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-header___dWTfk{height:64px;background:var(--genius-white);border-bottom:1px solid var(--genius-grey-100);padding:16px;display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-header-left___9qSbt{display:flex;align-items:center;gap:12px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-back___--HRQ{background:none;border:none;padding:8px;cursor:pointer;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-back___--HRQ:hover{background:var(--genius-grey-100)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-back___--HRQ svg{width:20px;height:20px;color:var(--genius-text-primary)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-header___dWTfk h2{margin:0;font-size:18px;font-weight:600;color:var(--genius-text-primary)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-actions___iwfPD{display:flex;align-items:center;gap:8px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-action___Pd1mQ{background:none;border:none;padding:8px;cursor:pointer;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-action___Pd1mQ:hover{background:var(--genius-grey-100)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-action___Pd1mQ svg{width:20px;height:20px;color:var(--genius-text-primary)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-list___qksvj{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-loading___FrgIf,.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-empty___p54tM{display:flex;align-items:center;justify-content:center;height:200px;color:var(--genius-text-secondary);font-size:14px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item___2Xjtc{background:var(--genius-white);border:1px solid var(--genius-grey-100);border-radius:12px;padding:16px;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:space-between;gap:12px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item___2Xjtc:hover{border-color:var(--genius-primary-blue);box-shadow:0 2px 8px #1b85ff1a}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item___2Xjtc:active{transform:translateY(1px)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-content___iOAR-{flex:1;min-width:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-title___iQMh9{font-size:14px;font-weight:500;color:var(--genius-text-primary);margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-date___uuhMZ{font-size:12px;color:var(--genius-text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-delete___kMUwr{background:none;border:none;padding:8px;cursor:pointer;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease;flex-shrink:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-delete___kMUwr:hover{background:#ef44441a}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-delete___kMUwr svg{width:16px;height:16px;color:var(--genius-grey-500)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-delete___kMUwr:hover svg{color:#ef4444}@media (max-width: 375px){.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-header___dWTfk{padding:12px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-header___dWTfk h2{font-size:16px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-list___qksvj,.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item___2Xjtc{padding:12px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-title___iQMh9{font-size:13px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-date___uuhMZ{font-size:11px}}@media (max-width: 375px){.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-welcome-title___FzkYR{font-size:24px;line-height:32px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-welcome-subtitle___P2N48{font-size:16px;line-height:24px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input___kMLVV{font-size:15px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message-content___LYxmY{font-size:15px;padding:10px 14px}}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message___nsz8K{display:flex;width:100%;position:relative;margin-bottom:16px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message___nsz8K.genius-sdk__GeniusChatbotMobile-module__user___PtOAo{justify-content:flex-end}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message___nsz8K.genius-sdk__GeniusChatbotMobile-module__user___PtOAo .genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message-bubble___mtDtI{background:#f6f6f6;border-radius:25px 25px 12px;padding:16px 20px;max-width:85%}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message___nsz8K.genius-sdk__GeniusChatbotMobile-module__user___PtOAo .genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message-content___BCtMc{font-size:16px;line-height:24px;color:#2b2b2b;font-weight:400;font-family:Inter,sans-serif;letter-spacing:-.16px;margin:0}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message___nsz8K.genius-sdk__GeniusChatbotMobile-module__assistant___yaDOh{justify-content:flex-start;align-items:flex-start;flex-direction:column;position:relative;margin-bottom:16px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message___nsz8K.genius-sdk__GeniusChatbotMobile-module__assistant___yaDOh:has(.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-thinking___dTUA-){flex-direction:row;align-items:center;gap:8px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-assistant-icon___7QK3G{width:24px;height:24px;border-radius:17.018px;background:linear-gradient(140deg,#9747ff -41.48%,#1b85ff 116.12%);box-shadow:0 0 6.282px 2.094px #e9e7ff,inset 0 0 1.511px #fff6;display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:6.77px;margin-bottom:8px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message___nsz8K.genius-sdk__GeniusChatbotMobile-module__assistant___yaDOh:has(.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-thinking___dTUA-) .genius-sdk__GeniusChatbotMobile-module__genius-dashboard-assistant-icon___7QK3G{margin-bottom:0}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-assistant-icon___7QK3G svg{width:10.47px;height:10.47px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message___nsz8K.genius-sdk__GeniusChatbotMobile-module__assistant___yaDOh .genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message-bubble___mtDtI{width:100%;display:flex;flex-direction:column;gap:16px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message___nsz8K.genius-sdk__GeniusChatbotMobile-module__assistant___yaDOh .genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message-content___BCtMc{font-size:16px;line-height:175%;color:#1e1e1e;font-weight:400;font-family:Inter,sans-serif;margin:0}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-thinking___dTUA-{display:flex;align-items:center;font-size:14px;color:#2b2b2b;font-family:Inter,sans-serif}@keyframes genius-sdk__GeniusChatbotMobile-module__ellipsis___w22gP{to{width:1.25em}}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-thinking___dTUA-:after{content:"...";overflow:hidden;display:inline-block;vertical-align:bottom;animation:genius-sdk__GeniusChatbotMobile-module__ellipsis___w22gP 1.5s infinite;width:0px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-action-buttons___GaJiS{display:flex;align-items:center;margin-top:8px;gap:0}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-like-button-inline___TXDtg{padding:8px 8px 8px 0;border:none;border-radius:6px;background:transparent!important;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .2s ease}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-like-button-inline___TXDtg:hover:not(:disabled){background:transparent!important;opacity:.7}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-like-button-inline___TXDtg:disabled{cursor:default;opacity:1}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-like-button-inline___TXDtg svg{width:16px;height:16px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-dislike-button-inline___CKeEV{padding:8px;border:none;border-radius:6px;background:transparent!important;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .2s ease}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-dislike-button-inline___CKeEV:hover:not(:disabled){background:transparent!important;opacity:.7}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-dislike-button-inline___CKeEV:disabled{cursor:default;opacity:1}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-dislike-button-inline___CKeEV svg{width:16px;height:16px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-retry-button-inline___E7tHQ{padding:8px;border:none;border-radius:6px;background:transparent!important;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .2s ease}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-retry-button-inline___E7tHQ:hover{background:transparent!important;opacity:.7}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-retry-button-inline___E7tHQ svg{width:16px;height:16px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message-content-wrapper___x7mri{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-feedback-overlay___-z7Nq{position:relative;width:100%;height:100%;background:#fff;z-index:10;display:flex;flex-direction:column}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-close-voice-button___GW-6U{position:relative;background:#fff;border:1px solid #e1e1e1;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px #0000001a;transition:all .2s ease}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-close-voice-button___GW-6U:hover{transform:scale(1.05);box-shadow:0 4px 12px #00000026}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-close-voice-button___GW-6U:active{transform:scale(.98)}.genius-sdk__GeniusChatbotMobile-module__genius-voice-assistant-wrapper___F95Pz{width:100%;height:100%;display:flex;flex-direction:column;position:relative;overflow:hidden}.genius-sdk__GeniusChatbotMobile-module__voice-wave___lDwzB{width:12px;background:linear-gradient(180deg,#dbe2ef66,#dbe2efcc);border-radius:6px;animation:genius-sdk__GeniusChatbotMobile-module__voice-wave___lDwzB 1.2s ease-in-out infinite}@keyframes genius-sdk__GeniusChatbotMobile-module__voice-wave___lDwzB{0%,60%,to{transform:scaleY(.5);opacity:.4}30%{transform:scaleY(1);opacity:.8}}.genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar___nyyKk{width:11px;border-radius:10px;flex-shrink:0;background-color:#e8f3ff;transition:background-color .3s ease}.genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar___nyyKk.genius-sdk__GeniusChatbotMobile-module__active___ddjbF{background-color:#499dff}.genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar-1___ZqSIE{height:23px;animation:genius-sdk__GeniusChatbotMobile-module__fluidWave1___i4CT5 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar-2___S0vvy{height:75px;animation:genius-sdk__GeniusChatbotMobile-module__fluidWave2___aqgUd 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar-3___Afm6f{height:55px;animation:genius-sdk__GeniusChatbotMobile-module__fluidWave3___5goXJ 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar-4___PGea4{height:23px;animation:genius-sdk__GeniusChatbotMobile-module__fluidWave4___RL0Wp 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar-5___9u-cU{height:75px;animation:genius-sdk__GeniusChatbotMobile-module__fluidWave5___R4EL6 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar-6___pTE2R{height:19px;animation:genius-sdk__GeniusChatbotMobile-module__fluidWave6___LXEtg 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes genius-sdk__GeniusChatbotMobile-module__fluidWave1___i4CT5{0%{background-color:#499dff}8%{background-color:#6ba8ff}16%{background-color:#8bb4ff}25%{background-color:#abc0ff}33%{background-color:#cbccff}41%{background-color:#e8f3ff}50%{background-color:#e8f3ff}58%{background-color:#cbccff}66%{background-color:#abc0ff}75%{background-color:#8bb4ff}83%{background-color:#6ba8ff}91%{background-color:#499dff}95%{background-color:#e8f3ff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotMobile-module__fluidWave2___aqgUd{0%{background-color:#e8f3ff}4%{background-color:#499dff}12%{background-color:#6ba8ff}20%{background-color:#8bb4ff}29%{background-color:#abc0ff}37%{background-color:#cbccff}45%{background-color:#e8f3ff}54%{background-color:#e8f3ff}62%{background-color:#cbccff}70%{background-color:#abc0ff}79%{background-color:#8bb4ff}87%{background-color:#6ba8ff}95%{background-color:#499dff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotMobile-module__fluidWave3___5goXJ{0%{background-color:#e8f3ff}8%{background-color:#e8f3ff}16%{background-color:#499dff}24%{background-color:#6ba8ff}33%{background-color:#8bb4ff}41%{background-color:#abc0ff}49%{background-color:#cbccff}58%{background-color:#e8f3ff}66%{background-color:#e8f3ff}74%{background-color:#cbccff}83%{background-color:#abc0ff}91%{background-color:#8bb4ff}99%{background-color:#6ba8ff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotMobile-module__fluidWave4___RL0Wp{0%{background-color:#e8f3ff}12%{background-color:#e8f3ff}20%{background-color:#499dff}28%{background-color:#6ba8ff}37%{background-color:#8bb4ff}45%{background-color:#abc0ff}53%{background-color:#cbccff}62%{background-color:#e8f3ff}70%{background-color:#e8f3ff}78%{background-color:#cbccff}87%{background-color:#abc0ff}95%{background-color:#8bb4ff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotMobile-module__fluidWave5___R4EL6{0%{background-color:#e8f3ff}16%{background-color:#e8f3ff}24%{background-color:#499dff}32%{background-color:#6ba8ff}41%{background-color:#8bb4ff}49%{background-color:#abc0ff}57%{background-color:#cbccff}66%{background-color:#e8f3ff}74%{background-color:#e8f3ff}82%{background-color:#cbccff}91%{background-color:#abc0ff}99%{background-color:#8bb4ff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotMobile-module__fluidWave6___LXEtg{0%{background-color:#e8f3ff}20%{background-color:#e8f3ff}28%{background-color:#499dff}36%{background-color:#6ba8ff}45%{background-color:#8bb4ff}53%{background-color:#abc0ff}61%{background-color:#cbccff}70%{background-color:#e8f3ff}78%{background-color:#e8f3ff}86%{background-color:#cbccff}95%{background-color:#abc0ff}96%{background-color:#8bb4ff}97%{background-color:#6ba8ff}98%{background-color:#499dff}to{background-color:#499dff}}:root{--genius-primary-blue: #1B85FF;--genius-grey-600: #8A8A8E;--genius-grey-500: #9C9C9F;--genius-grey-200: #E0E0E0;--genius-grey-100: #EDEDED;--genius-text-primary: #1c1c1c;--genius-text-secondary: #5f5f5f;--genius-white: #ffffff;--genius-background: #fcfcfc}.genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q{position:fixed;z-index:9999;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q.genius-sdk__GeniusChatbot-module__bottom-right___1B1-1{bottom:20px;right:20px}.genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q.genius-sdk__GeniusChatbot-module__bottom-left___jW0dZ{bottom:20px;left:20px}.genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q.genius-sdk__GeniusChatbot-module__center___z23Ni{top:50%;left:50%;transform:translate(-50%,-50%)}.genius-sdk__GeniusChatbot-module__genius-chatbot-container___-1AXk{width:440px;height:680px;border-radius:12px;background:var(--genius-white);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 0 0 1px #0000000d,0 8px 24px #0000001f;border:1px solid rgba(0,0,0,.05);transition:all .3s ease}.genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q.genius-sdk__GeniusChatbot-module__expanded___egMCL .genius-sdk__GeniusChatbot-module__genius-chatbot-container___-1AXk{width:50vw;max-width:900px;min-width:600px}.genius-sdk__GeniusChatbot-module__genius-chatbot-header___KYNml{height:48px;background:var(--genius-white);border-bottom:1px solid var(--genius-grey-100);padding:8px 16px;display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.genius-sdk__GeniusChatbot-module__genius-chatbot-header-icons___eyLdP{display:flex;gap:12px}.genius-sdk__GeniusChatbot-module__genius-chatbot-icon-button___nbVeQ{background:none;border:none;padding:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background-color .2s;color:var(--genius-grey-600)}.genius-sdk__GeniusChatbot-module__genius-chatbot-icon-button___nbVeQ:hover{background-color:#0000000d}.genius-sdk__GeniusChatbot-module__genius-chatbot-icon___JlAuk{width:16px;height:16px;display:flex;align-items:center;justify-content:center}.genius-sdk__GeniusChatbot-module__genius-chatbot-icon___JlAuk svg{width:16px;height:16px}.genius-sdk__GeniusChatbot-module__genius-chatbot-body___-0tRl{flex:1;background:var(--genius-background);display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;padding:0 24px 24px;position:relative}.genius-sdk__GeniusChatbot-module__genius-chatbot-content___64G3h{display:flex;flex-direction:column;gap:16px;height:100%;justify-content:flex-end}.genius-sdk__GeniusChatbot-module__genius-chatbot-branding___pISkM{display:flex;flex-direction:column;align-items:center;gap:16px;margin-top:auto;margin-bottom:auto}.genius-sdk__GeniusChatbot-module__genius-chatbot-logo-container___7Gxbj{display:flex;flex-direction:column;gap:16px;align-items:center}.genius-sdk__GeniusChatbot-module__genius-chatbot-logo___bcUEi{width:40px;height:40px;border-radius:50%;background:radial-gradient(circle at center,#9747ff,#1b85ff);display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 4px 12px rgba(99,72,255,.28))}.genius-sdk__GeniusChatbot-module__genius-chatbot-logo-icon___vSlku{width:12px;height:12px;color:var(--genius-white);display:flex;align-items:center;justify-content:center}.genius-sdk__GeniusChatbot-module__genius-chatbot-logo-icon___vSlku svg{width:12px;height:12px;fill:currentColor}.genius-sdk__GeniusChatbot-module__genius-chatbot-welcome___uZmtS{text-align:center;max-width:280px}.genius-sdk__GeniusChatbot-module__genius-chatbot-welcome-title___-tIN4{font-size:20px;font-weight:600;color:var(--genius-text-primary);line-height:26px;margin:0 0 4px}.genius-sdk__GeniusChatbot-module__genius-chatbot-welcome-emoji___zrXfE{margin-left:4px}.genius-sdk__GeniusChatbot-module__genius-chatbot-welcome-subtitle___ipNy2{color:var(--genius-text-secondary);font-size:16px;line-height:24px;margin:0;font-weight:400}.genius-sdk__GeniusChatbot-module__genius-chatbot-messages-container___lTB-Z{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:16px 0;scroll-behavior:smooth;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.genius-sdk__GeniusChatbot-module__genius-chatbot-messages-container___lTB-Z::-webkit-scrollbar{width:6px}.genius-sdk__GeniusChatbot-module__genius-chatbot-messages-container___lTB-Z::-webkit-scrollbar-track{background:transparent}.genius-sdk__GeniusChatbot-module__genius-chatbot-messages-container___lTB-Z::-webkit-scrollbar-thumb{background:#0003;border-radius:3px}.genius-sdk__GeniusChatbot-module__genius-chatbot-messages-container___lTB-Z::-webkit-scrollbar-thumb:hover{background:#0000004d}.genius-sdk__GeniusChatbot-module__genius-chatbot-messages-container___lTB-Z{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.2) transparent}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9{max-width:80%;padding:12px 16px;border-radius:16px;font-size:14px;line-height:1.5}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp{align-self:flex-end;background:var(--genius-primary-blue);color:var(--genius-white)}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__assistant___ZGPHW{align-self:flex-start;background:var(--genius-white);color:var(--genius-text-primary);border:1px solid #e3e3e3}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA{margin-bottom:0}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA p{margin:0 0 8px}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA p:last-child{margin-bottom:0}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA ul,.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA ol{margin:8px 0;padding-left:20px}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA li{margin:4px 0;word-wrap:break-word;overflow-wrap:break-word}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA code{background:#f5f5f5;padding:2px 4px;border-radius:3px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.9em;color:#333;word-break:break-all;overflow-wrap:break-word}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp .genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA code{background:#fff3;color:var(--genius-white)}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA pre{background:#f5f5f5;padding:12px;border-radius:6px;overflow-x:auto;margin:8px 0;border:1px solid #e0e0e0}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp .genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA pre{background:#ffffff1a;border:1px solid rgba(255,255,255,.2)}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA pre code{background:none;padding:0;color:#333;display:block;white-space:pre;overflow-x:auto}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp .genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA pre code{color:var(--genius-white)}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA strong{font-weight:600}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA em{font-style:italic}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA blockquote{border-left:3px solid var(--genius-grey-200);padding-left:12px;margin:8px 0;color:var(--genius-text-secondary)}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp .genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA blockquote{border-left-color:#ffffff80;color:#ffffffe6}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h1,.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h2,.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h3,.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h4,.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h5,.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h6{margin:12px 0 8px;font-weight:600}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h1{font-size:1.3em}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h2{font-size:1.2em}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h3{font-size:1.1em}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h4{font-size:1.05em}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h5{font-size:1em}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h6{font-size:.95em}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA a{color:var(--genius-primary-blue);text-decoration:underline}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp .genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA a{color:var(--genius-white)}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA hr{border:none;border-top:1px solid var(--genius-grey-200);margin:12px 0}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp .genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA hr{border-top-color:#ffffff4d}.genius-sdk__GeniusChatbot-module__genius-chatbot-table-wrapper___fK97m{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:8px 0;border-radius:6px;border:1px solid var(--genius-grey-100)}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA table{border-collapse:collapse;min-width:100%;margin:0}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA th,.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA td{border:1px solid var(--genius-grey-200);padding:8px 12px;text-align:left;vertical-align:top;min-width:150px}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA td{white-space:normal;word-wrap:break-word}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA th{white-space:nowrap}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA th{background:#0000000d;font-weight:600;position:sticky;top:0;z-index:1}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp .genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA th,.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp .genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA td{border-color:#ffffff4d}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp .genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA th{background:#ffffff1a}.genius-sdk__GeniusChatbot-module__genius-chatbot-table-wrapper___fK97m::-webkit-scrollbar{height:8px}.genius-sdk__GeniusChatbot-module__genius-chatbot-table-wrapper___fK97m::-webkit-scrollbar-track{background:var(--genius-grey-100);border-radius:4px}.genius-sdk__GeniusChatbot-module__genius-chatbot-table-wrapper___fK97m::-webkit-scrollbar-thumb{background:var(--genius-grey-500);border-radius:4px}.genius-sdk__GeniusChatbot-module__genius-chatbot-table-wrapper___fK97m::-webkit-scrollbar-thumb:hover{background:var(--genius-grey-600)}.genius-sdk__GeniusChatbot-module__genius-chatbot-table-wrapper___fK97m{position:relative;background:linear-gradient(to right,#fff 30%,#fff0),linear-gradient(to right,#fff0,#fff 70%) 100% 0,radial-gradient(farthest-side at 0% 50%,rgba(0,0,0,.1),transparent),radial-gradient(farthest-side at 100% 50%,rgba(0,0,0,.1),transparent) 100% 0;background-repeat:no-repeat;background-size:40px 100%,40px 100%,14px 100%,14px 100%;background-position:0 0,100%,0 0,100%;background-attachment:local,local,scroll,scroll}.genius-sdk__GeniusChatbot-module__genius-chatbot-sources___FeMnB{margin-top:12px;padding-top:12px;border-top:1px solid var(--genius-grey-100)}button.genius-sdk__GeniusChatbot-module__genius-chatbot-sources-header___faf7D{display:flex;align-items:center;gap:6px;color:var(--genius-grey-600);font-size:12px;font-weight:500;margin-bottom:8px;background:none;border:none;cursor:pointer;padding:0;width:100%;text-align:left;transition:color .2s ease}button.genius-sdk__GeniusChatbot-module__genius-chatbot-sources-header___faf7D:hover{color:var(--genius-primary-blue)}.genius-sdk__GeniusChatbot-module__genius-chatbot-sources-header___faf7D svg{color:var(--genius-grey-500)}.genius-sdk__GeniusChatbot-module__genius-chatbot-sources-chevron___UbDbJ{margin-left:auto}.genius-sdk__GeniusChatbot-module__genius-chatbot-sources-list___R8Ido{display:flex;flex-direction:column;gap:6px;animation:genius-sdk__GeniusChatbot-module__slideIn___0VmGW .2s ease-out}@keyframes genius-sdk__GeniusChatbot-module__slideIn___0VmGW{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.genius-sdk__GeniusChatbot-module__genius-chatbot-source-item___lgwoi{display:flex;align-items:flex-start;gap:8px;padding:6px 8px;background:#1b85ff0d;border-radius:6px;transition:background .2s ease}.genius-sdk__GeniusChatbot-module__genius-chatbot-source-item___lgwoi:hover{background:#1b85ff1a}.genius-sdk__GeniusChatbot-module__genius-chatbot-source-number___5MEOF{display:flex;align-items:center;justify-content:center;width:18px;height:18px;background:var(--genius-primary-blue);color:var(--genius-white);border-radius:50%;font-size:10px;font-weight:600;flex-shrink:0}.genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN{font-family:Inter,sans-serif;font-size:14px;font-weight:400;line-height:36px;color:#5f5f5f;padding:0;display:block}.genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN p{margin:12px 0;line-height:36px}.genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN br{display:block;content:"";margin:12px 0;height:12px}.genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN br+*{margin-top:10px}.genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN div{line-height:24px}.genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN div+div{margin-top:8px}.genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN>*:first-child{margin-top:0}.genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN>*:last-child{margin-bottom:0}.genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN span,.genius-sdk__GeniusChatbot-module__genius-dashboard-value-pill___EH-fb{display:inline-block;background-color:#f3f4f6;color:#797979;padding:6px;margin-left:2px;margin-right:2px;border-radius:4px;font-size:12px;font-weight:500;line-height:120%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;vertical-align:middle;white-space:nowrap}.genius-sdk__GeniusChatbot-module__genius-chatbot-source-content___8DpLR{flex:1;min-width:0}.genius-sdk__GeniusChatbot-module__genius-chatbot-source-title___rmRJp{font-size:12px;font-weight:500;color:var(--genius-text-primary);line-height:1.3;word-break:break-word}.genius-sdk__GeniusChatbot-module__genius-chatbot-source-uri___QZVuP{font-size:11px;color:var(--genius-grey-600);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.genius-sdk__GeniusChatbot-module__genius-chatbot-scroll-button___sHadA{position:absolute;bottom:180px;right:24px;width:36px;height:36px;background:var(--genius-white);border:1px solid var(--genius-grey-200);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px #0000001a;transition:all .2s ease;color:var(--genius-grey-600);z-index:10}.genius-sdk__GeniusChatbot-module__genius-chatbot-scroll-button___sHadA:hover{background:var(--genius-primary-blue);color:var(--genius-white);border-color:var(--genius-primary-blue);transform:translateY(-2px);box-shadow:0 4px 12px #1b85ff4d}.genius-sdk__GeniusChatbot-module__genius-chatbot-scroll-button___sHadA:active{transform:translateY(0)}.genius-sdk__GeniusChatbot-module__genius-chatbot-input-section___qlp-I{display:flex;flex-direction:column;gap:24px}.genius-sdk__GeniusChatbot-module__genius-chatbot-suggestions___ewgwd{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none}.genius-sdk__GeniusChatbot-module__genius-chatbot-suggestions___ewgwd::-webkit-scrollbar{display:none}.genius-sdk__GeniusChatbot-module__genius-chatbot-suggestion___Syi1o{background:var(--genius-white);border:1px solid var(--genius-grey-200);border-radius:20px;padding:8px 12px;font-size:14px;font-weight:500;color:var(--genius-text-primary);cursor:pointer;white-space:nowrap;transition:all .2s;flex-shrink:0;line-height:20px}.genius-sdk__GeniusChatbot-module__genius-chatbot-suggestion___Syi1o:hover{background:#2f6bff14;border-color:var(--genius-grey-200)}.genius-sdk__GeniusChatbot-module__genius-chatbot-input-container___U-16F{background:var(--genius-white);border:1.5px solid var(--genius-grey-200);border-radius:20px;transition:all .2s;position:relative;box-shadow:0 1px 8px -1px #0000000a}.genius-sdk__GeniusChatbot-module__genius-chatbot-input-container___U-16F:focus-within{border-color:var(--genius-primary-blue)}.genius-sdk__GeniusChatbot-module__genius-chatbot-input-content___5qw6w{display:flex;flex-direction:column;gap:12px;padding:16px}.genius-sdk__GeniusChatbot-module__genius-chatbot-input-row___ZSuJF{display:flex;align-items:center;gap:4px}.genius-sdk__GeniusChatbot-module__genius-chatbot-input-actions___EilGU{display:flex;justify-content:flex-end}.genius-sdk__GeniusChatbot-module__genius-chatbot-input___xVIEY{flex:1;border:none;outline:none;font-size:15px;font-weight:500;color:var(--genius-text-primary);background:transparent;font-family:inherit;line-height:24px;letter-spacing:-.15px}.genius-sdk__GeniusChatbot-module__genius-chatbot-input___xVIEY::placeholder{color:#838383;font-weight:500}.genius-sdk__GeniusChatbot-module__genius-chatbot-send-button___GIS7-{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important;background:var(--genius-primary-blue);border:none;border-radius:50%;padding:0!important;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;flex-shrink:0}.genius-sdk__GeniusChatbot-module__genius-chatbot-send-button___GIS7-:hover{transform:scale(1.04);box-shadow:0 4px 12px #2f6bff52}.genius-sdk__GeniusChatbot-module__genius-chatbot-send-button___GIS7-:active{transform:scale(.98)}.genius-sdk__GeniusChatbot-module__genius-chatbot-send-button___GIS7-:focus{outline:2px solid var(--genius-primary-blue);outline-offset:2px}.genius-sdk__GeniusChatbot-module__genius-chatbot-send-button___GIS7-:focus-visible{outline:2px solid var(--genius-primary-blue);outline-offset:2px}.genius-sdk__GeniusChatbot-module__genius-chatbot-send-icon___hFQPD{width:18px;height:18px;color:var(--genius-white);display:flex;align-items:center;justify-content:center}.genius-sdk__GeniusChatbot-module__genius-chatbot-send-icon___hFQPD svg[viewBox="0 0 16 16"]{width:14.41px;height:14.41px}.genius-sdk__GeniusChatbot-module__genius-chatbot-send-icon___hFQPD svg[viewBox="0 0 18 18"]{width:18px;height:18px}.genius-sdk__GeniusChatbot-module__genius-chatbot-send-icon___hFQPD svg rect,.genius-sdk__GeniusChatbot-module__genius-chatbot-send-icon___hFQPD svg path{fill:currentColor}@media (max-width: 768px){.genius-sdk__GeniusChatbot-module__genius-chatbot-container___-1AXk{width:100vw;height:100vh;max-width:440px;max-height:680px;border-radius:0}.genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q.genius-sdk__GeniusChatbot-module__expanded___egMCL .genius-sdk__GeniusChatbot-module__genius-chatbot-container___-1AXk{width:100vw;max-width:100vw;min-width:unset}.genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q.genius-sdk__GeniusChatbot-module__bottom-right___1B1-1,.genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q.genius-sdk__GeniusChatbot-module__bottom-left___jW0dZ{bottom:0;right:0;left:0}.genius-sdk__GeniusChatbot-module__genius-chatbot-suggestions___ewgwd{flex-wrap:wrap}.genius-sdk__GeniusChatbot-module__genius-chatbot-header-icons___eyLdP>button:first-child{display:none!important}.genius-sdk__GeniusChatbot-module__genius-chatbot-sources___FeMnB{margin-top:10px;padding-top:10px}.genius-sdk__GeniusChatbot-module__genius-chatbot-source-item___lgwoi{padding:5px 6px}.genius-sdk__GeniusChatbot-module__genius-chatbot-source-title___rmRJp{font-size:11px}.genius-sdk__GeniusChatbot-module__genius-chatbot-source-uri___QZVuP{font-size:10px}}@media (min-width: 768px) and (max-width: 1200px){.genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q.genius-sdk__GeniusChatbot-module__expanded___egMCL .genius-sdk__GeniusChatbot-module__genius-chatbot-container___-1AXk{width:60vw}}.genius-sdk__GeniusToggle-module__genius-toggle-button___-vqMH{display:flex;flex-direction:row;align-items:center;gap:8px;padding:12px 14px;background:linear-gradient(163.417deg,#9747ff 41.482%,#1b85ff 116.12%);border:none;border-radius:27px;box-shadow:inset 0 0 2.39674px #fff6,0 4px 12px #6348ff47;cursor:pointer;transition:all .2s ease;z-index:9998;outline:none;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;pointer-events:auto}.genius-sdk__GeniusToggle-module__genius-toggle-button___-vqMH:hover{transform:scale(1.05);box-shadow:inset 0 0 2.39674px #fff6,0 6px 16px #6348ff59}.genius-sdk__GeniusToggle-module__genius-toggle-button___-vqMH:active{transform:scale(.98)}.genius-sdk__GeniusToggle-module__genius-toggle-button___-vqMH:focus{outline:2px solid #1B85FF;outline-offset:2px}.genius-sdk__GeniusToggle-module__genius-toggle-button___-vqMH:focus-visible{outline:2px solid #1B85FF;outline-offset:2px}.genius-sdk__GeniusToggle-module__genius-toggle-text___t-WaO{font-size:18px;font-weight:600;line-height:20px;color:#fff;letter-spacing:-.36px;white-space:nowrap}.genius-sdk__GeniusToggle-module__genius-toggle-logo___NwizJ{width:16px;height:16px;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}.genius-sdk__GeniusToggle-module__genius-toggle-logo___NwizJ svg{width:16px;height:16px}body:has(.genius-sdk__GeniusToggle-module__genius-toggle-button___-vqMH):not(:has(.genius-sdk__GeniusToggle-module__genius-dashboard-container___LAShH)):not(:has(.genius-sdk__GeniusToggle-module__genius-chatbot-mobile-container___G-u6K)){overflow:auto!important;position:static!important;height:auto!important}@media (max-width: 768px){.genius-sdk__GeniusToggle-module__genius-toggle-button___-vqMH{transform:translateZ(0);will-change:transform;contain:layout style paint}body{overflow:auto!important;-webkit-overflow-scrolling:touch!important;position:static!important}}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap";@import"https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap";.genius-sdk__VoiceCall-module__genius-voice-call-container___pMQPi{position:fixed;bottom:20px;right:20px;width:200px;height:64px;background:#f6f6f6;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border-radius:36px;box-shadow:0 0 0 1px #0000000d,0 8px 24px #0000001f;z-index:10000;animation:genius-sdk__VoiceCall-module__slideIn___09HIS .3s ease-out}@keyframes genius-sdk__VoiceCall-module__slideIn___09HIS{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.genius-sdk__VoiceCall-module__genius-voice-call-content___D6lvV{display:flex;align-items:center;height:100%;padding:0 12px}.genius-sdk__VoiceCall-module__genius-voice-call-buttons___-r2z6{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;height:100%}.genius-sdk__VoiceCall-module__genius-voice-call-genius-icon___zXrKa{width:40px;height:40px;border-radius:50%;background:linear-gradient(140.43deg,#9747ff 41.482%,#1b85ff 116.12%);display:flex;align-items:center;justify-content:center;flex-shrink:0}.genius-sdk__VoiceCall-module__genius-voice-call-genius-icon-inner___ZNVcG{width:19.195px;height:19.195px;color:#fff;display:flex;align-items:center;justify-content:center}.genius-sdk__VoiceCall-module__genius-voice-call-genius-icon-inner___ZNVcG svg{width:100%;height:100%;fill:currentColor}.genius-sdk__VoiceCall-module__genius-voice-call-voice-container___Tp-nw{flex:1;display:flex;align-items:center;justify-content:center}.genius-sdk__VoiceCall-module__genius-voice-call-mic-button___t10z7{background:#fff;border:1px solid #e1e1e1;border-radius:35.2px;box-shadow:0 1px 3px #0000000f;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;flex-shrink:0}.genius-sdk__VoiceCall-module__genius-voice-call-mic-button___t10z7>svg{width:20px;height:20px;color:#5f5f5f;flex-shrink:0}.genius-sdk__VoiceCall-module__genius-voice-call-waveform___fQ96-{display:flex;align-items:center;justify-content:center;animation:genius-sdk__VoiceCall-module__pulse___ao-NY 1.5s ease-in-out infinite;flex-shrink:0}.genius-sdk__VoiceCall-module__genius-voice-call-waveform___fQ96- svg{width:20px;height:20px;color:#1b85ff}.genius-sdk__VoiceCall-module__genius-voice-call-waveform___fQ96- rect{animation:genius-sdk__VoiceCall-module__wave___W214g 1.2s ease-in-out infinite}.genius-sdk__VoiceCall-module__genius-voice-call-waveform___fQ96- rect:nth-child(1){animation-delay:0s}.genius-sdk__VoiceCall-module__genius-voice-call-waveform___fQ96- rect:nth-child(2){animation-delay:.1s}.genius-sdk__VoiceCall-module__genius-voice-call-waveform___fQ96- rect:nth-child(3){animation-delay:.2s}.genius-sdk__VoiceCall-module__genius-voice-call-waveform___fQ96- rect:nth-child(4){animation-delay:.3s}.genius-sdk__VoiceCall-module__genius-voice-call-waveform___fQ96- rect:nth-child(5){animation-delay:.4s}@keyframes genius-sdk__VoiceCall-module__pulse___ao-NY{0%,to{opacity:.3}50%{opacity:1}}@keyframes genius-sdk__VoiceCall-module__wave___W214g{0%,to{transform:scaleY(.5)}50%{transform:scaleY(1)}}.genius-sdk__VoiceCall-module__genius-voice-call-end-button___hwnPC{width:44px;height:44px;background:#fff;border:1px solid #e1e1e1;border-radius:35.2px;box-shadow:0 1px 3px #0000000f;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;flex-shrink:0;padding:0}.genius-sdk__VoiceCall-module__genius-voice-call-end-button___hwnPC:hover{background:#fee2e2;border-color:#fca5a5}.genius-sdk__VoiceCall-module__genius-voice-call-end-button___hwnPC:active{transform:scale(.95)}.genius-sdk__VoiceCall-module__genius-voice-call-end-button___hwnPC svg{width:20px;height:20px;color:#f04438}@media (max-width: 768px){.genius-sdk__VoiceCall-module__genius-voice-call-container___pMQPi{bottom:10px;right:10px;left:10px;width:auto;max-width:300px;margin:0 auto}}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD{border:1px solid #EDEDED!important;border-radius:.5rem;display:flex;flex-direction:column;gap:.75rem;position:relative}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-container___PF9Kl{background:#fff;border-radius:.25rem;box-shadow:0 1px 3px #0000001a}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-item___S61g8{transition:all .2s ease}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-item___S61g8:hover{transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-bullet___iqmNl{flex-shrink:0;border-radius:.125rem;transition:all .2s ease}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-table___sQOwt{border-collapse:collapse;width:100%}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-table___sQOwt th{background:#f8f9fa;font-weight:600}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-table___sQOwt td,.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-table___sQOwt th{padding:.5rem;text-align:left;border-bottom:1px solid #e9ecef}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-table___sQOwt tr:hover{background:#007bff0d}@media (max-width: 768px){.genius-sdk__Highchart-module__highchart-wrapper___sM-hD{position:relative;margin-top:1.5rem}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-container___PF9Kl{padding:.5rem}.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-item___S61g8{padding:.5rem .25rem}}@media (min-width: 769px){.genius-sdk__Highchart-module__highchart-wrapper___sM-hD,.genius-sdk__Highchart-module__highchart-wrapper___sM-hD .genius-sdk__Highchart-module__legend-container___PF9Kl{padding:1rem}}.genius-sdk__Highchart-module__highcharts-container___ygpjY{font-family:Inter,sans-serif!important}.genius-sdk__Highchart-module__highcharts-title___vYLWj{font-size:16px!important;font-weight:600!important;color:#9aa0a6!important}.genius-sdk__Highchart-module__highcharts-legend-item___QKt2l text{color:#5f6368!important;font-weight:500!important}.genius-sdk__Highchart-module__highcharts-axis-labels___0y1KO text{color:#9aa0a6!important}.genius-sdk__Highchart-module__highcharts-yaxis-labels___ZcIXe text{color:#9aa0a6!important}.genius-sdk__Highchart-module__highcharts-grid-line___gITcn{stroke:#e0e0e0!important}.genius-sdk__Highchart-module__highcharts-point___5Wqsl{stroke-width:2px!important}.genius-sdk__Highchart-module__highcharts-plot-background___XvssF{fill:#fff!important}.genius-sdk__Highchart-module__custom-legend___8txpT{background:#fff;border-radius:.5rem;box-shadow:0 2px 8px #0000001a;padding:1rem;margin:.5rem 0}.genius-sdk__Highchart-module__custom-legend-item___nUPlX{display:flex;align-items:center;gap:.5rem;padding:.25rem 0;cursor:pointer;transition:all .2s ease}.genius-sdk__Highchart-module__custom-legend-item___nUPlX:hover{background:#007bff0d;border-radius:.25rem}.genius-sdk__Highchart-module__custom-legend-bullet___3hLh2{width:12px;height:12px;border-radius:2px;flex-shrink:0}.genius-sdk__Highchart-module__custom-legend-text___Ja4cM{flex:1;font-size:.875rem;color:#374151;font-weight:500}.genius-sdk__Highchart-module__custom-legend-value___sMiwT{font-size:.75rem;color:#6b7280;font-weight:600}@media (max-width: 640px){.genius-sdk__Highchart-module__highchart-wrapper___sM-hD.genius-sdk__Highchart-module__flex-row___qsVq8{flex-direction:column}.genius-sdk__Highchart-module__custom-legend___8txpT{margin:.5rem 0 0}.genius-sdk__Highchart-module__custom-legend-item___nUPlX{padding:.5rem .25rem}.genius-sdk__Highchart-module__custom-legend-text___Ja4cM{font-size:.8rem}}.genius-sdk__Highchart-module__highchart-loading___XW7h3{position:relative;min-height:200px;display:flex;align-items:center;justify-content:center}.genius-sdk__Highchart-module__highchart-loading___XW7h3:after{content:"";width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #3498db;border-radius:50%;animation:genius-sdk__Highchart-module__spin___H-wRz 1s linear infinite}@keyframes genius-sdk__Highchart-module__spin___H-wRz{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:root{--modal-width-collapsed: 440px;--modal-height-collapsed: 680px;--modal-width-xl: 887px;--modal-height-xl: 90vh;--modal-width-lg: 796px;--modal-height-lg: 90vh;--modal-width-md-lg: 720px;--modal-height-md-lg: 90vh;--modal-width-md: 720px;--modal-height-md: 90vh;--modal-width-sm: 100%;--modal-height-sm: 90vh;--modal-max-width-sm: 720px;--modal-width-xs: 100%;--modal-height-xs: 100%}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-backdrop___1dyxh{position:fixed;top:0;left:0;right:0;bottom:0;background:#0003;z-index:9998;opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-backdrop___1dyxh.genius-sdk__GeniusChatbotDashboard-module__visible___ojnlM{opacity:.5;background:#77777780;visibility:visible}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW{position:fixed;bottom:20px;right:20px;width:var(--modal-width-collapsed);height:var(--modal-height-collapsed);background:#fff;border-radius:16px;border:1px solid #d9d9d9;display:flex;flex-direction:column;font-family:Inter,sans-serif;box-shadow:0 1px 8px -1px #0000000a;overflow:hidden;z-index:9999;transition:all .3s ease;touch-action:pan-y}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H{width:var(--modal-width-xl);height:var(--modal-height-xl)}@media (min-width: 1401px){.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H{width:var(--modal-width-xl);height:var(--modal-height-xl)}}@media (min-width: 1201px) and (max-width: 1400px){.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H{width:var(--modal-width-lg);height:var(--modal-height-lg)}}@media (min-width: 1025px) and (max-width: 1200px){.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H{width:var(--modal-width-md-lg);height:var(--modal-height-md-lg)}}@media (min-width: 921px) and (max-width: 1024px){.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H{width:var(--modal-width-md);height:var(--modal-height-md)}}@media (max-width: 1400px){.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-container___UTRzH:not(.genius-sdk__GeniusChatbotDashboard-module__single-line___VKYFP){height:100px!important;padding:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-container___UTRzH:not(.genius-sdk__GeniusChatbotDashboard-module__single-line___VKYFP) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1{max-height:32px;font-size:14px;line-height:20px}}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-top-bar___3z76Q{display:flex;justify-content:space-between;align-items:center;padding:16px 28px;border-bottom:1px solid #ededed;background:#fff;flex-shrink:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-icons-left___22uJz{display:flex;gap:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-icons-right___C5UjC{display:flex;gap:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-icon-container___4dRqI{background:transparent;border:none;padding:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .2s}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-icon-container___4dRqI:hover{opacity:.7}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-icon-container___4dRqI svg{width:20px;height:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-icon-container___4dRqI.genius-sdk__GeniusChatbotDashboard-module__with-text___skVCO{gap:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-back-text___Od1bW{font-size:14px;font-weight:500;color:#383838}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34{flex:1;display:flex;flex-direction:column;align-items:center;position:relative;overflow:hidden;background:#fff;padding-top:80px;min-height:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq):after{content:"";position:absolute;bottom:0;margin-right:8px;left:0;right:0;height:60px;padding-right:12px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(2px);pointer-events:none;z-index:5}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:not(:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq)){justify-content:center;padding-top:80px;padding-bottom:120px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-branding___7PzdS{display:flex;flex-direction:column;align-items:center;gap:16px;margin-bottom:24px;padding-top:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-logo-container___zHKb3{display:flex;flex-direction:column;gap:20px;align-items:center}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-logo___oWWc4{width:42px;height:42px;border-radius:29.781px;background:linear-gradient(140deg,#9747ff -41.48%,#1b85ff 116.12%);box-shadow:0 0 10.993px 3.664px #e9e7ff,0 0 2.644px #fff6 inset;display:flex;align-items:center;justify-content:center;padding:11.84px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-logo___oWWc4 svg{width:18.32px;height:18.32px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-welcome___ee72M{text-align:center;max-width:642px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-welcome___ee72M h2{font-weight:600;font-size:22px;line-height:35.2px;color:#2b2b2b;margin:0 0 4px;letter-spacing:-.44px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-welcome___ee72M p{font-weight:500;font-size:22px;line-height:35.2px;color:#5f5f5f;margin:0;letter-spacing:-.44px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-suggestions___ZcAU8{display:flex;gap:8px;justify-content:center;width:100%;padding:0;margin-top:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:not(:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq)) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-suggestions___ZcAU8{position:relative;top:auto;left:auto;right:auto;margin-bottom:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-suggestion___JFR-a{display:flex;padding:8px 12px;align-items:center;gap:8px;border-radius:12px;border:1px solid var(--Color-Gray-300, #EDEDED);background:var(--Color-Gray-0, #FFF);color:var(--Color-Gray-1600, #454545);text-align:center;font-family:Inter;font-size:12px;font-style:normal;font-weight:600;line-height:20px;cursor:pointer;transition:all .2s;white-space:nowrap}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-suggestion___JFR-a:hover{background:#f5f5f5}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-suggestion___JFR-a svg{width:16px;height:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-area___ofUbJ{display:flex;flex-direction:column;gap:10px;margin-left:auto;margin-right:auto;margin-bottom:20px;bottom:auto;left:auto;right:auto;width:400px;max-width:400px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:not(:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq)) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-area___ofUbJ{position:relative;bottom:auto;left:auto;right:auto;width:599px;max-width:599px;margin-bottom:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-container___UTRzH{background:#fff;height:124px;border:1px solid #ededed;border-radius:20px;padding:16px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 1px 8px -1px #0000000a;box-sizing:border-box;width:100%}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1{width:100%;border:none;outline:none;font-size:16px;line-height:24px;color:#1c1c1c;background:#fff;background-color:#fff;font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;flex:1;max-height:48px;align-self:flex-start;padding-top:0;padding-left:0;text-align:left;resize:none;overflow-y:auto}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1::placeholder{color:#868686;text-align:left}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1:focus{background:#fff;background-color:#fff}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1:active{background:#fff;background-color:#fff}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1::-webkit-scrollbar{width:4px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1::-webkit-scrollbar-track{background:transparent}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1::-webkit-scrollbar-thumb{background:#e1e1e1;border-radius:2px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1::-webkit-scrollbar-thumb:hover{background:#d0d0d0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-actions___YK8kC{display:flex;justify-content:end;align-items:center}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-attachment-button___pbzwc{background:#fff;border:1px solid #ededed;border-radius:28.8px;padding:9.6px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;width:36px;height:36px;box-sizing:border-box}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-attachment-button___pbzwc:hover{background:#f5f5f5}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-attachment-button___pbzwc svg{width:16.8px;height:16.8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-container___B-AOf{display:flex;gap:6px;align-items:center}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-microphone-button___lZ7h0{background:#fff;border:1px solid #ededed;border-radius:28.8px;padding:9.6px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;width:36px;height:36px;box-sizing:border-box}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-microphone-button___lZ7h0:hover{background:#f5f5f5}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-microphone-button___lZ7h0:disabled{opacity:.5;cursor:not-allowed}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-microphone-button___lZ7h0:disabled:hover{background:#fff}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-microphone-button___lZ7h0 svg{width:16.8px;height:16.8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-send-button___fLXEm{background:#1b85ff;border:none;border-radius:27.83px;padding:9.89px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;width:36px;height:36px;box-sizing:border-box}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-send-button___fLXEm:hover{opacity:.8}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-send-button___fLXEm:disabled{opacity:.5;cursor:not-allowed}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-send-button___fLXEm:disabled:hover{opacity:.5}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-send-button___fLXEm svg{width:16.21px;height:16.21px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-cancel-button___kn9Lg{display:flex;padding:9.895px;justify-content:center;align-items:center;gap:7.421px;border-radius:27.829px;background:#2e2e2e}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-cancel-button___kn9Lg:hover{background:#2e2e2e}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-cancel-button___kn9Lg:disabled{opacity:.5;cursor:not-allowed}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-cancel-button___kn9Lg:disabled:hover{background:#fff}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-cancel-button___kn9Lg svg{width:16px;height:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-retry-button___5oreu{background:#52c41a;border:none;border-radius:27.83px;padding:9.89px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;width:36px;height:36px;box-sizing:border-box}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-retry-button___5oreu:hover{opacity:.8}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-retry-button___5oreu:disabled{opacity:.5;cursor:not-allowed}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-retry-button___5oreu:disabled:hover{opacity:.5}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-retry-button___5oreu svg{width:16px;height:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-send-retry-container___yxRGt{display:flex;gap:6px;align-items:center}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-security-info___VwRHO{position:absolute;bottom:24px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:6px;font-weight:500;font-size:12px;line-height:20px;color:#939393;white-space:nowrap}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-security-info___VwRHO svg{width:18px;height:18px;flex-shrink:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq{flex:1;width:100%;overflow-y:auto;overflow-x:hidden;padding:24px 32px 180px;position:relative;min-height:0;-webkit-overflow-scrolling:touch}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq::-webkit-scrollbar{width:6px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq::-webkit-scrollbar-track{background:transparent}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq::-webkit-scrollbar-thumb:hover{background:#9ca3af}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-messages-container___8m6PY{display:flex;flex-direction:column;width:100%;min-height:min-content}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-scroll-button___YMYFi{background:#fff;border:1px solid #e1e5e9;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;color:#6b7280;z-index:10;align-self:center;padding:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-scroll-button___YMYFi:hover{border:1px solid #e1e5e9}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW{display:flex;width:100%;position:relative;margin-bottom:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW.genius-sdk__GeniusChatbotDashboard-module__user___5X16B{justify-content:flex-end}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW.genius-sdk__GeniusChatbotDashboard-module__user___5X16B .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-bubble___Dq5Eg{background:#f6f6f6;border-radius:25px 25px 12px;padding:16px 20px;max-width:567px;margin-bottom:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW.genius-sdk__GeniusChatbotDashboard-module__user___5X16B .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5{font-size:16px;line-height:24px;color:#2b2b2b;font-weight:400;font-family:Inter,sans-serif;letter-spacing:-.16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW.genius-sdk__GeniusChatbotDashboard-module__assistant___t65-b{justify-content:flex-start;align-items:flex-start;flex-direction:column;position:relative;margin-bottom:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW.genius-sdk__GeniusChatbotDashboard-module__assistant___t65-b:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-thinking___ceEhk){flex-direction:row;align-items:center;margin-bottom:40px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW.genius-sdk__GeniusChatbotDashboard-module__assistant___t65-b:not(:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-assistant-icon___urK-s)){margin-top:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-assistant-icon___urK-s{border-radius:17.018px;background:linear-gradient(140deg,#9747ff -41.48%,#1b85ff 116.12%);box-shadow:0 0 6.282px 2.094px #e9e7ff,inset 0 0 1.511px #fff6;display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:6.77px;margin-bottom:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW.genius-sdk__GeniusChatbotDashboard-module__assistant___t65-b:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-thinking___ceEhk) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-assistant-icon___urK-s{margin-bottom:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-assistant-icon___urK-s svg{width:10.47px;height:10.47px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW.genius-sdk__GeniusChatbotDashboard-module__assistant___t65-b .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-bubble___Dq5Eg{width:100%;display:flex;flex-direction:column;gap:16px;margin-bottom:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message___CaZzW.genius-sdk__GeniusChatbotDashboard-module__assistant___t65-b .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5{font-size:16px;line-height:175%;color:#1e1e1e;font-weight:400}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-thinking___ceEhk{display:flex;align-items:center;font-size:14px;color:#2b2b2b;margin-left:8px}@keyframes genius-sdk__GeniusChatbotDashboard-module__ellipsis___kKDif{to{width:1.25em}}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-thinking___ceEhk:after{content:"...";overflow:hidden;display:inline-block;vertical-align:bottom;animation:genius-sdk__GeniusChatbotDashboard-module__ellipsis___kKDif 1.5s infinite;width:0px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5{font-family:Inter,sans-serif;line-height:20px;margin-top:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 code{color:inherit!important;background-color:inherit;padding:inherit;border-radius:inherit;font-family:inherit;font-size:inherit}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 ul,.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 ol{margin:.5em 0;padding-top:16px;padding-left:1.5em;list-style-position:inside}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 ul{list-style-type:disc}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 ol{list-style-type:decimal}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 li{padding-left:.5em;text-indent:-1.5em;margin:.25em 0 .25em 1.5em}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 ul ul,.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 ol ol,.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 ul ol,.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5 ol ul{margin-top:.25em;margin-bottom:.25em}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-branding___7PzdS,.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-suggestions___ZcAU8{display:none}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq){padding-top:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-area___ofUbJ{position:absolute;bottom:0;left:16px;right:16px;width:auto;max-width:none;padding:0;background:#ffffff03;z-index:10}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-wrapper___n9Jj1{background:#fcfcfc;border-radius:36px;width:fit-content;height:fit-content;position:relative;margin:0 auto}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-recording-container___GiftZ{border-radius:36px;border:1px solid #e1e1e1;box-shadow:0 12px 32px 6px #0000000f,0 -2px 8px -1px #0000000a;padding:12px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;width:fit-content;height:fit-content;box-sizing:border-box;position:relative}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-button___-NShR{background:#fff;border:1px solid #e1e1e1;border-radius:35.2px;padding:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 3px #0000000f;transition:all .2s;flex-shrink:0;min-height:48px;box-sizing:border-box}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-button___-NShR:hover{background:#f5f5f5}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-button___-NShR svg{width:24px;height:24px;flex-shrink:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-controls___P235l{display:flex;gap:8px;align-items:center;flex-shrink:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-button___-NShR.genius-sdk__GeniusChatbotDashboard-module__voice-active___qB2ym{gap:8px;padding:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-area___ofUbJ:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-recording-container___GiftZ){padding:0 200px;height:114px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-area___ofUbJ .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-wrapper___n9Jj1{width:fit-content;height:auto;margin:0 auto}@media (min-width: 769px) and (max-width: 920px){.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW{width:var(--modal-width-collapsed);height:var(--modal-height-collapsed);bottom:20px;right:20px;left:auto;transform:none}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H{width:var(--modal-width-sm);max-width:var(--modal-max-width-sm);height:var(--modal-height-sm);bottom:20px;right:20px;left:auto;transform:none}}@media (max-width: 768px){.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW{width:var(--modal-width-xs);height:var(--modal-height-xs);bottom:0;left:0;right:0;border-radius:0;max-width:none;transform:none}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H{width:var(--modal-width-xs);height:var(--modal-height-xs)}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-area___ofUbJ{left:20px;right:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-suggestions___ZcAU8{flex-wrap:wrap}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq{padding:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-wrapper___n9Jj1{max-width:100%}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-area___ofUbJ:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-recording-container___GiftZ){padding:0 20px}}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-overlay___zDkbs{position:absolute;top:0;left:0;right:0;bottom:0;background:#fff;z-index:10;display:flex;flex-direction:column;touch-action:pan-y}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-container___ecQs7{flex:1;display:flex;flex-direction:column;background:#fff;min-height:0;overflow:hidden}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-header___zjLS-{display:flex;align-items:center;justify-content:space-between;padding:16px 28px;border-bottom:1px solid #ededed;background:#fff}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-header-left___mWOQO{display:flex;align-items:center;gap:6px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-header___zjLS- h2{color:var(--Color-Gray-1800, #2B2B2B);font-feature-settings:"liga" off,"clig" off;font-family:Inter;font-size:16px;font-style:normal;font-weight:500;line-height:24px;margin:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-back___ELQ0K{background:transparent;border:none;padding:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .2s}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-back___ELQ0K:hover{opacity:.7}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-back___ELQ0K svg{width:20px;height:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-actions___lqL15{display:flex;gap:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-action___-ug8n{background:transparent;border:none;padding:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .2s}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-action___-ug8n:hover{opacity:.7}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-action___-ug8n svg{width:20px;height:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-list___7jHy4{flex:1;overflow-y:auto;overflow-x:hidden;padding:20px;min-height:0;-webkit-overflow-scrolling:touch}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-list___7jHy4::-webkit-scrollbar{width:6px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-list___7jHy4::-webkit-scrollbar-track{background:transparent}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-list___7jHy4::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-list___7jHy4::-webkit-scrollbar-thumb:hover{background:#9ca3af}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item___XW2rl{padding:16px 14px;cursor:pointer;transition:background .2s}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item___XW2rl:hover{background:#f9f9f9;border-radius:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-content___feueq{display:flex;flex-direction:column;gap:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-title___YJNj8{font-size:16px;font-weight:500;line-height:24px;color:#2b2b2b}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-date___dlGyR{font-size:14px;font-weight:400;line-height:20px;color:#868686}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-single-stat-card___v4WS2{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:16px;width:200px;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f;margin-bottom:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-single-stat-title___yod6C{font-size:14px;color:#6b7280;margin-bottom:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-single-stat-value___Hyo-h{font-size:24px;font-weight:600;color:#111827}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-container___FxxTR{width:100%;overflow:hidden;margin-bottom:0;border:1px solid #e5e7eb;border-radius:8px;background:#fff;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-wrapper___zVypd{width:100%;overflow-x:auto;scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.1) transparent}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-wrapper___zVypd::-webkit-scrollbar{height:6px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-wrapper___zVypd::-webkit-scrollbar-track{background:transparent}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-wrapper___zVypd::-webkit-scrollbar-thumb{background-color:#0000001a;border-radius:3px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table___wpMRb{width:100%;border-collapse:collapse;background-color:#fff;min-width:600px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-head___rdA-0{background-color:#f6f6f6;border-bottom:1px solid #e5e7eb}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-head-row___VpPSu{height:48px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-head-cell___8eVeo{padding:12px 16px;text-align:left;font-weight:600;font-size:12px;line-height:16px;text-transform:uppercase;letter-spacing:.05em;color:#6b7280;white-space:nowrap;border-bottom:1px solid #e5e7eb}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-head-content___CwrnG{display:flex;align-items:center;gap:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-body___bElU6{background:#fff}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-row___ko-q1{border-bottom:1px solid #f3f4f6;transition:background-color .15s ease;cursor:pointer}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-row___ko-q1:hover{background-color:#f9fafb}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-row___ko-q1:last-child{border-bottom:none}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-cell___7wz17{padding:16px;font-size:14px;line-height:20px;color:#111827}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-cell-content___5Wdi8{display:flex;align-items:center;gap:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-pagination___Saw-v{display:flex;justify-content:space-between;align-items:center;padding:16px;border-top:1px solid #e5e7eb;background:#fff}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-pagination-info___G6snm{font-size:14px;color:#6b7280;font-weight:500}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-controls___Cyqw8{display:flex;gap:8px;color:#6b7280}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-controls___Cyqw8 button{background:#fff;border-radius:6px;padding:8px 12px;cursor:pointer;transition:all .2s;color:#6b7280;font-size:14px;font-weight:500;min-height:36px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-controls___Cyqw8 button:hover:not(:disabled){background:#f3f4f6;border-color:#d1d5db}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-controls___Cyqw8 button:disabled{opacity:.5;cursor:not-allowed;background:#f9fafb}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-button___1YLi8{min-width:32px;height:32px;padding:4px 10px;background:#fff;border:1px solid transparent;border-radius:8px;font-size:12px;font-weight:500;color:#374151;cursor:pointer;transition:all .2s ease;display:inline-flex;align-items:center;justify-content:center}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-button___1YLi8:hover:not(:disabled){background:#f9fafb;border-color:#d1d5db}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-button___1YLi8:disabled{opacity:.5;cursor:not-allowed}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-button___1YLi8.genius-sdk__GeniusChatbotDashboard-module__active___odK6T{background:#e8f3ff;color:#9333ea;border:1px solid #E8F3FF}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-pagination-dots___lYvds{display:inline-flex;align-items:center;justify-content:center;color:#5f6368;padding:0 8px;font-size:14px;font-weight:500;-webkit-user-select:none;user-select:none}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-chart-container___JDX-b{width:100%;min-height:300px;margin-bottom:0;display:block;position:relative}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-single-stat-wrapper___70ycH{display:block;width:fit-content;margin-bottom:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-wrapper-container___plSHR{display:block;width:100%;margin-bottom:0;position:relative}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-top-bar___3z76Q{padding:16px 20px 12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34{padding:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-welcome___ee72M h2{font-size:18px;line-height:28px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-welcome___ee72M p{font-size:16px;line-height:24px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-suggestions___ZcAU8{top:auto;flex-wrap:wrap;padding:0 20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-suggestion___JFR-a{font-size:11px;padding:6px 10px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-area___ofUbJ{bottom:auto;left:auto;right:auto;width:400px;max-width:400px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-security-info___VwRHO{bottom:16px;font-size:11px;padding:0 20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq{padding:16px 16px 120px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-messages-container___8m6PY{gap:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5{font-size:14px;line-height:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-body___EdY34:has(.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-conversation___JTOaq) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-area___ofUbJ{position:absolute;bottom:0;left:16px;right:16px;width:auto;max-width:none;padding:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-container___FxxTR{border-radius:6px;margin-bottom:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table___wpMRb{min-width:400px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-head-cell___8eVeo{padding:8px 12px;font-size:11px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-table-cell___7wz17{padding:10px 12px;font-size:13px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-pagination___Saw-v{padding:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-pagination-info___G6snm{font-size:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-button___1YLi8{min-width:28px;height:28px;font-size:12px;padding:0 8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-page-controls___Cyqw8{gap:4px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-single-stat___LF3B2{padding:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-single-stat___LF3B2 h3{font-size:32px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-container___PGPHW:not(.genius-sdk__GeniusChatbotDashboard-module__expanded___ngt3H) .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-chart-container___JDX-b{min-height:250px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-description___u0ZbF{font-family:Inter,sans-serif;font-size:14px;font-weight:400;line-height:36px;color:#5f5f5f;padding:0;display:block}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-description___u0ZbF p{margin:12px 0;line-height:36px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-description___u0ZbF br{display:block;content:"";margin:12px 0;height:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-description___u0ZbF br+*{margin-top:10px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-description___u0ZbF div{line-height:24px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-description___u0ZbF div+div{margin-top:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-description___u0ZbF>*:first-child{margin-top:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-description___u0ZbF>*:last-child{margin-bottom:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-description___u0ZbF span,.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-value-pill___JXBgS{display:inline-block;background-color:#f3f4f6;color:#797979;padding:6px;margin-left:2px;margin-right:2px;border-radius:4px;font-size:12px;font-weight:500;line-height:120%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;vertical-align:middle;white-space:nowrap}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-loading___GoUb2,.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-empty___yZcdH{padding:20px;text-align:center;color:#666;font-size:14px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-loading___GoUb2{display:flex;align-items:center;justify-content:center;gap:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-empty___yZcdH{opacity:.7}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item___XW2rl{position:relative;padding:14px 16px;cursor:pointer;transition:background-color .2s ease;display:flex;align-items:center;justify-content:space-between}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item___XW2rl:hover{background-color:#f5f5f5}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item___XW2rl:last-child{border-bottom:none}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-content___feueq{flex:1;min-width:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-title___YJNj8{font-size:14px;font-weight:500;color:#333;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-date___dlGyR{font-size:12px;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-delete___H2xQq{background:none;border:none;padding:4px;cursor:pointer;opacity:0;transition:opacity .2s ease;color:#999;margin-left:8px;flex-shrink:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item___XW2rl:hover .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-delete___H2xQq{opacity:1}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-delete___H2xQq:hover{color:#f44}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-history-item-delete___H2xQq svg{width:16px;height:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-container___UTRzH.genius-sdk__GeniusChatbotDashboard-module__single-line___VKYFP{height:56px;padding:8px 8px 8px 16px;display:flex;flex-direction:row;align-items:center;gap:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input___IImk1.genius-sdk__GeniusChatbotDashboard-module__single-line-input___KZ0ag{min-height:auto;max-height:none;height:40px;line-height:40px;padding:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-container___UTRzH.genius-sdk__GeniusChatbotDashboard-module__single-line___VKYFP .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-actions___YK8kC{flex-direction:row;align-items:center;gap:8px;margin-top:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-container___UTRzH.genius-sdk__GeniusChatbotDashboard-module__single-line___VKYFP .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-voice-container___B-AOf{display:flex;align-items:center;gap:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-container___UTRzH.genius-sdk__GeniusChatbotDashboard-module__single-line___VKYFP .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-microphone-button___lZ7h0,.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-container___UTRzH.genius-sdk__GeniusChatbotDashboard-module__single-line___VKYFP .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-send-button___fLXEm,.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-input-container___UTRzH.genius-sdk__GeniusChatbotDashboard-module__single-line___VKYFP .genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-cancel-button___kn9Lg{width:40px;height:40px;padding:0;display:flex;align-items:center;justify-content:center}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content-wrapper___xUicT{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-retry-button-inline___ynxrN{padding:8px;border:none;border-radius:6px;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-retry-button-inline___ynxrN svg{width:16px;height:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-bubble___Dq5Eg{display:flex;flex-direction:column;align-items:flex-start}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-action-buttons___bHBgd{display:flex;align-items:center;margin-top:4px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-like-button-inline___qxDXm{padding:8px 8px 8px 0;border:none;border-radius:6px;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-like-button-inline___qxDXm:disabled{cursor:default;opacity:1}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-like-button-inline___qxDXm svg{width:16px;height:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-dislike-button-inline___tnM54{padding:8px;border:none;border-radius:6px;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-dislike-button-inline___tnM54:disabled{cursor:default;opacity:1}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-dislike-button-inline___tnM54 svg{width:16px;height:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-overlay___DDtOF{position:absolute;top:0;left:0;right:0;bottom:0;background:#fff;z-index:10;display:flex;flex-direction:column}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-container___-v-cr{flex:1;display:flex;flex-direction:column;background:#fff;font-family:Inter,sans-serif}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-header___ePdx4{display:flex;justify-content:space-between;align-items:center;padding:16px 28px;border-bottom:1px solid #ededed;background:#fff;flex-shrink:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-icons-left___5weo7{display:flex;gap:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-icons-right___A-hiJ{display:flex;gap:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-icon-container___WCKoK{background:transparent;border:none;padding:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .2s}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-icon-container___WCKoK:hover{opacity:.7}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-icon-container___WCKoK svg{width:20px;height:20px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-body___vGLbY{flex:1;overflow-y:auto;display:flex;justify-content:center;align-items:flex-start;padding:32px 24px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-content___s2-PA{max-width:500px;width:100%;display:flex;flex-direction:column;gap:24px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-icon___QOTA1{width:32px;height:32px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-title___ttd2-{color:#454545;font-size:20px;font-weight:600;margin:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-options___sTDuz{display:flex;flex-direction:column;gap:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-option___1tKP5{padding:10px 16px;border:1px solid #E1E1E1;border-radius:8px;background:#fff;color:#797979;font-size:14px;font-weight:500;cursor:pointer;text-align:left;transition:all .2s}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-option___1tKP5:hover{background:#f5f5f5;border-color:#d1d5db}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-option___1tKP5.genius-sdk__GeniusChatbotDashboard-module__selected___rX0Dk{border-color:#1b85ff;color:#1b85ff;background:#f0f7ff}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-textarea-container___7V-Y8{display:flex;flex-direction:column;gap:8px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-label___CCyHp{color:#525252;font-size:14px;font-weight:500;margin:0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-textarea___aE0kA{width:100%;min-height:120px;padding:14px;border:1px solid #E1E1E1;border-radius:8px;background:#fff;color:#111;font-family:Inter,sans-serif;font-size:14px;font-weight:500;resize:vertical;transition:all .2s}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-textarea___aE0kA:focus{outline:none;border-color:#1b85ff;box-shadow:0 0 0 3px #1b85ff1a}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-textarea___aE0kA::placeholder{color:#999}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-error___TC-hH{color:#dc2626;font-size:12px;margin:4px 0 0}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-submit___-XcUM{width:120px;height:40px;padding:8px 16px;background:#1b85ff;color:#fff;border:none;border-radius:6px;font-family:Inter,sans-serif;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;margin-top:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-submit___-XcUM:hover{background:#1573e6;transform:translateY(-1px);box-shadow:0 2px 8px #1b85ff4d}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-submit___-XcUM:active{transform:translateY(0);box-shadow:0 1px 4px #1b85ff33}@media (max-width: 768px){.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-header___ePdx4{padding:16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-body___vGLbY{padding:20px 16px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-title___ttd2-{font-size:18px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-option___1tKP5{font-size:13px;padding:12px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-textarea___aE0kA{min-height:100px;font-size:13px}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-feedback-submit___-XcUM{width:100px;height:36px;font-size:13px}}.genius-sdk__GeniusChatbotDashboard-module__genius-dashboard-message-content___oTid5{width:100%}.genius-sdk__GeniusChatbotDashboard-module__voice-connecting-bar___Xy8LB{width:11px;border-radius:10px;flex-shrink:0;background-color:#e8f3ff;transition:background-color .3s ease}.genius-sdk__GeniusChatbotDashboard-module__voice-connecting-bar___Xy8LB.genius-sdk__GeniusChatbotDashboard-module__active___odK6T{background-color:#499dff}.genius-sdk__GeniusChatbotDashboard-module__voice-connecting-bar-1___H5h9a{height:23px;animation:genius-sdk__GeniusChatbotDashboard-module__fluidWave1___fI9GU 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotDashboard-module__voice-connecting-bar-2___fq2Ss{height:75px;animation:genius-sdk__GeniusChatbotDashboard-module__fluidWave2___G5nZM 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotDashboard-module__voice-connecting-bar-3___N2Ejq{height:55px;animation:genius-sdk__GeniusChatbotDashboard-module__fluidWave3___V1nF5 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotDashboard-module__voice-connecting-bar-4___kH-hV{height:23px;animation:genius-sdk__GeniusChatbotDashboard-module__fluidWave4___RjM9P 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotDashboard-module__voice-connecting-bar-5___W7Poa{height:75px;animation:genius-sdk__GeniusChatbotDashboard-module__fluidWave5___QDxGW 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotDashboard-module__voice-connecting-bar-6___h-Ip7{height:19px;animation:genius-sdk__GeniusChatbotDashboard-module__fluidWave6___NJN6- 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes genius-sdk__GeniusChatbotDashboard-module__fluidWave1___fI9GU{0%{background-color:#499dff}8%{background-color:#6ba8ff}16%{background-color:#8bb4ff}25%{background-color:#abc0ff}33%{background-color:#cbccff}41%{background-color:#e8f3ff}50%{background-color:#e8f3ff}58%{background-color:#cbccff}66%{background-color:#abc0ff}75%{background-color:#8bb4ff}83%{background-color:#6ba8ff}91%{background-color:#499dff}95%{background-color:#e8f3ff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotDashboard-module__fluidWave2___G5nZM{0%{background-color:#e8f3ff}4%{background-color:#499dff}12%{background-color:#6ba8ff}20%{background-color:#8bb4ff}29%{background-color:#abc0ff}37%{background-color:#cbccff}45%{background-color:#e8f3ff}54%{background-color:#e8f3ff}62%{background-color:#cbccff}70%{background-color:#abc0ff}79%{background-color:#8bb4ff}87%{background-color:#6ba8ff}95%{background-color:#499dff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotDashboard-module__fluidWave3___V1nF5{0%{background-color:#e8f3ff}8%{background-color:#e8f3ff}16%{background-color:#499dff}24%{background-color:#6ba8ff}33%{background-color:#8bb4ff}41%{background-color:#abc0ff}49%{background-color:#cbccff}58%{background-color:#e8f3ff}66%{background-color:#e8f3ff}74%{background-color:#cbccff}83%{background-color:#abc0ff}91%{background-color:#8bb4ff}99%{background-color:#6ba8ff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotDashboard-module__fluidWave4___RjM9P{0%{background-color:#e8f3ff}12%{background-color:#e8f3ff}20%{background-color:#499dff}28%{background-color:#6ba8ff}37%{background-color:#8bb4ff}45%{background-color:#abc0ff}53%{background-color:#cbccff}62%{background-color:#e8f3ff}70%{background-color:#e8f3ff}78%{background-color:#cbccff}87%{background-color:#abc0ff}95%{background-color:#8bb4ff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotDashboard-module__fluidWave5___QDxGW{0%{background-color:#e8f3ff}16%{background-color:#e8f3ff}24%{background-color:#499dff}32%{background-color:#6ba8ff}41%{background-color:#8bb4ff}49%{background-color:#abc0ff}57%{background-color:#cbccff}66%{background-color:#e8f3ff}74%{background-color:#e8f3ff}82%{background-color:#cbccff}91%{background-color:#abc0ff}99%{background-color:#8bb4ff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotDashboard-module__fluidWave6___NJN6-{0%{background-color:#e8f3ff}20%{background-color:#e8f3ff}28%{background-color:#499dff}36%{background-color:#6ba8ff}45%{background-color:#8bb4ff}53%{background-color:#abc0ff}61%{background-color:#cbccff}70%{background-color:#e8f3ff}78%{background-color:#e8f3ff}86%{background-color:#cbccff}95%{background-color:#abc0ff}96%{background-color:#8bb4ff}97%{background-color:#6ba8ff}98%{background-color:#499dff}to{background-color:#499dff}}.genius-sdk__SuccessRateComparison-module__rca-box___RAENl{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;border-radius:.75rem;border-width:1px;border-style:solid;border-color:#e1e1e1;background-color:#fcfcfc;width:100%;padding:1.25rem;gap:1rem}.genius-sdk__SuccessRateComparison-module__rca-box-text___q8twB{color:var(--jp-2-light-gray-1500);font-family:Inter,sans-serif;font-size:.875rem;font-weight:500;line-height:1.25rem;font-feature-settings:"liga" off}.genius-sdk__SuccessRateComparison-module__rca-box-buttons___afFSd{display:flex;gap:12px}.genius-sdk__SuccessRateComparison-module__rca-box-btn___R6e-B{padding:8px 24px;border-radius:6px;font-size:14px;font-weight:600;border:none;cursor:pointer}.genius-sdk__SuccessRateComparison-module__rca-box-btn-primary___kDURb{background:#6767f6;color:#fff}.genius-sdk__SuccessRateComparison-module__rca-box-btn-primary___kDURb:disabled{background:#b2dfdb;color:#fff;cursor:not-allowed}.genius-sdk__SuccessRateComparison-module__rca-box-btn-secondary___5zMpR{background:#fff;color:#008242;border:1px solid #e0e0e0}.genius-sdk__SuccessRateComparison-module__rca-box-btn-secondary___5zMpR:disabled{color:#bdbdbd;border-color:#e0e0e0;cursor:not-allowed}.genius-sdk__SuccessRateComparison-module__rca-box-support___QUmJe{color:#424242;font-family:Inter,sans-serif;font-size:16px;font-weight:700;margin-top:12px}.genius-sdk__SuccessRateComparison-module__rca-box-support-link___Y1z02{color:#1976d2;text-decoration:underline}.genius-sdk__SuccessRateComparison-module__rca-box-status___GGBgz{font-family:Inter,sans-serif;font-size:14px;font-weight:500;margin-top:12px}.genius-sdk__SuccessRateComparison-module__rca-box-status-success___X-CHD{color:#008242}.genius-sdk__SuccessRateComparison-module__rca-box-status-error___YOsai{color:#d32f2f}.genius-sdk__SuccessRateComparison-module__rca-box-status-processing___vwB4x{color:#757575}.genius-sdk__ConnectionTooltip-module__tooltip-container___Ge4hD{position:absolute;bottom:60px;left:50%;transform:translate(-50%);z-index:1001;animation:genius-sdk__ConnectionTooltip-module__fade-in___2qUKj .3s ease-out forwards;width:calc(100% - 32px);max-width:350px;display:flex;justify-content:center}.genius-sdk__ConnectionTooltip-module__tooltip___Dw96d{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;padding:0;position:relative;width:fit-content}.genius-sdk__ConnectionTooltip-module__tooltip-text___Zd-1L{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px;font-weight:400;line-height:20px;color:#454545;margin:0;text-align:center;white-space:nowrap}@keyframes genius-sdk__ConnectionTooltip-module__fade-in___2qUKj{0%{opacity:0;transform:translate(-50%) translateY(10px)}to{opacity:1;transform:translate(-50%) translateY(0)}}@media (max-width: 640px){.genius-sdk__ConnectionTooltip-module__tooltip-container___Ge4hD{bottom:110px;width:calc(100% - 24px);max-width:320px}.genius-sdk__ConnectionTooltip-module__tooltip-text___Zd-1L{font-size:13px;line-height:18px}}@media (max-width: 480px){.genius-sdk__ConnectionTooltip-module__tooltip-container___Ge4hD{bottom:96px;width:calc(100% - 16px);max-width:300px}.genius-sdk__ConnectionTooltip-module__tooltip-text___Zd-1L{font-size:12px;line-height:16px}}.genius-sdk__SimpleChat-module__simple-chat___8hiCW{height:100%;display:flex;flex-direction:column;background:#fff;position:relative}.genius-sdk__SimpleChat-module__welcome-container___NYmMP{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:60px 16px 100px;width:100%;max-width:100%;overflow-x:hidden}.genius-sdk__SimpleChat-module__welcome-header___F6yjX{text-align:center;margin-bottom:40px;display:flex;flex-direction:column;align-items:center;gap:16px}.genius-sdk__SimpleChat-module__welcome-title___nULPu{font-size:18px;font-weight:600;color:#2b2b2b;margin:0 0 8px;display:inline;line-height:1.6}.genius-sdk__SimpleChat-module__sparkle-icon___UeoaE{width:60px;height:60px;background:#5865f2;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 0 10.99px 3.66px #e9e7ff;position:relative}.genius-sdk__SimpleChat-module__wave-emoji___euNW9{font-size:32px;display:inline-block;animation:genius-sdk__SimpleChat-module__wave___c2Nl- .6s ease-in-out 2}@keyframes genius-sdk__SimpleChat-module__wave___c2Nl-{0%,to{transform:rotate(0)}25%{transform:rotate(-10deg)}75%{transform:rotate(10deg)}}.genius-sdk__SimpleChat-module__welcome-subtitle___Mi863{font-size:14px;color:#5f5f5f;margin:0;font-weight:500;line-height:1.6;letter-spacing:-.36px}.genius-sdk__SimpleChat-module__option-cards___RU4Xe{display:flex;flex-direction:row;gap:12px;width:100%;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:4px 0 8px;justify-content:center}.genius-sdk__SimpleChat-module__option-cards___RU4Xe::-webkit-scrollbar{display:none}.genius-sdk__SimpleChat-module__option-card___uxVHc{background:#fff;border:1px solid #ededed;border-radius:14px;padding:10px 12px;cursor:pointer;transition:all .2s ease;position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;flex:0 0 200px;min-width:200px;gap:8px}.genius-sdk__SimpleChat-module__option-card___uxVHc:hover{transform:translateY(-2px);box-shadow:0 2px 12px #0000001a;border-color:#e0e0e0}.genius-sdk__SimpleChat-module__card-icon-wrapper___ErlQj{width:28px;height:28px;border-radius:24.72px;display:flex;align-items:center;justify-content:center;flex-shrink:0;position:relative}.genius-sdk__SimpleChat-module__card-icon-wrapper___ErlQj.genius-sdk__SimpleChat-module__purple___OJIoJ{background:#8f49de;border:1.1px solid #6b30ab}.genius-sdk__SimpleChat-module__card-icon-wrapper___ErlQj.genius-sdk__SimpleChat-module__blue___i6H9v{background:#06aed4;border:1.1px solid #058baa}.genius-sdk__SimpleChat-module__card-icon-wrapper___ErlQj.genius-sdk__SimpleChat-module__red___eUlkU{background:#ef4444;border:1.1px solid #dc2626}.genius-sdk__SimpleChat-module__card-title___AZwKi{font-size:13px;font-weight:600;color:#454545;margin:0;line-height:18px;white-space:nowrap}.genius-sdk__SimpleChat-module__card-description___lprtn{font-size:12px;color:#5f5f5f;margin:0;line-height:16px;letter-spacing:-.12px}.genius-sdk__SimpleChat-module__card-icon-wrapper___ErlQj svg{width:12px;height:12px}.genius-sdk__SimpleChat-module__card-title___AZwKi+.genius-sdk__SimpleChat-module__card-description___lprtn{margin-top:1px}.genius-sdk__SimpleChat-module__messages-container___DInMa{flex:1;overflow-y:auto;padding:24px 24px 280px;display:flex;flex-direction:column;gap:16px}.genius-sdk__SimpleChat-module__messages-container___DInMa::-webkit-scrollbar{width:6px}.genius-sdk__SimpleChat-module__messages-container___DInMa::-webkit-scrollbar-track{background:#f9fafb}.genius-sdk__SimpleChat-module__messages-container___DInMa::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:3px}.genius-sdk__SimpleChat-module__message___mJ5zW{display:flex;align-items:flex-start;gap:12px;max-width:80%}.genius-sdk__SimpleChat-module__message___mJ5zW.genius-sdk__SimpleChat-module__user___wV-32{align-self:flex-end;justify-content:flex-end;margin-left:auto}.genius-sdk__SimpleChat-module__message___mJ5zW.genius-sdk__SimpleChat-module__bot___CI52h{align-self:flex-start;max-width:100%}.genius-sdk__SimpleChat-module__bot-message-group___ZeXmk{width:100%}.genius-sdk__SimpleChat-module__bot-content-wrapper___GwC1Y{display:flex;flex-direction:column;gap:4px;width:100%}.genius-sdk__SimpleChat-module__bot-message-group___ZeXmk .genius-sdk__SimpleChat-module__bot-content-wrapper___GwC1Y{max-width:100%;width:100%}.genius-sdk__SimpleChat-module__message-icon___7RObu{width:32px;height:32px;border-radius:50%;background:#6366f1;display:flex;align-items:center;justify-content:center;flex-shrink:0;align-self:flex-start}.genius-sdk__SimpleChat-module__sparkle-icon___UeoaE img,.genius-sdk__SimpleChat-module__message-icon___7RObu img{filter:brightness(0) invert(1)}.genius-sdk__SimpleChat-module__message-bubble___adDU7{margin-top:12px;background:#f3f4f6;padding:12px 18px;border-radius:20px;caret-color:transparent}.genius-sdk__SimpleChat-module__message___mJ5zW.genius-sdk__SimpleChat-module__bot___CI52h{margin-top:16px;color:var(--Color-Gray-1900, #1E1E1E);font-feature-settings:"liga" off,"clig" off;font-family:Inter;font-size:16px;font-style:normal;font-weight:400;line-height:175%}.genius-sdk__SimpleChat-module__message___mJ5zW.genius-sdk__SimpleChat-module__user___wV-32 .genius-sdk__SimpleChat-module__message-bubble___adDU7{background:#fff;border:1px solid #e5e7eb;box-shadow:0 1px 3px #0000000d;color:#374151}.genius-sdk__SimpleChat-module__connecting-pill___GdNZ2{position:absolute;bottom:80px;left:50%;transform:translate(-50%);background:#6b7280;color:#fff;padding:10px 24px;border-radius:24px;font-size:14px;box-shadow:0 4px 12px #00000026;animation:genius-sdk__SimpleChat-module__fadeIn___aXSg- .3s ease}@keyframes genius-sdk__SimpleChat-module__fadeIn___aXSg-{0%{opacity:0;transform:translate(-50%) translateY(10px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.genius-sdk__SimpleChat-module__message___mJ5zW.genius-sdk__SimpleChat-module__user___wV-32 .genius-sdk__SimpleChat-module__message-bubble___adDU7.genius-sdk__SimpleChat-module__pending___FoZ0X{border:1px solid #6366f1!important;box-shadow:0 1px 3px #6366f11a,0 0 0 2px #6366f11a!important;animation:genius-sdk__SimpleChat-module__pulse-border___LdMpS 2s ease-in-out infinite!important;position:relative}.genius-sdk__SimpleChat-module__message___mJ5zW.genius-sdk__SimpleChat-module__user___wV-32 .genius-sdk__SimpleChat-module__message-bubble___adDU7.genius-sdk__SimpleChat-module__pending___FoZ0X:after{content:""!important;position:absolute;right:8px;top:50%;transform:translateY(-50%);width:6px;height:6px;background:#6366f1;border-radius:50%;animation:genius-sdk__SimpleChat-module__typing-pulse___7h8yP 1.5s ease-in-out infinite!important;display:block!important}.genius-sdk__SimpleChat-module__message___mJ5zW.genius-sdk__SimpleChat-module__user___wV-32 .genius-sdk__SimpleChat-module__message-bubble___adDU7:not(.genius-sdk__SimpleChat-module__pending___FoZ0X){animation:none!important;border:1px solid #e5e7eb!important;box-shadow:0 1px 3px #0000000d!important}.genius-sdk__SimpleChat-module__message___mJ5zW.genius-sdk__SimpleChat-module__user___wV-32 .genius-sdk__SimpleChat-module__message-bubble___adDU7:not(.genius-sdk__SimpleChat-module__pending___FoZ0X):after{display:none!important;animation:none!important;content:none!important}@keyframes genius-sdk__SimpleChat-module__pulse-border___LdMpS{0%,to{box-shadow:0 1px 3px #6366f11a,0 0 0 2px #6366f11a;border-color:#6366f1}50%{box-shadow:0 1px 3px #6366f133,0 0 0 2px #6366f133;border-color:#4f46e5}}@keyframes genius-sdk__SimpleChat-module__typing-pulse___7h8yP{0%,to{opacity:.3;transform:translateY(-50%) scale(.8)}50%{opacity:1;transform:translateY(-50%) scale(1.2)}}.genius-sdk__SimpleChat-module__message___mJ5zW.genius-sdk__SimpleChat-module__user___wV-32 .genius-sdk__SimpleChat-module__message-bubble___adDU7.genius-sdk__SimpleChat-module__inaudible___VaA8q{color:#9ca3af;font-style:italic}.genius-sdk__SimpleChat-module__visual-components___eVmx0{margin-top:12px;margin-bottom:16px;display:flex;flex-direction:column;gap:12px;width:100%;max-width:none}.genius-sdk__SimpleChat-module__tool-description___-90-h{font-family:Inter,sans-serif;font-size:14px;font-weight:400;line-height:36px;color:#5f5f5f;padding:0;display:block}.genius-sdk__SimpleChat-module__tool-description___-90-h p{margin:12px 0;line-height:36px}.genius-sdk__SimpleChat-module__tool-description___-90-h br{display:block;content:"";margin:12px 0;height:12px}.genius-sdk__SimpleChat-module__tool-description___-90-h br+*{margin-top:10px}.genius-sdk__SimpleChat-module__tool-description___-90-h div{line-height:24px}.genius-sdk__SimpleChat-module__tool-description___-90-h div+div{margin-top:8px}.genius-sdk__SimpleChat-module__tool-description___-90-h>*:first-child{margin-top:0}.genius-sdk__SimpleChat-module__tool-description___-90-h>*:last-child{margin-bottom:0}.genius-sdk__SimpleChat-module__tool-description___-90-h span{display:inline-block;background-color:#f3f4f6;color:#797979;padding:6px;margin-left:2px;margin-right:2px;border-radius:4px;font-size:12px;font-weight:500;line-height:120%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;vertical-align:middle;white-space:nowrap}.genius-sdk__SimpleChat-module__chart-container___6ojrT{width:100%!important;margin:0}.genius-sdk__SimpleChat-module__single-stat-container___-8qmU{width:100%;margin:0}.genius-sdk__SimpleChat-module__table-container___Qk2YY{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:8px 0;width:100%}.genius-sdk__SimpleChat-module__table-container___Qk2YY::-webkit-scrollbar{height:8px}.genius-sdk__SimpleChat-module__table-container___Qk2YY::-webkit-scrollbar-track{background:#ededed;border-radius:4px}.genius-sdk__SimpleChat-module__table-container___Qk2YY::-webkit-scrollbar-thumb{background:#9c9c9f;border-radius:4px}.genius-sdk__SimpleChat-module__table-container___Qk2YY::-webkit-scrollbar-thumb:hover{background:#8a8a8e}.genius-sdk__SimpleChat-module__table-container___Qk2YY{position:relative;background:linear-gradient(to right,#fff 30%,#fff0),linear-gradient(to right,#fff0,#fff 70%) 100% 0,radial-gradient(farthest-side at 0% 50%,rgba(0,0,0,.1),transparent),radial-gradient(farthest-side at 100% 50%,rgba(0,0,0,.1),transparent) 100% 0;background-repeat:no-repeat;background-size:40px 100%,40px 100%,14px 100%,14px 100%;background-position:0 0,100%,0 0,100%;background-attachment:local,local,scroll,scroll}@media (max-width: 640px){.genius-sdk__SimpleChat-module__visual-components___eVmx0{margin-top:8px;gap:8px;width:100%}.genius-sdk__SimpleChat-module__chart-container___6ojrT,.genius-sdk__SimpleChat-module__single-stat-container___-8qmU,.genius-sdk__SimpleChat-module__table-container___Qk2YY{padding:12px;border-radius:8px;width:100%;margin:0}.genius-sdk__SimpleChat-module__tool-description___-90-h{font-size:12px;line-height:32px}}@media (max-width: 640px){.genius-sdk__SimpleChat-module__welcome-container___NYmMP{padding:40px 20px 80px}.genius-sdk__SimpleChat-module__welcome-title___nULPu{font-size:18px}.genius-sdk__SimpleChat-module__welcome-subtitle___Mi863{font-size:14px}.genius-sdk__SimpleChat-module__option-cards___RU4Xe{gap:10px;justify-content:flex-start}.genius-sdk__SimpleChat-module__option-card___uxVHc{flex:0 0 180px;min-width:180px}.genius-sdk__SimpleChat-module__messages-container___DInMa{padding:20px 20px 240px}.genius-sdk__SimpleChat-module__message___mJ5zW{max-width:90%}}@media (max-width: 480px){.genius-sdk__SimpleChat-module__welcome-container___NYmMP{padding:32px 16px 75px}.genius-sdk__SimpleChat-module__welcome-title___nULPu{font-size:16px}.genius-sdk__SimpleChat-module__welcome-subtitle___Mi863{font-size:13px}.genius-sdk__SimpleChat-module__option-cards___RU4Xe{gap:8px;justify-content:flex-start}.genius-sdk__SimpleChat-module__option-card___uxVHc{padding:10px;flex:0 0 170px;min-width:170px}.genius-sdk__SimpleChat-module__card-title___AZwKi{font-size:13px}.genius-sdk__SimpleChat-module__card-description___lprtn{font-size:11px}.genius-sdk__SimpleChat-module__messages-container___DInMa{padding:16px 16px 220px;gap:12px}.genius-sdk__SimpleChat-module__message-bubble___adDU7{font-size:14px;padding:10px 16px}}.genius-sdk__SimpleChat-module__streaming-cursor___4zqB6{display:inline-block;width:8px;height:8px;background-color:#8b5cf6;margin-left:4px;border-radius:50%;animation:genius-sdk__SimpleChat-module__pulse___VzuBS 1.5s infinite;vertical-align:middle}@keyframes genius-sdk__SimpleChat-module__pulse___VzuBS{0%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.genius-sdk__SimpleChat-module__spoken-text___Sa5q0{color:#111827;font-weight:500;transition:all .3s ease}.genius-sdk__SimpleChat-module__unspoken-text___5YvDS{color:#9ca3af;font-weight:400;transition:all .3s ease}.genius-sdk__SimpleChat-module__pending-message___bJptQ{display:inline-block;padding:4px 0}.genius-sdk__SimpleChat-module__loading-dots___m46tG{display:inline-flex;gap:4px;align-items:center}.genius-sdk__SimpleChat-module__loading-dots___m46tG span{display:inline-block;width:8px;height:8px;border-radius:50%;background-color:#0000004d;animation:genius-sdk__SimpleChat-module__loading-pulse___OOiCK 1.4s ease-in-out infinite}.genius-sdk__SimpleChat-module__message___mJ5zW.genius-sdk__SimpleChat-module__bot___CI52h .genius-sdk__SimpleChat-module__loading-dots___m46tG span{background-color:#8b5cf666}.genius-sdk__SimpleChat-module__loading-dots___m46tG span:nth-child(1){animation-delay:-.32s}.genius-sdk__SimpleChat-module__loading-dots___m46tG span:nth-child(2){animation-delay:-.16s}@keyframes genius-sdk__SimpleChat-module__loading-pulse___OOiCK{0%,80%,to{opacity:.4;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}.thinking-loader{display:inline-flex;flex-direction:column;max-width:400px;margin-top:6px;margin-bottom:8px}.thinking-header{display:flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none}.thinking-main{display:flex;align-items:center;gap:8px}.thinking-dots{display:inline-flex;gap:4px}.thinking-dots span{width:4px;height:4px;background-color:#3b82f6;border-radius:50%;animation:thinking-pulse 1.4s ease-in-out infinite both}.thinking-dots span:nth-child(1){animation-delay:-.32s}.thinking-dots span:nth-child(2){animation-delay:-.16s}@keyframes thinking-pulse{0%,80%,to{opacity:.3;transform:scale(1)}40%{opacity:1;transform:scale(1.2)}}.thinking-text{color:#6b7280;font-size:14px;font-weight:400}.chevron{transition:transform .2s ease;color:#6b7280;flex-shrink:0}.chevron.expanded{transform:rotate(180deg)}.tool-calls-dropdown{margin-top:8px;padding-left:20px;animation:slideDown .2s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.tool-call-item{padding:8px 0}.tool-call-header-item{display:flex;align-items:center;gap:8px;margin-bottom:8px}.tool-status{display:flex;align-items:center;justify-content:center;width:16px;height:16px}.spinner{width:12px;height:12px;border:1.5px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.tool-name{color:#111827;font-size:13px;font-weight:500;flex:1}.tool-duration{color:#6b7280;font-size:12px}.tool-arguments,.tool-result{margin-left:24px;margin-bottom:8px}.section-label{color:#9ca3af;font-size:11px;text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}.arguments-list{display:flex;flex-direction:column;gap:4px}.argument-item{display:flex;gap:6px;font-size:12px;line-height:1.4}.argument-key{color:#6b7280;min-width:fit-content}.argument-value{color:#374151;word-break:break-word;font-family:SF Mono,Monaco,Consolas,Courier New,monospace}.tool-result-text{color:#374151;font-size:12px;line-height:1.5}.tool-result-object{margin-top:4px}.tool-result-object pre{margin:0;padding:8px;background:#f3f4f6;border-radius:6px;font-size:11px;color:#374151;overflow-x:auto;max-height:200px;overflow-y:auto;font-family:SF Mono,Monaco,Consolas,Courier New,monospace}.tool-result-error{color:#dc2626;font-size:12px;padding:8px;background:#fef2f2;border-radius:6px;border:1px solid #fecaca}.error-label{font-weight:600}.tool-divider{height:1px;background:#e5e7eb;margin:12px 0}.genius-sdk__BottomBar-module__bottom-bar-container___BGRI7{position:sticky;bottom:40px;left:50%;transform:translate(-50%);width:calc(100% - 32px);max-width:350px;z-index:1000;display:flex;justify-content:center;align-items:center}.genius-sdk__BottomBar-module__bottom-bar-glow___A493n{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(100% + 40px);max-width:390px;filter:blur(20px);opacity:0;pointer-events:none;z-index:-1;animation:genius-sdk__BottomBar-module__fade-in___4ZShq .3s ease-out forwards}.genius-sdk__BottomBar-module__glow-bar___V3Qwb{width:100%;height:80px;border-radius:40px;background-size:200% 100%}@keyframes genius-sdk__BottomBar-module__glow-shift___lJVTh{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes genius-sdk__BottomBar-module__fade-in___4ZShq{0%{opacity:0}to{opacity:.4}}@keyframes genius-sdk__BottomBar-module__fade-out___wxLht{0%{opacity:.4}to{opacity:0}}@keyframes genius-sdk__BottomBar-module__glow-pulse___yKqwn{0%,to{opacity:.3;transform:translate(-50%,-50%) scale(.95)}50%{opacity:.6;transform:translate(-50%,-50%) scale(1.05)}}.genius-sdk__BottomBar-module__bottom-bar___XaxVJ{position:relative;width:fit-content;height:72px;border-radius:36px;background:#fcfcfcf2;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid #E1E1E1;box-shadow:0 12px 32px 6px #0000000f,0 -2px 8px -1px #0000000a;display:flex;align-items:center;justify-content:center}.genius-sdk__BottomBar-module__bar-content___6OsEK{display:flex;align-items:center;gap:12px;padding:12px;width:100%;max-width:100%}.genius-sdk__BottomBar-module__bar-button___iPlFP{width:24px;height:24px;border-radius:0;background:transparent;border:none;box-shadow:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;padding:0;flex-shrink:0}.genius-sdk__BottomBar-module__attachment-container___0Kbir:hover,.genius-sdk__BottomBar-module__waveform-send-container___HvkWS:hover,.genius-sdk__BottomBar-module__microphone-icon-container___qgstN:hover:not(.genius-sdk__BottomBar-module__disabled___FdMpB){background:#f9f9f9;border-color:#d4d4d4}.genius-sdk__BottomBar-module__attachment-container___0Kbir:active,.genius-sdk__BottomBar-module__waveform-send-container___HvkWS:active,.genius-sdk__BottomBar-module__microphone-icon-container___qgstN:active:not(.genius-sdk__BottomBar-module__disabled___FdMpB){background:#f2f2f2}.genius-sdk__BottomBar-module__bar-button___iPlFP:disabled{opacity:.5;cursor:not-allowed}.genius-sdk__BottomBar-module__x-button___LrIa0 svg{width:12px;height:12px}.genius-sdk__BottomBar-module__waveform-send-container___HvkWS .genius-sdk__BottomBar-module__bar-button___iPlFP svg{width:15px;height:16px}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN .genius-sdk__BottomBar-module__bar-button___iPlFP svg{width:14px;height:19px}.genius-sdk__BottomBar-module__attachment-container___0Kbir{display:flex;align-items:center;background:#fff;border-radius:35.2px;border:1px solid #E1E1E1;box-shadow:0 1px 3px #0000000f;padding:12px;gap:14.667px}.genius-sdk__BottomBar-module__voice-container___APP75{display:flex;align-items:center;gap:8px}.genius-sdk__BottomBar-module__waveform-send-container___HvkWS{display:flex;align-items:center;background:#fff;border-radius:35.2px;border:1px solid #E1E1E1;box-shadow:0 1px 3px #0000000f;padding:12px;gap:8px;cursor:pointer}.genius-sdk__BottomBar-module__waveform-send-container___HvkWS.genius-sdk__BottomBar-module__disabled___FdMpB{cursor:not-allowed;opacity:.5}.genius-sdk__BottomBar-module__waveform-send-container___HvkWS.genius-sdk__BottomBar-module__muted___G3eus{background:#feeceb;border-color:#f68f88}.genius-sdk__BottomBar-module__waveform-send-container___HvkWS.genius-sdk__BottomBar-module__muted___G3eus:hover:not(.genius-sdk__BottomBar-module__disabled___FdMpB){background:#feeceb;border-color:#f68f88}.genius-sdk__BottomBar-module__waveform-send-container___HvkWS.genius-sdk__BottomBar-module__muted___G3eus:active:not(.genius-sdk__BottomBar-module__disabled___FdMpB){background:#feeceb;border-color:#f68f88}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN{display:flex;align-items:center;background:#fff;border-radius:35.2px;border:1px solid #E1E1E1;box-shadow:0 1px 3px #0000000f;padding:12px;gap:8px;cursor:pointer}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN.genius-sdk__BottomBar-module__disabled___FdMpB{cursor:not-allowed;opacity:.5}.genius-sdk__BottomBar-module__recording-indicator___FwtQv{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.genius-sdk__BottomBar-module__recording-indicator___FwtQv svg{width:11px;height:14px}.genius-sdk__BottomBar-module__mic-button___klzpP{position:relative}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN.genius-sdk__BottomBar-module__muted___G3eus{background:#feeceb;border-color:#f68f88}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN.genius-sdk__BottomBar-module__muted___G3eus:hover:not(.genius-sdk__BottomBar-module__disabled___FdMpB){background:#feeceb;border-color:#f68f88}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN.genius-sdk__BottomBar-module__muted___G3eus:active:not(.genius-sdk__BottomBar-module__disabled___FdMpB){background:#feeceb;border-color:#f68f88}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN:has(.genius-sdk__BottomBar-module__mic-button___klzpP.genius-sdk__BottomBar-module__muted___G3eus){background:#feeceb;border-color:#f68f88}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN:has(.genius-sdk__BottomBar-module__mic-button___klzpP.genius-sdk__BottomBar-module__muted___G3eus):hover:not(.genius-sdk__BottomBar-module__disabled___FdMpB){background:#feeceb;border-color:#f68f88}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN:has(.genius-sdk__BottomBar-module__mic-button___klzpP.genius-sdk__BottomBar-module__muted___G3eus):active:not(.genius-sdk__BottomBar-module__disabled___FdMpB){background:#feeceb;border-color:#f68f88}.genius-sdk__BottomBar-module__mic-tooltip___yr63U,.genius-sdk__BottomBar-module__speaker-tooltip___J3r-b{position:absolute;bottom:calc(100% + 8px);right:50%;transform:translate(50%);background:#111;color:#fff;padding:4px 8px;border-radius:4px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:12px;font-weight:400;line-height:18px;white-space:nowrap;opacity:0;visibility:hidden;transition:all .2s ease;pointer-events:none;z-index:1000}.genius-sdk__BottomBar-module__mic-button___klzpP:hover .genius-sdk__BottomBar-module__mic-tooltip___yr63U,.genius-sdk__BottomBar-module__speaker-button___QsWdq:hover .genius-sdk__BottomBar-module__speaker-tooltip___J3r-b{opacity:1;visibility:visible}.genius-sdk__BottomBar-module__tooltip-arrow___pgGVw{position:absolute;bottom:-4px;right:50%;transform:translate(50%);width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #111111}@media (max-width: 640px){.genius-sdk__BottomBar-module__bottom-bar-container___BGRI7{position:fixed;bottom:30px;width:calc(100% - 24px);max-width:320px}.genius-sdk__BottomBar-module__bottom-bar-glow___A493n{width:calc(100% + 30px)}.genius-sdk__BottomBar-module__bottom-bar___XaxVJ{height:64px;width:fit-content}.genius-sdk__BottomBar-module__bar-content___6OsEK{padding:10px}.genius-sdk__BottomBar-module__bar-button___iPlFP{width:24px;height:24px}.genius-sdk__BottomBar-module__attachment-container___0Kbir,.genius-sdk__BottomBar-module__waveform-send-container___HvkWS,.genius-sdk__BottomBar-module__microphone-icon-container___qgstN{padding:10px}.genius-sdk__BottomBar-module__glow-bar___V3Qwb{height:70px}}@media (max-width: 480px){.genius-sdk__BottomBar-module__bottom-bar-container___BGRI7{position:fixed;bottom:20px;width:calc(100% - 16px);max-width:300px}.genius-sdk__BottomBar-module__bottom-bar-glow___A493n{width:calc(100% + 25px)}.genius-sdk__BottomBar-module__bottom-bar___XaxVJ{height:60px}.genius-sdk__BottomBar-module__bar-content___6OsEK{padding:8px;gap:8px}.genius-sdk__BottomBar-module__bar-button___iPlFP{width:24px;height:24px}.genius-sdk__BottomBar-module__attachment-container___0Kbir,.genius-sdk__BottomBar-module__waveform-send-container___HvkWS,.genius-sdk__BottomBar-module__microphone-icon-container___qgstN{padding:8px;gap:6px}.genius-sdk__BottomBar-module__voice-container___APP75{gap:6px}.genius-sdk__BottomBar-module__x-button___LrIa0 svg{width:10px;height:10px}.genius-sdk__BottomBar-module__waveform-send-container___HvkWS .genius-sdk__BottomBar-module__bar-button___iPlFP svg{width:13px;height:14px}.genius-sdk__BottomBar-module__microphone-icon-container___qgstN .genius-sdk__BottomBar-module__bar-button___iPlFP svg{width:12px;height:17px}.genius-sdk__BottomBar-module__recording-indicator___FwtQv{width:20px;height:20px}.genius-sdk__BottomBar-module__recording-indicator___FwtQv svg{width:9px;height:12px}.genius-sdk__BottomBar-module__glow-bar___V3Qwb{height:65px}}*{box-sizing:border-box}body{margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background:#fff;color:#111827;height:100vh;overflow:hidden;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.genius-sdk__App-module__app___ksh-Z{height:100vh;display:flex;flex-direction:column;background:#fff;position:relative}.genius-sdk__App-module__connection-manager___oCx--{display:none}.genius-sdk__App-module__simple-chat___Uql5N{z-index:1}.genius-sdk__App-module__bottom-controls___gY5P0{z-index:100}.genius-sdk__App-module__connecting-pill___ISw9M{z-index:99}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-wrapper___BtGde{position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-container___AxurG{width:100%;height:100vh;height:100dvh;background:var(--genius-background);display:flex;flex-direction:column;overflow:hidden}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-header___LZvKZ{height:64px;background:var(--genius-white);border-bottom:1px solid var(--genius-grey-100);padding:16px;display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-header-icons___nkbc4{display:flex;gap:12px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-body___Nljp1{flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;min-height:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-content___9CHzt{display:flex;gap:24px;flex-direction:column;overflow-y:auto;padding:0 0 160px;flex:1;min-height:0;-webkit-overflow-scrolling:touch}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-content___9CHzt.genius-sdk__GeniusChatbotMobile-module__single-line___-vJMf{padding-bottom:100px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-welcome___i2CC0{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 16px 20px;min-height:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-branding___z6abT{display:flex;flex-direction:column;align-items:center;gap:16px;width:270px!important}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-logo-container___BMri1{display:flex;flex-direction:column;gap:20px;align-items:center;justify-content:start;padding:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-logo___kNw8B{width:42.52px;height:42.52px;border-radius:29.7811px;background:linear-gradient(140deg,#9747ff -41.48%,#1b85ff 116.12%);box-shadow:0 0 10.993px 3.664px #e9e7ff,0 0 2.644px #fff6 inset;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;padding:11.8389px;gap:6.618px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-logo___kNw8B:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;box-shadow:0 0 2.64362px inset #fff6;border-radius:29.7811px;pointer-events:none}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-logo-icon___NOPGn{color:var(--genius-white);display:flex;align-items:center;justify-content:center}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-welcome-text___Eov4M{text-align:center;min-width:100%;width:min-content;position:relative;flex-shrink:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-welcome-title___FzkYR{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:18px;font-weight:600;color:#2b2b2b;line-height:160%;margin:0;letter-spacing:-.36px;font-style:normal;display:block}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-welcome-subtitle___P2N48{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#5f5f5f;font-size:18px;line-height:160%;margin:0;font-weight:500;letter-spacing:-.36px;font-style:normal;display:inline}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input-section___hHmrd{position:fixed;bottom:0;left:0;right:0;background:#fff;border:1px solid #ededed;border-top-left-radius:20px;border-top-right-radius:20px;box-shadow:0 1px 8px -1px #0000000a;height:140px;display:flex;flex-direction:column;justify-content:flex-start;padding:16px;padding-bottom:env(safe-area-inset-bottom,16px);z-index:1000;transform:translateZ(0)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input-container___wdwox{display:flex;flex-direction:column;gap:16px;background:transparent;border:none;padding:0;height:100%;justify-content:space-between}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input-row___uNlWm{display:flex;align-items:flex-end;justify-content:space-between;padding-bottom:24px;width:100%}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input___kMLVV{flex:1;border:none;outline:none;font-size:16px;font-weight:400;color:#454545;background:transparent;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:24px;letter-spacing:-.16px;padding:0;text-align:left;width:100%;height:24px;resize:none}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input-section___hHmrd.genius-sdk__GeniusChatbotMobile-module__single-line___-vJMf{height:80px;padding:12px 16px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input-container___wdwox.genius-sdk__GeniusChatbotMobile-module__single-line___-vJMf{flex-direction:row;align-items:center;gap:12px;height:auto;justify-content:space-between}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input___kMLVV.genius-sdk__GeniusChatbotMobile-module__single-line-input___e6KVp{height:auto;min-height:24px;max-height:24px;overflow:hidden}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input-row___uNlWm.genius-sdk__GeniusChatbotMobile-module__single-line___-vJMf{padding-bottom:0;width:auto;flex:none}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input___kMLVV::placeholder{color:#868686;font-feature-settings:"liga" off,"clig" off;font-family:Inter;font-size:16px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:-.16px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input-actions___vzTQ4{display:flex;align-items:center;gap:8px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-icon-button___cx5-N{padding:9.6px;border-radius:28.8px;border:1px solid #EDEDED;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;color:#5f5f5f;flex-shrink:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-icon-button-header___lBaEW{background:#fff;border-radius:28.8px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;color:#5f5f5f;flex-shrink:0;padding:6px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-icon-button___cx5-N:hover{background:#f5f5f5}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-icon-button___cx5-N:active{transform:scale(.95)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-icon-button___cx5-N svg{width:16.8px;height:16.8px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-send-button___OWEoN{background:#1b85ff;border:none;border-radius:27.8293px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;flex-shrink:0;color:var(--genius-white);padding:9.89487px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-send-button___OWEoN:hover{transform:scale(1.05);box-shadow:0 4px 16px #1b85ff52}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-send-button___OWEoN:active{transform:scale(.98)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-send-button___OWEoN:disabled{opacity:.5;cursor:not-allowed}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-send-button___OWEoN:disabled:hover{transform:none;box-shadow:none}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-send-button___OWEoN svg{width:16.21px;height:16.21px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-cancel-button___9yO-b{display:flex;padding:9.895px;justify-content:center;align-items:center;gap:7.421px;border-radius:27.829px;background:#2e2e2e}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-cancel-button___9yO-b:hover{background:#2e2e2e;transform:scale(1.05)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-cancel-button___9yO-b:active{transform:scale(.98)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-cancel-button___9yO-b:disabled{opacity:.5;cursor:not-allowed}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-cancel-button___9yO-b:disabled:hover{background:#fff;transform:none}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-cancel-button___9yO-b svg{width:16px;height:16px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-messages___0BV99{display:flex;flex-direction:column;gap:16px;padding:24px 16px;flex:1}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message___7dFqy{display:flex;flex-direction:column;gap:8px;animation:genius-sdk__GeniusChatbotMobile-module__fadeIn___wwyEU .3s ease-out}@keyframes genius-sdk__GeniusChatbotMobile-module__fadeIn___wwyEU{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message___7dFqy.genius-sdk__GeniusChatbotMobile-module__user___PtOAo{align-items:flex-end}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message___7dFqy.genius-sdk__GeniusChatbotMobile-module__assistant___yaDOh{align-items:flex-start}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message-content___LYxmY{max-width:85%;padding:12px 16px;border-radius:16px;font-size:16px;line-height:24px;word-wrap:break-word}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message___7dFqy.genius-sdk__GeniusChatbotMobile-module__user___PtOAo .genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message-content___LYxmY{background:var(--genius-primary-blue);color:var(--genius-white);border-bottom-right-radius:4px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message___7dFqy.genius-sdk__GeniusChatbotMobile-module__assistant___yaDOh .genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message-content___LYxmY{background:var(--genius-white);color:var(--genius-text-primary);border:1px solid var(--genius-grey-100);border-bottom-left-radius:4px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-suggestions___8Su-Y{position:fixed;bottom:140px;left:0;right:0;display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding:0 12px 16px;scrollbar-width:none;-ms-overflow-style:none;background:transparent;flex-wrap:nowrap;scroll-behavior:smooth;z-index:999}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-suggestions___8Su-Y.genius-sdk__GeniusChatbotMobile-module__single-line___-vJMf{bottom:80px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-suggestions___8Su-Y::-webkit-scrollbar{display:none}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-suggestion___-7Od1{background:#fff;border:1px solid #ededed;border-radius:12px;padding:8px 12px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:12px;font-weight:600;color:#454545;cursor:pointer;white-space:nowrap;transition:all .2s;flex-shrink:0;line-height:20px;text-align:center;display:flex;align-items:center;gap:8px;box-sizing:border-box}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-suggestion___-7Od1:hover{background:#f5f5f5;border-color:#d0d0d0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-suggestion___-7Od1:active{background:#ededed;transform:scale(.98)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-suggestion___-7Od1 svg{width:16px;height:16px;color:currentColor;flex-shrink:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-loading___812RY{display:flex;align-items:center;gap:8px;padding:12px 16px;background:var(--genius-white);border:1px solid var(--genius-grey-100);border-radius:16px 16px 16px 4px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-loading-dots___9C82M{display:flex;gap:4px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-loading-dot___kNaDD{width:8px;height:8px;background:var(--genius-grey-500);border-radius:50%;animation:genius-sdk__GeniusChatbotMobile-module__pulse___pyEhS 1.5s ease-in-out infinite}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-loading-dot___kNaDD:nth-child(2){animation-delay:.2s}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-loading-dot___kNaDD:nth-child(3){animation-delay:.4s}@keyframes genius-sdk__GeniusChatbotMobile-module__pulse___pyEhS{0%,80%,to{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-description___UBJ5A{font-family:Inter,sans-serif;font-size:14px;font-weight:400;line-height:36px;color:#5f5f5f;padding:0;display:block}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-description___UBJ5A p{margin:12px 0;line-height:36px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-description___UBJ5A br{display:block;content:"";margin:12px 0;height:12px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-description___UBJ5A br+*{margin-top:10px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-description___UBJ5A div{line-height:24px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-description___UBJ5A div+div{margin-top:8px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-description___UBJ5A>*:first-child{margin-top:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-description___UBJ5A>*:last-child{margin-bottom:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-value-pill___UVZN2{display:inline-block;background-color:#f3f4f6;color:#797979;padding:6px;margin-left:2px;margin-right:2px;border-radius:4px;font-size:12px;font-weight:500;line-height:120%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;vertical-align:middle;white-space:nowrap}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-chart-container___SFGsK{width:100%;min-height:300px;margin:12px 0;background:var(--genius-white);border-radius:12px;padding:16px;box-shadow:0 2px 8px #00000014}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-single-stat-wrapper___AvedJ{margin:12px 0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-table-wrapper___UWzSR{width:100%;overflow-x:auto;margin:12px 0;border-radius:12px;background:var(--genius-white);box-shadow:0 2px 8px #00000014}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-overlay___hW74x{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--genius-white);z-index:10000;display:flex;flex-direction:column}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-container___FJKqB{width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-header___dWTfk{height:64px;background:var(--genius-white);border-bottom:1px solid var(--genius-grey-100);padding:16px;display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-header-left___9qSbt{display:flex;align-items:center;gap:12px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-back___--HRQ{background:none;border:none;padding:8px;cursor:pointer;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-back___--HRQ:hover{background:var(--genius-grey-100)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-back___--HRQ svg{width:20px;height:20px;color:var(--genius-text-primary)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-header___dWTfk h2{margin:0;font-size:18px;font-weight:600;color:var(--genius-text-primary)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-actions___iwfPD{display:flex;align-items:center;gap:8px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-action___Pd1mQ{background:none;border:none;padding:8px;cursor:pointer;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-action___Pd1mQ:hover{background:var(--genius-grey-100)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-action___Pd1mQ svg{width:20px;height:20px;color:var(--genius-text-primary)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-list___qksvj{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-loading___FrgIf,.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-empty___p54tM{display:flex;align-items:center;justify-content:center;height:200px;color:var(--genius-text-secondary);font-size:14px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item___2Xjtc{background:var(--genius-white);border:1px solid var(--genius-grey-100);border-radius:12px;padding:16px;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:space-between;gap:12px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item___2Xjtc:hover{border-color:var(--genius-primary-blue);box-shadow:0 2px 8px #1b85ff1a}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item___2Xjtc:active{transform:translateY(1px)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-content___iOAR-{flex:1;min-width:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-title___iQMh9{font-size:14px;font-weight:500;color:var(--genius-text-primary);margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-date___uuhMZ{font-size:12px;color:var(--genius-text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-delete___kMUwr{background:none;border:none;padding:8px;cursor:pointer;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease;flex-shrink:0}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-delete___kMUwr:hover{background:#ef44441a}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-delete___kMUwr svg{width:16px;height:16px;color:var(--genius-grey-500)}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-delete___kMUwr:hover svg{color:#ef4444}@media (max-width: 375px){.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-header___dWTfk{padding:12px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-header___dWTfk h2{font-size:16px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-list___qksvj,.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item___2Xjtc{padding:12px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-title___iQMh9{font-size:13px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-date___uuhMZ{font-size:11px}}@media (max-width: 375px){.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-welcome-title___FzkYR{font-size:24px;line-height:32px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-welcome-subtitle___P2N48{font-size:16px;line-height:24px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input___kMLVV{font-size:15px}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message-content___LYxmY{font-size:15px;padding:10px 14px}}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message___nsz8K{display:flex;width:100%;position:relative;margin-bottom:16px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message___nsz8K.genius-sdk__GeniusChatbotMobile-module__user___PtOAo{justify-content:flex-end}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message___nsz8K.genius-sdk__GeniusChatbotMobile-module__user___PtOAo .genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message-bubble___mtDtI{background:#f6f6f6;border-radius:25px 25px 12px;padding:16px 20px;max-width:85%}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message___nsz8K.genius-sdk__GeniusChatbotMobile-module__user___PtOAo .genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message-content___BCtMc{font-size:16px;line-height:24px;color:#2b2b2b;font-weight:400;font-family:Inter,sans-serif;letter-spacing:-.16px;margin:0}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message___nsz8K.genius-sdk__GeniusChatbotMobile-module__assistant___yaDOh{justify-content:flex-start;align-items:flex-start;flex-direction:column;position:relative;margin-bottom:16px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message___nsz8K.genius-sdk__GeniusChatbotMobile-module__assistant___yaDOh:has(.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-thinking___dTUA-){flex-direction:row;align-items:center;gap:8px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-assistant-icon___7QK3G{width:24px;height:24px;border-radius:17.018px;background:linear-gradient(140deg,#9747ff -41.48%,#1b85ff 116.12%);box-shadow:0 0 6.282px 2.094px #e9e7ff,inset 0 0 1.511px #fff6;display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:6.77px;margin-bottom:8px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message___nsz8K.genius-sdk__GeniusChatbotMobile-module__assistant___yaDOh:has(.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-thinking___dTUA-) .genius-sdk__GeniusChatbotMobile-module__genius-dashboard-assistant-icon___7QK3G{margin-bottom:0}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-assistant-icon___7QK3G svg{width:10.47px;height:10.47px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message___nsz8K.genius-sdk__GeniusChatbotMobile-module__assistant___yaDOh .genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message-bubble___mtDtI{width:100%;display:flex;flex-direction:column;gap:16px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message___nsz8K.genius-sdk__GeniusChatbotMobile-module__assistant___yaDOh .genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message-content___BCtMc{font-size:16px;line-height:175%;color:#1e1e1e;font-weight:400;font-family:Inter,sans-serif;margin:0}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-thinking___dTUA-{display:flex;align-items:center;font-size:14px;color:#2b2b2b;font-family:Inter,sans-serif}@keyframes genius-sdk__GeniusChatbotMobile-module__ellipsis___w22gP{to{width:1.25em}}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-thinking___dTUA-:after{content:"...";overflow:hidden;display:inline-block;vertical-align:bottom;animation:genius-sdk__GeniusChatbotMobile-module__ellipsis___w22gP 1.5s infinite;width:0px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-action-buttons___GaJiS{display:flex;align-items:center;margin-top:8px;gap:0}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-like-button-inline___TXDtg{padding:8px 8px 8px 0;border:none;border-radius:6px;background:transparent!important;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .2s ease}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-like-button-inline___TXDtg:hover:not(:disabled){background:transparent!important;opacity:.7}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-like-button-inline___TXDtg:disabled{cursor:default;opacity:1}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-like-button-inline___TXDtg svg{width:16px;height:16px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-dislike-button-inline___CKeEV{padding:8px;border:none;border-radius:6px;background:transparent!important;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .2s ease}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-dislike-button-inline___CKeEV:hover:not(:disabled){background:transparent!important;opacity:.7}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-dislike-button-inline___CKeEV:disabled{cursor:default;opacity:1}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-dislike-button-inline___CKeEV svg{width:16px;height:16px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-retry-button-inline___E7tHQ{padding:8px;border:none;border-radius:6px;background:transparent!important;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .2s ease}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-retry-button-inline___E7tHQ:hover{background:transparent!important;opacity:.7}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-retry-button-inline___E7tHQ svg{width:16px;height:16px}.genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message-content-wrapper___x7mri{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-feedback-overlay___-z7Nq{position:relative;width:100%;height:100%;background:#fff;z-index:10;display:flex;flex-direction:column}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-close-voice-button___GW-6U{position:relative;background:#fff;border:1px solid #e1e1e1;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px #0000001a;transition:all .2s ease}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-close-voice-button___GW-6U:hover{transform:scale(1.05);box-shadow:0 4px 12px #00000026}.genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-close-voice-button___GW-6U:active{transform:scale(.98)}.genius-sdk__GeniusChatbotMobile-module__genius-voice-assistant-wrapper___F95Pz{width:100%;height:100%;display:flex;flex-direction:column;position:relative;overflow:hidden}.genius-sdk__GeniusChatbotMobile-module__voice-wave___lDwzB{width:12px;background:linear-gradient(180deg,#dbe2ef66,#dbe2efcc);border-radius:6px;animation:genius-sdk__GeniusChatbotMobile-module__voice-wave___lDwzB 1.2s ease-in-out infinite}@keyframes genius-sdk__GeniusChatbotMobile-module__voice-wave___lDwzB{0%,60%,to{transform:scaleY(.5);opacity:.4}30%{transform:scaleY(1);opacity:.8}}.genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar___nyyKk{width:11px;border-radius:10px;flex-shrink:0;background-color:#e8f3ff;transition:background-color .3s ease}.genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar___nyyKk.genius-sdk__GeniusChatbotMobile-module__active___ddjbF{background-color:#499dff}.genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar-1___ZqSIE{height:23px;animation:genius-sdk__GeniusChatbotMobile-module__fluidWave1___i4CT5 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar-2___S0vvy{height:75px;animation:genius-sdk__GeniusChatbotMobile-module__fluidWave2___aqgUd 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar-3___Afm6f{height:55px;animation:genius-sdk__GeniusChatbotMobile-module__fluidWave3___5goXJ 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar-4___PGea4{height:23px;animation:genius-sdk__GeniusChatbotMobile-module__fluidWave4___RL0Wp 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar-5___9u-cU{height:75px;animation:genius-sdk__GeniusChatbotMobile-module__fluidWave5___R4EL6 2s cubic-bezier(.4,0,.6,1) infinite}.genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar-6___pTE2R{height:19px;animation:genius-sdk__GeniusChatbotMobile-module__fluidWave6___LXEtg 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes genius-sdk__GeniusChatbotMobile-module__fluidWave1___i4CT5{0%{background-color:#499dff}8%{background-color:#6ba8ff}16%{background-color:#8bb4ff}25%{background-color:#abc0ff}33%{background-color:#cbccff}41%{background-color:#e8f3ff}50%{background-color:#e8f3ff}58%{background-color:#cbccff}66%{background-color:#abc0ff}75%{background-color:#8bb4ff}83%{background-color:#6ba8ff}91%{background-color:#499dff}95%{background-color:#e8f3ff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotMobile-module__fluidWave2___aqgUd{0%{background-color:#e8f3ff}4%{background-color:#499dff}12%{background-color:#6ba8ff}20%{background-color:#8bb4ff}29%{background-color:#abc0ff}37%{background-color:#cbccff}45%{background-color:#e8f3ff}54%{background-color:#e8f3ff}62%{background-color:#cbccff}70%{background-color:#abc0ff}79%{background-color:#8bb4ff}87%{background-color:#6ba8ff}95%{background-color:#499dff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotMobile-module__fluidWave3___5goXJ{0%{background-color:#e8f3ff}8%{background-color:#e8f3ff}16%{background-color:#499dff}24%{background-color:#6ba8ff}33%{background-color:#8bb4ff}41%{background-color:#abc0ff}49%{background-color:#cbccff}58%{background-color:#e8f3ff}66%{background-color:#e8f3ff}74%{background-color:#cbccff}83%{background-color:#abc0ff}91%{background-color:#8bb4ff}99%{background-color:#6ba8ff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotMobile-module__fluidWave4___RL0Wp{0%{background-color:#e8f3ff}12%{background-color:#e8f3ff}20%{background-color:#499dff}28%{background-color:#6ba8ff}37%{background-color:#8bb4ff}45%{background-color:#abc0ff}53%{background-color:#cbccff}62%{background-color:#e8f3ff}70%{background-color:#e8f3ff}78%{background-color:#cbccff}87%{background-color:#abc0ff}95%{background-color:#8bb4ff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotMobile-module__fluidWave5___R4EL6{0%{background-color:#e8f3ff}16%{background-color:#e8f3ff}24%{background-color:#499dff}32%{background-color:#6ba8ff}41%{background-color:#8bb4ff}49%{background-color:#abc0ff}57%{background-color:#cbccff}66%{background-color:#e8f3ff}74%{background-color:#e8f3ff}82%{background-color:#cbccff}91%{background-color:#abc0ff}99%{background-color:#8bb4ff}to{background-color:#e8f3ff}}@keyframes genius-sdk__GeniusChatbotMobile-module__fluidWave6___LXEtg{0%{background-color:#e8f3ff}20%{background-color:#e8f3ff}28%{background-color:#499dff}36%{background-color:#6ba8ff}45%{background-color:#8bb4ff}53%{background-color:#abc0ff}61%{background-color:#cbccff}70%{background-color:#e8f3ff}78%{background-color:#e8f3ff}86%{background-color:#cbccff}95%{background-color:#abc0ff}96%{background-color:#8bb4ff}97%{background-color:#6ba8ff}98%{background-color:#499dff}to{background-color:#499dff}}:root{--genius-primary-blue: #1B85FF;--genius-grey-600: #8A8A8E;--genius-grey-500: #9C9C9F;--genius-grey-200: #E0E0E0;--genius-grey-100: #EDEDED;--genius-text-primary: #1c1c1c;--genius-text-secondary: #5f5f5f;--genius-white: #ffffff;--genius-background: #fcfcfc}.genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q{position:fixed;z-index:9999;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q.genius-sdk__GeniusChatbot-module__bottom-right___1B1-1{bottom:20px;right:20px}.genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q.genius-sdk__GeniusChatbot-module__bottom-left___jW0dZ{bottom:20px;left:20px}.genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q.genius-sdk__GeniusChatbot-module__center___z23Ni{top:50%;left:50%;transform:translate(-50%,-50%)}.genius-sdk__GeniusChatbot-module__genius-chatbot-container___-1AXk{width:440px;height:680px;border-radius:12px;background:var(--genius-white);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 0 0 1px #0000000d,0 8px 24px #0000001f;border:1px solid rgba(0,0,0,.05);transition:all .3s ease}.genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q.genius-sdk__GeniusChatbot-module__expanded___egMCL .genius-sdk__GeniusChatbot-module__genius-chatbot-container___-1AXk{width:50vw;max-width:900px;min-width:600px}.genius-sdk__GeniusChatbot-module__genius-chatbot-header___KYNml{height:48px;background:var(--genius-white);border-bottom:1px solid var(--genius-grey-100);padding:8px 16px;display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.genius-sdk__GeniusChatbot-module__genius-chatbot-header-icons___eyLdP{display:flex;gap:12px}.genius-sdk__GeniusChatbot-module__genius-chatbot-icon-button___nbVeQ{background:none;border:none;padding:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background-color .2s;color:var(--genius-grey-600)}.genius-sdk__GeniusChatbot-module__genius-chatbot-icon-button___nbVeQ:hover{background-color:#0000000d}.genius-sdk__GeniusChatbot-module__genius-chatbot-icon___JlAuk{width:16px;height:16px;display:flex;align-items:center;justify-content:center}.genius-sdk__GeniusChatbot-module__genius-chatbot-icon___JlAuk svg{width:16px;height:16px}.genius-sdk__GeniusChatbot-module__genius-chatbot-body___-0tRl{flex:1;background:var(--genius-background);display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;padding:0 24px 24px;position:relative}.genius-sdk__GeniusChatbot-module__genius-chatbot-content___64G3h{display:flex;flex-direction:column;gap:16px;height:100%;justify-content:flex-end}.genius-sdk__GeniusChatbot-module__genius-chatbot-branding___pISkM{display:flex;flex-direction:column;align-items:center;gap:16px;margin-top:auto;margin-bottom:auto}.genius-sdk__GeniusChatbot-module__genius-chatbot-logo-container___7Gxbj{display:flex;flex-direction:column;gap:16px;align-items:center}.genius-sdk__GeniusChatbot-module__genius-chatbot-logo___bcUEi{width:40px;height:40px;border-radius:50%;background:radial-gradient(circle at center,#9747ff,#1b85ff);display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 4px 12px rgba(99,72,255,.28))}.genius-sdk__GeniusChatbot-module__genius-chatbot-logo-icon___vSlku{width:12px;height:12px;color:var(--genius-white);display:flex;align-items:center;justify-content:center}.genius-sdk__GeniusChatbot-module__genius-chatbot-logo-icon___vSlku svg{width:12px;height:12px;fill:currentColor}.genius-sdk__GeniusChatbot-module__genius-chatbot-welcome___uZmtS{text-align:center;max-width:280px}.genius-sdk__GeniusChatbot-module__genius-chatbot-welcome-title___-tIN4{font-size:20px;font-weight:600;color:var(--genius-text-primary);line-height:26px;margin:0 0 4px}.genius-sdk__GeniusChatbot-module__genius-chatbot-welcome-emoji___zrXfE{margin-left:4px}.genius-sdk__GeniusChatbot-module__genius-chatbot-welcome-subtitle___ipNy2{color:var(--genius-text-secondary);font-size:16px;line-height:24px;margin:0;font-weight:400}.genius-sdk__GeniusChatbot-module__genius-chatbot-messages-container___lTB-Z{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:16px 0;scroll-behavior:smooth;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.genius-sdk__GeniusChatbot-module__genius-chatbot-messages-container___lTB-Z::-webkit-scrollbar{width:6px}.genius-sdk__GeniusChatbot-module__genius-chatbot-messages-container___lTB-Z::-webkit-scrollbar-track{background:transparent}.genius-sdk__GeniusChatbot-module__genius-chatbot-messages-container___lTB-Z::-webkit-scrollbar-thumb{background:#0003;border-radius:3px}.genius-sdk__GeniusChatbot-module__genius-chatbot-messages-container___lTB-Z::-webkit-scrollbar-thumb:hover{background:#0000004d}.genius-sdk__GeniusChatbot-module__genius-chatbot-messages-container___lTB-Z{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.2) transparent}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9{max-width:80%;padding:12px 16px;border-radius:16px;font-size:14px;line-height:1.5}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp{align-self:flex-end;background:var(--genius-primary-blue);color:var(--genius-white)}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__assistant___ZGPHW{align-self:flex-start;background:var(--genius-white);color:var(--genius-text-primary);border:1px solid #e3e3e3}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA{margin-bottom:0}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA p{margin:0 0 8px}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA p:last-child{margin-bottom:0}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA ul,.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA ol{margin:8px 0;padding-left:20px}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA li{margin:4px 0;word-wrap:break-word;overflow-wrap:break-word}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA code{background:#f5f5f5;padding:2px 4px;border-radius:3px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.9em;color:#333;word-break:break-all;overflow-wrap:break-word}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp .genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA code{background:#fff3;color:var(--genius-white)}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA pre{background:#f5f5f5;padding:12px;border-radius:6px;overflow-x:auto;margin:8px 0;border:1px solid #e0e0e0}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp .genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA pre{background:#ffffff1a;border:1px solid rgba(255,255,255,.2)}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA pre code{background:none;padding:0;color:#333;display:block;white-space:pre;overflow-x:auto}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp .genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA pre code{color:var(--genius-white)}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA strong{font-weight:600}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA em{font-style:italic}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA blockquote{border-left:3px solid var(--genius-grey-200);padding-left:12px;margin:8px 0;color:var(--genius-text-secondary)}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp .genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA blockquote{border-left-color:#ffffff80;color:#ffffffe6}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h1,.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h2,.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h3,.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h4,.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h5,.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h6{margin:12px 0 8px;font-weight:600}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h1{font-size:1.3em}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h2{font-size:1.2em}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h3{font-size:1.1em}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h4{font-size:1.05em}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h5{font-size:1em}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA h6{font-size:.95em}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA a{color:var(--genius-primary-blue);text-decoration:underline}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp .genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA a{color:var(--genius-white)}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA hr{border:none;border-top:1px solid var(--genius-grey-200);margin:12px 0}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp .genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA hr{border-top-color:#ffffff4d}.genius-sdk__GeniusChatbot-module__genius-chatbot-table-wrapper___fK97m{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:8px 0;border-radius:6px;border:1px solid var(--genius-grey-100)}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA table{border-collapse:collapse;min-width:100%;margin:0}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA th,.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA td{border:1px solid var(--genius-grey-200);padding:8px 12px;text-align:left;vertical-align:top;min-width:150px}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA td{white-space:normal;word-wrap:break-word}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA th{white-space:nowrap}.genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA th{background:#0000000d;font-weight:600;position:sticky;top:0;z-index:1}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp .genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA th,.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp .genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA td{border-color:#ffffff4d}.genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9.genius-sdk__GeniusChatbot-module__user___HfIkp .genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA th{background:#ffffff1a}.genius-sdk__GeniusChatbot-module__genius-chatbot-table-wrapper___fK97m::-webkit-scrollbar{height:8px}.genius-sdk__GeniusChatbot-module__genius-chatbot-table-wrapper___fK97m::-webkit-scrollbar-track{background:var(--genius-grey-100);border-radius:4px}.genius-sdk__GeniusChatbot-module__genius-chatbot-table-wrapper___fK97m::-webkit-scrollbar-thumb{background:var(--genius-grey-500);border-radius:4px}.genius-sdk__GeniusChatbot-module__genius-chatbot-table-wrapper___fK97m::-webkit-scrollbar-thumb:hover{background:var(--genius-grey-600)}.genius-sdk__GeniusChatbot-module__genius-chatbot-table-wrapper___fK97m{position:relative;background:linear-gradient(to right,#fff 30%,#fff0),linear-gradient(to right,#fff0,#fff 70%) 100% 0,radial-gradient(farthest-side at 0% 50%,rgba(0,0,0,.1),transparent),radial-gradient(farthest-side at 100% 50%,rgba(0,0,0,.1),transparent) 100% 0;background-repeat:no-repeat;background-size:40px 100%,40px 100%,14px 100%,14px 100%;background-position:0 0,100%,0 0,100%;background-attachment:local,local,scroll,scroll}.genius-sdk__GeniusChatbot-module__genius-chatbot-sources___FeMnB{margin-top:12px;padding-top:12px;border-top:1px solid var(--genius-grey-100)}button.genius-sdk__GeniusChatbot-module__genius-chatbot-sources-header___faf7D{display:flex;align-items:center;gap:6px;color:var(--genius-grey-600);font-size:12px;font-weight:500;margin-bottom:8px;background:none;border:none;cursor:pointer;padding:0;width:100%;text-align:left;transition:color .2s ease}button.genius-sdk__GeniusChatbot-module__genius-chatbot-sources-header___faf7D:hover{color:var(--genius-primary-blue)}.genius-sdk__GeniusChatbot-module__genius-chatbot-sources-header___faf7D svg{color:var(--genius-grey-500)}.genius-sdk__GeniusChatbot-module__genius-chatbot-sources-chevron___UbDbJ{margin-left:auto}.genius-sdk__GeniusChatbot-module__genius-chatbot-sources-list___R8Ido{display:flex;flex-direction:column;gap:6px;animation:genius-sdk__GeniusChatbot-module__slideIn___0VmGW .2s ease-out}@keyframes genius-sdk__GeniusChatbot-module__slideIn___0VmGW{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.genius-sdk__GeniusChatbot-module__genius-chatbot-source-item___lgwoi{display:flex;align-items:flex-start;gap:8px;padding:6px 8px;background:#1b85ff0d;border-radius:6px;transition:background .2s ease}.genius-sdk__GeniusChatbot-module__genius-chatbot-source-item___lgwoi:hover{background:#1b85ff1a}.genius-sdk__GeniusChatbot-module__genius-chatbot-source-number___5MEOF{display:flex;align-items:center;justify-content:center;width:18px;height:18px;background:var(--genius-primary-blue);color:var(--genius-white);border-radius:50%;font-size:10px;font-weight:600;flex-shrink:0}.genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN{font-family:Inter,sans-serif;font-size:14px;font-weight:400;line-height:36px;color:#5f5f5f;padding:0;display:block}.genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN p{margin:12px 0;line-height:36px}.genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN br{display:block;content:"";margin:12px 0;height:12px}.genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN br+*{margin-top:10px}.genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN div{line-height:24px}.genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN div+div{margin-top:8px}.genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN>*:first-child{margin-top:0}.genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN>*:last-child{margin-bottom:0}.genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN span,.genius-sdk__GeniusChatbot-module__genius-dashboard-value-pill___EH-fb{display:inline-block;background-color:#f3f4f6;color:#797979;padding:6px;margin-left:2px;margin-right:2px;border-radius:4px;font-size:12px;font-weight:500;line-height:120%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;vertical-align:middle;white-space:nowrap}.genius-sdk__GeniusChatbot-module__genius-chatbot-source-content___8DpLR{flex:1;min-width:0}.genius-sdk__GeniusChatbot-module__genius-chatbot-source-title___rmRJp{font-size:12px;font-weight:500;color:var(--genius-text-primary);line-height:1.3;word-break:break-word}.genius-sdk__GeniusChatbot-module__genius-chatbot-source-uri___QZVuP{font-size:11px;color:var(--genius-grey-600);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.genius-sdk__GeniusChatbot-module__genius-chatbot-scroll-button___sHadA{position:absolute;bottom:180px;right:24px;width:36px;height:36px;background:var(--genius-white);border:1px solid var(--genius-grey-200);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px #0000001a;transition:all .2s ease;color:var(--genius-grey-600);z-index:10}.genius-sdk__GeniusChatbot-module__genius-chatbot-scroll-button___sHadA:hover{background:var(--genius-primary-blue);color:var(--genius-white);border-color:var(--genius-primary-blue);transform:translateY(-2px);box-shadow:0 4px 12px #1b85ff4d}.genius-sdk__GeniusChatbot-module__genius-chatbot-scroll-button___sHadA:active{transform:translateY(0)}.genius-sdk__GeniusChatbot-module__genius-chatbot-input-section___qlp-I{display:flex;flex-direction:column;gap:24px}.genius-sdk__GeniusChatbot-module__genius-chatbot-suggestions___ewgwd{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none}.genius-sdk__GeniusChatbot-module__genius-chatbot-suggestions___ewgwd::-webkit-scrollbar{display:none}.genius-sdk__GeniusChatbot-module__genius-chatbot-suggestion___Syi1o{background:var(--genius-white);border:1px solid var(--genius-grey-200);border-radius:20px;padding:8px 12px;font-size:14px;font-weight:500;color:var(--genius-text-primary);cursor:pointer;white-space:nowrap;transition:all .2s;flex-shrink:0;line-height:20px}.genius-sdk__GeniusChatbot-module__genius-chatbot-suggestion___Syi1o:hover{background:#2f6bff14;border-color:var(--genius-grey-200)}.genius-sdk__GeniusChatbot-module__genius-chatbot-input-container___U-16F{background:var(--genius-white);border:1.5px solid var(--genius-grey-200);border-radius:20px;transition:all .2s;position:relative;box-shadow:0 1px 8px -1px #0000000a}.genius-sdk__GeniusChatbot-module__genius-chatbot-input-container___U-16F:focus-within{border-color:var(--genius-primary-blue)}.genius-sdk__GeniusChatbot-module__genius-chatbot-input-content___5qw6w{display:flex;flex-direction:column;gap:12px;padding:16px}.genius-sdk__GeniusChatbot-module__genius-chatbot-input-row___ZSuJF{display:flex;align-items:center;gap:4px}.genius-sdk__GeniusChatbot-module__genius-chatbot-input-actions___EilGU{display:flex;justify-content:flex-end}.genius-sdk__GeniusChatbot-module__genius-chatbot-input___xVIEY{flex:1;border:none;outline:none;font-size:15px;font-weight:500;color:var(--genius-text-primary);background:transparent;font-family:inherit;line-height:24px;letter-spacing:-.15px}.genius-sdk__GeniusChatbot-module__genius-chatbot-input___xVIEY::placeholder{color:#838383;font-weight:500}.genius-sdk__GeniusChatbot-module__genius-chatbot-send-button___GIS7-{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important;background:var(--genius-primary-blue);border:none;border-radius:50%;padding:0!important;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;flex-shrink:0}.genius-sdk__GeniusChatbot-module__genius-chatbot-send-button___GIS7-:hover{transform:scale(1.04);box-shadow:0 4px 12px #2f6bff52}.genius-sdk__GeniusChatbot-module__genius-chatbot-send-button___GIS7-:active{transform:scale(.98)}.genius-sdk__GeniusChatbot-module__genius-chatbot-send-button___GIS7-:focus{outline:2px solid var(--genius-primary-blue);outline-offset:2px}.genius-sdk__GeniusChatbot-module__genius-chatbot-send-button___GIS7-:focus-visible{outline:2px solid var(--genius-primary-blue);outline-offset:2px}.genius-sdk__GeniusChatbot-module__genius-chatbot-send-icon___hFQPD{width:18px;height:18px;color:var(--genius-white);display:flex;align-items:center;justify-content:center}.genius-sdk__GeniusChatbot-module__genius-chatbot-send-icon___hFQPD svg[viewBox="0 0 16 16"]{width:14.41px;height:14.41px}.genius-sdk__GeniusChatbot-module__genius-chatbot-send-icon___hFQPD svg[viewBox="0 0 18 18"]{width:18px;height:18px}.genius-sdk__GeniusChatbot-module__genius-chatbot-send-icon___hFQPD svg rect,.genius-sdk__GeniusChatbot-module__genius-chatbot-send-icon___hFQPD svg path{fill:currentColor}@media (max-width: 768px){.genius-sdk__GeniusChatbot-module__genius-chatbot-container___-1AXk{width:100vw;height:100vh;max-width:440px;max-height:680px;border-radius:0}.genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q.genius-sdk__GeniusChatbot-module__expanded___egMCL .genius-sdk__GeniusChatbot-module__genius-chatbot-container___-1AXk{width:100vw;max-width:100vw;min-width:unset}.genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q.genius-sdk__GeniusChatbot-module__bottom-right___1B1-1,.genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q.genius-sdk__GeniusChatbot-module__bottom-left___jW0dZ{bottom:0;right:0;left:0}.genius-sdk__GeniusChatbot-module__genius-chatbot-suggestions___ewgwd{flex-wrap:wrap}.genius-sdk__GeniusChatbot-module__genius-chatbot-header-icons___eyLdP>button:first-child{display:none!important}.genius-sdk__GeniusChatbot-module__genius-chatbot-sources___FeMnB{margin-top:10px;padding-top:10px}.genius-sdk__GeniusChatbot-module__genius-chatbot-source-item___lgwoi{padding:5px 6px}.genius-sdk__GeniusChatbot-module__genius-chatbot-source-title___rmRJp{font-size:11px}.genius-sdk__GeniusChatbot-module__genius-chatbot-source-uri___QZVuP{font-size:10px}}@media (min-width: 768px) and (max-width: 1200px){.genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q.genius-sdk__GeniusChatbot-module__expanded___egMCL .genius-sdk__GeniusChatbot-module__genius-chatbot-container___-1AXk{width:60vw}}.genius-sdk__GeniusToggle-module__genius-toggle-button___-vqMH{display:flex;flex-direction:row;align-items:center;gap:8px;padding:12px 14px;background:linear-gradient(163.417deg,#9747ff 41.482%,#1b85ff 116.12%);border:none;border-radius:27px;box-shadow:inset 0 0 2.39674px #fff6,0 4px 12px #6348ff47;cursor:pointer;transition:all .2s ease;z-index:9998;outline:none;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;pointer-events:auto}.genius-sdk__GeniusToggle-module__genius-toggle-button___-vqMH:hover{transform:scale(1.05);box-shadow:inset 0 0 2.39674px #fff6,0 6px 16px #6348ff59}.genius-sdk__GeniusToggle-module__genius-toggle-button___-vqMH:active{transform:scale(.98)}.genius-sdk__GeniusToggle-module__genius-toggle-button___-vqMH:focus{outline:2px solid #1B85FF;outline-offset:2px}.genius-sdk__GeniusToggle-module__genius-toggle-button___-vqMH:focus-visible{outline:2px solid #1B85FF;outline-offset:2px}.genius-sdk__GeniusToggle-module__genius-toggle-text___t-WaO{font-size:18px;font-weight:600;line-height:20px;color:#fff;letter-spacing:-.36px;white-space:nowrap}.genius-sdk__GeniusToggle-module__genius-toggle-logo___NwizJ{width:16px;height:16px;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}.genius-sdk__GeniusToggle-module__genius-toggle-logo___NwizJ svg{width:16px;height:16px}body:has(.genius-sdk__GeniusToggle-module__genius-toggle-button___-vqMH):not(:has(.genius-sdk__GeniusToggle-module__genius-dashboard-container___LAShH)):not(:has(.genius-sdk__GeniusToggle-module__genius-chatbot-mobile-container___G-u6K)){overflow:auto!important;position:static!important;height:auto!important}@media (max-width: 768px){.genius-sdk__GeniusToggle-module__genius-toggle-button___-vqMH{transform:translateZ(0);will-change:transform;contain:layout style paint}body{overflow:auto!important;-webkit-overflow-scrolling:touch!important;position:static!important}}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
2
|
(function($i,Ue){typeof exports=="object"&&typeof module<"u"?Ue(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],Ue):($i=typeof globalThis<"u"?globalThis:$i||self,Ue($i.GeniusSDK={},$i.React,$i.ReactDOM))})(this,function($i,Ue,cd){"use strict";var X9=Object.defineProperty;var Z9=($i,Ue,cd)=>Ue in $i?X9($i,Ue,{enumerable:!0,configurable:!0,writable:!0,value:cd}):$i[Ue]=cd;var qn=($i,Ue,cd)=>Z9($i,typeof Ue!="symbol"?Ue+"":Ue,cd);var Vx;function qg(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var nb={exports:{}},Yg={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.js
|
|
@@ -110,22 +110,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
110
110
|
* https://github.com/lancedikson/bowser
|
|
111
111
|
* MIT License | (c) Dustin Diaz 2012-2015
|
|
112
112
|
* MIT License | (c) Denis Demchenko 2015-2019
|
|
113
|
-
*/class y7{static getParser(i,r=!1){if(typeof i!="string")throw new Error("UserAgent should be a string");return new I3(i,r)}static parse(i){return new I3(i).getResult()}static get BROWSER_MAP(){return V3}static get ENGINE_MAP(){return Vc}static get OS_MAP(){return Ka}static get PLATFORMS_MAP(){return Gi}}function Ab(){return Date.now()+Math.random().toString()}function am(){throw new Error("Method must be implemented in subclass")}function q3(o,i){return i!=null&&i.proxyUrl?i.proxyUrl+(i.proxyUrl.slice(-1)==="/"?"":"/")+o.substring(8):o}function Eb(o){return o!=null&&o.callObjectBundleUrlOverride?o.callObjectBundleUrlOverride:q3("https://c.daily.co/call-machine/versioned/".concat("0.77.0","/static/call-machine-object-bundle.js"),o)}function Db(o){try{new URL(o)}catch{return!1}return!0}const gi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,gd="8.55.0",Wn=globalThis;function Ob(o,i,r){const c=Wn,d=c.__SENTRY__=c.__SENTRY__||{},f=d[gd]=d[gd]||{};return f[o]||(f[o]=i())}const md=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,N2=["debug","info","warn","error","log","assert","trace"],jb={};function sm(o){if(!("console"in Wn))return o();const i=Wn.console,r={},c=Object.keys(jb);c.forEach(d=>{const f=jb[d];r[d]=i[d],i[d]=f});try{return o()}finally{c.forEach(d=>{i[d]=r[d]})}}const
|
|
113
|
+
*/class y7{static getParser(i,r=!1){if(typeof i!="string")throw new Error("UserAgent should be a string");return new I3(i,r)}static parse(i){return new I3(i).getResult()}static get BROWSER_MAP(){return V3}static get ENGINE_MAP(){return Vc}static get OS_MAP(){return Ka}static get PLATFORMS_MAP(){return Gi}}function Ab(){return Date.now()+Math.random().toString()}function am(){throw new Error("Method must be implemented in subclass")}function q3(o,i){return i!=null&&i.proxyUrl?i.proxyUrl+(i.proxyUrl.slice(-1)==="/"?"":"/")+o.substring(8):o}function Eb(o){return o!=null&&o.callObjectBundleUrlOverride?o.callObjectBundleUrlOverride:q3("https://c.daily.co/call-machine/versioned/".concat("0.77.0","/static/call-machine-object-bundle.js"),o)}function Db(o){try{new URL(o)}catch{return!1}return!0}const gi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,gd="8.55.0",Wn=globalThis;function Ob(o,i,r){const c=Wn,d=c.__SENTRY__=c.__SENTRY__||{},f=d[gd]=d[gd]||{};return f[o]||(f[o]=i())}const md=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,N2=["debug","info","warn","error","log","assert","trace"],jb={};function sm(o){if(!("console"in Wn))return o();const i=Wn.console,r={},c=Object.keys(jb);c.forEach(d=>{const f=jb[d];r[d]=i[d],i[d]=f});try{return o()}finally{c.forEach(d=>{i[d]=r[d]})}}const dn=Ob("logger",function(){let o=!1;const i={enable:()=>{o=!0},disable:()=>{o=!1},isEnabled:()=>o};return md?N2.forEach(r=>{i[r]=(...c)=>{o&&sm(()=>{Wn.console[r](`Sentry Logger [${r}]:`,...c)})}}):N2.forEach(r=>{i[r]=()=>{}}),i}),yd="?",Y3=/\(error: (.*)\)/,F3=/captureMessage|captureException/;function Lb(o){return o[o.length-1]||{}}const X3="<anonymous>";function Ic(o){try{return o&&typeof o=="function"&&o.name||X3}catch{return X3}}function Z3(o){const i=o.exception;if(i){const r=[];try{return i.values.forEach(c=>{c.stacktrace.frames&&r.push(...c.stacktrace.frames)}),r}catch{return}}}const Rb={},Q3={};function bd(o,i){Rb[o]=Rb[o]||[],Rb[o].push(i)}function vd(o,i){if(!Q3[o]){Q3[o]=!0;try{i()}catch(r){md&&dn.error(`Error while instrumenting ${o}`,r)}}}function nr(o,i){const r=o&&Rb[o];if(r)for(const c of r)try{c(i)}catch(d){md&&dn.error(`Error while triggering instrumentation handler.
|
|
114
114
|
Type: ${o}
|
|
115
115
|
Name: ${Ic(c)}
|
|
116
|
-
Error:`,d)}}let z2=null;function b7(){z2=Wn.onerror,Wn.onerror=function(o,i,r,c,d){return nr("error",{column:c,error:d,line:r,msg:o,url:i}),!!z2&&z2.apply(this,arguments)},Wn.onerror.__SENTRY_INSTRUMENTED__=!0}let B2=null;function v7(){B2=Wn.onunhandledrejection,Wn.onunhandledrejection=function(o){return nr("unhandledrejection",o),!B2||B2.apply(this,arguments)},Wn.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Nb(){return U2(Wn),Wn}function U2(o){const i=o.__SENTRY__=o.__SENTRY__||{};return i.version=i.version||gd,i[gd]=i[gd]||{}}const W3=Object.prototype.toString;function H2(o){switch(W3.call(o)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return xd(o,Error)}}function mf(o,i){return W3.call(o)===`[object ${i}]`}function J3(o){return mf(o,"ErrorEvent")}function K3(o){return mf(o,"DOMError")}function Ll(o){return mf(o,"String")}function $2(o){return typeof o=="object"&&o!==null&&"__sentry_template_string__"in o&&"__sentry_template_values__"in o}function G2(o){return o===null||$2(o)||typeof o!="object"&&typeof o!="function"}function yf(o){return mf(o,"Object")}function zb(o){return typeof Event<"u"&&xd(o,Event)}function Bb(o){return!!(o&&o.then&&typeof o.then=="function")}function xd(o,i){try{return o instanceof i}catch{return!1}}function eC(o){return!(typeof o!="object"||o===null||!o.__isVue&&!o._isVue)}const P2=Wn;function tC(o,i={}){if(!o)return"<unknown>";try{let r=o;const c=5,d=[];let f=0,y=0;const x=" > ",v=x.length;let S;const j=Array.isArray(i)?i:i.keyAttrs,B=!Array.isArray(i)&&i.maxStringLength||80;for(;r&&f++<c&&(S=x7(r,j),!(S==="html"||f>1&&y+d.length*v+S.length>=B));)d.push(S),y+=S.length,r=r.parentNode;return d.reverse().join(x)}catch{return"<unknown>"}}function x7(o,i){const r=o,c=[];if(!r||!r.tagName)return"";if(P2.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}c.push(r.tagName.toLowerCase());const d=i&&i.length?i.filter(y=>r.getAttribute(y)).map(y=>[y,r.getAttribute(y)]):null;if(d&&d.length)d.forEach(y=>{c.push(`[${y[0]}="${y[1]}"]`)});else{r.id&&c.push(`#${r.id}`);const y=r.className;if(y&&Ll(y)){const x=y.split(/\s+/);for(const v of x)c.push(`.${v}`)}}const f=["aria-label","type","name","title","alt"];for(const y of f){const x=r.getAttribute(y);x&&c.push(`[${y}="${x}"]`)}return c.join("")}function bf(o,i=0){return typeof o!="string"||i===0||o.length<=i?o:`${o.slice(0,i)}...`}function nC(o,i){if(!Array.isArray(o))return"";const r=[];for(let c=0;c<o.length;c++){const d=o[c];try{eC(d)?r.push("[VueViewModel]"):r.push(String(d))}catch{r.push("[value cannot be serialized]")}}return r.join(i)}function _7(o,i,r=!1){return!!Ll(o)&&(mf(i,"RegExp")?i.test(o):!!Ll(i)&&(r?o===i:o.includes(i)))}function Ub(o,i=[],r=!1){return i.some(c=>_7(o,c,r))}function Gs(o,i,r){if(!(i in o))return;const c=o[i],d=r(c);typeof d=="function"&&iC(d,c);try{o[i]=d}catch{md&&un.log(`Failed to replace method "${i}" in object`,o)}}function _d(o,i,r){try{Object.defineProperty(o,i,{value:r,writable:!0,configurable:!0})}catch{md&&un.log(`Failed to add non-enumerable property "${i}" to object`,o)}}function iC(o,i){try{const r=i.prototype||{};o.prototype=i.prototype=r,_d(o,"__sentry_original__",i)}catch{}}function V2(o){return o.__sentry_original__}function aC(o){if(H2(o))return{message:o.message,name:o.name,stack:o.stack,...oC(o)};if(zb(o)){const i={type:o.type,target:sC(o.target),currentTarget:sC(o.currentTarget),...oC(o)};return typeof CustomEvent<"u"&&xd(o,CustomEvent)&&(i.detail=o.detail),i}return o}function sC(o){try{return i=o,typeof Element<"u"&&xd(i,Element)?tC(o):Object.prototype.toString.call(o)}catch{return"<unknown>"}var i}function oC(o){if(typeof o=="object"&&o!==null){const i={};for(const r in o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o[r]);return i}return{}}function lo(o){return I2(o,new Map)}function I2(o,i){if(function(r){if(!yf(r))return!1;try{const c=Object.getPrototypeOf(r).constructor.name;return!c||c==="Object"}catch{return!0}}(o)){const r=i.get(o);if(r!==void 0)return r;const c={};i.set(o,c);for(const d of Object.getOwnPropertyNames(o))o[d]!==void 0&&(c[d]=I2(o[d],i));return c}if(Array.isArray(o)){const r=i.get(o);if(r!==void 0)return r;const c=[];return i.set(o,c),o.forEach(d=>{c.push(I2(d,i))}),c}return o}function om(){return Date.now()/1e3}const Rl=function(){const{performance:o}=Wn;if(!o||!o.now)return om;const i=Date.now()-o.now(),r=o.timeOrigin==null?i:o.timeOrigin;return()=>(r+o.now())/1e3}();function co(){const o=Wn,i=o.crypto||o.msCrypto;let r=()=>16*Math.random();try{if(i&&i.randomUUID)return i.randomUUID().replace(/-/g,"");i&&i.getRandomValues&&(r=()=>{const c=new Uint8Array(1);return i.getRandomValues(c),c[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,c=>(c^(15&r())>>c/4).toString(16))}function rC(o){return o.exception&&o.exception.values?o.exception.values[0]:void 0}function qc(o){const{message:i,event_id:r}=o;if(i)return i;const c=rC(o);return c?c.type&&c.value?`${c.type}: ${c.value}`:c.type||c.value||r||"<unknown>":r||"<unknown>"}function q2(o,i,r){const c=o.exception=o.exception||{},d=c.values=c.values||[],f=d[0]=d[0]||{};f.value||(f.value=i||""),f.type||(f.type="Error")}function vf(o,i){const r=rC(o);if(!r)return;const c=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...c,...i},i&&"data"in i){const d={...c&&c.data,...i.data};r.mechanism.data=d}}function lC(o){if(function(i){try{return i.__sentry_captured__}catch{}}(o))return!0;try{_d(o,"__sentry_captured__",!0)}catch{}return!1}var Nl;function Sd(o){return new uo(i=>{i(o)})}function Hb(o){return new uo((i,r)=>{r(o)})}(()=>{const{performance:o}=Wn;!o||!o.now||(o.now(),o.timing&&o.timing.navigationStart)})(),function(o){o[o.PENDING=0]="PENDING",o[o.RESOLVED=1]="RESOLVED",o[o.REJECTED=2]="REJECTED"}(Nl||(Nl={}));class uo{constructor(i){uo.prototype.__init.call(this),uo.prototype.__init2.call(this),uo.prototype.__init3.call(this),uo.prototype.__init4.call(this),this._state=Nl.PENDING,this._handlers=[];try{i(this._resolve,this._reject)}catch(r){this._reject(r)}}then(i,r){return new uo((c,d)=>{this._handlers.push([!1,f=>{if(i)try{c(i(f))}catch(y){d(y)}else c(f)},f=>{if(r)try{c(r(f))}catch(y){d(y)}else d(f)}]),this._executeHandlers()})}catch(i){return this.then(r=>r,i)}finally(i){return new uo((r,c)=>{let d,f;return this.then(y=>{f=!1,d=y,i&&i()},y=>{f=!0,d=y,i&&i()}).then(()=>{f?c(d):r(d)})})}__init(){this._resolve=i=>{this._setResult(Nl.RESOLVED,i)}}__init2(){this._reject=i=>{this._setResult(Nl.REJECTED,i)}}__init3(){this._setResult=(i,r)=>{this._state===Nl.PENDING&&(Bb(r)?r.then(this._resolve,this._reject):(this._state=i,this._value=r,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Nl.PENDING)return;const i=this._handlers.slice();this._handlers=[],i.forEach(r=>{r[0]||(this._state===Nl.RESOLVED&&r[1](this._value),this._state===Nl.REJECTED&&r[2](this._value),r[0]=!0)})}}}function S7(o){const i=Rl(),r={sid:co(),init:!0,timestamp:i,started:i,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(c){return lo({sid:`${c.sid}`,init:c.init,started:new Date(1e3*c.started).toISOString(),timestamp:new Date(1e3*c.timestamp).toISOString(),status:c.status,errors:c.errors,did:typeof c.did=="number"||typeof c.did=="string"?`${c.did}`:void 0,duration:c.duration,abnormal_mechanism:c.abnormal_mechanism,attrs:{release:c.release,environment:c.environment,ip_address:c.ipAddress,user_agent:c.userAgent}})}(r)};return o&&xf(r,o),r}function xf(o,i={}){if(i.user&&(!o.ipAddress&&i.user.ip_address&&(o.ipAddress=i.user.ip_address),o.did||i.did||(o.did=i.user.id||i.user.email||i.user.username)),o.timestamp=i.timestamp||Rl(),i.abnormal_mechanism&&(o.abnormal_mechanism=i.abnormal_mechanism),i.ignoreDuration&&(o.ignoreDuration=i.ignoreDuration),i.sid&&(o.sid=i.sid.length===32?i.sid:co()),i.init!==void 0&&(o.init=i.init),!o.did&&i.did&&(o.did=`${i.did}`),typeof i.started=="number"&&(o.started=i.started),o.ignoreDuration)o.duration=void 0;else if(typeof i.duration=="number")o.duration=i.duration;else{const r=o.timestamp-o.started;o.duration=r>=0?r:0}i.release&&(o.release=i.release),i.environment&&(o.environment=i.environment),!o.ipAddress&&i.ipAddress&&(o.ipAddress=i.ipAddress),!o.userAgent&&i.userAgent&&(o.userAgent=i.userAgent),typeof i.errors=="number"&&(o.errors=i.errors),i.status&&(o.status=i.status)}function cC(){return co()}function Y2(){return co().substring(16)}function $b(o,i,r=2){if(!i||typeof i!="object"||r<=0)return i;if(o&&i&&Object.keys(i).length===0)return o;const c={...o};for(const d in i)Object.prototype.hasOwnProperty.call(i,d)&&(c[d]=$b(c[d],i[d],r-1));return c}const F2="_sentrySpan";function uC(o,i){i?_d(o,F2,i):delete o[F2]}function dC(o){return o[F2]}class X2{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:cC(),spanId:Y2()}}clone(){const i=new X2;return i._breadcrumbs=[...this._breadcrumbs],i._tags={...this._tags},i._extra={...this._extra},i._contexts={...this._contexts},this._contexts.flags&&(i._contexts.flags={values:[...this._contexts.flags.values]}),i._user=this._user,i._level=this._level,i._session=this._session,i._transactionName=this._transactionName,i._fingerprint=this._fingerprint,i._eventProcessors=[...this._eventProcessors],i._requestSession=this._requestSession,i._attachments=[...this._attachments],i._sdkProcessingMetadata={...this._sdkProcessingMetadata},i._propagationContext={...this._propagationContext},i._client=this._client,i._lastEventId=this._lastEventId,uC(i,dC(this)),i}setClient(i){this._client=i}setLastEventId(i){this._lastEventId=i}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(i){this._scopeListeners.push(i)}addEventProcessor(i){return this._eventProcessors.push(i),this}setUser(i){return this._user=i||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&xf(this._session,{user:i}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(i){return this._requestSession=i,this}setTags(i){return this._tags={...this._tags,...i},this._notifyScopeListeners(),this}setTag(i,r){return this._tags={...this._tags,[i]:r},this._notifyScopeListeners(),this}setExtras(i){return this._extra={...this._extra,...i},this._notifyScopeListeners(),this}setExtra(i,r){return this._extra={...this._extra,[i]:r},this._notifyScopeListeners(),this}setFingerprint(i){return this._fingerprint=i,this._notifyScopeListeners(),this}setLevel(i){return this._level=i,this._notifyScopeListeners(),this}setTransactionName(i){return this._transactionName=i,this._notifyScopeListeners(),this}setContext(i,r){return r===null?delete this._contexts[i]:this._contexts[i]=r,this._notifyScopeListeners(),this}setSession(i){return i?this._session=i:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(i){if(!i)return this;const r=typeof i=="function"?i(this):i,[c,d]=r instanceof Yc?[r.getScopeData(),r.getRequestSession()]:yf(r)?[i,i.requestSession]:[],{tags:f,extra:y,user:x,contexts:v,level:S,fingerprint:j=[],propagationContext:B}=c||{};return this._tags={...this._tags,...f},this._extra={...this._extra,...y},this._contexts={...this._contexts,...v},x&&Object.keys(x).length&&(this._user=x),S&&(this._level=S),j.length&&(this._fingerprint=j),B&&(this._propagationContext=B),d&&(this._requestSession=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,uC(this,void 0),this._attachments=[],this.setPropagationContext({traceId:cC()}),this._notifyScopeListeners(),this}addBreadcrumb(i,r){const c=typeof r=="number"?r:100;if(c<=0)return this;const d={timestamp:om(),...i};return this._breadcrumbs.push(d),this._breadcrumbs.length>c&&(this._breadcrumbs=this._breadcrumbs.slice(-c),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(i){return this._attachments.push(i),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:dC(this)}}setSDKProcessingMetadata(i){return this._sdkProcessingMetadata=$b(this._sdkProcessingMetadata,i,2),this}setPropagationContext(i){return this._propagationContext={spanId:Y2(),...i},this}getPropagationContext(){return this._propagationContext}captureException(i,r){const c=r&&r.event_id?r.event_id:co();if(!this._client)return un.warn("No client configured on scope - will not capture exception!"),c;const d=new Error("Sentry syntheticException");return this._client.captureException(i,{originalException:i,syntheticException:d,...r,event_id:c},this),c}captureMessage(i,r,c){const d=c&&c.event_id?c.event_id:co();if(!this._client)return un.warn("No client configured on scope - will not capture message!"),d;const f=new Error(i);return this._client.captureMessage(i,r,{originalException:i,syntheticException:f,...c,event_id:d},this),d}captureEvent(i,r){const c=r&&r.event_id?r.event_id:co();return this._client?(this._client.captureEvent(i,{...r,event_id:c},this),c):(un.warn("No client configured on scope - will not capture event!"),c)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(i=>{i(this)}),this._notifyingListeners=!1)}}const Yc=X2;class C7{constructor(i,r){let c,d;c=i||new Yc,d=r||new Yc,this._stack=[{scope:c}],this._isolationScope=d}withScope(i){const r=this._pushScope();let c;try{c=i(r)}catch(d){throw this._popScope(),d}return Bb(c)?c.then(d=>(this._popScope(),d),d=>{throw this._popScope(),d}):(this._popScope(),c)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const i=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:i}),i}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function _f(){const o=U2(Nb());return o.stack=o.stack||new C7(Ob("defaultCurrentScope",()=>new Yc),Ob("defaultIsolationScope",()=>new Yc))}function w7(o){return _f().withScope(o)}function k7(o,i){const r=_f();return r.withScope(()=>(r.getStackTop().scope=o,i(o)))}function hC(o){return _f().withScope(()=>o(_f().getIsolationScope()))}function Z2(o){const i=U2(o);return i.acs?i.acs:{withIsolationScope:hC,withScope:w7,withSetScope:k7,withSetIsolationScope:(r,c)=>hC(c),getCurrentScope:()=>_f().getScope(),getIsolationScope:()=>_f().getIsolationScope()}}function Cd(){return Z2(Nb()).getCurrentScope()}function rm(){return Z2(Nb()).getIsolationScope()}function ja(){return Cd().getClient()}function T7(o){const i=o.getPropagationContext(),{traceId:r,spanId:c,parentSpanId:d}=i;return lo({trace_id:r,span_id:c,parent_span_id:d})}function M7(o){const i=o._sentryMetrics;if(!i)return;const r={};for(const[,[c,d]]of i)(r[c]||(r[c]=[])).push(lo(d));return r}const A7=/^sentry-/;function E7(o){const i=function(c){if(!(!c||!Ll(c)&&!Array.isArray(c)))return Array.isArray(c)?c.reduce((d,f)=>{const y=fC(f);return Object.entries(y).forEach(([x,v])=>{d[x]=v}),d},{}):fC(c)}(o);if(!i)return;const r=Object.entries(i).reduce((c,[d,f])=>(d.match(A7)&&(c[d.slice(7)]=f),c),{});return Object.keys(r).length>0?r:void 0}function fC(o){return o.split(",").map(i=>i.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((i,[r,c])=>(r&&c&&(i[r]=c),i),{})}let pC=!1;function D7(o){const{spanId:i,traceId:r,isRemote:c}=o.spanContext();return lo({parent_span_id:c?i:Q2(o).parent_span_id,span_id:c?Y2():i,trace_id:r})}function gC(o){return typeof o=="number"?mC(o):Array.isArray(o)?o[0]+o[1]/1e9:o instanceof Date?mC(o.getTime()):Rl()}function mC(o){return o>9999999999?o/1e3:o}function Q2(o){if(function(i){return typeof i.getSpanJSON=="function"}(o))return o.getSpanJSON();try{const{spanId:i,traceId:r}=o.spanContext();if(function(c){const d=c;return!!(d.attributes&&d.startTime&&d.name&&d.endTime&&d.status)}(o)){const{attributes:c,startTime:d,name:f,endTime:y,parentSpanId:x,status:v}=o;return lo({span_id:i,trace_id:r,data:c,description:f,parent_span_id:x,start_timestamp:gC(d),timestamp:gC(y)||void 0,status:O7(v),op:c["sentry.op"],origin:c["sentry.origin"],_metrics_summary:M7(o)})}return{span_id:i,trace_id:r}}catch{return{}}}function O7(o){if(o&&o.code!==0)return o.code===1?"ok":o.message||"unknown_error"}function yC(o){return o._sentryRootSpan||o}function j7(){pC||(sm(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),pC=!0)}const W2="production";function bC(o,i){const r=i.getOptions(),{publicKey:c}=i.getDsn()||{},d=lo({environment:r.environment||W2,release:r.release,public_key:c,trace_id:o});return i.emit("createDsc",d),d}function L7(o){const i=ja();if(!i)return{};const r=yC(o),c=r._frozenDsc;if(c)return c;const d=r.spanContext().traceState,f=d&&d.get("sentry.dsc"),y=f&&E7(f);if(y)return y;const x=bC(o.spanContext().traceId,i),v=Q2(r),S=v.data||{},j=S["sentry.sample_rate"];j!=null&&(x.sample_rate=`${j}`);const B=S["sentry.source"],ee=v.description;return B!=="url"&&ee&&(x.transaction=ee),function(ne){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const O=ja(),V=O&&O.getOptions();return!!V&&(V.enableTracing||"tracesSampleRate"in V||"tracesSampler"in V)}()&&(x.sampled=String(function(ne){const{traceFlags:O}=ne.spanContext();return O===1}(r))),i.emit("createDsc",x,r),x}const R7=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Gb(o,i=!1){const{host:r,path:c,pass:d,port:f,projectId:y,protocol:x,publicKey:v}=o;return`${x}://${v}${i&&d?`:${d}`:""}@${r}${f?`:${f}`:""}/${c&&`${c}/`}${y}`}function vC(o){return{protocol:o.protocol,publicKey:o.publicKey||"",pass:o.pass||"",host:o.host,port:o.port||"",path:o.path||"",projectId:o.projectId}}function N7(o){const i=typeof o=="string"?function(r){const c=R7.exec(r);if(!c)return void sm(()=>{console.error(`Invalid Sentry Dsn: ${r}`)});const[d,f,y="",x="",v="",S=""]=c.slice(1);let j="",B=S;const ee=B.split("/");if(ee.length>1&&(j=ee.slice(0,-1).join("/"),B=ee.pop()),B){const ne=B.match(/^\d+/);ne&&(B=ne[0])}return vC({host:x,pass:y,path:j,projectId:B,port:v,protocol:d,publicKey:f})}(o):vC(o);if(i&&function(r){if(!md)return!0;const{port:c,projectId:d,protocol:f}=r;return!(["protocol","publicKey","host","projectId"].find(y=>!r[y]&&(un.error(`Invalid Sentry Dsn: ${y} missing`),!0))||(d.match(/^\d+$/)?function(y){return y==="http"||y==="https"}(f)?c&&isNaN(parseInt(c,10))&&(un.error(`Invalid Sentry Dsn: Invalid port ${c}`),1):(un.error(`Invalid Sentry Dsn: Invalid protocol ${f}`),1):(un.error(`Invalid Sentry Dsn: Invalid projectId ${d}`),1)))}(i))return i}function zl(o,i=100,r=1/0){try{return J2("",o,i,r)}catch(c){return{ERROR:`**non-serializable** (${c})`}}}function xC(o,i=3,r=102400){const c=zl(o,i);return d=c,function(f){return~-encodeURI(f).split(/%..|./).length}(JSON.stringify(d))>r?xC(o,i-1,r):c;var d}function J2(o,i,r=1/0,c=1/0,d=function(){const f=typeof WeakSet=="function",y=f?new WeakSet:[];return[function(x){if(f)return!!y.has(x)||(y.add(x),!1);for(let v=0;v<y.length;v++)if(y[v]===x)return!0;return y.push(x),!1},function(x){if(f)y.delete(x);else for(let v=0;v<y.length;v++)if(y[v]===x){y.splice(v,1);break}}]}()){const[f,y]=d;if(i==null||["boolean","string"].includes(typeof i)||typeof i=="number"&&Number.isFinite(i))return i;const x=function(ne,O){try{if(ne==="domain"&&O&&typeof O=="object"&&O._events)return"[Domain]";if(ne==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&O===global)return"[Global]";if(typeof window<"u"&&O===window)return"[Window]";if(typeof document<"u"&&O===document)return"[Document]";if(eC(O))return"[VueViewModel]";if(yf(V=O)&&"nativeEvent"in V&&"preventDefault"in V&&"stopPropagation"in V)return"[SyntheticEvent]";if(typeof O=="number"&&!Number.isFinite(O))return`[${O}]`;if(typeof O=="function")return`[Function: ${Ic(O)}]`;if(typeof O=="symbol")return`[${String(O)}]`;if(typeof O=="bigint")return`[BigInt: ${String(O)}]`;const ae=function(ie){const U=Object.getPrototypeOf(ie);return U?U.constructor.name:"null prototype"}(O);return/^HTML(\w*)Element$/.test(ae)?`[HTMLElement: ${ae}]`:`[object ${ae}]`}catch(ae){return`**non-serializable** (${ae})`}var V}(o,i);if(!x.startsWith("[object "))return x;if(i.__sentry_skip_normalization__)return i;const v=typeof i.__sentry_override_normalization_depth__=="number"?i.__sentry_override_normalization_depth__:r;if(v===0)return x.replace("object ","");if(f(i))return"[Circular ~]";const S=i;if(S&&typeof S.toJSON=="function")try{return J2("",S.toJSON(),v-1,c,d)}catch{}const j=Array.isArray(i)?[]:{};let B=0;const ee=aC(i);for(const ne in ee){if(!Object.prototype.hasOwnProperty.call(ee,ne))continue;if(B>=c){j[ne]="[MaxProperties ~]";break}const O=ee[ne];j[ne]=J2(ne,O,v-1,c,d),B++}return y(i),j}function lm(o,i=[]){return[o,i]}function z7(o,i){const[r,c]=o;return[r,[...c,i]]}function _C(o,i){const r=o[1];for(const c of r)if(i(c,c[0].type))return!0;return!1}function K2(o){return Wn.__SENTRY__&&Wn.__SENTRY__.encodePolyfill?Wn.__SENTRY__.encodePolyfill(o):new TextEncoder().encode(o)}function B7(o){const[i,r]=o;let c=JSON.stringify(i);function d(f){typeof c=="string"?c=typeof f=="string"?c+f:[K2(c),f]:c.push(typeof f=="string"?K2(f):f)}for(const f of r){const[y,x]=f;if(d(`
|
|
116
|
+
Error:`,d)}}let z2=null;function b7(){z2=Wn.onerror,Wn.onerror=function(o,i,r,c,d){return nr("error",{column:c,error:d,line:r,msg:o,url:i}),!!z2&&z2.apply(this,arguments)},Wn.onerror.__SENTRY_INSTRUMENTED__=!0}let B2=null;function v7(){B2=Wn.onunhandledrejection,Wn.onunhandledrejection=function(o){return nr("unhandledrejection",o),!B2||B2.apply(this,arguments)},Wn.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Nb(){return U2(Wn),Wn}function U2(o){const i=o.__SENTRY__=o.__SENTRY__||{};return i.version=i.version||gd,i[gd]=i[gd]||{}}const W3=Object.prototype.toString;function H2(o){switch(W3.call(o)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return xd(o,Error)}}function mf(o,i){return W3.call(o)===`[object ${i}]`}function J3(o){return mf(o,"ErrorEvent")}function K3(o){return mf(o,"DOMError")}function Ll(o){return mf(o,"String")}function $2(o){return typeof o=="object"&&o!==null&&"__sentry_template_string__"in o&&"__sentry_template_values__"in o}function G2(o){return o===null||$2(o)||typeof o!="object"&&typeof o!="function"}function yf(o){return mf(o,"Object")}function zb(o){return typeof Event<"u"&&xd(o,Event)}function Bb(o){return!!(o&&o.then&&typeof o.then=="function")}function xd(o,i){try{return o instanceof i}catch{return!1}}function eC(o){return!(typeof o!="object"||o===null||!o.__isVue&&!o._isVue)}const P2=Wn;function tC(o,i={}){if(!o)return"<unknown>";try{let r=o;const c=5,d=[];let f=0,y=0;const x=" > ",v=x.length;let S;const j=Array.isArray(i)?i:i.keyAttrs,B=!Array.isArray(i)&&i.maxStringLength||80;for(;r&&f++<c&&(S=x7(r,j),!(S==="html"||f>1&&y+d.length*v+S.length>=B));)d.push(S),y+=S.length,r=r.parentNode;return d.reverse().join(x)}catch{return"<unknown>"}}function x7(o,i){const r=o,c=[];if(!r||!r.tagName)return"";if(P2.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}c.push(r.tagName.toLowerCase());const d=i&&i.length?i.filter(y=>r.getAttribute(y)).map(y=>[y,r.getAttribute(y)]):null;if(d&&d.length)d.forEach(y=>{c.push(`[${y[0]}="${y[1]}"]`)});else{r.id&&c.push(`#${r.id}`);const y=r.className;if(y&&Ll(y)){const x=y.split(/\s+/);for(const v of x)c.push(`.${v}`)}}const f=["aria-label","type","name","title","alt"];for(const y of f){const x=r.getAttribute(y);x&&c.push(`[${y}="${x}"]`)}return c.join("")}function bf(o,i=0){return typeof o!="string"||i===0||o.length<=i?o:`${o.slice(0,i)}...`}function nC(o,i){if(!Array.isArray(o))return"";const r=[];for(let c=0;c<o.length;c++){const d=o[c];try{eC(d)?r.push("[VueViewModel]"):r.push(String(d))}catch{r.push("[value cannot be serialized]")}}return r.join(i)}function _7(o,i,r=!1){return!!Ll(o)&&(mf(i,"RegExp")?i.test(o):!!Ll(i)&&(r?o===i:o.includes(i)))}function Ub(o,i=[],r=!1){return i.some(c=>_7(o,c,r))}function Gs(o,i,r){if(!(i in o))return;const c=o[i],d=r(c);typeof d=="function"&&iC(d,c);try{o[i]=d}catch{md&&dn.log(`Failed to replace method "${i}" in object`,o)}}function _d(o,i,r){try{Object.defineProperty(o,i,{value:r,writable:!0,configurable:!0})}catch{md&&dn.log(`Failed to add non-enumerable property "${i}" to object`,o)}}function iC(o,i){try{const r=i.prototype||{};o.prototype=i.prototype=r,_d(o,"__sentry_original__",i)}catch{}}function V2(o){return o.__sentry_original__}function aC(o){if(H2(o))return{message:o.message,name:o.name,stack:o.stack,...oC(o)};if(zb(o)){const i={type:o.type,target:sC(o.target),currentTarget:sC(o.currentTarget),...oC(o)};return typeof CustomEvent<"u"&&xd(o,CustomEvent)&&(i.detail=o.detail),i}return o}function sC(o){try{return i=o,typeof Element<"u"&&xd(i,Element)?tC(o):Object.prototype.toString.call(o)}catch{return"<unknown>"}var i}function oC(o){if(typeof o=="object"&&o!==null){const i={};for(const r in o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o[r]);return i}return{}}function lo(o){return I2(o,new Map)}function I2(o,i){if(function(r){if(!yf(r))return!1;try{const c=Object.getPrototypeOf(r).constructor.name;return!c||c==="Object"}catch{return!0}}(o)){const r=i.get(o);if(r!==void 0)return r;const c={};i.set(o,c);for(const d of Object.getOwnPropertyNames(o))o[d]!==void 0&&(c[d]=I2(o[d],i));return c}if(Array.isArray(o)){const r=i.get(o);if(r!==void 0)return r;const c=[];return i.set(o,c),o.forEach(d=>{c.push(I2(d,i))}),c}return o}function om(){return Date.now()/1e3}const Rl=function(){const{performance:o}=Wn;if(!o||!o.now)return om;const i=Date.now()-o.now(),r=o.timeOrigin==null?i:o.timeOrigin;return()=>(r+o.now())/1e3}();function co(){const o=Wn,i=o.crypto||o.msCrypto;let r=()=>16*Math.random();try{if(i&&i.randomUUID)return i.randomUUID().replace(/-/g,"");i&&i.getRandomValues&&(r=()=>{const c=new Uint8Array(1);return i.getRandomValues(c),c[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,c=>(c^(15&r())>>c/4).toString(16))}function rC(o){return o.exception&&o.exception.values?o.exception.values[0]:void 0}function qc(o){const{message:i,event_id:r}=o;if(i)return i;const c=rC(o);return c?c.type&&c.value?`${c.type}: ${c.value}`:c.type||c.value||r||"<unknown>":r||"<unknown>"}function q2(o,i,r){const c=o.exception=o.exception||{},d=c.values=c.values||[],f=d[0]=d[0]||{};f.value||(f.value=i||""),f.type||(f.type="Error")}function vf(o,i){const r=rC(o);if(!r)return;const c=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...c,...i},i&&"data"in i){const d={...c&&c.data,...i.data};r.mechanism.data=d}}function lC(o){if(function(i){try{return i.__sentry_captured__}catch{}}(o))return!0;try{_d(o,"__sentry_captured__",!0)}catch{}return!1}var Nl;function Sd(o){return new uo(i=>{i(o)})}function Hb(o){return new uo((i,r)=>{r(o)})}(()=>{const{performance:o}=Wn;!o||!o.now||(o.now(),o.timing&&o.timing.navigationStart)})(),function(o){o[o.PENDING=0]="PENDING",o[o.RESOLVED=1]="RESOLVED",o[o.REJECTED=2]="REJECTED"}(Nl||(Nl={}));class uo{constructor(i){uo.prototype.__init.call(this),uo.prototype.__init2.call(this),uo.prototype.__init3.call(this),uo.prototype.__init4.call(this),this._state=Nl.PENDING,this._handlers=[];try{i(this._resolve,this._reject)}catch(r){this._reject(r)}}then(i,r){return new uo((c,d)=>{this._handlers.push([!1,f=>{if(i)try{c(i(f))}catch(y){d(y)}else c(f)},f=>{if(r)try{c(r(f))}catch(y){d(y)}else d(f)}]),this._executeHandlers()})}catch(i){return this.then(r=>r,i)}finally(i){return new uo((r,c)=>{let d,f;return this.then(y=>{f=!1,d=y,i&&i()},y=>{f=!0,d=y,i&&i()}).then(()=>{f?c(d):r(d)})})}__init(){this._resolve=i=>{this._setResult(Nl.RESOLVED,i)}}__init2(){this._reject=i=>{this._setResult(Nl.REJECTED,i)}}__init3(){this._setResult=(i,r)=>{this._state===Nl.PENDING&&(Bb(r)?r.then(this._resolve,this._reject):(this._state=i,this._value=r,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Nl.PENDING)return;const i=this._handlers.slice();this._handlers=[],i.forEach(r=>{r[0]||(this._state===Nl.RESOLVED&&r[1](this._value),this._state===Nl.REJECTED&&r[2](this._value),r[0]=!0)})}}}function S7(o){const i=Rl(),r={sid:co(),init:!0,timestamp:i,started:i,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(c){return lo({sid:`${c.sid}`,init:c.init,started:new Date(1e3*c.started).toISOString(),timestamp:new Date(1e3*c.timestamp).toISOString(),status:c.status,errors:c.errors,did:typeof c.did=="number"||typeof c.did=="string"?`${c.did}`:void 0,duration:c.duration,abnormal_mechanism:c.abnormal_mechanism,attrs:{release:c.release,environment:c.environment,ip_address:c.ipAddress,user_agent:c.userAgent}})}(r)};return o&&xf(r,o),r}function xf(o,i={}){if(i.user&&(!o.ipAddress&&i.user.ip_address&&(o.ipAddress=i.user.ip_address),o.did||i.did||(o.did=i.user.id||i.user.email||i.user.username)),o.timestamp=i.timestamp||Rl(),i.abnormal_mechanism&&(o.abnormal_mechanism=i.abnormal_mechanism),i.ignoreDuration&&(o.ignoreDuration=i.ignoreDuration),i.sid&&(o.sid=i.sid.length===32?i.sid:co()),i.init!==void 0&&(o.init=i.init),!o.did&&i.did&&(o.did=`${i.did}`),typeof i.started=="number"&&(o.started=i.started),o.ignoreDuration)o.duration=void 0;else if(typeof i.duration=="number")o.duration=i.duration;else{const r=o.timestamp-o.started;o.duration=r>=0?r:0}i.release&&(o.release=i.release),i.environment&&(o.environment=i.environment),!o.ipAddress&&i.ipAddress&&(o.ipAddress=i.ipAddress),!o.userAgent&&i.userAgent&&(o.userAgent=i.userAgent),typeof i.errors=="number"&&(o.errors=i.errors),i.status&&(o.status=i.status)}function cC(){return co()}function Y2(){return co().substring(16)}function $b(o,i,r=2){if(!i||typeof i!="object"||r<=0)return i;if(o&&i&&Object.keys(i).length===0)return o;const c={...o};for(const d in i)Object.prototype.hasOwnProperty.call(i,d)&&(c[d]=$b(c[d],i[d],r-1));return c}const F2="_sentrySpan";function uC(o,i){i?_d(o,F2,i):delete o[F2]}function dC(o){return o[F2]}class X2{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:cC(),spanId:Y2()}}clone(){const i=new X2;return i._breadcrumbs=[...this._breadcrumbs],i._tags={...this._tags},i._extra={...this._extra},i._contexts={...this._contexts},this._contexts.flags&&(i._contexts.flags={values:[...this._contexts.flags.values]}),i._user=this._user,i._level=this._level,i._session=this._session,i._transactionName=this._transactionName,i._fingerprint=this._fingerprint,i._eventProcessors=[...this._eventProcessors],i._requestSession=this._requestSession,i._attachments=[...this._attachments],i._sdkProcessingMetadata={...this._sdkProcessingMetadata},i._propagationContext={...this._propagationContext},i._client=this._client,i._lastEventId=this._lastEventId,uC(i,dC(this)),i}setClient(i){this._client=i}setLastEventId(i){this._lastEventId=i}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(i){this._scopeListeners.push(i)}addEventProcessor(i){return this._eventProcessors.push(i),this}setUser(i){return this._user=i||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&xf(this._session,{user:i}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(i){return this._requestSession=i,this}setTags(i){return this._tags={...this._tags,...i},this._notifyScopeListeners(),this}setTag(i,r){return this._tags={...this._tags,[i]:r},this._notifyScopeListeners(),this}setExtras(i){return this._extra={...this._extra,...i},this._notifyScopeListeners(),this}setExtra(i,r){return this._extra={...this._extra,[i]:r},this._notifyScopeListeners(),this}setFingerprint(i){return this._fingerprint=i,this._notifyScopeListeners(),this}setLevel(i){return this._level=i,this._notifyScopeListeners(),this}setTransactionName(i){return this._transactionName=i,this._notifyScopeListeners(),this}setContext(i,r){return r===null?delete this._contexts[i]:this._contexts[i]=r,this._notifyScopeListeners(),this}setSession(i){return i?this._session=i:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(i){if(!i)return this;const r=typeof i=="function"?i(this):i,[c,d]=r instanceof Yc?[r.getScopeData(),r.getRequestSession()]:yf(r)?[i,i.requestSession]:[],{tags:f,extra:y,user:x,contexts:v,level:S,fingerprint:j=[],propagationContext:B}=c||{};return this._tags={...this._tags,...f},this._extra={...this._extra,...y},this._contexts={...this._contexts,...v},x&&Object.keys(x).length&&(this._user=x),S&&(this._level=S),j.length&&(this._fingerprint=j),B&&(this._propagationContext=B),d&&(this._requestSession=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,uC(this,void 0),this._attachments=[],this.setPropagationContext({traceId:cC()}),this._notifyScopeListeners(),this}addBreadcrumb(i,r){const c=typeof r=="number"?r:100;if(c<=0)return this;const d={timestamp:om(),...i};return this._breadcrumbs.push(d),this._breadcrumbs.length>c&&(this._breadcrumbs=this._breadcrumbs.slice(-c),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(i){return this._attachments.push(i),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:dC(this)}}setSDKProcessingMetadata(i){return this._sdkProcessingMetadata=$b(this._sdkProcessingMetadata,i,2),this}setPropagationContext(i){return this._propagationContext={spanId:Y2(),...i},this}getPropagationContext(){return this._propagationContext}captureException(i,r){const c=r&&r.event_id?r.event_id:co();if(!this._client)return dn.warn("No client configured on scope - will not capture exception!"),c;const d=new Error("Sentry syntheticException");return this._client.captureException(i,{originalException:i,syntheticException:d,...r,event_id:c},this),c}captureMessage(i,r,c){const d=c&&c.event_id?c.event_id:co();if(!this._client)return dn.warn("No client configured on scope - will not capture message!"),d;const f=new Error(i);return this._client.captureMessage(i,r,{originalException:i,syntheticException:f,...c,event_id:d},this),d}captureEvent(i,r){const c=r&&r.event_id?r.event_id:co();return this._client?(this._client.captureEvent(i,{...r,event_id:c},this),c):(dn.warn("No client configured on scope - will not capture event!"),c)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(i=>{i(this)}),this._notifyingListeners=!1)}}const Yc=X2;class C7{constructor(i,r){let c,d;c=i||new Yc,d=r||new Yc,this._stack=[{scope:c}],this._isolationScope=d}withScope(i){const r=this._pushScope();let c;try{c=i(r)}catch(d){throw this._popScope(),d}return Bb(c)?c.then(d=>(this._popScope(),d),d=>{throw this._popScope(),d}):(this._popScope(),c)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const i=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:i}),i}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function _f(){const o=U2(Nb());return o.stack=o.stack||new C7(Ob("defaultCurrentScope",()=>new Yc),Ob("defaultIsolationScope",()=>new Yc))}function w7(o){return _f().withScope(o)}function k7(o,i){const r=_f();return r.withScope(()=>(r.getStackTop().scope=o,i(o)))}function hC(o){return _f().withScope(()=>o(_f().getIsolationScope()))}function Z2(o){const i=U2(o);return i.acs?i.acs:{withIsolationScope:hC,withScope:w7,withSetScope:k7,withSetIsolationScope:(r,c)=>hC(c),getCurrentScope:()=>_f().getScope(),getIsolationScope:()=>_f().getIsolationScope()}}function Cd(){return Z2(Nb()).getCurrentScope()}function rm(){return Z2(Nb()).getIsolationScope()}function ja(){return Cd().getClient()}function T7(o){const i=o.getPropagationContext(),{traceId:r,spanId:c,parentSpanId:d}=i;return lo({trace_id:r,span_id:c,parent_span_id:d})}function M7(o){const i=o._sentryMetrics;if(!i)return;const r={};for(const[,[c,d]]of i)(r[c]||(r[c]=[])).push(lo(d));return r}const A7=/^sentry-/;function E7(o){const i=function(c){if(!(!c||!Ll(c)&&!Array.isArray(c)))return Array.isArray(c)?c.reduce((d,f)=>{const y=fC(f);return Object.entries(y).forEach(([x,v])=>{d[x]=v}),d},{}):fC(c)}(o);if(!i)return;const r=Object.entries(i).reduce((c,[d,f])=>(d.match(A7)&&(c[d.slice(7)]=f),c),{});return Object.keys(r).length>0?r:void 0}function fC(o){return o.split(",").map(i=>i.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((i,[r,c])=>(r&&c&&(i[r]=c),i),{})}let pC=!1;function D7(o){const{spanId:i,traceId:r,isRemote:c}=o.spanContext();return lo({parent_span_id:c?i:Q2(o).parent_span_id,span_id:c?Y2():i,trace_id:r})}function gC(o){return typeof o=="number"?mC(o):Array.isArray(o)?o[0]+o[1]/1e9:o instanceof Date?mC(o.getTime()):Rl()}function mC(o){return o>9999999999?o/1e3:o}function Q2(o){if(function(i){return typeof i.getSpanJSON=="function"}(o))return o.getSpanJSON();try{const{spanId:i,traceId:r}=o.spanContext();if(function(c){const d=c;return!!(d.attributes&&d.startTime&&d.name&&d.endTime&&d.status)}(o)){const{attributes:c,startTime:d,name:f,endTime:y,parentSpanId:x,status:v}=o;return lo({span_id:i,trace_id:r,data:c,description:f,parent_span_id:x,start_timestamp:gC(d),timestamp:gC(y)||void 0,status:O7(v),op:c["sentry.op"],origin:c["sentry.origin"],_metrics_summary:M7(o)})}return{span_id:i,trace_id:r}}catch{return{}}}function O7(o){if(o&&o.code!==0)return o.code===1?"ok":o.message||"unknown_error"}function yC(o){return o._sentryRootSpan||o}function j7(){pC||(sm(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),pC=!0)}const W2="production";function bC(o,i){const r=i.getOptions(),{publicKey:c}=i.getDsn()||{},d=lo({environment:r.environment||W2,release:r.release,public_key:c,trace_id:o});return i.emit("createDsc",d),d}function L7(o){const i=ja();if(!i)return{};const r=yC(o),c=r._frozenDsc;if(c)return c;const d=r.spanContext().traceState,f=d&&d.get("sentry.dsc"),y=f&&E7(f);if(y)return y;const x=bC(o.spanContext().traceId,i),v=Q2(r),S=v.data||{},j=S["sentry.sample_rate"];j!=null&&(x.sample_rate=`${j}`);const B=S["sentry.source"],ee=v.description;return B!=="url"&&ee&&(x.transaction=ee),function(ne){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const O=ja(),V=O&&O.getOptions();return!!V&&(V.enableTracing||"tracesSampleRate"in V||"tracesSampler"in V)}()&&(x.sampled=String(function(ne){const{traceFlags:O}=ne.spanContext();return O===1}(r))),i.emit("createDsc",x,r),x}const R7=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Gb(o,i=!1){const{host:r,path:c,pass:d,port:f,projectId:y,protocol:x,publicKey:v}=o;return`${x}://${v}${i&&d?`:${d}`:""}@${r}${f?`:${f}`:""}/${c&&`${c}/`}${y}`}function vC(o){return{protocol:o.protocol,publicKey:o.publicKey||"",pass:o.pass||"",host:o.host,port:o.port||"",path:o.path||"",projectId:o.projectId}}function N7(o){const i=typeof o=="string"?function(r){const c=R7.exec(r);if(!c)return void sm(()=>{console.error(`Invalid Sentry Dsn: ${r}`)});const[d,f,y="",x="",v="",S=""]=c.slice(1);let j="",B=S;const ee=B.split("/");if(ee.length>1&&(j=ee.slice(0,-1).join("/"),B=ee.pop()),B){const ne=B.match(/^\d+/);ne&&(B=ne[0])}return vC({host:x,pass:y,path:j,projectId:B,port:v,protocol:d,publicKey:f})}(o):vC(o);if(i&&function(r){if(!md)return!0;const{port:c,projectId:d,protocol:f}=r;return!(["protocol","publicKey","host","projectId"].find(y=>!r[y]&&(dn.error(`Invalid Sentry Dsn: ${y} missing`),!0))||(d.match(/^\d+$/)?function(y){return y==="http"||y==="https"}(f)?c&&isNaN(parseInt(c,10))&&(dn.error(`Invalid Sentry Dsn: Invalid port ${c}`),1):(dn.error(`Invalid Sentry Dsn: Invalid protocol ${f}`),1):(dn.error(`Invalid Sentry Dsn: Invalid projectId ${d}`),1)))}(i))return i}function zl(o,i=100,r=1/0){try{return J2("",o,i,r)}catch(c){return{ERROR:`**non-serializable** (${c})`}}}function xC(o,i=3,r=102400){const c=zl(o,i);return d=c,function(f){return~-encodeURI(f).split(/%..|./).length}(JSON.stringify(d))>r?xC(o,i-1,r):c;var d}function J2(o,i,r=1/0,c=1/0,d=function(){const f=typeof WeakSet=="function",y=f?new WeakSet:[];return[function(x){if(f)return!!y.has(x)||(y.add(x),!1);for(let v=0;v<y.length;v++)if(y[v]===x)return!0;return y.push(x),!1},function(x){if(f)y.delete(x);else for(let v=0;v<y.length;v++)if(y[v]===x){y.splice(v,1);break}}]}()){const[f,y]=d;if(i==null||["boolean","string"].includes(typeof i)||typeof i=="number"&&Number.isFinite(i))return i;const x=function(ne,O){try{if(ne==="domain"&&O&&typeof O=="object"&&O._events)return"[Domain]";if(ne==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&O===global)return"[Global]";if(typeof window<"u"&&O===window)return"[Window]";if(typeof document<"u"&&O===document)return"[Document]";if(eC(O))return"[VueViewModel]";if(yf(V=O)&&"nativeEvent"in V&&"preventDefault"in V&&"stopPropagation"in V)return"[SyntheticEvent]";if(typeof O=="number"&&!Number.isFinite(O))return`[${O}]`;if(typeof O=="function")return`[Function: ${Ic(O)}]`;if(typeof O=="symbol")return`[${String(O)}]`;if(typeof O=="bigint")return`[BigInt: ${String(O)}]`;const ae=function(ie){const U=Object.getPrototypeOf(ie);return U?U.constructor.name:"null prototype"}(O);return/^HTML(\w*)Element$/.test(ae)?`[HTMLElement: ${ae}]`:`[object ${ae}]`}catch(ae){return`**non-serializable** (${ae})`}var V}(o,i);if(!x.startsWith("[object "))return x;if(i.__sentry_skip_normalization__)return i;const v=typeof i.__sentry_override_normalization_depth__=="number"?i.__sentry_override_normalization_depth__:r;if(v===0)return x.replace("object ","");if(f(i))return"[Circular ~]";const S=i;if(S&&typeof S.toJSON=="function")try{return J2("",S.toJSON(),v-1,c,d)}catch{}const j=Array.isArray(i)?[]:{};let B=0;const ee=aC(i);for(const ne in ee){if(!Object.prototype.hasOwnProperty.call(ee,ne))continue;if(B>=c){j[ne]="[MaxProperties ~]";break}const O=ee[ne];j[ne]=J2(ne,O,v-1,c,d),B++}return y(i),j}function lm(o,i=[]){return[o,i]}function z7(o,i){const[r,c]=o;return[r,[...c,i]]}function _C(o,i){const r=o[1];for(const c of r)if(i(c,c[0].type))return!0;return!1}function K2(o){return Wn.__SENTRY__&&Wn.__SENTRY__.encodePolyfill?Wn.__SENTRY__.encodePolyfill(o):new TextEncoder().encode(o)}function B7(o){const[i,r]=o;let c=JSON.stringify(i);function d(f){typeof c=="string"?c=typeof f=="string"?c+f:[K2(c),f]:c.push(typeof f=="string"?K2(f):f)}for(const f of r){const[y,x]=f;if(d(`
|
|
117
117
|
${JSON.stringify(y)}
|
|
118
|
-
`),typeof x=="string"||x instanceof Uint8Array)d(x);else{let v;try{v=JSON.stringify(x)}catch{v=JSON.stringify(zl(x))}d(v)}}return typeof c=="string"?c:function(f){const y=f.reduce((S,j)=>S+j.length,0),x=new Uint8Array(y);let v=0;for(const S of f)x.set(S,v),v+=S.length;return x}(c)}function U7(o){const i=typeof o.data=="string"?K2(o.data):o.data;return[lo({type:"attachment",length:i.length,filename:o.filename,content_type:o.contentType,attachment_type:o.attachmentType}),i]}const H7={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function SC(o){return H7[o]}function CC(o){if(!o||!o.sdk)return;const{name:i,version:r}=o.sdk;return{name:i,version:r}}function $7(o,i,r,c){const d=CC(r),f=o.type&&o.type!=="replay_event"?o.type:"event";(function(x,v){v&&(x.sdk=x.sdk||{},x.sdk.name=x.sdk.name||v.name,x.sdk.version=x.sdk.version||v.version,x.sdk.integrations=[...x.sdk.integrations||[],...v.integrations||[]],x.sdk.packages=[...x.sdk.packages||[],...v.packages||[]])})(o,r&&r.sdk);const y=function(x,v,S,j){const B=x.sdkProcessingMetadata&&x.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:x.event_id,sent_at:new Date().toISOString(),...v&&{sdk:v},...!!S&&j&&{dsn:Gb(j)},...B&&{trace:lo({...B})}}}(o,d,c,i);return delete o.sdkProcessingMetadata,lm(y,[[{type:f},o]])}function ex(o,i,r,c=0){return new uo((d,f)=>{const y=o[c];if(i===null||typeof y!="function")d(i);else{const x=y({...i},r);gi&&y.id&&x===null&&un.log(`Event processor "${y.id}" dropped event`),Bb(x)?x.then(v=>ex(o,v,r,c+1).then(d)).then(null,f):ex(o,x,r,c+1).then(d).then(null,f)}})}let Pb,wC,tx;function G7(o,i){const{fingerprint:r,span:c,breadcrumbs:d,sdkProcessingMetadata:f}=i;(function(y,x){const{extra:v,tags:S,user:j,contexts:B,level:ee,transactionName:ne}=x,O=lo(v);O&&Object.keys(O).length&&(y.extra={...O,...y.extra});const V=lo(S);V&&Object.keys(V).length&&(y.tags={...V,...y.tags});const ae=lo(j);ae&&Object.keys(ae).length&&(y.user={...ae,...y.user});const ie=lo(B);ie&&Object.keys(ie).length&&(y.contexts={...ie,...y.contexts}),ee&&(y.level=ee),ne&&y.type!=="transaction"&&(y.transaction=ne)})(o,i),c&&function(y,x){y.contexts={trace:D7(x),...y.contexts},y.sdkProcessingMetadata={dynamicSamplingContext:L7(x),...y.sdkProcessingMetadata};const v=yC(x),S=Q2(v).description;S&&!y.transaction&&y.type==="transaction"&&(y.transaction=S)}(o,c),function(y,x){y.fingerprint=y.fingerprint?Array.isArray(y.fingerprint)?y.fingerprint:[y.fingerprint]:[],x&&(y.fingerprint=y.fingerprint.concat(x)),y.fingerprint&&!y.fingerprint.length&&delete y.fingerprint}(o,r),function(y,x){const v=[...y.breadcrumbs||[],...x];y.breadcrumbs=v.length?v:void 0}(o,d),function(y,x){y.sdkProcessingMetadata={...y.sdkProcessingMetadata,...x}}(o,f)}function kC(o,i){const{extra:r,tags:c,user:d,contexts:f,level:y,sdkProcessingMetadata:x,breadcrumbs:v,fingerprint:S,eventProcessors:j,attachments:B,propagationContext:ee,transactionName:ne,span:O}=i;Vb(o,"extra",r),Vb(o,"tags",c),Vb(o,"user",d),Vb(o,"contexts",f),o.sdkProcessingMetadata=$b(o.sdkProcessingMetadata,x,2),y&&(o.level=y),ne&&(o.transactionName=ne),O&&(o.span=O),v.length&&(o.breadcrumbs=[...o.breadcrumbs,...v]),S.length&&(o.fingerprint=[...o.fingerprint,...S]),j.length&&(o.eventProcessors=[...o.eventProcessors,...j]),B.length&&(o.attachments=[...o.attachments,...B]),o.propagationContext={...o.propagationContext,...ee}}function Vb(o,i,r){o[i]=$b(o[i],r,1)}function P7(o,i,r,c,d,f){const{normalizeDepth:y=3,normalizeMaxBreadth:x=1e3}=o,v={...i,event_id:i.event_id||r.event_id||co(),timestamp:i.timestamp||om()},S=r.integrations||o.integrations.map(O=>O.name);(function(O,V){const{environment:ae,release:ie,dist:U,maxValueLength:P=250}=V;O.environment=O.environment||ae||W2,!O.release&&ie&&(O.release=ie),!O.dist&&U&&(O.dist=U),O.message&&(O.message=bf(O.message,P));const X=O.exception&&O.exception.values&&O.exception.values[0];X&&X.value&&(X.value=bf(X.value,P));const Q=O.request;Q&&Q.url&&(Q.url=bf(Q.url,P))})(v,o),function(O,V){V.length>0&&(O.sdk=O.sdk||{},O.sdk.integrations=[...O.sdk.integrations||[],...V])}(v,S),d&&d.emit("applyFrameMetadata",i),i.type===void 0&&function(O,V){const ae=function(ie){const U=Wn._sentryDebugIds;if(!U)return{};const P=Object.keys(U);return tx&&P.length===wC||(wC=P.length,tx=P.reduce((X,Q)=>{Pb||(Pb={});const $=Pb[Q];if($)X[$[0]]=$[1];else{const I=ie(Q);for(let he=I.length-1;he>=0;he--){const oe=I[he],te=oe&&oe.filename,z=U[Q];if(te&&z){X[te]=z,Pb[Q]=[te,z];break}}}return X},{})),tx}(V);try{O.exception.values.forEach(ie=>{ie.stacktrace.frames.forEach(U=>{ae&&U.filename&&(U.debug_id=ae[U.filename])})})}catch{}}(v,o.stackParser);const j=function(O,V){if(!V)return O;const ae=O?O.clone():new Yc;return ae.update(V),ae}(c,r.captureContext);r.mechanism&&vf(v,r.mechanism);const B=d?d.getEventProcessors():[],ee=Ob("globalScope",()=>new Yc).getScopeData();f&&kC(ee,f.getScopeData()),j&&kC(ee,j.getScopeData());const ne=[...r.attachments||[],...ee.attachments];return ne.length&&(r.attachments=ne),G7(v,ee),ex([...B,...ee.eventProcessors],v,r).then(O=>(O&&function(V){const ae={};try{V.exception.values.forEach(U=>{U.stacktrace.frames.forEach(P=>{P.debug_id&&(P.abs_path?ae[P.abs_path]=P.debug_id:P.filename&&(ae[P.filename]=P.debug_id),delete P.debug_id)})})}catch{}if(Object.keys(ae).length===0)return;V.debug_meta=V.debug_meta||{},V.debug_meta.images=V.debug_meta.images||[];const ie=V.debug_meta.images;Object.entries(ae).forEach(([U,P])=>{ie.push({type:"sourcemap",code_file:U,debug_id:P})})}(O),typeof y=="number"&&y>0?function(V,ae,ie){if(!V)return null;const U={...V,...V.breadcrumbs&&{breadcrumbs:V.breadcrumbs.map(P=>({...P,...P.data&&{data:zl(P.data,ae,ie)}}))},...V.user&&{user:zl(V.user,ae,ie)},...V.contexts&&{contexts:zl(V.contexts,ae,ie)},...V.extra&&{extra:zl(V.extra,ae,ie)}};return V.contexts&&V.contexts.trace&&U.contexts&&(U.contexts.trace=V.contexts.trace,V.contexts.trace.data&&(U.contexts.trace.data=zl(V.contexts.trace.data,ae,ie))),V.spans&&(U.spans=V.spans.map(P=>({...P,...P.data&&{data:zl(P.data,ae,ie)}}))),V.contexts&&V.contexts.flags&&U.contexts&&(U.contexts.flags=zl(V.contexts.flags,3,ie)),U}(O,y,x):O))}function dE(o){}function TC(o,i){return Cd().captureEvent(o,i)}function MC(o){const i=ja(),r=rm(),c=Cd(),{release:d,environment:f=W2}=i&&i.getOptions()||{},{userAgent:y}=Wn.navigator||{},x=S7({release:d,environment:f,user:c.getUser()||r.getUser(),...y&&{userAgent:y},...o}),v=r.getSession();return v&&v.status==="ok"&&xf(v,{status:"exited"}),AC(),r.setSession(x),c.setSession(x),x}function AC(){const o=rm(),i=Cd(),r=i.getSession()||o.getSession();r&&function(c,d){let f={};c.status==="ok"&&(f={status:"exited"}),xf(c,f)}(r),EC(),o.setSession(),i.setSession()}function EC(){const o=rm(),i=Cd(),r=ja(),c=i.getSession()||o.getSession();c&&r&&r.captureSession(c)}function DC(o=!1){o?AC():EC()}function V7(o,i,r){return i||`${function(c){return`${function(d){const f=d.protocol?`${d.protocol}:`:"",y=d.port?`:${d.port}`:"";return`${f}//${d.host}${y}${d.path?`/${d.path}`:""}/api/`}(c)}${c.projectId}/envelope/`}(o)}?${function(c,d){const f={sentry_version:"7"};return c.publicKey&&(f.sentry_key=c.publicKey),d&&(f.sentry_client=`${d.name}/${d.version}`),new URLSearchParams(f).toString()}(o,r)}`}const OC=[];function jC(o,i){for(const r of i)r&&r.afterAllSetup&&r.afterAllSetup(o)}function LC(o,i,r){if(r[i.name])gi&&un.log(`Integration skipped because it was already installed: ${i.name}`);else{if(r[i.name]=i,OC.indexOf(i.name)===-1&&typeof i.setupOnce=="function"&&(i.setupOnce(),OC.push(i.name)),i.setup&&typeof i.setup=="function"&&i.setup(o),typeof i.preprocessEvent=="function"){const c=i.preprocessEvent.bind(i);o.on("preprocessEvent",(d,f)=>c(d,f,o))}if(typeof i.processEvent=="function"){const c=i.processEvent.bind(i),d=Object.assign((f,y)=>c(f,y,o),{id:i.name});o.addEventProcessor(d)}gi&&un.log(`Integration installed: ${i.name}`)}}class ir extends Error{constructor(i,r="warn"){super(i),this.message=i,this.logLevel=r}}const RC="Not capturing exception because it's already been captured.";class I7{constructor(i){if(this._options=i,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],i.dsn?this._dsn=N7(i.dsn):gi&&un.warn("No DSN provided, client will not send events."),this._dsn){const c=V7(this._dsn,i.tunnel,i._metadata?i._metadata.sdk:void 0);this._transport=i.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...i.transportOptions,url:c})}const r=["enableTracing","tracesSampleRate","tracesSampler"].find(c=>c in i&&i[c]==null);r&&sm(()=>{console.warn(`[Sentry] Deprecation warning: \`${r}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(i,r,c){const d=co();if(lC(i))return gi&&un.log(RC),d;const f={event_id:d,...r};return this._process(this.eventFromException(i,f).then(y=>this._captureEvent(y,f,c))),f.event_id}captureMessage(i,r,c,d){const f={event_id:co(),...c},y=$2(i)?i:String(i),x=G2(i)?this.eventFromMessage(y,r,f):this.eventFromException(i,f);return this._process(x.then(v=>this._captureEvent(v,f,d))),f.event_id}captureEvent(i,r,c){const d=co();if(r&&r.originalException&&lC(r.originalException))return gi&&un.log(RC),d;const f={event_id:d,...r},y=(i.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(i,f,y||c)),f.event_id}captureSession(i){typeof i.release!="string"?gi&&un.warn("Discarded session because of missing or non-string release"):(this.sendSession(i),xf(i,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(i){const r=this._transport;return r?(this.emit("flush"),this._isClientDoneProcessing(i).then(c=>r.flush(i).then(d=>c&&d))):Sd(!0)}close(i){return this.flush(i).then(r=>(this.getOptions().enabled=!1,this.emit("close"),r))}getEventProcessors(){return this._eventProcessors}addEventProcessor(i){this._eventProcessors.push(i)}init(){(this._isEnabled()||this._options.integrations.some(({name:i})=>i.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(i){return this._integrations[i]}addIntegration(i){const r=this._integrations[i.name];LC(this,i,this._integrations),r||jC(this,[i])}sendEvent(i,r={}){this.emit("beforeSendEvent",i,r);let c=$7(i,this._dsn,this._options._metadata,this._options.tunnel);for(const f of r.attachments||[])c=z7(c,U7(f));const d=this.sendEnvelope(c);d&&d.then(f=>this.emit("afterSendEvent",i,f),null)}sendSession(i){const r=function(c,d,f,y){const x=CC(f);return lm({sent_at:new Date().toISOString(),...x&&{sdk:x},...!!y&&d&&{dsn:Gb(d)}},["aggregates"in c?[{type:"sessions"},c]:[{type:"session"},c.toJSON()]])}(i,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(i,r,c){if(this._options.sendClientReports){const d=typeof c=="number"?c:1,f=`${i}:${r}`;gi&&un.log(`Recording outcome: "${f}"${d>1?` (${d} times)`:""}`),this._outcomes[f]=(this._outcomes[f]||0)+d}}on(i,r){const c=this._hooks[i]=this._hooks[i]||[];return c.push(r),()=>{const d=c.indexOf(r);d>-1&&c.splice(d,1)}}emit(i,...r){const c=this._hooks[i];c&&c.forEach(d=>d(...r))}sendEnvelope(i){return this.emit("beforeEnvelope",i),this._isEnabled()&&this._transport?this._transport.send(i).then(null,r=>(gi&&un.error("Error while sending envelope:",r),r)):(gi&&un.error("Transport disabled"),Sd({}))}_setupIntegrations(){const{integrations:i}=this._options;this._integrations=function(r,c){const d={};return c.forEach(f=>{f&&LC(r,f,d)}),d}(this,i),jC(this,i)}_updateSessionFromEvent(i,r){let c=r.level==="fatal",d=!1;const f=r.exception&&r.exception.values;if(f){d=!0;for(const x of f){const v=x.mechanism;if(v&&v.handled===!1){c=!0;break}}}const y=i.status==="ok";(y&&i.errors===0||y&&c)&&(xf(i,{...c&&{status:"crashed"},errors:i.errors||Number(d||c)}),this.captureSession(i))}_isClientDoneProcessing(i){return new uo(r=>{let c=0;const d=setInterval(()=>{this._numProcessing==0?(clearInterval(d),r(!0)):(c+=1,i&&c>=i&&(clearInterval(d),r(!1)))},1)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(i,r,c=Cd(),d=rm()){const f=this.getOptions(),y=Object.keys(this._integrations);return!r.integrations&&y.length>0&&(r.integrations=y),this.emit("preprocessEvent",i,r),i.type||d.setLastEventId(i.event_id||r.event_id),P7(f,i,r,c,this,d).then(x=>{if(x===null)return x;x.contexts={trace:T7(c),...x.contexts};const v=function(S,j){const B=j.getPropagationContext();return B.dsc||bC(B.traceId,S)}(this,c);return x.sdkProcessingMetadata={dynamicSamplingContext:v,...x.sdkProcessingMetadata},x})}_captureEvent(i,r={},c){return this._processEvent(i,r,c).then(d=>d.event_id,d=>{gi&&(d instanceof ir&&d.logLevel==="log"?un.log(d.message):un.warn(d))})}_processEvent(i,r,c){const d=this.getOptions(),{sampleRate:f}=d,y=zC(i),x=NC(i),v=i.type||"error",S=`before send for type \`${v}\``,j=f===void 0?void 0:function(ne){if(typeof ne=="boolean")return Number(ne);const O=typeof ne=="string"?parseFloat(ne):ne;if(!(typeof O!="number"||isNaN(O)||O<0||O>1))return O;gi&&un.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(ne)} of type ${JSON.stringify(typeof ne)}.`)}(f);if(x&&typeof j=="number"&&Math.random()>j)return this.recordDroppedEvent("sample_rate","error",i),Hb(new ir(`Discarding event because it's not included in the random sample (sampling rate = ${f})`,"log"));const B=v==="replay_event"?"replay":v,ee=(i.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(i,r,c,ee).then(ne=>{if(ne===null)throw this.recordDroppedEvent("event_processor",B,i),new ir("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return ne;const O=function(V,ae,ie,U){const{beforeSend:P,beforeSendTransaction:X,beforeSendSpan:Q}=ae;if(NC(ie)&&P)return P(ie,U);if(zC(ie)){if(ie.spans&&Q){const $=[];for(const I of ie.spans){const he=Q(I);he?$.push(he):(j7(),V.recordDroppedEvent("before_send","span"))}ie.spans=$}if(X){if(ie.spans){const $=ie.spans.length;ie.sdkProcessingMetadata={...ie.sdkProcessingMetadata,spanCountBeforeProcessing:$}}return X(ie,U)}}return ie}(this,d,ne,r);return function(V,ae){const ie=`${ae} must return \`null\` or a valid event.`;if(Bb(V))return V.then(U=>{if(!yf(U)&&U!==null)throw new ir(ie);return U},U=>{throw new ir(`${ae} rejected with ${U}`)});if(!yf(V)&&V!==null)throw new ir(ie);return V}(O,S)}).then(ne=>{if(ne===null){if(this.recordDroppedEvent("before_send",B,i),y){const ae=1+(i.spans||[]).length;this.recordDroppedEvent("before_send","span",ae)}throw new ir(`${S} returned \`null\`, will not send event.`,"log")}const O=c&&c.getSession();if(!y&&O&&this._updateSessionFromEvent(O,ne),y){const ae=(ne.sdkProcessingMetadata&&ne.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(ne.spans?ne.spans.length:0);ae>0&&this.recordDroppedEvent("before_send","span",ae)}const V=ne.transaction_info;if(y&&V&&ne.transaction!==i.transaction){const ae="custom";ne.transaction_info={...V,source:ae}}return this.sendEvent(ne,r),ne}).then(null,ne=>{throw ne instanceof ir?ne:(this.captureException(ne,{data:{__sentry__:!0},originalException:ne}),new ir(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
119
|
-
Reason: ${ne}`))})}_process(i){this._numProcessing++,i.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_clearOutcomes(){const i=this._outcomes;return this._outcomes={},Object.entries(i).map(([r,c])=>{const[d,f]=r.split(":");return{reason:d,category:f,quantity:c}})}_flushOutcomes(){gi&&
|
|
120
|
-
Event: ${qc(y)}`),!0):function(v,S){return v.type||!S||!S.length?!1:function(j){const B=[];j.message&&B.push(j.message);let ee;try{ee=j.exception.values[j.exception.values.length-1]}catch{}return ee&&ee.value&&(B.push(ee.value),ee.type&&B.push(`${ee.type}: ${ee.value}`)),B}(v).some(j=>Ub(j,S))}(y,x.ignoreErrors)?(gi&&
|
|
121
|
-
Event: ${qc(y)}`),!0):function(v){return v.type||!v.exception||!v.exception.values||v.exception.values.length===0?!1:!v.message&&!v.exception.values.some(S=>S.stacktrace||S.type&&S.type!=="Error"||S.value)}(y)?(gi&&
|
|
122
|
-
Event: ${qc(y)}`),!0):function(v,S){if(v.type!=="transaction"||!S||!S.length)return!1;const j=v.transaction;return!!j&&Ub(j,S)}(y,x.ignoreTransactions)?(gi&&
|
|
123
|
-
Event: ${qc(y)}`),!0):function(v,S){if(!S||!S.length)return!1;const j=Ib(v);return!!j&&Ub(j,S)}(y,x.denyUrls)?(gi&&
|
|
118
|
+
`),typeof x=="string"||x instanceof Uint8Array)d(x);else{let v;try{v=JSON.stringify(x)}catch{v=JSON.stringify(zl(x))}d(v)}}return typeof c=="string"?c:function(f){const y=f.reduce((S,j)=>S+j.length,0),x=new Uint8Array(y);let v=0;for(const S of f)x.set(S,v),v+=S.length;return x}(c)}function U7(o){const i=typeof o.data=="string"?K2(o.data):o.data;return[lo({type:"attachment",length:i.length,filename:o.filename,content_type:o.contentType,attachment_type:o.attachmentType}),i]}const H7={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function SC(o){return H7[o]}function CC(o){if(!o||!o.sdk)return;const{name:i,version:r}=o.sdk;return{name:i,version:r}}function $7(o,i,r,c){const d=CC(r),f=o.type&&o.type!=="replay_event"?o.type:"event";(function(x,v){v&&(x.sdk=x.sdk||{},x.sdk.name=x.sdk.name||v.name,x.sdk.version=x.sdk.version||v.version,x.sdk.integrations=[...x.sdk.integrations||[],...v.integrations||[]],x.sdk.packages=[...x.sdk.packages||[],...v.packages||[]])})(o,r&&r.sdk);const y=function(x,v,S,j){const B=x.sdkProcessingMetadata&&x.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:x.event_id,sent_at:new Date().toISOString(),...v&&{sdk:v},...!!S&&j&&{dsn:Gb(j)},...B&&{trace:lo({...B})}}}(o,d,c,i);return delete o.sdkProcessingMetadata,lm(y,[[{type:f},o]])}function ex(o,i,r,c=0){return new uo((d,f)=>{const y=o[c];if(i===null||typeof y!="function")d(i);else{const x=y({...i},r);gi&&y.id&&x===null&&dn.log(`Event processor "${y.id}" dropped event`),Bb(x)?x.then(v=>ex(o,v,r,c+1).then(d)).then(null,f):ex(o,x,r,c+1).then(d).then(null,f)}})}let Pb,wC,tx;function G7(o,i){const{fingerprint:r,span:c,breadcrumbs:d,sdkProcessingMetadata:f}=i;(function(y,x){const{extra:v,tags:S,user:j,contexts:B,level:ee,transactionName:ne}=x,O=lo(v);O&&Object.keys(O).length&&(y.extra={...O,...y.extra});const V=lo(S);V&&Object.keys(V).length&&(y.tags={...V,...y.tags});const ae=lo(j);ae&&Object.keys(ae).length&&(y.user={...ae,...y.user});const ie=lo(B);ie&&Object.keys(ie).length&&(y.contexts={...ie,...y.contexts}),ee&&(y.level=ee),ne&&y.type!=="transaction"&&(y.transaction=ne)})(o,i),c&&function(y,x){y.contexts={trace:D7(x),...y.contexts},y.sdkProcessingMetadata={dynamicSamplingContext:L7(x),...y.sdkProcessingMetadata};const v=yC(x),S=Q2(v).description;S&&!y.transaction&&y.type==="transaction"&&(y.transaction=S)}(o,c),function(y,x){y.fingerprint=y.fingerprint?Array.isArray(y.fingerprint)?y.fingerprint:[y.fingerprint]:[],x&&(y.fingerprint=y.fingerprint.concat(x)),y.fingerprint&&!y.fingerprint.length&&delete y.fingerprint}(o,r),function(y,x){const v=[...y.breadcrumbs||[],...x];y.breadcrumbs=v.length?v:void 0}(o,d),function(y,x){y.sdkProcessingMetadata={...y.sdkProcessingMetadata,...x}}(o,f)}function kC(o,i){const{extra:r,tags:c,user:d,contexts:f,level:y,sdkProcessingMetadata:x,breadcrumbs:v,fingerprint:S,eventProcessors:j,attachments:B,propagationContext:ee,transactionName:ne,span:O}=i;Vb(o,"extra",r),Vb(o,"tags",c),Vb(o,"user",d),Vb(o,"contexts",f),o.sdkProcessingMetadata=$b(o.sdkProcessingMetadata,x,2),y&&(o.level=y),ne&&(o.transactionName=ne),O&&(o.span=O),v.length&&(o.breadcrumbs=[...o.breadcrumbs,...v]),S.length&&(o.fingerprint=[...o.fingerprint,...S]),j.length&&(o.eventProcessors=[...o.eventProcessors,...j]),B.length&&(o.attachments=[...o.attachments,...B]),o.propagationContext={...o.propagationContext,...ee}}function Vb(o,i,r){o[i]=$b(o[i],r,1)}function P7(o,i,r,c,d,f){const{normalizeDepth:y=3,normalizeMaxBreadth:x=1e3}=o,v={...i,event_id:i.event_id||r.event_id||co(),timestamp:i.timestamp||om()},S=r.integrations||o.integrations.map(O=>O.name);(function(O,V){const{environment:ae,release:ie,dist:U,maxValueLength:P=250}=V;O.environment=O.environment||ae||W2,!O.release&&ie&&(O.release=ie),!O.dist&&U&&(O.dist=U),O.message&&(O.message=bf(O.message,P));const X=O.exception&&O.exception.values&&O.exception.values[0];X&&X.value&&(X.value=bf(X.value,P));const Q=O.request;Q&&Q.url&&(Q.url=bf(Q.url,P))})(v,o),function(O,V){V.length>0&&(O.sdk=O.sdk||{},O.sdk.integrations=[...O.sdk.integrations||[],...V])}(v,S),d&&d.emit("applyFrameMetadata",i),i.type===void 0&&function(O,V){const ae=function(ie){const U=Wn._sentryDebugIds;if(!U)return{};const P=Object.keys(U);return tx&&P.length===wC||(wC=P.length,tx=P.reduce((X,Q)=>{Pb||(Pb={});const $=Pb[Q];if($)X[$[0]]=$[1];else{const I=ie(Q);for(let he=I.length-1;he>=0;he--){const oe=I[he],te=oe&&oe.filename,z=U[Q];if(te&&z){X[te]=z,Pb[Q]=[te,z];break}}}return X},{})),tx}(V);try{O.exception.values.forEach(ie=>{ie.stacktrace.frames.forEach(U=>{ae&&U.filename&&(U.debug_id=ae[U.filename])})})}catch{}}(v,o.stackParser);const j=function(O,V){if(!V)return O;const ae=O?O.clone():new Yc;return ae.update(V),ae}(c,r.captureContext);r.mechanism&&vf(v,r.mechanism);const B=d?d.getEventProcessors():[],ee=Ob("globalScope",()=>new Yc).getScopeData();f&&kC(ee,f.getScopeData()),j&&kC(ee,j.getScopeData());const ne=[...r.attachments||[],...ee.attachments];return ne.length&&(r.attachments=ne),G7(v,ee),ex([...B,...ee.eventProcessors],v,r).then(O=>(O&&function(V){const ae={};try{V.exception.values.forEach(U=>{U.stacktrace.frames.forEach(P=>{P.debug_id&&(P.abs_path?ae[P.abs_path]=P.debug_id:P.filename&&(ae[P.filename]=P.debug_id),delete P.debug_id)})})}catch{}if(Object.keys(ae).length===0)return;V.debug_meta=V.debug_meta||{},V.debug_meta.images=V.debug_meta.images||[];const ie=V.debug_meta.images;Object.entries(ae).forEach(([U,P])=>{ie.push({type:"sourcemap",code_file:U,debug_id:P})})}(O),typeof y=="number"&&y>0?function(V,ae,ie){if(!V)return null;const U={...V,...V.breadcrumbs&&{breadcrumbs:V.breadcrumbs.map(P=>({...P,...P.data&&{data:zl(P.data,ae,ie)}}))},...V.user&&{user:zl(V.user,ae,ie)},...V.contexts&&{contexts:zl(V.contexts,ae,ie)},...V.extra&&{extra:zl(V.extra,ae,ie)}};return V.contexts&&V.contexts.trace&&U.contexts&&(U.contexts.trace=V.contexts.trace,V.contexts.trace.data&&(U.contexts.trace.data=zl(V.contexts.trace.data,ae,ie))),V.spans&&(U.spans=V.spans.map(P=>({...P,...P.data&&{data:zl(P.data,ae,ie)}}))),V.contexts&&V.contexts.flags&&U.contexts&&(U.contexts.flags=zl(V.contexts.flags,3,ie)),U}(O,y,x):O))}function dE(o){}function TC(o,i){return Cd().captureEvent(o,i)}function MC(o){const i=ja(),r=rm(),c=Cd(),{release:d,environment:f=W2}=i&&i.getOptions()||{},{userAgent:y}=Wn.navigator||{},x=S7({release:d,environment:f,user:c.getUser()||r.getUser(),...y&&{userAgent:y},...o}),v=r.getSession();return v&&v.status==="ok"&&xf(v,{status:"exited"}),AC(),r.setSession(x),c.setSession(x),x}function AC(){const o=rm(),i=Cd(),r=i.getSession()||o.getSession();r&&function(c,d){let f={};c.status==="ok"&&(f={status:"exited"}),xf(c,f)}(r),EC(),o.setSession(),i.setSession()}function EC(){const o=rm(),i=Cd(),r=ja(),c=i.getSession()||o.getSession();c&&r&&r.captureSession(c)}function DC(o=!1){o?AC():EC()}function V7(o,i,r){return i||`${function(c){return`${function(d){const f=d.protocol?`${d.protocol}:`:"",y=d.port?`:${d.port}`:"";return`${f}//${d.host}${y}${d.path?`/${d.path}`:""}/api/`}(c)}${c.projectId}/envelope/`}(o)}?${function(c,d){const f={sentry_version:"7"};return c.publicKey&&(f.sentry_key=c.publicKey),d&&(f.sentry_client=`${d.name}/${d.version}`),new URLSearchParams(f).toString()}(o,r)}`}const OC=[];function jC(o,i){for(const r of i)r&&r.afterAllSetup&&r.afterAllSetup(o)}function LC(o,i,r){if(r[i.name])gi&&dn.log(`Integration skipped because it was already installed: ${i.name}`);else{if(r[i.name]=i,OC.indexOf(i.name)===-1&&typeof i.setupOnce=="function"&&(i.setupOnce(),OC.push(i.name)),i.setup&&typeof i.setup=="function"&&i.setup(o),typeof i.preprocessEvent=="function"){const c=i.preprocessEvent.bind(i);o.on("preprocessEvent",(d,f)=>c(d,f,o))}if(typeof i.processEvent=="function"){const c=i.processEvent.bind(i),d=Object.assign((f,y)=>c(f,y,o),{id:i.name});o.addEventProcessor(d)}gi&&dn.log(`Integration installed: ${i.name}`)}}class ir extends Error{constructor(i,r="warn"){super(i),this.message=i,this.logLevel=r}}const RC="Not capturing exception because it's already been captured.";class I7{constructor(i){if(this._options=i,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],i.dsn?this._dsn=N7(i.dsn):gi&&dn.warn("No DSN provided, client will not send events."),this._dsn){const c=V7(this._dsn,i.tunnel,i._metadata?i._metadata.sdk:void 0);this._transport=i.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...i.transportOptions,url:c})}const r=["enableTracing","tracesSampleRate","tracesSampler"].find(c=>c in i&&i[c]==null);r&&sm(()=>{console.warn(`[Sentry] Deprecation warning: \`${r}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(i,r,c){const d=co();if(lC(i))return gi&&dn.log(RC),d;const f={event_id:d,...r};return this._process(this.eventFromException(i,f).then(y=>this._captureEvent(y,f,c))),f.event_id}captureMessage(i,r,c,d){const f={event_id:co(),...c},y=$2(i)?i:String(i),x=G2(i)?this.eventFromMessage(y,r,f):this.eventFromException(i,f);return this._process(x.then(v=>this._captureEvent(v,f,d))),f.event_id}captureEvent(i,r,c){const d=co();if(r&&r.originalException&&lC(r.originalException))return gi&&dn.log(RC),d;const f={event_id:d,...r},y=(i.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(i,f,y||c)),f.event_id}captureSession(i){typeof i.release!="string"?gi&&dn.warn("Discarded session because of missing or non-string release"):(this.sendSession(i),xf(i,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(i){const r=this._transport;return r?(this.emit("flush"),this._isClientDoneProcessing(i).then(c=>r.flush(i).then(d=>c&&d))):Sd(!0)}close(i){return this.flush(i).then(r=>(this.getOptions().enabled=!1,this.emit("close"),r))}getEventProcessors(){return this._eventProcessors}addEventProcessor(i){this._eventProcessors.push(i)}init(){(this._isEnabled()||this._options.integrations.some(({name:i})=>i.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(i){return this._integrations[i]}addIntegration(i){const r=this._integrations[i.name];LC(this,i,this._integrations),r||jC(this,[i])}sendEvent(i,r={}){this.emit("beforeSendEvent",i,r);let c=$7(i,this._dsn,this._options._metadata,this._options.tunnel);for(const f of r.attachments||[])c=z7(c,U7(f));const d=this.sendEnvelope(c);d&&d.then(f=>this.emit("afterSendEvent",i,f),null)}sendSession(i){const r=function(c,d,f,y){const x=CC(f);return lm({sent_at:new Date().toISOString(),...x&&{sdk:x},...!!y&&d&&{dsn:Gb(d)}},["aggregates"in c?[{type:"sessions"},c]:[{type:"session"},c.toJSON()]])}(i,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(i,r,c){if(this._options.sendClientReports){const d=typeof c=="number"?c:1,f=`${i}:${r}`;gi&&dn.log(`Recording outcome: "${f}"${d>1?` (${d} times)`:""}`),this._outcomes[f]=(this._outcomes[f]||0)+d}}on(i,r){const c=this._hooks[i]=this._hooks[i]||[];return c.push(r),()=>{const d=c.indexOf(r);d>-1&&c.splice(d,1)}}emit(i,...r){const c=this._hooks[i];c&&c.forEach(d=>d(...r))}sendEnvelope(i){return this.emit("beforeEnvelope",i),this._isEnabled()&&this._transport?this._transport.send(i).then(null,r=>(gi&&dn.error("Error while sending envelope:",r),r)):(gi&&dn.error("Transport disabled"),Sd({}))}_setupIntegrations(){const{integrations:i}=this._options;this._integrations=function(r,c){const d={};return c.forEach(f=>{f&&LC(r,f,d)}),d}(this,i),jC(this,i)}_updateSessionFromEvent(i,r){let c=r.level==="fatal",d=!1;const f=r.exception&&r.exception.values;if(f){d=!0;for(const x of f){const v=x.mechanism;if(v&&v.handled===!1){c=!0;break}}}const y=i.status==="ok";(y&&i.errors===0||y&&c)&&(xf(i,{...c&&{status:"crashed"},errors:i.errors||Number(d||c)}),this.captureSession(i))}_isClientDoneProcessing(i){return new uo(r=>{let c=0;const d=setInterval(()=>{this._numProcessing==0?(clearInterval(d),r(!0)):(c+=1,i&&c>=i&&(clearInterval(d),r(!1)))},1)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(i,r,c=Cd(),d=rm()){const f=this.getOptions(),y=Object.keys(this._integrations);return!r.integrations&&y.length>0&&(r.integrations=y),this.emit("preprocessEvent",i,r),i.type||d.setLastEventId(i.event_id||r.event_id),P7(f,i,r,c,this,d).then(x=>{if(x===null)return x;x.contexts={trace:T7(c),...x.contexts};const v=function(S,j){const B=j.getPropagationContext();return B.dsc||bC(B.traceId,S)}(this,c);return x.sdkProcessingMetadata={dynamicSamplingContext:v,...x.sdkProcessingMetadata},x})}_captureEvent(i,r={},c){return this._processEvent(i,r,c).then(d=>d.event_id,d=>{gi&&(d instanceof ir&&d.logLevel==="log"?dn.log(d.message):dn.warn(d))})}_processEvent(i,r,c){const d=this.getOptions(),{sampleRate:f}=d,y=zC(i),x=NC(i),v=i.type||"error",S=`before send for type \`${v}\``,j=f===void 0?void 0:function(ne){if(typeof ne=="boolean")return Number(ne);const O=typeof ne=="string"?parseFloat(ne):ne;if(!(typeof O!="number"||isNaN(O)||O<0||O>1))return O;gi&&dn.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(ne)} of type ${JSON.stringify(typeof ne)}.`)}(f);if(x&&typeof j=="number"&&Math.random()>j)return this.recordDroppedEvent("sample_rate","error",i),Hb(new ir(`Discarding event because it's not included in the random sample (sampling rate = ${f})`,"log"));const B=v==="replay_event"?"replay":v,ee=(i.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(i,r,c,ee).then(ne=>{if(ne===null)throw this.recordDroppedEvent("event_processor",B,i),new ir("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return ne;const O=function(V,ae,ie,U){const{beforeSend:P,beforeSendTransaction:X,beforeSendSpan:Q}=ae;if(NC(ie)&&P)return P(ie,U);if(zC(ie)){if(ie.spans&&Q){const $=[];for(const I of ie.spans){const he=Q(I);he?$.push(he):(j7(),V.recordDroppedEvent("before_send","span"))}ie.spans=$}if(X){if(ie.spans){const $=ie.spans.length;ie.sdkProcessingMetadata={...ie.sdkProcessingMetadata,spanCountBeforeProcessing:$}}return X(ie,U)}}return ie}(this,d,ne,r);return function(V,ae){const ie=`${ae} must return \`null\` or a valid event.`;if(Bb(V))return V.then(U=>{if(!yf(U)&&U!==null)throw new ir(ie);return U},U=>{throw new ir(`${ae} rejected with ${U}`)});if(!yf(V)&&V!==null)throw new ir(ie);return V}(O,S)}).then(ne=>{if(ne===null){if(this.recordDroppedEvent("before_send",B,i),y){const ae=1+(i.spans||[]).length;this.recordDroppedEvent("before_send","span",ae)}throw new ir(`${S} returned \`null\`, will not send event.`,"log")}const O=c&&c.getSession();if(!y&&O&&this._updateSessionFromEvent(O,ne),y){const ae=(ne.sdkProcessingMetadata&&ne.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(ne.spans?ne.spans.length:0);ae>0&&this.recordDroppedEvent("before_send","span",ae)}const V=ne.transaction_info;if(y&&V&&ne.transaction!==i.transaction){const ae="custom";ne.transaction_info={...V,source:ae}}return this.sendEvent(ne,r),ne}).then(null,ne=>{throw ne instanceof ir?ne:(this.captureException(ne,{data:{__sentry__:!0},originalException:ne}),new ir(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
119
|
+
Reason: ${ne}`))})}_process(i){this._numProcessing++,i.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_clearOutcomes(){const i=this._outcomes;return this._outcomes={},Object.entries(i).map(([r,c])=>{const[d,f]=r.split(":");return{reason:d,category:f,quantity:c}})}_flushOutcomes(){gi&&dn.log("Flushing outcomes...");const i=this._clearOutcomes();if(i.length===0)return void(gi&&dn.log("No outcomes to send"));if(!this._dsn)return void(gi&&dn.log("No dsn provided, will not send outcomes"));gi&&dn.log("Sending outcomes:",i);const r=(c=i,lm((d=this._options.tunnel&&Gb(this._dsn))?{dsn:d}:{},[[{type:"client_report"},{timestamp:f||om(),discarded_events:c}]]));var c,d,f;this.sendEnvelope(r)}}function NC(o){return o.type===void 0}function zC(o){return o.type==="transaction"}function q7(o){const i=[];function r(c){return i.splice(i.indexOf(c),1)[0]||Promise.resolve(void 0)}return{$:i,add:function(c){if(!(o===void 0||i.length<o))return Hb(new ir("Not adding Promise because buffer limit was reached."));const d=c();return i.indexOf(d)===-1&&i.push(d),d.then(()=>r(d)).then(null,()=>r(d).then(null,()=>{})),d},drain:function(c){return new uo((d,f)=>{let y=i.length;if(!y)return d(!0);const x=setTimeout(()=>{c&&c>0&&d(!1)},c);i.forEach(v=>{Sd(v).then(()=>{--y||(clearTimeout(x),d(!0))},f)})})}}}function Y7(o,{statusCode:i,headers:r},c=Date.now()){const d={...o},f=r&&r["x-sentry-rate-limits"],y=r&&r["retry-after"];if(f)for(const x of f.trim().split(",")){const[v,S,,,j]=x.split(":",5),B=parseInt(v,10),ee=1e3*(isNaN(B)?60:B);if(S)for(const ne of S.split(";"))ne==="metric_bucket"&&j&&!j.split(";").includes("custom")||(d[ne]=c+ee);else d.all=c+ee}else y?d.all=c+function(x,v=Date.now()){const S=parseInt(`${x}`,10);if(!isNaN(S))return 1e3*S;const j=Date.parse(`${x}`);return isNaN(j)?6e4:j-v}(y,c):i===429&&(d.all=c+6e4);return d}function F7(o,i,r=q7(o.bufferSize||64)){let c={};return{send:function(d){const f=[];if(_C(d,(v,S)=>{const j=SC(S);if(function(B,ee,ne=Date.now()){return function(O,V){return O[V]||O.all||0}(B,ee)>ne}(c,j)){const B=BC(v,S);o.recordDroppedEvent("ratelimit_backoff",j,B)}else f.push(v)}),f.length===0)return Sd({});const y=lm(d[0],f),x=v=>{_C(y,(S,j)=>{const B=BC(S,j);o.recordDroppedEvent(v,SC(j),B)})};return r.add(()=>i({body:B7(y)}).then(v=>(v.statusCode!==void 0&&(v.statusCode<200||v.statusCode>=300)&&gi&&dn.warn(`Sentry responded with status code ${v.statusCode} to sent event.`),c=Y7(c,v),v),v=>{throw x("network_error"),v})).then(v=>v,v=>{if(v instanceof ir)return gi&&dn.error("Skipped sending event because buffer is full."),x("queue_overflow"),Sd({});throw v})},flush:d=>r.drain(d)}}function BC(o,i){if(i==="event"||i==="transaction")return Array.isArray(o)?o[1]:void 0}const X7=100;function wd(o,i){const r=ja(),c=rm();if(!r)return;const{beforeBreadcrumb:d=null,maxBreadcrumbs:f=X7}=r.getOptions();if(f<=0)return;const y={timestamp:om(),...o},x=d?sm(()=>d(y,i)):y;x!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",x,i),c.addBreadcrumb(x,f))}let UC;const HC=new WeakMap,Z7=()=>({name:"FunctionToString",setupOnce(){UC=Function.prototype.toString;try{Function.prototype.toString=function(...o){const i=V2(this),r=HC.has(ja())&&i!==void 0?i:this;return UC.apply(r,o)}}catch{}},setup(o){HC.set(o,!0)}}),Q7=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],W7=(o={})=>({name:"InboundFilters",processEvent(i,r,c){const d=c.getOptions(),f=function(y={},x={}){return{allowUrls:[...y.allowUrls||[],...x.allowUrls||[]],denyUrls:[...y.denyUrls||[],...x.denyUrls||[]],ignoreErrors:[...y.ignoreErrors||[],...x.ignoreErrors||[],...y.disableErrorDefaults?[]:Q7],ignoreTransactions:[...y.ignoreTransactions||[],...x.ignoreTransactions||[]],ignoreInternal:y.ignoreInternal===void 0||y.ignoreInternal}}(o,d);return function(y,x){return x.ignoreInternal&&function(v){try{return v.exception.values[0].type==="SentryError"}catch{}return!1}(y)?(gi&&dn.warn(`Event dropped due to being internal Sentry Error.
|
|
120
|
+
Event: ${qc(y)}`),!0):function(v,S){return v.type||!S||!S.length?!1:function(j){const B=[];j.message&&B.push(j.message);let ee;try{ee=j.exception.values[j.exception.values.length-1]}catch{}return ee&&ee.value&&(B.push(ee.value),ee.type&&B.push(`${ee.type}: ${ee.value}`)),B}(v).some(j=>Ub(j,S))}(y,x.ignoreErrors)?(gi&&dn.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
121
|
+
Event: ${qc(y)}`),!0):function(v){return v.type||!v.exception||!v.exception.values||v.exception.values.length===0?!1:!v.message&&!v.exception.values.some(S=>S.stacktrace||S.type&&S.type!=="Error"||S.value)}(y)?(gi&&dn.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
122
|
+
Event: ${qc(y)}`),!0):function(v,S){if(v.type!=="transaction"||!S||!S.length)return!1;const j=v.transaction;return!!j&&Ub(j,S)}(y,x.ignoreTransactions)?(gi&&dn.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
123
|
+
Event: ${qc(y)}`),!0):function(v,S){if(!S||!S.length)return!1;const j=Ib(v);return!!j&&Ub(j,S)}(y,x.denyUrls)?(gi&&dn.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
124
124
|
Event: ${qc(y)}.
|
|
125
|
-
Url: ${Ib(y)}`),!0):function(v,S){if(!S||!S.length)return!0;const j=Ib(v);return!j||Ub(j,S)}(y,x.allowUrls)?!1:(gi&&
|
|
125
|
+
Url: ${Ib(y)}`),!0):function(v,S){if(!S||!S.length)return!0;const j=Ib(v);return!j||Ub(j,S)}(y,x.allowUrls)?!1:(gi&&dn.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
126
126
|
Event: ${qc(y)}.
|
|
127
|
-
Url: ${Ib(y)}`),!0)}(i,f)?null:i}});function Ib(o){try{let i;try{i=o.exception.values[0].stacktrace.frames}catch{}return i?function(r=[]){for(let c=r.length-1;c>=0;c--){const d=r[c];if(d&&d.filename!=="<anonymous>"&&d.filename!=="[native code]")return d.filename||null}return null}(i):null}catch{return gi&&un.error(`Cannot extract url for event ${qc(o)}`),null}}function J7(o,i,r=250,c,d,f,y){if(!(f.exception&&f.exception.values&&y&&xd(y.originalException,Error)))return;const x=f.exception.values.length>0?f.exception.values[f.exception.values.length-1]:void 0;var v,S;x&&(f.exception.values=(v=nx(o,i,d,y.originalException,c,f.exception.values,x,0),S=r,v.map(j=>(j.value&&(j.value=bf(j.value,S)),j))))}function nx(o,i,r,c,d,f,y,x){if(f.length>=r+1)return f;let v=[...f];if(xd(c[d],Error)){$C(y,x);const S=o(i,c[d]),j=v.length;GC(S,d,j,x),v=nx(o,i,r,c[d],d,[S,...v],S,j)}return Array.isArray(c.errors)&&c.errors.forEach((S,j)=>{if(xd(S,Error)){$C(y,x);const B=o(i,S),ee=v.length;GC(B,`errors[${j}]`,ee,x),v=nx(o,i,r,S,d,[B,...v],B,ee)}}),v}function $C(o,i){o.mechanism=o.mechanism||{type:"generic",handled:!0},o.mechanism={...o.mechanism,...o.type==="AggregateError"&&{is_exception_group:!0},exception_id:i}}function GC(o,i,r,c){o.mechanism=o.mechanism||{type:"generic",handled:!0},o.mechanism={...o.mechanism,type:"chained",source:i,exception_id:r,parent_id:c}}function ix(o){if(!o)return{};const i=o.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!i)return{};const r=i[6]||"",c=i[8]||"";return{host:i[4],path:i[5],protocol:i[2],search:r,hash:c,relative:i[5]+r+c}}function K7(){"console"in Wn&&N2.forEach(function(o){o in Wn.console&&Gs(Wn.console,o,function(i){return jb[o]=i,function(...r){nr("console",{args:r,level:o});const c=jb[o];c&&c.apply(Wn.console,r)}})})}function eM(o){return o==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(o)?o:"log"}const tM=()=>{let o;return{name:"Dedupe",processEvent(i){if(i.type)return i;try{if(function(r,c){return c?!!(function(d,f){const y=d.message,x=f.message;return!(!y&&!x||y&&!x||!y&&x||y!==x||!VC(d,f)||!PC(d,f))}(r,c)||function(d,f){const y=IC(f),x=IC(d);return!(!y||!x||y.type!==x.type||y.value!==x.value||!VC(d,f)||!PC(d,f))}(r,c)):!1}(i,o))return gi&&un.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return o=i}}};function PC(o,i){let r=Z3(o),c=Z3(i);if(!r&&!c)return!0;if(r&&!c||!r&&c||c.length!==r.length)return!1;for(let d=0;d<c.length;d++){const f=c[d],y=r[d];if(f.filename!==y.filename||f.lineno!==y.lineno||f.colno!==y.colno||f.function!==y.function)return!1}return!0}function VC(o,i){let r=o.fingerprint,c=i.fingerprint;if(!r&&!c)return!0;if(r&&!c||!r&&c)return!1;try{return r.join("")===c.join("")}catch{return!1}}function IC(o){return o.exception&&o.exception.values&&o.exception.values[0]}function qC(o){return o===void 0?void 0:o>=400&&o<500?"warning":o>=500?"error":void 0}const ax=Wn;function sx(o){return o&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(o.toString())}function nM(){if(typeof EdgeRuntime=="string")return!0;if(!function(){if(!("fetch"in ax))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}())return!1;if(sx(ax.fetch))return!0;let o=!1;const i=ax.document;if(i&&typeof i.createElement=="function")try{const r=i.createElement("iframe");r.hidden=!0,i.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(o=sx(r.contentWindow.fetch)),i.head.removeChild(r)}catch(r){md&&un.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return o}function iM(o,i){const r="fetch";bd(r,o),vd(r,()=>function(c,d=!1){d&&!nM()||Gs(Wn,"fetch",function(f){return function(...y){const x=new Error,{method:v,url:S}=function(B){if(B.length===0)return{method:"GET",url:""};if(B.length===2){const[ne,O]=B;return{url:YC(ne),method:ox(O,"method")?String(O.method).toUpperCase():"GET"}}const ee=B[0];return{url:YC(ee),method:ox(ee,"method")?String(ee.method).toUpperCase():"GET"}}(y),j={args:y,fetchData:{method:v,url:S},startTimestamp:1e3*Rl(),virtualError:x};return c||nr("fetch",{...j}),f.apply(Wn,y).then(async B=>(c?c(B):nr("fetch",{...j,endTimestamp:1e3*Rl(),response:B}),B),B=>{throw nr("fetch",{...j,endTimestamp:1e3*Rl(),error:B}),H2(B)&&B.stack===void 0&&(B.stack=x.stack,_d(B,"framesToPop",1)),B})}})}(void 0,i))}function ox(o,i){return!!o&&typeof o=="object"&&!!o[i]}function YC(o){return typeof o=="string"?o:o?ox(o,"url")?o.url:o.toString?o.toString():"":""}const qb=Wn,pa=Wn;let rx=0;function FC(){return rx>0}function Sf(o,i={}){if(!function(c){return typeof c=="function"}(o))return o;try{const c=o.__sentry_wrapped__;if(c)return typeof c=="function"?c:o;if(V2(o))return o}catch{return o}const r=function(...c){try{const d=c.map(f=>Sf(f,i));return o.apply(this,d)}catch(d){throw rx++,setTimeout(()=>{rx--}),function(...f){const y=Z2(Nb());if(f.length===2){const[x,v]=f;return x?y.withSetScope(x,v):y.withScope(v)}y.withScope(f[0])}(f=>{var y;f.addEventProcessor(x=>(i.mechanism&&(q2(x,void 0),vf(x,i.mechanism)),x.extra={...x.extra,arguments:c},x)),y=d,Cd().captureException(y,void 0)}),d}};try{for(const c in o)Object.prototype.hasOwnProperty.call(o,c)&&(r[c]=o[c])}catch{}iC(r,o),_d(o,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>o.name})}catch{}return r}const Yb=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function lx(o,i){const r=ux(o,i),c={type:oM(i),value:rM(i)};return r.length&&(c.stacktrace={frames:r}),c.type===void 0&&c.value===""&&(c.value="Unrecoverable error caught"),c}function aM(o,i,r,c){const d=ja(),f=d&&d.getOptions().normalizeDepth,y=function(S){for(const j in S)if(Object.prototype.hasOwnProperty.call(S,j)){const B=S[j];if(B instanceof Error)return B}}(i),x={__serialized__:xC(i,f)};if(y)return{exception:{values:[lx(o,y)]},extra:x};const v={exception:{values:[{type:zb(i)?i.constructor.name:c?"UnhandledRejection":"Error",value:lM(i,{isUnhandledRejection:c})}]},extra:x};if(r){const S=ux(o,r);S.length&&(v.exception.values[0].stacktrace={frames:S})}return v}function cx(o,i){return{exception:{values:[lx(o,i)]}}}function ux(o,i){const r=i.stacktrace||i.stack||"",c=function(f){return f&&sM.test(f.message)?1:0}(i),d=function(f){return typeof f.framesToPop=="number"?f.framesToPop:0}(i);try{return o(r,c,d)}catch{}return[]}const sM=/Minified React error #\d+;/i;function XC(o){return typeof WebAssembly<"u"&&WebAssembly.Exception!==void 0&&o instanceof WebAssembly.Exception}function oM(o){const i=o&&o.name;return!i&&XC(o)?o.message&&Array.isArray(o.message)&&o.message.length==2?o.message[0]:"WebAssembly.Exception":i}function rM(o){const i=o&&o.message;return i?i.error&&typeof i.error.message=="string"?i.error.message:XC(o)&&Array.isArray(o.message)&&o.message.length==2?o.message[1]:i:"No error message"}function dx(o,i,r,c,d){let f;if(J3(i)&&i.error)return cx(o,i.error);if(K3(i)||mf(i,"DOMException")){const y=i;if("stack"in i)f=cx(o,i);else{const x=y.name||(K3(y)?"DOMError":"DOMException"),v=y.message?`${x}: ${y.message}`:x;f=hx(o,v,r,c),q2(f,v)}return"code"in y&&(f.tags={...f.tags,"DOMException.code":`${y.code}`}),f}return H2(i)?cx(o,i):yf(i)||zb(i)?(f=aM(o,i,r,d),vf(f,{synthetic:!0}),f):(f=hx(o,i,r,c),q2(f,`${i}`),vf(f,{synthetic:!0}),f)}function hx(o,i,r,c){const d={};if(c&&r){const f=ux(o,r);f.length&&(d.exception={values:[{value:i,stacktrace:{frames:f}}]}),vf(d,{synthetic:!0})}if($2(i)){const{__sentry_template_string__:f,__sentry_template_values__:y}=i;return d.logentry={message:f,params:y},d}return d.message=i,d}function lM(o,{isUnhandledRejection:i}){const r=function(d,f=40){const y=Object.keys(aC(d));y.sort();const x=y[0];if(!x)return"[object has no keys]";if(x.length>=f)return bf(x,f);for(let v=y.length;v>0;v--){const S=y.slice(0,v).join(", ");if(!(S.length>f))return v===y.length?S:bf(S,f)}return""}(o),c=i?"promise rejection":"exception";return J3(o)?`Event \`ErrorEvent\` captured as ${c} with message \`${o.message}\``:zb(o)?`Event \`${function(d){try{const f=Object.getPrototypeOf(d);return f?f.constructor.name:void 0}catch{}}(o)}\` (type=${o.type}) captured as ${c}`:`Object captured as ${c} with keys: ${r}`}class cM extends I7{constructor(i){const r={parentSpanIsAlwaysRootSpan:!0,...i};(function(c,d,f=[d],y="npm"){const x=c._metadata||{};x.sdk||(x.sdk={name:`sentry.javascript.${d}`,packages:f.map(v=>({name:`${y}:@sentry/${v}`,version:gd})),version:gd}),c._metadata=x})(r,"browser",["browser"],pa.SENTRY_SDK_SOURCE||"npm"),super(r),r.sendClientReports&&pa.document&&pa.document.addEventListener("visibilitychange",()=>{pa.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(i,r){return function(c,d,f,y){const x=dx(c,d,f&&f.syntheticException||void 0,y);return vf(x),x.level="error",f&&f.event_id&&(x.event_id=f.event_id),Sd(x)}(this._options.stackParser,i,r,this._options.attachStacktrace)}eventFromMessage(i,r="info",c){return function(d,f,y="info",x,v){const S=hx(d,f,x&&x.syntheticException||void 0,v);return S.level=y,x&&x.event_id&&(S.event_id=x.event_id),Sd(S)}(this._options.stackParser,i,r,c,this._options.attachStacktrace)}captureUserFeedback(i){if(!this._isEnabled())return void(Yb&&un.warn("SDK not enabled, will not capture user feedback."));const r=function(c,{metadata:d,tunnel:f,dsn:y}){const x={event_id:c.event_id,sent_at:new Date().toISOString(),...d&&d.sdk&&{sdk:{name:d.sdk.name,version:d.sdk.version}},...!!f&&!!y&&{dsn:Gb(y)}};return lm(x,[function(S){return[{type:"user_report"},S]}(c)])}(i,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(r)}_prepareEvent(i,r,c){return i.platform=i.platform||"javascript",super._prepareEvent(i,r,c)}}const uM=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,es=Wn;let ZC,fx,px,Fb;function dM(){if(!es.document)return;const o=nr.bind(null,"dom"),i=QC(o,!0);es.document.addEventListener("click",i,!1),es.document.addEventListener("keypress",i,!1),["EventTarget","Node"].forEach(r=>{const c=es[r],d=c&&c.prototype;d&&d.hasOwnProperty&&d.hasOwnProperty("addEventListener")&&(Gs(d,"addEventListener",function(f){return function(y,x,v){if(y==="click"||y=="keypress")try{const S=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},j=S[y]=S[y]||{refCount:0};if(!j.handler){const B=QC(o);j.handler=B,f.call(this,y,B,v)}j.refCount++}catch{}return f.call(this,y,x,v)}}),Gs(d,"removeEventListener",function(f){return function(y,x,v){if(y==="click"||y=="keypress")try{const S=this.__sentry_instrumentation_handlers__||{},j=S[y];j&&(j.refCount--,j.refCount<=0&&(f.call(this,y,j.handler,v),j.handler=void 0,delete S[y]),Object.keys(S).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return f.call(this,y,x,v)}}))})}function QC(o,i=!1){return r=>{if(!r||r._sentryCaptured)return;const c=function(f){try{return f.target}catch{return null}}(r);if(function(f,y){return f==="keypress"&&(!y||!y.tagName||y.tagName!=="INPUT"&&y.tagName!=="TEXTAREA"&&!y.isContentEditable)}(r.type,c))return;_d(r,"_sentryCaptured",!0),c&&!c._sentryId&&_d(c,"_sentryId",co());const d=r.type==="keypress"?"input":r.type;(function(f){if(f.type!==fx)return!1;try{if(!f.target||f.target._sentryId!==px)return!1}catch{}return!0})(r)||(o({event:r,name:d,global:i}),fx=r.type,px=c?c._sentryId:void 0),clearTimeout(ZC),ZC=es.setTimeout(()=>{px=void 0,fx=void 0},1e3)}}function WC(o){const i="history";bd(i,o),vd(i,hM)}function hM(){if(!function(){const r=qb.chrome,c=r&&r.app&&r.app.runtime,d="history"in qb&&!!qb.history.pushState&&!!qb.history.replaceState;return!c&&d}())return;const o=es.onpopstate;function i(r){return function(...c){const d=c.length>2?c[2]:void 0;if(d){const f=Fb,y=String(d);Fb=y,nr("history",{from:f,to:y})}return r.apply(this,c)}}es.onpopstate=function(...r){const c=es.location.href,d=Fb;if(Fb=c,nr("history",{from:d,to:c}),o)try{return o.apply(this,r)}catch{}},Gs(es.history,"pushState",i),Gs(es.history,"replaceState",i)}const Xb={};function JC(o){Xb[o]=void 0}const cm="__sentry_xhr_v3__";function fM(){if(!es.XMLHttpRequest)return;const o=XMLHttpRequest.prototype;o.open=new Proxy(o.open,{apply(i,r,c){const d=new Error,f=1e3*Rl(),y=Ll(c[0])?c[0].toUpperCase():void 0,x=function(S){if(Ll(S))return S;try{return S.toString()}catch{}}(c[1]);if(!y||!x)return i.apply(r,c);r[cm]={method:y,url:x,request_headers:{}},y==="POST"&&x.match(/sentry_key/)&&(r.__sentry_own_request__=!0);const v=()=>{const S=r[cm];if(S&&r.readyState===4){try{S.status_code=r.status}catch{}nr("xhr",{endTimestamp:1e3*Rl(),startTimestamp:f,xhr:r,virtualError:d})}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?r.onreadystatechange=new Proxy(r.onreadystatechange,{apply:(S,j,B)=>(v(),S.apply(j,B))}):r.addEventListener("readystatechange",v),r.setRequestHeader=new Proxy(r.setRequestHeader,{apply(S,j,B){const[ee,ne]=B,O=j[cm];return O&&Ll(ee)&&Ll(ne)&&(O.request_headers[ee.toLowerCase()]=ne),S.apply(j,B)}}),i.apply(r,c)}}),o.send=new Proxy(o.send,{apply(i,r,c){const d=r[cm];return d?(c[0]!==void 0&&(d.body=c[0]),nr("xhr",{startTimestamp:1e3*Rl(),xhr:r}),i.apply(r,c)):i.apply(r,c)}})}function pM(o,i=function(r){const c=Xb[r];if(c)return c;let d=es[r];if(sx(d))return Xb[r]=d.bind(es);const f=es.document;if(f&&typeof f.createElement=="function")try{const y=f.createElement("iframe");y.hidden=!0,f.head.appendChild(y);const x=y.contentWindow;x&&x[r]&&(d=x[r]),f.head.removeChild(y)}catch(y){uM&&un.warn(`Could not create sandbox iframe for ${r} check, bailing to window.${r}: `,y)}return d&&(Xb[r]=d.bind(es))}("fetch")){let r=0,c=0;return F7(o,function(d){const f=d.body.length;r+=f,c++;const y={body:d.body,method:"POST",referrerPolicy:"origin",headers:o.headers,keepalive:r<=6e4&&c<15,...o.fetchOptions};if(!i)return JC("fetch"),Hb("No fetch implementation available");try{return i(o.url,y).then(x=>(r-=f,c--,{statusCode:x.status,headers:{"x-sentry-rate-limits":x.headers.get("X-Sentry-Rate-Limits"),"retry-after":x.headers.get("Retry-After")}}))}catch(x){return JC("fetch"),r-=f,c--,Hb(x)}})}function gx(o,i,r,c){const d={filename:o,function:i==="<anonymous>"?yd:i,in_app:!0};return r!==void 0&&(d.lineno=r),c!==void 0&&(d.colno=c),d}const gM=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,mM=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,yM=/\((\S*)(?::(\d+))(?::(\d+))\)/,bM=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,vM=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,xM=function(...o){const i=o.sort((r,c)=>r[0]-c[0]).map(r=>r[1]);return(r,c=0,d=0)=>{const f=[],y=r.split(`
|
|
128
|
-
`);for(let x=c;x<y.length;x++){const v=y[x];if(v.length>1024)continue;const S=Y3.test(v)?v.replace(Y3,"$1"):v;if(!S.match(/\S*Error: /)){for(const j of i){const B=j(S);if(B){f.push(B);break}}if(f.length>=50+d)break}}return function(x){if(!x.length)return[];const v=Array.from(x);return/sentryWrapped/.test(Lb(v).function||"")&&v.pop(),v.reverse(),F3.test(Lb(v).function||"")&&(v.pop(),F3.test(Lb(v).function||"")&&v.pop()),v.slice(0,50).map(S=>({...S,filename:S.filename||Lb(v).filename,function:S.function||yd}))}(f.slice(d))}}([30,o=>{const i=gM.exec(o);if(i){const[,c,d,f]=i;return gx(c,yd,+d,+f)}const r=mM.exec(o);if(r){if(r[2]&&r[2].indexOf("eval")===0){const f=yM.exec(r[2]);f&&(r[2]=f[1],r[3]=f[2],r[4]=f[3])}const[c,d]=KC(r[1]||yd,r[2]);return gx(d,c,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],[50,o=>{const i=bM.exec(o);if(i){if(i[3]&&i[3].indexOf(" > eval")>-1){const d=vM.exec(i[3]);d&&(i[1]=i[1]||"eval",i[3]=d[1],i[4]=d[2],i[5]="")}let r=i[3],c=i[1]||yd;return[c,r]=KC(c,r),gx(r,c,i[4]?+i[4]:void 0,i[5]?+i[5]:void 0)}}]),KC=(o,i)=>{const r=o.indexOf("safari-extension")!==-1,c=o.indexOf("safari-web-extension")!==-1;return r||c?[o.indexOf("@")!==-1?o.split("@")[0]:yd,r?`safari-extension:${i}`:`safari-web-extension:${i}`]:[o,i]},ew=1024,_M=(o={})=>{const i={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...o};return{name:"Breadcrumbs",setup(r){var c;i.console&&function(d){const f="console";bd(f,d),vd(f,K7)}(function(d){return function(f){if(ja()!==d)return;const y={category:"console",data:{arguments:f.args,logger:"console"},level:eM(f.level),message:nC(f.args," ")};if(f.level==="assert"){if(f.args[0]!==!1)return;y.message=`Assertion failed: ${nC(f.args.slice(1)," ")||"console.assert"}`,y.data.arguments=f.args.slice(1)}wd(y,{input:f.args,level:f.level})}}(r)),i.dom&&(c=function(d,f){return function(y){if(ja()!==d)return;let x,v,S=typeof f=="object"?f.serializeAttribute:void 0,j=typeof f=="object"&&typeof f.maxStringLength=="number"?f.maxStringLength:void 0;j&&j>ew&&(Yb&&un.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${j} was configured. Sentry will use 1024 instead.`),j=ew),typeof S=="string"&&(S=[S]);try{const ee=y.event,ne=function(O){return!!O&&!!O.target}(ee)?ee.target:ee;x=tC(ne,{keyAttrs:S,maxStringLength:j}),v=function(O){if(!P2.HTMLElement)return null;let V=O;for(let ae=0;ae<5;ae++){if(!V)return null;if(V instanceof HTMLElement){if(V.dataset.sentryComponent)return V.dataset.sentryComponent;if(V.dataset.sentryElement)return V.dataset.sentryElement}V=V.parentNode}return null}(ne)}catch{x="<unknown>"}if(x.length===0)return;const B={category:`ui.${y.name}`,message:x};v&&(B.data={"ui.component_name":v}),wd(B,{event:y.event,name:y.name,global:y.global})}}(r,i.dom),bd("dom",c),vd("dom",dM)),i.xhr&&function(d){bd("xhr",d),vd("xhr",fM)}(function(d){return function(f){if(ja()!==d)return;const{startTimestamp:y,endTimestamp:x}=f,v=f.xhr[cm];if(!y||!x||!v)return;const{method:S,url:j,status_code:B,body:ee}=v,ne={method:S,url:j,status_code:B},O={xhr:f.xhr,input:ee,startTimestamp:y,endTimestamp:x};wd({category:"xhr",data:ne,type:"http",level:qC(B)},O)}}(r)),i.fetch&&iM(function(d){return function(f){if(ja()!==d)return;const{startTimestamp:y,endTimestamp:x}=f;if(x&&(!f.fetchData.url.match(/sentry_key/)||f.fetchData.method!=="POST"))if(f.error)wd({category:"fetch",data:f.fetchData,level:"error",type:"http"},{data:f.error,input:f.args,startTimestamp:y,endTimestamp:x});else{const v=f.response,S={...f.fetchData,status_code:v&&v.status},j={input:f.args,response:v,startTimestamp:y,endTimestamp:x};wd({category:"fetch",data:S,type:"http",level:qC(S.status_code)},j)}}}(r)),i.history&&WC(function(d){return function(f){if(ja()!==d)return;let y=f.from,x=f.to;const v=ix(pa.location.href);let S=y?ix(y):void 0;const j=ix(x);S&&S.path||(S=v),v.protocol===j.protocol&&v.host===j.host&&(x=j.relative),v.protocol===S.protocol&&v.host===S.host&&(y=S.relative),wd({category:"navigation",data:{from:y,to:x}})}}(r)),i.sentry&&r.on("beforeSendEvent",function(d){return function(f){ja()===d&&wd({category:"sentry."+(f.type==="transaction"?"transaction":"event"),event_id:f.event_id,level:f.level,message:qc(f)},{event:f})}}(r))}}},SM=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],CM=(o={})=>{const i={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...o};return{name:"BrowserApiErrors",setupOnce(){i.setTimeout&&Gs(pa,"setTimeout",tw),i.setInterval&&Gs(pa,"setInterval",tw),i.requestAnimationFrame&&Gs(pa,"requestAnimationFrame",wM),i.XMLHttpRequest&&"XMLHttpRequest"in pa&&Gs(XMLHttpRequest.prototype,"send",kM);const r=i.eventTarget;r&&(Array.isArray(r)?r:SM).forEach(TM)}}};function tw(o){return function(...i){const r=i[0];return i[0]=Sf(r,{mechanism:{data:{function:Ic(o)},handled:!1,type:"instrument"}}),o.apply(this,i)}}function wM(o){return function(i){return o.apply(this,[Sf(i,{mechanism:{data:{function:"requestAnimationFrame",handler:Ic(o)},handled:!1,type:"instrument"}})])}}function kM(o){return function(...i){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(c=>{c in r&&typeof r[c]=="function"&&Gs(r,c,function(d){const f={mechanism:{data:{function:c,handler:Ic(d)},handled:!1,type:"instrument"}},y=V2(d);return y&&(f.mechanism.data.handler=Ic(y)),Sf(d,f)})}),o.apply(this,i)}}function TM(o){const i=pa[o],r=i&&i.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(Gs(r,"addEventListener",function(c){return function(d,f,y){try{typeof f.handleEvent=="function"&&(f.handleEvent=Sf(f.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ic(f),target:o},handled:!1,type:"instrument"}}))}catch{}return c.apply(this,[d,Sf(f,{mechanism:{data:{function:"addEventListener",handler:Ic(f),target:o},handled:!1,type:"instrument"}}),y])}}),Gs(r,"removeEventListener",function(c){return function(d,f,y){try{const x=f.__sentry_wrapped__;x&&c.call(this,d,x,y)}catch{}return c.call(this,d,f,y)}}))}const MM=()=>({name:"BrowserSession",setupOnce(){pa.document!==void 0?(MC({ignoreDuration:!0}),DC(),WC(({from:o,to:i})=>{o!==void 0&&o!==i&&(MC({ignoreDuration:!0}),DC())})):Yb&&un.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}),AM=(o={})=>{const i={onerror:!0,onunhandledrejection:!0,...o};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(r){i.onerror&&(function(c){(function(d){const f="error";bd(f,d),vd(f,b7)})(d=>{const{stackParser:f,attachStacktrace:y}=iw();if(ja()!==c||FC())return;const{msg:x,url:v,line:S,column:j,error:B}=d,ee=function(ne,O,V,ae){const ie=ne.exception=ne.exception||{},U=ie.values=ie.values||[],P=U[0]=U[0]||{},X=P.stacktrace=P.stacktrace||{},Q=X.frames=X.frames||[],$=ae,I=V,he=Ll(O)&&O.length>0?O:function(){try{return P2.document.location.href}catch{return""}}();return Q.length===0&&Q.push({colno:$,filename:he,function:yd,in_app:!0,lineno:I}),ne}(dx(f,B||x,void 0,y,!1),v,S,j);ee.level="error",TC(ee,{originalException:B,mechanism:{handled:!1,type:"onerror"}})})}(r),nw("onerror")),i.onunhandledrejection&&(function(c){(function(d){const f="unhandledrejection";bd(f,d),vd(f,v7)})(d=>{const{stackParser:f,attachStacktrace:y}=iw();if(ja()!==c||FC())return;const x=function(S){if(G2(S))return S;try{if("reason"in S)return S.reason;if("detail"in S&&"reason"in S.detail)return S.detail.reason}catch{}return S}(d),v=G2(x)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(x)}`}]}}:dx(f,x,void 0,y,!0);v.level="error",TC(v,{originalException:x,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(r),nw("onunhandledrejection"))}}};function nw(o){Yb&&un.log(`Global Handler attached: ${o}`)}function iw(){const o=ja();return o&&o.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const EM=()=>({name:"HttpContext",preprocessEvent(o){if(!pa.navigator&&!pa.location&&!pa.document)return;const i=o.request&&o.request.url||pa.location&&pa.location.href,{referrer:r}=pa.document||{},{userAgent:c}=pa.navigator||{},d={...o.request&&o.request.headers,...r&&{Referer:r},...c&&{"User-Agent":c}},f={...o.request,...i&&{url:i},headers:d};o.request=f}}),DM=(o={})=>{const i=o.limit||5,r=o.key||"cause";return{name:"LinkedErrors",preprocessEvent(c,d,f){const y=f.getOptions();J7(lx,y.stackParser,y.maxValueLength,r,i,c,d)}}};var aw="new",sw="loading",ow="loaded",mx="joining-meeting",kd="joined-meeting",Td="left-meeting",Fc="error",OM="playable",yx="unknown",jM="full",LM="base",rw="no-room",RM="end-of-life",NM="connection-error",zM="iframe-ready-for-launch-config",BM="iframe-launch-config",UM="theme-updated",HM="loading",$M="load-attempt-failed",lw="loaded",GM="started-camera",PM="camera-error",VM="joining-meeting",IM="joined-meeting",qM="left-meeting",YM="participant-joined",FM="participant-updated",XM="participant-left",ZM="participant-counts-updated",QM="access-state-updated",WM="meeting-session-summary-updated",JM="meeting-session-state-updated",KM="waiting-participant-added",eA="waiting-participant-updated",tA="waiting-participant-removed",nA="track-started",iA="track-stopped",aA="transcription-started",sA="transcription-stopped",oA="transcription-error",cw="recording-started",uw="recording-stopped",rA="recording-stats",lA="recording-error",cA="recording-upload-completed",uA="recording-data",dA="app-message",hA="transcription-message",fA="remote-media-player-started",pA="remote-media-player-updated",gA="remote-media-player-stopped",mA="local-screen-share-started",yA="local-screen-share-stopped",bA="local-screen-share-canceled",vA="active-speaker-change",xA="active-speaker-mode-change",_A="network-quality-change",SA="network-connection",CA="cpu-load-change",wA="face-counts-updated",Zb="fullscreen",Qb="exited-fullscreen",kA="live-streaming-started",TA="live-streaming-updated",MA="live-streaming-stopped",AA="live-streaming-error",EA="lang-updated",DA="receive-settings-updated",dw="input-settings-updated",hw="nonfatal-error",fw="error",bx=4096,pw=102400,vx="iframe-call-message",gw="local-screen-start",mw="daily-method-update-live-streaming-endpoints",Wb="transmit-log",Bl="daily-custom-track",Jb={NONE:"none",BGBLUR:"background-blur",BGIMAGE:"background-image",FACE_DETECTION:"face-detection"},yw={NONE:"none",NOISE_CANCELLATION:"noise-cancellation"},xx={PLAY:"play",PAUSE:"pause"},_x=["jpg","png","jpeg"],OA="add-endpoints",jA="remove-endpoints",bw="sip-call-transfer";function ho(){return!Hn()&&typeof window<"u"&&window.navigator&&window.navigator.userAgent?window.navigator.userAgent:""}function Hn(){return typeof navigator<"u"&&navigator.product&&navigator.product==="ReactNative"}function vw(){return navigator&&navigator.mediaDevices&&navigator.mediaDevices.getUserMedia}function LA(){return!!(navigator&&navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia)&&(function(o,i){if(!o||!i)return!0;switch(o){case"Chrome":return i.major>=75;case"Safari":return RTCRtpTransceiver.prototype.hasOwnProperty("currentDirection")&&!(i.major===13&&i.minor===0&&i.point===0);case"Firefox":return i.major>=67}return!0}(Md(),Kb())||Hn())}function xw(){if(Hn()||!document)return!1;var o=document.createElement("iframe");return!!o.requestFullscreen||!!o.webkitRequestFullscreen}var RA=function(){try{var o=document.createElement("canvas"),i=(navigator.webdriver?o.getContext("webgl2"):o.getContext("webgl2",{failIfMajorPerformanceCaveat:!0}))!=null;return o.remove(),i}catch{return!1}}();function _w(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return!Hn()&&!!RA&&(o?function(){return kw()?!1:["Chrome","Firefox"].includes(Md())}():function(){if(kw())return!1;var i=Md();if(i==="Safari"){var r=Cx();if(r.major<15||r.major===15&&r.minor<4)return!1}return i==="Chrome"?Sx().major>=77:i==="Firefox"?wx().major>=97:["Chrome","Firefox","Safari"].includes(i)}())}function Sw(){if(Hn()||ww()||typeof AudioWorkletNode>"u")return!1;switch(Md()){case"Chrome":case"Firefox":return!0;case"Safari":var o=Kb();return o.major>17||o.major===17&&o.minor>=4}return!1}function Cw(){return vw()&&!function(){var o,i=Md();if(!ho())return!0;switch(i){case"Chrome":return(o=Sx()).major&&o.major>0&&o.major<75;case"Firefox":return(o=wx()).major<91;case"Safari":return(o=Cx()).major<13||o.major===13&&o.minor<1;default:return!0}}()}function ww(){return ho().match(/Linux; Android/)}function kw(){var o,i=ho(),r=i.match(/Mac/)&&(!Hn()&&typeof window<"u"&&(o=window)!==null&&o!==void 0&&(o=o.navigator)!==null&&o!==void 0&&o.maxTouchPoints?window.navigator.maxTouchPoints:0)>=5;return!!(i.match(/Mobi/)||i.match(/Android/)||r)||!!ho().match(/DailyAnd\//)||void 0}function Md(){if(typeof window<"u"){var o=ho();return Tw()?"Safari":o.indexOf("Edge")>-1?"Edge":o.match(/Chrome\//)?"Chrome":o.indexOf("Safari")>-1||Mw()?"Safari":o.indexOf("Firefox")>-1?"Firefox":o.indexOf("MSIE")>-1||o.indexOf(".NET")>-1?"IE":"Unknown Browser"}}function Kb(){switch(Md()){case"Chrome":return Sx();case"Safari":return Cx();case"Firefox":return wx();case"Edge":return function(){var o=0,i=0;if(typeof window<"u"){var r=ho().match(/Edge\/(\d+).(\d+)/);if(r)try{o=parseInt(r[1]),i=parseInt(r[2])}catch{}}return{major:o,minor:i}}()}}function Sx(){var o=0,i=0,r=0,c=0,d=!1;if(typeof window<"u"){var f=ho(),y=f.match(/Chrome\/(\d+).(\d+).(\d+).(\d+)/);if(y)try{o=parseInt(y[1]),i=parseInt(y[2]),r=parseInt(y[3]),c=parseInt(y[4]),d=f.indexOf("OPR/")>-1}catch{}}return{major:o,minor:i,build:r,patch:c,opera:d}}function Tw(){return!!ho().match(/iPad|iPhone|iPod/i)&&vw()}function Mw(){return ho().indexOf("AppleWebKit/605.1.15")>-1}function Cx(){var o=0,i=0,r=0;if(typeof window<"u"){var c=ho().match(/Version\/(\d+).(\d+)(.(\d+))?/);if(c)try{o=parseInt(c[1]),i=parseInt(c[2]),r=parseInt(c[4])}catch{}else(Tw()||Mw())&&(o=14,i=0,r=3)}return{major:o,minor:i,point:r}}function wx(){var o=0,i=0;if(typeof window<"u"){var r=ho().match(/Firefox\/(\d+).(\d+)/);if(r)try{o=parseInt(r[1]),i=parseInt(r[2])}catch{}}return{major:o,minor:i}}var Aw=function(){return $s(function o(){Hs(this,o)},[{key:"addListenerForMessagesFromCallMachine",value:function(o,i,r){am()}},{key:"addListenerForMessagesFromDailyJs",value:function(o,i,r){am()}},{key:"sendMessageToCallMachine",value:function(o,i,r,c){am()}},{key:"sendMessageToDailyJs",value:function(o,i){am()}},{key:"removeListener",value:function(o){am()}}])}();function Ew(o,i){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);i&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),r.push.apply(r,c)}return r}function kx(o){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?Ew(Object(r),!0).forEach(function(c){Ur(o,c,r[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):Ew(Object(r)).forEach(function(c){Object.defineProperty(o,c,Object.getOwnPropertyDescriptor(r,c))})}return o}function Dw(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dw=function(){return!!o})()}var NA=function(){function o(){var i,r,c,d;return Hs(this,o),r=this,c=tr(c=o),(i=wb(r,Dw()?Reflect.construct(c,[],tr(r).constructor):c.apply(r,d)))._wrappedListeners={},i._messageCallbacks={},i}return kb(o,Aw),$s(o,[{key:"addListenerForMessagesFromCallMachine",value:function(i,r,c){var d=this,f=function(y){if(y.data&&y.data.what==="iframe-call-message"&&(!y.data.callClientId||y.data.callClientId===r)&&(!y.data.from||y.data.from!=="module")){var x=kx({},y.data);if(delete x.from,x.callbackStamp&&d._messageCallbacks[x.callbackStamp]){var v=x.callbackStamp;d._messageCallbacks[v].call(c,x),delete d._messageCallbacks[v]}delete x.what,delete x.callbackStamp,i.call(c,x)}};this._wrappedListeners[i]=f,window.addEventListener("message",f)}},{key:"addListenerForMessagesFromDailyJs",value:function(i,r,c){var d=function(f){var y;if(!(!f.data||f.data.what!==vx||!f.data.action||f.data.from&&f.data.from!=="module"||f.data.callClientId&&r&&f.data.callClientId!==r||f!=null&&(y=f.data)!==null&&y!==void 0&&y.callFrameId)){var x=f.data;i.call(c,x)}};this._wrappedListeners[i]=d,window.addEventListener("message",d)}},{key:"sendMessageToCallMachine",value:function(i,r,c,d){if(!c)throw new Error("undefined callClientId. Are you trying to use a DailyCall instance previously destroyed?");var f=kx({},i);if(f.what=vx,f.from="module",f.callClientId=c,r){var y=Ab();this._messageCallbacks[y]=r,f.callbackStamp=y}var x=d?d.contentWindow:window,v=this._callMachineTargetOrigin(d);v&&x.postMessage(f,v)}},{key:"sendMessageToDailyJs",value:function(i,r){i.what=vx,i.callClientId=r,i.from="embedded",window.postMessage(i,this._targetOriginFromWindowLocation())}},{key:"removeListener",value:function(i){var r=this._wrappedListeners[i];r&&(window.removeEventListener("message",r),delete this._wrappedListeners[i])}},{key:"forwardPackagedMessageToCallMachine",value:function(i,r,c){var d=kx({},i);d.callClientId=c;var f=r?r.contentWindow:window,y=this._callMachineTargetOrigin(r);y&&f.postMessage(d,y)}},{key:"addListenerForPackagedMessagesFromCallMachine",value:function(i,r){var c=function(d){if(d.data&&d.data.what==="iframe-call-message"&&(!d.data.callClientId||d.data.callClientId===r)&&(!d.data.from||d.data.from!=="module")){var f=d.data;i(f)}};return this._wrappedListeners[i]=c,window.addEventListener("message",c),i}},{key:"removeListenerForPackagedMessagesFromCallMachine",value:function(i){var r=this._wrappedListeners[i];r&&(window.removeEventListener("message",r),delete this._wrappedListeners[i])}},{key:"_callMachineTargetOrigin",value:function(i){return i?i.src?new URL(i.src).origin:void 0:this._targetOriginFromWindowLocation()}},{key:"_targetOriginFromWindowLocation",value:function(){return window.location.protocol==="file:"?"*":window.location.origin}}])}();function Ow(o,i){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);i&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),r.push.apply(r,c)}return r}function jw(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jw=function(){return!!o})()}var zA=function(){function o(){var i,r,c,d;return Hs(this,o),r=this,c=tr(c=o),i=wb(r,jw()?Reflect.construct(c,[],tr(r).constructor):c.apply(r,d)),global.callMachineToDailyJsEmitter=global.callMachineToDailyJsEmitter||new R2.EventEmitter,global.dailyJsToCallMachineEmitter=global.dailyJsToCallMachineEmitter||new R2.EventEmitter,i._wrappedListeners={},i._messageCallbacks={},i}return kb(o,Aw),$s(o,[{key:"addListenerForMessagesFromCallMachine",value:function(i,r,c){this._addListener(i,global.callMachineToDailyJsEmitter,r,c,"received call machine message")}},{key:"addListenerForMessagesFromDailyJs",value:function(i,r,c){this._addListener(i,global.dailyJsToCallMachineEmitter,r,c,"received daily-js message")}},{key:"sendMessageToCallMachine",value:function(i,r,c){this._sendMessage(i,global.dailyJsToCallMachineEmitter,c,r,"sending message to call machine")}},{key:"sendMessageToDailyJs",value:function(i,r){this._sendMessage(i,global.callMachineToDailyJsEmitter,r,null,"sending message to daily-js")}},{key:"removeListener",value:function(i){var r=this._wrappedListeners[i];r&&(global.callMachineToDailyJsEmitter.removeListener("message",r),global.dailyJsToCallMachineEmitter.removeListener("message",r),delete this._wrappedListeners[i])}},{key:"_addListener",value:function(i,r,c,d,f){var y=this,x=function(v){if(v.callClientId===c){if(v.callbackStamp&&y._messageCallbacks[v.callbackStamp]){var S=v.callbackStamp;y._messageCallbacks[S].call(d,v),delete y._messageCallbacks[S]}i.call(d,v)}};this._wrappedListeners[i]=x,r.addListener("message",x)}},{key:"_sendMessage",value:function(i,r,c,d,f){var y=function(v){for(var S=1;S<arguments.length;S++){var j=arguments[S]!=null?arguments[S]:{};S%2?Ow(Object(j),!0).forEach(function(B){Ur(v,B,j[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(j)):Ow(Object(j)).forEach(function(B){Object.defineProperty(v,B,Object.getOwnPropertyDescriptor(j,B))})}return v}({},i);if(y.callClientId=c,d){var x=Ab();this._messageCallbacks[x]=d,y.callbackStamp=x}r.emit("message",y)}}])}(),Tx="replace",Mx="shallow-merge",Lw=[Tx,Mx],BA=function(){function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=i.data,c=i.mergeStrategy,d=c===void 0?Tx:c;Hs(this,o),o._validateMergeStrategy(d),o._validateData(r,d),this.mergeStrategy=d,this.data=r}return $s(o,[{key:"isNoOp",value:function(){return o.isNoOpUpdate(this.data,this.mergeStrategy)}}],[{key:"isNoOpUpdate",value:function(i,r){return Object.keys(i).length===0&&r===Mx}},{key:"_validateMergeStrategy",value:function(i){if(!Lw.includes(i))throw Error("Unrecognized mergeStrategy provided. Options are: [".concat(Lw,"]"))}},{key:"_validateData",value:function(i,r){if(!function(x){if(x==null||Yn(x)!=="object")return!1;var v=Object.getPrototypeOf(x);return v==null||v===Object.prototype}(i))throw Error("Meeting session data must be a plain (map-like) object");var c;try{if(c=JSON.stringify(i),r===Tx){var d=JSON.parse(c);Ja(d,i)||console.warn("The meeting session data provided will be modified when serialized.",d,i)}else if(r===Mx){for(var f in i)if(Object.hasOwnProperty.call(i,f)&&i[f]!==void 0){var y=JSON.parse(JSON.stringify(i[f]));Ja(i[f],y)||console.warn("At least one key in the meeting session data provided will be modified when serialized.",y,i[f])}}}catch(x){throw Error("Meeting session data must be serializable to JSON: ".concat(x))}if(c.length>pw)throw Error("Meeting session data is too large (".concat(c.length," characters). Maximum size suppported is ").concat(pw,"."))}}])}();function Rw(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rw=function(){return!!o})()}function Ax(o){var i=typeof Map=="function"?new Map:void 0;return Ax=function(r){if(r===null||!function(d){try{return Function.toString.call(d).indexOf("[native code]")!==-1}catch{return typeof d=="function"}}(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(i!==void 0){if(i.has(r))return i.get(r);i.set(r,c)}function c(){return function(d,f,y){if(Rw())return Reflect.construct.apply(null,arguments);var x=[null];x.push.apply(x,f);var v=new(d.bind.apply(d,x));return y&&im(v,y.prototype),v}(r,arguments,tr(this).constructor)}return c.prototype=Object.create(r.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),im(c,r)},Ax(o)}function Nw(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nw=function(){return!!o})()}function zw(o){var i,r=(i=window._daily)===null||i===void 0?void 0:i.pendings;if(r){var c=r.indexOf(o);c!==-1&&r.splice(c,1)}}var UA=function(){return $s(function o(i){Hs(this,o),this._currentLoad=null,this._callClientId=i},[{key:"load",value:function(){var o,i=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0,d=arguments.length>2?arguments[2]:void 0;if(this.loaded)return window._daily.instances[this._callClientId].callMachine.reset(),void c(!0);o=this._callClientId,window._daily.pendings.push(o),this._currentLoad&&this._currentLoad.cancel(),this._currentLoad=new HA(r,function(){c(!1)},function(f,y){y||zw(i._callClientId),d(f,y)}),this._currentLoad.start()}},{key:"cancel",value:function(){this._currentLoad&&this._currentLoad.cancel(),zw(this._callClientId)}},{key:"loaded",get:function(){return this._currentLoad&&this._currentLoad.succeeded}}])}(),HA=function(){return $s(function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,c=arguments.length>2?arguments[2]:void 0;Hs(this,o),this._attemptsRemaining=3,this._currentAttempt=null,this._dailyConfig=i,this._successCallback=r,this._failureCallback=c},[{key:"start",value:function(){var o=this;if(!this._currentAttempt){var i=function(r){o._currentAttempt.cancelled||(o._attemptsRemaining--,o._failureCallback(r,o._attemptsRemaining>0),o._attemptsRemaining<=0||setTimeout(function(){o._currentAttempt.cancelled||(o._currentAttempt=new Bw(o._dailyConfig,o._successCallback,i),o._currentAttempt.start())},3e3))};this._currentAttempt=new Bw(this._dailyConfig,this._successCallback,i),this._currentAttempt.start()}}},{key:"cancel",value:function(){this._currentAttempt&&this._currentAttempt.cancel()}},{key:"cancelled",get:function(){return this._currentAttempt&&this._currentAttempt.cancelled}},{key:"succeeded",get:function(){return this._currentAttempt&&this._currentAttempt.succeeded}}])}(),Ex=function(){function o(){return Hs(this,o),i=this,c=arguments,r=tr(r=o),wb(i,Nw()?Reflect.construct(r,c||[],tr(i).constructor):r.apply(i,c));var i,r,c}return kb(o,Ax(Error)),$s(o)}(),e1=2e4,Bw=function(){return $s(function i(r,c,d){Hs(this,i),this._loadAttemptImpl=Hn()||!r.avoidEval?new $A(r,c,d):new GA(r,c,d)},[{key:"start",value:(o=on(function*(){return this._loadAttemptImpl.start()}),function(){return o.apply(this,arguments)})},{key:"cancel",value:function(){this._loadAttemptImpl.cancel()}},{key:"cancelled",get:function(){return this._loadAttemptImpl.cancelled}},{key:"succeeded",get:function(){return this._loadAttemptImpl.succeeded}}]);var o}(),$A=function(){return $s(function d(f,y,x){Hs(this,d),this.cancelled=!1,this.succeeded=!1,this._networkTimedOut=!1,this._networkTimeout=null,this._iosCache=typeof iOSCallObjectBundleCache<"u"&&iOSCallObjectBundleCache,this._refetchHeaders=null,this._dailyConfig=f,this._successCallback=y,this._failureCallback=x},[{key:"start",value:(c=on(function*(){var d=Eb(this._dailyConfig);!(yield this._tryLoadFromIOSCache(d))&&this._loadFromNetwork(d)}),function(){return c.apply(this,arguments)})},{key:"cancel",value:function(){clearTimeout(this._networkTimeout),this.cancelled=!0}},{key:"_tryLoadFromIOSCache",value:(r=on(function*(d){if(!this._iosCache)return!1;try{var f=yield this._iosCache.get(d);return!!this.cancelled||!!f&&(f.code?(Function('"use strict";'+f.code)(),this.succeeded=!0,this._successCallback(),!0):(this._refetchHeaders=f.refetchHeaders,!1))}catch{return!1}}),function(d){return r.apply(this,arguments)})},{key:"_loadFromNetwork",value:(i=on(function*(d){var f=this;this._networkTimeout=setTimeout(function(){f._networkTimedOut=!0,f._failureCallback({msg:"Timed out (>".concat(e1," ms) when loading call object bundle ").concat(d),type:"timeout"})},e1);try{var y=this._refetchHeaders?{headers:this._refetchHeaders}:{},x=yield fetch(d,y);if(clearTimeout(this._networkTimeout),this.cancelled||this._networkTimedOut)throw new Ex;var v=yield this._getBundleCodeFromResponse(d,x);if(this.cancelled)throw new Ex;Function('"use strict";'+v)(),this._iosCache&&this._iosCache.set(d,v,x.headers),this.succeeded=!0,this._successCallback()}catch(S){if(clearTimeout(this._networkTimeout),S instanceof Ex||this.cancelled||this._networkTimedOut)return;this._failureCallback({msg:"Failed to load call object bundle ".concat(d,": ").concat(S),type:S.message})}}),function(d){return i.apply(this,arguments)})},{key:"_getBundleCodeFromResponse",value:(o=on(function*(d,f){if(f.ok)return yield f.text();if(this._iosCache&&f.status===304)return(yield this._iosCache.renew(d,f.headers)).code;throw new Error("Received ".concat(f.status," response"))}),function(d,f){return o.apply(this,arguments)})}]);var o,i,r,c}(),GA=function(){return $s(function o(i,r,c){Hs(this,o),this.cancelled=!1,this.succeeded=!1,this._dailyConfig=i,this._successCallback=r,this._failureCallback=c,this._attemptId=Ab(),this._networkTimeout=null,this._scriptElement=null},[{key:"start",value:function(){window._dailyCallMachineLoadWaitlist||(window._dailyCallMachineLoadWaitlist=new Set);var o=Eb(this._dailyConfig);(typeof document>"u"?"undefined":Yn(document))==="object"?this._startLoading(o):this._failureCallback({msg:"Call object bundle must be loaded in a DOM/web context",type:"missing context"})}},{key:"cancel",value:function(){this._stopLoading(),this.cancelled=!0}},{key:"_startLoading",value:function(o){var i=this;this._signUpForCallMachineLoadWaitlist(),this._networkTimeout=setTimeout(function(){i._stopLoading(),i._failureCallback({msg:"Timed out (>".concat(e1," ms) when loading call object bundle ").concat(o),type:"timeout"})},e1);var r=document.getElementsByTagName("head")[0],c=document.createElement("script");this._scriptElement=c,c.onload=function(){i._stopLoading(),i.succeeded=!0,i._successCallback()},c.onerror=function(d){i._stopLoading(),i._failureCallback({msg:"Failed to load call object bundle ".concat(d.target.src),type:d.message})},c.src=o,r.appendChild(c)}},{key:"_stopLoading",value:function(){this._withdrawFromCallMachineLoadWaitlist(),clearTimeout(this._networkTimeout),this._scriptElement&&(this._scriptElement.onload=null,this._scriptElement.onerror=null)}},{key:"_signUpForCallMachineLoadWaitlist",value:function(){window._dailyCallMachineLoadWaitlist.add(this._attemptId)}},{key:"_withdrawFromCallMachineLoadWaitlist",value:function(){window._dailyCallMachineLoadWaitlist.delete(this._attemptId)}}])}(),t1=function(o,i,r){return VA(o.local,i,r)===!0},PA=function(o,i,r){return o.local.streams&&o.local.streams[i]&&o.local.streams[i].stream&&o.local.streams[i].stream["get".concat(r==="video"?"Video":"Audio","Tracks")]()[0]},Cf=function(o,i,r,c){var d=IA(o,i,r,c);return d&&d.pendingTrack},VA=function(o,i,r){if(!o)return!1;var c=function(f){switch(f){case"avatar":return!0;case"staged":return f;default:return!!f}},d=o.public.subscribedTracks;return d&&d[i]?["cam-audio","cam-video","screen-video","screen-audio","rmpAudio","rmpVideo"].indexOf(r)===-1&&d[i].custom?[!0,"staged"].includes(d[i].custom)?c(d[i].custom):c(d[i].custom[r]):c(d[i][r]):!d||c(d.ALL)},IA=function(o,i,r,c){var d=Object.values(o.streams||{}).filter(function(f){return f.participantId===i&&f.type===r&&f.pendingTrack&&f.pendingTrack.kind===c}).sort(function(f,y){return new Date(y.starttime)-new Date(f.starttime)});return d&&d[0]},qA=function(o,i){var r=o.local.public.customTracks;if(r&&r[i])return r[i].track};function Uw(o,i){for(var r=i.getState(),c=0,d=["cam","screen"];c<d.length;c++)for(var f=d[c],y=0,x=["video","audio"];y<x.length;y++){var v=x[y],S=f==="cam"?v:"screen".concat(v.charAt(0).toUpperCase()+v.slice(1)),j=o.tracks[S];if(j){var B=o.local?PA(r,f,v):Cf(r,o.session_id,f,v);j.state==="playable"&&(j.track=B),j.persistentTrack=B}}}function Hw(o,i){try{var r=i.getState();for(var c in o.tracks)if(!YA(c)){var d=o.tracks[c].kind;if(d){var f=o.tracks[c];if(f){var y=o.local?qA(r,c):Cf(r,o.session_id,c,d);f.state==="playable"&&(o.tracks[c].track=y),f.persistentTrack=y}}else console.error("unknown type for custom track")}}catch(x){console.error(x)}}function YA(o){return["video","audio","screenVideo","screenAudio"].includes(o)}function $w(o,i,r){var c=r.getState();if(o.local){if(o.audio)try{o.audioTrack=c.local.streams.cam.stream.getAudioTracks()[0],o.audioTrack||(o.audio=!1)}catch{}if(o.video)try{o.videoTrack=c.local.streams.cam.stream.getVideoTracks()[0],o.videoTrack||(o.video=!1)}catch{}if(o.screen)try{o.screenVideoTrack=c.local.streams.screen.stream.getVideoTracks()[0],o.screenAudioTrack=c.local.streams.screen.stream.getAudioTracks()[0],o.screenVideoTrack||o.screenAudioTrack||(o.screen=!1)}catch{}}else{var d=!0;try{var f=c.participants[o.session_id];f&&f.public&&f.public.rtcType&&f.public.rtcType.impl==="peer-to-peer"&&f.private&&!["connected","completed"].includes(f.private.peeringState)&&(d=!1)}catch(j){console.error(j)}if(!d)return o.audio=!1,o.audioTrack=!1,o.video=!1,o.videoTrack=!1,o.screen=!1,void(o.screenTrack=!1);try{if(c.streams,o.audio&&t1(c,o.session_id,"cam-audio")){var y=Cf(c,o.session_id,"cam","audio");y&&(i&&i.audioTrack&&i.audioTrack.id===y.id?o.audioTrack=y:y.muted||(o.audioTrack=y)),o.audioTrack||(o.audio=!1)}if(o.video&&t1(c,o.session_id,"cam-video")){var x=Cf(c,o.session_id,"cam","video");x&&(i&&i.videoTrack&&i.videoTrack.id===x.id?o.videoTrack=x:x.muted||(o.videoTrack=x)),o.videoTrack||(o.video=!1)}if(o.screen&&t1(c,o.session_id,"screen-audio")){var v=Cf(c,o.session_id,"screen","audio");v&&(i&&i.screenAudioTrack&&i.screenAudioTrack.id===v.id?o.screenAudioTrack=v:v.muted||(o.screenAudioTrack=v))}if(o.screen&&t1(c,o.session_id,"screen-video")){var S=Cf(c,o.session_id,"screen","video");S&&(i&&i.screenVideoTrack&&i.screenVideoTrack.id===S.id?o.screenVideoTrack=S:S.muted||(o.screenVideoTrack=S))}o.screenVideoTrack||o.screenAudioTrack||(o.screen=!1)}catch(j){console.error("unexpected error matching up tracks",j)}}}function FA(o,i){var r=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!r){if(Array.isArray(o)||(r=function(v,S){if(v){if(typeof v=="string")return Gw(v,S);var j={}.toString.call(v).slice(8,-1);return j==="Object"&&v.constructor&&(j=v.constructor.name),j==="Map"||j==="Set"?Array.from(v):j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j)?Gw(v,S):void 0}}(o))||i){r&&(o=r);var c=0,d=function(){};return{s:d,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(v){throw v},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
127
|
+
Url: ${Ib(y)}`),!0)}(i,f)?null:i}});function Ib(o){try{let i;try{i=o.exception.values[0].stacktrace.frames}catch{}return i?function(r=[]){for(let c=r.length-1;c>=0;c--){const d=r[c];if(d&&d.filename!=="<anonymous>"&&d.filename!=="[native code]")return d.filename||null}return null}(i):null}catch{return gi&&dn.error(`Cannot extract url for event ${qc(o)}`),null}}function J7(o,i,r=250,c,d,f,y){if(!(f.exception&&f.exception.values&&y&&xd(y.originalException,Error)))return;const x=f.exception.values.length>0?f.exception.values[f.exception.values.length-1]:void 0;var v,S;x&&(f.exception.values=(v=nx(o,i,d,y.originalException,c,f.exception.values,x,0),S=r,v.map(j=>(j.value&&(j.value=bf(j.value,S)),j))))}function nx(o,i,r,c,d,f,y,x){if(f.length>=r+1)return f;let v=[...f];if(xd(c[d],Error)){$C(y,x);const S=o(i,c[d]),j=v.length;GC(S,d,j,x),v=nx(o,i,r,c[d],d,[S,...v],S,j)}return Array.isArray(c.errors)&&c.errors.forEach((S,j)=>{if(xd(S,Error)){$C(y,x);const B=o(i,S),ee=v.length;GC(B,`errors[${j}]`,ee,x),v=nx(o,i,r,S,d,[B,...v],B,ee)}}),v}function $C(o,i){o.mechanism=o.mechanism||{type:"generic",handled:!0},o.mechanism={...o.mechanism,...o.type==="AggregateError"&&{is_exception_group:!0},exception_id:i}}function GC(o,i,r,c){o.mechanism=o.mechanism||{type:"generic",handled:!0},o.mechanism={...o.mechanism,type:"chained",source:i,exception_id:r,parent_id:c}}function ix(o){if(!o)return{};const i=o.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!i)return{};const r=i[6]||"",c=i[8]||"";return{host:i[4],path:i[5],protocol:i[2],search:r,hash:c,relative:i[5]+r+c}}function K7(){"console"in Wn&&N2.forEach(function(o){o in Wn.console&&Gs(Wn.console,o,function(i){return jb[o]=i,function(...r){nr("console",{args:r,level:o});const c=jb[o];c&&c.apply(Wn.console,r)}})})}function eM(o){return o==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(o)?o:"log"}const tM=()=>{let o;return{name:"Dedupe",processEvent(i){if(i.type)return i;try{if(function(r,c){return c?!!(function(d,f){const y=d.message,x=f.message;return!(!y&&!x||y&&!x||!y&&x||y!==x||!VC(d,f)||!PC(d,f))}(r,c)||function(d,f){const y=IC(f),x=IC(d);return!(!y||!x||y.type!==x.type||y.value!==x.value||!VC(d,f)||!PC(d,f))}(r,c)):!1}(i,o))return gi&&dn.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return o=i}}};function PC(o,i){let r=Z3(o),c=Z3(i);if(!r&&!c)return!0;if(r&&!c||!r&&c||c.length!==r.length)return!1;for(let d=0;d<c.length;d++){const f=c[d],y=r[d];if(f.filename!==y.filename||f.lineno!==y.lineno||f.colno!==y.colno||f.function!==y.function)return!1}return!0}function VC(o,i){let r=o.fingerprint,c=i.fingerprint;if(!r&&!c)return!0;if(r&&!c||!r&&c)return!1;try{return r.join("")===c.join("")}catch{return!1}}function IC(o){return o.exception&&o.exception.values&&o.exception.values[0]}function qC(o){return o===void 0?void 0:o>=400&&o<500?"warning":o>=500?"error":void 0}const ax=Wn;function sx(o){return o&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(o.toString())}function nM(){if(typeof EdgeRuntime=="string")return!0;if(!function(){if(!("fetch"in ax))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}())return!1;if(sx(ax.fetch))return!0;let o=!1;const i=ax.document;if(i&&typeof i.createElement=="function")try{const r=i.createElement("iframe");r.hidden=!0,i.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(o=sx(r.contentWindow.fetch)),i.head.removeChild(r)}catch(r){md&&dn.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return o}function iM(o,i){const r="fetch";bd(r,o),vd(r,()=>function(c,d=!1){d&&!nM()||Gs(Wn,"fetch",function(f){return function(...y){const x=new Error,{method:v,url:S}=function(B){if(B.length===0)return{method:"GET",url:""};if(B.length===2){const[ne,O]=B;return{url:YC(ne),method:ox(O,"method")?String(O.method).toUpperCase():"GET"}}const ee=B[0];return{url:YC(ee),method:ox(ee,"method")?String(ee.method).toUpperCase():"GET"}}(y),j={args:y,fetchData:{method:v,url:S},startTimestamp:1e3*Rl(),virtualError:x};return c||nr("fetch",{...j}),f.apply(Wn,y).then(async B=>(c?c(B):nr("fetch",{...j,endTimestamp:1e3*Rl(),response:B}),B),B=>{throw nr("fetch",{...j,endTimestamp:1e3*Rl(),error:B}),H2(B)&&B.stack===void 0&&(B.stack=x.stack,_d(B,"framesToPop",1)),B})}})}(void 0,i))}function ox(o,i){return!!o&&typeof o=="object"&&!!o[i]}function YC(o){return typeof o=="string"?o:o?ox(o,"url")?o.url:o.toString?o.toString():"":""}const qb=Wn,pa=Wn;let rx=0;function FC(){return rx>0}function Sf(o,i={}){if(!function(c){return typeof c=="function"}(o))return o;try{const c=o.__sentry_wrapped__;if(c)return typeof c=="function"?c:o;if(V2(o))return o}catch{return o}const r=function(...c){try{const d=c.map(f=>Sf(f,i));return o.apply(this,d)}catch(d){throw rx++,setTimeout(()=>{rx--}),function(...f){const y=Z2(Nb());if(f.length===2){const[x,v]=f;return x?y.withSetScope(x,v):y.withScope(v)}y.withScope(f[0])}(f=>{var y;f.addEventProcessor(x=>(i.mechanism&&(q2(x,void 0),vf(x,i.mechanism)),x.extra={...x.extra,arguments:c},x)),y=d,Cd().captureException(y,void 0)}),d}};try{for(const c in o)Object.prototype.hasOwnProperty.call(o,c)&&(r[c]=o[c])}catch{}iC(r,o),_d(o,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>o.name})}catch{}return r}const Yb=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function lx(o,i){const r=ux(o,i),c={type:oM(i),value:rM(i)};return r.length&&(c.stacktrace={frames:r}),c.type===void 0&&c.value===""&&(c.value="Unrecoverable error caught"),c}function aM(o,i,r,c){const d=ja(),f=d&&d.getOptions().normalizeDepth,y=function(S){for(const j in S)if(Object.prototype.hasOwnProperty.call(S,j)){const B=S[j];if(B instanceof Error)return B}}(i),x={__serialized__:xC(i,f)};if(y)return{exception:{values:[lx(o,y)]},extra:x};const v={exception:{values:[{type:zb(i)?i.constructor.name:c?"UnhandledRejection":"Error",value:lM(i,{isUnhandledRejection:c})}]},extra:x};if(r){const S=ux(o,r);S.length&&(v.exception.values[0].stacktrace={frames:S})}return v}function cx(o,i){return{exception:{values:[lx(o,i)]}}}function ux(o,i){const r=i.stacktrace||i.stack||"",c=function(f){return f&&sM.test(f.message)?1:0}(i),d=function(f){return typeof f.framesToPop=="number"?f.framesToPop:0}(i);try{return o(r,c,d)}catch{}return[]}const sM=/Minified React error #\d+;/i;function XC(o){return typeof WebAssembly<"u"&&WebAssembly.Exception!==void 0&&o instanceof WebAssembly.Exception}function oM(o){const i=o&&o.name;return!i&&XC(o)?o.message&&Array.isArray(o.message)&&o.message.length==2?o.message[0]:"WebAssembly.Exception":i}function rM(o){const i=o&&o.message;return i?i.error&&typeof i.error.message=="string"?i.error.message:XC(o)&&Array.isArray(o.message)&&o.message.length==2?o.message[1]:i:"No error message"}function dx(o,i,r,c,d){let f;if(J3(i)&&i.error)return cx(o,i.error);if(K3(i)||mf(i,"DOMException")){const y=i;if("stack"in i)f=cx(o,i);else{const x=y.name||(K3(y)?"DOMError":"DOMException"),v=y.message?`${x}: ${y.message}`:x;f=hx(o,v,r,c),q2(f,v)}return"code"in y&&(f.tags={...f.tags,"DOMException.code":`${y.code}`}),f}return H2(i)?cx(o,i):yf(i)||zb(i)?(f=aM(o,i,r,d),vf(f,{synthetic:!0}),f):(f=hx(o,i,r,c),q2(f,`${i}`),vf(f,{synthetic:!0}),f)}function hx(o,i,r,c){const d={};if(c&&r){const f=ux(o,r);f.length&&(d.exception={values:[{value:i,stacktrace:{frames:f}}]}),vf(d,{synthetic:!0})}if($2(i)){const{__sentry_template_string__:f,__sentry_template_values__:y}=i;return d.logentry={message:f,params:y},d}return d.message=i,d}function lM(o,{isUnhandledRejection:i}){const r=function(d,f=40){const y=Object.keys(aC(d));y.sort();const x=y[0];if(!x)return"[object has no keys]";if(x.length>=f)return bf(x,f);for(let v=y.length;v>0;v--){const S=y.slice(0,v).join(", ");if(!(S.length>f))return v===y.length?S:bf(S,f)}return""}(o),c=i?"promise rejection":"exception";return J3(o)?`Event \`ErrorEvent\` captured as ${c} with message \`${o.message}\``:zb(o)?`Event \`${function(d){try{const f=Object.getPrototypeOf(d);return f?f.constructor.name:void 0}catch{}}(o)}\` (type=${o.type}) captured as ${c}`:`Object captured as ${c} with keys: ${r}`}class cM extends I7{constructor(i){const r={parentSpanIsAlwaysRootSpan:!0,...i};(function(c,d,f=[d],y="npm"){const x=c._metadata||{};x.sdk||(x.sdk={name:`sentry.javascript.${d}`,packages:f.map(v=>({name:`${y}:@sentry/${v}`,version:gd})),version:gd}),c._metadata=x})(r,"browser",["browser"],pa.SENTRY_SDK_SOURCE||"npm"),super(r),r.sendClientReports&&pa.document&&pa.document.addEventListener("visibilitychange",()=>{pa.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(i,r){return function(c,d,f,y){const x=dx(c,d,f&&f.syntheticException||void 0,y);return vf(x),x.level="error",f&&f.event_id&&(x.event_id=f.event_id),Sd(x)}(this._options.stackParser,i,r,this._options.attachStacktrace)}eventFromMessage(i,r="info",c){return function(d,f,y="info",x,v){const S=hx(d,f,x&&x.syntheticException||void 0,v);return S.level=y,x&&x.event_id&&(S.event_id=x.event_id),Sd(S)}(this._options.stackParser,i,r,c,this._options.attachStacktrace)}captureUserFeedback(i){if(!this._isEnabled())return void(Yb&&dn.warn("SDK not enabled, will not capture user feedback."));const r=function(c,{metadata:d,tunnel:f,dsn:y}){const x={event_id:c.event_id,sent_at:new Date().toISOString(),...d&&d.sdk&&{sdk:{name:d.sdk.name,version:d.sdk.version}},...!!f&&!!y&&{dsn:Gb(y)}};return lm(x,[function(S){return[{type:"user_report"},S]}(c)])}(i,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(r)}_prepareEvent(i,r,c){return i.platform=i.platform||"javascript",super._prepareEvent(i,r,c)}}const uM=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,es=Wn;let ZC,fx,px,Fb;function dM(){if(!es.document)return;const o=nr.bind(null,"dom"),i=QC(o,!0);es.document.addEventListener("click",i,!1),es.document.addEventListener("keypress",i,!1),["EventTarget","Node"].forEach(r=>{const c=es[r],d=c&&c.prototype;d&&d.hasOwnProperty&&d.hasOwnProperty("addEventListener")&&(Gs(d,"addEventListener",function(f){return function(y,x,v){if(y==="click"||y=="keypress")try{const S=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},j=S[y]=S[y]||{refCount:0};if(!j.handler){const B=QC(o);j.handler=B,f.call(this,y,B,v)}j.refCount++}catch{}return f.call(this,y,x,v)}}),Gs(d,"removeEventListener",function(f){return function(y,x,v){if(y==="click"||y=="keypress")try{const S=this.__sentry_instrumentation_handlers__||{},j=S[y];j&&(j.refCount--,j.refCount<=0&&(f.call(this,y,j.handler,v),j.handler=void 0,delete S[y]),Object.keys(S).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return f.call(this,y,x,v)}}))})}function QC(o,i=!1){return r=>{if(!r||r._sentryCaptured)return;const c=function(f){try{return f.target}catch{return null}}(r);if(function(f,y){return f==="keypress"&&(!y||!y.tagName||y.tagName!=="INPUT"&&y.tagName!=="TEXTAREA"&&!y.isContentEditable)}(r.type,c))return;_d(r,"_sentryCaptured",!0),c&&!c._sentryId&&_d(c,"_sentryId",co());const d=r.type==="keypress"?"input":r.type;(function(f){if(f.type!==fx)return!1;try{if(!f.target||f.target._sentryId!==px)return!1}catch{}return!0})(r)||(o({event:r,name:d,global:i}),fx=r.type,px=c?c._sentryId:void 0),clearTimeout(ZC),ZC=es.setTimeout(()=>{px=void 0,fx=void 0},1e3)}}function WC(o){const i="history";bd(i,o),vd(i,hM)}function hM(){if(!function(){const r=qb.chrome,c=r&&r.app&&r.app.runtime,d="history"in qb&&!!qb.history.pushState&&!!qb.history.replaceState;return!c&&d}())return;const o=es.onpopstate;function i(r){return function(...c){const d=c.length>2?c[2]:void 0;if(d){const f=Fb,y=String(d);Fb=y,nr("history",{from:f,to:y})}return r.apply(this,c)}}es.onpopstate=function(...r){const c=es.location.href,d=Fb;if(Fb=c,nr("history",{from:d,to:c}),o)try{return o.apply(this,r)}catch{}},Gs(es.history,"pushState",i),Gs(es.history,"replaceState",i)}const Xb={};function JC(o){Xb[o]=void 0}const cm="__sentry_xhr_v3__";function fM(){if(!es.XMLHttpRequest)return;const o=XMLHttpRequest.prototype;o.open=new Proxy(o.open,{apply(i,r,c){const d=new Error,f=1e3*Rl(),y=Ll(c[0])?c[0].toUpperCase():void 0,x=function(S){if(Ll(S))return S;try{return S.toString()}catch{}}(c[1]);if(!y||!x)return i.apply(r,c);r[cm]={method:y,url:x,request_headers:{}},y==="POST"&&x.match(/sentry_key/)&&(r.__sentry_own_request__=!0);const v=()=>{const S=r[cm];if(S&&r.readyState===4){try{S.status_code=r.status}catch{}nr("xhr",{endTimestamp:1e3*Rl(),startTimestamp:f,xhr:r,virtualError:d})}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?r.onreadystatechange=new Proxy(r.onreadystatechange,{apply:(S,j,B)=>(v(),S.apply(j,B))}):r.addEventListener("readystatechange",v),r.setRequestHeader=new Proxy(r.setRequestHeader,{apply(S,j,B){const[ee,ne]=B,O=j[cm];return O&&Ll(ee)&&Ll(ne)&&(O.request_headers[ee.toLowerCase()]=ne),S.apply(j,B)}}),i.apply(r,c)}}),o.send=new Proxy(o.send,{apply(i,r,c){const d=r[cm];return d?(c[0]!==void 0&&(d.body=c[0]),nr("xhr",{startTimestamp:1e3*Rl(),xhr:r}),i.apply(r,c)):i.apply(r,c)}})}function pM(o,i=function(r){const c=Xb[r];if(c)return c;let d=es[r];if(sx(d))return Xb[r]=d.bind(es);const f=es.document;if(f&&typeof f.createElement=="function")try{const y=f.createElement("iframe");y.hidden=!0,f.head.appendChild(y);const x=y.contentWindow;x&&x[r]&&(d=x[r]),f.head.removeChild(y)}catch(y){uM&&dn.warn(`Could not create sandbox iframe for ${r} check, bailing to window.${r}: `,y)}return d&&(Xb[r]=d.bind(es))}("fetch")){let r=0,c=0;return F7(o,function(d){const f=d.body.length;r+=f,c++;const y={body:d.body,method:"POST",referrerPolicy:"origin",headers:o.headers,keepalive:r<=6e4&&c<15,...o.fetchOptions};if(!i)return JC("fetch"),Hb("No fetch implementation available");try{return i(o.url,y).then(x=>(r-=f,c--,{statusCode:x.status,headers:{"x-sentry-rate-limits":x.headers.get("X-Sentry-Rate-Limits"),"retry-after":x.headers.get("Retry-After")}}))}catch(x){return JC("fetch"),r-=f,c--,Hb(x)}})}function gx(o,i,r,c){const d={filename:o,function:i==="<anonymous>"?yd:i,in_app:!0};return r!==void 0&&(d.lineno=r),c!==void 0&&(d.colno=c),d}const gM=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,mM=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,yM=/\((\S*)(?::(\d+))(?::(\d+))\)/,bM=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,vM=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,xM=function(...o){const i=o.sort((r,c)=>r[0]-c[0]).map(r=>r[1]);return(r,c=0,d=0)=>{const f=[],y=r.split(`
|
|
128
|
+
`);for(let x=c;x<y.length;x++){const v=y[x];if(v.length>1024)continue;const S=Y3.test(v)?v.replace(Y3,"$1"):v;if(!S.match(/\S*Error: /)){for(const j of i){const B=j(S);if(B){f.push(B);break}}if(f.length>=50+d)break}}return function(x){if(!x.length)return[];const v=Array.from(x);return/sentryWrapped/.test(Lb(v).function||"")&&v.pop(),v.reverse(),F3.test(Lb(v).function||"")&&(v.pop(),F3.test(Lb(v).function||"")&&v.pop()),v.slice(0,50).map(S=>({...S,filename:S.filename||Lb(v).filename,function:S.function||yd}))}(f.slice(d))}}([30,o=>{const i=gM.exec(o);if(i){const[,c,d,f]=i;return gx(c,yd,+d,+f)}const r=mM.exec(o);if(r){if(r[2]&&r[2].indexOf("eval")===0){const f=yM.exec(r[2]);f&&(r[2]=f[1],r[3]=f[2],r[4]=f[3])}const[c,d]=KC(r[1]||yd,r[2]);return gx(d,c,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],[50,o=>{const i=bM.exec(o);if(i){if(i[3]&&i[3].indexOf(" > eval")>-1){const d=vM.exec(i[3]);d&&(i[1]=i[1]||"eval",i[3]=d[1],i[4]=d[2],i[5]="")}let r=i[3],c=i[1]||yd;return[c,r]=KC(c,r),gx(r,c,i[4]?+i[4]:void 0,i[5]?+i[5]:void 0)}}]),KC=(o,i)=>{const r=o.indexOf("safari-extension")!==-1,c=o.indexOf("safari-web-extension")!==-1;return r||c?[o.indexOf("@")!==-1?o.split("@")[0]:yd,r?`safari-extension:${i}`:`safari-web-extension:${i}`]:[o,i]},ew=1024,_M=(o={})=>{const i={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...o};return{name:"Breadcrumbs",setup(r){var c;i.console&&function(d){const f="console";bd(f,d),vd(f,K7)}(function(d){return function(f){if(ja()!==d)return;const y={category:"console",data:{arguments:f.args,logger:"console"},level:eM(f.level),message:nC(f.args," ")};if(f.level==="assert"){if(f.args[0]!==!1)return;y.message=`Assertion failed: ${nC(f.args.slice(1)," ")||"console.assert"}`,y.data.arguments=f.args.slice(1)}wd(y,{input:f.args,level:f.level})}}(r)),i.dom&&(c=function(d,f){return function(y){if(ja()!==d)return;let x,v,S=typeof f=="object"?f.serializeAttribute:void 0,j=typeof f=="object"&&typeof f.maxStringLength=="number"?f.maxStringLength:void 0;j&&j>ew&&(Yb&&dn.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${j} was configured. Sentry will use 1024 instead.`),j=ew),typeof S=="string"&&(S=[S]);try{const ee=y.event,ne=function(O){return!!O&&!!O.target}(ee)?ee.target:ee;x=tC(ne,{keyAttrs:S,maxStringLength:j}),v=function(O){if(!P2.HTMLElement)return null;let V=O;for(let ae=0;ae<5;ae++){if(!V)return null;if(V instanceof HTMLElement){if(V.dataset.sentryComponent)return V.dataset.sentryComponent;if(V.dataset.sentryElement)return V.dataset.sentryElement}V=V.parentNode}return null}(ne)}catch{x="<unknown>"}if(x.length===0)return;const B={category:`ui.${y.name}`,message:x};v&&(B.data={"ui.component_name":v}),wd(B,{event:y.event,name:y.name,global:y.global})}}(r,i.dom),bd("dom",c),vd("dom",dM)),i.xhr&&function(d){bd("xhr",d),vd("xhr",fM)}(function(d){return function(f){if(ja()!==d)return;const{startTimestamp:y,endTimestamp:x}=f,v=f.xhr[cm];if(!y||!x||!v)return;const{method:S,url:j,status_code:B,body:ee}=v,ne={method:S,url:j,status_code:B},O={xhr:f.xhr,input:ee,startTimestamp:y,endTimestamp:x};wd({category:"xhr",data:ne,type:"http",level:qC(B)},O)}}(r)),i.fetch&&iM(function(d){return function(f){if(ja()!==d)return;const{startTimestamp:y,endTimestamp:x}=f;if(x&&(!f.fetchData.url.match(/sentry_key/)||f.fetchData.method!=="POST"))if(f.error)wd({category:"fetch",data:f.fetchData,level:"error",type:"http"},{data:f.error,input:f.args,startTimestamp:y,endTimestamp:x});else{const v=f.response,S={...f.fetchData,status_code:v&&v.status},j={input:f.args,response:v,startTimestamp:y,endTimestamp:x};wd({category:"fetch",data:S,type:"http",level:qC(S.status_code)},j)}}}(r)),i.history&&WC(function(d){return function(f){if(ja()!==d)return;let y=f.from,x=f.to;const v=ix(pa.location.href);let S=y?ix(y):void 0;const j=ix(x);S&&S.path||(S=v),v.protocol===j.protocol&&v.host===j.host&&(x=j.relative),v.protocol===S.protocol&&v.host===S.host&&(y=S.relative),wd({category:"navigation",data:{from:y,to:x}})}}(r)),i.sentry&&r.on("beforeSendEvent",function(d){return function(f){ja()===d&&wd({category:"sentry."+(f.type==="transaction"?"transaction":"event"),event_id:f.event_id,level:f.level,message:qc(f)},{event:f})}}(r))}}},SM=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],CM=(o={})=>{const i={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...o};return{name:"BrowserApiErrors",setupOnce(){i.setTimeout&&Gs(pa,"setTimeout",tw),i.setInterval&&Gs(pa,"setInterval",tw),i.requestAnimationFrame&&Gs(pa,"requestAnimationFrame",wM),i.XMLHttpRequest&&"XMLHttpRequest"in pa&&Gs(XMLHttpRequest.prototype,"send",kM);const r=i.eventTarget;r&&(Array.isArray(r)?r:SM).forEach(TM)}}};function tw(o){return function(...i){const r=i[0];return i[0]=Sf(r,{mechanism:{data:{function:Ic(o)},handled:!1,type:"instrument"}}),o.apply(this,i)}}function wM(o){return function(i){return o.apply(this,[Sf(i,{mechanism:{data:{function:"requestAnimationFrame",handler:Ic(o)},handled:!1,type:"instrument"}})])}}function kM(o){return function(...i){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(c=>{c in r&&typeof r[c]=="function"&&Gs(r,c,function(d){const f={mechanism:{data:{function:c,handler:Ic(d)},handled:!1,type:"instrument"}},y=V2(d);return y&&(f.mechanism.data.handler=Ic(y)),Sf(d,f)})}),o.apply(this,i)}}function TM(o){const i=pa[o],r=i&&i.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(Gs(r,"addEventListener",function(c){return function(d,f,y){try{typeof f.handleEvent=="function"&&(f.handleEvent=Sf(f.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ic(f),target:o},handled:!1,type:"instrument"}}))}catch{}return c.apply(this,[d,Sf(f,{mechanism:{data:{function:"addEventListener",handler:Ic(f),target:o},handled:!1,type:"instrument"}}),y])}}),Gs(r,"removeEventListener",function(c){return function(d,f,y){try{const x=f.__sentry_wrapped__;x&&c.call(this,d,x,y)}catch{}return c.call(this,d,f,y)}}))}const MM=()=>({name:"BrowserSession",setupOnce(){pa.document!==void 0?(MC({ignoreDuration:!0}),DC(),WC(({from:o,to:i})=>{o!==void 0&&o!==i&&(MC({ignoreDuration:!0}),DC())})):Yb&&dn.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}),AM=(o={})=>{const i={onerror:!0,onunhandledrejection:!0,...o};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(r){i.onerror&&(function(c){(function(d){const f="error";bd(f,d),vd(f,b7)})(d=>{const{stackParser:f,attachStacktrace:y}=iw();if(ja()!==c||FC())return;const{msg:x,url:v,line:S,column:j,error:B}=d,ee=function(ne,O,V,ae){const ie=ne.exception=ne.exception||{},U=ie.values=ie.values||[],P=U[0]=U[0]||{},X=P.stacktrace=P.stacktrace||{},Q=X.frames=X.frames||[],$=ae,I=V,he=Ll(O)&&O.length>0?O:function(){try{return P2.document.location.href}catch{return""}}();return Q.length===0&&Q.push({colno:$,filename:he,function:yd,in_app:!0,lineno:I}),ne}(dx(f,B||x,void 0,y,!1),v,S,j);ee.level="error",TC(ee,{originalException:B,mechanism:{handled:!1,type:"onerror"}})})}(r),nw("onerror")),i.onunhandledrejection&&(function(c){(function(d){const f="unhandledrejection";bd(f,d),vd(f,v7)})(d=>{const{stackParser:f,attachStacktrace:y}=iw();if(ja()!==c||FC())return;const x=function(S){if(G2(S))return S;try{if("reason"in S)return S.reason;if("detail"in S&&"reason"in S.detail)return S.detail.reason}catch{}return S}(d),v=G2(x)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(x)}`}]}}:dx(f,x,void 0,y,!0);v.level="error",TC(v,{originalException:x,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(r),nw("onunhandledrejection"))}}};function nw(o){Yb&&dn.log(`Global Handler attached: ${o}`)}function iw(){const o=ja();return o&&o.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const EM=()=>({name:"HttpContext",preprocessEvent(o){if(!pa.navigator&&!pa.location&&!pa.document)return;const i=o.request&&o.request.url||pa.location&&pa.location.href,{referrer:r}=pa.document||{},{userAgent:c}=pa.navigator||{},d={...o.request&&o.request.headers,...r&&{Referer:r},...c&&{"User-Agent":c}},f={...o.request,...i&&{url:i},headers:d};o.request=f}}),DM=(o={})=>{const i=o.limit||5,r=o.key||"cause";return{name:"LinkedErrors",preprocessEvent(c,d,f){const y=f.getOptions();J7(lx,y.stackParser,y.maxValueLength,r,i,c,d)}}};var aw="new",sw="loading",ow="loaded",mx="joining-meeting",kd="joined-meeting",Td="left-meeting",Fc="error",OM="playable",yx="unknown",jM="full",LM="base",rw="no-room",RM="end-of-life",NM="connection-error",zM="iframe-ready-for-launch-config",BM="iframe-launch-config",UM="theme-updated",HM="loading",$M="load-attempt-failed",lw="loaded",GM="started-camera",PM="camera-error",VM="joining-meeting",IM="joined-meeting",qM="left-meeting",YM="participant-joined",FM="participant-updated",XM="participant-left",ZM="participant-counts-updated",QM="access-state-updated",WM="meeting-session-summary-updated",JM="meeting-session-state-updated",KM="waiting-participant-added",eA="waiting-participant-updated",tA="waiting-participant-removed",nA="track-started",iA="track-stopped",aA="transcription-started",sA="transcription-stopped",oA="transcription-error",cw="recording-started",uw="recording-stopped",rA="recording-stats",lA="recording-error",cA="recording-upload-completed",uA="recording-data",dA="app-message",hA="transcription-message",fA="remote-media-player-started",pA="remote-media-player-updated",gA="remote-media-player-stopped",mA="local-screen-share-started",yA="local-screen-share-stopped",bA="local-screen-share-canceled",vA="active-speaker-change",xA="active-speaker-mode-change",_A="network-quality-change",SA="network-connection",CA="cpu-load-change",wA="face-counts-updated",Zb="fullscreen",Qb="exited-fullscreen",kA="live-streaming-started",TA="live-streaming-updated",MA="live-streaming-stopped",AA="live-streaming-error",EA="lang-updated",DA="receive-settings-updated",dw="input-settings-updated",hw="nonfatal-error",fw="error",bx=4096,pw=102400,vx="iframe-call-message",gw="local-screen-start",mw="daily-method-update-live-streaming-endpoints",Wb="transmit-log",Bl="daily-custom-track",Jb={NONE:"none",BGBLUR:"background-blur",BGIMAGE:"background-image",FACE_DETECTION:"face-detection"},yw={NONE:"none",NOISE_CANCELLATION:"noise-cancellation"},xx={PLAY:"play",PAUSE:"pause"},_x=["jpg","png","jpeg"],OA="add-endpoints",jA="remove-endpoints",bw="sip-call-transfer";function ho(){return!Hn()&&typeof window<"u"&&window.navigator&&window.navigator.userAgent?window.navigator.userAgent:""}function Hn(){return typeof navigator<"u"&&navigator.product&&navigator.product==="ReactNative"}function vw(){return navigator&&navigator.mediaDevices&&navigator.mediaDevices.getUserMedia}function LA(){return!!(navigator&&navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia)&&(function(o,i){if(!o||!i)return!0;switch(o){case"Chrome":return i.major>=75;case"Safari":return RTCRtpTransceiver.prototype.hasOwnProperty("currentDirection")&&!(i.major===13&&i.minor===0&&i.point===0);case"Firefox":return i.major>=67}return!0}(Md(),Kb())||Hn())}function xw(){if(Hn()||!document)return!1;var o=document.createElement("iframe");return!!o.requestFullscreen||!!o.webkitRequestFullscreen}var RA=function(){try{var o=document.createElement("canvas"),i=(navigator.webdriver?o.getContext("webgl2"):o.getContext("webgl2",{failIfMajorPerformanceCaveat:!0}))!=null;return o.remove(),i}catch{return!1}}();function _w(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return!Hn()&&!!RA&&(o?function(){return kw()?!1:["Chrome","Firefox"].includes(Md())}():function(){if(kw())return!1;var i=Md();if(i==="Safari"){var r=Cx();if(r.major<15||r.major===15&&r.minor<4)return!1}return i==="Chrome"?Sx().major>=77:i==="Firefox"?wx().major>=97:["Chrome","Firefox","Safari"].includes(i)}())}function Sw(){if(Hn()||ww()||typeof AudioWorkletNode>"u")return!1;switch(Md()){case"Chrome":case"Firefox":return!0;case"Safari":var o=Kb();return o.major>17||o.major===17&&o.minor>=4}return!1}function Cw(){return vw()&&!function(){var o,i=Md();if(!ho())return!0;switch(i){case"Chrome":return(o=Sx()).major&&o.major>0&&o.major<75;case"Firefox":return(o=wx()).major<91;case"Safari":return(o=Cx()).major<13||o.major===13&&o.minor<1;default:return!0}}()}function ww(){return ho().match(/Linux; Android/)}function kw(){var o,i=ho(),r=i.match(/Mac/)&&(!Hn()&&typeof window<"u"&&(o=window)!==null&&o!==void 0&&(o=o.navigator)!==null&&o!==void 0&&o.maxTouchPoints?window.navigator.maxTouchPoints:0)>=5;return!!(i.match(/Mobi/)||i.match(/Android/)||r)||!!ho().match(/DailyAnd\//)||void 0}function Md(){if(typeof window<"u"){var o=ho();return Tw()?"Safari":o.indexOf("Edge")>-1?"Edge":o.match(/Chrome\//)?"Chrome":o.indexOf("Safari")>-1||Mw()?"Safari":o.indexOf("Firefox")>-1?"Firefox":o.indexOf("MSIE")>-1||o.indexOf(".NET")>-1?"IE":"Unknown Browser"}}function Kb(){switch(Md()){case"Chrome":return Sx();case"Safari":return Cx();case"Firefox":return wx();case"Edge":return function(){var o=0,i=0;if(typeof window<"u"){var r=ho().match(/Edge\/(\d+).(\d+)/);if(r)try{o=parseInt(r[1]),i=parseInt(r[2])}catch{}}return{major:o,minor:i}}()}}function Sx(){var o=0,i=0,r=0,c=0,d=!1;if(typeof window<"u"){var f=ho(),y=f.match(/Chrome\/(\d+).(\d+).(\d+).(\d+)/);if(y)try{o=parseInt(y[1]),i=parseInt(y[2]),r=parseInt(y[3]),c=parseInt(y[4]),d=f.indexOf("OPR/")>-1}catch{}}return{major:o,minor:i,build:r,patch:c,opera:d}}function Tw(){return!!ho().match(/iPad|iPhone|iPod/i)&&vw()}function Mw(){return ho().indexOf("AppleWebKit/605.1.15")>-1}function Cx(){var o=0,i=0,r=0;if(typeof window<"u"){var c=ho().match(/Version\/(\d+).(\d+)(.(\d+))?/);if(c)try{o=parseInt(c[1]),i=parseInt(c[2]),r=parseInt(c[4])}catch{}else(Tw()||Mw())&&(o=14,i=0,r=3)}return{major:o,minor:i,point:r}}function wx(){var o=0,i=0;if(typeof window<"u"){var r=ho().match(/Firefox\/(\d+).(\d+)/);if(r)try{o=parseInt(r[1]),i=parseInt(r[2])}catch{}}return{major:o,minor:i}}var Aw=function(){return $s(function o(){Hs(this,o)},[{key:"addListenerForMessagesFromCallMachine",value:function(o,i,r){am()}},{key:"addListenerForMessagesFromDailyJs",value:function(o,i,r){am()}},{key:"sendMessageToCallMachine",value:function(o,i,r,c){am()}},{key:"sendMessageToDailyJs",value:function(o,i){am()}},{key:"removeListener",value:function(o){am()}}])}();function Ew(o,i){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);i&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),r.push.apply(r,c)}return r}function kx(o){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?Ew(Object(r),!0).forEach(function(c){Ur(o,c,r[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):Ew(Object(r)).forEach(function(c){Object.defineProperty(o,c,Object.getOwnPropertyDescriptor(r,c))})}return o}function Dw(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dw=function(){return!!o})()}var NA=function(){function o(){var i,r,c,d;return Hs(this,o),r=this,c=tr(c=o),(i=wb(r,Dw()?Reflect.construct(c,[],tr(r).constructor):c.apply(r,d)))._wrappedListeners={},i._messageCallbacks={},i}return kb(o,Aw),$s(o,[{key:"addListenerForMessagesFromCallMachine",value:function(i,r,c){var d=this,f=function(y){if(y.data&&y.data.what==="iframe-call-message"&&(!y.data.callClientId||y.data.callClientId===r)&&(!y.data.from||y.data.from!=="module")){var x=kx({},y.data);if(delete x.from,x.callbackStamp&&d._messageCallbacks[x.callbackStamp]){var v=x.callbackStamp;d._messageCallbacks[v].call(c,x),delete d._messageCallbacks[v]}delete x.what,delete x.callbackStamp,i.call(c,x)}};this._wrappedListeners[i]=f,window.addEventListener("message",f)}},{key:"addListenerForMessagesFromDailyJs",value:function(i,r,c){var d=function(f){var y;if(!(!f.data||f.data.what!==vx||!f.data.action||f.data.from&&f.data.from!=="module"||f.data.callClientId&&r&&f.data.callClientId!==r||f!=null&&(y=f.data)!==null&&y!==void 0&&y.callFrameId)){var x=f.data;i.call(c,x)}};this._wrappedListeners[i]=d,window.addEventListener("message",d)}},{key:"sendMessageToCallMachine",value:function(i,r,c,d){if(!c)throw new Error("undefined callClientId. Are you trying to use a DailyCall instance previously destroyed?");var f=kx({},i);if(f.what=vx,f.from="module",f.callClientId=c,r){var y=Ab();this._messageCallbacks[y]=r,f.callbackStamp=y}var x=d?d.contentWindow:window,v=this._callMachineTargetOrigin(d);v&&x.postMessage(f,v)}},{key:"sendMessageToDailyJs",value:function(i,r){i.what=vx,i.callClientId=r,i.from="embedded",window.postMessage(i,this._targetOriginFromWindowLocation())}},{key:"removeListener",value:function(i){var r=this._wrappedListeners[i];r&&(window.removeEventListener("message",r),delete this._wrappedListeners[i])}},{key:"forwardPackagedMessageToCallMachine",value:function(i,r,c){var d=kx({},i);d.callClientId=c;var f=r?r.contentWindow:window,y=this._callMachineTargetOrigin(r);y&&f.postMessage(d,y)}},{key:"addListenerForPackagedMessagesFromCallMachine",value:function(i,r){var c=function(d){if(d.data&&d.data.what==="iframe-call-message"&&(!d.data.callClientId||d.data.callClientId===r)&&(!d.data.from||d.data.from!=="module")){var f=d.data;i(f)}};return this._wrappedListeners[i]=c,window.addEventListener("message",c),i}},{key:"removeListenerForPackagedMessagesFromCallMachine",value:function(i){var r=this._wrappedListeners[i];r&&(window.removeEventListener("message",r),delete this._wrappedListeners[i])}},{key:"_callMachineTargetOrigin",value:function(i){return i?i.src?new URL(i.src).origin:void 0:this._targetOriginFromWindowLocation()}},{key:"_targetOriginFromWindowLocation",value:function(){return window.location.protocol==="file:"?"*":window.location.origin}}])}();function Ow(o,i){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);i&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),r.push.apply(r,c)}return r}function jw(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jw=function(){return!!o})()}var zA=function(){function o(){var i,r,c,d;return Hs(this,o),r=this,c=tr(c=o),i=wb(r,jw()?Reflect.construct(c,[],tr(r).constructor):c.apply(r,d)),global.callMachineToDailyJsEmitter=global.callMachineToDailyJsEmitter||new R2.EventEmitter,global.dailyJsToCallMachineEmitter=global.dailyJsToCallMachineEmitter||new R2.EventEmitter,i._wrappedListeners={},i._messageCallbacks={},i}return kb(o,Aw),$s(o,[{key:"addListenerForMessagesFromCallMachine",value:function(i,r,c){this._addListener(i,global.callMachineToDailyJsEmitter,r,c,"received call machine message")}},{key:"addListenerForMessagesFromDailyJs",value:function(i,r,c){this._addListener(i,global.dailyJsToCallMachineEmitter,r,c,"received daily-js message")}},{key:"sendMessageToCallMachine",value:function(i,r,c){this._sendMessage(i,global.dailyJsToCallMachineEmitter,c,r,"sending message to call machine")}},{key:"sendMessageToDailyJs",value:function(i,r){this._sendMessage(i,global.callMachineToDailyJsEmitter,r,null,"sending message to daily-js")}},{key:"removeListener",value:function(i){var r=this._wrappedListeners[i];r&&(global.callMachineToDailyJsEmitter.removeListener("message",r),global.dailyJsToCallMachineEmitter.removeListener("message",r),delete this._wrappedListeners[i])}},{key:"_addListener",value:function(i,r,c,d,f){var y=this,x=function(v){if(v.callClientId===c){if(v.callbackStamp&&y._messageCallbacks[v.callbackStamp]){var S=v.callbackStamp;y._messageCallbacks[S].call(d,v),delete y._messageCallbacks[S]}i.call(d,v)}};this._wrappedListeners[i]=x,r.addListener("message",x)}},{key:"_sendMessage",value:function(i,r,c,d,f){var y=function(v){for(var S=1;S<arguments.length;S++){var j=arguments[S]!=null?arguments[S]:{};S%2?Ow(Object(j),!0).forEach(function(B){Ur(v,B,j[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(j)):Ow(Object(j)).forEach(function(B){Object.defineProperty(v,B,Object.getOwnPropertyDescriptor(j,B))})}return v}({},i);if(y.callClientId=c,d){var x=Ab();this._messageCallbacks[x]=d,y.callbackStamp=x}r.emit("message",y)}}])}(),Tx="replace",Mx="shallow-merge",Lw=[Tx,Mx],BA=function(){function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=i.data,c=i.mergeStrategy,d=c===void 0?Tx:c;Hs(this,o),o._validateMergeStrategy(d),o._validateData(r,d),this.mergeStrategy=d,this.data=r}return $s(o,[{key:"isNoOp",value:function(){return o.isNoOpUpdate(this.data,this.mergeStrategy)}}],[{key:"isNoOpUpdate",value:function(i,r){return Object.keys(i).length===0&&r===Mx}},{key:"_validateMergeStrategy",value:function(i){if(!Lw.includes(i))throw Error("Unrecognized mergeStrategy provided. Options are: [".concat(Lw,"]"))}},{key:"_validateData",value:function(i,r){if(!function(x){if(x==null||Yn(x)!=="object")return!1;var v=Object.getPrototypeOf(x);return v==null||v===Object.prototype}(i))throw Error("Meeting session data must be a plain (map-like) object");var c;try{if(c=JSON.stringify(i),r===Tx){var d=JSON.parse(c);Ja(d,i)||console.warn("The meeting session data provided will be modified when serialized.",d,i)}else if(r===Mx){for(var f in i)if(Object.hasOwnProperty.call(i,f)&&i[f]!==void 0){var y=JSON.parse(JSON.stringify(i[f]));Ja(i[f],y)||console.warn("At least one key in the meeting session data provided will be modified when serialized.",y,i[f])}}}catch(x){throw Error("Meeting session data must be serializable to JSON: ".concat(x))}if(c.length>pw)throw Error("Meeting session data is too large (".concat(c.length," characters). Maximum size suppported is ").concat(pw,"."))}}])}();function Rw(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rw=function(){return!!o})()}function Ax(o){var i=typeof Map=="function"?new Map:void 0;return Ax=function(r){if(r===null||!function(d){try{return Function.toString.call(d).indexOf("[native code]")!==-1}catch{return typeof d=="function"}}(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(i!==void 0){if(i.has(r))return i.get(r);i.set(r,c)}function c(){return function(d,f,y){if(Rw())return Reflect.construct.apply(null,arguments);var x=[null];x.push.apply(x,f);var v=new(d.bind.apply(d,x));return y&&im(v,y.prototype),v}(r,arguments,tr(this).constructor)}return c.prototype=Object.create(r.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),im(c,r)},Ax(o)}function Nw(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nw=function(){return!!o})()}function zw(o){var i,r=(i=window._daily)===null||i===void 0?void 0:i.pendings;if(r){var c=r.indexOf(o);c!==-1&&r.splice(c,1)}}var UA=function(){return $s(function o(i){Hs(this,o),this._currentLoad=null,this._callClientId=i},[{key:"load",value:function(){var o,i=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0,d=arguments.length>2?arguments[2]:void 0;if(this.loaded)return window._daily.instances[this._callClientId].callMachine.reset(),void c(!0);o=this._callClientId,window._daily.pendings.push(o),this._currentLoad&&this._currentLoad.cancel(),this._currentLoad=new HA(r,function(){c(!1)},function(f,y){y||zw(i._callClientId),d(f,y)}),this._currentLoad.start()}},{key:"cancel",value:function(){this._currentLoad&&this._currentLoad.cancel(),zw(this._callClientId)}},{key:"loaded",get:function(){return this._currentLoad&&this._currentLoad.succeeded}}])}(),HA=function(){return $s(function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,c=arguments.length>2?arguments[2]:void 0;Hs(this,o),this._attemptsRemaining=3,this._currentAttempt=null,this._dailyConfig=i,this._successCallback=r,this._failureCallback=c},[{key:"start",value:function(){var o=this;if(!this._currentAttempt){var i=function(r){o._currentAttempt.cancelled||(o._attemptsRemaining--,o._failureCallback(r,o._attemptsRemaining>0),o._attemptsRemaining<=0||setTimeout(function(){o._currentAttempt.cancelled||(o._currentAttempt=new Bw(o._dailyConfig,o._successCallback,i),o._currentAttempt.start())},3e3))};this._currentAttempt=new Bw(this._dailyConfig,this._successCallback,i),this._currentAttempt.start()}}},{key:"cancel",value:function(){this._currentAttempt&&this._currentAttempt.cancel()}},{key:"cancelled",get:function(){return this._currentAttempt&&this._currentAttempt.cancelled}},{key:"succeeded",get:function(){return this._currentAttempt&&this._currentAttempt.succeeded}}])}(),Ex=function(){function o(){return Hs(this,o),i=this,c=arguments,r=tr(r=o),wb(i,Nw()?Reflect.construct(r,c||[],tr(i).constructor):r.apply(i,c));var i,r,c}return kb(o,Ax(Error)),$s(o)}(),e1=2e4,Bw=function(){return $s(function i(r,c,d){Hs(this,i),this._loadAttemptImpl=Hn()||!r.avoidEval?new $A(r,c,d):new GA(r,c,d)},[{key:"start",value:(o=on(function*(){return this._loadAttemptImpl.start()}),function(){return o.apply(this,arguments)})},{key:"cancel",value:function(){this._loadAttemptImpl.cancel()}},{key:"cancelled",get:function(){return this._loadAttemptImpl.cancelled}},{key:"succeeded",get:function(){return this._loadAttemptImpl.succeeded}}]);var o}(),$A=function(){return $s(function d(f,y,x){Hs(this,d),this.cancelled=!1,this.succeeded=!1,this._networkTimedOut=!1,this._networkTimeout=null,this._iosCache=typeof iOSCallObjectBundleCache<"u"&&iOSCallObjectBundleCache,this._refetchHeaders=null,this._dailyConfig=f,this._successCallback=y,this._failureCallback=x},[{key:"start",value:(c=on(function*(){var d=Eb(this._dailyConfig);!(yield this._tryLoadFromIOSCache(d))&&this._loadFromNetwork(d)}),function(){return c.apply(this,arguments)})},{key:"cancel",value:function(){clearTimeout(this._networkTimeout),this.cancelled=!0}},{key:"_tryLoadFromIOSCache",value:(r=on(function*(d){if(!this._iosCache)return!1;try{var f=yield this._iosCache.get(d);return!!this.cancelled||!!f&&(f.code?(Function('"use strict";'+f.code)(),this.succeeded=!0,this._successCallback(),!0):(this._refetchHeaders=f.refetchHeaders,!1))}catch{return!1}}),function(d){return r.apply(this,arguments)})},{key:"_loadFromNetwork",value:(i=on(function*(d){var f=this;this._networkTimeout=setTimeout(function(){f._networkTimedOut=!0,f._failureCallback({msg:"Timed out (>".concat(e1," ms) when loading call object bundle ").concat(d),type:"timeout"})},e1);try{var y=this._refetchHeaders?{headers:this._refetchHeaders}:{},x=yield fetch(d,y);if(clearTimeout(this._networkTimeout),this.cancelled||this._networkTimedOut)throw new Ex;var v=yield this._getBundleCodeFromResponse(d,x);if(this.cancelled)throw new Ex;Function('"use strict";'+v)(),this._iosCache&&this._iosCache.set(d,v,x.headers),this.succeeded=!0,this._successCallback()}catch(S){if(clearTimeout(this._networkTimeout),S instanceof Ex||this.cancelled||this._networkTimedOut)return;this._failureCallback({msg:"Failed to load call object bundle ".concat(d,": ").concat(S),type:S.message})}}),function(d){return i.apply(this,arguments)})},{key:"_getBundleCodeFromResponse",value:(o=on(function*(d,f){if(f.ok)return yield f.text();if(this._iosCache&&f.status===304)return(yield this._iosCache.renew(d,f.headers)).code;throw new Error("Received ".concat(f.status," response"))}),function(d,f){return o.apply(this,arguments)})}]);var o,i,r,c}(),GA=function(){return $s(function o(i,r,c){Hs(this,o),this.cancelled=!1,this.succeeded=!1,this._dailyConfig=i,this._successCallback=r,this._failureCallback=c,this._attemptId=Ab(),this._networkTimeout=null,this._scriptElement=null},[{key:"start",value:function(){window._dailyCallMachineLoadWaitlist||(window._dailyCallMachineLoadWaitlist=new Set);var o=Eb(this._dailyConfig);(typeof document>"u"?"undefined":Yn(document))==="object"?this._startLoading(o):this._failureCallback({msg:"Call object bundle must be loaded in a DOM/web context",type:"missing context"})}},{key:"cancel",value:function(){this._stopLoading(),this.cancelled=!0}},{key:"_startLoading",value:function(o){var i=this;this._signUpForCallMachineLoadWaitlist(),this._networkTimeout=setTimeout(function(){i._stopLoading(),i._failureCallback({msg:"Timed out (>".concat(e1," ms) when loading call object bundle ").concat(o),type:"timeout"})},e1);var r=document.getElementsByTagName("head")[0],c=document.createElement("script");this._scriptElement=c,c.onload=function(){i._stopLoading(),i.succeeded=!0,i._successCallback()},c.onerror=function(d){i._stopLoading(),i._failureCallback({msg:"Failed to load call object bundle ".concat(d.target.src),type:d.message})},c.src=o,r.appendChild(c)}},{key:"_stopLoading",value:function(){this._withdrawFromCallMachineLoadWaitlist(),clearTimeout(this._networkTimeout),this._scriptElement&&(this._scriptElement.onload=null,this._scriptElement.onerror=null)}},{key:"_signUpForCallMachineLoadWaitlist",value:function(){window._dailyCallMachineLoadWaitlist.add(this._attemptId)}},{key:"_withdrawFromCallMachineLoadWaitlist",value:function(){window._dailyCallMachineLoadWaitlist.delete(this._attemptId)}}])}(),t1=function(o,i,r){return VA(o.local,i,r)===!0},PA=function(o,i,r){return o.local.streams&&o.local.streams[i]&&o.local.streams[i].stream&&o.local.streams[i].stream["get".concat(r==="video"?"Video":"Audio","Tracks")]()[0]},Cf=function(o,i,r,c){var d=IA(o,i,r,c);return d&&d.pendingTrack},VA=function(o,i,r){if(!o)return!1;var c=function(f){switch(f){case"avatar":return!0;case"staged":return f;default:return!!f}},d=o.public.subscribedTracks;return d&&d[i]?["cam-audio","cam-video","screen-video","screen-audio","rmpAudio","rmpVideo"].indexOf(r)===-1&&d[i].custom?[!0,"staged"].includes(d[i].custom)?c(d[i].custom):c(d[i].custom[r]):c(d[i][r]):!d||c(d.ALL)},IA=function(o,i,r,c){var d=Object.values(o.streams||{}).filter(function(f){return f.participantId===i&&f.type===r&&f.pendingTrack&&f.pendingTrack.kind===c}).sort(function(f,y){return new Date(y.starttime)-new Date(f.starttime)});return d&&d[0]},qA=function(o,i){var r=o.local.public.customTracks;if(r&&r[i])return r[i].track};function Uw(o,i){for(var r=i.getState(),c=0,d=["cam","screen"];c<d.length;c++)for(var f=d[c],y=0,x=["video","audio"];y<x.length;y++){var v=x[y],S=f==="cam"?v:"screen".concat(v.charAt(0).toUpperCase()+v.slice(1)),j=o.tracks[S];if(j){var B=o.local?PA(r,f,v):Cf(r,o.session_id,f,v);j.state==="playable"&&(j.track=B),j.persistentTrack=B}}}function Hw(o,i){try{var r=i.getState();for(var c in o.tracks)if(!YA(c)){var d=o.tracks[c].kind;if(d){var f=o.tracks[c];if(f){var y=o.local?qA(r,c):Cf(r,o.session_id,c,d);f.state==="playable"&&(o.tracks[c].track=y),f.persistentTrack=y}}else console.error("unknown type for custom track")}}catch(x){console.error(x)}}function YA(o){return["video","audio","screenVideo","screenAudio"].includes(o)}function $w(o,i,r){var c=r.getState();if(o.local){if(o.audio)try{o.audioTrack=c.local.streams.cam.stream.getAudioTracks()[0],o.audioTrack||(o.audio=!1)}catch{}if(o.video)try{o.videoTrack=c.local.streams.cam.stream.getVideoTracks()[0],o.videoTrack||(o.video=!1)}catch{}if(o.screen)try{o.screenVideoTrack=c.local.streams.screen.stream.getVideoTracks()[0],o.screenAudioTrack=c.local.streams.screen.stream.getAudioTracks()[0],o.screenVideoTrack||o.screenAudioTrack||(o.screen=!1)}catch{}}else{var d=!0;try{var f=c.participants[o.session_id];f&&f.public&&f.public.rtcType&&f.public.rtcType.impl==="peer-to-peer"&&f.private&&!["connected","completed"].includes(f.private.peeringState)&&(d=!1)}catch(j){console.error(j)}if(!d)return o.audio=!1,o.audioTrack=!1,o.video=!1,o.videoTrack=!1,o.screen=!1,void(o.screenTrack=!1);try{if(c.streams,o.audio&&t1(c,o.session_id,"cam-audio")){var y=Cf(c,o.session_id,"cam","audio");y&&(i&&i.audioTrack&&i.audioTrack.id===y.id?o.audioTrack=y:y.muted||(o.audioTrack=y)),o.audioTrack||(o.audio=!1)}if(o.video&&t1(c,o.session_id,"cam-video")){var x=Cf(c,o.session_id,"cam","video");x&&(i&&i.videoTrack&&i.videoTrack.id===x.id?o.videoTrack=x:x.muted||(o.videoTrack=x)),o.videoTrack||(o.video=!1)}if(o.screen&&t1(c,o.session_id,"screen-audio")){var v=Cf(c,o.session_id,"screen","audio");v&&(i&&i.screenAudioTrack&&i.screenAudioTrack.id===v.id?o.screenAudioTrack=v:v.muted||(o.screenAudioTrack=v))}if(o.screen&&t1(c,o.session_id,"screen-video")){var S=Cf(c,o.session_id,"screen","video");S&&(i&&i.screenVideoTrack&&i.screenVideoTrack.id===S.id?o.screenVideoTrack=S:S.muted||(o.screenVideoTrack=S))}o.screenVideoTrack||o.screenAudioTrack||(o.screen=!1)}catch(j){console.error("unexpected error matching up tracks",j)}}}function FA(o,i){var r=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!r){if(Array.isArray(o)||(r=function(v,S){if(v){if(typeof v=="string")return Gw(v,S);var j={}.toString.call(v).slice(8,-1);return j==="Object"&&v.constructor&&(j=v.constructor.name),j==="Map"||j==="Set"?Array.from(v):j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j)?Gw(v,S):void 0}}(o))||i){r&&(o=r);var c=0,d=function(){};return{s:d,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(v){throw v},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
129
129
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,y=!0,x=!1;return{s:function(){r=r.call(o)},n:function(){var v=r.next();return y=v.done,v},e:function(v){x=!0,f=v},f:function(){try{y||r.return==null||r.return()}finally{if(x)throw f}}}}function Gw(o,i){(i==null||i>o.length)&&(i=o.length);for(var r=0,c=Array(i);r<i;r++)c[r]=o[r];return c}var Hr=new Map,wf=null;function XA(o,i){var r=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!r){if(Array.isArray(o)||(r=function(v,S){if(v){if(typeof v=="string")return Pw(v,S);var j={}.toString.call(v).slice(8,-1);return j==="Object"&&v.constructor&&(j=v.constructor.name),j==="Map"||j==="Set"?Array.from(v):j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j)?Pw(v,S):void 0}}(o))||i){r&&(o=r);var c=0,d=function(){};return{s:d,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(v){throw v},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
130
130
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,y=!0,x=!1;return{s:function(){r=r.call(o)},n:function(){var v=r.next();return y=v.done,v},e:function(v){x=!0,f=v},f:function(){try{y||r.return==null||r.return()}finally{if(x)throw f}}}}function Pw(o,i){(i==null||i>o.length)&&(i=o.length);for(var r=0,c=Array(i);r<i;r++)c[r]=o[r];return c}var $r=new Map,um=null;function ZA(o){Vw()?function(i){Hr.has(i)||(Hr.set(i,{}),navigator.mediaDevices.enumerateDevices().then(function(r){Hr.has(i)&&(Hr.get(i).lastDevicesString=JSON.stringify(r),wf||(wf=function(){var c=on(function*(){var d,f=yield navigator.mediaDevices.enumerateDevices(),y=FA(Hr.keys());try{for(y.s();!(d=y.n()).done;){var x=d.value,v=JSON.stringify(f);v!==Hr.get(x).lastDevicesString&&(Hr.get(x).lastDevicesString=v,x(f))}}catch(S){y.e(S)}finally{y.f()}});return function(){return c.apply(this,arguments)}}(),navigator.mediaDevices.addEventListener("devicechange",wf)))}).catch(function(){}))}(o):function(i){$r.has(i)||($r.set(i,{}),navigator.mediaDevices.enumerateDevices().then(function(r){$r.has(i)&&($r.get(i).lastDevicesString=JSON.stringify(r),um||(um=setInterval(on(function*(){var c,d=yield navigator.mediaDevices.enumerateDevices(),f=XA($r.keys());try{for(f.s();!(c=f.n()).done;){var y=c.value,x=JSON.stringify(d);x!==$r.get(y).lastDevicesString&&($r.get(y).lastDevicesString=x,y(d))}}catch(v){f.e(v)}finally{f.f()}}),3e3)))}))}(o)}function QA(o){Vw()?function(i){Hr.has(i)&&(Hr.delete(i),Hr.size===0&&wf&&(navigator.mediaDevices.removeEventListener("devicechange",wf),wf=null))}(o):function(i){$r.has(i)&&($r.delete(i),$r.size===0&&um&&(clearInterval(um),um=null))}(o)}function Vw(){var o;return Hn()||((o=navigator.mediaDevices)===null||o===void 0?void 0:o.ondevicechange)!==void 0}var WA=new Set;function JA(o,i){return o&&o.readyState==="live"&&!function(r,c){return r.muted&&!WA.has(r.id)}(o)}function Iw(o,i){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);i&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),r.push.apply(r,c)}return r}function Xc(o){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?Iw(Object(r),!0).forEach(function(c){Ur(o,c,r[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):Iw(Object(r)).forEach(function(c){Object.defineProperty(o,c,Object.getOwnPropertyDescriptor(r,c))})}return o}var dm=Object.freeze({VIDEO:"video",AUDIO:"audio",SCREEN_VIDEO:"screenVideo",SCREEN_AUDIO:"screenAudio",CUSTOM_VIDEO:"customVideo",CUSTOM_AUDIO:"customAudio"}),KA=Object.freeze({PARTICIPANTS:"participants",STREAMING:"streaming",TRANSCRIPTION:"transcription"}),hm=Object.values(dm),qw=["v","a","sv","sa","cv","ca"];Object.freeze(hm.reduce(function(o,i,r){return o[i]=qw[r],o},{})),Object.freeze(qw.reduce(function(o,i,r){return o[i]=hm[r],o},{}));var e8=[dm.VIDEO,dm.AUDIO,dm.SCREEN_VIDEO,dm.SCREEN_AUDIO],Yw=Object.values(KA),Fw=["p","s","t"];Object.freeze(Yw.reduce(function(o,i,r){return o[i]=Fw[r],o},{})),Object.freeze(Fw.reduce(function(o,i,r){return o[i]=Yw[r],o},{}));var t8=function(){function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=i.base,c=i.byUserId,d=i.byParticipantId;Hs(this,o),this.base=r,this.byUserId=c,this.byParticipantId=d}return $s(o,[{key:"clone",value:function(){var i=new o;if(this.base instanceof Ca?i.base=this.base.clone():i.base=this.base,this.byUserId!==void 0)for(var r in i.byUserId={},this.byUserId){var c=this.byUserId[r];i.byUserId[r]=c instanceof Ca?c.clone():c}if(this.byParticipantId!==void 0)for(var d in i.byParticipantId={},this.byParticipantId){var f=this.byParticipantId[d];i.byParticipantId[d]=f instanceof Ca?f.clone():f}return i}},{key:"toJSONObject",value:function(){var i={};if(typeof this.base=="boolean"?i.base=this.base:this.base instanceof Ca&&(i.base=this.base.toJSONObject()),this.byUserId!==void 0)for(var r in i.byUserId={},this.byUserId){var c=this.byUserId[r];i.byUserId[r]=c instanceof Ca?c.toJSONObject():c}if(this.byParticipantId!==void 0)for(var d in i.byParticipantId={},this.byParticipantId){var f=this.byParticipantId[d];i.byParticipantId[d]=f instanceof Ca?f.toJSONObject():f}return i}},{key:"toMinifiedJSONObject",value:function(){var i={};if(this.base!==void 0&&(typeof this.base=="boolean"?i.b=this.base:i.b=this.base.toMinifiedJSONObject()),this.byUserId!==void 0)for(var r in i.u={},this.byUserId){var c=this.byUserId[r];i.u[r]=typeof c=="boolean"?c:c.toMinifiedJSONObject()}if(this.byParticipantId!==void 0)for(var d in i.p={},this.byParticipantId){var f=this.byParticipantId[d];i.p[d]=typeof f=="boolean"?f:f.toMinifiedJSONObject()}return i}},{key:"normalize",value:function(){return this.base instanceof Ca&&(this.base=this.base.normalize()),this.byUserId&&(this.byUserId=Object.fromEntries(Object.entries(this.byUserId).map(function(i){var r=Wa(i,2),c=r[0],d=r[1];return[c,d instanceof Ca?d.normalize():d]}))),this.byParticipantId&&(this.byParticipantId=Object.fromEntries(Object.entries(this.byParticipantId).map(function(i){var r=Wa(i,2),c=r[0],d=r[1];return[c,d instanceof Ca?d.normalize():d]}))),this}}],[{key:"fromJSONObject",value:function(i){var r,c,d;if(i.base!==void 0&&(r=typeof i.base=="boolean"?i.base:Ca.fromJSONObject(i.base)),i.byUserId!==void 0)for(var f in c={},i.byUserId){var y=i.byUserId[f];c[f]=typeof y=="boolean"?y:Ca.fromJSONObject(y)}if(i.byParticipantId!==void 0)for(var x in d={},i.byParticipantId){var v=i.byParticipantId[x];d[x]=typeof v=="boolean"?v:Ca.fromJSONObject(v)}return new o({base:r,byUserId:c,byParticipantId:d})}},{key:"fromMinifiedJSONObject",value:function(i){var r,c,d;if(i.b!==void 0&&(r=typeof i.b=="boolean"?i.b:Ca.fromMinifiedJSONObject(i.b)),i.u!==void 0)for(var f in c={},i.u){var y=i.u[f];c[f]=typeof y=="boolean"?y:Ca.fromMinifiedJSONObject(y)}if(i.p!==void 0)for(var x in d={},i.p){var v=i.p[x];d[x]=typeof v=="boolean"?v:Ca.fromMinifiedJSONObject(v)}return new o({base:r,byUserId:c,byParticipantId:d})}},{key:"validateJSONObject",value:function(i){if(Yn(i)!=="object")return[!1,"canReceive must be an object"];for(var r=["base","byUserId","byParticipantId"],c=0,d=Object.keys(i);c<d.length;c++){var f=d[c];if(!r.includes(f))return[!1,"canReceive can only contain keys (".concat(r.join(", "),")")];if(f==="base"){var y=Wa(Ca.validateJSONObject(i.base,!0),2),x=y[0],v=y[1];if(!x)return[!1,v]}else{if(Yn(i[f])!=="object")return[!1,"invalid (non-object) value for field '".concat(f,"' in canReceive")];for(var S=0,j=Object.values(i[f]);S<j.length;S++){var B=j[S],ee=Wa(Ca.validateJSONObject(B),2),ne=ee[0],O=ee[1];if(!ne)return[!1,O]}}}return[!0]}}])}(),Ca=function(){function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=i.video,c=i.audio,d=i.screenVideo,f=i.screenAudio,y=i.customVideo,x=i.customAudio;Hs(this,o),this.video=r,this.audio=c,this.screenVideo=d,this.screenAudio=f,this.customVideo=y,this.customAudio=x}return $s(o,[{key:"clone",value:function(){var i=new o;return this.video!==void 0&&(i.video=this.video),this.audio!==void 0&&(i.audio=this.audio),this.screenVideo!==void 0&&(i.screenVideo=this.screenVideo),this.screenAudio!==void 0&&(i.screenAudio=this.screenAudio),this.customVideo!==void 0&&(i.customVideo=Xc({},this.customVideo)),this.customAudio!==void 0&&(i.customAudio=Xc({},this.customAudio)),i}},{key:"toJSONObject",value:function(){var i={};return this.video!==void 0&&(i.video=this.video),this.audio!==void 0&&(i.audio=this.audio),this.screenVideo!==void 0&&(i.screenVideo=this.screenVideo),this.screenAudio!==void 0&&(i.screenAudio=this.screenAudio),this.customVideo!==void 0&&(i.customVideo=Xc({},this.customVideo)),this.customAudio!==void 0&&(i.customAudio=Xc({},this.customAudio)),i}},{key:"toMinifiedJSONObject",value:function(){var i={};return this.video!==void 0&&(i.v=this.video),this.audio!==void 0&&(i.a=this.audio),this.screenVideo!==void 0&&(i.sv=this.screenVideo),this.screenAudio!==void 0&&(i.sa=this.screenAudio),this.customVideo!==void 0&&(i.cv=Xc({},this.customVideo)),this.customAudio!==void 0&&(i.ca=Xc({},this.customAudio)),i}},{key:"normalize",value:function(){function i(r,c){return r&&Object.keys(r).length===1&&r["*"]===c}return!(this.video!==!0||this.audio!==!0||this.screenVideo!==!0||this.screenAudio!==!0||!i(this.customVideo,!0)||!i(this.customAudio,!0))||(this.video!==!1||this.audio!==!1||this.screenVideo!==!1||this.screenAudio!==!1||!i(this.customVideo,!1)||!i(this.customAudio,!1))&&this}}],[{key:"fromBoolean",value:function(i){return new o({video:i,audio:i,screenVideo:i,screenAudio:i,customVideo:{"*":i},customAudio:{"*":i}})}},{key:"fromJSONObject",value:function(i){return new o({video:i.video,audio:i.audio,screenVideo:i.screenVideo,screenAudio:i.screenAudio,customVideo:i.customVideo!==void 0?Xc({},i.customVideo):void 0,customAudio:i.customAudio!==void 0?Xc({},i.customAudio):void 0})}},{key:"fromMinifiedJSONObject",value:function(i){return new o({video:i.v,audio:i.a,screenVideo:i.sv,screenAudio:i.sa,customVideo:i.cv,customAudio:i.ca})}},{key:"validateJSONObject",value:function(i,r){if(typeof i=="boolean")return[!0];if(Yn(i)!=="object")return[!1,"invalid (non-object, non-boolean) value in canReceive"];for(var c=Object.keys(i),d=0,f=c;d<f.length;d++){var y=f[d];if(!hm.includes(y))return[!1,"invalid media type '".concat(y,"' in canReceive")];if(e8.includes(y)){if(typeof i[y]!="boolean")return[!1,"invalid (non-boolean) value for media type '".concat(y,"' in canReceive")]}else{if(Yn(i[y])!=="object")return[!1,"invalid (non-object) value for media type '".concat(y,"' in canReceive")];for(var x=0,v=Object.values(i[y]);x<v.length;x++)if(typeof v[x]!="boolean")return[!1,"invalid (non-boolean) value for entry within '".concat(y,"' in canReceive")];if(r&&i[y]["*"]===void 0)return[!1,`canReceive "base" permission must specify "*" as an entry within '`.concat(y,"'")]}}return r&&c.length!==hm.length?[!1,'canReceive "base" permission must specify all media types: '.concat(hm.join(", ")," (or be set to a boolean shorthand)")]:[!0]}}])}(),n8=["result"],i8=["preserveIframe"];function Xw(o,i){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);i&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),r.push.apply(r,c)}return r}function Yt(o){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?Xw(Object(r),!0).forEach(function(c){Ur(o,c,r[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):Xw(Object(r)).forEach(function(c){Object.defineProperty(o,c,Object.getOwnPropertyDescriptor(r,c))})}return o}function Zw(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zw=function(){return!!o})()}function Qw(o,i){var r=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!r){if(Array.isArray(o)||(r=function(v,S){if(v){if(typeof v=="string")return Ww(v,S);var j={}.toString.call(v).slice(8,-1);return j==="Object"&&v.constructor&&(j=v.constructor.name),j==="Map"||j==="Set"?Array.from(v):j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j)?Ww(v,S):void 0}}(o))||i){r&&(o=r);var c=0,d=function(){};return{s:d,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(v){throw v},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
131
131
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,y=!0,x=!1;return{s:function(){r=r.call(o)},n:function(){var v=r.next();return y=v.done,v},e:function(v){x=!0,f=v},f:function(){try{y||r.return==null||r.return()}finally{if(x)throw f}}}}function Ww(o,i){(i==null||i>o.length)&&(i=o.length);for(var r=0,c=Array(i);r<i;r++)c[r]=o[r];return c}var Ad={},Jw="video",a8="voice",Kw=Hn()?{data:{}}:{data:{},topology:"none"},e6={present:0,hidden:0},t6={maxBitrate:{min:1e5,max:25e5},maxFramerate:{min:1,max:30},scaleResolutionDownBy:{min:1,max:8}},Dx=Object.keys(t6),n6=["state","volume","simulcastEncodings"],i6={androidInCallNotification:{title:"string",subtitle:"string",iconName:"string",disableForCustomOverride:"boolean"},disableAutoDeviceManagement:{audio:"boolean",video:"boolean"}},n1={id:{iconPath:"string",iconPathDarkMode:"string",label:"string",tooltip:"string",visualState:"'default' | 'sidebar-open' | 'active'"}},Ox={id:{allow:"string",controlledBy:"'*' | 'owners' | string[]",csp:"string",iconURL:"string",label:"string",loading:"'eager' | 'lazy'",location:"'main' | 'sidebar'",name:"string",referrerPolicy:"string",sandbox:"string",src:"string",srcdoc:"string",shared:"string[] | 'owners' | boolean"}},Ed={customIntegrations:{validate:h6,help:u6()},customTrayButtons:{validate:d6,help:"customTrayButtons should be a dictionary of the type ".concat(JSON.stringify(n1))},url:{validate:function(o){return typeof o=="string"},help:"url should be a string"},baseUrl:{validate:function(o){return typeof o=="string"},help:"baseUrl should be a string"},token:{validate:function(o){return typeof o=="string"},help:"token should be a string",queryString:"t"},dailyConfig:{validate:function(o,i){try{return i.validateDailyConfig(o),!0}catch(r){console.error("Failed to validate dailyConfig",r)}return!1},help:"Unsupported dailyConfig. Check error logs for detailed info."},reactNativeConfig:{validate:function(o){return f6(o,i6)},help:"reactNativeConfig should look like ".concat(JSON.stringify(i6),", all fields optional")},lang:{validate:function(o){return["da","de","en-us","en","es","fi","fr","it","jp","ka","nl","no","pl","pt","pt-BR","ru","sv","tr","user"].includes(o)},help:"language not supported. Options are: da, de, en-us, en, es, fi, fr, it, jp, ka, nl, no, pl, pt, pt-BR, ru, sv, tr, user"},userName:!0,userData:{validate:function(o){try{return a6(o),!0}catch(i){return console.error(i),!1}},help:"invalid userData type provided"},startVideoOff:!0,startAudioOff:!0,allowLocalVideo:!0,allowLocalAudio:!0,activeSpeakerMode:!0,showLeaveButton:!0,showLocalVideo:!0,showParticipantsBar:!0,showFullscreenButton:!0,showUserNameChangeUI:!0,iframeStyle:!0,customLayout:!0,cssFile:!0,cssText:!0,bodyClass:!0,videoSource:{validate:function(o,i){if(typeof o=="boolean")return i._preloadCache.allowLocalVideo=o,!0;var r;if(o instanceof MediaStreamTrack)i._sharedTracks.videoTrack=o,r={customTrack:Bl};else{if(delete i._sharedTracks.videoTrack,typeof o!="string")return console.error("videoSource must be a MediaStreamTrack, boolean, or a string"),!1;r={deviceId:o}}return i._updatePreloadCacheInputSettings({video:{settings:r}},!1),!0}},audioSource:{validate:function(o,i){if(typeof o=="boolean")return i._preloadCache.allowLocalAudio=o,!0;var r;if(o instanceof MediaStreamTrack)i._sharedTracks.audioTrack=o,r={customTrack:Bl};else{if(delete i._sharedTracks.audioTrack,typeof o!="string")return console.error("audioSource must be a MediaStreamTrack, boolean, or a string"),!1;r={deviceId:o}}return i._updatePreloadCacheInputSettings({audio:{settings:r}},!1),!0}},subscribeToTracksAutomatically:{validate:function(o,i){return i._preloadCache.subscribeToTracksAutomatically=o,!0}},theme:{validate:function(o){var i=["accent","accentText","background","backgroundAccent","baseText","border","mainAreaBg","mainAreaBgAccent","mainAreaText","supportiveText"],r=function(c){for(var d=0,f=Object.keys(c);d<f.length;d++){var y=f[d];if(!i.includes(y))return console.error('unsupported color "'.concat(y,'". Valid colors: ').concat(i.join(", "))),!1;if(!c[y].match(/^#[0-9a-f]{6}|#[0-9a-f]{3}$/i))return console.error("".concat(y,' theme color should be provided in valid hex color format. Received: "').concat(c[y],'"')),!1}return!0};return Yn(o)==="object"&&("light"in o&&"dark"in o||"colors"in o)?"light"in o&&"dark"in o?"colors"in o.light?"colors"in o.dark?r(o.light.colors)&&r(o.dark.colors):(console.error('Dark theme is missing "colors" property.',o),!1):(console.error('Light theme is missing "colors" property.',o),!1):r(o.colors):(console.error('Theme must contain either both "light" and "dark" properties, or "colors".',o),!1)},help:"unsupported theme configuration. Check error logs for detailed info."},layoutConfig:{validate:function(o){if("grid"in o){var i=o.grid;if("maxTilesPerPage"in i){if(!Number.isInteger(i.maxTilesPerPage))return console.error("grid.maxTilesPerPage should be an integer. You passed ".concat(i.maxTilesPerPage,".")),!1;if(i.maxTilesPerPage>49)return console.error("grid.maxTilesPerPage can't be larger than 49 without sacrificing browser performance. Please contact us at https://www.daily.co/contact to talk about your use case."),!1}if("minTilesPerPage"in i){if(!Number.isInteger(i.minTilesPerPage))return console.error("grid.minTilesPerPage should be an integer. You passed ".concat(i.minTilesPerPage,".")),!1;if(i.minTilesPerPage<1)return console.error("grid.minTilesPerPage can't be lower than 1."),!1;if("maxTilesPerPage"in i&&i.minTilesPerPage>i.maxTilesPerPage)return console.error("grid.minTilesPerPage can't be higher than grid.maxTilesPerPage."),!1}}return!0},help:"unsupported layoutConfig. Check error logs for detailed info."},receiveSettings:{validate:function(o){return s6(o,{allowAllParticipantsKey:!1})},help:c6({allowAllParticipantsKey:!1})},sendSettings:{validate:function(o,i){return!!function(r,c){try{return c.validateUpdateSendSettings(r),!0}catch(d){return console.error("Failed to validate send settings",d),!1}}(o,i)&&(i._preloadCache.sendSettings=o,!0)},help:"Invalid sendSettings provided. Check error logs for detailed info."},inputSettings:{validate:function(o,i){var r;return!!o6(o)&&(i._inputSettings||(i._inputSettings={}),r6(o,(r=i.properties)===null||r===void 0?void 0:r.dailyConfig,i._sharedTracks),i._updatePreloadCacheInputSettings(o,!0),!0)},help:Rx()},layout:{validate:function(o){return o==="custom-v1"||o==="browser"||o==="none"},help:'layout may only be set to "custom-v1"',queryString:"layout"},emb:{queryString:"emb"},embHref:{queryString:"embHref"},dailyJsVersion:{queryString:"dailyJsVersion"},proxy:{queryString:"proxy"},strictMode:!0,allowMultipleCallInstances:!0},i1={styles:{validate:function(o){for(var i in o)if(i!=="cam"&&i!=="screen")return!1;if(o.cam){for(var r in o.cam)if(r!=="div"&&r!=="video")return!1}if(o.screen){for(var c in o.screen)if(c!=="div"&&c!=="video")return!1}return!0},help:"styles format should be a subset of: { cam: {div: {}, video: {}}, screen: {div: {}, video: {}} }"},setSubscribedTracks:{validate:function(o,i){if(i._preloadCache.subscribeToTracksAutomatically)return!1;var r=[!0,!1,"staged"];if(r.includes(o)||!Hn()&&o==="avatar")return!0;var c=["audio","video","screenAudio","screenVideo","rmpAudio","rmpVideo"],d=function(f){var y=arguments.length>1&&arguments[1]!==void 0&&arguments[1];for(var x in f)if(x==="custom"){if(!r.includes(f[x])&&!d(f[x],!0))return!1}else{var v=!y&&!c.includes(x),S=!r.includes(f[x]);if(v||S)return!1}return!0};return d(o)},help:"setSubscribedTracks cannot be used when setSubscribeToTracksAutomatically is enabled, and should be of the form: "+"true".concat(Hn()?"":" | 'avatar'"," | false | 'staged' | { [audio: true|false|'staged'], [video: true|false|'staged'], [screenAudio: true|false|'staged'], [screenVideo: true|false|'staged'] }")},setAudio:!0,setVideo:!0,setScreenShare:{validate:function(o){return o===!1},help:"setScreenShare must be false, as it's only meant for stopping remote participants' screen shares"},eject:!0,updatePermissions:{validate:function(o){for(var i=0,r=Object.entries(o);i<r.length;i++){var c=Wa(r[i],2),d=c[0],f=c[1];switch(d){case"hasPresence":if(typeof f!="boolean")return!1;break;case"canSend":if(f instanceof Set||f instanceof Array||Array.isArray(f)){var y,x=["video","audio","screenVideo","screenAudio","customVideo","customAudio"],v=Qw(f);try{for(v.s();!(y=v.n()).done;){var S=y.value;if(!x.includes(S))return!1}}catch(ie){v.e(ie)}finally{v.f()}}else if(typeof f!="boolean")return!1;(f instanceof Array||Array.isArray(f))&&(o.canSend=new Set(f));break;case"canReceive":var j=Wa(t8.validateJSONObject(f),2),B=j[0],ee=j[1];if(!B)return console.error(ee),!1;break;case"canAdmin":if(f instanceof Set||f instanceof Array||Array.isArray(f)){var ne,O=["participants","streaming","transcription"],V=Qw(f);try{for(V.s();!(ne=V.n()).done;){var ae=ne.value;if(!O.includes(ae))return!1}}catch(ie){V.e(ie)}finally{V.f()}}else if(typeof f!="boolean")return!1;(f instanceof Array||Array.isArray(f))&&(o.canAdmin=new Set(f));break;default:return!1}}return!0},help:"updatePermissions can take hasPresence, canSend, canReceive, and canAdmin permissions. hasPresence must be a boolean. canSend can be a boolean or an Array or Set of media types (video, audio, screenVideo, screenAudio, customVideo, customAudio). canReceive must be an object specifying base, byUserId, and/or byParticipantId fields (see documentation for more details). canAdmin can be a boolean or an Array or Set of admin types (participants, streaming, transcription)."}};Promise.any||(Promise.any=function(){var o=on(function*(i){return new Promise(function(r,c){var d=[];i.forEach(function(f){return Promise.resolve(f).then(function(y){r(y)}).catch(function(y){d.push(y),d.length===i.length&&c(d)})})})});return function(i){return o.apply(this,arguments)}}());var s8=function(){function o(g){var C,k,Z,q,w,E,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Hs(this,o),Z=this,q=tr(q=o),Ur(k=wb(Z,Zw()?Reflect.construct(q,[],tr(Z).constructor):q.apply(Z,w)),"startListeningForDeviceChanges",function(){ZA(k.handleDeviceChange)}),Ur(k,"stopListeningForDeviceChanges",function(){QA(k.handleDeviceChange)}),Ur(k,"handleDeviceChange",function(D){D=D.map(function(H){return JSON.parse(JSON.stringify(H))}),k.emitDailyJSEvent({action:"available-devices-updated",availableDevices:D})}),Ur(k,"handleNativeAppStateChange",function(){var D=on(function*(H){if(H==="destroyed")return console.warn("App has been destroyed before leaving the meeting. Cleaning up all the resources!"),void(yield k.destroy());var K=H==="active";k.disableReactNativeAutoDeviceManagement("video")||(K?k.camUnmutedBeforeLosingNativeActiveState&&k.setLocalVideo(!0):(k.camUnmutedBeforeLosingNativeActiveState=k.localVideo(),k.camUnmutedBeforeLosingNativeActiveState&&k.setLocalVideo(!1)))});return function(H){return D.apply(this,arguments)}}()),Ur(k,"handleNativeAudioFocusChange",function(D){k.disableReactNativeAutoDeviceManagement("audio")||(k._hasNativeAudioFocus=D,k.toggleParticipantAudioBasedOnNativeAudioFocus(),k._hasNativeAudioFocus?k.micUnmutedBeforeLosingNativeAudioFocus&&k.setLocalAudio(!0):(k.micUnmutedBeforeLosingNativeAudioFocus=k.localAudio(),k.setLocalAudio(!1)))}),Ur(k,"handleNativeSystemScreenCaptureStop",function(){k.stopScreenShare()}),k.strictMode=N.strictMode===void 0||N.strictMode,k.allowMultipleCallInstances=(C=N.allowMultipleCallInstances)!==null&&C!==void 0&&C,Object.keys(Ad).length&&(k._logDuplicateInstanceAttempt(),!k.allowMultipleCallInstances)){if(k.strictMode)throw new Error("Duplicate DailyIframe instances are not allowed");console.warn("Using strictMode: false to allow multiple call instances is now deprecated. Set `allowMultipleCallInstances: true`")}if(window._daily||(window._daily={pendings:[],instances:{}}),k.callClientId=Ab(),Ad[(E=k).callClientId]=E,window._daily.instances[k.callClientId]={},k._sharedTracks={},window._daily.instances[k.callClientId].tracks=k._sharedTracks,N.dailyJsVersion=o.version(),k._iframe=g,k._callObjectMode=N.layout==="none"&&!k._iframe,k._preloadCache={subscribeToTracksAutomatically:!0,outputDeviceId:null,inputSettings:null,sendSettings:null,videoTrackForNetworkConnectivityTest:null,videoTrackForConnectionQualityTest:null},N.showLocalVideo!==void 0?k._callObjectMode?console.error("showLocalVideo is not available in call object mode"):k._showLocalVideo=!!N.showLocalVideo:k._showLocalVideo=!0,N.showParticipantsBar!==void 0?k._callObjectMode?console.error("showParticipantsBar is not available in call object mode"):k._showParticipantsBar=!!N.showParticipantsBar:k._showParticipantsBar=!0,N.customIntegrations!==void 0?k._callObjectMode?console.error("customIntegrations is not available in call object mode"):k._customIntegrations=N.customIntegrations:k._customIntegrations={},N.customTrayButtons!==void 0?k._callObjectMode?console.error("customTrayButtons is not available in call object mode"):k._customTrayButtons=N.customTrayButtons:k._customTrayButtons={},N.activeSpeakerMode!==void 0?k._callObjectMode?console.error("activeSpeakerMode is not available in call object mode"):k._activeSpeakerMode=!!N.activeSpeakerMode:k._activeSpeakerMode=!1,N.receiveSettings?k._callObjectMode?k._receiveSettings=N.receiveSettings:console.error("receiveSettings is only available in call object mode"):k._receiveSettings={},k.validateProperties(N),k.properties=Yt({},N),k._inputSettings||(k._inputSettings={}),k._callObjectLoader=k._callObjectMode?new UA(k.callClientId):null,k._callState=aw,k._isPreparingToJoin=!1,k._accessState={access:yx},k._meetingSessionSummary={},k._finalSummaryOfPrevSession={},k._meetingSessionState=Nx(Kw,k._callObjectMode),k._nativeInCallAudioMode=Jw,k._participants={},k._isScreenSharing=!1,k._participantCounts=e6,k._rmpPlayerState={},k._waitingParticipants={},k._network={threshold:"good",quality:100,networkState:"unknown",stats:{}},k._activeSpeaker={},k._localAudioLevel=0,k._isLocalAudioLevelObserverRunning=!1,k._remoteParticipantsAudioLevel={},k._isRemoteParticipantsAudioLevelObserverRunning=!1,k._maxAppMessageSize=bx,k._messageChannel=Hn()?new zA:new NA,k._iframe&&(k._iframe.requestFullscreen?k._iframe.addEventListener("fullscreenchange",function(){document.fullscreenElement===k._iframe?(k.emitDailyJSEvent({action:Zb}),k.sendMessageToCallMachine({action:Zb})):(k.emitDailyJSEvent({action:Qb}),k.sendMessageToCallMachine({action:Qb}))}):k._iframe.webkitRequestFullscreen&&k._iframe.addEventListener("webkitfullscreenchange",function(){document.webkitFullscreenElement===k._iframe?(k.emitDailyJSEvent({action:Zb}),k.sendMessageToCallMachine({action:Zb})):(k.emitDailyJSEvent({action:Qb}),k.sendMessageToCallMachine({action:Qb}))})),Hn()){var ce=k.nativeUtils();ce.addAudioFocusChangeListener&&ce.removeAudioFocusChangeListener&&ce.addAppStateChangeListener&&ce.removeAppStateChangeListener&&ce.addSystemScreenCaptureStopListener&&ce.removeSystemScreenCaptureStopListener||console.warn("expected (add|remove)(AudioFocusChange|AppActiveStateChange|SystemScreenCaptureStop)Listener to be available in React Native"),k._hasNativeAudioFocus=!0,ce.addAudioFocusChangeListener(k.handleNativeAudioFocusChange),ce.addAppStateChangeListener(k.handleNativeAppStateChange),ce.addSystemScreenCaptureStopListener(k.handleNativeSystemScreenCaptureStop)}return k._callObjectMode&&k.startListeningForDeviceChanges(),k._messageChannel.addListenerForMessagesFromCallMachine(k.handleMessageFromCallMachine,k.callClientId,k),k}return kb(o,Mb),$s(o,[{key:"destroy",value:(ye=on(function*(){var g;try{yield this.leave()}catch{}var C=this._iframe;if(C){var k=C.parentElement;k&&k.removeChild(C)}if(this._messageChannel.removeListener(this.handleMessageFromCallMachine),Hn()){var Z=this.nativeUtils();Z.removeAudioFocusChangeListener(this.handleNativeAudioFocusChange),Z.removeAppStateChangeListener(this.handleNativeAppStateChange),Z.removeSystemScreenCaptureStopListener(this.handleNativeSystemScreenCaptureStop)}this._callObjectMode&&this.stopListeningForDeviceChanges(),this.resetMeetingDependentVars(),this._destroyed=!0,this.emitDailyJSEvent({action:"call-instance-destroyed"}),delete Ad[this.callClientId],!((g=window)===null||g===void 0||(g=g._daily)===null||g===void 0)&&g.instances&&delete window._daily.instances[this.callClientId],this.strictMode&&(this.callClientId=void 0)}),function(){return ye.apply(this,arguments)})},{key:"isDestroyed",value:function(){return!!this._destroyed}},{key:"loadCss",value:function(g){var C=g.bodyClass,k=g.cssFile,Z=g.cssText;return zn(),this.sendMessageToCallMachine({action:"load-css",cssFile:this.absoluteUrl(k),bodyClass:C,cssText:Z}),this}},{key:"iframe",value:function(){return zn(),this._iframe}},{key:"meetingState",value:function(){return this._callState}},{key:"accessState",value:function(){return ar(this._callObjectMode,"accessState()"),this._accessState}},{key:"participants",value:function(){return this._participants}},{key:"participantCounts",value:function(){return this._participantCounts}},{key:"waitingParticipants",value:function(){return ar(this._callObjectMode,"waitingParticipants()"),this._waitingParticipants}},{key:"validateParticipantProperties",value:function(g,C){for(var k in C){if(!i1[k])throw new Error("unrecognized updateParticipant property ".concat(k));if(i1[k].validate&&!i1[k].validate(C[k],this,this._participants[g]))throw new Error(i1[k].help)}}},{key:"updateParticipant",value:function(g,C){return this._participants.local&&this._participants.local.session_id===g&&(g="local"),g&&C&&(this.validateParticipantProperties(g,C),this.sendMessageToCallMachine({action:"update-participant",id:g,properties:C})),this}},{key:"updateParticipants",value:function(g){var C=this._participants.local&&this._participants.local.session_id;for(var k in g)k===C&&(k="local"),k&&g[k]&&this.validateParticipantProperties(k,g[k]);return this.sendMessageToCallMachine({action:"update-participants",participants:g}),this}},{key:"updateWaitingParticipant",value:(ue=on(function*(){var g=this,C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(ar(this._callObjectMode,"updateWaitingParticipant()"),di(this._callState,"updateWaitingParticipant()"),typeof C!="string"||Yn(k)!=="object")throw new Error("updateWaitingParticipant() must take an id string and a updates object");return new Promise(function(Z,q){g.sendMessageToCallMachine({action:"daily-method-update-waiting-participant",id:C,updates:k},function(w){w.error&&q(w.error),w.id||q(new Error("unknown error in updateWaitingParticipant()")),Z({id:w.id})})})}),function(){return ue.apply(this,arguments)})},{key:"updateWaitingParticipants",value:(R=on(function*(){var g=this,C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ar(this._callObjectMode,"updateWaitingParticipants()"),di(this._callState,"updateWaitingParticipants()"),Yn(C)!=="object")throw new Error("updateWaitingParticipants() must take a mapping between ids and update objects");return new Promise(function(k,Z){g.sendMessageToCallMachine({action:"daily-method-update-waiting-participants",updatesById:C},function(q){q.error&&Z(q.error),q.ids||Z(new Error("unknown error in updateWaitingParticipants()")),k({ids:q.ids})})})}),function(){return R.apply(this,arguments)})},{key:"requestAccess",value:(se=on(function*(){var g=this,C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=C.access,Z=k===void 0?{level:jM}:k,q=C.name,w=q===void 0?"":q;return ar(this._callObjectMode,"requestAccess()"),di(this._callState,"requestAccess()"),new Promise(function(E,N){g.sendMessageToCallMachine({action:"daily-method-request-access",access:Z,name:w},function(ce){ce.error&&N(ce.error),ce.access||N(new Error("unknown error in requestAccess()")),E({access:ce.access,granted:ce.granted})})})}),function(){return se.apply(this,arguments)})},{key:"localAudio",value:function(){return this._participants.local?!["blocked","off"].includes(this._participants.local.tracks.audio.state):null}},{key:"localVideo",value:function(){return this._participants.local?!["blocked","off"].includes(this._participants.local.tracks.video.state):null}},{key:"setLocalAudio",value:function(g){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return"forceDiscardTrack"in C&&(Hn()?(console.warn("forceDiscardTrack option not supported in React Native; ignoring"),C={}):g&&(console.warn("forceDiscardTrack option only supported when calling setLocalAudio(false); ignoring"),C={})),this.sendMessageToCallMachine({action:"local-audio",state:g,options:C}),this}},{key:"localScreenAudio",value:function(){return this._participants.local?!["blocked","off"].includes(this._participants.local.tracks.screenAudio.state):null}},{key:"localScreenVideo",value:function(){return this._participants.local?!["blocked","off"].includes(this._participants.local.tracks.screenVideo.state):null}},{key:"updateScreenShare",value:function(g){if(this._isScreenSharing)return this.sendMessageToCallMachine({action:"local-screen-update",options:g}),this;console.warn("There is no screen share in progress. Try calling startScreenShare first.")}},{key:"setLocalVideo",value:function(g){return this.sendMessageToCallMachine({action:"local-video",state:g}),this}},{key:"_setAllowLocalAudio",value:function(g){if(this._preloadCache.allowLocalAudio=g,this._callMachineInitialized)return this.sendMessageToCallMachine({action:"set-allow-local-audio",state:g}),this}},{key:"_setAllowLocalVideo",value:function(g){if(this._preloadCache.allowLocalVideo=g,this._callMachineInitialized)return this.sendMessageToCallMachine({action:"set-allow-local-video",state:g}),this}},{key:"getReceiveSettings",value:(J=on(function*(g){var C=this,k=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).showInheritedValues,Z=k!==void 0&&k;if(ar(this._callObjectMode,"getReceiveSettings()"),!this._callMachineInitialized)return this._receiveSettings;switch(Yn(g)){case"string":return new Promise(function(q){C.sendMessageToCallMachine({action:"get-single-participant-receive-settings",id:g,showInheritedValues:Z},function(w){q(w.receiveSettings)})});case"undefined":return this._receiveSettings;default:throw new Error('first argument to getReceiveSettings() must be a participant id (or "base"), or there should be no arguments')}}),function(g){return J.apply(this,arguments)})},{key:"updateReceiveSettings",value:(L=on(function*(g){var C=this;if(ar(this._callObjectMode,"updateReceiveSettings()"),!s6(g,{allowAllParticipantsKey:!0}))throw new Error(c6({allowAllParticipantsKey:!0}));return di(this._callState,"updateReceiveSettings()","To specify receive settings earlier, use the receiveSettings config property."),new Promise(function(k){C.sendMessageToCallMachine({action:"update-receive-settings",receiveSettings:g},function(Z){k({receiveSettings:Z.receiveSettings})})})}),function(g){return L.apply(this,arguments)})},{key:"_prepInputSettingsForSharing",value:function(g,C){if(g){var k={};if(g.audio){var Z,q,w;g.audio.settings&&(!Object.keys(g.audio.settings).length&&C||(k.audio={settings:Yt({},g.audio.settings)})),C&&(Z=k.audio)!==null&&Z!==void 0&&(Z=Z.settings)!==null&&Z!==void 0&&Z.customTrack&&(k.audio.settings={customTrack:this._sharedTracks.audioTrack});var E=((q=g.audio.processor)===null||q===void 0?void 0:q.type)==="none"&&((w=g.audio.processor)===null||w===void 0?void 0:w._isDefaultWhenNone);if(g.audio.processor&&!E){var N=Yt({},g.audio.processor);delete N._isDefaultWhenNone,k.audio=Yt(Yt({},k.audio),{},{processor:N})}}if(g.video){var ce,D,H;g.video.settings&&(!Object.keys(g.video.settings).length&&C||(k.video={settings:Yt({},g.video.settings)})),C&&(ce=k.video)!==null&&ce!==void 0&&(ce=ce.settings)!==null&&ce!==void 0&&ce.customTrack&&(k.video.settings={customTrack:this._sharedTracks.videoTrack});var K=((D=g.video.processor)===null||D===void 0?void 0:D.type)==="none"&&((H=g.video.processor)===null||H===void 0?void 0:H._isDefaultWhenNone);if(g.video.processor&&!K){var re=Yt({},g.video.processor);delete re._isDefaultWhenNone,k.video=Yt(Yt({},k.video),{},{processor:re})}}return k}}},{key:"getInputSettings",value:function(){var g=this;return zn(),new Promise(function(C){C(g._getInputSettings())})}},{key:"_getInputSettings",value:function(){var g,C,k,Z,q,w,E={processor:{type:"none",_isDefaultWhenNone:!0}};this._inputSettings?(g=((k=this._inputSettings)===null||k===void 0?void 0:k.video)||E,C=((Z=this._inputSettings)===null||Z===void 0?void 0:Z.audio)||E):(g=((q=this._preloadCache)===null||q===void 0||(q=q.inputSettings)===null||q===void 0?void 0:q.video)||E,C=((w=this._preloadCache)===null||w===void 0||(w=w.inputSettings)===null||w===void 0?void 0:w.audio)||E);var N={audio:C,video:g};return this._prepInputSettingsForSharing(N,!0)}},{key:"_updatePreloadCacheInputSettings",value:function(g,C){var k=this._inputSettings||{},Z={};if(g.video){var q,w,E;Z.video={},g.video.settings?(Z.video.settings={},C||g.video.settings.customTrack||(E=k.video)===null||E===void 0||!E.settings?Z.video.settings=g.video.settings:Z.video.settings=Yt(Yt({},k.video.settings),g.video.settings),Object.keys(Z.video.settings).length||delete Z.video.settings):(q=k.video)!==null&&q!==void 0&&q.settings&&(Z.video.settings=k.video.settings),g.video.processor?Z.video.processor=g.video.processor:(w=k.video)!==null&&w!==void 0&&w.processor&&(Z.video.processor=k.video.processor)}else k.video&&(Z.video=k.video);if(g.audio){var N,ce,D;Z.audio={},g.audio.settings?(Z.audio.settings={},C||g.audio.settings.customTrack||(D=k.audio)===null||D===void 0||!D.settings?Z.audio.settings=g.audio.settings:Z.audio.settings=Yt(Yt({},k.audio.settings),g.audio.settings),Object.keys(Z.audio.settings).length||delete Z.audio.settings):(N=k.audio)!==null&&N!==void 0&&N.settings&&(Z.audio.settings=k.audio.settings),g.audio.processor?Z.audio.processor=g.audio.processor:(ce=k.audio)!==null&&ce!==void 0&&ce.processor&&(Z.audio.processor=k.audio.processor)}else k.audio&&(Z.audio=k.audio);this._maybeUpdateInputSettings(Z)}},{key:"_devicesFromInputSettings",value:function(g){var C,k,Z=(g==null||(C=g.video)===null||C===void 0||(C=C.settings)===null||C===void 0?void 0:C.deviceId)||null,q=(g==null||(k=g.audio)===null||k===void 0||(k=k.settings)===null||k===void 0?void 0:k.deviceId)||null,w=this._preloadCache.outputDeviceId||null;return{camera:Z?{deviceId:Z}:{},mic:q?{deviceId:q}:{},speaker:w?{deviceId:w}:{}}}},{key:"updateInputSettings",value:(A=on(function*(g){var C=this;return zn(),o6(g)?g.video||g.audio?(r6(g,this.properties.dailyConfig,this._sharedTracks),this._callObjectMode&&!this._callMachineInitialized?(this._updatePreloadCacheInputSettings(g,!0),this._getInputSettings()):new Promise(function(k,Z){C.sendMessageToCallMachine({action:"update-input-settings",inputSettings:g},function(q){if(q.error)Z(q.error);else{if(q.returnPreloadCache)return C._updatePreloadCacheInputSettings(g,!0),void k(C._getInputSettings());C._maybeUpdateInputSettings(q.inputSettings),k(C._prepInputSettingsForSharing(q.inputSettings,!0))}})})):this._getInputSettings():(console.error(Rx()),Promise.reject(Rx()))}),function(g){return A.apply(this,arguments)})},{key:"setBandwidth",value:function(g){var C=g.kbs,k=g.trackConstraints;if(zn(),this._callMachineInitialized)return this.sendMessageToCallMachine({action:"set-bandwidth",kbs:C,trackConstraints:k}),this}},{key:"getDailyLang",value:function(){var g=this;if(zn(),this._callMachineInitialized)return new Promise(function(C){g.sendMessageToCallMachine({action:"get-daily-lang"},function(k){delete k.action,delete k.callbackStamp,C(k)})})}},{key:"setDailyLang",value:function(g){return zn(),this.sendMessageToCallMachine({action:"set-daily-lang",lang:g}),this}},{key:"setProxyUrl",value:function(g){return this.sendMessageToCallMachine({action:"set-proxy-url",proxyUrl:g}),this}},{key:"setIceConfig",value:function(g){return this.sendMessageToCallMachine({action:"set-ice-config",iceConfig:g}),this}},{key:"meetingSessionSummary",value:function(){return[Td,Fc].includes(this._callState)?this._finalSummaryOfPrevSession:this._meetingSessionSummary}},{key:"getMeetingSession",value:(_=on(function*(){var g=this;return console.warn("getMeetingSession() is deprecated: use meetingSessionSummary(), which will return immediately"),di(this._callState,"getMeetingSession()"),new Promise(function(C){g.sendMessageToCallMachine({action:"get-meeting-session"},function(k){delete k.action,delete k.callbackStamp,C(k)})})}),function(){return _.apply(this,arguments)})},{key:"meetingSessionState",value:function(){return di(this._callState,"meetingSessionState"),this._meetingSessionState}},{key:"setMeetingSessionData",value:function(g){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"replace";ar(this._callObjectMode,"setMeetingSessionData()"),di(this._callState,"setMeetingSessionData");try{(function(k,Z){new BA({data:k,mergeStrategy:Z})})(g,C)}catch(k){throw console.error(k),k}try{this.sendMessageToCallMachine({action:"set-session-data",data:g,mergeStrategy:C})}catch(k){throw new Error("Error setting meeting session data: ".concat(k))}}},{key:"setUserName",value:function(g,C){var k=this;return this.properties.userName=g,new Promise(function(Z){k.sendMessageToCallMachine({action:"set-user-name",name:g??"",thisMeetingOnly:Hn()||!!C&&!!C.thisMeetingOnly},function(q){delete q.action,delete q.callbackStamp,Z(q)})})}},{key:"setUserData",value:(T=on(function*(g){var C=this;try{a6(g)}catch(k){throw console.error(k),k}if(this.properties.userData=g,this._callMachineInitialized)return new Promise(function(k){try{C.sendMessageToCallMachine({action:"set-user-data",userData:g},function(Z){delete Z.action,delete Z.callbackStamp,k(Z)})}catch(Z){throw new Error("Error setting user data: ".concat(Z))}})}),function(g){return T.apply(this,arguments)})},{key:"validateAudioLevelInterval",value:function(g){if(g&&(g<100||typeof g!="number"))throw new Error("The interval must be a number greater than or equal to 100 milliseconds.")}},{key:"startLocalAudioLevelObserver",value:function(g){var C=this;if(typeof AudioWorkletNode>"u"&&!Hn())throw new Error("startLocalAudioLevelObserver() is not supported on this browser");if(this.validateAudioLevelInterval(g),this._callMachineInitialized)return this._isLocalAudioLevelObserverRunning=!0,new Promise(function(k,Z){C.sendMessageToCallMachine({action:"start-local-audio-level-observer",interval:g},function(q){C._isLocalAudioLevelObserverRunning=!q.error,q.error?Z({error:q.error}):k()})});this._preloadCache.localAudioLevelObserver={enabled:!0,interval:g}}},{key:"isLocalAudioLevelObserverRunning",value:function(){return this._isLocalAudioLevelObserverRunning}},{key:"stopLocalAudioLevelObserver",value:function(){this._preloadCache.localAudioLevelObserver=null,this._localAudioLevel=0,this._isLocalAudioLevelObserverRunning=!1,this.sendMessageToCallMachine({action:"stop-local-audio-level-observer"})}},{key:"startRemoteParticipantsAudioLevelObserver",value:function(g){var C=this;if(this.validateAudioLevelInterval(g),this._callMachineInitialized)return this._isRemoteParticipantsAudioLevelObserverRunning=!0,new Promise(function(k,Z){C.sendMessageToCallMachine({action:"start-remote-participants-audio-level-observer",interval:g},function(q){C._isRemoteParticipantsAudioLevelObserverRunning=!q.error,q.error?Z({error:q.error}):k()})});this._preloadCache.remoteParticipantsAudioLevelObserver={enabled:!0,interval:g}}},{key:"isRemoteParticipantsAudioLevelObserverRunning",value:function(){return this._isRemoteParticipantsAudioLevelObserverRunning}},{key:"stopRemoteParticipantsAudioLevelObserver",value:function(){this._preloadCache.remoteParticipantsAudioLevelObserver=null,this._remoteParticipantsAudioLevel={},this._isRemoteParticipantsAudioLevelObserverRunning=!1,this.sendMessageToCallMachine({action:"stop-remote-participants-audio-level-observer"})}},{key:"startCamera",value:(G=on(function*(){var g=this,C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ar(this._callObjectMode,"startCamera()"),jx(this._callState,this._isPreparingToJoin,"startCamera()","Did you mean to use setLocalAudio() and/or setLocalVideo() instead?"),this.needsLoad())try{yield this.load(C)}catch(k){return Promise.reject(k)}else{if(this._didPreAuth){if(C.url&&C.url!==this.properties.url)return console.error("url in startCamera() is different than the one used in preAuth()"),Promise.reject();if(C.token&&C.token!==this.properties.token)return console.error("token in startCamera() is different than the one used in preAuth()"),Promise.reject()}this.validateProperties(C),this.properties=Yt(Yt({},this.properties),C)}return new Promise(function(k){g._preloadCache.inputSettings=g._prepInputSettingsForSharing(g._inputSettings,!1),g.sendMessageToCallMachine({action:"start-camera",properties:kf(g.properties,g.callClientId),preloadCache:kf(g._preloadCache,g.callClientId)},function(Z){k({camera:Z.camera,mic:Z.mic,speaker:Z.speaker})})})}),function(){return G.apply(this,arguments)})},{key:"validateCustomTrack",value:function(g,C,k){if(k&&k.length>50)throw new Error("Custom track `trackName` must not be more than 50 characters");if(C&&C!=="music"&&C!=="speech"&&!(C instanceof Object))throw new Error("Custom track `mode` must be either `music` | `speech` | `DailyMicAudioModeSettings` or `undefined`");if(k&&["cam-audio","cam-video","screen-video","screen-audio","rmpAudio","rmpVideo","customVideoDefaults"].includes(k))throw new Error("Custom track `trackName` must not match a track name already used by daily: cam-audio, cam-video, customVideoDefaults, screen-video, screen-audio, rmpAudio, rmpVideo");if(!(g instanceof MediaStreamTrack))throw new Error("Custom tracks provided must be instances of MediaStreamTrack")}},{key:"startCustomTrack",value:function(){var g=this,C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{track,mode,trackName};return zn(),di(this._callState,"startCustomTrack()"),this.validateCustomTrack(C.track,C.mode,C.trackName),new Promise(function(k,Z){g._sharedTracks.customTrack=C.track,C.track=Bl,g.sendMessageToCallMachine({action:"start-custom-track",properties:C},function(q){q.error?Z({error:q.error}):k(q.mediaTag)})})}},{key:"stopCustomTrack",value:function(g){var C=this;return zn(),di(this._callState,"stopCustomTrack()"),new Promise(function(k){C.sendMessageToCallMachine({action:"stop-custom-track",mediaTag:g},function(Z){k(Z.mediaTag)})})}},{key:"setCamera",value:function(g){var C=this;return fm(),s1(this._callMachineInitialized,"setCamera()"),new Promise(function(k){C.sendMessageToCallMachine({action:"set-camera",cameraDeviceId:g},function(Z){k({device:Z.device})})})}},{key:"setAudioDevice",value:(W=on(function*(g){return fm(),this.nativeUtils().setAudioDevice(g),{deviceId:yield this.nativeUtils().getAudioDevice()}}),function(g){return W.apply(this,arguments)})},{key:"cycleCamera",value:function(){var g=this,C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new Promise(function(k){g.sendMessageToCallMachine({action:"cycle-camera",properties:C},function(Z){k({device:Z.device})})})}},{key:"cycleMic",value:function(){var g=this;return zn(),new Promise(function(C){g.sendMessageToCallMachine({action:"cycle-mic"},function(k){C({device:k.device})})})}},{key:"getCameraFacingMode",value:function(){var g=this;return fm(),new Promise(function(C){g.sendMessageToCallMachine({action:"get-camera-facing-mode"},function(k){C(k.facingMode)})})}},{key:"setInputDevicesAsync",value:(z=on(function*(g){var C=this,k=g.audioDeviceId,Z=g.videoDeviceId,q=g.audioSource,w=g.videoSource;if(zn(),q!==void 0&&(k=q),w!==void 0&&(Z=w),typeof k=="boolean"&&(this._setAllowLocalAudio(k),k=void 0),typeof Z=="boolean"&&(this._setAllowLocalVideo(Z),Z=void 0),!k&&!Z)return yield this.getInputDevices();var E={};return k&&(k instanceof MediaStreamTrack?(this._sharedTracks.audioTrack=k,k=Bl,E.audio={settings:{customTrack:k}}):(delete this._sharedTracks.audioTrack,E.audio={settings:{deviceId:k}})),Z&&(Z instanceof MediaStreamTrack?(this._sharedTracks.videoTrack=Z,Z=Bl,E.video={settings:{customTrack:Z}}):(delete this._sharedTracks.videoTrack,E.video={settings:{deviceId:Z}})),this._callObjectMode&&this.needsLoad()?(this._updatePreloadCacheInputSettings(E,!1),this._devicesFromInputSettings(this._inputSettings)):new Promise(function(N){C.sendMessageToCallMachine({action:"set-input-devices",audioDeviceId:k,videoDeviceId:Z},function(ce){if(delete ce.action,delete ce.callbackStamp,ce.returnPreloadCache)return C._updatePreloadCacheInputSettings(E,!1),void N(C._devicesFromInputSettings(C._inputSettings));N(ce)})})}),function(g){return z.apply(this,arguments)})},{key:"setOutputDeviceAsync",value:(te=on(function*(g){var C=this,k=g.outputDeviceId;return zn(),k&&(this._preloadCache.outputDeviceId=k),this._callObjectMode&&this.needsLoad()?this._devicesFromInputSettings(this._inputSettings):new Promise(function(Z){C.sendMessageToCallMachine({action:"set-output-device",outputDeviceId:k},function(q){delete q.action,delete q.callbackStamp,q.returnPreloadCache?Z(C._devicesFromInputSettings(C._inputSettings)):Z(q)})})}),function(g){return te.apply(this,arguments)})},{key:"getInputDevices",value:(oe=on(function*(){var g=this;return this._callObjectMode&&this.needsLoad()?this._devicesFromInputSettings(this._inputSettings):new Promise(function(C){g.sendMessageToCallMachine({action:"get-input-devices"},function(k){k.returnPreloadCache?C(g._devicesFromInputSettings(g._inputSettings)):C({camera:k.camera,mic:k.mic,speaker:k.speaker})})})}),function(){return oe.apply(this,arguments)})},{key:"nativeInCallAudioMode",value:function(){return fm(),this._nativeInCallAudioMode}},{key:"setNativeInCallAudioMode",value:function(g){if(fm(),[Jw,a8].includes(g)){if(g!==this._nativeInCallAudioMode)return this._nativeInCallAudioMode=g,!this.disableReactNativeAutoDeviceManagement("audio")&&a1(this._callState,this._isPreparingToJoin)&&this.nativeUtils().setAudioMode(this._nativeInCallAudioMode),this}else console.error("invalid in-call audio mode specified: ",g)}},{key:"preAuth",value:(he=on(function*(){var g=this,C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ar(this._callObjectMode,"preAuth()"),jx(this._callState,this._isPreparingToJoin,"preAuth()"),this.needsLoad()&&(yield this.load(C)),!C.url)throw new Error("preAuth() requires at least a url to be provided");return this.validateProperties(C),this.properties=Yt(Yt({},this.properties),C),new Promise(function(k,Z){g._preloadCache.inputSettings=g._prepInputSettingsForSharing(g._inputSettings,!1),g.sendMessageToCallMachine({action:"daily-method-preauth",properties:kf(g.properties,g.callClientId),preloadCache:kf(g._preloadCache,g.callClientId)},function(q){return q.error?Z(q.error):q.access?(g._didPreAuth=!0,void k({access:q.access})):Z(new Error("unknown error in preAuth()"))})})}),function(){return he.apply(this,arguments)})},{key:"load",value:(I=on(function*(g){var C=this;if(this.needsLoad()){if(this._destroyed&&(this._logUseAfterDestroy(),this.strictMode))throw new Error("Use after destroy");if(g&&(this.validateProperties(g),this.properties=Yt(Yt({},this.properties),g)),!this._callObjectMode&&!this.properties.url)throw new Error("can't load iframe meeting because url property isn't set");return this._updateCallState(sw),this.emitDailyJSEvent({action:HM}),this._callObjectMode?new Promise(function(k,Z){C._callObjectLoader.cancel();var q=Date.now();C._callObjectLoader.load(C.properties.dailyConfig,function(w){C._bundleLoadTime=w?"no-op":Date.now()-q,C._updateCallState(ow),w&&C.emitDailyJSEvent({action:lw}),k()},function(w,E){if(C.emitDailyJSEvent({action:$M}),!E){C._updateCallState(Fc),C.resetMeetingDependentVars();var N={action:fw,errorMsg:w.msg,error:{type:"connection-error",msg:"Failed to load call object bundle.",details:{on:"load",sourceError:w,bundleUrl:Eb(C.properties.dailyConfig)}}};C._maybeSendToSentry(N),C.emitDailyJSEvent(N),Z(w.msg)}})}):(this._iframe.src=q3(this.assembleMeetingUrl(),this.properties.dailyConfig),new Promise(function(k,Z){C._loadedCallback=function(q){C._callState!==Fc?(C._updateCallState(ow),(C.properties.cssFile||C.properties.cssText)&&C.loadCss(C.properties),k()):Z(q)}}))}}),function(g){return I.apply(this,arguments)})},{key:"join",value:($=on(function*(){var g=this,C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this._testCallInProgress&&this.stopTestCallQuality();var k=!1;if(this.needsLoad()){this.updateIsPreparingToJoin(!0);try{yield this.load(C)}catch(Z){return this.updateIsPreparingToJoin(!1),Promise.reject(Z)}}else{if(k=!(!this.properties.cssFile&&!this.properties.cssText),this._didPreAuth){if(C.url&&C.url!==this.properties.url)return console.error("url in join() is different than the one used in preAuth()"),this.updateIsPreparingToJoin(!1),Promise.reject();if(C.token&&C.token!==this.properties.token)return console.error("token in join() is different than the one used in preAuth()"),this.updateIsPreparingToJoin(!1),Promise.reject()}if(C.url&&!this._callObjectMode&&C.url&&C.url!==this.properties.url)return console.error("url in join() is different than the one used in load() (".concat(this.properties.url," -> ").concat(C.url,")")),this.updateIsPreparingToJoin(!1),Promise.reject();this.validateProperties(C),this.properties=Yt(Yt({},this.properties),C)}return C.showLocalVideo!==void 0&&(this._callObjectMode?console.error("showLocalVideo is not available in callObject mode"):this._showLocalVideo=!!C.showLocalVideo),C.showParticipantsBar!==void 0&&(this._callObjectMode?console.error("showParticipantsBar is not available in callObject mode"):this._showParticipantsBar=!!C.showParticipantsBar),this._callState===kd||this._callState===mx?(console.warn("already joined meeting, call leave() before joining again"),void this.updateIsPreparingToJoin(!1)):(this._updateCallState(mx,!1),this.emitDailyJSEvent({action:VM}),this._preloadCache.inputSettings=this._prepInputSettingsForSharing(this._inputSettings||{},!1),this.sendMessageToCallMachine({action:"join-meeting",properties:kf(this.properties,this.callClientId),preloadCache:kf(this._preloadCache,this.callClientId)}),new Promise(function(Z,q){g._joinedCallback=function(w,E){if(g._callState!==Fc){if(g._updateCallState(kd),w)for(var N in w){if(g._callObjectMode){var ce=g._callMachine().store;Uw(w[N],ce),Hw(w[N],ce),$w(w[N],g._participants[N],ce)}g._participants[N]=Yt({},w[N]),g.toggleParticipantAudioBasedOnNativeAudioFocus()}k&&g.loadCss(g.properties),Z(w)}else q(E)}}))}),function(){return $.apply(this,arguments)})},{key:"leave",value:(Q=on(function*(){var g=this;return this._testCallInProgress&&this.stopTestCallQuality(),new Promise(function(C){g._callState===Td||g._callState===Fc?C():g._callObjectLoader&&!g._callObjectLoader.loaded?(g._callObjectLoader.cancel(),g._updateCallState(Td),g.resetMeetingDependentVars(),g.emitDailyJSEvent({action:Td}),C()):(g._resolveLeave=C,g.sendMessageToCallMachine({action:"leave-meeting"}))})}),function(){return Q.apply(this,arguments)})},{key:"startScreenShare",value:(X=on(function*(){var g=this,C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(s1(this._callMachineInitialized,"startScreenShare()"),C.screenVideoSendSettings&&this._validateVideoSendSettings("screenVideo",C.screenVideoSendSettings),C.mediaStream&&(this._sharedTracks.screenMediaStream=C.mediaStream,C.mediaStream=Bl),typeof DailyNativeUtils<"u"&&DailyNativeUtils.isIOS!==void 0&&DailyNativeUtils.isIOS){var k=this.nativeUtils();if(yield k.isScreenBeingCaptured())return void this.emitDailyJSEvent({action:hw,type:"screen-share-error",errorMsg:"Could not start the screen sharing. The screen is already been captured!"});k.setSystemScreenCaptureStartCallback(function(){k.setSystemScreenCaptureStartCallback(null),g.sendMessageToCallMachine({action:gw,captureOptions:C})}),k.presentSystemScreenCapturePrompt()}else this.sendMessageToCallMachine({action:gw,captureOptions:C})}),function(){return X.apply(this,arguments)})},{key:"stopScreenShare",value:function(){s1(this._callMachineInitialized,"stopScreenShare()"),this.sendMessageToCallMachine({action:"local-screen-stop"})}},{key:"startRecording",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=g.type;if(C&&C!=="cloud"&&C!=="raw-tracks"&&C!=="local")throw new Error("invalid type: ".concat(C,", allowed values 'cloud', 'raw-tracks', or 'local'"));this.sendMessageToCallMachine(Yt({action:"local-recording-start"},g))}},{key:"updateRecording",value:function(g){var C=g.layout,k=C===void 0?{preset:"default"}:C,Z=g.instanceId;this.sendMessageToCallMachine({action:"daily-method-update-recording",layout:k,instanceId:Z})}},{key:"stopRecording",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.sendMessageToCallMachine(Yt({action:"local-recording-stop"},g))}},{key:"startLiveStreaming",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.sendMessageToCallMachine(Yt({action:"daily-method-start-live-streaming"},g))}},{key:"updateLiveStreaming",value:function(g){var C=g.layout,k=C===void 0?{preset:"default"}:C,Z=g.instanceId;this.sendMessageToCallMachine({action:"daily-method-update-live-streaming",layout:k,instanceId:Z})}},{key:"addLiveStreamingEndpoints",value:function(g){var C=g.endpoints,k=g.instanceId;this.sendMessageToCallMachine({action:mw,endpointsOp:OA,endpoints:C,instanceId:k})}},{key:"removeLiveStreamingEndpoints",value:function(g){var C=g.endpoints,k=g.instanceId;this.sendMessageToCallMachine({action:mw,endpointsOp:jA,endpoints:C,instanceId:k})}},{key:"stopLiveStreaming",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.sendMessageToCallMachine(Yt({action:"daily-method-stop-live-streaming"},g))}},{key:"validateDailyConfig",value:function(g){g.camSimulcastEncodings&&(console.warn("camSimulcastEncodings is deprecated. Use sendSettings, found in DailyCallOptions, to provide camera simulcast settings."),this.validateSimulcastEncodings(g.camSimulcastEncodings)),g.screenSimulcastEncodings&&console.warn("screenSimulcastEncodings is deprecated. Use sendSettings, found in DailyCallOptions, to provide screen simulcast settings."),ww()&&g.noAutoDefaultDeviceChange&&console.warn("noAutoDefaultDeviceChange is not supported on Android, and will be ignored.")}},{key:"validateSimulcastEncodings",value:function(g){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,k=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(g){if(!(g instanceof Array||Array.isArray(g)))throw new Error("encodings must be an Array");if(!m6(g.length,1,3))throw new Error("encodings must be an Array with between 1 to ".concat(3," layers"));for(var Z=0;Z<g.length;Z++){var q=g[Z];for(var w in this._validateEncodingLayerHasValidProperties(q),q)if(Dx.includes(w)){if(typeof q[w]!="number")throw new Error("".concat(w," must be a number"));if(C){var E=C[w],N=E.min,ce=E.max;if(!m6(q[w],N,ce))throw new Error("".concat(w," value not in range. valid range: ").concat(N," to ").concat(ce))}}else if(!["active","scalabilityMode"].includes(w))throw new Error("Invalid key ".concat(w,", valid keys are:")+Object.values(Dx));if(k&&!q.hasOwnProperty("maxBitrate"))throw new Error("maxBitrate is not specified")}}}},{key:"startRemoteMediaPlayer",value:(P=on(function*(g){var C=this,k=g.url,Z=g.settings,q=Z===void 0?{state:xx.PLAY}:Z;try{(function(w){if(typeof w!="string")throw new Error('url parameter must be "string" type')})(k),g6(q),function(w){for(var E in w)if(!n6.includes(E))throw new Error("Invalid key ".concat(E,", valid keys are: ").concat(n6));w.simulcastEncodings&&this.validateSimulcastEncodings(w.simulcastEncodings,t6,!0)}(q)}catch(w){throw console.error("invalid argument Error: ".concat(w)),console.error(`startRemoteMediaPlayer arguments must be of the form:
|
|
@@ -441,19 +441,19 @@ registerProcessor('audio_processor', AudioProcessor);
|
|
|
441
441
|
especially due to system audio feedback preventative measures.
|
|
442
442
|
use only for debugging`),y.connect(r.destination)),this.source=c,this.node=f,this.analyser=y,this.processor=d,console.log("begin completed"),!0}getFrequencies(i="frequency",r=-100,c=-30){if(!this.processor)throw new Error("Session ended: please call .begin() first");return Tf.getFrequencies(this.analyser,this.sampleRate,null,i,r,c)}async pause(){if(this.processor){if(!this.recording)throw new Error("Already paused: please call .record() first")}else throw new Error("Session ended: please call .begin() first");return this._chunkProcessorBuffer.raw.byteLength&&this._chunkProcessor(this._chunkProcessorBuffer),this.log("Pausing ..."),await this._event("stop"),this.recording=!1,!0}async record(i=()=>{},r=8192){if(this.processor){if(this.recording)throw new Error("Already recording: please call .pause() first");if(typeof i!="function")throw new Error("chunkProcessor must be a function")}else throw new Error("Session ended: please call .begin() first");return this._chunkProcessor=i,this._chunkProcessorSize=r,this._chunkProcessorBuffer={raw:new ArrayBuffer(0),mono:new ArrayBuffer(0)},this.log("Recording ..."),await this._event("start"),this.recording=!0,!0}async clear(){if(!this.processor)throw new Error("Session ended: please call .begin() first");return await this._event("clear"),!0}async read(){if(!this.processor)throw new Error("Session ended: please call .begin() first");return this.log("Reading ..."),await this._event("read")}async save(i=!1){if(!this.processor)throw new Error("Session ended: please call .begin() first");if(!i&&this.recording)throw new Error("Currently recording: please call .pause() first, or call .save(true) to force");this.log("Exporting ...");const r=await this._event("export");return new sr().pack(this.sampleRate,r.audio)}async end(){if(!this.processor)throw new Error("Session ended: please call .begin() first");const i=this.processor;this.log("Stopping ..."),await this._event("stop"),this.recording=!1,this.stream.getTracks().forEach(y=>y.stop()),this.log("Exporting ...");const c=await this._event("export",{},i);return this.processor.disconnect(),this.source.disconnect(),this.node.disconnect(),this.analyser.disconnect(),this.stream=null,this.processor=null,this.source=null,this.node=null,new sr().pack(this.sampleRate,c.audio)}async quit(){return this.listenForDeviceChange(null),this.deviceSelection=null,this.processor&&await this.end(),!0}}globalThis.WavRecorder=y8;class b8{constructor({sampleRate:i=44100,outputToSpeakers:r=!1,debug:c=!1}={}){this.scriptSrc=_6,this.sampleRate=i,this.outputToSpeakers=r,this.debug=!!c,this.stream=null,this.processor=null,this.source=null,this.node=null,this.recording=!1,this._lastEventId=0,this.eventReceipts={},this.eventTimeout=5e3,this._chunkProcessor=()=>{},this._chunkProcessorSize=void 0,this._chunkProcessorBuffer={raw:new ArrayBuffer(0),mono:new ArrayBuffer(0)}}log(){return this.debug&&this.log(...arguments),!0}getSampleRate(){return this.sampleRate}getStatus(){return this.processor?this.recording?"recording":"paused":"ended"}async _event(i,r={},c=null){if(c=c||this.processor,!c)throw new Error("Can not send events without recording first");const d={event:i,id:this._lastEventId++,data:r};c.port.postMessage(d);const f=new Date().valueOf();for(;!this.eventReceipts[d.id];){if(new Date().valueOf()-f>this.eventTimeout)throw new Error(`Timeout waiting for "${i}" event`);await new Promise(x=>setTimeout(()=>x(!0),1))}const y=this.eventReceipts[d.id];return delete this.eventReceipts[d.id],y}async begin(i){if(this.processor)throw new Error("Already connected: please call .end() to start a new session");if(!i||i.kind!=="audio")throw new Error("No audio track provided");this.stream=new MediaStream([i]);const r=new AudioContext({sampleRate:this.sampleRate}),c=r.createMediaStreamSource(this.stream);try{await r.audioWorklet.addModule(this.scriptSrc)}catch(x){throw console.error(x),new Error(`Could not add audioWorklet module: ${this.scriptSrc}`)}const d=new AudioWorkletNode(r,"audio_processor");d.port.onmessage=x=>{const{event:v,id:S,data:j}=x.data;if(v==="receipt")this.eventReceipts[S]=j;else if(v==="chunk")if(this._chunkProcessorSize){const B=this._chunkProcessorBuffer;this._chunkProcessorBuffer={raw:sr.mergeBuffers(B.raw,j.raw),mono:sr.mergeBuffers(B.mono,j.mono)},this._chunkProcessorBuffer.mono.byteLength>=this._chunkProcessorSize&&(this._chunkProcessor(this._chunkProcessorBuffer),this._chunkProcessorBuffer={raw:new ArrayBuffer(0),mono:new ArrayBuffer(0)})}else this._chunkProcessor(j)};const f=c.connect(d),y=r.createAnalyser();return y.fftSize=8192,y.smoothingTimeConstant=.1,f.connect(y),this.outputToSpeakers&&(console.warn(`Warning: Output to speakers may affect sound quality,
|
|
443
443
|
especially due to system audio feedback preventative measures.
|
|
444
|
-
use only for debugging`),y.connect(r.destination)),this.source=c,this.node=f,this.analyser=y,this.processor=d,!0}getFrequencies(i="frequency",r=-100,c=-30){if(!this.processor)throw new Error("Session ended: please call .begin() first");return Tf.getFrequencies(this.analyser,this.sampleRate,null,i,r,c)}async pause(){if(this.processor){if(!this.recording)throw new Error("Already paused: please call .record() first")}else throw new Error("Session ended: please call .begin() first");return this._chunkProcessorBuffer.raw.byteLength&&this._chunkProcessor(this._chunkProcessorBuffer),this.log("Pausing ..."),await this._event("stop"),this.recording=!1,!0}async record(i=()=>{},r=8192){if(this.processor){if(this.recording)throw new Error("Already recording: HELLO please call .pause() first");if(typeof i!="function")throw new Error("chunkProcessor must be a function")}else throw new Error("Session ended: please call .begin() first");return this._chunkProcessor=i,this._chunkProcessorSize=r,this._chunkProcessorBuffer={raw:new ArrayBuffer(0),mono:new ArrayBuffer(0)},this.log("Recording ..."),await this._event("start"),this.recording=!0,!0}async clear(){if(!this.processor)throw new Error("Session ended: please call .begin() first");return await this._event("clear"),!0}async read(){if(!this.processor)throw new Error("Session ended: please call .begin() first");return this.log("Reading ..."),await this._event("read")}async save(i=!1){if(!this.processor)throw new Error("Session ended: please call .begin() first");if(!i&&this.recording)throw new Error("Currently recording: please call .pause() first, or call .save(true) to force");this.log("Exporting ...");const r=await this._event("export");return new sr().pack(this.sampleRate,r.audio)}async end(){if(!this.processor)throw new Error("Session ended: please call .begin() first");const i=this.processor;this.log("Stopping ..."),await this._event("stop"),this.recording=!1,this.log("Exporting ...");const r=await this._event("export",{},i);return this.processor.disconnect(),this.source.disconnect(),this.node.disconnect(),this.analyser.disconnect(),this.stream=null,this.processor=null,this.source=null,this.node=null,new sr().pack(this.sampleRate,r.audio)}async quit(){return this.listenForDeviceChange(null),this.processor&&await this.end(),!0}}globalThis.WavRecorder=WavRecorder;var S6={};S6=JSON.parse('{"name":"@pipecat-ai/daily-transport","version":"0.3.10","license":"BSD-2-Clause","main":"dist/index.js","module":"dist/index.module.js","types":"dist/index.d.ts","source":"src/index.ts","repository":{"type":"git","url":"git+https://github.com/pipecat-ai/pipecat-client-web-transports.git"},"files":["dist","package.json","README.md"],"scripts":{"build":"parcel build --no-cache","dev":"parcel watch","lint":"eslint . --ext ts --report-unused-disable-directives --max-warnings 0"},"devDependencies":{"@pipecat-ai/client-js":"^0.3.5","eslint":"9.11.1","eslint-config-prettier":"^9.1.0","eslint-plugin-simple-import-sort":"^12.1.1"},"peerDependencies":{"@pipecat-ai/client-js":"~0.3.5"},"dependencies":{"@daily-co/daily-js":"^0.77.0"},"description":"Pipecat Daily Transport Package","author":"Daily.co","bugs":{"url":"https://github.com/pipecat-ai/pipecat-client-web-transports/issues"},"homepage":"https://github.com/pipecat-ai/pipecat-client-web-transports/blob/main/transports/daily-webrtc/README.md"}');var pm;(function(o){o.AUDIO_BUFFERING_STARTED="audio-buffering-started",o.AUDIO_BUFFERING_STOPPED="audio-buffering-stopped"})(pm||(pm={}));class v8{constructor(i){this._daily=i,this._proxy=new Proxy(this._daily,{get:(r,c,d)=>{if(typeof r[c]=="function"){let f;switch(String(c)){case"preAuth":f="Calls to preAuth() are disabled. Please use Transport.preAuth()";break;case"startCamera":f="Calls to startCamera() are disabled. Please use RTVIClient.initDevices()";break;case"join":f="Calls to join() are disabled. Please use RTVIClient.connect()";break;case"leave":f="Calls to leave() are disabled. Please use RTVIClient.disconnect()";break;case"destroy":f="Calls to destroy() are disabled.";break}return f?()=>{throw new Error(f)}:(...y)=>r[c](...y)}return Reflect.get(r,c,d)}})}get proxy(){return this._proxy}}class Qc extends s3{constructor({dailyFactoryOptions:i={},bufferLocalAudioUntilBotReady:r=!1}={}){super(),this._botId="",this._selectedCam={},this._selectedMic={},this._selectedSpeaker={},this._currentAudioTrack=null,this._audioQueue=[],this._callbacks={},this._dailyFactoryOptions=i,this._bufferLocalAudioUntilBotReady=r,this._daily=s8.createCallObject({...this._dailyFactoryOptions,allowMultipleCallInstances:!0}),this._dailyWrapper=new v8(this._daily)}setupRecorder(){this._mediaStreamRecorder=new b8({sampleRate:Qc.RECORDER_SAMPLE_RATE})}handleUserAudioStream(i){this._audioQueue.push(i)}flushAudioQueue(){if(this._audioQueue.length!==0)for(On.debug(`Will flush audio queue: ${this._audioQueue.length}`);this._audioQueue.length>0;){const r=[];for(;r.length<10&&this._audioQueue.length>0;){const c=this._audioQueue.shift();c&&r.push(c)}r.length>0&&this._sendAudioBatch(r)}}_sendAudioBatch(i){const c={id:"raw-audio-batch",label:"rtvi-ai",type:"raw-audio-batch",data:{base64AudioBatch:i.map(d=>{const f=new Uint8Array(d);return btoa(String.fromCharCode(...f))}),sampleRate:Qc.RECORDER_SAMPLE_RATE,numChannels:1}};this.sendMessage(c)}initialize(i,r){this._bufferLocalAudioUntilBotReady&&this.setupRecorder(),this._callbacks=i.callbacks??{},this._onMessage=r,(this._dailyFactoryOptions.startVideoOff==null||i.enableCam!=null)&&(this._dailyFactoryOptions.startVideoOff=!(i.enableCam??!1)),(this._dailyFactoryOptions.startAudioOff==null||i.enableMic!=null)&&(this._dailyFactoryOptions.startAudioOff=!(i.enableMic??!0)),this.attachEventListeners(),this.state="disconnected",On.debug("[RTVI Transport] Initialized",l8(S6).version)}get dailyCallClient(){return this._dailyWrapper.proxy}get state(){return this._state}set state(i){var r,c;this._state!==i&&(this._state=i,(c=(r=this._callbacks).onTransportStateChanged)==null||c.call(r,i))}async getAllCams(){const{devices:i}=await this._daily.enumerateDevices();return i.filter(r=>r.kind==="videoinput")}updateCam(i){this._daily.setInputDevicesAsync({videoDeviceId:i}).then(r=>{this._selectedCam=r.camera})}get selectedCam(){return this._selectedCam}async getAllMics(){const{devices:i}=await this._daily.enumerateDevices();return i.filter(r=>r.kind==="audioinput")}updateMic(i){this._daily.setInputDevicesAsync({audioDeviceId:i}).then(r=>{this._selectedMic=r.mic})}get selectedMic(){return this._selectedMic}async getAllSpeakers(){const{devices:i}=await this._daily.enumerateDevices();return i.filter(r=>r.kind==="audiooutput")}updateSpeaker(i){this._daily.setOutputDeviceAsync({outputDeviceId:i}).then(r=>{this._selectedSpeaker=r.speaker})}get selectedSpeaker(){return this._selectedSpeaker}enableMic(i){this._daily.setLocalAudio(i)}get isMicEnabled(){return this._daily.localAudio()}enableCam(i){this._daily.setLocalVideo(i)}get isCamEnabled(){return this._daily.localVideo()}enableScreenShare(i){i?this._daily.startScreenShare():this._daily.stopScreenShare()}get isSharingScreen(){return this._daily.localScreenAudio()||this._daily.localScreenVideo()}tracks(){var d,f,y,x,v,S,j,B,ee,ne,O,V,ae,ie,U,P;const i=this._daily.participants()??{},r=i==null?void 0:i[this._botId],c={local:{audio:(y=(f=(d=i==null?void 0:i.local)==null?void 0:d.tracks)==null?void 0:f.audio)==null?void 0:y.persistentTrack,screenAudio:(S=(v=(x=i==null?void 0:i.local)==null?void 0:x.tracks)==null?void 0:v.screenAudio)==null?void 0:S.persistentTrack,screenVideo:(ee=(B=(j=i==null?void 0:i.local)==null?void 0:j.tracks)==null?void 0:B.screenVideo)==null?void 0:ee.persistentTrack,video:(V=(O=(ne=i==null?void 0:i.local)==null?void 0:ne.tracks)==null?void 0:O.video)==null?void 0:V.persistentTrack}};return r&&(c.bot={audio:(ie=(ae=r==null?void 0:r.tracks)==null?void 0:ae.audio)==null?void 0:ie.persistentTrack,video:(P=(U=r==null?void 0:r.tracks)==null?void 0:U.video)==null?void 0:P.persistentTrack}),c}async startRecording(){try{On.info("[RTVI Transport] Initializing recording"),await this._mediaStreamRecorder.record(i=>{this.handleUserAudioStream(i.mono)},Qc.RECORDER_CHUNK_SIZE),this._onMessage({type:pm.AUDIO_BUFFERING_STARTED,data:{}}),On.info("[RTVI Transport] Recording Initialized")}catch(i){i.message.includes("Already recording")||On.error("Error starting recording",i)}}async preAuth(i){this._dailyFactoryOptions=i,await this._daily.preAuth(i)}async initDevices(){var y,x,v,S,j,B,ee,ne,O,V,ae,ie;if(!this._daily)throw new ro("Transport instance not initialized");this.state="initializing";const i=await this._daily.startCamera(this._dailyFactoryOptions),{devices:r}=await this._daily.enumerateDevices(),c=r.filter(U=>U.kind==="videoinput"),d=r.filter(U=>U.kind==="audioinput"),f=r.filter(U=>U.kind==="audiooutput");this._selectedCam=i.camera,this._selectedMic=i.mic,this._selectedSpeaker=i.speaker,(x=(y=this._callbacks).onAvailableCamsUpdated)==null||x.call(y,c),(S=(v=this._callbacks).onAvailableMicsUpdated)==null||S.call(v,d),(B=(j=this._callbacks).onAvailableSpeakersUpdated)==null||B.call(j,f),(ne=(ee=this._callbacks).onCamUpdated)==null||ne.call(ee,i.camera),(V=(O=this._callbacks).onMicUpdated)==null||V.call(O,i.mic),(ie=(ae=this._callbacks).onSpeakerUpdated)==null||ie.call(ae,i.speaker),this._daily.isLocalAudioLevelObserverRunning()||await this._daily.startLocalAudioLevelObserver(100),this._daily.isRemoteParticipantsAudioLevelObserverRunning()||await this._daily.startRemoteParticipantsAudioLevelObserver(100),this.state="initialized"}async connect(i,r){var d,f,y;if(!this._daily)throw new ro("Transport instance not initialized");if(r.signal.aborted)return;this.state="connecting";const c=this._dailyFactoryOptions;c.url=i.room_url??c.url,i.token!=null&&(c.token=i.token);try{await this._daily.join(c);const x=await this._daily.room();x&&"id"in x&&(this._expiry=(d=x.config)==null?void 0:d.exp)}catch(x){throw On.error("Failed to join room",x),this.state="error",new e3}r.signal.aborted||(this.state="connected",(y=(f=this._callbacks).onConnected)==null||y.call(f))}async sendReadyMessage(){return new Promise(i=>{const r=()=>{const f=navigator.userAgent;return/iPad|iPhone|iPod/.test(f)||/Macintosh/.test(f)&&"ontouchend"in document},c=()=>{this.state="ready",this.flushAudioQueue(),this.sendMessage(na.clientReady()),this.stopRecording(),i()},d=f=>{var y;(y=f.participant)!=null&&y.local||(this._daily.off("track-started",d),r()?(On.debug("[RTVI Transport] iOS device detected, adding 0.5 second delay before sending ready message"),setTimeout(c,500)):c())};this._daily.on("track-started",d)})}stopRecording(){this._mediaStreamRecorder&&this._mediaStreamRecorder.getStatus()!=="ended"&&(this._mediaStreamRecorder.end(),this._onMessage({type:pm.AUDIO_BUFFERING_STOPPED,data:{}}))}attachEventListeners(){this._daily.on("available-devices-updated",this.handleAvailableDevicesUpdated.bind(this)),this._daily.on("selected-devices-updated",this.handleSelectedDevicesUpdated.bind(this)),this._daily.on("track-started",this.handleTrackStarted.bind(this)),this._daily.on("track-stopped",this.handleTrackStopped.bind(this)),this._daily.on("participant-joined",this.handleParticipantJoined.bind(this)),this._daily.on("participant-left",this.handleParticipantLeft.bind(this)),this._daily.on("local-audio-level",this.handleLocalAudioLevel.bind(this)),this._daily.on("remote-participants-audio-level",this.handleRemoteAudioLevel.bind(this)),this._daily.on("app-message",this.handleAppMessage.bind(this)),this._daily.on("left-meeting",this.handleLeftMeeting.bind(this)),this._daily.on("error",this.handleFatalError.bind(this)),this._daily.on("nonfatal-error",this.handleNonFatalError.bind(this))}async disconnect(){this.state="disconnecting",this._daily.stopLocalAudioLevelObserver(),this._daily.stopRemoteParticipantsAudioLevelObserver(),this._audioQueue=[],this._currentAudioTrack=null,this.stopRecording(),await this._daily.leave()}sendMessage(i){this._daily.sendAppMessage(i,"*")}handleAppMessage(i){i.data.label==="rtvi-ai"&&this._onMessage({id:i.data.id,type:i.data.type,data:i.data.data})}handleAvailableDevicesUpdated(i){var r,c,d,f,y,x;(c=(r=this._callbacks).onAvailableCamsUpdated)==null||c.call(r,i.availableDevices.filter(v=>v.kind==="videoinput")),(f=(d=this._callbacks).onAvailableMicsUpdated)==null||f.call(d,i.availableDevices.filter(v=>v.kind==="audioinput")),(x=(y=this._callbacks).onAvailableSpeakersUpdated)==null||x.call(y,i.availableDevices.filter(v=>v.kind==="audiooutput"))}handleSelectedDevicesUpdated(i){var r,c,d,f,y,x,v,S,j;((r=this._selectedCam)==null?void 0:r.deviceId)!==i.devices.camera&&(this._selectedCam=i.devices.camera,(d=(c=this._callbacks).onCamUpdated)==null||d.call(c,i.devices.camera)),((f=this._selectedMic)==null?void 0:f.deviceId)!==i.devices.mic&&(this._selectedMic=i.devices.mic,(x=(y=this._callbacks).onMicUpdated)==null||x.call(y,i.devices.mic)),((v=this._selectedSpeaker)==null?void 0:v.deviceId)!==i.devices.speaker&&(this._selectedSpeaker=i.devices.speaker,(j=(S=this._callbacks).onSpeakerUpdated)==null||j.call(S,i.devices.speaker))}async handleLocalAudioTrack(i){if(this.state=="ready"||!this._bufferLocalAudioUntilBotReady)return;switch(this._mediaStreamRecorder.getStatus()){case"ended":await this._mediaStreamRecorder.begin(i),await this.startRecording();break;case"paused":await this.startRecording();break;case"recording":default:this._currentAudioTrack!==i?(await this._mediaStreamRecorder.end(),await this._mediaStreamRecorder.begin(i),await this.startRecording()):On.warn("track-started event received for current track and already recording");break}this._currentAudioTrack=i}handleTrackStarted(i){var r,c,d,f,y;i.type==="screenAudio"||i.type==="screenVideo"?(c=(r=this._callbacks).onScreenTrackStarted)==null||c.call(r,i.track,i.participant?Dd(i.participant):void 0):((d=i.participant)!=null&&d.local&&i.track.kind==="audio"&&this.handleLocalAudioTrack(i.track),(y=(f=this._callbacks).onTrackStarted)==null||y.call(f,i.track,i.participant?Dd(i.participant):void 0))}handleTrackStopped(i){var r,c,d,f;i.type==="screenAudio"||i.type==="screenVideo"?(c=(r=this._callbacks).onScreenTrackStopped)==null||c.call(r,i.track,i.participant?Dd(i.participant):void 0):(f=(d=this._callbacks).onTrackStopped)==null||f.call(d,i.track,i.participant?Dd(i.participant):void 0)}handleParticipantJoined(i){var c,d,f,y;const r=Dd(i.participant);(d=(c=this._callbacks).onParticipantJoined)==null||d.call(c,r),!r.local&&(this._botId=i.participant.session_id,(y=(f=this._callbacks).onBotConnected)==null||y.call(f,r))}handleParticipantLeft(i){var c,d,f,y;const r=Dd(i.participant);(d=(c=this._callbacks).onParticipantLeft)==null||d.call(c,r),!r.local&&(this._botId="",(y=(f=this._callbacks).onBotDisconnected)==null||y.call(f,r))}handleLocalAudioLevel(i){var r,c;(c=(r=this._callbacks).onLocalAudioLevel)==null||c.call(r,i.audioLevel)}handleRemoteAudioLevel(i){var d,f;const r=this._daily.participants(),c=Object.keys(i.participantsAudioLevel);for(let y=0;y<c.length;y++){const x=c[y],v=i.participantsAudioLevel[x];(f=(d=this._callbacks).onRemoteAudioLevel)==null||f.call(d,v,Dd(r[x]))}}handleLeftMeeting(){var i,r;this.state="disconnected",this._botId="",(r=(i=this._callbacks).onDisconnected)==null||r.call(i)}handleFatalError(i){var r,c;On.error("Daily fatal error",i.errorMsg),this.state="error",this._botId="",(c=(r=this._callbacks).onError)==null||c.call(r,na.error(i.errorMsg,!0))}handleNonFatalError(i){var r,c;switch(i.type){case"screen-share-error":(c=(r=this._callbacks).onScreenShareError)==null||c.call(r,i.errorMsg);break}}}Qc.RECORDER_SAMPLE_RATE=16e3,Qc.RECORDER_CHUNK_SIZE=512;const Dd=o=>({id:o.user_id,local:o.local,name:o.user_name}),x8=new Qc,_8=new jl({transport:x8,params:{baseUrl:"https://genius.juspay.in/api/v3/voice/backend",endpoints:{connect:"/connect"}},enableMic:!0,enableCam:!1});function S8({children:o}){return Y.jsx(_3,{client:_8,children:o})}const C6=Ue.createContext(void 0);function C8({children:o}){const[i,r]=Ue.useState(!1);return Y.jsx(C6.Provider,{value:{isMuted:i,setIsMuted:r},children:o})}function w8(){const o=Ue.useContext(C6);if(o===void 0)throw new Error("useMute must be used within a MuteProvider");return o}const w6=Ue.createContext(void 0);function k8({children:o}){const[i,r]=Ue.useState(void 0);return Y.jsx(w6.Provider,{value:{initialHistory:i,setInitialHistory:r},children:o})}function k6(){const o=Ue.useContext(w6);if(!o)throw new Error("useConversationHistoryContext must be used within a ConversationHistoryProvider");return o}function T8(){const o=nm(),{setInitialHistory:i}=k6(),r=Ue.useCallback(async(c,d)=>{if(!o){console.error("RTVI client is not initialized");return}const f=o.params.endpoints?{...o.params.endpoints}:void 0;try{const y=c,x="/connect";let v=x;x.includes("?")?v=`${x}&token=${y}`:v=`${x}?token=${y}`,console.log(`Auto-connecting with endpoint: ${v}`),o.params.endpoints?o.params.endpoints.connect=v:o.params.endpoints={connect:v};let S;d&&(Array.isArray(d)?S=d:"conversations"in d&&Array.isArray(d.conversations)&&(S=d.conversations,console.log("Extracting conversations from agentResponse:",S))),S&&Array.isArray(S)&&S.length>0&&(console.log("Setting chat history in client params:",S),o.params.requestData={...o.params.requestData||{},chatHistory:S},i(S)),console.log(`Client connect endpoint is now: ${o.params.endpoints.connect}`),await o.connect()}catch(y){console.error("Auto-connection error:",y)}finally{o&&o.params&&(o.params.endpoints=f,console.log("Restored client endpoints to:",o.params.endpoints))}},[o,i]);return Ue.useEffect(()=>{const c=d=>{d.data&&d.data.type==="AUTH_TOKEN"&&d.data.token&&(console.log("AUTH_TOKEN received:",d.data),d.data.agentResponse&&console.log("Chat history received:",d.data.agentResponse),r(d.data.token,d.data.agentResponse))};return window.addEventListener("message",c),window.parent!==window&&(window.parent.postMessage({type:"RTVI_CLIENT_READY"},"*"),console.log("RTVI_CLIENT_READY message sent to parent")),()=>{window.removeEventListener("message",c)}},[o,r]),null}const Bx={"tooltip-container":"genius-sdk__ConnectionTooltip-module__tooltip-container___Ge4hD",tooltip:"genius-sdk__ConnectionTooltip-module__tooltip___Dw96d","tooltip-text":"genius-sdk__ConnectionTooltip-module__tooltip-text___Zd-1L"};function M8({message:o,isVisible:i}){return i?Y.jsx("div",{className:Bx["tooltip-container"],children:Y.jsx("div",{className:Bx.tooltip,children:Y.jsx("p",{className:Bx["tooltip-text"],children:o})})}):null}const r1="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.00052%200.764648C6.00053%200.772166%206.00053%200.779674%206.00052%200.787173C6.0026%204.52815%207.05588%205.99955%2011.2354%205.99955C7.05588%205.99955%206.0026%207.47095%206.00052%2011.2119C5.99844%207.47095%204.94517%205.99955%200.765625%205.99955C4.94517%205.99955%205.99844%204.52815%206.00052%200.787173C6.00052%200.779674%206.00052%200.772166%206.00052%200.764648Z'%20fill='white'%20stroke='white'%20stroke-width='1.04698'%20stroke-linejoin='round'/%3e%3c/svg%3e",gn={"simple-chat":"genius-sdk__SimpleChat-module__simple-chat___8hiCW","welcome-container":"genius-sdk__SimpleChat-module__welcome-container___NYmMP","welcome-header":"genius-sdk__SimpleChat-module__welcome-header___F6yjX","welcome-title":"genius-sdk__SimpleChat-module__welcome-title___nULPu","sparkle-icon":"genius-sdk__SimpleChat-module__sparkle-icon___UeoaE","wave-emoji":"genius-sdk__SimpleChat-module__wave-emoji___euNW9",wave:"genius-sdk__SimpleChat-module__wave___c2Nl-","welcome-subtitle":"genius-sdk__SimpleChat-module__welcome-subtitle___Mi863","option-cards":"genius-sdk__SimpleChat-module__option-cards___RU4Xe","option-card":"genius-sdk__SimpleChat-module__option-card___uxVHc","card-icon-wrapper":"genius-sdk__SimpleChat-module__card-icon-wrapper___ErlQj",purple:"genius-sdk__SimpleChat-module__purple___OJIoJ",blue:"genius-sdk__SimpleChat-module__blue___i6H9v",red:"genius-sdk__SimpleChat-module__red___eUlkU","card-title":"genius-sdk__SimpleChat-module__card-title___AZwKi","card-description":"genius-sdk__SimpleChat-module__card-description___lprtn","messages-container":"genius-sdk__SimpleChat-module__messages-container___DInMa",message:"genius-sdk__SimpleChat-module__message___mJ5zW",user:"genius-sdk__SimpleChat-module__user___wV-32",bot:"genius-sdk__SimpleChat-module__bot___CI52h","bot-message-group":"genius-sdk__SimpleChat-module__bot-message-group___ZeXmk","bot-content-wrapper":"genius-sdk__SimpleChat-module__bot-content-wrapper___GwC1Y","message-icon":"genius-sdk__SimpleChat-module__message-icon___7RObu","message-bubble":"genius-sdk__SimpleChat-module__message-bubble___adDU7","connecting-pill":"genius-sdk__SimpleChat-module__connecting-pill___GdNZ2",fadeIn:"genius-sdk__SimpleChat-module__fadeIn___aXSg-",pending:"genius-sdk__SimpleChat-module__pending___FoZ0X","pulse-border":"genius-sdk__SimpleChat-module__pulse-border___LdMpS","typing-pulse":"genius-sdk__SimpleChat-module__typing-pulse___7h8yP","streaming-cursor":"genius-sdk__SimpleChat-module__streaming-cursor___4zqB6",pulse:"genius-sdk__SimpleChat-module__pulse___VzuBS","spoken-text":"genius-sdk__SimpleChat-module__spoken-text___Sa5q0","unspoken-text":"genius-sdk__SimpleChat-module__unspoken-text___5YvDS","pending-message":"genius-sdk__SimpleChat-module__pending-message___bJptQ",inaudible:"genius-sdk__SimpleChat-module__inaudible___VaA8q","visual-components":"genius-sdk__SimpleChat-module__visual-components___eVmx0","tool-description":"genius-sdk__SimpleChat-module__tool-description___-90-h","chart-container":"genius-sdk__SimpleChat-module__chart-container___6ojrT","single-stat-container":"genius-sdk__SimpleChat-module__single-stat-container___-8qmU","table-container":"genius-sdk__SimpleChat-module__table-container___Qk2YY","loading-dots":"genius-sdk__SimpleChat-module__loading-dots___m46tG","loading-pulse":"genius-sdk__SimpleChat-module__loading-pulse___OOiCK"};function T6({toolCalls:o,isVisible:i,isActive:r=!1}){const[c,d]=Ue.useState(!1);if(!i)return null;const f=v=>v.split("_").map(S=>S.charAt(0).toUpperCase()+S.slice(1)).join(" "),y=v=>Object.entries(v).filter(([S,j])=>j!=null).map(([S,j])=>{let B=j;return typeof j=="object"?B=JSON.stringify(j,null,2):typeof j=="string"&&j.length>50&&(B=j.substring(0,50)+"..."),{key:S,value:B}}),x=v=>v?typeof v=="string"?Y.jsx("div",{className:"tool-result-text",children:v}):typeof v=="object"?v.error||v.status==="error"?Y.jsxs("div",{className:"tool-result-error",children:[Y.jsx("span",{className:"error-label",children:"Error:"})," ",v.error||v.message||"Unknown error"]}):Y.jsx("div",{className:"tool-result-object",children:Y.jsx("pre",{children:JSON.stringify(v,null,2)})}):Y.jsx("div",{className:"tool-result-text",children:String(v)}):null;return Y.jsxs("div",{className:"thinking-loader",children:[Y.jsx("div",{className:"thinking-header",onClick:()=>o.length>0&&d(!c),children:r?Y.jsxs(Y.Fragment,{children:[Y.jsxs("div",{className:"thinking-dots",children:[Y.jsx("span",{}),Y.jsx("span",{}),Y.jsx("span",{})]}),Y.jsx("span",{className:"thinking-text",children:"Thinking"})]}):Y.jsxs(Y.Fragment,{children:[Y.jsxs("span",{className:"thinking-text",children:["Used ",o.length," tool",o.length>1?"s":""]}),o.length>0&&Y.jsx("svg",{className:`chevron ${c?"expanded":""}`,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:Y.jsx("path",{d:"M3 4.5L6 7.5L9 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),c&&o.length>0&&Y.jsx("div",{className:"tool-calls-dropdown",children:o.map((v,S)=>Y.jsxs("div",{className:"tool-call-item",children:[Y.jsxs("div",{className:"tool-call-header-item",children:[Y.jsx("div",{className:"tool-status",children:v.status==="pending"?Y.jsx("div",{className:"spinner"}):Y.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:Y.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:"#10b981",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),Y.jsx("span",{className:"tool-name",children:f(v.functionName)}),v.duration&&Y.jsxs("span",{className:"tool-duration",children:[(v.duration/1e3).toFixed(2),"s"]})]}),Object.keys(v.arguments).length>0&&Y.jsxs("div",{className:"tool-arguments",children:[Y.jsx("div",{className:"section-label",children:"Input:"}),Y.jsx("div",{className:"arguments-list",children:y(v.arguments).map(({key:j,value:B})=>Y.jsxs("div",{className:"argument-item",children:[Y.jsxs("span",{className:"argument-key",children:[j,":"]}),Y.jsx("span",{className:"argument-value",children:B})]},j))})]}),v.result&&Y.jsxs("div",{className:"tool-result",children:[Y.jsx("div",{className:"section-label",children:"Output:"}),x(v.result)]}),S<o.length-1&&Y.jsx("div",{className:"tool-divider"})]},v.toolCallId))})]})}function M6(o){const[i,r]=Ue.useState(o||[]),c=Ue.useRef({}),d=Ue.useRef([]);ki(Nt.UserTranscript,y=>{y.timestamp&&typeof y.timestamp=="string"&&y.timestamp.includes("|")?y.timestamp.split("|")[2].toLowerCase()==="true"&&y.text&&(c.current={userMessage:y.text,response:[]},d.current=[],console.log("📝 [ConversationHistory] Started new entry with user message:",y.text)):y.final&&y.text&&(c.current={userMessage:y.text,response:[]},d.current=[],console.log("📝 [ConversationHistory] Started new entry with user message:",y.text))}),ki(Nt.BotTranscript,y=>{y.text&&c.current.userMessage&&(c.current.botMessage=y.text,console.log("🤖 [ConversationHistory] Added bot message:",y.text))}),ki(Nt.BotLlmText,y=>{y.text&&c.current.userMessage&&!c.current.botMessage&&(c.current.botMessage=y.text,console.log("🤖 [ConversationHistory] Added bot message from LLM:",y.text))}),ki(Nt.ServerMessage,y=>{if(y.type==="tool-call-start"){const{functionName:x,arguments:v}=y.payload,B={payload_type:{q_api:"q_api",sr_analysis:"sr_analysis",field_value_discovery:"field_value_discovery",mid_lookup:"mid_lookup",math:"math"}[x||""]||x||"unknown",input:v||{},output:null};d.current.push(B),console.log(`🔧 [ConversationHistory] Tool call started: ${x}`,v)}else if(y.type==="tool-call-result"){const{result:x}=y.payload,v=d.current.slice().reverse().find(S=>S.output===null);v&&(v.output=x,console.log("🔧 [ConversationHistory] Tool call result added:",x))}}),ki(Nt.BotStoppedSpeaking,()=>{if(c.current.userMessage&&c.current.botMessage){c.current.response=[...d.current,{payload_type:"output_text",input:{},output:null}];const y={userMessage:c.current.userMessage,botMessage:c.current.botMessage,response:c.current.response};r(x=>[...x,y]),console.log("✅ [ConversationHistory] Conversation entry completed:",y),c.current={},d.current=[]}});const f=Ue.useCallback(()=>{window.parent!==window&&(console.log("📤 [ConversationHistory] Sending conversation history to parent:",i),window.parent.postMessage({type:"CONVERSATION_HISTORY",payload:i},"*"))},[i]);return Ue.useEffect(()=>{const y=()=>{f()};window.addEventListener("beforeunload",y);const x=()=>{document.visibilityState==="hidden"&&f()};return document.addEventListener("visibilitychange",x),()=>{window.removeEventListener("beforeunload",y),document.removeEventListener("visibilitychange",x)}},[f]),Ue.useEffect(()=>{i.length>0&&f()},[i,f]),{conversationHistory:i,sendDataToParent:f}}function A8(){const[o,i]=Ue.useState([]),[r,c]=Ue.useState([]),[d,f]=Ue.useState({}),[y,x]=Ue.useState(!1),v=Ue.useRef(null),S=w3(),j=nm(),B=S==="connecting"||S==="connected",[ee,ne]=Ue.useState(!1),[O,V]=Ue.useState(""),{conversationHistory:ae}=M6();Ue.useEffect(()=>{console.log("Transport state changed:",S),S==="connecting"?(console.log("Showing connecting tooltip"),V("Connecting to Genius..."),ne(!0)):S==="ready"?(console.log("Showing connected tooltip"),V("Connected"),ne(!0),console.log("Voice assistant is ready, posting message to parent"),window.parent.postMessage({type:"VOICE_ASSISTANT_CONNECTED"},"*"),setTimeout(()=>{console.log("Hiding connected tooltip"),ne(!1)},2e3)):S==="disconnected"&&(console.log("Hiding tooltip due to disconnection"),ne(!1))},[S]),Ue.useEffect(()=>{if(ae.length===0)return;const q=ae[ae.length-1];console.log("🎨 Processing latest conversation entry:",q);const w=q.response.filter(E=>E.payload_type!=="output_text").map((E,N)=>({toolCallId:`${E.payload_type}-${N}`,functionName:E.payload_type,arguments:E.input,result:E.output,status:"complete",timestamp:Date.now()}));w.length>0&&(console.log("🔧 Found tool calls in conversation history:",w),i(E=>{const N=E.filter(H=>H.sender==="bot");if(N.length===0)return E;const ce=N[N.length-1];if(ce.visualData)return console.log("🎨 Bot message already has visual data, skipping"),E;const D=C(w);return D?(console.log("🎨 Adding visual data to bot message:",ce.id),E.map(H=>H.id===ce.id?{...H,visualData:D,toolCallsCompleted:w}:H)):E}))},[ae]);const[ie,U]=Ue.useState(!1),P=Ue.useRef(null),X=Ue.useRef({llm:!1,tts:!1}),Q=Ue.useRef(null),$=Ue.useRef(null),I=Ue.useRef(0),he=Ue.useRef(!1),oe=Ue.useRef(!1),te=Ue.useRef(null),z=Ue.useRef(new Set),W=Ue.useRef(new Set),G=Ue.useRef(null),T=Ue.useRef(null),_=Ue.useRef(new Map);Ue.useEffect(()=>{const q=v.current;q&&(q.scrollTop=q.scrollHeight)},[o]);const A=()=>{if(console.log("🚫 Bot interrupted by user"),oe.current=!0,P.current&&(W.current.add(P.current),console.log("🚫 Added to interrupted messages:",P.current)),P.current){const q=P.current;console.log("🎯 Marking bot message as interrupted:",q),i(w=>w.map(E=>E.id===q&&E.sender==="bot"?(console.log("🔥 Setting isInterrupted flag on message"),{...E,isInterrupted:!0,isStreaming:!1}):E))}else console.log("⚠️ No currentBotMessageId, looking for recent streaming bot message"),i(q=>{const w=[...q].reverse().find(E=>E.sender==="bot"&&(E.isStreaming||E.spokenText===void 0||E.spokenText!==E.text));return w?(console.log("🎯 Found recent bot message to mark as interrupted:",w.id),W.current.add(w.id),q.map(E=>E.id===w.id?(console.log("🔥 Setting isInterrupted flag on recent message"),{...E,isInterrupted:!0,isStreaming:!1}):E)):q})};Ue.useEffect(()=>()=>{J(),T.current&&clearTimeout(T.current)},[]),Ue.useEffect(()=>{if(j){const q=Object.keys(Nt);console.log("Available RTVI Events:",q)}},[j]),ki(Nt.ServerMessage,q=>{if(console.log("🔧 Server message received:",q),q.type==="tool-call-start"){const{toolCallId:w,functionName:E,arguments:N,timestamp:ce}=q.payload;c(D=>[...D,{toolCallId:w,functionName:E,arguments:N,timestamp:ce,status:"pending"}]),x(!0),console.log(`🔧 Tool call started: ${E}`)}else if(q.type==="tool-call-result"){const{toolCallId:w,result:E,duration:N}=q.payload;c(ce=>ce.map(D=>D.toolCallId===w?{...D,result:E,duration:N,status:"complete"}:D)),console.log(`🔧 Tool call completed: ${w}`),c(ce=>ce.map(D=>D.toolCallId===w?{...D,result:E,duration:N,status:"complete"}:D))}}),ki(Nt.UserStartedSpeaking,()=>{console.log("🎤 SimpleChat: User started speaking"),T.current&&(clearTimeout(T.current),T.current=null),ie&&A(),(he.current||!Q.current)&&(o.some(E=>E.sender==="user"&&E.isPending&&!E.text)?console.log("⚠️ Skipping empty message box creation - one already exists"):(console.log("📦 Creating empty user message box on speech start"),he.current=!1,i(E=>{const N=E.map(K=>({...K,isPending:!1})),ce=new Date,D=`user-${ce.getTime()}`;Q.current=D;const H={id:D,sender:"user",text:"",timestamp:ce,isPending:!0,segments:[]};return console.log(`➕ Created empty message box: ${D}`),[...N,H]})))}),ki(Nt.UserStoppedSpeaking,()=>{console.log("🎤 SimpleChat: User stopped speaking");const q=Q.current;T.current=setTimeout(()=>{q&&i(w=>{const E=w.find(N=>N.id===q);return E&&E.isPending&&!E.text?(console.log("🔒 User stopped speaking with empty text box - marking as inaudible"),Q.current===q&&(Q.current=null),w.map(N=>N.id===E.id?{...N,text:"inaudible",isPending:!1,segments:[]}:N)):w}),T.current=null},2e3)}),ki(Nt.BotStartedSpeaking,()=>{console.log("🤖 SimpleChat: Bot started speaking"),U(!0),oe.current=!1,Q.current&&console.log("🔍 Bot started speaking - pending user message exists:",Q.current)}),ki(Nt.BotStoppedSpeaking,()=>{console.log("🤖 SimpleChat: Bot stopped speaking"),U(!1),oe.current=!1,te.current=null});const L=()=>{setTimeout(()=>{if(!X.current.llm&&!X.current.tts&&P.current){const q=P.current;console.log("✅ Bot fully done - removing cursor for message:",q),i(w=>{console.log("Current messages:",w.map(N=>({id:N.id,isStreaming:N.isStreaming})));const E=w.map(N=>N.id===q?(console.log(`Found message to update: ${N.id}`),{...N,isStreaming:!1}):N);return console.log("Updated messages:",E.map(N=>({id:N.id,isStreaming:N.isStreaming}))),E}),P.current=null,I.current=Date.now()}},100)};ki(Nt.BotLlmStarted,()=>{if(console.log("🤖 Bot LLM started"),X.current.llm=!0,x(!0),he.current=!0,Q.current&&(console.log("🔍 Bot LLM started - pending user message exists:",Q.current),i(q=>q.map(w=>w.id===Q.current&&w.isPending&&w.text?(console.log("📝 Finalizing pending user message as bot starts:",w.id),{...w,isPending:!1}):w))),oe.current=!1,z.current.clear(),console.log("📝 Interrupted bot messages will remain blocked:",Array.from(W.current)),te.current=null,P.current)console.log("ℹ️ Message already exists from early text event");else{const q=new Date,w=`bot-${q.getTime()}`;P.current=w,i(E=>[...E,{id:w,sender:"bot",text:"",spokenText:"",timestamp:q,isStreaming:!0}])}}),ki(Nt.BotLlmStopped,()=>{if(console.log("🤖 Bot LLM stopped"),X.current.llm=!1,x(!1),P.current&&d[P.current]){const q=d[P.current],w=C(q);w&&(console.log("🎨 Processing visual data for message:",P.current),i(E=>E.map(N=>N.id===P.current?{...N,visualData:w,toolCallsCompleted:q}:N)))}P.current&&i(q=>{const w=q.find(E=>E.id===P.current);return w&&!w.text.trim()?(console.log("🗑️ Removing empty bot message:",P.current),P.current=null,q.filter(E=>E.id!==w.id)):q}),L()}),ki(Nt.BotTtsStarted,()=>{console.log("🤖 Bot TTS started"),X.current.tts=!0}),ki(Nt.BotTtsStopped,()=>{console.log("🤖 Bot TTS stopped"),X.current.tts=!1,te.current=null,L()}),ki(Nt.UserTranscript,q=>{q.timestamp&&typeof q.timestamp=="string"&&q.timestamp.includes("|")?(console.log("📝 Enhanced transcript event received:",JSON.stringify(q,null,2)),k(q)):console.log("📝 Ignoring regular RTVI transcript event (no custom data)")}),ki(Nt.BotTranscript,q=>{console.log("🤖 Bot transcript event (ignoring - using streaming instead):",JSON.stringify(q,null,2))}),ki(Nt.BotLlmText,q=>{if(console.log("🤖 Bot LLM text event:",JSON.stringify(q,null,2)),x(!1),he.current=!0,q.text&&q.text.trim()!=="")if(P.current)i(w=>w.map(E=>E.id===P.current?{...E,text:E.text+q.text}:E));else{const w=Date.now();if(w-I.current<500)console.log("⚠️ Quick successive bot message detected, checking for recent message to append"),i(N=>{const ce=N[N.length-1];if(ce&&ce.sender==="bot")return console.log("📝 Appending to recent bot message"),P.current=ce.id,X.current.llm=!0,N.map(D=>D.id===ce.id?{...D,text:D.text+" "+q.text,isStreaming:!0}:D);{console.log("⚠️ No recent bot message found, creating new");const D=new Date,H=`bot-${D.getTime()}`;if(P.current=H,X.current.llm=!0,I.current=w,r.length>0){f(le=>({...le,[H]:[...r]}));const K=r.filter(le=>le.status==="complete"),re=K.length>0?C(K):null;return c([]),[...N,{id:H,sender:"bot",text:q.text,spokenText:"",timestamp:D,isStreaming:!0,visualData:re,toolCallsCompleted:K.length>0?K:void 0}]}return[...N,{id:H,sender:"bot",text:q.text,spokenText:"",timestamp:D,isStreaming:!0}]}});else{console.log("⚠️ LLM text arrived before BotLlmStarted - creating message");const N=new Date,ce=`bot-${N.getTime()}`;if(P.current=ce,X.current.llm=!0,I.current=w,te.current=null,r.length>0){f(K=>({...K,[ce]:[...r]}));const D=r.filter(K=>K.status==="complete"),H=D.length>0?C(D):null;c([]),i(K=>[...K,{id:ce,sender:"bot",text:q.text,spokenText:"",timestamp:N,isStreaming:!0,visualData:H,toolCallsCompleted:D.length>0?D:void 0}])}else i(D=>[...D,{id:ce,sender:"bot",text:q.text,spokenText:"",timestamp:N,isStreaming:!0}])}}}),ki(Nt.BotTtsText,q=>{if(console.log("🤖 Bot TTS text event:",JSON.stringify(q,null,2)),!q.text)return;let w=null;q.message_id?w=q.message_id:q.id&&(w=q.id);let E=null;if(P.current&&w&&_.current.get(P.current)===w&&(E=P.current),!E&&w){for(const[D,H]of _.current.entries())if(H===w){E=D;break}}if(E&&W.current.has(E)){console.log(`🚫 Ignoring TTS event - belongs to interrupted bot message: ${E}`);return}const N=P.current;if(N&&W.current.has(N)){console.log(`🚫 Ignoring TTS event for currently interrupted message: ${N}`);return}if(N&&w&&!_.current.has(N)&&(_.current.set(N,w),console.log(`🔗 Mapped bot message ${N} to TTS ID ${w}`)),N&&w){const D=_.current.get(N);if(D&&D!==w){console.log(`🚫 Ignoring TTS event - wrong TTS ID. Expected: ${D}, Got: ${w}`);return}}const ce=`${w||"unknown"}-${q.text}`;if(z.current.add(ce),w&&te.current&&w!==te.current&&(console.log(`🔄 TTS message ID changed from ${te.current} to ${w}`),oe.current)){console.log("🆕 Creating new bot message due to TTS message ID change during interruption");const D=new Date,H=`bot-${D.getTime()}`;P.current=H,te.current=w,X.current.tts=!0,_.current.set(H,w),i(K=>[...K,{id:H,sender:"bot",text:q.text,spokenText:q.text,timestamp:D,isStreaming:!0}]);return}if(w&&(te.current=w),P.current)i(D=>D.map(H=>H.id===P.current?{...H,spokenText:(H.spokenText||"")+q.text}:H));else{console.log("⚠️ TTS text arrived after bot completed"),console.log("🚫 Ignoring orphaned TTS event - no current bot message");return}});const J=()=>{G.current&&(clearTimeout(G.current),G.current=null)},se=()=>{J(),G.current=setTimeout(()=>{console.log("⏰ Pending timeout triggered - finalizing user message"),i(q=>q.map(w=>{var E;return w.id===Q.current&&w.isPending?(console.log(`🔒 Auto-finalizing pending message: ${w.id}`),{...w,isPending:!1,segments:(E=w.segments)==null?void 0:E.map(N=>({...N,isFinal:!0}))}):w})),G.current=null},2500)},R=q=>{const w=q.toLowerCase();return w.includes("rate")||w.includes("percentage")||w.includes("percent")?"percentage":w.includes("volume")||w.includes("count")||w.includes("total")||w.includes("amount")||w.includes("transaction")||w.includes("order")||w.includes("number")||w.includes("quantity")?"volume":w.includes("latency")||w.includes("time")||w.includes("duration")?"latency":"default"},ue=(q,w)=>{switch(w){case"percentage":return`${q}%`;case"volume":return q>=1e7?`${(q/1e7).toFixed(1)} Cr`:q>=1e5?`${(q/1e5).toFixed(1)} L`:q>=1e3?`${(q/1e3).toFixed(1)} K`:q.toLocaleString("en-IN");case"latency":return`${q.toFixed(2)} s`;default:return q.toString()}},ye=(q,w,E)=>{const N=[...q].sort((ve,_e)=>new Date(ve[w]).getTime()-new Date(_e[w]).getTime()),ce=Object.keys(q[0]).filter(ve=>ve!==w&&ve!==E);if(ce.length===0){const ve=[...new Set(N.map(we=>we[w]))],_e=ve.map(we=>{const Ee=N.find(Re=>Re[w]===we);return Ee?Number(Ee[E]||0):null});return{hasDimensions:!1,series:[{type:"line",name:E.replace(/_/g," "),data:_e,connectNulls:!0}],categories:ve.map(we=>new Date(we).toLocaleString([],{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}))}}const D=ce[0],H=N.reduce((ve,_e)=>{const we=_e[D];return ve[we]||(ve[we]=[]),ve[we].push(_e),ve},{}),K=[...new Set(N.map(ve=>ve[w]))],re=["#7856FF","#FEBBB2","#72BEF4","#1E90FF","#E377C2","#7FE1D8","#CB80DC","#5CB7AF","#1F77B4","#9467BD","#0F7EA0","#17BECF","#7F7F7F","#BCBD22","#A0872C","#006400","#B3596E","#4B0082","#4B6D8C"],le=Object.entries(H).map(([ve,_e],we)=>{const Ee=new Map;_e.forEach(be=>{Ee.set(be[w],be[E])});const Re=K.map(be=>{const me=Ee.get(be);return me!==void 0?Number(me):null});return{type:"line",name:ve,color:re[we%re.length],data:Re,connectNulls:!0}}),ge=K.map(ve=>new Date(ve).toLocaleString([],{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}));return{hasDimensions:!0,series:le,categories:ge}},g=q=>{console.log("📈 Converting success data to chart format:",q);const w=[...q].sort((N,ce)=>new Date(N.order_created_at_time).getTime()-new Date(ce.order_created_at_time).getTime()),E={chart:{type:"line",height:300,backgroundColor:"transparent"},title:{text:"Success Rate Over Time",style:{fontSize:"16px",fontWeight:"bold"}},credits:{enabled:!1},xAxis:{categories:w.map(N=>new Date(N.order_created_at_time).toLocaleString([],{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})),labels:{formatter:function(){const N=String(this.value),ce=new Date(N);return ce.getHours()===0&&ce.getMinutes()===0?`${ce.getDate()}. ${ce.toLocaleString("default",{month:"short"})}`:N.split(", ")[1]},style:{color:"#9aa0a6"},rotation:0,align:"center"}},yAxis:{title:{text:""},gridLineColor:"#e0e0e0",gridLineDashStyle:"Dash",labels:{formatter:function(){return`${Number(this.value)}%`},style:{color:"#9aa0a6"}}},legend:{enabled:!1,align:"left",verticalAlign:"top",layout:"horizontal",y:10,itemStyle:{fontSize:"12px"},symbolRadius:0,symbolHeight:0,symbolWidth:0,useHTML:!0,labelFormatter:function(){const N=this.color||"#000",ce="name"in this?this.name:"";return'<span style="display: inline-flex; align-items: center;"><span style="background-color: '+N+'; width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 5px;"></span>'+ce+"</span>"}},plotOptions:{series:{marker:{enabled:!1,symbol:"circle",radius:4,states:{hover:{enabled:!0,radius:5}}},states:{hover:{lineWidthPlus:1}}}},tooltip:{shared:!0,useHTML:!0,backgroundColor:"rgba(255, 255, 255, 0)",borderWidth:0,shadow:!1,style:{padding:"0px"},formatter:function(){var re;const N=le=>le.replace(/_/g," ").replace(/\b\w/g,ge=>ge.toUpperCase()),ce=le=>{const ge=new Date(le),ve=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],_e=["January","February","March","April","May","June","July","August","September","October","November","December"],we=ve[ge.getDay()],Ee=ge.getDate(),Re=_e[ge.getMonth()],be=ge.getFullYear();let me=ge.getHours();const pe=ge.getMinutes(),xe=me>=12?"PM":"AM";me=me%12,me=me||12;const Te=pe<10?"0"+pe:pe;return`${we}, ${Ee} ${Re}, ${be} ${me}:${Te} ${xe}`};let D='<div style="border-radius: 12px; border: 1px solid #EAECF0; background: #FFF; box-shadow: 0px 6px 15px 0px rgba(0, 0, 0, 0.15), 0px 3px 2px -5px rgba(0, 0, 0, 0.04); padding: 16px;">';D+='<div style="display: flex; font-family: Inter, sans-serif; gap: 16px; align-items: stretch;">';const H=this.points?this.points[0].color:this.color||"#6366f1";if(D+=`<div style="background:${H}; width: 4px; flex-shrink: 0; border-radius: 4px; align-self: stretch;"></div>`,D+='<div style="display: flex; flex-direction: column; gap: 12px;">',D+='<div style="display: flex; flex-direction: column; gap: 4px;">',D+=`<div style="color: #525252; font-feature-settings: 'clig' off, 'liga' off; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 600; line-height: 18px;">${N("success_rate")}</div>`,D+="</div>",D+='<div class="flex flex-col gap-1" style="display: flex; flex-direction: column; gap: 6px;">',this.points)[...this.points].sort((ge,ve)=>(ve.y||0)-(ge.y||0)).forEach(ge=>{var Ee;const ve=`${ge.y.toFixed(2)}%`,_e="#D4F4E5",we="#008242";D+='<div class="flex items-center" style="display: flex; align-items: center;">',D+=`<div class="bg-jp-2-green-50 text-jp-2-green-200 rounded p-1 font-semibold mr-1.5 my-1" style="background-color: ${_e}; color: ${we}; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${ve}</div>`,D+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((Ee=ge.series)==null?void 0:Ee.name)||""}</div>`,D+="</div>"});else{const le=`${this.y.toFixed(2)}%`;D+='<div class="flex items-center" style="display: flex; align-items: center;">',D+=`<div class="bg-jp-2-green-50 text-jp-2-green-200 rounded p-1 font-semibold mr-1.5 my-1" style="background-color: #D4F4E5; color: #008242; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${le}</div>`,D+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((re=this.series)==null?void 0:re.name)||""}</div>`,D+="</div>"}const K=this.x?ce(String(this.x)):"";return D+=`<div class="font-medium text-jp-2-gray-300" style="font-weight: 500; color: #9AA0A6; font-size: 12px; margin-top: 4px;">${K}</div>`,D+="</div>",D+="</div>",D+="</div>",D+="</div>",D},xDateFormat:"%a, %d %B, %Y %H:%M"},series:[{type:"line",name:"Success Rate",data:w.map(N=>N.success_rate),color:"#6366f1",lineWidth:2,connectNulls:!0}]};return console.log("📈 Generated chart config:",E),E},C=q=>{console.log("🎨 Processing tool calls for visual data:",q);let w={};for(const E of q){if(console.log("🔧 Processing tool call:",{functionName:E.functionName,hasResult:!!E.result,result:E.result}),!E.result){console.log("⚠️ Skipping tool call - no result");continue}try{let N;if(typeof E.result=="string")try{N=JSON.parse(E.result),console.log("📊 Parsed JSON result:",N)}catch{console.log("⚠️ Failed to parse JSON, using string result:",E.result),N=E.result}else N=E.result,console.log("📊 Using object result:",N);const ce=Ol(JSON.stringify(E.arguments),E.functionName);if(console.log("📝 Generated description:",ce),N.success_data&&Array.isArray(N.success_data)){console.log("🔍 Found success_data array - applying proper detection logic");const D=N.success_data;if(console.log("🔍 Success data analysis:",{isArray:Array.isArray(D),length:D.length,firstItem:D[0],keys:D.length>0?Object.keys(D[0]):[]}),D.length===1){console.log("📊 Detected single item in success_data - creating single stat");const H=D[0],K=Object.keys(H)[0];if(K){const re={metric:K.replace(/_/g," "),value:H[K]===null?"N/A":H[K]};w.singleStat=re,w.description=ce}}else if(D.length>1){const H=D[0];if(Object.keys(H).find(re=>re.includes("_time"))){console.log("📈 Detected time series in success_data - creating chart");const re=g(D);w.chartData=re,w.description=ce}else console.log("📋 Detected multiple items without time in success_data - creating table"),w.tableData=D,w.description=ce}}else if(Array.isArray(N)&&N.length>0){const D=N[0],H=Object.keys(D).find(K=>K.includes("_time"));if(console.log("🔍 Data analysis:",{isArray:Array.isArray(N),length:N.length,firstItem:D,timeKey:H,keys:Object.keys(D)}),H){console.log("📈 Detected time series data - creating chart");const re=Object.keys(D).filter(le=>le!==H&&!["gateway","payment_gateway","dimension","group","category"].includes(le))[0];if(re){const le=ye(N,H,re),ge={chart:{type:"line"},title:{text:`${re.replace(/_/g," ")}`},credits:{enabled:!1},xAxis:{categories:le.categories,labels:{formatter:function(){const ve=String(this.value),_e=new Date(ve);return _e.getHours()===0&&_e.getMinutes()===0?`${_e.getDate()}. ${_e.toLocaleString("default",{month:"short"})}`:ve.split(", ")[1]},style:{color:"#9aa0a6"},rotation:0,align:"center"}},yAxis:{title:{text:""},gridLineColor:"#e0e0e0",gridLineDashStyle:"Dash",labels:{formatter:function(){var we;const ve=((we=this.chart.options.title)==null?void 0:we.text)||"",_e=R(ve.replace(/ /g,"_"));return ue(Number(this.value),_e)},style:{color:"#9aa0a6"}}},legend:{enabled:le.hasDimensions,align:"left",verticalAlign:"top",layout:"horizontal",y:10,itemStyle:{fontSize:"12px"},symbolRadius:0,symbolHeight:0,symbolWidth:0,useHTML:!0,labelFormatter:function(){const ve=this.color||"#000",_e="name"in this?this.name:"";return'<span style="display: inline-flex; align-items: center;"><span style="background-color: '+ve+'; width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 5px;"></span>'+_e+"</span>"}},plotOptions:{series:{marker:{enabled:!1,symbol:"circle",radius:4,states:{hover:{enabled:!0,radius:5}}},states:{hover:{lineWidthPlus:1}}}},tooltip:{shared:!0,useHTML:!0,backgroundColor:"rgba(255, 255, 255, 0)",borderWidth:0,shadow:!1,style:{padding:"0px"},formatter:function(){var me;const ve=R(re),_e=pe=>pe.replace(/_/g," ").replace(/\b\w/g,xe=>xe.toUpperCase()),we=pe=>{const xe=new Date(pe),Te=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ke=["January","February","March","April","May","June","July","August","September","October","November","December"],Ae=Te[xe.getDay()],De=xe.getDate(),ze=ke[xe.getMonth()],$e=xe.getFullYear();let Ge=xe.getHours();const qe=xe.getMinutes(),Je=Ge>=12?"PM":"AM";Ge=Ge%12,Ge=Ge||12;const rt=qe<10?"0"+qe:qe;return`${Ae}, ${De} ${ze}, ${$e} ${Ge}:${rt} ${Je}`};let Ee='<div style="border-radius: 12px; border: 1px solid #EAECF0; background: #FFF; box-shadow: 0px 6px 15px 0px rgba(0, 0, 0, 0.15), 0px 3px 2px -5px rgba(0, 0, 0, 0.04); padding: 16px;">';Ee+='<div style="display: flex; font-family: Inter, sans-serif; gap: 16px; align-items: stretch;">';const Re=this.points?this.points[0].color:this.color||"#3BA974";if(Ee+=`<div style="background:${Re}; width: 4px; flex-shrink: 0; border-radius: 4px; align-self: stretch;"></div>`,Ee+='<div style="display: flex; flex-direction: column; gap: 12px;">',Ee+='<div style="display: flex; flex-direction: column; gap: 4px;">',Ee+=`<div style="color: #525252; font-feature-settings: 'clig' off, 'liga' off; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 600; line-height: 18px;">${_e(re)}</div>`,Ee+="</div>",Ee+='<div class="flex flex-col gap-1" style="display: flex; flex-direction: column; gap: 6px;">',this.points)[...this.points].sort((xe,Te)=>(Te.y||0)-(xe.y||0)).forEach(xe=>{var $e,Ge;const Te=ue(xe.y||0,ve),ke=(($e=xe.series)==null?void 0:$e.name)==="Overall",Ae=ke?"bg-jp-2-gray-30 text-jp-2-gray-700":"bg-jp-2-green-50 text-jp-2-green-200",De=ke?"#E8E8E8":"#D4F4E5",ze=ke?"#424242":"#008242";Ee+='<div class="flex items-center" style="display: flex; align-items: center;">',Ee+=`<div class="${Ae} rounded p-1 font-semibold mr-1.5 my-1" style="background-color: ${De}; color: ${ze}; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${Te}</div>`,Ee+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((Ge=xe.series)==null?void 0:Ge.name)||""}</div>`,Ee+="</div>"});else{const pe=ue(this.y||0,ve);Ee+='<div class="flex items-center" style="display: flex; align-items: center;">',Ee+=`<div class="bg-jp-2-green-50 text-jp-2-green-200 rounded p-1 font-semibold mr-1.5 my-1" style="background-color: #D4F4E5; color: #008242; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${pe}</div>`,Ee+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((me=this.series)==null?void 0:me.name)||""}</div>`,Ee+="</div>"}const be=this.x?we(String(this.x)):"";return Ee+=`<div class="font-medium text-jp-2-gray-300" style="font-weight: 500; color: #9AA0A6; font-size: 12px; margin-top: 4px;">${be}</div>`,Ee+="</div>",Ee+="</div>",Ee+="</div>",Ee+="</div>",Ee},xDateFormat:"%a, %d %B, %Y %H:%M"},series:le.series};w.chartData=ge,w.description=ce}}else if(N.length===1){console.log("📊 Detected single item - creating single stat");const K=Object.keys(D)[0];if(K){const re={metric:K.replace(/_/g," "),value:D[K]===null?"N/A":D[K]};w.singleStat=re,w.description=ce}}else console.log("📋 Detected multiple items without time - creating table"),w.tableData=N,w.description=ce}else N.chartData||N.chart||N.series||N.categories||N.xAxis||N.yAxis?(console.log("📈 Detected pre-formatted chart data"),w.chartData=N.chartData||N.chart||N,w.description=ce):typeof N=="object"&&(N.metric||N.value)&&(console.log("📊 Detected single stat object"),w.singleStat=N,w.description=ce)}catch(N){console.error("❌ Error processing tool result for visual data:",N)}}return console.log("🎨 Final visual data:",w),Object.keys(w).length>0?w:null},k=q=>{if(console.log("📝 Enhanced transcript handler called with:",q),J(),T.current&&(clearTimeout(T.current),T.current=null),!q.text){console.log("🚫 Filtered: No text in transcript");return}const w=q.text.trim();if(w==="<noise>"){console.log("🚫 Filtered: Noise transcript blocked -",w);return}let E="unknown",N=!1,ce=q.timestamp;if(q.timestamp&&typeof q.timestamp=="string"&&q.timestamp.includes("|"))try{const re=q.timestamp.split("|");re.length>=3&&(ce=re[0],E=re[1],N=re[2].toLowerCase()==="true",console.log(`📝 Parsed from timestamp - messageId: ${E}, isFinal: ${N}`))}catch(re){console.warn("📝 Failed to parse attributes from timestamp:",re);return}else{console.log("📝 No custom timestamp data found, skipping transcript");return}const D=E!==$.current;let H=null;if(Q.current){const re=o.find(le=>le.id===Q.current);re&&re.isPending&&!re.text&&(H=re.id,console.log(`📝 Found existing empty message to reuse: ${H}`))}const K=(he.current||!Q.current)&&!H;D?(console.log(`🆕 New conversation turn detected: ${E}`),console.log(`📦 Need new message box: ${K} (bot started: ${he.current}, empty exists: ${!!H})`),ie&&A(),$.current=E,K?(console.log("📦 Creating new user message box"),he.current=!1,i(re=>{const le=re.map(we=>({...we,isPending:!1})),ge=ce?new Date(parseInt(ce)):new Date,ve=`user-${ge.getTime()}`;Q.current=ve;const _e={id:ve,sender:"user",text:q.text,timestamp:ge,isPending:!N,segments:[{messageId:E,text:q.text,isFinal:N}]};return console.log(`➕ Created new message box: ${ve}`),N||se(),[...le,_e]})):H?(console.log("📝 Filling existing empty message box"),he.current=!1,Q.current=H,i(re=>re.map(le=>le.id===H?(J(),{...le,text:q.text,isPending:!N,segments:[{messageId:E,text:q.text,isFinal:N}]}):le)),N||se()):(console.log("📝 Appending new conversation turn to existing message box"),i(re=>re.map(le=>{if(le.id===Q.current){const ge=le.segments?le.segments.map(we=>({...we,isFinal:!0})):[];ge.push({messageId:E,text:q.text,isFinal:N});const ve=ge.map(we=>we.text).join(" "),_e=!N;return _e&&se(),{...le,text:ve,segments:ge,isPending:_e}}return le})))):(console.log(`🔄 Updating existing segment for ${E}, isFinal: ${N}`),i(re=>re.map(le=>{if(le.id===Q.current){const ge=le.segments||[],ve=ge.findIndex(be=>be.messageId===E);let _e;ve>=0?_e=ge.map(be=>be.messageId===E?{...be,text:q.text,isFinal:N}:be):(console.warn(`📝 Segment ${E} not found, adding as new segment`),_e=[...ge,{messageId:E,text:q.text,isFinal:N}]);const we=_e.map(be=>be.text).join(" "),Re=!_e.every(be=>be.isFinal);return Re&&se(),console.log(`📝 Updated message ${le.id} with text: "${we}", isPending: ${Re}`),{...le,text:we,segments:_e,isPending:Re}}return le})))},Z=o.length===0;return Y.jsxs("div",{className:gn["simple-chat"],children:[Z?Y.jsx(Y.Fragment,{}):Y.jsxs("div",{ref:v,className:gn["messages-container"],children:[o.map(q=>q.sender==="bot"&&d[q.id]&&d[q.id].length>0?Y.jsx("div",{className:gn["bot-message-group"],children:Y.jsxs("div",{className:`${gn.message} ${gn.bot}`,children:[Y.jsx("div",{className:gn["message-icon"],children:Y.jsx("img",{src:r1,alt:"",width:"16",height:"16"})}),Y.jsxs("div",{className:gn["bot-content-wrapper"],children:[Y.jsx(T6,{toolCalls:d[q.id],isVisible:!0,isActive:!1}),q.visualData&&q.visualData.description&&Y.jsx("div",{className:gn["tool-description"],dangerouslySetInnerHTML:{__html:q.visualData.description}}),q.visualData&&Y.jsxs("div",{className:gn["visual-components"],children:[q.visualData.chartData&&Y.jsx("div",{className:gn["chart-container"],children:Y.jsx(u2,{options:q.visualData.chartData})}),q.visualData.singleStat&&Y.jsx("div",{className:gn["single-stat-container"],children:Y.jsx(d2,{metric:q.visualData.singleStat.metric,value:q.visualData.singleStat.value})}),q.visualData.tableData&&Y.jsx("div",{className:gn["table-container"],children:Y.jsx(h2,{data:q.visualData.tableData})})]}),Y.jsxs("div",{className:gn["message-bubble"],children:[q.isInterrupted?Y.jsx("span",{className:gn["spoken-text"],children:q.text}):q.spokenText!==void 0?Y.jsxs(Y.Fragment,{children:[Y.jsx("span",{className:gn["spoken-text"],children:q.spokenText}),Y.jsx("span",{className:gn["unspoken-text"],children:q.text.substring(q.spokenText.length)})]}):q.text,q.isStreaming&&Y.jsx("span",{className:gn["streaming-cursor"]},`cursor-${q.id}`)]})]})]})},q.id):q.isVisualOnly&&q.visualData?Y.jsx("div",{className:gn["bot-message-group"],children:Y.jsxs("div",{className:`${gn.message} ${gn.bot}`,children:[Y.jsx("div",{className:gn["message-icon"],children:Y.jsx("img",{src:r1,alt:"",width:"16",height:"16"})}),Y.jsxs("div",{className:gn["bot-content-wrapper"],children:[q.visualData.description&&Y.jsx("div",{className:gn["tool-description"],dangerouslySetInnerHTML:{__html:q.visualData.description}}),Y.jsxs("div",{className:gn["visual-components"],children:[q.visualData.chartData&&Y.jsx("div",{className:gn["chart-container"],children:Y.jsx(u2,{options:q.visualData.chartData})}),q.visualData.singleStat&&Y.jsx("div",{className:gn["single-stat-container"],children:Y.jsx(d2,{metric:q.visualData.singleStat.metric,value:q.visualData.singleStat.value})}),q.visualData.tableData&&Y.jsx("div",{className:gn["table-container"],children:Y.jsx(h2,{data:q.visualData.tableData})})]})]})]})},q.id):Y.jsx("div",{children:Y.jsxs("div",{className:`${gn.message} ${gn[q.sender]}`,children:[q.sender==="bot"&&Y.jsx("div",{className:gn["message-icon"],children:Y.jsx("img",{src:r1,alt:"",width:"16",height:"16"})}),Y.jsxs("div",{className:`${gn["message-bubble"]} ${q.isPending?gn.pending:""} ${q.text==="inaudible"?gn.inaudible:""}`,children:[q.isPending&&!q.text?Y.jsx("div",{className:gn["pending-message"],children:Y.jsxs("span",{className:gn["loading-dots"],children:[Y.jsx("span",{}),Y.jsx("span",{}),Y.jsx("span",{})]})}):q.sender==="bot"&&q.isInterrupted?Y.jsx("span",{className:gn["spoken-text"],children:q.text}):q.sender==="bot"&&q.spokenText!==void 0?Y.jsxs(Y.Fragment,{children:[Y.jsx("span",{className:gn["spoken-text"],children:q.spokenText}),Y.jsx("span",{className:gn["unspoken-text"],children:q.text.substring(q.spokenText.length)})]}):q.text,q.isStreaming&&Y.jsx("span",{className:gn["streaming-cursor"]},`cursor-${q.id}`)]})]})},q.id)),y&&Y.jsxs("div",{className:`${gn.message} ${gn.bot}`,children:[Y.jsx("div",{className:gn["message-icon"],children:Y.jsx("img",{src:r1,alt:"",width:"16",height:"16"})}),Y.jsx(T6,{toolCalls:r,isVisible:!0,isActive:!0})]}),Y.jsx("div",{style:{height:"100px"}})]}),B&&Y.jsx("div",{className:gn["connecting-pill"],children:Y.jsx("span",{children:"Waiting for Genius..."})}),Y.jsx(M8,{message:O,isVisible:ee})]})}const li={"bottom-bar-container":"genius-sdk__BottomBar-module__bottom-bar-container___BGRI7","bottom-bar-glow":"genius-sdk__BottomBar-module__bottom-bar-glow___A493n",speaking:"genius-sdk__BottomBar-module__speaking___RmtZb","fade-out":"genius-sdk__BottomBar-module__fade-out___wxLht","glow-bar":"genius-sdk__BottomBar-module__glow-bar___V3Qwb","bottom-bar":"genius-sdk__BottomBar-module__bottom-bar___XaxVJ","bar-content":"genius-sdk__BottomBar-module__bar-content___6OsEK","bar-button":"genius-sdk__BottomBar-module__bar-button___iPlFP","attachment-container":"genius-sdk__BottomBar-module__attachment-container___0Kbir","waveform-send-container":"genius-sdk__BottomBar-module__waveform-send-container___HvkWS","microphone-icon-container":"genius-sdk__BottomBar-module__microphone-icon-container___qgstN",disabled:"genius-sdk__BottomBar-module__disabled___FdMpB","x-button":"genius-sdk__BottomBar-module__x-button___LrIa0","voice-container":"genius-sdk__BottomBar-module__voice-container___APP75",muted:"genius-sdk__BottomBar-module__muted___G3eus","recording-indicator":"genius-sdk__BottomBar-module__recording-indicator___FwtQv","mic-button":"genius-sdk__BottomBar-module__mic-button___klzpP","mic-tooltip":"genius-sdk__BottomBar-module__mic-tooltip___yr63U","speaker-tooltip":"genius-sdk__BottomBar-module__speaker-tooltip___J3r-b","speaker-button":"genius-sdk__BottomBar-module__speaker-button___QsWdq","tooltip-arrow":"genius-sdk__BottomBar-module__tooltip-arrow___pgGVw"};function E8(){const o=nm(),i=w3(),r=i==="ready",{isMuted:c,setIsMuted:d}=w8(),[f,y]=Ue.useState(!1),[x,v]=Ue.useState(!1),[S,j]=Ue.useState(!1);ki(Nt.UserStartedSpeaking,()=>{console.log("🎤 BottomBar: User started speaking - showing glow"),y(!0),v(!0)}),ki(Nt.UserStoppedSpeaking,()=>{console.log("🎤 BottomBar: User stopped speaking - starting fade out"),y(!1)});const B=Ue.useCallback(async()=>{try{try{if(navigator.mediaDevices&&typeof navigator.mediaDevices.enumerateDevices=="function"){const V=await navigator.mediaDevices.enumerateDevices();console.log("Active devices:",V.filter(ae=>ae.kind==="audioinput"))}}catch{}if(o&&!c)try{typeof o.enableMic=="function"&&await o.enableMic(!1)}catch(V){console.warn("Failed to mute microphone:",V)}o&&(i==="ready"||i==="connected"||i==="connecting")&&(console.log("🔌 Disconnecting RTVI client..."),await o.disconnect(),console.log("✅ RTVI client disconnected"));try{if(o&&o.transport){const V=o.transport;if(V.room&&typeof V.room.leave=="function"&&(console.log("🎤 Leaving Daily room..."),await V.room.leave()),V.room&&typeof V.room.destroy=="function"&&(console.log("🎤 Destroying Daily instance..."),await V.room.destroy()),V.room&&typeof V.room.setLocalAudio=="function"&&await V.room.setLocalAudio(!1),V.room&&typeof V.room.participants=="function"){const ae=V.room.participants();if(ae&&ae.local){const ie=ae.local.tracks;ie&&Object.values(ie).forEach(U=>{U&&U.persistentTrack&&(U.persistentTrack.stop(),console.log("🎤 Stopped Daily track"))})}}}}catch(V){console.warn("Error stopping media streams:",V)}await new Promise(V=>setTimeout(V,100));const O=window.sendConversationHistory;O&&typeof O=="function"&&O(),window.postMessage({type:"CLOSE_VOICE_ASSISTANT"},"*")}catch(O){console.error("❌ Error during close:",O),window.postMessage({type:"CLOSE_VOICE_ASSISTANT"},"*")}},[o,i,c]),ee=Ue.useCallback(async()=>{if(!o||!r){console.warn("Cannot toggle mute: client not ready");return}const O=!c;console.log(`🎤 BottomBar: Toggling mute from ${c} to ${O}`);try{let V=!1;if(typeof o.enableMic=="function"&&(await o.enableMic(!O),console.log(`✅ RTVI client.enableMic(${!O})`),V=!0),!V&&o.transport){const ae=o.transport;typeof ae.setLocalAudio=="function"?(await ae.setLocalAudio(!O),console.log(`✅ transport.setLocalAudio(${!O})`),V=!0):ae.room&&typeof ae.room.setLocalAudio=="function"&&(await ae.room.setLocalAudio(!O),console.log(`✅ transport.room.setLocalAudio(${!O})`),V=!0)}V||console.warn("⚠️ No mic control method found, but updating UI state"),d(O),console.log(`🎤 Microphone is now ${O?"MUTED":"UNMUTED"}`)}catch(V){console.error("Failed to toggle microphone:",V),d(O)}},[o,r,c,d]),ne=Ue.useCallback(async()=>{if(!o||!r){console.warn("Cannot toggle speaker: client not ready");return}const O=!S;console.log(`🔊 BottomBar: Toggling AI voice mute from ${S} to ${O}`);try{let V=!1;if(o.transport){const ae=o.transport;if(typeof ae.setBotAudio=="function"?(await ae.setBotAudio(!O),console.log(`✅ transport.setBotAudio(${!O})`),V=!0):ae.room&&typeof ae.room.setBotAudio=="function"?(await ae.room.setBotAudio(!O),console.log(`✅ transport.room.setBotAudio(${!O})`),V=!0):typeof ae.setRemoteAudio=="function"?(await ae.setRemoteAudio(!O),console.log(`✅ transport.setRemoteAudio(${!O})`),V=!0):ae.room&&typeof ae.room.setRemoteAudio=="function"&&(await ae.room.setRemoteAudio(!O),console.log(`✅ transport.room.setRemoteAudio(${!O})`),V=!0),!V&&ae.room&&typeof ae.room.updateParticipant=="function"&&typeof ae.room.participants=="function")try{const ie=ae.room.participants(),U=Object.values(ie).find(P=>P&&!P.local&&P.session_id);U&&(await ae.room.updateParticipant(U.session_id,{setAudio:!O}),console.log(`✅ transport.room.updateParticipant bot audio(${!O})`),V=!0)}catch(ie){console.log("Could not update bot participant:",ie)}}if(!V)try{document.querySelectorAll("audio, video").forEach(ie=>{ie&&typeof ie.muted<"u"&&(ie.muted=O,console.log(`✅ Muted ${ie.tagName} element: ${O}`),V=!0)}),(window.AudioContext||window.webkitAudioContext)&&console.log("📱 Web Audio API available for advanced control")}catch(ae){console.log("Web Audio control failed:",ae)}V||console.warn("⚠️ No AI voice control method found, but updating UI state. The mute state will be visual only."),j(O),console.log(`🔊 AI Voice is now ${O?"MUTED":"UNMUTED"}`)}catch(V){console.error("Failed to toggle AI voice:",V),j(O)}},[o,r,S]);return Y.jsxs("div",{className:li["bottom-bar-container"],children:[x&&Y.jsx("div",{className:`${li["bottom-bar-glow"]} ${f?li.speaking:li["fade-out"]}`,onAnimationEnd:()=>{f||v(!1)},children:Y.jsx("div",{className:li["glow-bar"]})}),Y.jsx("div",{className:li["bottom-bar"],children:Y.jsxs("div",{className:li["bar-content"],children:[Y.jsx("div",{className:li["attachment-container"],children:Y.jsx("button",{className:`${li["bar-button"]} ${li["x-button"]}`,onClick:B,children:Y.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:Y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.250586 0.250586C0.584702 -0.0835288 1.12641 -0.0835288 1.46052 0.250586L5.98889 4.77895L10.5173 0.250586C10.8514 -0.0835288 11.3931 -0.0835288 11.7272 0.250586C12.0613 0.584702 12.0613 1.12641 11.7272 1.46052L7.19883 5.98889L11.7272 10.5173C12.0613 10.8514 12.0613 11.3931 11.7272 11.7272C11.3931 12.0613 10.8514 12.0613 10.5173 11.7272L5.98889 7.19883L1.46052 11.7272C1.12641 12.0613 0.584702 12.0613 0.250586 11.7272C-0.0835288 11.3931 -0.0835288 10.8514 0.250586 10.5173L4.77895 5.98889L0.250586 1.46052C-0.0835288 1.12641 -0.0835288 0.584702 0.250586 0.250586Z",fill:"#F04438"})})})}),Y.jsxs("div",{className:li["voice-container"],children:[Y.jsx("div",{className:`${li["waveform-send-container"]} ${r?"":li.disabled} ${S?li.muted:""}`,onClick:r?ne:void 0,children:Y.jsxs("button",{className:`${li["bar-button"]} ${li["speaker-button"]} ${S?li.muted:""}`,disabled:!r,children:[S?Y.jsx("svg",{width:"15",height:"16",viewBox:"0 0 22 19",fill:"none",children:Y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 2.70711L6.17574 5.53138C6.16402 5.5431 6.15202 5.55517 6.13972 5.56753C6.00579 5.70218 5.83714 5.87173 5.63079 5.99818C5.45185 6.10784 5.25676 6.18865 5.05268 6.23764C4.81735 6.29414 4.57821 6.2935 4.3883 6.29299C4.37086 6.29295 4.35383 6.2929 4.33726 6.2929H2.60001C2.30348 6.2929 2.14122 6.29368 2.02464 6.3032C2.02 6.30358 2.0156 6.30397 2.01145 6.30435C2.01107 6.3085 2.01069 6.31289 2.01031 6.31753C2.00078 6.43412 2.00001 6.59637 2.00001 6.8929V11.6929C2.00001 11.9894 2.00078 12.1517 2.01031 12.2683C2.01069 12.2729 2.01107 12.2773 2.01145 12.2815C2.0156 12.2818 2.02 12.2822 2.02464 12.2826C2.14122 12.2921 2.30348 12.2929 2.60001 12.2929H4.33726C4.35383 12.2929 4.37086 12.2929 4.3883 12.2928C4.57821 12.2923 4.81735 12.2917 5.05268 12.3482C5.25676 12.3972 5.45185 12.478 5.63079 12.5876C5.83715 12.7141 6.00579 12.8836 6.13972 13.0183C6.15202 13.0306 6.16403 13.0427 6.17574 13.0544L9 15.8787V2.70711ZM9.38232 0.00463216C9.86099 -0.0330405 10.3288 0.160721 10.6406 0.525836C10.9199 0.852783 10.9642 1.24604 10.9811 1.43693C11.0001 1.6509 11 1.91666 11 2.18703C11 2.19944 11 2.21185 11 2.22427L11 16.3988C11 16.6691 11.0001 16.9349 10.9811 17.1489C10.9642 17.3398 10.9199 17.733 10.6406 18.06C10.3288 18.4251 9.86099 18.6188 9.38232 18.5812C8.95368 18.5474 8.64424 18.3007 8.4973 18.1777C8.33259 18.0398 8.1447 17.8519 7.95355 17.6607L4.76153 14.4686C4.6689 14.376 4.6225 14.3299 4.58738 14.2979C4.58646 14.2971 4.58557 14.2963 4.58472 14.2955C4.58358 14.2954 4.58238 14.2954 4.58114 14.2953C4.53365 14.2931 4.46826 14.2929 4.33726 14.2929L2.56812 14.2929C2.31574 14.2929 2.06994 14.293 1.86178 14.276C1.63318 14.2573 1.36345 14.2132 1.09202 14.0749C0.715699 13.8832 0.409738 13.5772 0.217992 13.2009C0.0796948 12.9295 0.0356272 12.6597 0.0169504 12.4311C-5.6861e-05 12.223 -2.74161e-05 11.9772 2.50544e-06 11.7248L5.12804e-06 6.8929C5.12804e-06 6.88226 3.81674e-06 6.87162 2.50544e-06 6.861C-2.74161e-05 6.60862 -5.6861e-05 6.36283 0.0169504 6.15467C0.0356272 5.92608 0.0796948 5.65634 0.217992 5.38492C0.409739 5.0086 0.7157 4.70263 1.09202 4.51089C1.36345 4.37259 1.63318 4.32852 1.86178 4.30985C2.06993 4.29284 2.31572 4.29287 2.56811 4.2929C2.57873 4.2929 2.58936 4.2929 2.60001 4.2929H4.33726C4.46826 4.2929 4.53365 4.29266 4.58114 4.29049C4.58238 4.29043 4.58358 4.29038 4.58472 4.29032C4.58557 4.28955 4.58646 4.28875 4.58738 4.28791C4.6225 4.25586 4.6689 4.2098 4.76153 4.11717L7.92721 0.951479C7.93599 0.942698 7.94477 0.93392 7.95354 0.925149C8.1447 0.733934 8.33259 0.545984 8.4973 0.408092C8.64424 0.285073 8.95368 0.0383667 9.38232 0.00463216ZM14.2929 5.58579C14.6834 5.19527 15.3166 5.19527 15.7071 5.58579L18 7.87869L20.2929 5.58579C20.6834 5.19527 21.3166 5.19527 21.7071 5.58579C22.0976 5.97632 22.0976 6.60948 21.7071 7.00001L19.4142 9.2929L21.7071 11.5858C22.0976 11.9763 22.0976 12.6095 21.7071 13C21.3166 13.3905 20.6834 13.3905 20.2929 13L18 10.7071L15.7071 13C15.3166 13.3905 14.6834 13.3905 14.2929 13C13.9024 12.6095 13.9024 11.9763 14.2929 11.5858L16.5858 9.2929L14.2929 7.00001C13.9024 6.60948 13.9024 5.97632 14.2929 5.58579Z",fill:"#F04438"})}):Y.jsx("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",children:Y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7 2.31609L5.28369 4.7324C5.27367 4.74243 5.26339 4.75275 5.25287 4.76333C5.13828 4.87853 4.994 5.02359 4.81745 5.13178C4.66436 5.2256 4.49745 5.29473 4.32285 5.33665C4.12151 5.38499 3.91692 5.38444 3.75444 5.38401C3.73951 5.38397 3.72495 5.38393 3.71077 5.38393H2.22445C1.97075 5.38393 1.83194 5.38459 1.73219 5.39274C1.72822 5.39307 1.72446 5.39339 1.72091 5.39372C1.72058 5.39727 1.72026 5.40103 1.71993 5.405C1.71178 5.50475 1.71112 5.64356 1.71112 5.89726V10.0039C1.71112 10.2576 1.71178 10.3964 1.71993 10.4962C1.72026 10.5002 1.72058 10.5039 1.72091 10.5075C1.72446 10.5078 1.72822 10.5081 1.73219 10.5084C1.83194 10.5166 1.97075 10.5173 2.22445 10.5173H3.71077C3.72495 10.5173 3.73951 10.5172 3.75444 10.5172C3.91692 10.5167 4.12151 10.5162 4.32285 10.5645C4.49745 10.6065 4.66436 10.6756 4.81745 10.7694C4.994 10.8776 5.13829 11.0227 5.25287 11.1379C5.2634 11.1484 5.27367 11.1588 5.28369 11.1688L7.7 13.5851V2.31609ZM8.02709 0.00396307C8.43663 -0.028268 8.83684 0.137506 9.10364 0.449882C9.34254 0.729603 9.38049 1.06606 9.39496 1.22937C9.41119 1.41243 9.41115 1.63981 9.41112 1.87113C9.41112 1.88174 9.41112 1.89236 9.41112 1.90299L9.41112 14.0301C9.41115 14.2614 9.41119 14.4888 9.39496 14.6718C9.38049 14.8351 9.34254 15.1716 9.10364 15.4513C8.83684 15.7637 8.43663 15.9295 8.02709 15.8972C7.66037 15.8684 7.39563 15.6573 7.26991 15.552C7.129 15.4341 6.96824 15.2733 6.8047 15.1097L4.07375 12.3787C3.9945 12.2995 3.9548 12.2601 3.92476 12.2326C3.92397 12.2319 3.92321 12.2312 3.92248 12.2306C3.9215 12.2305 3.92048 12.2305 3.91942 12.2304C3.87879 12.2286 3.82285 12.2284 3.71077 12.2284L2.19717 12.2284C1.98124 12.2284 1.77095 12.2284 1.59285 12.2139C1.39728 12.1979 1.16651 12.1602 0.934287 12.0419C0.61232 11.8778 0.350554 11.6161 0.186504 11.2941C0.0681833 11.0619 0.030481 10.8311 0.014502 10.6355C-4.86477e-05 10.4574 -2.3456e-05 10.2471 2.14354e-06 10.0312L4.38733e-06 5.89726C4.38733e-06 5.88815 3.26543e-06 5.87906 2.14354e-06 5.86997C-2.3456e-05 5.65404 -4.86477e-05 5.44375 0.014502 5.26566C0.030481 5.07009 0.0681833 4.83932 0.186504 4.6071C0.350554 4.28513 0.612321 4.02337 0.934287 3.85932C1.16651 3.74099 1.39728 3.70329 1.59285 3.68731C1.77094 3.67276 1.98123 3.67279 2.19716 3.67281C2.20625 3.67281 2.21534 3.67282 2.22445 3.67282H3.71077C3.82285 3.67282 3.87879 3.67261 3.91942 3.67075C3.92048 3.6707 3.9215 3.67066 3.92248 3.67061C3.92321 3.66995 3.92397 3.66926 3.92476 3.66854C3.9548 3.64112 3.9945 3.60171 4.07375 3.52246L6.78217 0.814043C6.78968 0.806531 6.79719 0.799021 6.80469 0.791516C6.96824 0.627921 7.12899 0.46712 7.26991 0.349145C7.39563 0.243896 7.66037 0.0328248 8.02709 0.00396307ZM12.1258 3.82666C12.5134 3.55633 13.0467 3.65136 13.317 4.03891C14.0905 5.14789 14.5443 6.49753 14.5443 7.95059C14.5443 9.40365 14.0905 10.7533 13.317 11.8623C13.0467 12.2498 12.5134 12.3449 12.1258 12.0745C11.7383 11.8042 11.6432 11.2709 11.9136 10.8834C12.4933 10.0522 12.8332 9.04238 12.8332 7.95059C12.8332 6.85881 12.4933 5.84897 11.9136 5.01783C11.6432 4.63029 11.7383 4.09698 12.1258 3.82666Z",fill:"#5F5F5F"})}),Y.jsxs("div",{className:li["speaker-tooltip"],children:[Y.jsx("span",{children:"Mute AI Voice"}),Y.jsx("div",{className:li["tooltip-arrow"]})]})]})}),Y.jsxs("div",{className:`${li["microphone-icon-container"]} ${r?"":li.disabled} ${c?li.muted:""}`,onClick:r?ee:void 0,children:[Y.jsxs("button",{className:`${li["bar-button"]} ${li["mic-button"]} ${c?li.muted:""}`,disabled:!r,children:[c?Y.jsx("svg",{width:"14",height:"19",viewBox:"0 0 22 22",fill:"none",children:Y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L13.8295 12.4128C13.844 12.4272 13.858 12.442 13.8714 12.4572L15.8907 14.4765C16.5892 13.4957 17 12.2958 17 11V9C17 8.44772 17.4477 8 18 8C18.5523 8 19 8.44772 19 9V11C19 12.8487 18.3729 14.551 17.3199 15.9056L21.7071 20.2929C22.0976 20.6834 22.0976 21.3166 21.7071 21.7071C21.3166 22.0976 20.6834 22.0976 20.2929 21.7071L15.9056 17.3199C14.7991 18.18 13.4607 18.756 12 18.9381V20H15C15.5523 20 16 20.4477 16 21C16 21.5523 15.5523 22 15 22H7C6.44772 22 6 21.5523 6 21C6 20.4477 6.44772 20 7 20H10V18.9381C6.05369 18.446 3 15.0796 3 11V9C3 8.44772 3.44772 8 4 8C4.55228 8 5 8.44772 5 9V11C5 14.3137 7.68629 17 11 17C12.2958 17 13.4957 16.5892 14.4765 15.8907L13.0318 14.446C12.4364 14.7977 11.7414 15 11 15C8.79086 15 7 13.2091 7 11V8.41421L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683417 0.292893 0.292893ZM9 10.4142V11C9 12.1046 9.89543 13 11 13C11.1793 13 11.353 12.9765 11.5182 12.9324L9 10.4142ZM7.41681 2.22066C8.07033 0.906528 9.42838 1.49012e-08 11 1.49012e-08C13.2091 1.49012e-08 15 1.79086 15 4V8.4C15 8.95229 14.5523 9.4 14 9.4C13.4477 9.4 13 8.95229 13 8.4V4C13 2.89543 12.1046 2 11 2C10.2164 2 9.53616 2.45051 9.2076 3.11121C8.96168 3.60572 8.36144 3.80725 7.86693 3.56133C7.37242 3.31541 7.17089 2.71517 7.41681 2.22066Z",fill:"#F04438"})}):Y.jsx("svg",{width:"14",height:"19",viewBox:"0 0 14 19",fill:"none",children:Y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.42222 3.42222C3.42222 1.53218 4.9544 0 6.84444 0C8.73449 0 10.2667 1.53218 10.2667 3.42222V9.41111C10.2667 11.3012 8.73449 12.8333 6.84444 12.8333C4.9544 12.8333 3.42222 11.3012 3.42222 9.41111V3.42222ZM6.84444 1.71111C5.89942 1.71111 5.13333 2.4772 5.13333 3.42222V9.41111C5.13333 10.3561 5.89942 11.1222 6.84444 11.1222C7.78947 11.1222 8.55556 10.3561 8.55556 9.41111V3.42222C8.55556 2.4772 7.78947 1.71111 6.84444 1.71111ZM0.855556 6.84444C1.32807 6.84444 1.71111 7.22749 1.71111 7.7V9.41111C1.71111 12.2462 4.00938 14.5444 6.84444 14.5444C9.67951 14.5444 11.9778 12.2462 11.9778 9.41111V7.7C11.9778 7.22749 12.3608 6.84444 12.8333 6.84444C13.3058 6.84444 13.6889 7.22749 13.6889 7.7V9.41111C13.6889 12.9015 11.0763 15.7816 7.7 16.2026V17.1111H10.2667C10.7392 17.1111 11.1222 17.4942 11.1222 17.9667C11.1222 18.4392 10.7392 18.8222 10.2667 18.8222H3.42222C2.94971 18.8222 2.56667 18.4392 2.56667 17.9667C2.56667 17.4942 2.94971 17.1111 3.42222 17.1111H5.98889V16.2026C2.6126 15.7816 0 12.9015 0 9.41111V7.7C0 7.22749 0.383045 6.84444 0.855556 6.84444Z",fill:"#5F5F5F"})}),Y.jsxs("div",{className:li["mic-tooltip"],children:[Y.jsx("span",{children:c?"Turn On Microphone":"Mute in noisy places."}),Y.jsx("div",{className:li["tooltip-arrow"]})]})]}),r&&!c&&f&&Y.jsx("div",{className:li["recording-indicator"],children:Y.jsxs("svg",{width:"11",height:"14",viewBox:"0 0 11 14",fill:"none",children:[Y.jsxs("rect",{x:"0",y:"4",width:"2",height:"6",rx:"1",fill:"#1B85FF",children:[Y.jsx("animate",{attributeName:"height",values:"6;10;6",dur:"1.2s",repeatCount:"indefinite",begin:"0s"}),Y.jsx("animate",{attributeName:"y",values:"4;2;4",dur:"1.2s",repeatCount:"indefinite",begin:"0s"})]}),Y.jsxs("rect",{x:"4.5",y:"5",width:"2",height:"4",rx:"1",fill:"#1B85FF",children:[Y.jsx("animate",{attributeName:"height",values:"4;8;4",dur:"1.2s",repeatCount:"indefinite",begin:"0.3s"}),Y.jsx("animate",{attributeName:"y",values:"5;3;5",dur:"1.2s",repeatCount:"indefinite",begin:"0.3s"})]}),Y.jsxs("rect",{x:"9",y:"1",width:"2",height:"12",rx:"1",fill:"#1B85FF",children:[Y.jsx("animate",{attributeName:"height",values:"12;14;12",dur:"1.2s",repeatCount:"indefinite",begin:"0.6s"}),Y.jsx("animate",{attributeName:"y",values:"1;0;1",dur:"1.2s",repeatCount:"indefinite",begin:"0.6s"})]})]})})]})]})]})})]})}const D8={app:"genius-sdk__App-module__app___ksh-Z"};function O8(){const{initialHistory:o}=k6(),{sendDataToParent:i}=M6(o);return window.sendConversationHistory=i,Y.jsxs("div",{className:D8.app,children:[Y.jsx(T8,{}),Y.jsx(A8,{}),Y.jsx(E8,{}),Y.jsx(C3,{})]})}function A6(){return Y.jsx(S8,{children:Y.jsx(k8,{children:Y.jsx(C8,{children:Y.jsx(O8,{})})})})}const Mf=o=>{const i=o.toLowerCase();return i.includes("rate")||i.includes("percentage")||i.includes("percent")?"percentage":i.includes("volume")||i.includes("count")||i.includes("total")||i.includes("amount")||i.includes("transaction")||i.includes("order")||i.includes("number")||i.includes("quantity")?"volume":i.includes("latency")||i.includes("time")||i.includes("duration")?"latency":"default"},Ul=(o,i)=>{switch(i){case"percentage":return`${o}%`;case"volume":return o>=1e7?`${(o/1e7).toFixed(1)} Cr`:o>=1e5?`${(o/1e5).toFixed(1)} L`:o>=1e3?`${(o/1e3).toFixed(1)} K`:o.toLocaleString("en-IN");case"latency":return`${o.toFixed(2)} s`;default:return o.toString()}},Ux=(o,i,r)=>{const c=[...o].sort((B,ee)=>new Date(B[i]).getTime()-new Date(ee[i]).getTime()),d=Object.keys(o[0]).filter(B=>B!==i&&B!==r);if(d.length===0){const B=[...new Set(c.map(ne=>ne[i]))],ee=B.map(ne=>{const O=c.find(V=>V[i]===ne);return O?Number(O[r]||0):null});return{hasDimensions:!1,series:[{type:"line",name:r.replace(/_/g," "),data:ee,connectNulls:!0}],categories:B.map(ne=>new Date(ne).toLocaleString([],{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}))}}const f=d[0],y=c.reduce((B,ee)=>{const ne=ee[f];return B[ne]||(B[ne]=[]),B[ne].push(ee),B},{}),x=[...new Set(c.map(B=>B[i]))],v=["#7856FF","#FEBBB2","#72BEF4","#1E90FF","#E377C2","#7FE1D8","#CB80DC","#5CB7AF","#1F77B4","#9467BD","#0F7EA0","#17BECF","#7F7F7F","#BCBD22","#A0872C","#006400","#B3596E","#4B0082","#4B6D8C"],S=Object.entries(y).map(([B,ee],ne)=>{const O=new Map;ee.forEach(ae=>{O.set(ae[i],ae[r])});const V=x.map(ae=>{const ie=O.get(ae);return ie!==void 0?Number(ie):null});return{type:"line",name:B,color:v[ne%v.length],data:V,connectNulls:!0}}),j=x.map(B=>new Date(B).toLocaleString([],{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}));return{hasDimensions:!0,series:S,categories:j}},E6=()=>{try{const o=localStorage.getItem("login")||"";return o?`Basic ${btoa(o+":")}`:(console.warn("No token found in localStorage"),"")}catch(o){return console.error("Error getting auth header:",o),""}},j8=({config:o={}})=>{const{onClose:i,onMessage:r,placeholder:c="Ask Genius",welcomeMessage:d="Your go-to for all payment related inquiries!",suggestions:f=["Today's Success Rate","Last Week Volume","Today's Success Rate","Weekly Updates"],endpoint:y="https://genius.juspay.in/api/v3/analytics/"}=o,[x,v]=Ue.useState(""),[S,j]=Ue.useState([]),[B,ee]=Ue.useState(!1),[ne,O]=Ue.useState(!1),[V,ae]=Ue.useState(!1),[ie,U]=Ue.useState(!1),[P,X]=Ue.useState(!1),[Q,$]=Ue.useState(""),[I,he]=Ue.useState(!1),[oe,te]=Ue.useState(null),[z,W]=Ue.useState(""),[G,T]=Ue.useState([]),[_,A]=Ue.useState(!1),[L,J]=Ue.useState(null),[se,R]=Ue.useState(!1),[ue,ye]=Ue.useState(null),[g,C]=Ue.useState(!1),k=Ue.useRef(null),Z=Ue.useRef(null),q=Ue.useRef(null),w=Ue.useRef(null),E=Ue.useRef(null),N=Ue.useRef(null),ce=Ue.useRef(!1),D=Ue.useRef(0),H=Ue.useRef(null);Un.setOptions({breaks:!0,gfm:!0,pedantic:!1});const K=Ue.useCallback(Ne=>{Ne.stopPropagation();const ut=Ne.currentTarget,{scrollTop:lt,scrollHeight:Fe,clientHeight:ft}=ut;Fe>ft?(Ne.deltaY<0&<===0||Ne.deltaY>0&<+ft>=Fe)&&Ne.preventDefault():Ne.preventDefault()},[]);Ue.useEffect(()=>{const Ne=document.body,ut=Ne.style.overflow,lt=Ne.style.paddingRight;Ne.style.overflow="hidden";const Fe=window.innerWidth-document.documentElement.clientWidth;Fe>0&&(Ne.style.paddingRight=`${Fe}px`);const ft=ot=>{const Ot=ot.target,Bt=w.current;Bt&&!Bt.contains(Ot)&&(ot.preventDefault(),ot.stopPropagation())};return document.addEventListener("wheel",ft,{passive:!1}),()=>{Ne.style.overflow=ut,Ne.style.paddingRight=lt,document.removeEventListener("wheel",ft)}},[]),Ue.useEffect(()=>{if(P){const Ne=document.body,ut=Ne.style.overflow;return Ne.style.overflow="hidden",()=>{Ne.style.overflow=ut}}},[P]);const re=Ue.useCallback(()=>{i&&i()},[i]);Ue.useEffect(()=>{const Ne=ut=>{ut.key==="Escape"&&re()};return document.addEventListener("keydown",Ne),()=>{document.removeEventListener("keydown",Ne),H.current&&clearTimeout(H.current)}},[re]),Ue.useEffect(()=>{(async()=>{try{await Br.init(),await le()}catch(ut){console.error("Failed to initialize chat history database:",ut)}})()},[]),Ue.useEffect(()=>{if(!I&&L){const Ne=setTimeout(()=>{const{srOutput:ut,srPayload:lt,userEmail:Fe}=L,ft=(Date.now()+Math.random()).toString();j(ot=>[...ot,{id:ft,content:"",role:"assistant",timestamp:new Date,srDropRCA:!0,srAnalysisData:ut,srAnalysisPayload:lt,userEmail:Fe}]),J(null)},100);return()=>clearTimeout(Ne)}},[I,L]);const le=async()=>{try{A(!0);const Ne=await Br.loadSessions();console.log("Loaded chat sessions:",Ne),T(Ne)}catch(Ne){console.error("Failed to load chat sessions:",Ne)}finally{A(!1)}},ge=async Ne=>{try{console.log("Loading session messages for:",Ne);const ut=await Br.loadMessages(Ne);console.log("Raw messages from DB:",ut);const lt=[];for(const Fe of ut)if(Fe.role==="user"){const ft={id:Fe.id,content:Fe.content,role:Fe.role,timestamp:Fe.timestamp,isFromHistory:!0};lt.push(ft)}else if(Fe.role==="assistant"){if(Fe.finalOutputData){console.log("Processing finalOutputData:",Fe.finalOutputData);const ft=Fe.finalOutputData;if(ft.responses&&Array.isArray(ft.responses)){for(const ot of ft.responses)if(ot.payload_type==="q_api"&&ot.output)try{const Ot=JSON.parse(ot.output),Bt=ot.input?Ol(ot.input,"q_api"):"";if(Ot.length>0){const Vt=Ot[0],It=Object.keys(Vt).find(_t=>_t.includes("_time"));if(It){const mt=Object.keys(Vt).filter(ht=>ht!==It&&!["gateway","payment_gateway","dimension","group","category"].includes(ht))[0];if(mt){const ht=Ux(Ot,It,mt),bt={chart:{type:"line"},title:{text:`${mt.replace(/_/g," ")}`},credits:{enabled:!1},xAxis:{categories:ht.categories,labels:{formatter:function(){const St=String(this.value),Et=new Date(St);return Et.getHours()===0&&Et.getMinutes()===0?`${Et.getDate()}. ${Et.toLocaleString("default",{month:"short"})}`:St.split(", ")[1]},style:{color:"#9aa0a6"},rotation:0,align:"center"}},yAxis:{title:{text:""},gridLineColor:"#e0e0e0",gridLineDashStyle:"Dash",labels:{formatter:function(){var Dt;const St=((Dt=this.chart.options.title)==null?void 0:Dt.text)||"",Et=Mf(St.replace(/ /g,"_"));return Ul(Number(this.value),Et)},style:{color:"#9aa0a6"}}},legend:{enabled:ht.hasDimensions,align:"left",verticalAlign:"top",layout:"horizontal",y:10,itemStyle:{fontSize:"12px"},symbolRadius:0,symbolHeight:0,symbolWidth:0,useHTML:!0,labelFormatter:function(){const St=this.color||"#000",Et="name"in this?this.name:"";return'<span style="display: inline-flex; align-items: center;"><span style="background-color: '+St+'; width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 5px;"></span>'+Et+"</span>"}},plotOptions:{series:{marker:{enabled:!1,symbol:"circle",radius:4,states:{hover:{enabled:!0,radius:5}}},states:{hover:{lineWidthPlus:1}}}},tooltip:{shared:!0,useHTML:!0,backgroundColor:"rgba(255, 255, 255, 0)",borderWidth:0,shadow:!1,style:{padding:"0px"},formatter:function(){var yt;const St=Mf(mt),Et=Pt=>Pt.replace(/_/g," ").replace(/\b\w/g,At=>At.toUpperCase()),Dt=Pt=>{const At=new Date(Pt),Ct=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],pt=["January","February","March","April","May","June","July","August","September","October","November","December"],vt=Ct[At.getDay()],wt=At.getDate(),vn=pt[At.getMonth()],an=At.getFullYear();let Ut=At.getHours();const Rt=At.getMinutes(),Qt=Ut>=12?"PM":"AM";Ut=Ut%12,Ut=Ut||12;const sn=Rt<10?"0"+Rt:Rt;return`${vt}, ${wt} ${vn}, ${an} ${Ut}:${sn} ${Qt}`};let Mt='<div style="border-radius: 12px; border: 1px solid #EAECF0; background: #FFF; box-shadow: 0px 6px 15px 0px rgba(0, 0, 0, 0.15), 0px 3px 2px -5px rgba(0, 0, 0, 0.04); padding: 16px;">';Mt+='<div style="display: flex; font-family: Inter, sans-serif; gap: 16px; align-items: stretch;">';const Ft=this.points?this.points[0].color:this.color||"#3BA974";if(Mt+=`<div style="background:${Ft}; width: 4px; flex-shrink: 0; border-radius: 4px; align-self: stretch;"></div>`,Mt+='<div style="display: flex; flex-direction: column; gap: 12px;">',Mt+='<div style="display: flex; flex-direction: column; gap: 4px;">',Mt+=`<div style="color: #525252; font-feature-settings: 'clig' off, 'liga' off; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 600; line-height: 18px;">${Et(mt)}</div>`,Mt+="</div>",Mt+='<div class="flex flex-col gap-1" style="display: flex; flex-direction: column; gap: 6px;">',this.points)[...this.points].sort((At,Ct)=>(Ct.y||0)-(At.y||0)).forEach(At=>{var an,Ut;const Ct=Ul(At.y||0,St),pt=((an=At.series)==null?void 0:an.name)==="Overall",vt=pt?"bg-jp-2-gray-30 text-jp-2-gray-700":"bg-jp-2-green-50 text-jp-2-green-200",wt=pt?"#E8E8E8":"#D4F4E5",vn=pt?"#424242":"#008242";Mt+='<div class="flex items-center" style="display: flex; align-items: center;">',Mt+=`<div class="${vt} rounded p-1 font-semibold mr-1.5 my-1" style="background-color: ${wt}; color: ${vn}; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${Ct}</div>`,Mt+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((Ut=At.series)==null?void 0:Ut.name)||""}</div>`,Mt+="</div>"});else{const Pt=Ul(this.y||0,St);Mt+='<div class="flex items-center" style="display: flex; align-items: center;">',Mt+=`<div class="bg-jp-2-green-50 text-jp-2-green-200 rounded p-1 font-semibold mr-1.5 my-1" style="background-color: #D4F4E5; color: #008242; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${Pt}</div>`,Mt+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((yt=this.series)==null?void 0:yt.name)||""}</div>`,Mt+="</div>"}const kn=this.x?Dt(String(this.x)):"";return Mt+=`<div class="font-medium text-jp-2-gray-300" style="font-weight: 500; color: #9AA0A6; font-size: 12px; margin-top: 4px;">${kn}</div>`,Mt+="</div>",Mt+="</div>",Mt+="</div>",Mt+="</div>",Mt},xDateFormat:"%a, %d %B, %Y %H:%M"},series:ht.series};lt.push({id:`${Fe.id}-chart`,content:"",role:"assistant",timestamp:Fe.timestamp,description:Bt,chartData:bt,isFromHistory:!0})}}else if(Ot.length===1){const _t=Object.keys(Vt)[0];if(_t){const mt={metric:_t.replace(/_/g," "),value:Vt[_t]===null?"N/A":Vt[_t]};lt.push({id:`${Fe.id}-stat`,content:"",role:"assistant",timestamp:Fe.timestamp,description:Bt,singleStat:mt,isFromHistory:!0})}}else lt.push({id:`${Fe.id}-table`,content:"",role:"assistant",timestamp:Fe.timestamp,description:Bt,tableData:Ot,isFromHistory:!0})}}catch(Ot){console.error("Error parsing stored response output:",Ot)}}}if(!Fe.finalOutputData){if(Fe.chartData){const ft={id:`${Fe.id}-legacy-chart`,content:"",role:"assistant",timestamp:Fe.timestamp,chartData:Fe.chartData,description:Fe.description,isFromHistory:!0};lt.push(ft)}if(Fe.singleStat){const ft={id:`${Fe.id}-legacy-stat`,content:"",role:"assistant",timestamp:Fe.timestamp,singleStat:Fe.singleStat,description:Fe.description,isFromHistory:!0};lt.push(ft)}if(Fe.tableData){const ft={id:`${Fe.id}-legacy-table`,content:"",role:"assistant",timestamp:Fe.timestamp,tableData:Fe.tableData,description:Fe.description,isFromHistory:!0};lt.push(ft)}}if(Fe.content){const ft={id:Fe.id,content:Fe.content,role:Fe.role,timestamp:Fe.timestamp,isFromHistory:!0};lt.push(ft)}}console.log("Reconstructed messages:",lt),j(lt),$(Ne),X(!1)}catch(ut){console.error("Failed to load session messages:",ut)}},ve=async(Ne,ut,lt,Fe)=>{const ft=Fe||Q;if(ft)try{await Br.saveMessage(ft,Ne,ut,lt),await le()}catch(ot){console.error("Failed to save message to history:",ot)}},_e=()=>{if(!E.current||!q.current)return!0;const Ne=E.current.getBoundingClientRect();return q.current.getBoundingClientRect().top<=Ne.bottom},we=(Ne=!1)=>{!E.current||!q.current||(Ne||!ce.current||_e())&&(q.current.scrollIntoView({behavior:"smooth",block:"end"}),ce.current=!1,setTimeout(()=>{_e()&&C(!1)},500))},Ee=()=>{E.current&&(H.current&&clearTimeout(H.current),H.current=setTimeout(()=>{_e()?(ce.current=!1,C(!1)):(ce.current=!0,C(!0))},100))};Ue.useEffect(()=>{S.length>D.current&&(D.current===0||!ce.current)&&setTimeout(()=>we(),100),D.current=S.length},[S]),Ue.useEffect(()=>{if(V){U(!1);const Ne=localStorage.getItem("login")||"";Ne?(window.postMessage({type:"AUTH_TOKEN",token:Ne},"*"),console.log("Sent auth token to Voice Assistant")):console.warn("No auth token found in localStorage");const ut=lt=>{var Fe,ft,ot;console.log("Received message in voice mode:",lt.data),((Fe=lt.data)==null?void 0:Fe.type)==="CLOSE_VOICE_ASSISTANT"?(ae(!1),U(!1)):((ft=lt.data)==null?void 0:ft.type)==="RTVI_CLIENT_READY"?console.log("Voice assistant client is ready"):((ot=lt.data)==null?void 0:ot.type)==="VOICE_ASSISTANT_CONNECTED"&&(console.log("Voice assistant is connected and ready"),U(!0))};return window.addEventListener("message",ut),()=>{window.removeEventListener("message",ut)}}else U(!1)},[V]);const Re=Ne=>{var ut;v(Ne),(ut=k.current)==null||ut.focus()},be=()=>{x.trim()||(ae(!0),j(Ne=>Ne.map(ut=>({...ut,skipAnimation:!0}))))},me=()=>{X(!0),le()},pe=()=>{X(!1)},xe=Ne=>{ge(Ne.sessionId)},Te=async(Ne,ut)=>{ut.stopPropagation();try{await Br.deleteSession(Ne),await le()}catch(lt){console.error("Failed to delete session:",lt)}},ke=()=>{j([]),$(""),v(""),W(""),oe&&(oe.abort(),te(null)),ee(!1),O(!1),he(!1)},Ae=()=>{if(oe){oe.abort(),te(null),ee(!1),O(!1);const Ne={id:(Date.now()+Math.random()).toString(),content:"Request cancelled. You can retry your query.",role:"assistant",timestamp:new Date};j(ut=>[...ut,Ne])}},De=Ne=>{const lt=new Date().getTime()-Ne.getTime(),Fe=Math.floor(lt/6e4),ft=Math.floor(lt/36e5),ot=Math.floor(lt/864e5);return Fe<1?"Just now":Fe<60?`${Fe} min ago`:ft<24?`${ft} hour${ft>1?"s":""} ago`:ot<7?`${ot} day${ot>1?"s":""} ago`:Ne.toLocaleDateString()},ze=async()=>{var Ne;if(z&&!B&&!I){const ut=z;j(Fe=>{let ft=-1;for(let ot=Fe.length-1;ot>=0;ot--)if(Fe[ot].role==="user"){ft=ot;break}return ft>=0?Fe.slice(0,ft+1):Fe}),ee(!0),O(!0);const lt=new AbortController;te(lt);try{const Fe=E6();if(!Fe)throw new Error("Authentication token not found");const ft={"Content-Type":"application/json",Authorization:Fe},ot=new Date,Ot=ot.getFullYear()+"-"+String(ot.getMonth()+1).padStart(2,"0")+"-"+String(ot.getDate()).padStart(2,"0")+"T"+String(ot.getHours()).padStart(2,"0")+":"+String(ot.getMinutes()).padStart(2,"0")+":"+String(ot.getSeconds()).padStart(2,"0")+"Z",Bt=await fetch(y,{method:"POST",headers:{...ft,Accept:"text/event-stream"},body:JSON.stringify({query:ut,current_timestamp:Ot,session_id:Q,regenerate:!0}),signal:lt.signal});if(console.log("🔍 DEBUG: Response status:",Bt.status),console.log("🔍 DEBUG: Response headers:",Object.fromEntries(Bt.headers.entries())),!Bt.ok)throw new Error(`API request failed with status ${Bt.status}`);const Vt=(Ne=Bt.body)==null?void 0:Ne.getReader();if(!Vt)throw new Error("Failed to get response reader");const It=new TextDecoder;let _t=null,mt="",ht=0,bt="",St=null;const Et={},Dt=Q,Mt=Ft=>{var At;if(!Ft.trim())return;const kn=Ft.split(`
|
|
444
|
+
use only for debugging`),y.connect(r.destination)),this.source=c,this.node=f,this.analyser=y,this.processor=d,!0}getFrequencies(i="frequency",r=-100,c=-30){if(!this.processor)throw new Error("Session ended: please call .begin() first");return Tf.getFrequencies(this.analyser,this.sampleRate,null,i,r,c)}async pause(){if(this.processor){if(!this.recording)throw new Error("Already paused: please call .record() first")}else throw new Error("Session ended: please call .begin() first");return this._chunkProcessorBuffer.raw.byteLength&&this._chunkProcessor(this._chunkProcessorBuffer),this.log("Pausing ..."),await this._event("stop"),this.recording=!1,!0}async record(i=()=>{},r=8192){if(this.processor){if(this.recording)throw new Error("Already recording: HELLO please call .pause() first");if(typeof i!="function")throw new Error("chunkProcessor must be a function")}else throw new Error("Session ended: please call .begin() first");return this._chunkProcessor=i,this._chunkProcessorSize=r,this._chunkProcessorBuffer={raw:new ArrayBuffer(0),mono:new ArrayBuffer(0)},this.log("Recording ..."),await this._event("start"),this.recording=!0,!0}async clear(){if(!this.processor)throw new Error("Session ended: please call .begin() first");return await this._event("clear"),!0}async read(){if(!this.processor)throw new Error("Session ended: please call .begin() first");return this.log("Reading ..."),await this._event("read")}async save(i=!1){if(!this.processor)throw new Error("Session ended: please call .begin() first");if(!i&&this.recording)throw new Error("Currently recording: please call .pause() first, or call .save(true) to force");this.log("Exporting ...");const r=await this._event("export");return new sr().pack(this.sampleRate,r.audio)}async end(){if(!this.processor)throw new Error("Session ended: please call .begin() first");const i=this.processor;this.log("Stopping ..."),await this._event("stop"),this.recording=!1,this.log("Exporting ...");const r=await this._event("export",{},i);return this.processor.disconnect(),this.source.disconnect(),this.node.disconnect(),this.analyser.disconnect(),this.stream=null,this.processor=null,this.source=null,this.node=null,new sr().pack(this.sampleRate,r.audio)}async quit(){return this.listenForDeviceChange(null),this.processor&&await this.end(),!0}}globalThis.WavRecorder=WavRecorder;var S6={};S6=JSON.parse('{"name":"@pipecat-ai/daily-transport","version":"0.3.10","license":"BSD-2-Clause","main":"dist/index.js","module":"dist/index.module.js","types":"dist/index.d.ts","source":"src/index.ts","repository":{"type":"git","url":"git+https://github.com/pipecat-ai/pipecat-client-web-transports.git"},"files":["dist","package.json","README.md"],"scripts":{"build":"parcel build --no-cache","dev":"parcel watch","lint":"eslint . --ext ts --report-unused-disable-directives --max-warnings 0"},"devDependencies":{"@pipecat-ai/client-js":"^0.3.5","eslint":"9.11.1","eslint-config-prettier":"^9.1.0","eslint-plugin-simple-import-sort":"^12.1.1"},"peerDependencies":{"@pipecat-ai/client-js":"~0.3.5"},"dependencies":{"@daily-co/daily-js":"^0.77.0"},"description":"Pipecat Daily Transport Package","author":"Daily.co","bugs":{"url":"https://github.com/pipecat-ai/pipecat-client-web-transports/issues"},"homepage":"https://github.com/pipecat-ai/pipecat-client-web-transports/blob/main/transports/daily-webrtc/README.md"}');var pm;(function(o){o.AUDIO_BUFFERING_STARTED="audio-buffering-started",o.AUDIO_BUFFERING_STOPPED="audio-buffering-stopped"})(pm||(pm={}));class v8{constructor(i){this._daily=i,this._proxy=new Proxy(this._daily,{get:(r,c,d)=>{if(typeof r[c]=="function"){let f;switch(String(c)){case"preAuth":f="Calls to preAuth() are disabled. Please use Transport.preAuth()";break;case"startCamera":f="Calls to startCamera() are disabled. Please use RTVIClient.initDevices()";break;case"join":f="Calls to join() are disabled. Please use RTVIClient.connect()";break;case"leave":f="Calls to leave() are disabled. Please use RTVIClient.disconnect()";break;case"destroy":f="Calls to destroy() are disabled.";break}return f?()=>{throw new Error(f)}:(...y)=>r[c](...y)}return Reflect.get(r,c,d)}})}get proxy(){return this._proxy}}class Qc extends s3{constructor({dailyFactoryOptions:i={},bufferLocalAudioUntilBotReady:r=!1}={}){super(),this._botId="",this._selectedCam={},this._selectedMic={},this._selectedSpeaker={},this._currentAudioTrack=null,this._audioQueue=[],this._callbacks={},this._dailyFactoryOptions=i,this._bufferLocalAudioUntilBotReady=r,this._daily=s8.createCallObject({...this._dailyFactoryOptions,allowMultipleCallInstances:!0}),this._dailyWrapper=new v8(this._daily)}setupRecorder(){this._mediaStreamRecorder=new b8({sampleRate:Qc.RECORDER_SAMPLE_RATE})}handleUserAudioStream(i){this._audioQueue.push(i)}flushAudioQueue(){if(this._audioQueue.length!==0)for(On.debug(`Will flush audio queue: ${this._audioQueue.length}`);this._audioQueue.length>0;){const r=[];for(;r.length<10&&this._audioQueue.length>0;){const c=this._audioQueue.shift();c&&r.push(c)}r.length>0&&this._sendAudioBatch(r)}}_sendAudioBatch(i){const c={id:"raw-audio-batch",label:"rtvi-ai",type:"raw-audio-batch",data:{base64AudioBatch:i.map(d=>{const f=new Uint8Array(d);return btoa(String.fromCharCode(...f))}),sampleRate:Qc.RECORDER_SAMPLE_RATE,numChannels:1}};this.sendMessage(c)}initialize(i,r){this._bufferLocalAudioUntilBotReady&&this.setupRecorder(),this._callbacks=i.callbacks??{},this._onMessage=r,(this._dailyFactoryOptions.startVideoOff==null||i.enableCam!=null)&&(this._dailyFactoryOptions.startVideoOff=!(i.enableCam??!1)),(this._dailyFactoryOptions.startAudioOff==null||i.enableMic!=null)&&(this._dailyFactoryOptions.startAudioOff=!(i.enableMic??!0)),this.attachEventListeners(),this.state="disconnected",On.debug("[RTVI Transport] Initialized",l8(S6).version)}get dailyCallClient(){return this._dailyWrapper.proxy}get state(){return this._state}set state(i){var r,c;this._state!==i&&(this._state=i,(c=(r=this._callbacks).onTransportStateChanged)==null||c.call(r,i))}async getAllCams(){const{devices:i}=await this._daily.enumerateDevices();return i.filter(r=>r.kind==="videoinput")}updateCam(i){this._daily.setInputDevicesAsync({videoDeviceId:i}).then(r=>{this._selectedCam=r.camera})}get selectedCam(){return this._selectedCam}async getAllMics(){const{devices:i}=await this._daily.enumerateDevices();return i.filter(r=>r.kind==="audioinput")}updateMic(i){this._daily.setInputDevicesAsync({audioDeviceId:i}).then(r=>{this._selectedMic=r.mic})}get selectedMic(){return this._selectedMic}async getAllSpeakers(){const{devices:i}=await this._daily.enumerateDevices();return i.filter(r=>r.kind==="audiooutput")}updateSpeaker(i){this._daily.setOutputDeviceAsync({outputDeviceId:i}).then(r=>{this._selectedSpeaker=r.speaker})}get selectedSpeaker(){return this._selectedSpeaker}enableMic(i){this._daily.setLocalAudio(i)}get isMicEnabled(){return this._daily.localAudio()}enableCam(i){this._daily.setLocalVideo(i)}get isCamEnabled(){return this._daily.localVideo()}enableScreenShare(i){i?this._daily.startScreenShare():this._daily.stopScreenShare()}get isSharingScreen(){return this._daily.localScreenAudio()||this._daily.localScreenVideo()}tracks(){var d,f,y,x,v,S,j,B,ee,ne,O,V,ae,ie,U,P;const i=this._daily.participants()??{},r=i==null?void 0:i[this._botId],c={local:{audio:(y=(f=(d=i==null?void 0:i.local)==null?void 0:d.tracks)==null?void 0:f.audio)==null?void 0:y.persistentTrack,screenAudio:(S=(v=(x=i==null?void 0:i.local)==null?void 0:x.tracks)==null?void 0:v.screenAudio)==null?void 0:S.persistentTrack,screenVideo:(ee=(B=(j=i==null?void 0:i.local)==null?void 0:j.tracks)==null?void 0:B.screenVideo)==null?void 0:ee.persistentTrack,video:(V=(O=(ne=i==null?void 0:i.local)==null?void 0:ne.tracks)==null?void 0:O.video)==null?void 0:V.persistentTrack}};return r&&(c.bot={audio:(ie=(ae=r==null?void 0:r.tracks)==null?void 0:ae.audio)==null?void 0:ie.persistentTrack,video:(P=(U=r==null?void 0:r.tracks)==null?void 0:U.video)==null?void 0:P.persistentTrack}),c}async startRecording(){try{On.info("[RTVI Transport] Initializing recording"),await this._mediaStreamRecorder.record(i=>{this.handleUserAudioStream(i.mono)},Qc.RECORDER_CHUNK_SIZE),this._onMessage({type:pm.AUDIO_BUFFERING_STARTED,data:{}}),On.info("[RTVI Transport] Recording Initialized")}catch(i){i.message.includes("Already recording")||On.error("Error starting recording",i)}}async preAuth(i){this._dailyFactoryOptions=i,await this._daily.preAuth(i)}async initDevices(){var y,x,v,S,j,B,ee,ne,O,V,ae,ie;if(!this._daily)throw new ro("Transport instance not initialized");this.state="initializing";const i=await this._daily.startCamera(this._dailyFactoryOptions),{devices:r}=await this._daily.enumerateDevices(),c=r.filter(U=>U.kind==="videoinput"),d=r.filter(U=>U.kind==="audioinput"),f=r.filter(U=>U.kind==="audiooutput");this._selectedCam=i.camera,this._selectedMic=i.mic,this._selectedSpeaker=i.speaker,(x=(y=this._callbacks).onAvailableCamsUpdated)==null||x.call(y,c),(S=(v=this._callbacks).onAvailableMicsUpdated)==null||S.call(v,d),(B=(j=this._callbacks).onAvailableSpeakersUpdated)==null||B.call(j,f),(ne=(ee=this._callbacks).onCamUpdated)==null||ne.call(ee,i.camera),(V=(O=this._callbacks).onMicUpdated)==null||V.call(O,i.mic),(ie=(ae=this._callbacks).onSpeakerUpdated)==null||ie.call(ae,i.speaker),this._daily.isLocalAudioLevelObserverRunning()||await this._daily.startLocalAudioLevelObserver(100),this._daily.isRemoteParticipantsAudioLevelObserverRunning()||await this._daily.startRemoteParticipantsAudioLevelObserver(100),this.state="initialized"}async connect(i,r){var d,f,y;if(!this._daily)throw new ro("Transport instance not initialized");if(r.signal.aborted)return;this.state="connecting";const c=this._dailyFactoryOptions;c.url=i.room_url??c.url,i.token!=null&&(c.token=i.token);try{await this._daily.join(c);const x=await this._daily.room();x&&"id"in x&&(this._expiry=(d=x.config)==null?void 0:d.exp)}catch(x){throw On.error("Failed to join room",x),this.state="error",new e3}r.signal.aborted||(this.state="connected",(y=(f=this._callbacks).onConnected)==null||y.call(f))}async sendReadyMessage(){return new Promise(i=>{const r=()=>{const f=navigator.userAgent;return/iPad|iPhone|iPod/.test(f)||/Macintosh/.test(f)&&"ontouchend"in document},c=()=>{this.state="ready",this.flushAudioQueue(),this.sendMessage(na.clientReady()),this.stopRecording(),i()},d=f=>{var y;(y=f.participant)!=null&&y.local||(this._daily.off("track-started",d),r()?(On.debug("[RTVI Transport] iOS device detected, adding 0.5 second delay before sending ready message"),setTimeout(c,500)):c())};this._daily.on("track-started",d)})}stopRecording(){this._mediaStreamRecorder&&this._mediaStreamRecorder.getStatus()!=="ended"&&(this._mediaStreamRecorder.end(),this._onMessage({type:pm.AUDIO_BUFFERING_STOPPED,data:{}}))}attachEventListeners(){this._daily.on("available-devices-updated",this.handleAvailableDevicesUpdated.bind(this)),this._daily.on("selected-devices-updated",this.handleSelectedDevicesUpdated.bind(this)),this._daily.on("track-started",this.handleTrackStarted.bind(this)),this._daily.on("track-stopped",this.handleTrackStopped.bind(this)),this._daily.on("participant-joined",this.handleParticipantJoined.bind(this)),this._daily.on("participant-left",this.handleParticipantLeft.bind(this)),this._daily.on("local-audio-level",this.handleLocalAudioLevel.bind(this)),this._daily.on("remote-participants-audio-level",this.handleRemoteAudioLevel.bind(this)),this._daily.on("app-message",this.handleAppMessage.bind(this)),this._daily.on("left-meeting",this.handleLeftMeeting.bind(this)),this._daily.on("error",this.handleFatalError.bind(this)),this._daily.on("nonfatal-error",this.handleNonFatalError.bind(this))}async disconnect(){this.state="disconnecting",this._daily.stopLocalAudioLevelObserver(),this._daily.stopRemoteParticipantsAudioLevelObserver(),this._audioQueue=[],this._currentAudioTrack=null,this.stopRecording(),await this._daily.leave()}sendMessage(i){this._daily.sendAppMessage(i,"*")}handleAppMessage(i){i.data.label==="rtvi-ai"&&this._onMessage({id:i.data.id,type:i.data.type,data:i.data.data})}handleAvailableDevicesUpdated(i){var r,c,d,f,y,x;(c=(r=this._callbacks).onAvailableCamsUpdated)==null||c.call(r,i.availableDevices.filter(v=>v.kind==="videoinput")),(f=(d=this._callbacks).onAvailableMicsUpdated)==null||f.call(d,i.availableDevices.filter(v=>v.kind==="audioinput")),(x=(y=this._callbacks).onAvailableSpeakersUpdated)==null||x.call(y,i.availableDevices.filter(v=>v.kind==="audiooutput"))}handleSelectedDevicesUpdated(i){var r,c,d,f,y,x,v,S,j;((r=this._selectedCam)==null?void 0:r.deviceId)!==i.devices.camera&&(this._selectedCam=i.devices.camera,(d=(c=this._callbacks).onCamUpdated)==null||d.call(c,i.devices.camera)),((f=this._selectedMic)==null?void 0:f.deviceId)!==i.devices.mic&&(this._selectedMic=i.devices.mic,(x=(y=this._callbacks).onMicUpdated)==null||x.call(y,i.devices.mic)),((v=this._selectedSpeaker)==null?void 0:v.deviceId)!==i.devices.speaker&&(this._selectedSpeaker=i.devices.speaker,(j=(S=this._callbacks).onSpeakerUpdated)==null||j.call(S,i.devices.speaker))}async handleLocalAudioTrack(i){if(this.state=="ready"||!this._bufferLocalAudioUntilBotReady)return;switch(this._mediaStreamRecorder.getStatus()){case"ended":await this._mediaStreamRecorder.begin(i),await this.startRecording();break;case"paused":await this.startRecording();break;case"recording":default:this._currentAudioTrack!==i?(await this._mediaStreamRecorder.end(),await this._mediaStreamRecorder.begin(i),await this.startRecording()):On.warn("track-started event received for current track and already recording");break}this._currentAudioTrack=i}handleTrackStarted(i){var r,c,d,f,y;i.type==="screenAudio"||i.type==="screenVideo"?(c=(r=this._callbacks).onScreenTrackStarted)==null||c.call(r,i.track,i.participant?Dd(i.participant):void 0):((d=i.participant)!=null&&d.local&&i.track.kind==="audio"&&this.handleLocalAudioTrack(i.track),(y=(f=this._callbacks).onTrackStarted)==null||y.call(f,i.track,i.participant?Dd(i.participant):void 0))}handleTrackStopped(i){var r,c,d,f;i.type==="screenAudio"||i.type==="screenVideo"?(c=(r=this._callbacks).onScreenTrackStopped)==null||c.call(r,i.track,i.participant?Dd(i.participant):void 0):(f=(d=this._callbacks).onTrackStopped)==null||f.call(d,i.track,i.participant?Dd(i.participant):void 0)}handleParticipantJoined(i){var c,d,f,y;const r=Dd(i.participant);(d=(c=this._callbacks).onParticipantJoined)==null||d.call(c,r),!r.local&&(this._botId=i.participant.session_id,(y=(f=this._callbacks).onBotConnected)==null||y.call(f,r))}handleParticipantLeft(i){var c,d,f,y;const r=Dd(i.participant);(d=(c=this._callbacks).onParticipantLeft)==null||d.call(c,r),!r.local&&(this._botId="",(y=(f=this._callbacks).onBotDisconnected)==null||y.call(f,r))}handleLocalAudioLevel(i){var r,c;(c=(r=this._callbacks).onLocalAudioLevel)==null||c.call(r,i.audioLevel)}handleRemoteAudioLevel(i){var d,f;const r=this._daily.participants(),c=Object.keys(i.participantsAudioLevel);for(let y=0;y<c.length;y++){const x=c[y],v=i.participantsAudioLevel[x];(f=(d=this._callbacks).onRemoteAudioLevel)==null||f.call(d,v,Dd(r[x]))}}handleLeftMeeting(){var i,r;this.state="disconnected",this._botId="",(r=(i=this._callbacks).onDisconnected)==null||r.call(i)}handleFatalError(i){var r,c;On.error("Daily fatal error",i.errorMsg),this.state="error",this._botId="",(c=(r=this._callbacks).onError)==null||c.call(r,na.error(i.errorMsg,!0))}handleNonFatalError(i){var r,c;switch(i.type){case"screen-share-error":(c=(r=this._callbacks).onScreenShareError)==null||c.call(r,i.errorMsg);break}}}Qc.RECORDER_SAMPLE_RATE=16e3,Qc.RECORDER_CHUNK_SIZE=512;const Dd=o=>({id:o.user_id,local:o.local,name:o.user_name}),x8=new Qc,_8=new jl({transport:x8,params:{baseUrl:"https://genius.juspay.in/api/v3/voice/backend",endpoints:{connect:"/connect"}},enableMic:!0,enableCam:!1});function S8({children:o}){return Y.jsx(_3,{client:_8,children:o})}const C6=Ue.createContext(void 0);function C8({children:o}){const[i,r]=Ue.useState(!1);return Y.jsx(C6.Provider,{value:{isMuted:i,setIsMuted:r},children:o})}function w8(){const o=Ue.useContext(C6);if(o===void 0)throw new Error("useMute must be used within a MuteProvider");return o}const w6=Ue.createContext(void 0);function k8({children:o}){const[i,r]=Ue.useState(void 0);return Y.jsx(w6.Provider,{value:{initialHistory:i,setInitialHistory:r},children:o})}function k6(){const o=Ue.useContext(w6);if(!o)throw new Error("useConversationHistoryContext must be used within a ConversationHistoryProvider");return o}function T8(){const o=nm(),{setInitialHistory:i}=k6(),r=Ue.useCallback(async(c,d)=>{if(!o){console.error("RTVI client is not initialized");return}const f=o.params.endpoints?{...o.params.endpoints}:void 0;try{const y=c,x="/connect";let v=x;x.includes("?")?v=`${x}&token=${y}`:v=`${x}?token=${y}`,console.log(`Auto-connecting with endpoint: ${v}`),o.params.endpoints?o.params.endpoints.connect=v:o.params.endpoints={connect:v};let S;d&&(Array.isArray(d)?S=d:"conversations"in d&&Array.isArray(d.conversations)&&(S=d.conversations,console.log("Extracting conversations from agentResponse:",S))),S&&Array.isArray(S)&&S.length>0&&(console.log("Setting chat history in client params:",S),o.params.requestData={...o.params.requestData||{},chatHistory:S},i(S)),console.log(`Client connect endpoint is now: ${o.params.endpoints.connect}`),await o.connect()}catch(y){console.error("Auto-connection error:",y)}finally{o&&o.params&&(o.params.endpoints=f,console.log("Restored client endpoints to:",o.params.endpoints))}},[o,i]);return Ue.useEffect(()=>{const c=d=>{d.data&&d.data.type==="AUTH_TOKEN"&&d.data.token&&(console.log("AUTH_TOKEN received:",d.data),d.data.agentResponse&&console.log("Chat history received:",d.data.agentResponse),r(d.data.token,d.data.agentResponse))};return window.addEventListener("message",c),window.parent!==window&&(window.parent.postMessage({type:"RTVI_CLIENT_READY"},"*"),console.log("RTVI_CLIENT_READY message sent to parent")),()=>{window.removeEventListener("message",c)}},[o,r]),null}const Bx={"tooltip-container":"genius-sdk__ConnectionTooltip-module__tooltip-container___Ge4hD",tooltip:"genius-sdk__ConnectionTooltip-module__tooltip___Dw96d","tooltip-text":"genius-sdk__ConnectionTooltip-module__tooltip-text___Zd-1L"};function M8({message:o,isVisible:i}){return i?Y.jsx("div",{className:Bx["tooltip-container"],children:Y.jsx("div",{className:Bx.tooltip,children:Y.jsx("p",{className:Bx["tooltip-text"],children:o})})}):null}const r1="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.00052%200.764648C6.00053%200.772166%206.00053%200.779674%206.00052%200.787173C6.0026%204.52815%207.05588%205.99955%2011.2354%205.99955C7.05588%205.99955%206.0026%207.47095%206.00052%2011.2119C5.99844%207.47095%204.94517%205.99955%200.765625%205.99955C4.94517%205.99955%205.99844%204.52815%206.00052%200.787173C6.00052%200.779674%206.00052%200.772166%206.00052%200.764648Z'%20fill='white'%20stroke='white'%20stroke-width='1.04698'%20stroke-linejoin='round'/%3e%3c/svg%3e",cn={"simple-chat":"genius-sdk__SimpleChat-module__simple-chat___8hiCW","welcome-container":"genius-sdk__SimpleChat-module__welcome-container___NYmMP","welcome-header":"genius-sdk__SimpleChat-module__welcome-header___F6yjX","welcome-title":"genius-sdk__SimpleChat-module__welcome-title___nULPu","sparkle-icon":"genius-sdk__SimpleChat-module__sparkle-icon___UeoaE","wave-emoji":"genius-sdk__SimpleChat-module__wave-emoji___euNW9",wave:"genius-sdk__SimpleChat-module__wave___c2Nl-","welcome-subtitle":"genius-sdk__SimpleChat-module__welcome-subtitle___Mi863","option-cards":"genius-sdk__SimpleChat-module__option-cards___RU4Xe","option-card":"genius-sdk__SimpleChat-module__option-card___uxVHc","card-icon-wrapper":"genius-sdk__SimpleChat-module__card-icon-wrapper___ErlQj",purple:"genius-sdk__SimpleChat-module__purple___OJIoJ",blue:"genius-sdk__SimpleChat-module__blue___i6H9v",red:"genius-sdk__SimpleChat-module__red___eUlkU","card-title":"genius-sdk__SimpleChat-module__card-title___AZwKi","card-description":"genius-sdk__SimpleChat-module__card-description___lprtn","messages-container":"genius-sdk__SimpleChat-module__messages-container___DInMa",message:"genius-sdk__SimpleChat-module__message___mJ5zW",user:"genius-sdk__SimpleChat-module__user___wV-32",bot:"genius-sdk__SimpleChat-module__bot___CI52h","bot-message-group":"genius-sdk__SimpleChat-module__bot-message-group___ZeXmk","bot-content-wrapper":"genius-sdk__SimpleChat-module__bot-content-wrapper___GwC1Y","message-icon":"genius-sdk__SimpleChat-module__message-icon___7RObu","message-bubble":"genius-sdk__SimpleChat-module__message-bubble___adDU7","connecting-pill":"genius-sdk__SimpleChat-module__connecting-pill___GdNZ2",fadeIn:"genius-sdk__SimpleChat-module__fadeIn___aXSg-",pending:"genius-sdk__SimpleChat-module__pending___FoZ0X","pulse-border":"genius-sdk__SimpleChat-module__pulse-border___LdMpS","typing-pulse":"genius-sdk__SimpleChat-module__typing-pulse___7h8yP","streaming-cursor":"genius-sdk__SimpleChat-module__streaming-cursor___4zqB6",pulse:"genius-sdk__SimpleChat-module__pulse___VzuBS","spoken-text":"genius-sdk__SimpleChat-module__spoken-text___Sa5q0","unspoken-text":"genius-sdk__SimpleChat-module__unspoken-text___5YvDS","pending-message":"genius-sdk__SimpleChat-module__pending-message___bJptQ",inaudible:"genius-sdk__SimpleChat-module__inaudible___VaA8q","visual-components":"genius-sdk__SimpleChat-module__visual-components___eVmx0","tool-description":"genius-sdk__SimpleChat-module__tool-description___-90-h","chart-container":"genius-sdk__SimpleChat-module__chart-container___6ojrT","single-stat-container":"genius-sdk__SimpleChat-module__single-stat-container___-8qmU","table-container":"genius-sdk__SimpleChat-module__table-container___Qk2YY","loading-dots":"genius-sdk__SimpleChat-module__loading-dots___m46tG","loading-pulse":"genius-sdk__SimpleChat-module__loading-pulse___OOiCK"};function T6({toolCalls:o,isVisible:i,isActive:r=!1}){const[c,d]=Ue.useState(!1);if(!i)return null;const f=v=>v.split("_").map(S=>S.charAt(0).toUpperCase()+S.slice(1)).join(" "),y=v=>Object.entries(v).filter(([S,j])=>j!=null).map(([S,j])=>{let B=j;return typeof j=="object"?B=JSON.stringify(j,null,2):typeof j=="string"&&j.length>50&&(B=j.substring(0,50)+"..."),{key:S,value:B}}),x=v=>v?typeof v=="string"?Y.jsx("div",{className:"tool-result-text",children:v}):typeof v=="object"?v.error||v.status==="error"?Y.jsxs("div",{className:"tool-result-error",children:[Y.jsx("span",{className:"error-label",children:"Error:"})," ",v.error||v.message||"Unknown error"]}):Y.jsx("div",{className:"tool-result-object",children:Y.jsx("pre",{children:JSON.stringify(v,null,2)})}):Y.jsx("div",{className:"tool-result-text",children:String(v)}):null;return Y.jsxs("div",{className:"thinking-loader",children:[Y.jsx("div",{className:"thinking-header",onClick:()=>o.length>0&&d(!c),children:r?Y.jsxs(Y.Fragment,{children:[Y.jsxs("div",{className:"thinking-dots",children:[Y.jsx("span",{}),Y.jsx("span",{}),Y.jsx("span",{})]}),Y.jsx("span",{className:"thinking-text",children:"Thinking"})]}):Y.jsxs(Y.Fragment,{children:[Y.jsxs("span",{className:"thinking-text",children:["Used ",o.length," tool",o.length>1?"s":""]}),o.length>0&&Y.jsx("svg",{className:`chevron ${c?"expanded":""}`,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:Y.jsx("path",{d:"M3 4.5L6 7.5L9 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),c&&o.length>0&&Y.jsx("div",{className:"tool-calls-dropdown",children:o.map((v,S)=>Y.jsxs("div",{className:"tool-call-item",children:[Y.jsxs("div",{className:"tool-call-header-item",children:[Y.jsx("div",{className:"tool-status",children:v.status==="pending"?Y.jsx("div",{className:"spinner"}):Y.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:Y.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:"#10b981",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),Y.jsx("span",{className:"tool-name",children:f(v.functionName)}),v.duration&&Y.jsxs("span",{className:"tool-duration",children:[(v.duration/1e3).toFixed(2),"s"]})]}),Object.keys(v.arguments).length>0&&Y.jsxs("div",{className:"tool-arguments",children:[Y.jsx("div",{className:"section-label",children:"Input:"}),Y.jsx("div",{className:"arguments-list",children:y(v.arguments).map(({key:j,value:B})=>Y.jsxs("div",{className:"argument-item",children:[Y.jsxs("span",{className:"argument-key",children:[j,":"]}),Y.jsx("span",{className:"argument-value",children:B})]},j))})]}),v.result&&Y.jsxs("div",{className:"tool-result",children:[Y.jsx("div",{className:"section-label",children:"Output:"}),x(v.result)]}),S<o.length-1&&Y.jsx("div",{className:"tool-divider"})]},v.toolCallId))})]})}function M6(o){const[i,r]=Ue.useState(o||[]),c=Ue.useRef({}),d=Ue.useRef([]);ki(Nt.UserTranscript,y=>{y.timestamp&&typeof y.timestamp=="string"&&y.timestamp.includes("|")?y.timestamp.split("|")[2].toLowerCase()==="true"&&y.text&&(c.current={userMessage:y.text,response:[]},d.current=[],console.log("📝 [ConversationHistory] Started new entry with user message:",y.text)):y.final&&y.text&&(c.current={userMessage:y.text,response:[]},d.current=[],console.log("📝 [ConversationHistory] Started new entry with user message:",y.text))}),ki(Nt.BotTranscript,y=>{y.text&&c.current.userMessage&&(c.current.botMessage=y.text,console.log("🤖 [ConversationHistory] Added bot message:",y.text))}),ki(Nt.BotLlmText,y=>{y.text&&c.current.userMessage&&!c.current.botMessage&&(c.current.botMessage=y.text,console.log("🤖 [ConversationHistory] Added bot message from LLM:",y.text))}),ki(Nt.ServerMessage,y=>{if(y.type==="tool-call-start"){const{functionName:x,arguments:v}=y.payload,B={payload_type:{q_api:"q_api",sr_analysis:"sr_analysis",field_value_discovery:"field_value_discovery",mid_lookup:"mid_lookup",math:"math"}[x||""]||x||"unknown",input:v||{},output:null};d.current.push(B),console.log(`🔧 [ConversationHistory] Tool call started: ${x}`,v)}else if(y.type==="tool-call-result"){const{result:x}=y.payload,v=d.current.slice().reverse().find(S=>S.output===null);v&&(v.output=x,console.log("🔧 [ConversationHistory] Tool call result added:",x))}}),ki(Nt.BotStoppedSpeaking,()=>{if(c.current.userMessage&&c.current.botMessage){c.current.response=[...d.current,{payload_type:"output_text",input:{},output:null}];const y={userMessage:c.current.userMessage,botMessage:c.current.botMessage,response:c.current.response};r(x=>[...x,y]),console.log("✅ [ConversationHistory] Conversation entry completed:",y),c.current={},d.current=[]}});const f=Ue.useCallback(()=>{window.parent!==window&&(console.log("📤 [ConversationHistory] Sending conversation history to parent:",i),window.parent.postMessage({type:"CONVERSATION_HISTORY",payload:i},"*"))},[i]);return Ue.useEffect(()=>{const y=()=>{f()};window.addEventListener("beforeunload",y);const x=()=>{document.visibilityState==="hidden"&&f()};return document.addEventListener("visibilitychange",x),()=>{window.removeEventListener("beforeunload",y),document.removeEventListener("visibilitychange",x)}},[f]),Ue.useEffect(()=>{i.length>0&&f()},[i,f]),{conversationHistory:i,sendDataToParent:f}}function A8(){const[o,i]=Ue.useState([]),[r,c]=Ue.useState([]),[d,f]=Ue.useState({}),[y,x]=Ue.useState(!1),v=Ue.useRef(null),S=w3(),j=nm(),B=S==="connecting"||S==="connected",[ee,ne]=Ue.useState(!1),[O,V]=Ue.useState(""),{conversationHistory:ae}=M6();Ue.useEffect(()=>{console.log("Transport state changed:",S),S==="connecting"?(console.log("Showing connecting tooltip"),V("Connecting to Genius..."),ne(!0)):S==="ready"?(console.log("Showing connected tooltip"),V("Connected, You can speak now"),ne(!0),console.log("Voice assistant is ready, posting message to parent"),window.parent.postMessage({type:"VOICE_ASSISTANT_CONNECTED"},"*"),setTimeout(()=>{console.log("Hiding connected tooltip"),ne(!1)},2e3)):S==="disconnected"&&(console.log("Hiding tooltip due to disconnection"),ne(!1))},[S]),Ue.useEffect(()=>{if(ae.length===0)return;const q=ae[ae.length-1];console.log("🎨 Processing latest conversation entry:",q);const w=q.response.filter(E=>E.payload_type!=="output_text").map((E,N)=>({toolCallId:`${E.payload_type}-${N}`,functionName:E.payload_type,arguments:E.input,result:E.output,status:"complete",timestamp:Date.now()}));w.length>0&&(console.log("🔧 Found tool calls in conversation history:",w),i(E=>{const N=E.filter(H=>H.sender==="bot");if(N.length===0)return E;const ce=N[N.length-1];if(ce.visualData)return console.log("🎨 Bot message already has visual data, skipping"),E;const D=C(w);return D?(console.log("🎨 Adding visual data to bot message:",ce.id),E.map(H=>H.id===ce.id?{...H,visualData:D,toolCallsCompleted:w}:H)):E}))},[ae]);const[ie,U]=Ue.useState(!1),P=Ue.useRef(null),X=Ue.useRef({llm:!1,tts:!1}),Q=Ue.useRef(null),$=Ue.useRef(null),I=Ue.useRef(0),he=Ue.useRef(!1),oe=Ue.useRef(!1),te=Ue.useRef(null),z=Ue.useRef(new Set),W=Ue.useRef(new Set),G=Ue.useRef(null),T=Ue.useRef(null),_=Ue.useRef(new Map);Ue.useEffect(()=>{const q=v.current;q&&(q.scrollTop=q.scrollHeight)},[o]);const A=()=>{if(console.log("🚫 Bot interrupted by user"),oe.current=!0,P.current&&(W.current.add(P.current),console.log("🚫 Added to interrupted messages:",P.current)),P.current){const q=P.current;console.log("🎯 Marking bot message as interrupted:",q),i(w=>w.map(E=>E.id===q&&E.sender==="bot"?(console.log("🔥 Setting isInterrupted flag on message"),{...E,isInterrupted:!0,isStreaming:!1}):E))}else console.log("⚠️ No currentBotMessageId, looking for recent streaming bot message"),i(q=>{const w=[...q].reverse().find(E=>E.sender==="bot"&&(E.isStreaming||E.spokenText===void 0||E.spokenText!==E.text));return w?(console.log("🎯 Found recent bot message to mark as interrupted:",w.id),W.current.add(w.id),q.map(E=>E.id===w.id?(console.log("🔥 Setting isInterrupted flag on recent message"),{...E,isInterrupted:!0,isStreaming:!1}):E)):q})};Ue.useEffect(()=>()=>{J(),T.current&&clearTimeout(T.current)},[]),Ue.useEffect(()=>{if(j){const q=Object.keys(Nt);console.log("Available RTVI Events:",q)}},[j]),ki(Nt.ServerMessage,q=>{if(console.log("🔧 Server message received:",q),q.type==="tool-call-start"){const{toolCallId:w,functionName:E,arguments:N,timestamp:ce}=q.payload;c(D=>[...D,{toolCallId:w,functionName:E,arguments:N,timestamp:ce,status:"pending"}]),x(!0),console.log(`🔧 Tool call started: ${E}`)}else if(q.type==="tool-call-result"){const{toolCallId:w,result:E,duration:N}=q.payload;c(ce=>ce.map(D=>D.toolCallId===w?{...D,result:E,duration:N,status:"complete"}:D)),console.log(`🔧 Tool call completed: ${w}`),c(ce=>ce.map(D=>D.toolCallId===w?{...D,result:E,duration:N,status:"complete"}:D))}}),ki(Nt.UserStartedSpeaking,()=>{console.log("🎤 SimpleChat: User started speaking"),T.current&&(clearTimeout(T.current),T.current=null),ie&&A(),(he.current||!Q.current)&&(o.some(E=>E.sender==="user"&&E.isPending&&!E.text)?console.log("⚠️ Skipping empty message box creation - one already exists"):(console.log("📦 Creating empty user message box on speech start"),he.current=!1,i(E=>{const N=E.map(K=>({...K,isPending:!1})),ce=new Date,D=`user-${ce.getTime()}`;Q.current=D;const H={id:D,sender:"user",text:"",timestamp:ce,isPending:!0,segments:[]};return console.log(`➕ Created empty message box: ${D}`),[...N,H]})))}),ki(Nt.UserStoppedSpeaking,()=>{console.log("🎤 SimpleChat: User stopped speaking");const q=Q.current;T.current=setTimeout(()=>{q&&i(w=>{const E=w.find(N=>N.id===q);return E&&E.isPending&&!E.text?(console.log("🔒 User stopped speaking with empty text box - marking as inaudible"),Q.current===q&&(Q.current=null),w.map(N=>N.id===E.id?{...N,text:"inaudible",isPending:!1,segments:[]}:N)):w}),T.current=null},2e3)}),ki(Nt.BotStartedSpeaking,()=>{console.log("🤖 SimpleChat: Bot started speaking"),U(!0),oe.current=!1,Q.current&&console.log("🔍 Bot started speaking - pending user message exists:",Q.current)}),ki(Nt.BotStoppedSpeaking,()=>{console.log("🤖 SimpleChat: Bot stopped speaking"),U(!1),oe.current=!1,te.current=null});const L=()=>{setTimeout(()=>{if(!X.current.llm&&!X.current.tts&&P.current){const q=P.current;console.log("✅ Bot fully done - removing cursor for message:",q),i(w=>{console.log("Current messages:",w.map(N=>({id:N.id,isStreaming:N.isStreaming})));const E=w.map(N=>N.id===q?(console.log(`Found message to update: ${N.id}`),{...N,isStreaming:!1}):N);return console.log("Updated messages:",E.map(N=>({id:N.id,isStreaming:N.isStreaming}))),E}),P.current=null,I.current=Date.now()}},100)};ki(Nt.BotLlmStarted,()=>{if(console.log("🤖 Bot LLM started"),X.current.llm=!0,x(!0),he.current=!0,Q.current&&(console.log("🔍 Bot LLM started - pending user message exists:",Q.current),i(q=>q.map(w=>w.id===Q.current&&w.isPending&&w.text?(console.log("📝 Finalizing pending user message as bot starts:",w.id),{...w,isPending:!1}):w))),oe.current=!1,z.current.clear(),console.log("📝 Interrupted bot messages will remain blocked:",Array.from(W.current)),te.current=null,P.current)console.log("ℹ️ Message already exists from early text event");else{const q=new Date,w=`bot-${q.getTime()}`;P.current=w,i(E=>[...E,{id:w,sender:"bot",text:"",spokenText:"",timestamp:q,isStreaming:!0}])}}),ki(Nt.BotLlmStopped,()=>{if(console.log("🤖 Bot LLM stopped"),X.current.llm=!1,x(!1),P.current&&d[P.current]){const q=d[P.current],w=C(q);w&&(console.log("🎨 Processing visual data for message:",P.current),i(E=>E.map(N=>N.id===P.current?{...N,visualData:w,toolCallsCompleted:q}:N)))}P.current&&i(q=>{const w=q.find(E=>E.id===P.current);return w&&!w.text.trim()?(console.log("🗑️ Removing empty bot message:",P.current),P.current=null,q.filter(E=>E.id!==w.id)):q}),L()}),ki(Nt.BotTtsStarted,()=>{console.log("🤖 Bot TTS started"),X.current.tts=!0}),ki(Nt.BotTtsStopped,()=>{console.log("🤖 Bot TTS stopped"),X.current.tts=!1,te.current=null,L()}),ki(Nt.UserTranscript,q=>{q.timestamp&&typeof q.timestamp=="string"&&q.timestamp.includes("|")?(console.log("📝 Enhanced transcript event received:",JSON.stringify(q,null,2)),k(q)):console.log("📝 Ignoring regular RTVI transcript event (no custom data)")}),ki(Nt.BotTranscript,q=>{console.log("🤖 Bot transcript event (ignoring - using streaming instead):",JSON.stringify(q,null,2))}),ki(Nt.BotLlmText,q=>{if(console.log("🤖 Bot LLM text event:",JSON.stringify(q,null,2)),x(!1),he.current=!0,q.text&&q.text.trim()!=="")if(P.current)i(w=>w.map(E=>E.id===P.current?{...E,text:E.text+q.text}:E));else{const w=Date.now();if(w-I.current<500)console.log("⚠️ Quick successive bot message detected, checking for recent message to append"),i(N=>{const ce=N[N.length-1];if(ce&&ce.sender==="bot")return console.log("📝 Appending to recent bot message"),P.current=ce.id,X.current.llm=!0,N.map(D=>D.id===ce.id?{...D,text:D.text+" "+q.text,isStreaming:!0}:D);{console.log("⚠️ No recent bot message found, creating new");const D=new Date,H=`bot-${D.getTime()}`;if(P.current=H,X.current.llm=!0,I.current=w,r.length>0){f(le=>({...le,[H]:[...r]}));const K=r.filter(le=>le.status==="complete"),re=K.length>0?C(K):null;return c([]),[...N,{id:H,sender:"bot",text:q.text,spokenText:"",timestamp:D,isStreaming:!0,visualData:re,toolCallsCompleted:K.length>0?K:void 0}]}return[...N,{id:H,sender:"bot",text:q.text,spokenText:"",timestamp:D,isStreaming:!0}]}});else{console.log("⚠️ LLM text arrived before BotLlmStarted - creating message");const N=new Date,ce=`bot-${N.getTime()}`;if(P.current=ce,X.current.llm=!0,I.current=w,te.current=null,r.length>0){f(K=>({...K,[ce]:[...r]}));const D=r.filter(K=>K.status==="complete"),H=D.length>0?C(D):null;c([]),i(K=>[...K,{id:ce,sender:"bot",text:q.text,spokenText:"",timestamp:N,isStreaming:!0,visualData:H,toolCallsCompleted:D.length>0?D:void 0}])}else i(D=>[...D,{id:ce,sender:"bot",text:q.text,spokenText:"",timestamp:N,isStreaming:!0}])}}}),ki(Nt.BotTtsText,q=>{if(console.log("🤖 Bot TTS text event:",JSON.stringify(q,null,2)),!q.text)return;let w=null;q.message_id?w=q.message_id:q.id&&(w=q.id);let E=null;if(P.current&&w&&_.current.get(P.current)===w&&(E=P.current),!E&&w){for(const[D,H]of _.current.entries())if(H===w){E=D;break}}if(E&&W.current.has(E)){console.log(`🚫 Ignoring TTS event - belongs to interrupted bot message: ${E}`);return}const N=P.current;if(N&&W.current.has(N)){console.log(`🚫 Ignoring TTS event for currently interrupted message: ${N}`);return}if(N&&w&&!_.current.has(N)&&(_.current.set(N,w),console.log(`🔗 Mapped bot message ${N} to TTS ID ${w}`)),N&&w){const D=_.current.get(N);if(D&&D!==w){console.log(`🚫 Ignoring TTS event - wrong TTS ID. Expected: ${D}, Got: ${w}`);return}}const ce=`${w||"unknown"}-${q.text}`;if(z.current.add(ce),w&&te.current&&w!==te.current&&(console.log(`🔄 TTS message ID changed from ${te.current} to ${w}`),oe.current)){console.log("🆕 Creating new bot message due to TTS message ID change during interruption");const D=new Date,H=`bot-${D.getTime()}`;P.current=H,te.current=w,X.current.tts=!0,_.current.set(H,w),i(K=>[...K,{id:H,sender:"bot",text:q.text,spokenText:q.text,timestamp:D,isStreaming:!0}]);return}if(w&&(te.current=w),P.current)i(D=>D.map(H=>H.id===P.current?{...H,spokenText:(H.spokenText||"")+q.text}:H));else{console.log("⚠️ TTS text arrived after bot completed"),console.log("🚫 Ignoring orphaned TTS event - no current bot message");return}});const J=()=>{G.current&&(clearTimeout(G.current),G.current=null)},se=()=>{J(),G.current=setTimeout(()=>{console.log("⏰ Pending timeout triggered - finalizing user message"),i(q=>q.map(w=>{var E;return w.id===Q.current&&w.isPending?(console.log(`🔒 Auto-finalizing pending message: ${w.id}`),{...w,isPending:!1,segments:(E=w.segments)==null?void 0:E.map(N=>({...N,isFinal:!0}))}):w})),G.current=null},2500)},R=q=>{const w=q.toLowerCase();return w.includes("rate")||w.includes("percentage")||w.includes("percent")?"percentage":w.includes("volume")||w.includes("count")||w.includes("total")||w.includes("amount")||w.includes("transaction")||w.includes("order")||w.includes("number")||w.includes("quantity")?"volume":w.includes("latency")||w.includes("time")||w.includes("duration")?"latency":"default"},ue=(q,w)=>{switch(w){case"percentage":return`${q}%`;case"volume":return q>=1e7?`${(q/1e7).toFixed(1)} Cr`:q>=1e5?`${(q/1e5).toFixed(1)} L`:q>=1e3?`${(q/1e3).toFixed(1)} K`:q.toLocaleString("en-IN");case"latency":return`${q.toFixed(2)} s`;default:return q.toString()}},ye=(q,w,E)=>{const N=[...q].sort((ve,_e)=>new Date(ve[w]).getTime()-new Date(_e[w]).getTime()),ce=Object.keys(q[0]).filter(ve=>ve!==w&&ve!==E);if(ce.length===0){const ve=[...new Set(N.map(we=>we[w]))],_e=ve.map(we=>{const Ee=N.find(Re=>Re[w]===we);return Ee?Number(Ee[E]||0):null});return{hasDimensions:!1,series:[{type:"line",name:E.replace(/_/g," "),data:_e,connectNulls:!0}],categories:ve.map(we=>new Date(we).toLocaleString([],{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}))}}const D=ce[0],H=N.reduce((ve,_e)=>{const we=_e[D];return ve[we]||(ve[we]=[]),ve[we].push(_e),ve},{}),K=[...new Set(N.map(ve=>ve[w]))],re=["#7856FF","#FEBBB2","#72BEF4","#1E90FF","#E377C2","#7FE1D8","#CB80DC","#5CB7AF","#1F77B4","#9467BD","#0F7EA0","#17BECF","#7F7F7F","#BCBD22","#A0872C","#006400","#B3596E","#4B0082","#4B6D8C"],le=Object.entries(H).map(([ve,_e],we)=>{const Ee=new Map;_e.forEach(be=>{Ee.set(be[w],be[E])});const Re=K.map(be=>{const me=Ee.get(be);return me!==void 0?Number(me):null});return{type:"line",name:ve,color:re[we%re.length],data:Re,connectNulls:!0}}),ge=K.map(ve=>new Date(ve).toLocaleString([],{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}));return{hasDimensions:!0,series:le,categories:ge}},g=q=>{console.log("📈 Converting success data to chart format:",q);const w=[...q].sort((N,ce)=>new Date(N.order_created_at_time).getTime()-new Date(ce.order_created_at_time).getTime()),E={chart:{type:"line",height:300,backgroundColor:"transparent"},title:{text:"Success Rate Over Time",style:{fontSize:"16px",fontWeight:"bold"}},credits:{enabled:!1},xAxis:{categories:w.map(N=>new Date(N.order_created_at_time).toLocaleString([],{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})),labels:{formatter:function(){const N=String(this.value),ce=new Date(N);return ce.getHours()===0&&ce.getMinutes()===0?`${ce.getDate()}. ${ce.toLocaleString("default",{month:"short"})}`:N.split(", ")[1]},style:{color:"#9aa0a6"},rotation:0,align:"center"}},yAxis:{title:{text:""},gridLineColor:"#e0e0e0",gridLineDashStyle:"Dash",labels:{formatter:function(){return`${Number(this.value)}%`},style:{color:"#9aa0a6"}}},legend:{enabled:!1,align:"left",verticalAlign:"top",layout:"horizontal",y:10,itemStyle:{fontSize:"12px"},symbolRadius:0,symbolHeight:0,symbolWidth:0,useHTML:!0,labelFormatter:function(){const N=this.color||"#000",ce="name"in this?this.name:"";return'<span style="display: inline-flex; align-items: center;"><span style="background-color: '+N+'; width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 5px;"></span>'+ce+"</span>"}},plotOptions:{series:{marker:{enabled:!1,symbol:"circle",radius:4,states:{hover:{enabled:!0,radius:5}}},states:{hover:{lineWidthPlus:1}}}},tooltip:{shared:!0,useHTML:!0,backgroundColor:"rgba(255, 255, 255, 0)",borderWidth:0,shadow:!1,style:{padding:"0px"},formatter:function(){var re;const N=le=>le.replace(/_/g," ").replace(/\b\w/g,ge=>ge.toUpperCase()),ce=le=>{const ge=new Date(le),ve=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],_e=["January","February","March","April","May","June","July","August","September","October","November","December"],we=ve[ge.getDay()],Ee=ge.getDate(),Re=_e[ge.getMonth()],be=ge.getFullYear();let me=ge.getHours();const pe=ge.getMinutes(),xe=me>=12?"PM":"AM";me=me%12,me=me||12;const Te=pe<10?"0"+pe:pe;return`${we}, ${Ee} ${Re}, ${be} ${me}:${Te} ${xe}`};let D='<div style="border-radius: 12px; border: 1px solid #EAECF0; background: #FFF; box-shadow: 0px 6px 15px 0px rgba(0, 0, 0, 0.15), 0px 3px 2px -5px rgba(0, 0, 0, 0.04); padding: 16px;">';D+='<div style="display: flex; font-family: Inter, sans-serif; gap: 16px; align-items: stretch;">';const H=this.points?this.points[0].color:this.color||"#6366f1";if(D+=`<div style="background:${H}; width: 4px; flex-shrink: 0; border-radius: 4px; align-self: stretch;"></div>`,D+='<div style="display: flex; flex-direction: column; gap: 12px;">',D+='<div style="display: flex; flex-direction: column; gap: 4px;">',D+=`<div style="color: #525252; font-feature-settings: 'clig' off, 'liga' off; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 600; line-height: 18px;">${N("success_rate")}</div>`,D+="</div>",D+='<div class="flex flex-col gap-1" style="display: flex; flex-direction: column; gap: 6px;">',this.points)[...this.points].sort((ge,ve)=>(ve.y||0)-(ge.y||0)).forEach(ge=>{var Ee;const ve=`${ge.y.toFixed(2)}%`,_e="#D4F4E5",we="#008242";D+='<div class="flex items-center" style="display: flex; align-items: center;">',D+=`<div class="bg-jp-2-green-50 text-jp-2-green-200 rounded p-1 font-semibold mr-1.5 my-1" style="background-color: ${_e}; color: ${we}; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${ve}</div>`,D+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((Ee=ge.series)==null?void 0:Ee.name)||""}</div>`,D+="</div>"});else{const le=`${this.y.toFixed(2)}%`;D+='<div class="flex items-center" style="display: flex; align-items: center;">',D+=`<div class="bg-jp-2-green-50 text-jp-2-green-200 rounded p-1 font-semibold mr-1.5 my-1" style="background-color: #D4F4E5; color: #008242; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${le}</div>`,D+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((re=this.series)==null?void 0:re.name)||""}</div>`,D+="</div>"}const K=this.x?ce(String(this.x)):"";return D+=`<div class="font-medium text-jp-2-gray-300" style="font-weight: 500; color: #9AA0A6; font-size: 12px; margin-top: 4px;">${K}</div>`,D+="</div>",D+="</div>",D+="</div>",D+="</div>",D},xDateFormat:"%a, %d %B, %Y %H:%M"},series:[{type:"line",name:"Success Rate",data:w.map(N=>N.success_rate),color:"#6366f1",lineWidth:2,connectNulls:!0}]};return console.log("📈 Generated chart config:",E),E},C=q=>{console.log("🎨 Processing tool calls for visual data:",q);let w={};for(const E of q){if(console.log("🔧 Processing tool call:",{functionName:E.functionName,hasResult:!!E.result,result:E.result}),!E.result){console.log("⚠️ Skipping tool call - no result");continue}try{let N;if(typeof E.result=="string")try{N=JSON.parse(E.result),console.log("📊 Parsed JSON result:",N)}catch{console.log("⚠️ Failed to parse JSON, using string result:",E.result),N=E.result}else N=E.result,console.log("📊 Using object result:",N);const ce=Ol(JSON.stringify(E.arguments),E.functionName);if(console.log("📝 Generated description:",ce),N.success_data&&Array.isArray(N.success_data)){console.log("🔍 Found success_data array - applying proper detection logic");const D=N.success_data;if(console.log("🔍 Success data analysis:",{isArray:Array.isArray(D),length:D.length,firstItem:D[0],keys:D.length>0?Object.keys(D[0]):[]}),D.length===1){console.log("📊 Detected single item in success_data - creating single stat");const H=D[0],K=Object.keys(H)[0];if(K){const re={metric:K.replace(/_/g," "),value:H[K]===null?"N/A":H[K]};w.singleStat=re,w.description=ce}}else if(D.length>1){const H=D[0];if(Object.keys(H).find(re=>re.includes("_time"))){console.log("📈 Detected time series in success_data - creating chart");const re=g(D);w.chartData=re,w.description=ce}else console.log("📋 Detected multiple items without time in success_data - creating table"),w.tableData=D,w.description=ce}}else if(Array.isArray(N)&&N.length>0){const D=N[0],H=Object.keys(D).find(K=>K.includes("_time"));if(console.log("🔍 Data analysis:",{isArray:Array.isArray(N),length:N.length,firstItem:D,timeKey:H,keys:Object.keys(D)}),H){console.log("📈 Detected time series data - creating chart");const re=Object.keys(D).filter(le=>le!==H&&!["gateway","payment_gateway","dimension","group","category"].includes(le))[0];if(re){const le=ye(N,H,re),ge={chart:{type:"line"},title:{text:`${re.replace(/_/g," ")}`},credits:{enabled:!1},xAxis:{categories:le.categories,labels:{formatter:function(){const ve=String(this.value),_e=new Date(ve);return _e.getHours()===0&&_e.getMinutes()===0?`${_e.getDate()}. ${_e.toLocaleString("default",{month:"short"})}`:ve.split(", ")[1]},style:{color:"#9aa0a6"},rotation:0,align:"center"}},yAxis:{title:{text:""},gridLineColor:"#e0e0e0",gridLineDashStyle:"Dash",labels:{formatter:function(){var we;const ve=((we=this.chart.options.title)==null?void 0:we.text)||"",_e=R(ve.replace(/ /g,"_"));return ue(Number(this.value),_e)},style:{color:"#9aa0a6"}}},legend:{enabled:le.hasDimensions,align:"left",verticalAlign:"top",layout:"horizontal",y:10,itemStyle:{fontSize:"12px"},symbolRadius:0,symbolHeight:0,symbolWidth:0,useHTML:!0,labelFormatter:function(){const ve=this.color||"#000",_e="name"in this?this.name:"";return'<span style="display: inline-flex; align-items: center;"><span style="background-color: '+ve+'; width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 5px;"></span>'+_e+"</span>"}},plotOptions:{series:{marker:{enabled:!1,symbol:"circle",radius:4,states:{hover:{enabled:!0,radius:5}}},states:{hover:{lineWidthPlus:1}}}},tooltip:{shared:!0,useHTML:!0,backgroundColor:"rgba(255, 255, 255, 0)",borderWidth:0,shadow:!1,style:{padding:"0px"},formatter:function(){var me;const ve=R(re),_e=pe=>pe.replace(/_/g," ").replace(/\b\w/g,xe=>xe.toUpperCase()),we=pe=>{const xe=new Date(pe),Te=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ke=["January","February","March","April","May","June","July","August","September","October","November","December"],Ae=Te[xe.getDay()],De=xe.getDate(),ze=ke[xe.getMonth()],$e=xe.getFullYear();let Ge=xe.getHours();const qe=xe.getMinutes(),Je=Ge>=12?"PM":"AM";Ge=Ge%12,Ge=Ge||12;const rt=qe<10?"0"+qe:qe;return`${Ae}, ${De} ${ze}, ${$e} ${Ge}:${rt} ${Je}`};let Ee='<div style="border-radius: 12px; border: 1px solid #EAECF0; background: #FFF; box-shadow: 0px 6px 15px 0px rgba(0, 0, 0, 0.15), 0px 3px 2px -5px rgba(0, 0, 0, 0.04); padding: 16px;">';Ee+='<div style="display: flex; font-family: Inter, sans-serif; gap: 16px; align-items: stretch;">';const Re=this.points?this.points[0].color:this.color||"#3BA974";if(Ee+=`<div style="background:${Re}; width: 4px; flex-shrink: 0; border-radius: 4px; align-self: stretch;"></div>`,Ee+='<div style="display: flex; flex-direction: column; gap: 12px;">',Ee+='<div style="display: flex; flex-direction: column; gap: 4px;">',Ee+=`<div style="color: #525252; font-feature-settings: 'clig' off, 'liga' off; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 600; line-height: 18px;">${_e(re)}</div>`,Ee+="</div>",Ee+='<div class="flex flex-col gap-1" style="display: flex; flex-direction: column; gap: 6px;">',this.points)[...this.points].sort((xe,Te)=>(Te.y||0)-(xe.y||0)).forEach(xe=>{var $e,Ge;const Te=ue(xe.y||0,ve),ke=(($e=xe.series)==null?void 0:$e.name)==="Overall",Ae=ke?"bg-jp-2-gray-30 text-jp-2-gray-700":"bg-jp-2-green-50 text-jp-2-green-200",De=ke?"#E8E8E8":"#D4F4E5",ze=ke?"#424242":"#008242";Ee+='<div class="flex items-center" style="display: flex; align-items: center;">',Ee+=`<div class="${Ae} rounded p-1 font-semibold mr-1.5 my-1" style="background-color: ${De}; color: ${ze}; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${Te}</div>`,Ee+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((Ge=xe.series)==null?void 0:Ge.name)||""}</div>`,Ee+="</div>"});else{const pe=ue(this.y||0,ve);Ee+='<div class="flex items-center" style="display: flex; align-items: center;">',Ee+=`<div class="bg-jp-2-green-50 text-jp-2-green-200 rounded p-1 font-semibold mr-1.5 my-1" style="background-color: #D4F4E5; color: #008242; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${pe}</div>`,Ee+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((me=this.series)==null?void 0:me.name)||""}</div>`,Ee+="</div>"}const be=this.x?we(String(this.x)):"";return Ee+=`<div class="font-medium text-jp-2-gray-300" style="font-weight: 500; color: #9AA0A6; font-size: 12px; margin-top: 4px;">${be}</div>`,Ee+="</div>",Ee+="</div>",Ee+="</div>",Ee+="</div>",Ee},xDateFormat:"%a, %d %B, %Y %H:%M"},series:le.series};w.chartData=ge,w.description=ce}}else if(N.length===1){console.log("📊 Detected single item - creating single stat");const K=Object.keys(D)[0];if(K){const re={metric:K.replace(/_/g," "),value:D[K]===null?"N/A":D[K]};w.singleStat=re,w.description=ce}}else console.log("📋 Detected multiple items without time - creating table"),w.tableData=N,w.description=ce}else N.chartData||N.chart||N.series||N.categories||N.xAxis||N.yAxis?(console.log("📈 Detected pre-formatted chart data"),w.chartData=N.chartData||N.chart||N,w.description=ce):typeof N=="object"&&(N.metric||N.value)&&(console.log("📊 Detected single stat object"),w.singleStat=N,w.description=ce)}catch(N){console.error("❌ Error processing tool result for visual data:",N)}}return console.log("🎨 Final visual data:",w),Object.keys(w).length>0?w:null},k=q=>{if(console.log("📝 Enhanced transcript handler called with:",q),J(),T.current&&(clearTimeout(T.current),T.current=null),!q.text){console.log("🚫 Filtered: No text in transcript");return}const w=q.text.trim();if(w==="<noise>"){console.log("🚫 Filtered: Noise transcript blocked -",w);return}let E="unknown",N=!1,ce=q.timestamp;if(q.timestamp&&typeof q.timestamp=="string"&&q.timestamp.includes("|"))try{const re=q.timestamp.split("|");re.length>=3&&(ce=re[0],E=re[1],N=re[2].toLowerCase()==="true",console.log(`📝 Parsed from timestamp - messageId: ${E}, isFinal: ${N}`))}catch(re){console.warn("📝 Failed to parse attributes from timestamp:",re);return}else{console.log("📝 No custom timestamp data found, skipping transcript");return}const D=E!==$.current;let H=null;if(Q.current){const re=o.find(le=>le.id===Q.current);re&&re.isPending&&!re.text&&(H=re.id,console.log(`📝 Found existing empty message to reuse: ${H}`))}const K=(he.current||!Q.current)&&!H;D?(console.log(`🆕 New conversation turn detected: ${E}`),console.log(`📦 Need new message box: ${K} (bot started: ${he.current}, empty exists: ${!!H})`),ie&&A(),$.current=E,K?(console.log("📦 Creating new user message box"),he.current=!1,i(re=>{const le=re.map(we=>({...we,isPending:!1})),ge=ce?new Date(parseInt(ce)):new Date,ve=`user-${ge.getTime()}`;Q.current=ve;const _e={id:ve,sender:"user",text:q.text,timestamp:ge,isPending:!N,segments:[{messageId:E,text:q.text,isFinal:N}]};return console.log(`➕ Created new message box: ${ve}`),N||se(),[...le,_e]})):H?(console.log("📝 Filling existing empty message box"),he.current=!1,Q.current=H,i(re=>re.map(le=>le.id===H?(J(),{...le,text:q.text,isPending:!N,segments:[{messageId:E,text:q.text,isFinal:N}]}):le)),N||se()):(console.log("📝 Appending new conversation turn to existing message box"),i(re=>re.map(le=>{if(le.id===Q.current){const ge=le.segments?le.segments.map(we=>({...we,isFinal:!0})):[];ge.push({messageId:E,text:q.text,isFinal:N});const ve=ge.map(we=>we.text).join(" "),_e=!N;return _e&&se(),{...le,text:ve,segments:ge,isPending:_e}}return le})))):(console.log(`🔄 Updating existing segment for ${E}, isFinal: ${N}`),i(re=>re.map(le=>{if(le.id===Q.current){const ge=le.segments||[],ve=ge.findIndex(be=>be.messageId===E);let _e;ve>=0?_e=ge.map(be=>be.messageId===E?{...be,text:q.text,isFinal:N}:be):(console.warn(`📝 Segment ${E} not found, adding as new segment`),_e=[...ge,{messageId:E,text:q.text,isFinal:N}]);const we=_e.map(be=>be.text).join(" "),Re=!_e.every(be=>be.isFinal);return Re&&se(),console.log(`📝 Updated message ${le.id} with text: "${we}", isPending: ${Re}`),{...le,text:we,segments:_e,isPending:Re}}return le})))},Z=o.length===0;return Y.jsxs("div",{className:cn["simple-chat"],children:[Z?Y.jsx(Y.Fragment,{}):Y.jsxs("div",{ref:v,className:cn["messages-container"],children:[o.map(q=>q.sender==="bot"&&d[q.id]&&d[q.id].length>0?Y.jsx("div",{className:cn["bot-message-group"],children:Y.jsxs("div",{className:`${cn.message} ${cn.bot}`,children:[Y.jsx("div",{className:cn["message-icon"],children:Y.jsx("img",{src:r1,alt:"",width:"16",height:"16"})}),Y.jsxs("div",{className:cn["bot-content-wrapper"],children:[Y.jsx(T6,{toolCalls:d[q.id],isVisible:!0,isActive:!1}),q.visualData&&q.visualData.description&&Y.jsx("div",{className:cn["tool-description"],dangerouslySetInnerHTML:{__html:q.visualData.description}}),q.visualData&&Y.jsxs("div",{className:cn["visual-components"],children:[q.visualData.chartData&&Y.jsx("div",{className:cn["chart-container"],children:Y.jsx(u2,{options:q.visualData.chartData})}),q.visualData.singleStat&&Y.jsx("div",{className:cn["single-stat-container"],children:Y.jsx(d2,{metric:q.visualData.singleStat.metric,value:q.visualData.singleStat.value})}),q.visualData.tableData&&Y.jsx("div",{className:cn["table-container"],children:Y.jsx(h2,{data:q.visualData.tableData})})]}),Y.jsxs("div",{children:[q.isInterrupted?Y.jsx("span",{className:cn["spoken-text"],children:q.text}):q.spokenText!==void 0?Y.jsxs(Y.Fragment,{children:[Y.jsx("span",{className:cn["spoken-text"],children:q.spokenText}),Y.jsx("span",{className:cn["unspoken-text"],children:q.text.substring(q.spokenText.length)})]}):q.text,q.isStreaming&&Y.jsx("span",{className:cn["streaming-cursor"]},`cursor-${q.id}`)]})]})]})},q.id):q.isVisualOnly&&q.visualData?Y.jsx("div",{className:cn["bot-message-group"],children:Y.jsxs("div",{className:`${cn.message} ${cn.bot}`,children:[Y.jsx("div",{className:cn["message-icon"],children:Y.jsx("img",{src:r1,alt:"",width:"16",height:"16"})}),Y.jsxs("div",{className:cn["bot-content-wrapper"],children:[q.visualData.description&&Y.jsx("div",{className:cn["tool-description"],dangerouslySetInnerHTML:{__html:q.visualData.description}}),Y.jsxs("div",{className:cn["visual-components"],children:[q.visualData.chartData&&Y.jsx("div",{className:cn["chart-container"],children:Y.jsx(u2,{options:q.visualData.chartData})}),q.visualData.singleStat&&Y.jsx("div",{className:cn["single-stat-container"],children:Y.jsx(d2,{metric:q.visualData.singleStat.metric,value:q.visualData.singleStat.value})}),q.visualData.tableData&&Y.jsx("div",{className:cn["table-container"],children:Y.jsx(h2,{data:q.visualData.tableData})})]})]})]})},q.id):Y.jsx("div",{children:Y.jsxs("div",{className:`${cn.message} ${cn[q.sender]}`,children:[q.sender==="bot"&&Y.jsx("div",{className:cn["message-icon"],children:Y.jsx("img",{src:r1,alt:"",width:"16",height:"16"})}),q.sender==="bot"?Y.jsxs("div",{children:[q.isPending&&!q.text?Y.jsx("div",{className:cn["pending-message"],children:Y.jsxs("span",{className:cn["loading-dots"],children:[Y.jsx("span",{}),Y.jsx("span",{}),Y.jsx("span",{})]})}):q.isInterrupted?Y.jsx("span",{className:cn["spoken-text"],children:q.text}):q.spokenText!==void 0?Y.jsxs(Y.Fragment,{children:[Y.jsx("span",{className:cn["spoken-text"],children:q.spokenText}),Y.jsx("span",{className:cn["unspoken-text"],children:q.text.substring(q.spokenText.length)})]}):q.text,q.isStreaming&&Y.jsx("span",{className:cn["streaming-cursor"]},`cursor-${q.id}`)]}):Y.jsxs("div",{className:`${cn["message-bubble"]} ${q.isPending?cn.pending:""} ${q.text==="inaudible"?cn.inaudible:""}`,children:[q.isPending&&!q.text?Y.jsx("div",{className:cn["pending-message"],children:Y.jsxs("span",{className:cn["loading-dots"],children:[Y.jsx("span",{}),Y.jsx("span",{}),Y.jsx("span",{})]})}):q.text,q.isStreaming&&Y.jsx("span",{className:cn["streaming-cursor"]},`cursor-${q.id}`)]})]})},q.id)),y&&Y.jsxs("div",{className:`${cn.message} ${cn.bot}`,children:[Y.jsx("div",{className:cn["message-icon"],children:Y.jsx("img",{src:r1,alt:"",width:"16",height:"16"})}),Y.jsx(T6,{toolCalls:r,isVisible:!0,isActive:!0})]}),Y.jsx("div",{style:{height:"100px"}})]}),B&&Y.jsx("div",{className:cn["connecting-pill"],children:Y.jsx("span",{children:"Waiting for Genius..."})}),Y.jsx(M8,{message:O,isVisible:ee})]})}const li={"bottom-bar-container":"genius-sdk__BottomBar-module__bottom-bar-container___BGRI7","bottom-bar-glow":"genius-sdk__BottomBar-module__bottom-bar-glow___A493n",speaking:"genius-sdk__BottomBar-module__speaking___RmtZb","fade-out":"genius-sdk__BottomBar-module__fade-out___wxLht","glow-bar":"genius-sdk__BottomBar-module__glow-bar___V3Qwb","bottom-bar":"genius-sdk__BottomBar-module__bottom-bar___XaxVJ","bar-content":"genius-sdk__BottomBar-module__bar-content___6OsEK","bar-button":"genius-sdk__BottomBar-module__bar-button___iPlFP","attachment-container":"genius-sdk__BottomBar-module__attachment-container___0Kbir","waveform-send-container":"genius-sdk__BottomBar-module__waveform-send-container___HvkWS","microphone-icon-container":"genius-sdk__BottomBar-module__microphone-icon-container___qgstN",disabled:"genius-sdk__BottomBar-module__disabled___FdMpB","x-button":"genius-sdk__BottomBar-module__x-button___LrIa0","voice-container":"genius-sdk__BottomBar-module__voice-container___APP75",muted:"genius-sdk__BottomBar-module__muted___G3eus","recording-indicator":"genius-sdk__BottomBar-module__recording-indicator___FwtQv","mic-button":"genius-sdk__BottomBar-module__mic-button___klzpP","mic-tooltip":"genius-sdk__BottomBar-module__mic-tooltip___yr63U","speaker-tooltip":"genius-sdk__BottomBar-module__speaker-tooltip___J3r-b","speaker-button":"genius-sdk__BottomBar-module__speaker-button___QsWdq","tooltip-arrow":"genius-sdk__BottomBar-module__tooltip-arrow___pgGVw"};function E8(){const o=nm(),i=w3(),r=i==="ready",{isMuted:c,setIsMuted:d}=w8(),[f,y]=Ue.useState(!1),[x,v]=Ue.useState(!1),[S,j]=Ue.useState(!1);ki(Nt.UserStartedSpeaking,()=>{console.log("🎤 BottomBar: User started speaking - showing glow"),y(!0),v(!0)}),ki(Nt.UserStoppedSpeaking,()=>{console.log("🎤 BottomBar: User stopped speaking - starting fade out"),y(!1)});const B=Ue.useCallback(async()=>{try{try{if(navigator.mediaDevices&&typeof navigator.mediaDevices.enumerateDevices=="function"){const V=await navigator.mediaDevices.enumerateDevices();console.log("Active devices:",V.filter(ae=>ae.kind==="audioinput"))}}catch{}if(o&&!c)try{typeof o.enableMic=="function"&&await o.enableMic(!1)}catch(V){console.warn("Failed to mute microphone:",V)}o&&(i==="ready"||i==="connected"||i==="connecting")&&(console.log("🔌 Disconnecting RTVI client..."),await o.disconnect(),console.log("✅ RTVI client disconnected"));try{if(o&&o.transport){const V=o.transport;if(V.room&&typeof V.room.leave=="function"&&(console.log("🎤 Leaving Daily room..."),await V.room.leave()),V.room&&typeof V.room.destroy=="function"&&(console.log("🎤 Destroying Daily instance..."),await V.room.destroy()),V.room&&typeof V.room.setLocalAudio=="function"&&await V.room.setLocalAudio(!1),V.room&&typeof V.room.participants=="function"){const ae=V.room.participants();if(ae&&ae.local){const ie=ae.local.tracks;ie&&Object.values(ie).forEach(U=>{U&&U.persistentTrack&&(U.persistentTrack.stop(),console.log("🎤 Stopped Daily track"))})}}}}catch(V){console.warn("Error stopping media streams:",V)}await new Promise(V=>setTimeout(V,100));const O=window.sendConversationHistory;O&&typeof O=="function"&&O(),window.postMessage({type:"CLOSE_VOICE_ASSISTANT"},"*")}catch(O){console.error("❌ Error during close:",O),window.postMessage({type:"CLOSE_VOICE_ASSISTANT"},"*")}},[o,i,c]),ee=Ue.useCallback(async()=>{if(!o||!r){console.warn("Cannot toggle mute: client not ready");return}const O=!c;console.log(`🎤 BottomBar: Toggling mute from ${c} to ${O}`);try{let V=!1;if(typeof o.enableMic=="function"&&(await o.enableMic(!O),console.log(`✅ RTVI client.enableMic(${!O})`),V=!0),!V&&o.transport){const ae=o.transport;typeof ae.setLocalAudio=="function"?(await ae.setLocalAudio(!O),console.log(`✅ transport.setLocalAudio(${!O})`),V=!0):ae.room&&typeof ae.room.setLocalAudio=="function"&&(await ae.room.setLocalAudio(!O),console.log(`✅ transport.room.setLocalAudio(${!O})`),V=!0)}V||console.warn("⚠️ No mic control method found, but updating UI state"),d(O),console.log(`🎤 Microphone is now ${O?"MUTED":"UNMUTED"}`)}catch(V){console.error("Failed to toggle microphone:",V),d(O)}},[o,r,c,d]),ne=Ue.useCallback(async()=>{if(!o||!r){console.warn("Cannot toggle speaker: client not ready");return}const O=!S;console.log(`🔊 BottomBar: Toggling AI voice mute from ${S} to ${O}`);try{let V=!1;if(o.transport){const ae=o.transport;if(typeof ae.setBotAudio=="function"?(await ae.setBotAudio(!O),console.log(`✅ transport.setBotAudio(${!O})`),V=!0):ae.room&&typeof ae.room.setBotAudio=="function"?(await ae.room.setBotAudio(!O),console.log(`✅ transport.room.setBotAudio(${!O})`),V=!0):typeof ae.setRemoteAudio=="function"?(await ae.setRemoteAudio(!O),console.log(`✅ transport.setRemoteAudio(${!O})`),V=!0):ae.room&&typeof ae.room.setRemoteAudio=="function"&&(await ae.room.setRemoteAudio(!O),console.log(`✅ transport.room.setRemoteAudio(${!O})`),V=!0),!V&&ae.room&&typeof ae.room.updateParticipant=="function"&&typeof ae.room.participants=="function")try{const ie=ae.room.participants(),U=Object.values(ie).find(P=>P&&!P.local&&P.session_id);U&&(await ae.room.updateParticipant(U.session_id,{setAudio:!O}),console.log(`✅ transport.room.updateParticipant bot audio(${!O})`),V=!0)}catch(ie){console.log("Could not update bot participant:",ie)}}if(!V)try{document.querySelectorAll("audio, video").forEach(ie=>{ie&&typeof ie.muted<"u"&&(ie.muted=O,console.log(`✅ Muted ${ie.tagName} element: ${O}`),V=!0)}),(window.AudioContext||window.webkitAudioContext)&&console.log("📱 Web Audio API available for advanced control")}catch(ae){console.log("Web Audio control failed:",ae)}V||console.warn("⚠️ No AI voice control method found, but updating UI state. The mute state will be visual only."),j(O),console.log(`🔊 AI Voice is now ${O?"MUTED":"UNMUTED"}`)}catch(V){console.error("Failed to toggle AI voice:",V),j(O)}},[o,r,S]);return Y.jsxs("div",{className:li["bottom-bar-container"],children:[x&&Y.jsx("div",{className:`${li["bottom-bar-glow"]} ${f?li.speaking:li["fade-out"]}`,onAnimationEnd:()=>{f||v(!1)},children:Y.jsx("div",{className:li["glow-bar"]})}),Y.jsx("div",{className:li["bottom-bar"],children:Y.jsxs("div",{className:li["bar-content"],children:[Y.jsx("div",{className:li["attachment-container"],children:Y.jsx("button",{className:`${li["bar-button"]} ${li["x-button"]}`,onClick:B,children:Y.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:Y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.250586 0.250586C0.584702 -0.0835288 1.12641 -0.0835288 1.46052 0.250586L5.98889 4.77895L10.5173 0.250586C10.8514 -0.0835288 11.3931 -0.0835288 11.7272 0.250586C12.0613 0.584702 12.0613 1.12641 11.7272 1.46052L7.19883 5.98889L11.7272 10.5173C12.0613 10.8514 12.0613 11.3931 11.7272 11.7272C11.3931 12.0613 10.8514 12.0613 10.5173 11.7272L5.98889 7.19883L1.46052 11.7272C1.12641 12.0613 0.584702 12.0613 0.250586 11.7272C-0.0835288 11.3931 -0.0835288 10.8514 0.250586 10.5173L4.77895 5.98889L0.250586 1.46052C-0.0835288 1.12641 -0.0835288 0.584702 0.250586 0.250586Z",fill:"#F04438"})})})}),Y.jsxs("div",{className:li["voice-container"],children:[Y.jsx("div",{className:`${li["waveform-send-container"]} ${r?"":li.disabled} ${S?li.muted:""}`,onClick:r?ne:void 0,children:Y.jsxs("button",{className:`${li["bar-button"]} ${li["speaker-button"]} ${S?li.muted:""}`,disabled:!r,children:[S?Y.jsx("svg",{width:"15",height:"16",viewBox:"0 0 22 19",fill:"none",children:Y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 2.70711L6.17574 5.53138C6.16402 5.5431 6.15202 5.55517 6.13972 5.56753C6.00579 5.70218 5.83714 5.87173 5.63079 5.99818C5.45185 6.10784 5.25676 6.18865 5.05268 6.23764C4.81735 6.29414 4.57821 6.2935 4.3883 6.29299C4.37086 6.29295 4.35383 6.2929 4.33726 6.2929H2.60001C2.30348 6.2929 2.14122 6.29368 2.02464 6.3032C2.02 6.30358 2.0156 6.30397 2.01145 6.30435C2.01107 6.3085 2.01069 6.31289 2.01031 6.31753C2.00078 6.43412 2.00001 6.59637 2.00001 6.8929V11.6929C2.00001 11.9894 2.00078 12.1517 2.01031 12.2683C2.01069 12.2729 2.01107 12.2773 2.01145 12.2815C2.0156 12.2818 2.02 12.2822 2.02464 12.2826C2.14122 12.2921 2.30348 12.2929 2.60001 12.2929H4.33726C4.35383 12.2929 4.37086 12.2929 4.3883 12.2928C4.57821 12.2923 4.81735 12.2917 5.05268 12.3482C5.25676 12.3972 5.45185 12.478 5.63079 12.5876C5.83715 12.7141 6.00579 12.8836 6.13972 13.0183C6.15202 13.0306 6.16403 13.0427 6.17574 13.0544L9 15.8787V2.70711ZM9.38232 0.00463216C9.86099 -0.0330405 10.3288 0.160721 10.6406 0.525836C10.9199 0.852783 10.9642 1.24604 10.9811 1.43693C11.0001 1.6509 11 1.91666 11 2.18703C11 2.19944 11 2.21185 11 2.22427L11 16.3988C11 16.6691 11.0001 16.9349 10.9811 17.1489C10.9642 17.3398 10.9199 17.733 10.6406 18.06C10.3288 18.4251 9.86099 18.6188 9.38232 18.5812C8.95368 18.5474 8.64424 18.3007 8.4973 18.1777C8.33259 18.0398 8.1447 17.8519 7.95355 17.6607L4.76153 14.4686C4.6689 14.376 4.6225 14.3299 4.58738 14.2979C4.58646 14.2971 4.58557 14.2963 4.58472 14.2955C4.58358 14.2954 4.58238 14.2954 4.58114 14.2953C4.53365 14.2931 4.46826 14.2929 4.33726 14.2929L2.56812 14.2929C2.31574 14.2929 2.06994 14.293 1.86178 14.276C1.63318 14.2573 1.36345 14.2132 1.09202 14.0749C0.715699 13.8832 0.409738 13.5772 0.217992 13.2009C0.0796948 12.9295 0.0356272 12.6597 0.0169504 12.4311C-5.6861e-05 12.223 -2.74161e-05 11.9772 2.50544e-06 11.7248L5.12804e-06 6.8929C5.12804e-06 6.88226 3.81674e-06 6.87162 2.50544e-06 6.861C-2.74161e-05 6.60862 -5.6861e-05 6.36283 0.0169504 6.15467C0.0356272 5.92608 0.0796948 5.65634 0.217992 5.38492C0.409739 5.0086 0.7157 4.70263 1.09202 4.51089C1.36345 4.37259 1.63318 4.32852 1.86178 4.30985C2.06993 4.29284 2.31572 4.29287 2.56811 4.2929C2.57873 4.2929 2.58936 4.2929 2.60001 4.2929H4.33726C4.46826 4.2929 4.53365 4.29266 4.58114 4.29049C4.58238 4.29043 4.58358 4.29038 4.58472 4.29032C4.58557 4.28955 4.58646 4.28875 4.58738 4.28791C4.6225 4.25586 4.6689 4.2098 4.76153 4.11717L7.92721 0.951479C7.93599 0.942698 7.94477 0.93392 7.95354 0.925149C8.1447 0.733934 8.33259 0.545984 8.4973 0.408092C8.64424 0.285073 8.95368 0.0383667 9.38232 0.00463216ZM14.2929 5.58579C14.6834 5.19527 15.3166 5.19527 15.7071 5.58579L18 7.87869L20.2929 5.58579C20.6834 5.19527 21.3166 5.19527 21.7071 5.58579C22.0976 5.97632 22.0976 6.60948 21.7071 7.00001L19.4142 9.2929L21.7071 11.5858C22.0976 11.9763 22.0976 12.6095 21.7071 13C21.3166 13.3905 20.6834 13.3905 20.2929 13L18 10.7071L15.7071 13C15.3166 13.3905 14.6834 13.3905 14.2929 13C13.9024 12.6095 13.9024 11.9763 14.2929 11.5858L16.5858 9.2929L14.2929 7.00001C13.9024 6.60948 13.9024 5.97632 14.2929 5.58579Z",fill:"#F04438"})}):Y.jsx("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",children:Y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7 2.31609L5.28369 4.7324C5.27367 4.74243 5.26339 4.75275 5.25287 4.76333C5.13828 4.87853 4.994 5.02359 4.81745 5.13178C4.66436 5.2256 4.49745 5.29473 4.32285 5.33665C4.12151 5.38499 3.91692 5.38444 3.75444 5.38401C3.73951 5.38397 3.72495 5.38393 3.71077 5.38393H2.22445C1.97075 5.38393 1.83194 5.38459 1.73219 5.39274C1.72822 5.39307 1.72446 5.39339 1.72091 5.39372C1.72058 5.39727 1.72026 5.40103 1.71993 5.405C1.71178 5.50475 1.71112 5.64356 1.71112 5.89726V10.0039C1.71112 10.2576 1.71178 10.3964 1.71993 10.4962C1.72026 10.5002 1.72058 10.5039 1.72091 10.5075C1.72446 10.5078 1.72822 10.5081 1.73219 10.5084C1.83194 10.5166 1.97075 10.5173 2.22445 10.5173H3.71077C3.72495 10.5173 3.73951 10.5172 3.75444 10.5172C3.91692 10.5167 4.12151 10.5162 4.32285 10.5645C4.49745 10.6065 4.66436 10.6756 4.81745 10.7694C4.994 10.8776 5.13829 11.0227 5.25287 11.1379C5.2634 11.1484 5.27367 11.1588 5.28369 11.1688L7.7 13.5851V2.31609ZM8.02709 0.00396307C8.43663 -0.028268 8.83684 0.137506 9.10364 0.449882C9.34254 0.729603 9.38049 1.06606 9.39496 1.22937C9.41119 1.41243 9.41115 1.63981 9.41112 1.87113C9.41112 1.88174 9.41112 1.89236 9.41112 1.90299L9.41112 14.0301C9.41115 14.2614 9.41119 14.4888 9.39496 14.6718C9.38049 14.8351 9.34254 15.1716 9.10364 15.4513C8.83684 15.7637 8.43663 15.9295 8.02709 15.8972C7.66037 15.8684 7.39563 15.6573 7.26991 15.552C7.129 15.4341 6.96824 15.2733 6.8047 15.1097L4.07375 12.3787C3.9945 12.2995 3.9548 12.2601 3.92476 12.2326C3.92397 12.2319 3.92321 12.2312 3.92248 12.2306C3.9215 12.2305 3.92048 12.2305 3.91942 12.2304C3.87879 12.2286 3.82285 12.2284 3.71077 12.2284L2.19717 12.2284C1.98124 12.2284 1.77095 12.2284 1.59285 12.2139C1.39728 12.1979 1.16651 12.1602 0.934287 12.0419C0.61232 11.8778 0.350554 11.6161 0.186504 11.2941C0.0681833 11.0619 0.030481 10.8311 0.014502 10.6355C-4.86477e-05 10.4574 -2.3456e-05 10.2471 2.14354e-06 10.0312L4.38733e-06 5.89726C4.38733e-06 5.88815 3.26543e-06 5.87906 2.14354e-06 5.86997C-2.3456e-05 5.65404 -4.86477e-05 5.44375 0.014502 5.26566C0.030481 5.07009 0.0681833 4.83932 0.186504 4.6071C0.350554 4.28513 0.612321 4.02337 0.934287 3.85932C1.16651 3.74099 1.39728 3.70329 1.59285 3.68731C1.77094 3.67276 1.98123 3.67279 2.19716 3.67281C2.20625 3.67281 2.21534 3.67282 2.22445 3.67282H3.71077C3.82285 3.67282 3.87879 3.67261 3.91942 3.67075C3.92048 3.6707 3.9215 3.67066 3.92248 3.67061C3.92321 3.66995 3.92397 3.66926 3.92476 3.66854C3.9548 3.64112 3.9945 3.60171 4.07375 3.52246L6.78217 0.814043C6.78968 0.806531 6.79719 0.799021 6.80469 0.791516C6.96824 0.627921 7.12899 0.46712 7.26991 0.349145C7.39563 0.243896 7.66037 0.0328248 8.02709 0.00396307ZM12.1258 3.82666C12.5134 3.55633 13.0467 3.65136 13.317 4.03891C14.0905 5.14789 14.5443 6.49753 14.5443 7.95059C14.5443 9.40365 14.0905 10.7533 13.317 11.8623C13.0467 12.2498 12.5134 12.3449 12.1258 12.0745C11.7383 11.8042 11.6432 11.2709 11.9136 10.8834C12.4933 10.0522 12.8332 9.04238 12.8332 7.95059C12.8332 6.85881 12.4933 5.84897 11.9136 5.01783C11.6432 4.63029 11.7383 4.09698 12.1258 3.82666Z",fill:"#5F5F5F"})}),Y.jsxs("div",{className:li["speaker-tooltip"],children:[Y.jsx("span",{children:"Mute AI Voice"}),Y.jsx("div",{className:li["tooltip-arrow"]})]})]})}),Y.jsxs("div",{className:`${li["microphone-icon-container"]} ${r?"":li.disabled} ${c?li.muted:""}`,onClick:r?ee:void 0,children:[Y.jsxs("button",{className:`${li["bar-button"]} ${li["mic-button"]} ${c?li.muted:""}`,disabled:!r,children:[c?Y.jsx("svg",{width:"14",height:"19",viewBox:"0 0 22 22",fill:"none",children:Y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L13.8295 12.4128C13.844 12.4272 13.858 12.442 13.8714 12.4572L15.8907 14.4765C16.5892 13.4957 17 12.2958 17 11V9C17 8.44772 17.4477 8 18 8C18.5523 8 19 8.44772 19 9V11C19 12.8487 18.3729 14.551 17.3199 15.9056L21.7071 20.2929C22.0976 20.6834 22.0976 21.3166 21.7071 21.7071C21.3166 22.0976 20.6834 22.0976 20.2929 21.7071L15.9056 17.3199C14.7991 18.18 13.4607 18.756 12 18.9381V20H15C15.5523 20 16 20.4477 16 21C16 21.5523 15.5523 22 15 22H7C6.44772 22 6 21.5523 6 21C6 20.4477 6.44772 20 7 20H10V18.9381C6.05369 18.446 3 15.0796 3 11V9C3 8.44772 3.44772 8 4 8C4.55228 8 5 8.44772 5 9V11C5 14.3137 7.68629 17 11 17C12.2958 17 13.4957 16.5892 14.4765 15.8907L13.0318 14.446C12.4364 14.7977 11.7414 15 11 15C8.79086 15 7 13.2091 7 11V8.41421L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683417 0.292893 0.292893ZM9 10.4142V11C9 12.1046 9.89543 13 11 13C11.1793 13 11.353 12.9765 11.5182 12.9324L9 10.4142ZM7.41681 2.22066C8.07033 0.906528 9.42838 1.49012e-08 11 1.49012e-08C13.2091 1.49012e-08 15 1.79086 15 4V8.4C15 8.95229 14.5523 9.4 14 9.4C13.4477 9.4 13 8.95229 13 8.4V4C13 2.89543 12.1046 2 11 2C10.2164 2 9.53616 2.45051 9.2076 3.11121C8.96168 3.60572 8.36144 3.80725 7.86693 3.56133C7.37242 3.31541 7.17089 2.71517 7.41681 2.22066Z",fill:"#F04438"})}):Y.jsx("svg",{width:"14",height:"19",viewBox:"0 0 14 19",fill:"none",children:Y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.42222 3.42222C3.42222 1.53218 4.9544 0 6.84444 0C8.73449 0 10.2667 1.53218 10.2667 3.42222V9.41111C10.2667 11.3012 8.73449 12.8333 6.84444 12.8333C4.9544 12.8333 3.42222 11.3012 3.42222 9.41111V3.42222ZM6.84444 1.71111C5.89942 1.71111 5.13333 2.4772 5.13333 3.42222V9.41111C5.13333 10.3561 5.89942 11.1222 6.84444 11.1222C7.78947 11.1222 8.55556 10.3561 8.55556 9.41111V3.42222C8.55556 2.4772 7.78947 1.71111 6.84444 1.71111ZM0.855556 6.84444C1.32807 6.84444 1.71111 7.22749 1.71111 7.7V9.41111C1.71111 12.2462 4.00938 14.5444 6.84444 14.5444C9.67951 14.5444 11.9778 12.2462 11.9778 9.41111V7.7C11.9778 7.22749 12.3608 6.84444 12.8333 6.84444C13.3058 6.84444 13.6889 7.22749 13.6889 7.7V9.41111C13.6889 12.9015 11.0763 15.7816 7.7 16.2026V17.1111H10.2667C10.7392 17.1111 11.1222 17.4942 11.1222 17.9667C11.1222 18.4392 10.7392 18.8222 10.2667 18.8222H3.42222C2.94971 18.8222 2.56667 18.4392 2.56667 17.9667C2.56667 17.4942 2.94971 17.1111 3.42222 17.1111H5.98889V16.2026C2.6126 15.7816 0 12.9015 0 9.41111V7.7C0 7.22749 0.383045 6.84444 0.855556 6.84444Z",fill:"#5F5F5F"})}),Y.jsxs("div",{className:li["mic-tooltip"],children:[Y.jsx("span",{children:c?"Turn On Microphone":"Mute in noisy places."}),Y.jsx("div",{className:li["tooltip-arrow"]})]})]}),r&&!c&&f&&Y.jsx("div",{className:li["recording-indicator"],children:Y.jsxs("svg",{width:"11",height:"14",viewBox:"0 0 11 14",fill:"none",children:[Y.jsxs("rect",{x:"0",y:"4",width:"2",height:"6",rx:"1",fill:"#1B85FF",children:[Y.jsx("animate",{attributeName:"height",values:"6;10;6",dur:"1.2s",repeatCount:"indefinite",begin:"0s"}),Y.jsx("animate",{attributeName:"y",values:"4;2;4",dur:"1.2s",repeatCount:"indefinite",begin:"0s"})]}),Y.jsxs("rect",{x:"4.5",y:"5",width:"2",height:"4",rx:"1",fill:"#1B85FF",children:[Y.jsx("animate",{attributeName:"height",values:"4;8;4",dur:"1.2s",repeatCount:"indefinite",begin:"0.3s"}),Y.jsx("animate",{attributeName:"y",values:"5;3;5",dur:"1.2s",repeatCount:"indefinite",begin:"0.3s"})]}),Y.jsxs("rect",{x:"9",y:"1",width:"2",height:"12",rx:"1",fill:"#1B85FF",children:[Y.jsx("animate",{attributeName:"height",values:"12;14;12",dur:"1.2s",repeatCount:"indefinite",begin:"0.6s"}),Y.jsx("animate",{attributeName:"y",values:"1;0;1",dur:"1.2s",repeatCount:"indefinite",begin:"0.6s"})]})]})})]})]})]})})]})}const D8={app:"genius-sdk__App-module__app___ksh-Z"};function O8(){const{initialHistory:o}=k6(),{sendDataToParent:i}=M6(o);return window.sendConversationHistory=i,Y.jsxs("div",{className:D8.app,children:[Y.jsx(T8,{}),Y.jsx(A8,{}),Y.jsx(E8,{}),Y.jsx(C3,{})]})}function A6(){return Y.jsx(S8,{children:Y.jsx(k8,{children:Y.jsx(C8,{children:Y.jsx(O8,{})})})})}const Mf=o=>{const i=o.toLowerCase();return i.includes("rate")||i.includes("percentage")||i.includes("percent")?"percentage":i.includes("volume")||i.includes("count")||i.includes("total")||i.includes("amount")||i.includes("transaction")||i.includes("order")||i.includes("number")||i.includes("quantity")?"volume":i.includes("latency")||i.includes("time")||i.includes("duration")?"latency":"default"},Ul=(o,i)=>{switch(i){case"percentage":return`${o}%`;case"volume":return o>=1e7?`${(o/1e7).toFixed(1)} Cr`:o>=1e5?`${(o/1e5).toFixed(1)} L`:o>=1e3?`${(o/1e3).toFixed(1)} K`:o.toLocaleString("en-IN");case"latency":return`${o.toFixed(2)} s`;default:return o.toString()}},Ux=(o,i,r)=>{const c=[...o].sort((B,ee)=>new Date(B[i]).getTime()-new Date(ee[i]).getTime()),d=Object.keys(o[0]).filter(B=>B!==i&&B!==r);if(d.length===0){const B=[...new Set(c.map(ne=>ne[i]))],ee=B.map(ne=>{const O=c.find(V=>V[i]===ne);return O?Number(O[r]||0):null});return{hasDimensions:!1,series:[{type:"line",name:r.replace(/_/g," "),data:ee,connectNulls:!0}],categories:B.map(ne=>new Date(ne).toLocaleString([],{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}))}}const f=d[0],y=c.reduce((B,ee)=>{const ne=ee[f];return B[ne]||(B[ne]=[]),B[ne].push(ee),B},{}),x=[...new Set(c.map(B=>B[i]))],v=["#7856FF","#FEBBB2","#72BEF4","#1E90FF","#E377C2","#7FE1D8","#CB80DC","#5CB7AF","#1F77B4","#9467BD","#0F7EA0","#17BECF","#7F7F7F","#BCBD22","#A0872C","#006400","#B3596E","#4B0082","#4B6D8C"],S=Object.entries(y).map(([B,ee],ne)=>{const O=new Map;ee.forEach(ae=>{O.set(ae[i],ae[r])});const V=x.map(ae=>{const ie=O.get(ae);return ie!==void 0?Number(ie):null});return{type:"line",name:B,color:v[ne%v.length],data:V,connectNulls:!0}}),j=x.map(B=>new Date(B).toLocaleString([],{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}));return{hasDimensions:!0,series:S,categories:j}},E6=()=>{try{const o=localStorage.getItem("login")||"";return o?`Basic ${btoa(o+":")}`:(console.warn("No token found in localStorage"),"")}catch(o){return console.error("Error getting auth header:",o),""}},j8=({config:o={}})=>{const{onClose:i,onMessage:r,placeholder:c="Ask Genius",welcomeMessage:d="Your go-to for all payment related inquiries!",suggestions:f=["Today's Success Rate","Last Week Volume","Today's Success Rate","Weekly Updates"],endpoint:y="https://genius.juspay.in/api/v3/analytics/"}=o,[x,v]=Ue.useState(""),[S,j]=Ue.useState([]),[B,ee]=Ue.useState(!1),[ne,O]=Ue.useState(!1),[V,ae]=Ue.useState(!1),[ie,U]=Ue.useState(!1),[P,X]=Ue.useState(!1),[Q,$]=Ue.useState(""),[I,he]=Ue.useState(!1),[oe,te]=Ue.useState(null),[z,W]=Ue.useState(""),[G,T]=Ue.useState([]),[_,A]=Ue.useState(!1),[L,J]=Ue.useState(null),[se,R]=Ue.useState(!1),[ue,ye]=Ue.useState(null),[g,C]=Ue.useState(!1),k=Ue.useRef(null),Z=Ue.useRef(null),q=Ue.useRef(null),w=Ue.useRef(null),E=Ue.useRef(null),N=Ue.useRef(null),ce=Ue.useRef(!1),D=Ue.useRef(0),H=Ue.useRef(null);Un.setOptions({breaks:!0,gfm:!0,pedantic:!1});const K=Ue.useCallback(Ne=>{Ne.stopPropagation();const ut=Ne.currentTarget,{scrollTop:lt,scrollHeight:Fe,clientHeight:ft}=ut;Fe>ft?(Ne.deltaY<0&<===0||Ne.deltaY>0&<+ft>=Fe)&&Ne.preventDefault():Ne.preventDefault()},[]);Ue.useEffect(()=>{const Ne=document.body,ut=Ne.style.overflow,lt=Ne.style.paddingRight;Ne.style.overflow="hidden";const Fe=window.innerWidth-document.documentElement.clientWidth;Fe>0&&(Ne.style.paddingRight=`${Fe}px`);const ft=ot=>{const Ot=ot.target,Bt=w.current;Bt&&!Bt.contains(Ot)&&(ot.preventDefault(),ot.stopPropagation())};return document.addEventListener("wheel",ft,{passive:!1}),()=>{Ne.style.overflow=ut,Ne.style.paddingRight=lt,document.removeEventListener("wheel",ft)}},[]),Ue.useEffect(()=>{if(P){const Ne=document.body,ut=Ne.style.overflow;return Ne.style.overflow="hidden",()=>{Ne.style.overflow=ut}}},[P]);const re=Ue.useCallback(()=>{i&&i()},[i]);Ue.useEffect(()=>{const Ne=ut=>{ut.key==="Escape"&&re()};return document.addEventListener("keydown",Ne),()=>{document.removeEventListener("keydown",Ne),H.current&&clearTimeout(H.current)}},[re]),Ue.useEffect(()=>{(async()=>{try{await Br.init(),await le()}catch(ut){console.error("Failed to initialize chat history database:",ut)}})()},[]),Ue.useEffect(()=>{if(!I&&L){const Ne=setTimeout(()=>{const{srOutput:ut,srPayload:lt,userEmail:Fe}=L,ft=(Date.now()+Math.random()).toString();j(ot=>[...ot,{id:ft,content:"",role:"assistant",timestamp:new Date,srDropRCA:!0,srAnalysisData:ut,srAnalysisPayload:lt,userEmail:Fe}]),J(null)},100);return()=>clearTimeout(Ne)}},[I,L]);const le=async()=>{try{A(!0);const Ne=await Br.loadSessions();console.log("Loaded chat sessions:",Ne),T(Ne)}catch(Ne){console.error("Failed to load chat sessions:",Ne)}finally{A(!1)}},ge=async Ne=>{try{console.log("Loading session messages for:",Ne);const ut=await Br.loadMessages(Ne);console.log("Raw messages from DB:",ut);const lt=[];for(const Fe of ut)if(Fe.role==="user"){const ft={id:Fe.id,content:Fe.content,role:Fe.role,timestamp:Fe.timestamp,isFromHistory:!0};lt.push(ft)}else if(Fe.role==="assistant"){if(Fe.finalOutputData){console.log("Processing finalOutputData:",Fe.finalOutputData);const ft=Fe.finalOutputData;if(ft.responses&&Array.isArray(ft.responses)){for(const ot of ft.responses)if(ot.payload_type==="q_api"&&ot.output)try{const Ot=JSON.parse(ot.output),Bt=ot.input?Ol(ot.input,"q_api"):"";if(Ot.length>0){const Vt=Ot[0],It=Object.keys(Vt).find(_t=>_t.includes("_time"));if(It){const mt=Object.keys(Vt).filter(ht=>ht!==It&&!["gateway","payment_gateway","dimension","group","category"].includes(ht))[0];if(mt){const ht=Ux(Ot,It,mt),bt={chart:{type:"line"},title:{text:`${mt.replace(/_/g," ")}`},credits:{enabled:!1},xAxis:{categories:ht.categories,labels:{formatter:function(){const St=String(this.value),Et=new Date(St);return Et.getHours()===0&&Et.getMinutes()===0?`${Et.getDate()}. ${Et.toLocaleString("default",{month:"short"})}`:St.split(", ")[1]},style:{color:"#9aa0a6"},rotation:0,align:"center"}},yAxis:{title:{text:""},gridLineColor:"#e0e0e0",gridLineDashStyle:"Dash",labels:{formatter:function(){var Dt;const St=((Dt=this.chart.options.title)==null?void 0:Dt.text)||"",Et=Mf(St.replace(/ /g,"_"));return Ul(Number(this.value),Et)},style:{color:"#9aa0a6"}}},legend:{enabled:ht.hasDimensions,align:"left",verticalAlign:"top",layout:"horizontal",y:10,itemStyle:{fontSize:"12px"},symbolRadius:0,symbolHeight:0,symbolWidth:0,useHTML:!0,labelFormatter:function(){const St=this.color||"#000",Et="name"in this?this.name:"";return'<span style="display: inline-flex; align-items: center;"><span style="background-color: '+St+'; width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 5px;"></span>'+Et+"</span>"}},plotOptions:{series:{marker:{enabled:!1,symbol:"circle",radius:4,states:{hover:{enabled:!0,radius:5}}},states:{hover:{lineWidthPlus:1}}}},tooltip:{shared:!0,useHTML:!0,backgroundColor:"rgba(255, 255, 255, 0)",borderWidth:0,shadow:!1,style:{padding:"0px"},formatter:function(){var yt;const St=Mf(mt),Et=Pt=>Pt.replace(/_/g," ").replace(/\b\w/g,At=>At.toUpperCase()),Dt=Pt=>{const At=new Date(Pt),Ct=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],pt=["January","February","March","April","May","June","July","August","September","October","November","December"],vt=Ct[At.getDay()],wt=At.getDate(),vn=pt[At.getMonth()],an=At.getFullYear();let Ut=At.getHours();const Rt=At.getMinutes(),Qt=Ut>=12?"PM":"AM";Ut=Ut%12,Ut=Ut||12;const sn=Rt<10?"0"+Rt:Rt;return`${vt}, ${wt} ${vn}, ${an} ${Ut}:${sn} ${Qt}`};let Mt='<div style="border-radius: 12px; border: 1px solid #EAECF0; background: #FFF; box-shadow: 0px 6px 15px 0px rgba(0, 0, 0, 0.15), 0px 3px 2px -5px rgba(0, 0, 0, 0.04); padding: 16px;">';Mt+='<div style="display: flex; font-family: Inter, sans-serif; gap: 16px; align-items: stretch;">';const Ft=this.points?this.points[0].color:this.color||"#3BA974";if(Mt+=`<div style="background:${Ft}; width: 4px; flex-shrink: 0; border-radius: 4px; align-self: stretch;"></div>`,Mt+='<div style="display: flex; flex-direction: column; gap: 12px;">',Mt+='<div style="display: flex; flex-direction: column; gap: 4px;">',Mt+=`<div style="color: #525252; font-feature-settings: 'clig' off, 'liga' off; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 600; line-height: 18px;">${Et(mt)}</div>`,Mt+="</div>",Mt+='<div class="flex flex-col gap-1" style="display: flex; flex-direction: column; gap: 6px;">',this.points)[...this.points].sort((At,Ct)=>(Ct.y||0)-(At.y||0)).forEach(At=>{var an,Ut;const Ct=Ul(At.y||0,St),pt=((an=At.series)==null?void 0:an.name)==="Overall",vt=pt?"bg-jp-2-gray-30 text-jp-2-gray-700":"bg-jp-2-green-50 text-jp-2-green-200",wt=pt?"#E8E8E8":"#D4F4E5",vn=pt?"#424242":"#008242";Mt+='<div class="flex items-center" style="display: flex; align-items: center;">',Mt+=`<div class="${vt} rounded p-1 font-semibold mr-1.5 my-1" style="background-color: ${wt}; color: ${vn}; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${Ct}</div>`,Mt+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((Ut=At.series)==null?void 0:Ut.name)||""}</div>`,Mt+="</div>"});else{const Pt=Ul(this.y||0,St);Mt+='<div class="flex items-center" style="display: flex; align-items: center;">',Mt+=`<div class="bg-jp-2-green-50 text-jp-2-green-200 rounded p-1 font-semibold mr-1.5 my-1" style="background-color: #D4F4E5; color: #008242; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${Pt}</div>`,Mt+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((yt=this.series)==null?void 0:yt.name)||""}</div>`,Mt+="</div>"}const kn=this.x?Dt(String(this.x)):"";return Mt+=`<div class="font-medium text-jp-2-gray-300" style="font-weight: 500; color: #9AA0A6; font-size: 12px; margin-top: 4px;">${kn}</div>`,Mt+="</div>",Mt+="</div>",Mt+="</div>",Mt+="</div>",Mt},xDateFormat:"%a, %d %B, %Y %H:%M"},series:ht.series};lt.push({id:`${Fe.id}-chart`,content:"",role:"assistant",timestamp:Fe.timestamp,description:Bt,chartData:bt,isFromHistory:!0})}}else if(Ot.length===1){const _t=Object.keys(Vt)[0];if(_t){const mt={metric:_t.replace(/_/g," "),value:Vt[_t]===null?"N/A":Vt[_t]};lt.push({id:`${Fe.id}-stat`,content:"",role:"assistant",timestamp:Fe.timestamp,description:Bt,singleStat:mt,isFromHistory:!0})}}else lt.push({id:`${Fe.id}-table`,content:"",role:"assistant",timestamp:Fe.timestamp,description:Bt,tableData:Ot,isFromHistory:!0})}}catch(Ot){console.error("Error parsing stored response output:",Ot)}}}if(!Fe.finalOutputData){if(Fe.chartData){const ft={id:`${Fe.id}-legacy-chart`,content:"",role:"assistant",timestamp:Fe.timestamp,chartData:Fe.chartData,description:Fe.description,isFromHistory:!0};lt.push(ft)}if(Fe.singleStat){const ft={id:`${Fe.id}-legacy-stat`,content:"",role:"assistant",timestamp:Fe.timestamp,singleStat:Fe.singleStat,description:Fe.description,isFromHistory:!0};lt.push(ft)}if(Fe.tableData){const ft={id:`${Fe.id}-legacy-table`,content:"",role:"assistant",timestamp:Fe.timestamp,tableData:Fe.tableData,description:Fe.description,isFromHistory:!0};lt.push(ft)}}if(Fe.content){const ft={id:Fe.id,content:Fe.content,role:Fe.role,timestamp:Fe.timestamp,isFromHistory:!0};lt.push(ft)}}console.log("Reconstructed messages:",lt),j(lt),$(Ne),X(!1)}catch(ut){console.error("Failed to load session messages:",ut)}},ve=async(Ne,ut,lt,Fe)=>{const ft=Fe||Q;if(ft)try{await Br.saveMessage(ft,Ne,ut,lt),await le()}catch(ot){console.error("Failed to save message to history:",ot)}},_e=()=>{if(!E.current||!q.current)return!0;const Ne=E.current.getBoundingClientRect();return q.current.getBoundingClientRect().top<=Ne.bottom},we=(Ne=!1)=>{!E.current||!q.current||(Ne||!ce.current||_e())&&(q.current.scrollIntoView({behavior:"smooth",block:"end"}),ce.current=!1,setTimeout(()=>{_e()&&C(!1)},500))},Ee=()=>{E.current&&(H.current&&clearTimeout(H.current),H.current=setTimeout(()=>{_e()?(ce.current=!1,C(!1)):(ce.current=!0,C(!0))},100))};Ue.useEffect(()=>{S.length>D.current&&(D.current===0||!ce.current)&&setTimeout(()=>we(),100),D.current=S.length},[S]),Ue.useEffect(()=>{if(V){U(!1);const Ne=localStorage.getItem("login")||"";Ne?(window.postMessage({type:"AUTH_TOKEN",token:Ne},"*"),console.log("Sent auth token to Voice Assistant")):console.warn("No auth token found in localStorage");const ut=lt=>{var Fe,ft,ot;console.log("Received message in voice mode:",lt.data),((Fe=lt.data)==null?void 0:Fe.type)==="CLOSE_VOICE_ASSISTANT"?(ae(!1),U(!1)):((ft=lt.data)==null?void 0:ft.type)==="RTVI_CLIENT_READY"?console.log("Voice assistant client is ready"):((ot=lt.data)==null?void 0:ot.type)==="VOICE_ASSISTANT_CONNECTED"&&(console.log("Voice assistant is connected and ready"),U(!0))};return window.addEventListener("message",ut),()=>{window.removeEventListener("message",ut)}}else U(!1)},[V]);const Re=Ne=>{var ut;v(Ne),(ut=k.current)==null||ut.focus()},be=()=>{x.trim()||(ae(!0),j(Ne=>Ne.map(ut=>({...ut,skipAnimation:!0}))))},me=()=>{X(!0),le()},pe=()=>{X(!1)},xe=Ne=>{ge(Ne.sessionId)},Te=async(Ne,ut)=>{ut.stopPropagation();try{await Br.deleteSession(Ne),await le()}catch(lt){console.error("Failed to delete session:",lt)}},ke=()=>{j([]),$(""),v(""),W(""),oe&&(oe.abort(),te(null)),ee(!1),O(!1),he(!1)},Ae=()=>{if(oe){oe.abort(),te(null),ee(!1),O(!1);const Ne={id:(Date.now()+Math.random()).toString(),content:"Request cancelled. You can retry your query.",role:"assistant",timestamp:new Date};j(ut=>[...ut,Ne])}},De=Ne=>{const lt=new Date().getTime()-Ne.getTime(),Fe=Math.floor(lt/6e4),ft=Math.floor(lt/36e5),ot=Math.floor(lt/864e5);return Fe<1?"Just now":Fe<60?`${Fe} min ago`:ft<24?`${ft} hour${ft>1?"s":""} ago`:ot<7?`${ot} day${ot>1?"s":""} ago`:Ne.toLocaleDateString()},ze=async()=>{var Ne;if(z&&!B&&!I){const ut=z;j(Fe=>{let ft=-1;for(let ot=Fe.length-1;ot>=0;ot--)if(Fe[ot].role==="user"){ft=ot;break}return ft>=0?Fe.slice(0,ft+1):Fe}),ee(!0),O(!0);const lt=new AbortController;te(lt);try{const Fe=E6();if(!Fe)throw new Error("Authentication token not found");const ft={"Content-Type":"application/json",Authorization:Fe},ot=new Date,Ot=ot.getFullYear()+"-"+String(ot.getMonth()+1).padStart(2,"0")+"-"+String(ot.getDate()).padStart(2,"0")+"T"+String(ot.getHours()).padStart(2,"0")+":"+String(ot.getMinutes()).padStart(2,"0")+":"+String(ot.getSeconds()).padStart(2,"0")+"Z",Bt=await fetch(y,{method:"POST",headers:{...ft,Accept:"text/event-stream"},body:JSON.stringify({query:ut,current_timestamp:Ot,session_id:Q,regenerate:!0}),signal:lt.signal});if(console.log("🔍 DEBUG: Response status:",Bt.status),console.log("🔍 DEBUG: Response headers:",Object.fromEntries(Bt.headers.entries())),!Bt.ok)throw new Error(`API request failed with status ${Bt.status}`);const Vt=(Ne=Bt.body)==null?void 0:Ne.getReader();if(!Vt)throw new Error("Failed to get response reader");const It=new TextDecoder;let _t=null,mt="",ht=0,bt="",St=null;const Et={},Dt=Q,Mt=Ft=>{var At;if(!Ft.trim())return;const kn=Ft.split(`
|
|
445
445
|
`);let yt="",Pt="";if(kn.forEach(Ct=>{Ct.startsWith("event: ")?yt=Ct.substring(7).trim():Ct.startsWith("data: ")&&(Pt&&(Pt+=`
|
|
446
|
-
`),Pt+=Ct.substring(6))}),console.log("🔍 DEBUG: Event type:",yt,"Data content:",Pt),Pt)try{const Ct=JSON.parse(Pt);if(console.log("🔍 DEBUG: Parsed data:",Ct),yt==="session_id"&&Ct.session_id)$(Ct.session_id);else if(yt==="agent_text_output"||yt==="final_output"){O(!1);const pt=Ct.message||"";if(mt=pt,_t)j(vt=>vt.map(wt=>wt.id===_t?{...wt,content:pt,feedbackId:yt==="final_output"&&Ct.feedback_id?Ct.feedback_id:wt.feedbackId}:wt));else{const vt={id:(Date.now()+Math.random()).toString(),content:pt,role:"assistant",timestamp:new Date,feedbackId:yt==="final_output"&&Ct.feedback_id?Ct.feedback_id:void 0};_t=vt.id,j(wt=>[...wt,vt])}yt==="final_output"&&(console.log("Final output received, will save after all data is processed"),mt=pt,Et.finalOutputData=Ct,St&&(J(St),St=null))}else if(yt==="tool_output"&&Ct.tool_name==="sr_analysis"){let pt={};try{pt=typeof Ct.output=="string"?JSON.parse(Ct.output):Ct.output}catch{pt={}}pt.is_SR_drop===!0&&(St={srOutput:pt,srPayload:Ct.input?typeof Ct.input=="string"?JSON.parse(Ct.input):Ct.input:{},userEmail:pt.parent_email||""})}else if(yt==="tool_output"&&(Ct.tool_name==="q_api_gemini"||(At=Ct.tool_name)!=null&&At.startsWith("q_api"))){const pt=JSON.parse(Ct.output),vt=Ct.input?Ol(Ct.input,Ct.tool_name):"";if(pt.length>0){const wt=pt[0],vn=Object.keys(wt).find(an=>an.includes("_time"));if(vn){const Ut=Object.keys(wt).filter(Rt=>Rt!==vn&&!["gateway","payment_gateway","dimension","group","category"].includes(Rt))[0];if(Ut){const Rt=Ux(pt,vn,Ut),Qt={chart:{type:"line"},title:{text:`${Ut.replace(/_/g," ")}`},credits:{enabled:!1},xAxis:{categories:Rt.categories,labels:{formatter:function(){const Tn=String(this.value),
|
|
446
|
+
`),Pt+=Ct.substring(6))}),console.log("🔍 DEBUG: Event type:",yt,"Data content:",Pt),Pt)try{const Ct=JSON.parse(Pt);if(console.log("🔍 DEBUG: Parsed data:",Ct),yt==="session_id"&&Ct.session_id)$(Ct.session_id);else if(yt==="agent_text_output"||yt==="final_output"){O(!1);const pt=Ct.message||"";if(mt=pt,_t)j(vt=>vt.map(wt=>wt.id===_t?{...wt,content:pt,feedbackId:yt==="final_output"&&Ct.feedback_id?Ct.feedback_id:wt.feedbackId}:wt));else{const vt={id:(Date.now()+Math.random()).toString(),content:pt,role:"assistant",timestamp:new Date,feedbackId:yt==="final_output"&&Ct.feedback_id?Ct.feedback_id:void 0};_t=vt.id,j(wt=>[...wt,vt])}yt==="final_output"&&(console.log("Final output received, will save after all data is processed"),mt=pt,Et.finalOutputData=Ct,St&&(J(St),St=null))}else if(yt==="tool_output"&&Ct.tool_name==="sr_analysis"){let pt={};try{pt=typeof Ct.output=="string"?JSON.parse(Ct.output):Ct.output}catch{pt={}}pt.is_SR_drop===!0&&(St={srOutput:pt,srPayload:Ct.input?typeof Ct.input=="string"?JSON.parse(Ct.input):Ct.input:{},userEmail:pt.parent_email||""})}else if(yt==="tool_output"&&(Ct.tool_name==="q_api_gemini"||(At=Ct.tool_name)!=null&&At.startsWith("q_api"))){const pt=JSON.parse(Ct.output),vt=Ct.input?Ol(Ct.input,Ct.tool_name):"";if(pt.length>0){const wt=pt[0],vn=Object.keys(wt).find(an=>an.includes("_time"));if(vn){const Ut=Object.keys(wt).filter(Rt=>Rt!==vn&&!["gateway","payment_gateway","dimension","group","category"].includes(Rt))[0];if(Ut){const Rt=Ux(pt,vn,Ut),Qt={chart:{type:"line"},title:{text:`${Ut.replace(/_/g," ")}`},credits:{enabled:!1},xAxis:{categories:Rt.categories,labels:{formatter:function(){const Tn=String(this.value),un=new Date(Tn);return un.getHours()===0&&un.getMinutes()===0?`${un.getDate()}. ${un.toLocaleString("default",{month:"short"})}`:Tn.split(", ")[1]},style:{color:"#9aa0a6"},rotation:0,align:"center"}},yAxis:{title:{text:""},gridLineColor:"#e0e0e0",gridLineDashStyle:"Dash",labels:{formatter:function(){var mn;const Tn=((mn=this.chart.options.title)==null?void 0:mn.text)||"",un=Mf(Tn.replace(/ /g,"_"));return Ul(Number(this.value),un)},style:{color:"#9aa0a6"}}},legend:{enabled:Rt.hasDimensions,align:"left",verticalAlign:"top",layout:"horizontal",y:10,itemStyle:{fontSize:"12px"},symbolRadius:0,symbolHeight:0,symbolWidth:0,useHTML:!0,labelFormatter:function(){const Tn=this.color||"#000",un="name"in this?this.name:"";return'<span style="display: inline-flex; align-items: center;"><span style="background-color: '+Tn+'; width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 5px;"></span>'+un+"</span>"}},plotOptions:{series:{marker:{enabled:!1,symbol:"circle",radius:4,states:{hover:{enabled:!0,radius:5}}},states:{hover:{lineWidthPlus:1}}}},tooltip:{shared:!0,useHTML:!0,backgroundColor:"rgba(255, 255, 255, 0)",borderWidth:0,shadow:!1,style:{padding:"0px"},formatter:function(){var ai;const Tn=Mf(Ut),un=si=>si.replace(/_/g," ").replace(/\b\w/g,yn=>yn.toUpperCase()),mn=si=>{const yn=new Date(si),Fn=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Pi=["January","February","March","April","May","June","July","August","September","October","November","December"],ns=Fn[yn.getDay()],mi=yn.getDate(),is=Pi[yn.getMonth()],vs=yn.getFullYear();let yi=yn.getHours();const Ti=yn.getMinutes(),xs=yi>=12?"PM":"AM";yi=yi%12,yi=yi||12;const Od=Ti<10?"0"+Ti:Ti;return`${ns}, ${mi} ${is}, ${vs} ${yi}:${Od} ${xs}`};let Wt='<div style="border-radius: 12px; border: 1px solid #EAECF0; background: #FFF; box-shadow: 0px 6px 15px 0px rgba(0, 0, 0, 0.15), 0px 3px 2px -5px rgba(0, 0, 0, 0.04); padding: 16px;">';Wt+='<div style="display: flex; font-family: Inter, sans-serif; gap: 16px; align-items: stretch;">';const Ht=this.points?this.points[0].color:this.color||"#3BA974";if(Wt+=`<div style="background:${Ht}; width: 4px; flex-shrink: 0; border-radius: 4px; align-self: stretch;"></div>`,Wt+='<div style="display: flex; flex-direction: column; gap: 12px;">',Wt+='<div style="display: flex; flex-direction: column; gap: 4px;">',Wt+=`<div style="color: #525252; font-feature-settings: 'clig' off, 'liga' off; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 600; line-height: 18px;">${un(Ut)}</div>`,Wt+="</div>",Wt+='<div class="flex flex-col gap-1" style="display: flex; flex-direction: column; gap: 6px;">',this.points)[...this.points].sort((yn,Fn)=>(Fn.y||0)-(yn.y||0)).forEach(yn=>{var vs,yi;const Fn=Ul(yn.y||0,Tn),Pi=((vs=yn.series)==null?void 0:vs.name)==="Overall",ns=Pi?"bg-jp-2-gray-30 text-jp-2-gray-700":"bg-jp-2-green-50 text-jp-2-green-200",mi=Pi?"#E8E8E8":"#D4F4E5",is=Pi?"#424242":"#008242";Wt+='<div class="flex items-center" style="display: flex; align-items: center;">',Wt+=`<div class="${ns} rounded p-1 font-semibold mr-1.5 my-1" style="background-color: ${mi}; color: ${is}; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${Fn}</div>`,Wt+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((yi=yn.series)==null?void 0:yi.name)||""}</div>`,Wt+="</div>"});else{const si=Ul(this.y||0,Tn);Wt+='<div class="flex items-center" style="display: flex; align-items: center;">',Wt+=`<div class="bg-jp-2-green-50 text-jp-2-green-200 rounded p-1 font-semibold mr-1.5 my-1" style="background-color: #D4F4E5; color: #008242; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${si}</div>`,Wt+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((ai=this.series)==null?void 0:ai.name)||""}</div>`,Wt+="</div>"}const $n=this.x?mn(String(this.x)):"";return Wt+=`<div class="font-medium text-jp-2-gray-300" style="font-weight: 500; color: #9AA0A6; font-size: 12px; margin-top: 4px;">${$n}</div>`,Wt+="</div>",Wt+="</div>",Wt+="</div>",Wt+="</div>",Wt},xDateFormat:"%a, %d %B, %Y %H:%M"},series:Rt.series},sn={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:vt,chartData:Qt};j(Tn=>[...Tn,sn]),Et.chartData=Qt,Et.description=vt}}else if(pt.length===1){const an=Object.keys(wt)[0];if(an){const Ut={metric:an.replace(/_/g," "),value:wt[an]===null?"N/A":wt[an]},Rt={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:vt,singleStat:Ut};j(Qt=>[...Qt,Rt]),Et.singleStat=Ut,Et.description=vt}}else{const an={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:vt,tableData:pt};j(Ut=>[...Ut,an]),Et.tableData=pt,Et.description=vt}}}}catch(Ct){console.error("Error parsing SSE data:",Ct,"Raw data:",Pt)}};for(;;){const{done:Ft,value:kn}=await Vt.read();if(Ft){console.log("🔍 DEBUG: Stream ended. Total chunks received:",ht),bt.trim()&&bt.split(`
|
|
447
447
|
|
|
448
448
|
`).filter(pt=>pt.trim()).forEach(pt=>Mt(pt)),Dt&&mt&&(console.log("Saving complete conversation to IndexedDB:",{sessionId:Dt,userMessage:ut,botResponse:mt,metadata:Et}),ve(ut,mt,Et,Dt).catch(Ct=>{console.error("Failed to save message to IndexedDB:",Ct)}));break}ht++;const yt=It.decode(kn,{stream:!0});console.log("🔍 DEBUG: Raw chunk #"+ht+":",yt),bt+=yt;const Pt=bt.split(`
|
|
449
449
|
|
|
450
450
|
`),At=Pt.slice(0,-1);bt=Pt[Pt.length-1],console.log("🔍 DEBUG: Complete events:",At.length,"Buffer remaining:",bt.length),At.forEach(Ct=>Mt(Ct))}}catch(Fe){if(Fe instanceof Error&&Fe.name==="AbortError"){console.log("Request was aborted");return}console.error("Error sending message:",Fe);let ft="Unable to connect to Genius Analytics. Please check your network connection and try again.";Fe instanceof Error&&Fe.message.includes("Authentication token not found")?ft="Session expired or not authenticated. Please log in to continue using Genius Analytics.":Fe instanceof Error&&Fe.message.includes("status 401")?ft="Invalid authentication credentials. Please log in with valid credentials.":Fe instanceof Error&&Fe.message.includes("status 403")?ft="Access denied. You don't have permission to access this data.":Fe instanceof Error&&Fe.message.includes("status 404")?ft="Analytics service not found. Please contact support if this issue persists.":Fe instanceof Error&&Fe.message.includes("status 500")?ft="Server error occurred. Our team has been notified. Please try again later.":Fe instanceof Error&&Fe.message.includes("Failed to fetch")&&(ft="Network error. Please check your internet connection and ensure the analytics service is accessible.");const ot={id:(Date.now()+1).toString(),content:ft,role:"assistant",timestamp:new Date};j(Ot=>[...Ot,ot])}finally{ee(!1),O(!1),te(null)}}},$e=async()=>{var Fe;if(!x.trim()||B||I)return;const Ne=x.trim();W(Ne);const ut={id:Date.now().toString(),content:Ne,role:"user",timestamp:new Date};j(ft=>[...ft,ut]),v(""),ee(!0),O(!0),ce.current=!1,setTimeout(()=>we(!0),100),r&&r(ut);const lt=new AbortController;te(lt);try{const ft=E6();if(!ft)throw new Error("Authentication token not found");const ot={"Content-Type":"application/json",Authorization:ft},Ot=new Date,Bt=Ot.getFullYear()+"-"+String(Ot.getMonth()+1).padStart(2,"0")+"-"+String(Ot.getDate()).padStart(2,"0")+"T"+String(Ot.getHours()).padStart(2,"0")+":"+String(Ot.getMinutes()).padStart(2,"0")+":"+String(Ot.getSeconds()).padStart(2,"0")+"Z",Vt=await fetch(y,{method:"POST",headers:{...ot,Accept:"text/event-stream"},body:JSON.stringify({query:Ne,current_timestamp:Bt,session_id:Q}),signal:lt.signal});if(console.log("🔍 DEBUG: Response status:",Vt.status),console.log("🔍 DEBUG: Response headers:",Object.fromEntries(Vt.headers.entries())),!Vt.ok)throw new Error(`API request failed with status ${Vt.status}`);const It=(Fe=Vt.body)==null?void 0:Fe.getReader();if(!It)throw new Error("Failed to get response reader");const _t=new TextDecoder;let mt=null,ht="",bt=0,St="",Et=null;const Dt={};let Mt=Q;const Ft=kn=>{var Ct;if(!kn.trim())return;const yt=kn.split(`
|
|
451
451
|
`);let Pt="",At="";if(yt.forEach(pt=>{pt.startsWith("event: ")?Pt=pt.substring(7).trim():pt.startsWith("data: ")&&(At&&(At+=`
|
|
452
|
-
`),At+=pt.substring(6))}),console.log("🔍 DEBUG: Event type:",Pt,"Data content:",At),At)try{const pt=JSON.parse(At);if(console.log("🔍 DEBUG: Parsed data:",pt),Pt==="session_id"&&pt.session_id)$(pt.session_id),Mt=pt.session_id;else if(Pt==="agent_text_output"||Pt==="final_output"){O(!1);const vt=pt.message||"";if(ht=vt,mt)j(wt=>wt.map(vn=>vn.id===mt?{...vn,content:vt,feedbackId:Pt==="final_output"&&pt.feedback_id?pt.feedback_id:vn.feedbackId}:vn));else{const wt={id:(Date.now()+Math.random()).toString(),content:vt,role:"assistant",timestamp:new Date,feedbackId:Pt==="final_output"&&pt.feedback_id?pt.feedback_id:void 0};mt=wt.id,j(vn=>[...vn,wt])}Pt==="final_output"&&(console.log("Final output received, will save after all data is processed"),ht=vt,Dt.finalOutputData=pt,Et&&(J(Et),Et=null))}else if(Pt==="tool_output"&&(pt.tool_name==="q_api_gemini"||(Ct=pt.tool_name)!=null&&Ct.startsWith("q_api"))){const vt=JSON.parse(pt.output),wt=pt.input?Ol(pt.input,pt.tool_name):"";if(vt.length>0){const vn=vt[0],an=Object.keys(vn).find(Ut=>Ut.includes("_time"));if(an){const Rt=Object.keys(vn).filter(Qt=>Qt!==an&&!["gateway","payment_gateway","dimension","group","category"].includes(Qt))[0];if(Rt){const Qt=Ux(vt,an,Rt),sn={chart:{type:"line"},title:{text:`${Rt.replace(/_/g," ")}`},xAxis:{categories:Qt.categories,labels:{formatter:function(){const
|
|
452
|
+
`),At+=pt.substring(6))}),console.log("🔍 DEBUG: Event type:",Pt,"Data content:",At),At)try{const pt=JSON.parse(At);if(console.log("🔍 DEBUG: Parsed data:",pt),Pt==="session_id"&&pt.session_id)$(pt.session_id),Mt=pt.session_id;else if(Pt==="agent_text_output"||Pt==="final_output"){O(!1);const vt=pt.message||"";if(ht=vt,mt)j(wt=>wt.map(vn=>vn.id===mt?{...vn,content:vt,feedbackId:Pt==="final_output"&&pt.feedback_id?pt.feedback_id:vn.feedbackId}:vn));else{const wt={id:(Date.now()+Math.random()).toString(),content:vt,role:"assistant",timestamp:new Date,feedbackId:Pt==="final_output"&&pt.feedback_id?pt.feedback_id:void 0};mt=wt.id,j(vn=>[...vn,wt])}Pt==="final_output"&&(console.log("Final output received, will save after all data is processed"),ht=vt,Dt.finalOutputData=pt,Et&&(J(Et),Et=null))}else if(Pt==="tool_output"&&(pt.tool_name==="q_api_gemini"||(Ct=pt.tool_name)!=null&&Ct.startsWith("q_api"))){const vt=JSON.parse(pt.output),wt=pt.input?Ol(pt.input,pt.tool_name):"";if(vt.length>0){const vn=vt[0],an=Object.keys(vn).find(Ut=>Ut.includes("_time"));if(an){const Rt=Object.keys(vn).filter(Qt=>Qt!==an&&!["gateway","payment_gateway","dimension","group","category"].includes(Qt))[0];if(Rt){const Qt=Ux(vt,an,Rt),sn={chart:{type:"line"},title:{text:`${Rt.replace(/_/g," ")}`},xAxis:{categories:Qt.categories,labels:{formatter:function(){const un=String(this.value),mn=new Date(un);return mn.getHours()===0&&mn.getMinutes()===0?`${mn.getDate()}. ${mn.toLocaleString("default",{month:"short"})}`:un.split(", ")[1]},style:{color:"#9aa0a6"}}},yAxis:{title:{text:""},gridLineColor:"#e0e0e0",gridLineDashStyle:"Dash",labels:{formatter:function(){var Wt;const un=((Wt=this.chart.options.title)==null?void 0:Wt.text)||"",mn=Mf(un.replace(/ /g,"_"));return Ul(Number(this.value),mn)},style:{color:"#9aa0a6"}}},legend:{enabled:Qt.hasDimensions,align:"left",verticalAlign:"top",layout:"horizontal",y:10,itemStyle:{fontSize:"12px"},symbolRadius:0,symbolHeight:0,symbolWidth:0,useHTML:!0,labelFormatter:function(){const un=this.color||"#000",mn="name"in this?this.name:"";return'<span style="display: inline-flex; align-items: center;"><span style="background-color: '+un+'; width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 5px;"></span>'+mn+"</span>"}},plotOptions:{series:{marker:{enabled:!1,symbol:"circle",radius:4,states:{hover:{enabled:!0,radius:5}}},states:{hover:{lineWidthPlus:1}}}},tooltip:{shared:!0,useHTML:!0,backgroundColor:"rgba(255, 255, 255, 0)",borderWidth:0,shadow:!1,style:{padding:"0px"},formatter:function(){var si;const un=Mf(Rt),mn=yn=>yn.replace(/_/g," ").replace(/\b\w/g,Fn=>Fn.toUpperCase()),Wt=yn=>{const Fn=new Date(yn),Pi=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ns=["January","February","March","April","May","June","July","August","September","October","November","December"],mi=Pi[Fn.getDay()],is=Fn.getDate(),vs=ns[Fn.getMonth()],yi=Fn.getFullYear();let Ti=Fn.getHours();const xs=Fn.getMinutes(),Od=Ti>=12?"PM":"AM";Ti=Ti%12,Ti=Ti||12;const La=xs<10?"0"+xs:xs;return`${mi}, ${is} ${vs}, ${yi} ${Ti}:${La} ${Od}`};let Ht='<div style="border-radius: 12px; border: 1px solid #EAECF0; background: #FFF; box-shadow: 0px 6px 15px 0px rgba(0, 0, 0, 0.15), 0px 3px 2px -5px rgba(0, 0, 0, 0.04); padding: 16px;">';Ht+='<div style="display: flex; font-family: Inter, sans-serif; gap: 16px; align-items: stretch;">';const $n=this.points?this.points[0].color:this.color||"#3BA974";if(Ht+=`<div style="background:${$n}; width: 4px; flex-shrink: 0; border-radius: 4px; align-self: stretch;"></div>`,Ht+='<div style="display: flex; flex-direction: column; gap: 12px;">',Ht+='<div style="display: flex; flex-direction: column; gap: 4px;">',Ht+=`<div style="color: #525252; font-feature-settings: 'clig' off, 'liga' off; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 600; line-height: 18px;">${mn(Rt)}</div>`,Ht+="</div>",Ht+='<div class="flex flex-col gap-1" style="display: flex; flex-direction: column; gap: 6px;">',this.points)[...this.points].sort((Fn,Pi)=>(Pi.y||0)-(Fn.y||0)).forEach(Fn=>{var yi,Ti;const Pi=Ul(Fn.y||0,un),ns=((yi=Fn.series)==null?void 0:yi.name)==="Overall",mi=ns?"bg-jp-2-gray-30 text-jp-2-gray-700":"bg-jp-2-green-50 text-jp-2-green-200",is=ns?"#E8E8E8":"#D4F4E5",vs=ns?"#424242":"#008242";Ht+='<div class="flex items-center" style="display: flex; align-items: center;">',Ht+=`<div class="${mi} rounded p-1 font-semibold mr-1.5 my-1" style="background-color: ${is}; color: ${vs}; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${Pi}</div>`,Ht+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((Ti=Fn.series)==null?void 0:Ti.name)||""}</div>`,Ht+="</div>"});else{const yn=Ul(this.y||0,un);Ht+='<div class="flex items-center" style="display: flex; align-items: center;">',Ht+=`<div class="bg-jp-2-green-50 text-jp-2-green-200 rounded p-1 font-semibold mr-1.5 my-1" style="background-color: #D4F4E5; color: #008242; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${yn}</div>`,Ht+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((si=this.series)==null?void 0:si.name)||""}</div>`,Ht+="</div>"}const ai=this.x?Wt(String(this.x)):"";return Ht+=`<div class="font-medium text-jp-2-gray-300" style="font-weight: 500; color: #9AA0A6; font-size: 12px; margin-top: 4px;">${ai}</div>`,Ht+="</div>",Ht+="</div>",Ht+="</div>",Ht+="</div>",Ht},xDateFormat:"%a, %d %B, %Y %H:%M"},series:Qt.series},Tn={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:wt,chartData:sn};j(un=>[...un,Tn]),Dt.chartData=sn,Dt.description=wt}}else if(vt.length===1){const Ut=Object.keys(vn)[0];if(Ut){const Rt={metric:Ut.replace(/_/g," "),value:vn[Ut]===null?"N/A":vn[Ut]},Qt={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:wt,singleStat:Rt};j(sn=>[...sn,Qt]),Dt.singleStat=Rt,Dt.description=wt}}else{const Ut={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:wt,tableData:vt};j(Rt=>[...Rt,Ut]),Dt.tableData=vt,Dt.description=wt}}}else if(Pt==="tool_output"&&pt.tool_name==="sr_analysis"){let vt={};try{vt=typeof pt.output=="string"?JSON.parse(pt.output):pt.output}catch{vt={}}vt.is_SR_drop===!0&&(Et={srOutput:vt,srPayload:pt.input?typeof pt.input=="string"?JSON.parse(pt.input):pt.input:{},userEmail:vt.parent_email||""})}}catch(pt){console.error("Error parsing SSE data:",pt,"Raw data:",At)}};for(;;){const{done:kn,value:yt}=await It.read();if(kn){console.log("🔍 DEBUG: Stream ended. Total chunks received:",bt),St.trim()&&St.split(`
|
|
453
453
|
|
|
454
454
|
`).filter(vt=>vt.trim()).forEach(vt=>Ft(vt)),Mt&&ht&&(console.log("Saving complete conversation to IndexedDB:",{sessionId:Mt,userMessage:Ne,botResponse:ht,metadata:Dt}),ve(Ne,ht,Dt,Mt).catch(pt=>{console.error("Failed to save message to IndexedDB:",pt)}));break}bt++;const Pt=_t.decode(yt,{stream:!0});console.log("🔍 DEBUG: Raw chunk #"+bt+":",Pt),St+=Pt;const At=St.split(`
|
|
455
455
|
|
|
456
|
-
`),Ct=At.slice(0,-1);St=At[At.length-1],console.log("🔍 DEBUG: Complete events:",Ct.length,"Buffer remaining:",St.length),Ct.forEach(pt=>Ft(pt))}}catch(ft){if(ft instanceof Error&&ft.name==="AbortError"){console.log("Request was aborted");return}console.error("Error sending message:",ft);let ot="Unable to connect to Genius Analytics. Please check your network connection and try again.";ft instanceof Error&&ft.message.includes("Authentication token not found")?ot="Session expired or not authenticated. Please log in to continue using Genius Analytics.":ft instanceof Error&&ft.message.includes("status 401")?ot="Invalid authentication credentials. Please log in with valid credentials.":ft instanceof Error&&ft.message.includes("status 403")?ot="Access denied. You don't have permission to access this data.":ft instanceof Error&&ft.message.includes("status 404")?ot="Analytics service not found. Please contact support if this issue persists.":ft instanceof Error&&ft.message.includes("status 500")?ot="Server error occurred. Our team has been notified. Please try again later.":ft instanceof Error&&ft.message.includes("Failed to fetch")&&(ot="Network error. Please check your internet connection and ensure the analytics service is accessible.");const Ot={id:(Date.now()+1).toString(),content:ot,role:"assistant",timestamp:new Date};j(Bt=>[...Bt,Ot])}finally{ee(!1),O(!1),te(null)}},Ge=Ne=>{Ne.key==="Enter"&&!Ne.shiftKey&&(Ne.preventDefault(),B?Ae():$e())},qe=Y.jsxs("div",{className:it["genius-dashboard-input-area"],children:[g&&S.length>0&&Y.jsx("button",{className:it["genius-dashboard-scroll-button"],onClick:()=>{ce.current=!1,we(!0)},"aria-label":"Scroll to bottom",children:Y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:Y.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 3C12.5523 3 13 3.44772 13 4V17.5858L17.2929 13.2929C17.6834 12.9024 18.3166 12.9024 18.7071 13.2929C19.0976 13.6834 19.0976 14.3166 18.7071 14.7071L12.7071 20.7071C12.3166 21.0976 11.6834 21.0976 11.2929 20.7071L5.29289 14.7071C4.90237 14.3166 4.90237 13.6834 5.29289 13.2929C5.68342 12.9024 6.31658 12.9024 6.70711 13.2929L11 17.5858V4C11 3.44772 11.4477 3 12 3Z",fill:"black"})})}),!V&&Y.jsxs("div",{className:`${it["genius-dashboard-input-container"]} ${S.length>0?it["single-line"]:""}`,children:[S.length===0?Y.jsx("textarea",{ref:k,placeholder:c,value:x,onChange:Ne=>v(Ne.target.value),onKeyDown:Ge,className:it["genius-dashboard-input"],rows:2}):Y.jsx("input",{ref:k,type:"text",placeholder:c,value:x,onChange:Ne=>v(Ne.target.value),onKeyDown:Ge,className:`${it["genius-dashboard-input"]} ${it["single-line-input"]}`}),Y.jsx("div",{className:it["genius-dashboard-input-actions"],children:Y.jsxs("div",{className:it["genius-dashboard-voice-container"],children:[Y.jsx("button",{className:it["genius-dashboard-microphone-button"],"aria-label":"Voice input",onClick:be,disabled:B||I,children:Y.jsx(D5,{})}),B?Y.jsx("button",{className:it["genius-dashboard-cancel-button"],"aria-label":"Cancel",onClick:Ae,children:Y.jsx(jS,{})}):Y.jsxs("div",{className:it["genius-dashboard-send-retry-container"],children:[z&&Y.jsx(Y.Fragment,{}),Y.jsx("button",{className:it["genius-dashboard-send-button"],"aria-label":"Send",onClick:$e,disabled:I,children:Y.jsx(O5,{})})]})]})})]})]}),Je=o&&o.userEmail||"",rt=Ne=>{ye(Ne),R(!0),j(ut=>ut.map(lt=>({...lt,skipAnimation:!0})))},st=async Ne=>{const ut=localStorage.getItem("login")||"",lt=S.find(Fe=>Fe.id===ue);if(!(!(lt!=null&<.feedbackId)||!ut))try{const Fe=y.replace(/\/api\/v3\/analytics\/?$/,""),ft=`Basic ${btoa(ut+":")}`,ot=await fetch(`${Fe}/api/v3/analytics/feedback`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:ft},body:JSON.stringify({id:lt.feedbackId,feedbackEnum:"DISLIKE",feedbackText:Ne})});ot.ok?(j(Ot=>Ot.map(Bt=>Bt.id===ue?{...Bt,hasDisliked:!0,skipAnimation:!0}:Bt)),R(!1),ye(null),console.log("Dislike feedback submitted successfully")):console.error("Failed to submit dislike feedback",ot.status,ot.statusText)}catch(Fe){console.error("Error submitting dislike feedback:",Fe)}};return Ue.useEffect(()=>{console.log("aaaaaaa",S)},[S]),Y.jsxs(Y.Fragment,{children:[Y.jsx("div",{className:`${it["genius-dashboard-backdrop"]} ${it.visible}`}),Y.jsxs("div",{className:`${it["genius-dashboard-container"]} ${it.expanded}`,ref:w,children:[P&&Y.jsx("div",{className:it["genius-dashboard-history-overlay"],children:Y.jsxs("div",{className:it["genius-dashboard-history-container"],children:[Y.jsxs("div",{className:it["genius-dashboard-history-header"],children:[Y.jsxs("div",{className:it["genius-dashboard-history-header-left"],children:[Y.jsx("button",{className:it["genius-dashboard-history-back"],onClick:pe,"aria-label":"Back",children:Y.jsx(DS,{})}),Y.jsx("h2",{children:"Chat History"})]}),Y.jsxs("div",{className:it["genius-dashboard-history-actions"],children:[Y.jsx("button",{className:it["genius-dashboard-history-action"],"aria-label":"New Chat",onClick:()=>{ke(),pe()},children:Y.jsx(c2,{})}),Y.jsx("button",{className:it["genius-dashboard-history-action"],"aria-label":"Close",onClick:re,children:Y.jsx(ES,{})})]})]}),Y.jsx("div",{className:it["genius-dashboard-history-list"],ref:N,onWheel:K,children:_?Y.jsx("div",{className:it["genius-dashboard-history-loading"],children:"Loading history..."}):G.length===0?Y.jsx("div",{className:it["genius-dashboard-history-empty"],children:"No chat history found"}):G.map(Ne=>Y.jsxs("div",{className:it["genius-dashboard-history-item"],onClick:()=>xe(Ne),children:[Y.jsxs("div",{className:it["genius-dashboard-history-item-content"],children:[Y.jsx("div",{className:it["genius-dashboard-history-item-title"],children:Ne.title}),Y.jsxs("div",{className:it["genius-dashboard-history-item-date"],children:[De(Ne.timestamp)," • ",Ne.messageCount," messages"]})]}),Y.jsx("button",{className:it["genius-dashboard-history-item-delete"],onClick:ut=>Te(Ne.sessionId,ut),"aria-label":"Delete session",children:Y.jsx(OS,{})})]},Ne.sessionId))})]})}),Y.jsxs("div",{className:it["genius-dashboard-top-bar"],children:[Y.jsx("div",{className:it["genius-dashboard-icons-left"],children:se&&Y.jsxs("button",{className:`${it["genius-dashboard-icon-container"]} ${it["with-text"]}`,onClick:()=>R(!1),"aria-label":"Back",children:[Y.jsx(LS,{}),Y.jsx("span",{className:it["genius-dashboard-back-text"],children:"Back"})]})}),Y.jsxs("div",{className:it["genius-dashboard-icons-right"],children:[S.length>0&&!se&&Y.jsx("button",{className:it["genius-dashboard-icon-container"],"aria-label":"Edit",onClick:ke,children:Y.jsx(c2,{})}),Y.jsx("button",{className:it["genius-dashboard-icon-container"],"aria-label":"History",onClick:()=>{se&&R(!1),V&&ae(!1),me()},children:Y.jsx(E5,{})}),Y.jsx("button",{className:it["genius-dashboard-icon-container"],onClick:re,"aria-label":"Close",children:Y.jsx(ES,{})})]})]}),Y.jsxs("div",{className:it["genius-dashboard-body"],children:[se?Y.jsx("div",{className:it["genius-dashboard-feedback-overlay"],children:Y.jsx(GS,{feedbackType:"DISLIKE",onFeedbackClick:st,onBack:()=>R(!1),onClose:()=>R(!1),onHistoryClick:()=>{R(!1),me()}})}):V?Y.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"#fff",zIndex:1e3,display:"flex",flexDirection:"column",overflow:"hidden"},children:Y.jsxs("div",{className:it["genius-voice-assistant-wrapper"],style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",position:"relative",overflow:"hidden"},children:[Y.jsx("style",{children:`
|
|
456
|
+
`),Ct=At.slice(0,-1);St=At[At.length-1],console.log("🔍 DEBUG: Complete events:",Ct.length,"Buffer remaining:",St.length),Ct.forEach(pt=>Ft(pt))}}catch(ft){if(ft instanceof Error&&ft.name==="AbortError"){console.log("Request was aborted");return}console.error("Error sending message:",ft);let ot="Unable to connect to Genius Analytics. Please check your network connection and try again.";ft instanceof Error&&ft.message.includes("Authentication token not found")?ot="Session expired or not authenticated. Please log in to continue using Genius Analytics.":ft instanceof Error&&ft.message.includes("status 401")?ot="Invalid authentication credentials. Please log in with valid credentials.":ft instanceof Error&&ft.message.includes("status 403")?ot="Access denied. You don't have permission to access this data.":ft instanceof Error&&ft.message.includes("status 404")?ot="Analytics service not found. Please contact support if this issue persists.":ft instanceof Error&&ft.message.includes("status 500")?ot="Server error occurred. Our team has been notified. Please try again later.":ft instanceof Error&&ft.message.includes("Failed to fetch")&&(ot="Network error. Please check your internet connection and ensure the analytics service is accessible.");const Ot={id:(Date.now()+1).toString(),content:ot,role:"assistant",timestamp:new Date};j(Bt=>[...Bt,Ot])}finally{ee(!1),O(!1),te(null)}},Ge=Ne=>{Ne.key==="Enter"&&!Ne.shiftKey&&(Ne.preventDefault(),B?Ae():$e())},qe=Y.jsxs("div",{className:it["genius-dashboard-input-area"],children:[g&&S.length>0&&Y.jsx("button",{className:it["genius-dashboard-scroll-button"],onClick:()=>{ce.current=!1,we(!0)},"aria-label":"Scroll to bottom",children:Y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:Y.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 3C12.5523 3 13 3.44772 13 4V17.5858L17.2929 13.2929C17.6834 12.9024 18.3166 12.9024 18.7071 13.2929C19.0976 13.6834 19.0976 14.3166 18.7071 14.7071L12.7071 20.7071C12.3166 21.0976 11.6834 21.0976 11.2929 20.7071L5.29289 14.7071C4.90237 14.3166 4.90237 13.6834 5.29289 13.2929C5.68342 12.9024 6.31658 12.9024 6.70711 13.2929L11 17.5858V4C11 3.44772 11.4477 3 12 3Z",fill:"black"})})}),!V&&Y.jsxs("div",{className:`${it["genius-dashboard-input-container"]} ${S.length>0?it["single-line"]:""}`,children:[S.length===0?Y.jsx("textarea",{ref:k,placeholder:c,value:x,onChange:Ne=>v(Ne.target.value),onKeyDown:Ge,className:it["genius-dashboard-input"],rows:2}):Y.jsx("input",{ref:k,type:"text",placeholder:c,value:x,onChange:Ne=>v(Ne.target.value),onKeyDown:Ge,className:`${it["genius-dashboard-input"]} ${it["single-line-input"]}`}),Y.jsx("div",{className:it["genius-dashboard-input-actions"],children:Y.jsxs("div",{className:it["genius-dashboard-voice-container"],children:[(o==null?void 0:o.showMicrophoneButton)!==!1&&Y.jsx("button",{className:it["genius-dashboard-microphone-button"],"aria-label":"Voice input",onClick:be,disabled:B||I,children:Y.jsx(D5,{})}),B?Y.jsx("button",{className:it["genius-dashboard-cancel-button"],"aria-label":"Cancel",onClick:Ae,children:Y.jsx(jS,{})}):Y.jsxs("div",{className:it["genius-dashboard-send-retry-container"],children:[z&&Y.jsx(Y.Fragment,{}),Y.jsx("button",{className:it["genius-dashboard-send-button"],"aria-label":"Send",onClick:$e,disabled:I,children:Y.jsx(O5,{})})]})]})})]})]}),Je=o&&o.userEmail||"",rt=Ne=>{ye(Ne),R(!0),j(ut=>ut.map(lt=>({...lt,skipAnimation:!0})))},st=async Ne=>{const ut=localStorage.getItem("login")||"",lt=S.find(Fe=>Fe.id===ue);if(!(!(lt!=null&<.feedbackId)||!ut))try{const Fe=y.replace(/\/api\/v3\/analytics\/?$/,""),ft=`Basic ${btoa(ut+":")}`,ot=await fetch(`${Fe}/api/v3/analytics/feedback`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:ft},body:JSON.stringify({id:lt.feedbackId,feedbackEnum:"DISLIKE",feedbackText:Ne})});ot.ok?(j(Ot=>Ot.map(Bt=>Bt.id===ue?{...Bt,hasDisliked:!0,skipAnimation:!0}:Bt)),R(!1),ye(null),console.log("Dislike feedback submitted successfully")):console.error("Failed to submit dislike feedback",ot.status,ot.statusText)}catch(Fe){console.error("Error submitting dislike feedback:",Fe)}};return Ue.useEffect(()=>{console.log("aaaaaaa",S)},[S]),Y.jsxs(Y.Fragment,{children:[Y.jsx("div",{className:`${it["genius-dashboard-backdrop"]} ${it.visible}`}),Y.jsxs("div",{className:`${it["genius-dashboard-container"]} ${it.expanded}`,ref:w,children:[P&&Y.jsx("div",{className:it["genius-dashboard-history-overlay"],children:Y.jsxs("div",{className:it["genius-dashboard-history-container"],children:[Y.jsxs("div",{className:it["genius-dashboard-history-header"],children:[Y.jsxs("div",{className:it["genius-dashboard-history-header-left"],children:[Y.jsx("button",{className:it["genius-dashboard-history-back"],onClick:pe,"aria-label":"Back",children:Y.jsx(DS,{})}),Y.jsx("h2",{children:"Chat History"})]}),Y.jsxs("div",{className:it["genius-dashboard-history-actions"],children:[Y.jsx("button",{className:it["genius-dashboard-history-action"],"aria-label":"New Chat",onClick:()=>{ke(),pe()},children:Y.jsx(c2,{})}),Y.jsx("button",{className:it["genius-dashboard-history-action"],"aria-label":"Close",onClick:re,children:Y.jsx(ES,{})})]})]}),Y.jsx("div",{className:it["genius-dashboard-history-list"],ref:N,onWheel:K,children:_?Y.jsx("div",{className:it["genius-dashboard-history-loading"],children:"Loading history..."}):G.length===0?Y.jsx("div",{className:it["genius-dashboard-history-empty"],children:"No chat history found"}):G.map(Ne=>Y.jsxs("div",{className:it["genius-dashboard-history-item"],onClick:()=>xe(Ne),children:[Y.jsxs("div",{className:it["genius-dashboard-history-item-content"],children:[Y.jsx("div",{className:it["genius-dashboard-history-item-title"],children:Ne.title}),Y.jsxs("div",{className:it["genius-dashboard-history-item-date"],children:[De(Ne.timestamp)," • ",Ne.messageCount," messages"]})]}),Y.jsx("button",{className:it["genius-dashboard-history-item-delete"],onClick:ut=>Te(Ne.sessionId,ut),"aria-label":"Delete session",children:Y.jsx(OS,{})})]},Ne.sessionId))})]})}),Y.jsxs("div",{className:it["genius-dashboard-top-bar"],children:[Y.jsx("div",{className:it["genius-dashboard-icons-left"],children:se&&Y.jsxs("button",{className:`${it["genius-dashboard-icon-container"]} ${it["with-text"]}`,onClick:()=>R(!1),"aria-label":"Back",children:[Y.jsx(LS,{}),Y.jsx("span",{className:it["genius-dashboard-back-text"],children:"Back"})]})}),Y.jsxs("div",{className:it["genius-dashboard-icons-right"],children:[S.length>0&&!se&&Y.jsx("button",{className:it["genius-dashboard-icon-container"],"aria-label":"Edit",onClick:ke,children:Y.jsx(c2,{})}),Y.jsx("button",{className:it["genius-dashboard-icon-container"],"aria-label":"History",onClick:()=>{se&&R(!1),V&&ae(!1),me()},children:Y.jsx(E5,{})}),Y.jsx("button",{className:it["genius-dashboard-icon-container"],onClick:re,"aria-label":"Close",children:Y.jsx(ES,{})})]})]}),Y.jsxs("div",{className:it["genius-dashboard-body"],children:[se?Y.jsx("div",{className:it["genius-dashboard-feedback-overlay"],children:Y.jsx(GS,{feedbackType:"DISLIKE",onFeedbackClick:st,onBack:()=>R(!1),onClose:()=>R(!1),onHistoryClick:()=>{R(!1),me()}})}):V?Y.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"#fff",zIndex:1e3,display:"flex",flexDirection:"column",overflow:"hidden"},children:Y.jsxs("div",{className:it["genius-voice-assistant-wrapper"],style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",position:"relative",overflow:"hidden"},children:[Y.jsx("style",{children:`
|
|
457
457
|
.${it["genius-voice-assistant-wrapper"]} .bottom-bar-container {
|
|
458
458
|
position: absolute !important;
|
|
459
459
|
bottom: 20px !important;
|
|
@@ -472,13 +472,13 @@ use only for debugging`),y.connect(r.destination)),this.source=c,this.node=f,thi
|
|
|
472
472
|
}
|
|
473
473
|
`}),!ie&&Y.jsxs("div",{style:{position:"absolute",top:"64px",left:0,right:0,bottom:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:1e3,backgroundColor:"rgba(255, 255, 255, 0.98)"},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",marginBottom:"24px"},children:[Y.jsx("div",{className:`${it["voice-connecting-bar"]} ${it["voice-connecting-bar-1"]}`}),Y.jsx("div",{className:`${it["voice-connecting-bar"]} ${it["voice-connecting-bar-2"]}`}),Y.jsx("div",{className:`${it["voice-connecting-bar"]} ${it["voice-connecting-bar-3"]}`}),Y.jsx("div",{className:`${it["voice-connecting-bar"]} ${it["voice-connecting-bar-4"]}`}),Y.jsx("div",{className:`${it["voice-connecting-bar"]} ${it["voice-connecting-bar-5"]}`}),Y.jsx("div",{className:`${it["voice-connecting-bar"]} ${it["voice-connecting-bar-6"]}`})]}),Y.jsx("p",{style:{fontSize:"16px",lineHeight:"24px",color:"#70747E",textAlign:"center",margin:0,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},children:"Setting up connection..."})]}),Y.jsx(A6,{})]})}):S.length===0?Y.jsxs(Y.Fragment,{children:[Y.jsxs("div",{className:it["genius-dashboard-branding"],children:[Y.jsx("div",{className:it["genius-dashboard-logo-container"],children:Y.jsx("div",{className:it["genius-dashboard-logo"],children:Y.jsx(ub,{})})}),Y.jsxs("div",{className:it["genius-dashboard-welcome"],children:[Y.jsx("h2",{children:"Meet Genius 👋"}),Y.jsx("p",{children:d})]})]}),!P&&qe,Y.jsx("div",{className:it["genius-dashboard-suggestions"],children:f.map((Ne,ut)=>Y.jsxs("button",{className:it["genius-dashboard-suggestion"],onClick:()=>Re(Ne),children:[Ne==="Weekly Updates"&&Y.jsx(L5,{}),Y.jsx("span",{children:Ne})]},ut))})]}):Y.jsxs(Y.Fragment,{children:[Y.jsxs("div",{className:it["genius-dashboard-conversation"],ref:E,onWheel:K,onScroll:Ee,children:[Y.jsxs("div",{className:it["genius-dashboard-messages-container"],children:[S.map((Ne,ut)=>Ne.srDropRCA?Y.jsx(rT,{data:Ne.srAnalysisData||{},updatedPayload:Ne.srAnalysisPayload||{},userEmail:Ne.userEmail||Je},Ne.id):Ne.role==="assistant"?Y.jsx(BS,{message:Ne,showIcon:ut===0||S[ut-1].role!=="assistant",onTypingStateChange:he,skipAnimation:Ne.isFromHistory,onRetry:ze,isLastMessage:!!Ne.content&&ut===S.length-1&&!ne,onDislike:()=>rt(Ne.id),endpoint:y},Ne.id):Y.jsx("div",{className:`${it["genius-dashboard-message"]} ${it[Ne.role]}`,children:Y.jsx("div",{className:it["genius-dashboard-message-bubble"],children:Y.jsx("div",{className:it["genius-dashboard-message-content"],dangerouslySetInnerHTML:{__html:Ne.content}})})},Ne.id)),ne&&Y.jsxs("div",{className:`${it["genius-dashboard-message"]} ${it.assistant}`,children:[Y.jsx("div",{className:it["genius-dashboard-assistant-icon"],children:Y.jsx(ub,{})}),Y.jsx("div",{className:it["genius-dashboard-thinking"],children:"Thinking"})]}),Y.jsx("div",{ref:Z})]}),Y.jsx("div",{ref:q,style:{height:"50px"}})]}),!P&&qe]}),S.length===0&&Y.jsxs("div",{className:it["genius-dashboard-security-info"],children:[Y.jsx(j5,{}),Y.jsx("span",{children:"Your transaction data is secure, private, and never stored or shared."})]})]})]})]})},Tt={"genius-chatbot-mobile-wrapper":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-wrapper___BtGde","genius-chatbot-mobile-container":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-container___AxurG","genius-chatbot-mobile-header":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-header___LZvKZ","genius-chatbot-mobile-header-icons":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-header-icons___nkbc4","genius-chatbot-mobile-body":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-body___Nljp1","genius-chatbot-mobile-content":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-content___9CHzt","single-line":"genius-sdk__GeniusChatbotMobile-module__single-line___-vJMf","genius-chatbot-mobile-welcome":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-welcome___i2CC0","genius-chatbot-mobile-branding":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-branding___z6abT","genius-chatbot-mobile-logo-container":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-logo-container___BMri1","genius-chatbot-mobile-logo":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-logo___kNw8B","genius-chatbot-mobile-logo-icon":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-logo-icon___NOPGn","genius-chatbot-mobile-welcome-text":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-welcome-text___Eov4M","genius-chatbot-mobile-welcome-title":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-welcome-title___FzkYR","genius-chatbot-mobile-welcome-subtitle":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-welcome-subtitle___P2N48","genius-chatbot-mobile-input-section":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input-section___hHmrd","genius-chatbot-mobile-input-container":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input-container___wdwox","genius-chatbot-mobile-input-row":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input-row___uNlWm","genius-chatbot-mobile-input":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input___kMLVV","single-line-input":"genius-sdk__GeniusChatbotMobile-module__single-line-input___e6KVp","genius-chatbot-mobile-input-actions":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-input-actions___vzTQ4","genius-chatbot-mobile-icon-button":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-icon-button___cx5-N","genius-chatbot-mobile-icon-button-header":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-icon-button-header___lBaEW","genius-chatbot-mobile-send-button":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-send-button___OWEoN","genius-chatbot-mobile-cancel-button":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-cancel-button___9yO-b","genius-chatbot-mobile-messages":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-messages___0BV99","genius-chatbot-mobile-message":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message___7dFqy",fadeIn:"genius-sdk__GeniusChatbotMobile-module__fadeIn___wwyEU",user:"genius-sdk__GeniusChatbotMobile-module__user___PtOAo",assistant:"genius-sdk__GeniusChatbotMobile-module__assistant___yaDOh","genius-chatbot-mobile-message-content":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-message-content___LYxmY","genius-chatbot-mobile-suggestions":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-suggestions___8Su-Y","genius-chatbot-mobile-suggestion":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-suggestion___-7Od1","genius-chatbot-mobile-loading":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-loading___812RY","genius-chatbot-mobile-loading-dots":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-loading-dots___9C82M","genius-chatbot-mobile-loading-dot":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-loading-dot___kNaDD",pulse:"genius-sdk__GeniusChatbotMobile-module__pulse___pyEhS","genius-chatbot-mobile-description":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-description___UBJ5A","genius-chatbot-mobile-value-pill":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-value-pill___UVZN2","genius-chatbot-mobile-chart-container":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-chart-container___SFGsK","genius-chatbot-mobile-single-stat-wrapper":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-single-stat-wrapper___AvedJ","genius-chatbot-mobile-table-wrapper":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-table-wrapper___UWzSR","genius-chatbot-mobile-history-overlay":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-overlay___hW74x","genius-chatbot-mobile-history-container":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-container___FJKqB","genius-chatbot-mobile-history-header":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-header___dWTfk","genius-chatbot-mobile-history-header-left":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-header-left___9qSbt","genius-chatbot-mobile-history-back":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-back___--HRQ","genius-chatbot-mobile-history-actions":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-actions___iwfPD","genius-chatbot-mobile-history-action":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-action___Pd1mQ","genius-chatbot-mobile-history-list":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-list___qksvj","genius-chatbot-mobile-history-loading":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-loading___FrgIf","genius-chatbot-mobile-history-empty":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-empty___p54tM","genius-chatbot-mobile-history-item":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item___2Xjtc","genius-chatbot-mobile-history-item-content":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-content___iOAR-","genius-chatbot-mobile-history-item-title":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-title___iQMh9","genius-chatbot-mobile-history-item-date":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-date___uuhMZ","genius-chatbot-mobile-history-item-delete":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-history-item-delete___kMUwr","genius-dashboard-message":"genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message___nsz8K","genius-dashboard-message-bubble":"genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message-bubble___mtDtI","genius-dashboard-message-content":"genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message-content___BCtMc","genius-dashboard-thinking":"genius-sdk__GeniusChatbotMobile-module__genius-dashboard-thinking___dTUA-","genius-dashboard-assistant-icon":"genius-sdk__GeniusChatbotMobile-module__genius-dashboard-assistant-icon___7QK3G",ellipsis:"genius-sdk__GeniusChatbotMobile-module__ellipsis___w22gP","genius-dashboard-action-buttons":"genius-sdk__GeniusChatbotMobile-module__genius-dashboard-action-buttons___GaJiS","genius-dashboard-like-button-inline":"genius-sdk__GeniusChatbotMobile-module__genius-dashboard-like-button-inline___TXDtg","genius-dashboard-dislike-button-inline":"genius-sdk__GeniusChatbotMobile-module__genius-dashboard-dislike-button-inline___CKeEV","genius-dashboard-retry-button-inline":"genius-sdk__GeniusChatbotMobile-module__genius-dashboard-retry-button-inline___E7tHQ","genius-dashboard-message-content-wrapper":"genius-sdk__GeniusChatbotMobile-module__genius-dashboard-message-content-wrapper___x7mri","genius-chatbot-mobile-feedback-overlay":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-feedback-overlay___-z7Nq","genius-chatbot-mobile-close-voice-button":"genius-sdk__GeniusChatbotMobile-module__genius-chatbot-mobile-close-voice-button___GW-6U","genius-voice-assistant-wrapper":"genius-sdk__GeniusChatbotMobile-module__genius-voice-assistant-wrapper___F95Pz","voice-wave":"genius-sdk__GeniusChatbotMobile-module__voice-wave___lDwzB","voice-connecting-bar":"genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar___nyyKk",active:"genius-sdk__GeniusChatbotMobile-module__active___ddjbF","voice-connecting-bar-1":"genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar-1___ZqSIE",fluidWave1:"genius-sdk__GeniusChatbotMobile-module__fluidWave1___i4CT5","voice-connecting-bar-2":"genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar-2___S0vvy",fluidWave2:"genius-sdk__GeniusChatbotMobile-module__fluidWave2___aqgUd","voice-connecting-bar-3":"genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar-3___Afm6f",fluidWave3:"genius-sdk__GeniusChatbotMobile-module__fluidWave3___5goXJ","voice-connecting-bar-4":"genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar-4___PGea4",fluidWave4:"genius-sdk__GeniusChatbotMobile-module__fluidWave4___RL0Wp","voice-connecting-bar-5":"genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar-5___9u-cU",fluidWave5:"genius-sdk__GeniusChatbotMobile-module__fluidWave5___R4EL6","voice-connecting-bar-6":"genius-sdk__GeniusChatbotMobile-module__voice-connecting-bar-6___pTE2R",fluidWave6:"genius-sdk__GeniusChatbotMobile-module__fluidWave6___LXEtg"},Gr=o=>{const i=o.toLowerCase();return i.includes("rate")||i.includes("percentage")||i.includes("percent")?"percentage":i.includes("volume")||i.includes("count")||i.includes("total")||i.includes("amount")?"volume":i.includes("latency")||i.includes("time")||i.includes("duration")?"latency":"default"},ts=(o,i)=>{switch(i){case"percentage":return`${o}%`;case"volume":return o>=1e7?`${(o/1e7).toFixed(2)} Cr`:o>=1e5?`${(o/1e5).toFixed(2)} L`:o>=1e3?`${(o/1e3).toFixed(2)} K`:o.toString();case"latency":return`${o.toFixed(2)} s`;default:return o.toString()}},gm=(o,i,r)=>{const c=[...o].sort((B,ee)=>new Date(B[i]).getTime()-new Date(ee[i]).getTime()),d=Object.keys(o[0]).filter(B=>B!==i&&B!==r);if(d.length===0){const B=[...new Set(c.map(ne=>ne[i]))],ee=B.map(ne=>{const O=c.find(V=>V[i]===ne);return O?Number(O[r]||0):null});return{hasDimensions:!1,series:[{type:"line",name:r.replace(/_/g," "),data:ee,connectNulls:!0}],categories:B.map(ne=>new Date(ne).toLocaleTimeString([],{day:"numeric",month:"short",hour:"2-digit",minute:"2-digit"}))}}const f=d[0],y=c.reduce((B,ee)=>{const ne=ee[f];return B[ne]||(B[ne]=[]),B[ne].push(ee),B},{}),x=[...new Set(c.map(B=>B[i]))],v=["#7856FF","#FEBBB2","#72BEF4","#1E90FF","#E377C2","#7FE1D8","#CB80DC","#5CB7AF","#1F77B4","#9467BD","#0F7EA0","#17BECF","#7F7F7F","#BCBD22","#A0872C","#006400","#B3596E","#4B0082","#4B6D8C"],S=Object.entries(y).map(([B,ee],ne)=>{const O=new Map;ee.forEach(ae=>{O.set(ae[i],ae[r])});const V=x.map(ae=>{const ie=O.get(ae);return ie!==void 0?Number(ie):null});return{type:"line",name:B,color:v[ne%v.length],data:V,connectNulls:!0}}),j=x.map(B=>new Date(B).toLocaleTimeString([],{day:"numeric",month:"short",hour:"2-digit",minute:"2-digit"}));return{hasDimensions:!0,series:S,categories:j}},D6=()=>{try{const o=localStorage.getItem("login")||"";return o?`Basic ${btoa(o+":")}`:(console.warn("No token found in localStorage"),"")}catch(o){return console.error("Error getting auth header:",o),""}},O6=({config:o={}})=>{const{welcomeMessage:i="Your go-to for all payment related inquiries!",placeholder:r="Ask Genius",suggestions:c=["How to integrate?","Pricing Plan","Supported Gateways"],theme:d={},endpoint:f="https://genius.juspay.in/api/v3/analytics/",onMessage:y,onClose:x}=o;Un.setOptions({breaks:!0,gfm:!0,pedantic:!1});const[v,S]=Ue.useState([]),[j,B]=Ue.useState(""),[ee,ne]=Ue.useState(!1),[O,V]=Ue.useState(!1),[ae,ie]=Ue.useState(!1),[U,P]=Ue.useState(null),[X,Q]=Ue.useState(""),[$,I]=Ue.useState(!1),[he,oe]=Ue.useState([]),[te,z]=Ue.useState(!1),[W,G]=Ue.useState(""),[T,_]=Ue.useState(!1),[A,L]=Ue.useState(null),[J,se]=Ue.useState(!1),[R,ue]=Ue.useState(!1),ye=Ue.useRef(null),g=Ue.useRef(null),C=Ue.useRef(null);Ue.useEffect(()=>{(async()=>{try{await Br.init(),await k()}catch(xe){console.error("Failed to initialize chat history database:",xe)}})()},[]);const k=async()=>{try{z(!0);const pe=await Br.loadSessions();console.log("Loaded chat sessions:",pe),oe(pe)}catch(pe){console.error("Failed to load chat sessions:",pe)}finally{z(!1)}},Z=async pe=>{try{console.log("Loading session messages for:",pe);const xe=await Br.loadMessages(pe);console.log("Raw messages from DB:",xe);const Te=[];for(const ke of xe)if(ke.role==="user"){const Ae={id:ke.id,content:ke.content,role:ke.role,timestamp:ke.timestamp,isFromHistory:!0};Te.push(Ae)}else if(ke.role==="assistant"){if(ke.finalOutputData){console.log("Processing finalOutputData:",ke.finalOutputData);const Ae=ke.finalOutputData;if(Ae.responses&&Array.isArray(Ae.responses)){for(const De of Ae.responses)if(De.payload_type==="q_api"&&De.output)try{const ze=JSON.parse(De.output),$e=De.input?Ol(De.input,"q_api"):"";if(ze.length>0){const Ge=ze[0],qe=Object.keys(Ge).find(Je=>Je.includes("_time"));if(qe){const rt=Object.keys(Ge).filter(st=>st!==qe&&!["gateway","payment_gateway","dimension","group","category"].includes(st))[0];if(rt){const st=gm(ze,qe,rt),Ne=Gr(rt),ut={chart:{type:"line"},title:{text:`${rt.replace(/_/g," ")}`},credits:{enabled:!1},xAxis:{categories:st.categories,labels:{formatter:function(){const lt=String(this.value),Fe=new Date(lt);return Fe.getHours()===0&&Fe.getMinutes()===0?`${Fe.getDate()}. ${Fe.toLocaleString("default",{month:"short"})}`:lt.split(", ")[1]},style:{color:"#9aa0a6"},rotation:0,align:"center",step:4}},yAxis:{title:{text:""},gridLineColor:"#e0e0e0",gridLineDashStyle:"Dash",labels:{formatter:function(){return ts(Number(this.value),Ne)},style:{color:"#9aa0a6"}}},legend:{enabled:st.hasDimensions,align:"left",verticalAlign:"top",layout:"horizontal",y:10,itemStyle:{fontSize:"11px"},symbolRadius:0,symbolHeight:0,symbolWidth:0,useHTML:!0,labelFormatter:function(){return'<span style="display: inline-flex; align-items: center;"><span style="background-color: '+this.color+'; width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 4px;"></span>'+this.name+"</span>"}},plotOptions:{series:{marker:{enabled:!1,symbol:"circle",radius:3,states:{hover:{enabled:!0,radius:4}}},states:{hover:{lineWidthPlus:1}}}},tooltip:{shared:!0,useHTML:!0,backgroundColor:"rgba(255, 255, 255, 0)",borderWidth:0,shadow:!1,style:{padding:"0px"},formatter:function(){var Vt,It;const lt=Gr(rt),Fe=_t=>_t.replace(/_/g," ").replace(/\b\w/g,mt=>mt.toUpperCase()),ft=_t=>{const mt=new Date(_t),ht=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],bt=["January","February","March","April","May","June","July","August","September","October","November","December"],St=ht[mt.getDay()],Et=mt.getDate(),Dt=bt[mt.getMonth()],Mt=mt.getFullYear();let Ft=mt.getHours();const kn=mt.getMinutes(),yt=Ft>=12?"PM":"AM";Ft=Ft%12,Ft=Ft||12;const Pt=kn<10?"0"+kn:kn;return`${St}, ${Et} ${Dt}, ${Mt} ${Ft}:${Pt} ${yt}`};let ot='<div style="border-radius: 12px; border: 1px solid #EAECF0; background: #FFF; box-shadow: 0px 6px 15px 0px rgba(0, 0, 0, 0.15), 0px 3px 2px -5px rgba(0, 0, 0, 0.04); padding: 16px;">';ot+='<div style="display: flex; font-family: Inter, sans-serif; gap: 16px; align-items: stretch;">';const Ot=((Vt=this.points)==null?void 0:Vt[0].color)||"#3BA974";if(ot+=`<div style="background:${Ot}; width: 4px; flex-shrink: 0; border-radius: 4px; align-self: stretch;"></div>`,ot+='<div style="display: flex; flex-direction: column; gap: 12px;">',ot+='<div style="display: flex; flex-direction: column; gap: 4px;">',ot+=`<div style="color: #525252; font-feature-settings: 'clig' off, 'liga' off; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 600; line-height: 18px;">${Fe(rt)}</div>`,ot+="</div>",ot+='<div class="flex flex-col gap-1" style="display: flex; flex-direction: column; gap: 6px;">',this.points)[...this.points].sort((mt,ht)=>(ht.y||0)-(mt.y||0)).forEach(mt=>{var Mt,Ft;const ht=ts(mt.y||0,lt),bt=((Mt=mt.series)==null?void 0:Mt.name)==="Overall",St=bt?"bg-jp-2-gray-30 text-jp-2-gray-700":"bg-jp-2-green-50 text-jp-2-green-200",Et=bt?"#E8E8E8":"#D4F4E5",Dt=bt?"#424242":"#008242";ot+='<div class="flex items-center" style="display: flex; align-items: center;">',ot+=`<div class="${St} rounded p-1 font-semibold mr-1.5 my-1" style="background-color: ${Et}; color: ${Dt}; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${ht}</div>`,ot+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((Ft=mt.series)==null?void 0:Ft.name)||""}</div>`,ot+="</div>"});else{const _t=ts(this.y||0,lt);ot+='<div class="flex items-center" style="display: flex; align-items: center;">',ot+=`<div class="bg-jp-2-green-50 text-jp-2-green-200 rounded p-1 font-semibold mr-1.5 my-1" style="background-color: #D4F4E5; color: #008242; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${_t}</div>`,ot+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((It=this.series)==null?void 0:It.name)||""}</div>`,ot+="</div>"}const Bt=this.x?ft(String(this.x)):"";return ot+=`<div class="font-medium text-jp-2-gray-300" style="font-weight: 500; color: #9AA0A6; font-size: 12px; margin-top: 4px;">${Bt}</div>`,ot+="</div>",ot+="</div>",ot+="</div>",ot+="</div>",ot},xDateFormat:"%a, %d %B, %Y %H:%M"},series:st.series};Te.push({id:`${ke.id}-chart`,content:"",role:"assistant",timestamp:ke.timestamp,description:$e,chartData:ut,isFromHistory:!0})}}else if(ze.length===1){const Je=Object.keys(Ge)[0];if(Je){const rt={metric:Je.replace(/_/g," "),value:Ge[Je]===null?"N/A":Ge[Je]};Te.push({id:`${ke.id}-stat`,content:"",role:"assistant",timestamp:ke.timestamp,description:$e,singleStat:rt,isFromHistory:!0})}}else Te.push({id:`${ke.id}-table`,content:"",role:"assistant",timestamp:ke.timestamp,description:$e,tableData:ze,isFromHistory:!0})}}catch(ze){console.error("Error parsing stored response output:",ze)}}}if(ke.chartData){const Ae={id:`${ke.id}-legacy-chart`,content:"",role:"assistant",timestamp:ke.timestamp,chartData:ke.chartData,description:ke.description,isFromHistory:!0};Te.push(Ae)}if(ke.singleStat){const Ae={id:`${ke.id}-legacy-stat`,content:"",role:"assistant",timestamp:ke.timestamp,singleStat:ke.singleStat,description:ke.description,isFromHistory:!0};Te.push(Ae)}if(ke.tableData){const Ae={id:`${ke.id}-legacy-table`,content:"",role:"assistant",timestamp:ke.timestamp,tableData:ke.tableData,description:ke.description,isFromHistory:!0};Te.push(Ae)}if(ke.content){const Ae={id:ke.id,content:ke.content,role:ke.role,timestamp:ke.timestamp,isFromHistory:!0};Te.push(Ae)}}console.log("Reconstructed messages:",Te),S(Te),Q(pe),I(!1)}catch(xe){console.error("Failed to load session messages:",xe)}},q=async(pe,xe,Te,ke)=>{const Ae=ke||X;if(Ae)try{await Br.saveMessage(Ae,pe,xe,Te),await k()}catch(De){console.error("Failed to save message to history:",De)}},w=pe=>{const Te=new Date().getTime()-pe.getTime(),ke=Math.floor(Te/6e4),Ae=Math.floor(Te/36e5),De=Math.floor(Te/864e5);return ke<1?"Just now":ke<60?`${ke} min ago`:Ae<24?`${Ae} hour${Ae>1?"s":""} ago`:De<7?`${De} day${De>1?"s":""} ago`:pe.toLocaleDateString()},E=()=>{I(!0),k()},N=()=>{I(!1)},ce=pe=>{Z(pe.sessionId)},D=async(pe,xe)=>{xe.stopPropagation();try{await Br.deleteSession(pe),await k()}catch(Te){console.error("Failed to delete session:",Te)}},H=()=>{S([]),Q(""),B(""),U&&(U.abort(),P(null)),ne(!1),V(!1),ie(!1),I(!1)},K=()=>{var pe;(pe=ye.current)==null||pe.scrollIntoView({behavior:"smooth"})};Ue.useEffect(()=>{K()},[v]),Ue.useEffect(()=>{O&&setTimeout(()=>K(),100)},[O]),Ue.useEffect(()=>{if(J){ue(!1);const pe=localStorage.getItem("login")||"";pe?(window.postMessage({type:"AUTH_TOKEN",token:pe},"*"),console.log("Sent auth token to Voice Assistant")):console.warn("No auth token found in localStorage");const xe=Te=>{var ke,Ae,De;console.log("Received message in voice mode:",Te.data),((ke=Te.data)==null?void 0:ke.type)==="CLOSE_VOICE_ASSISTANT"?(se(!1),ue(!1)):((Ae=Te.data)==null?void 0:Ae.type)==="RTVI_CLIENT_READY"?console.log("Voice assistant client is ready"):((De=Te.data)==null?void 0:De.type)==="VOICE_ASSISTANT_CONNECTED"&&(console.log("Voice assistant is connected and ready"),ue(!0))};return window.addEventListener("message",xe),()=>{window.removeEventListener("message",xe)}}else ue(!1)},[J]),Ue.useEffect(()=>{C.current&&C.current.focus()},[]);const re=()=>{if(U){U.abort(),P(null),ne(!1),V(!1);const pe={id:(Date.now()+Math.random()).toString(),content:"Request cancelled. You can retry your query.",role:"assistant",timestamp:new Date};S(xe=>[...xe,pe])}},le=async()=>{if(W&&!ee&&!ae){const pe=W;S(Te=>{let ke=-1;for(let Ae=Te.length-1;Ae>=0;Ae--)if(Te[Ae].role==="user"){ke=Ae;break}return ke>=0?Te.slice(0,ke+1):Te}),ne(!0),V(!0),setTimeout(()=>K(),100);const xe=new AbortController;P(xe);try{const Te=D6();if(!Te)throw new Error("Authentication token not found");const ke={"Content-Type":"application/json",Accept:"text/event-stream",Authorization:Te},Ae=new Date,De=Ae.getFullYear()+"-"+String(Ae.getMonth()+1).padStart(2,"0")+"-"+String(Ae.getDate()).padStart(2,"0")+"T"+String(Ae.getHours()).padStart(2,"0")+":"+String(Ae.getMinutes()).padStart(2,"0")+":"+String(Ae.getSeconds()).padStart(2,"0")+"Z",ze=await fetch(f,{method:"POST",headers:{...ke,Accept:"text/event-stream"},body:JSON.stringify({query:pe,current_timestamp:De,session_id:X,regenerate:!0}),signal:xe.signal});if(!ze.ok)throw new Error(`API request failed with status ${ze.status}`);if(ze.body){const $e=ze.body.getReader(),Ge=new TextDecoder;let qe=null,Je="",rt="";for(;;){const{done:st,value:Ne}=await $e.read();if(st){rt.trim()&&rt.split(`
|
|
474
474
|
|
|
475
|
-
`).filter(ot=>ot).forEach(ot=>{var Vt,It;const Ot=(Vt=ot.match(/event: (.*)/))==null?void 0:Vt[1],Bt=ot.match(/data: (.*)/);if(Bt)try{const _t=JSON.parse(Bt[1]);if(Ot==="session_id"&&_t.session_id)Q(_t.session_id);else if(Ot==="agent_text_output"||Ot==="final_output"){V(!1);const mt=_t.message||"";if(Je=mt,qe)S(ht=>ht.map(bt=>bt.id===qe?{...bt,content:mt,feedbackId:Ot==="final_output"&&_t.feedback_id?_t.feedback_id:bt.feedbackId}:bt));else{qe=(Date.now()+Math.random()).toString();const ht={id:qe,content:mt,role:"assistant",timestamp:new Date,feedbackId:Ot==="final_output"&&_t.feedback_id?_t.feedback_id:void 0};S(bt=>[...bt,ht])}if(Ot==="final_output"){console.log("Saving retry to IndexedDB:",{sessionId:X||_t.session_id,userMessage:pe,botResponse:mt,fullData:_t});const ht=X||_t.session_id;ht&&mt&&q(pe,mt,{finalOutputData:_t},ht).catch(St=>{console.error("Failed to save message to IndexedDB:",St)})}}else if(Ot==="tool_output"&&(_t.tool_name==="q_api_gemini"||(It=_t.tool_name)!=null&&It.startsWith("q_api"))){const mt=JSON.parse(_t.output),ht=_t.input?Ol(_t.input,_t.tool_name):"";if(mt.length>0){const bt=mt[0],St=Object.keys(bt).find(Et=>Et.includes("_time"));if(St){const Dt=Object.keys(bt).filter(Mt=>Mt!==St&&!["gateway","payment_gateway","dimension","group","category"].includes(Mt))[0];if(Dt){const Mt=gm(mt,St,Dt),Ft=Gr(Dt),kn={chart:{type:"line"},title:{text:`${Dt.replace(/_/g," ")}`},credits:{enabled:!1},xAxis:{categories:Mt.categories,labels:{formatter:function(){const At=String(this.value),Ct=new Date(At);return Ct.getHours()===0&&Ct.getMinutes()===0?`${Ct.getDate()}. ${Ct.toLocaleString("default",{month:"short"})}`:At.split(", ")[1]},style:{color:"#9aa0a6"},rotation:0,align:"center",step:4}},yAxis:{title:{text:""},gridLineColor:"#e0e0e0",gridLineDashStyle:"Dash",labels:{formatter:function(){return ts(Number(this.value),Ft)},style:{color:"#9aa0a6"}}},legend:{enabled:Mt.hasDimensions,align:"left",verticalAlign:"top",layout:"horizontal",y:10,itemStyle:{fontSize:"11px"},symbolRadius:0,symbolHeight:0,symbolWidth:0,useHTML:!0,labelFormatter:function(){return'<span style="display: inline-flex; align-items: center;"><span style="background-color: '+this.color+'; width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 4px;"></span>'+this.name+"</span>"}},plotOptions:{series:{marker:{enabled:!1,symbol:"circle",radius:3,states:{hover:{enabled:!0,radius:4}}},states:{hover:{lineWidthPlus:1}}}},tooltip:{shared:!0,useHTML:!0,backgroundColor:"rgba(255, 255, 255, 0)",borderWidth:0,shadow:!1,style:{padding:"0px"},formatter:function(){var an;const At=Gr(Dt),Ct=Ut=>Ut.replace(/_/g," ").replace(/\b\w/g,Rt=>Rt.toUpperCase()),pt=Ut=>{const Rt=new Date(Ut),Qt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],sn=["January","February","March","April","May","June","July","August","September","October","November","December"],Tn=Qt[Rt.getDay()],
|
|
475
|
+
`).filter(ot=>ot).forEach(ot=>{var Vt,It;const Ot=(Vt=ot.match(/event: (.*)/))==null?void 0:Vt[1],Bt=ot.match(/data: (.*)/);if(Bt)try{const _t=JSON.parse(Bt[1]);if(Ot==="session_id"&&_t.session_id)Q(_t.session_id);else if(Ot==="agent_text_output"||Ot==="final_output"){V(!1);const mt=_t.message||"";if(Je=mt,qe)S(ht=>ht.map(bt=>bt.id===qe?{...bt,content:mt,feedbackId:Ot==="final_output"&&_t.feedback_id?_t.feedback_id:bt.feedbackId}:bt));else{qe=(Date.now()+Math.random()).toString();const ht={id:qe,content:mt,role:"assistant",timestamp:new Date,feedbackId:Ot==="final_output"&&_t.feedback_id?_t.feedback_id:void 0};S(bt=>[...bt,ht])}if(Ot==="final_output"){console.log("Saving retry to IndexedDB:",{sessionId:X||_t.session_id,userMessage:pe,botResponse:mt,fullData:_t});const ht=X||_t.session_id;ht&&mt&&q(pe,mt,{finalOutputData:_t},ht).catch(St=>{console.error("Failed to save message to IndexedDB:",St)})}}else if(Ot==="tool_output"&&(_t.tool_name==="q_api_gemini"||(It=_t.tool_name)!=null&&It.startsWith("q_api"))){const mt=JSON.parse(_t.output),ht=_t.input?Ol(_t.input,_t.tool_name):"";if(mt.length>0){const bt=mt[0],St=Object.keys(bt).find(Et=>Et.includes("_time"));if(St){const Dt=Object.keys(bt).filter(Mt=>Mt!==St&&!["gateway","payment_gateway","dimension","group","category"].includes(Mt))[0];if(Dt){const Mt=gm(mt,St,Dt),Ft=Gr(Dt),kn={chart:{type:"line"},title:{text:`${Dt.replace(/_/g," ")}`},credits:{enabled:!1},xAxis:{categories:Mt.categories,labels:{formatter:function(){const At=String(this.value),Ct=new Date(At);return Ct.getHours()===0&&Ct.getMinutes()===0?`${Ct.getDate()}. ${Ct.toLocaleString("default",{month:"short"})}`:At.split(", ")[1]},style:{color:"#9aa0a6"},rotation:0,align:"center",step:4}},yAxis:{title:{text:""},gridLineColor:"#e0e0e0",gridLineDashStyle:"Dash",labels:{formatter:function(){return ts(Number(this.value),Ft)},style:{color:"#9aa0a6"}}},legend:{enabled:Mt.hasDimensions,align:"left",verticalAlign:"top",layout:"horizontal",y:10,itemStyle:{fontSize:"11px"},symbolRadius:0,symbolHeight:0,symbolWidth:0,useHTML:!0,labelFormatter:function(){return'<span style="display: inline-flex; align-items: center;"><span style="background-color: '+this.color+'; width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 4px;"></span>'+this.name+"</span>"}},plotOptions:{series:{marker:{enabled:!1,symbol:"circle",radius:3,states:{hover:{enabled:!0,radius:4}}},states:{hover:{lineWidthPlus:1}}}},tooltip:{shared:!0,useHTML:!0,backgroundColor:"rgba(255, 255, 255, 0)",borderWidth:0,shadow:!1,style:{padding:"0px"},formatter:function(){var an;const At=Gr(Dt),Ct=Ut=>Ut.replace(/_/g," ").replace(/\b\w/g,Rt=>Rt.toUpperCase()),pt=Ut=>{const Rt=new Date(Ut),Qt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],sn=["January","February","March","April","May","June","July","August","September","October","November","December"],Tn=Qt[Rt.getDay()],un=Rt.getDate(),mn=sn[Rt.getMonth()],Wt=Rt.getFullYear();let Ht=Rt.getHours();const $n=Rt.getMinutes(),ai=Ht>=12?"PM":"AM";Ht=Ht%12,Ht=Ht||12;const si=$n<10?"0"+$n:$n;return`${Tn}, ${un} ${mn}, ${Wt} ${Ht}:${si} ${ai}`};let vt='<div style="border-radius: 12px; border: 1px solid #EAECF0; background: #FFF; box-shadow: 0px 6px 15px 0px rgba(0, 0, 0, 0.15), 0px 3px 2px -5px rgba(0, 0, 0, 0.04); padding: 16px;">';vt+='<div style="display: flex; font-family: Inter, sans-serif; gap: 16px; align-items: stretch;">';const wt=this.points?this.points[0].color:this.color||"#3BA974";if(vt+=`<div style="background:${wt}; width: 4px; flex-shrink: 0; border-radius: 4px; align-self: stretch;"></div>`,vt+='<div style="display: flex; flex-direction: column; gap: 12px;">',vt+='<div style="display: flex; flex-direction: column; gap: 4px;">',vt+=`<div style="color: #525252; font-feature-settings: 'clig' off, 'liga' off; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 600; line-height: 18px;">${Ct(Dt)}</div>`,vt+="</div>",vt+='<div class="flex flex-col gap-1" style="display: flex; flex-direction: column; gap: 6px;">',this.points)[...this.points].sort((Rt,Qt)=>(Qt.y||0)-(Rt.y||0)).forEach(Rt=>{var Wt,Ht;const Qt=ts(Rt.y||0,At),sn=((Wt=Rt.series)==null?void 0:Wt.name)==="Overall",Tn=sn?"bg-jp-2-gray-30 text-jp-2-gray-700":"bg-jp-2-green-50 text-jp-2-green-200",un=sn?"#E8E8E8":"#D4F4E5",mn=sn?"#424242":"#008242";vt+='<div class="flex items-center" style="display: flex; align-items: center;">',vt+=`<div class="${Tn} rounded p-1 font-semibold mr-1.5 my-1" style="background-color: ${un}; color: ${mn}; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${Qt}</div>`,vt+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((Ht=Rt.series)==null?void 0:Ht.name)||""}</div>`,vt+="</div>"});else{const Ut=ts(this.y||0,At);vt+='<div class="flex items-center" style="display: flex; align-items: center;">',vt+=`<div class="bg-jp-2-green-50 text-jp-2-green-200 rounded p-1 font-semibold mr-1.5 my-1" style="background-color: #D4F4E5; color: #008242; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${Ut}</div>`,vt+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((an=this.series)==null?void 0:an.name)||""}</div>`,vt+="</div>"}const vn=this.x?pt(String(this.x)):"";return vt+=`<div class="font-medium text-jp-2-gray-300" style="font-weight: 500; color: #9AA0A6; font-size: 12px; margin-top: 4px;">${vn}</div>`,vt+="</div>",vt+="</div>",vt+="</div>",vt+="</div>",vt},xDateFormat:"%a, %d %B, %Y %H:%M"},series:Mt.series},yt={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:ht,chartData:kn};S(At=>[...At,yt]);const Pt=X||_t.session_id;Pt&&q(pe,Je,{chartData:kn,description:ht},Pt)}}else if(mt.length===1){const Et=Object.keys(bt)[0];if(Et){const Dt={metric:Et.replace(/_/g," "),value:bt[Et]===null?"N/A":bt[Et]},Mt={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:ht,singleStat:Dt};S(kn=>[...kn,Mt]);const Ft=X||_t.session_id;Ft&&q(pe,Je,{singleStat:Dt,description:ht},Ft)}}else{const Et={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:ht,tableData:mt};S(Mt=>[...Mt,Et]);const Dt=X||_t.session_id;Dt&&q(pe,Je,{tableData:mt,description:ht},Dt)}}}}catch(_t){console.error("Error parsing event data:",_t)}});break}const ut=Ge.decode(Ne,{stream:!0});rt+=ut;const lt=rt.split(`
|
|
476
476
|
|
|
477
|
-
`),Fe=lt.slice(0,-1);rt=lt[lt.length-1],Fe.forEach(ft=>{var Bt,Vt;const ot=(Bt=ft.match(/event: (.*)/))==null?void 0:Bt[1],Ot=ft.match(/data: (.*)/);if(Ot)try{const It=JSON.parse(Ot[1]);if(ot==="session_id"&&It.session_id)Q(It.session_id);else if(ot==="agent_text_output"||ot==="final_output"){V(!1);const _t=It.message||"";if(Je=_t,qe)S(mt=>mt.map(ht=>ht.id===qe?{...ht,content:_t,feedbackId:ot==="final_output"&&It.feedback_id?It.feedback_id:ht.feedbackId}:ht));else{qe=(Date.now()+Math.random()).toString();const mt={id:qe,content:_t,role:"assistant",timestamp:new Date,feedbackId:ot==="final_output"&&It.feedback_id?It.feedback_id:void 0};S(ht=>[...ht,mt])}if(ot==="final_output"){console.log("Saving retry to IndexedDB:",{sessionId:X||It.session_id,userMessage:pe,botResponse:_t,fullData:It});const mt=X||It.session_id;mt&&_t&&q(pe,_t,{finalOutputData:It},mt).catch(bt=>{console.error("Failed to save message to IndexedDB:",bt)})}}else if(ot==="tool_output"&&(It.tool_name==="q_api_gemini"||(Vt=It.tool_name)!=null&&Vt.startsWith("q_api"))){const _t=JSON.parse(It.output),mt=It.input?Ol(It.input,It.tool_name):"";if(_t.length>0){const ht=_t[0],bt=Object.keys(ht).find(St=>St.includes("_time"));if(bt){const Et=Object.keys(ht).filter(Dt=>Dt!==bt&&!["gateway","payment_gateway","dimension","group","category"].includes(Dt))[0];if(Et){const Dt=gm(_t,bt,Et),Mt=Gr(Et),Ft={chart:{type:"line"},title:{text:`${Et.replace(/_/g," ")}`},credits:{enabled:!1},xAxis:{categories:Dt.categories,labels:{formatter:function(){const Pt=String(this.value),At=new Date(Pt);return At.getHours()===0&&At.getMinutes()===0?`${At.getDate()}. ${At.toLocaleString("default",{month:"short"})}`:Pt.split(", ")[1]},style:{color:"#9aa0a6"},rotation:0,align:"center",step:4}},yAxis:{title:{text:""},gridLineColor:"#e0e0e0",gridLineDashStyle:"Dash",labels:{formatter:function(){return ts(Number(this.value),Mt)},style:{color:"#9aa0a6"}}},legend:{enabled:Dt.hasDimensions,align:"center",verticalAlign:"top",layout:"horizontal",y:10,itemStyle:{fontSize:"11px"},symbolRadius:0,symbolHeight:0,symbolWidth:0,useHTML:!0,labelFormatter:function(){return'<span style="display: inline-flex; align-items: center;"><span style="background-color: '+this.color+'; width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 4px;"></span>'+this.name+"</span>"}},plotOptions:{series:{marker:{enabled:!1,symbol:"circle",radius:3,states:{hover:{enabled:!0,radius:4}}},states:{hover:{lineWidthPlus:1}}}},tooltip:{shared:!0,useHTML:!0,backgroundColor:"rgba(255, 255, 255, 0)",borderWidth:0,shadow:!1,style:{padding:"0px"},formatter:function(){var vn,an;const Pt=Gr(Et),At=Ut=>Ut.replace(/_/g," ").replace(/\b\w/g,Rt=>Rt.toUpperCase()),Ct=Ut=>{const Rt=new Date(Ut),Qt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],sn=["January","February","March","April","May","June","July","August","September","October","November","December"],Tn=Qt[Rt.getDay()],
|
|
477
|
+
`),Fe=lt.slice(0,-1);rt=lt[lt.length-1],Fe.forEach(ft=>{var Bt,Vt;const ot=(Bt=ft.match(/event: (.*)/))==null?void 0:Bt[1],Ot=ft.match(/data: (.*)/);if(Ot)try{const It=JSON.parse(Ot[1]);if(ot==="session_id"&&It.session_id)Q(It.session_id);else if(ot==="agent_text_output"||ot==="final_output"){V(!1);const _t=It.message||"";if(Je=_t,qe)S(mt=>mt.map(ht=>ht.id===qe?{...ht,content:_t,feedbackId:ot==="final_output"&&It.feedback_id?It.feedback_id:ht.feedbackId}:ht));else{qe=(Date.now()+Math.random()).toString();const mt={id:qe,content:_t,role:"assistant",timestamp:new Date,feedbackId:ot==="final_output"&&It.feedback_id?It.feedback_id:void 0};S(ht=>[...ht,mt])}if(ot==="final_output"){console.log("Saving retry to IndexedDB:",{sessionId:X||It.session_id,userMessage:pe,botResponse:_t,fullData:It});const mt=X||It.session_id;mt&&_t&&q(pe,_t,{finalOutputData:It},mt).catch(bt=>{console.error("Failed to save message to IndexedDB:",bt)})}}else if(ot==="tool_output"&&(It.tool_name==="q_api_gemini"||(Vt=It.tool_name)!=null&&Vt.startsWith("q_api"))){const _t=JSON.parse(It.output),mt=It.input?Ol(It.input,It.tool_name):"";if(_t.length>0){const ht=_t[0],bt=Object.keys(ht).find(St=>St.includes("_time"));if(bt){const Et=Object.keys(ht).filter(Dt=>Dt!==bt&&!["gateway","payment_gateway","dimension","group","category"].includes(Dt))[0];if(Et){const Dt=gm(_t,bt,Et),Mt=Gr(Et),Ft={chart:{type:"line"},title:{text:`${Et.replace(/_/g," ")}`},credits:{enabled:!1},xAxis:{categories:Dt.categories,labels:{formatter:function(){const Pt=String(this.value),At=new Date(Pt);return At.getHours()===0&&At.getMinutes()===0?`${At.getDate()}. ${At.toLocaleString("default",{month:"short"})}`:Pt.split(", ")[1]},style:{color:"#9aa0a6"},rotation:0,align:"center",step:4}},yAxis:{title:{text:""},gridLineColor:"#e0e0e0",gridLineDashStyle:"Dash",labels:{formatter:function(){return ts(Number(this.value),Mt)},style:{color:"#9aa0a6"}}},legend:{enabled:Dt.hasDimensions,align:"center",verticalAlign:"top",layout:"horizontal",y:10,itemStyle:{fontSize:"11px"},symbolRadius:0,symbolHeight:0,symbolWidth:0,useHTML:!0,labelFormatter:function(){return'<span style="display: inline-flex; align-items: center;"><span style="background-color: '+this.color+'; width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 4px;"></span>'+this.name+"</span>"}},plotOptions:{series:{marker:{enabled:!1,symbol:"circle",radius:3,states:{hover:{enabled:!0,radius:4}}},states:{hover:{lineWidthPlus:1}}}},tooltip:{shared:!0,useHTML:!0,backgroundColor:"rgba(255, 255, 255, 0)",borderWidth:0,shadow:!1,style:{padding:"0px"},formatter:function(){var vn,an;const Pt=Gr(Et),At=Ut=>Ut.replace(/_/g," ").replace(/\b\w/g,Rt=>Rt.toUpperCase()),Ct=Ut=>{const Rt=new Date(Ut),Qt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],sn=["January","February","March","April","May","June","July","August","September","October","November","December"],Tn=Qt[Rt.getDay()],un=Rt.getDate(),mn=sn[Rt.getMonth()],Wt=Rt.getFullYear();let Ht=Rt.getHours();const $n=Rt.getMinutes(),ai=Ht>=12?"PM":"AM";Ht=Ht%12,Ht=Ht||12;const si=$n<10?"0"+$n:$n;return`${Tn}, ${un} ${mn}, ${Wt} ${Ht}:${si} ${ai}`};let pt='<div style="border-radius: 12px; border: 1px solid #EAECF0; background: #FFF; box-shadow: 0px 6px 15px 0px rgba(0, 0, 0, 0.15), 0px 3px 2px -5px rgba(0, 0, 0, 0.04); padding: 16px;">';pt+='<div style="display: flex; font-family: Inter, sans-serif; gap: 16px; align-items: stretch;">';const vt=((vn=this.points)==null?void 0:vn[0].color)||"#3BA974";if(pt+=`<div style="background:${vt}; width: 4px; flex-shrink: 0; border-radius: 4px; align-self: stretch;"></div>`,pt+='<div style="display: flex; flex-direction: column; gap: 12px;">',pt+='<div style="display: flex; flex-direction: column; gap: 4px;">',pt+=`<div style="color: #525252; font-feature-settings: 'clig' off, 'liga' off; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 600; line-height: 18px;">${At(Et)}</div>`,pt+="</div>",pt+='<div class="flex flex-col gap-1" style="display: flex; flex-direction: column; gap: 6px;">',this.points)[...this.points].sort((Rt,Qt)=>(Qt.y||0)-(Rt.y||0)).forEach(Rt=>{var Wt,Ht;const Qt=ts(Rt.y||0,Pt),sn=((Wt=Rt.series)==null?void 0:Wt.name)==="Overall",Tn=sn?"bg-jp-2-gray-30 text-jp-2-gray-700":"bg-jp-2-green-50 text-jp-2-green-200",un=sn?"#E8E8E8":"#D4F4E5",mn=sn?"#424242":"#008242";pt+='<div class="flex items-center" style="display: flex; align-items: center;">',pt+=`<div class="${Tn} rounded p-1 font-semibold mr-1.5 my-1" style="background-color: ${un}; color: ${mn}; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${Qt}</div>`,pt+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((Ht=Rt.series)==null?void 0:Ht.name)||""}</div>`,pt+="</div>"});else{const Ut=ts(this.y||0,Pt);pt+='<div class="flex items-center" style="display: flex; align-items: center;">',pt+=`<div class="bg-jp-2-green-50 text-jp-2-green-200 rounded p-1 font-semibold mr-1.5 my-1" style="background-color: #D4F4E5; color: #008242; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${Ut}</div>`,pt+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((an=this.series)==null?void 0:an.name)||""}</div>`,pt+="</div>"}const wt=this.x?Ct(String(this.x)):"";return pt+=`<div class="font-medium text-jp-2-gray-300" style="font-weight: 500; color: #9AA0A6; font-size: 12px; margin-top: 4px;">${wt}</div>`,pt+="</div>",pt+="</div>",pt+="</div>",pt+="</div>",pt},xDateFormat:"%a, %d %B, %Y %H:%M"},series:Dt.series},kn={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:mt,chartData:Ft};S(Pt=>[...Pt,kn]);const yt=X||It.session_id;yt&&q(pe,Je,{chartData:Ft,description:mt},yt)}}else if(_t.length===1){const St=Object.keys(ht)[0];if(St){const Et={metric:St.replace(/_/g," "),value:ht[St]===null?"N/A":ht[St]},Dt={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:mt,singleStat:Et};S(Ft=>[...Ft,Dt]);const Mt=X||It.session_id;Mt&&q(pe,Je,{singleStat:Et,description:mt},Mt)}}else{const St={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:mt,tableData:_t};S(Dt=>[...Dt,St]);const Et=X||It.session_id;Et&&q(pe,Je,{tableData:_t,description:mt},Et)}}}}catch(It){console.error("Error parsing event data:",It)}})}}else{const $e=await ze.json(),Ge={id:(Date.now()+1).toString(),content:$e.message||"Sorry, I couldn't process that.",role:"assistant",timestamp:new Date};S(qe=>[...qe,Ge])}}catch(Te){if(Te instanceof Error&&Te.name==="AbortError"){console.log("Request was aborted");return}console.error("Error sending message:",Te);let ke="Sorry, I couldn't connect to the service. Please ensure the backend is running.";Te instanceof Error&&Te.message.includes("Authentication token not found")&&(ke="Authentication token not found. Please ensure you are logged in.");const Ae={id:(Date.now()+1).toString(),content:ke,role:"assistant",timestamp:new Date};S(De=>[...De,Ae])}finally{ne(!1),V(!1),P(null)}}},ge=async()=>{if(!j.trim()||ee||ae)return;const pe=j.trim();G(pe);const xe={id:Date.now().toString(),content:pe,role:"user",timestamp:new Date};S(ke=>[...ke,xe]),B(""),ne(!0),V(!0),setTimeout(()=>K(),100),y&&y(xe);const Te=new AbortController;P(Te);try{const ke=D6();if(!ke)throw new Error("Authentication token not found");const Ae={"Content-Type":"application/json",Accept:"text/event-stream",Authorization:ke},De=new Date,ze=De.getFullYear()+"-"+String(De.getMonth()+1).padStart(2,"0")+"-"+String(De.getDate()).padStart(2,"0")+"T"+String(De.getHours()).padStart(2,"0")+":"+String(De.getMinutes()).padStart(2,"0")+":"+String(De.getSeconds()).padStart(2,"0")+"Z",$e=await fetch(f,{method:"POST",headers:{...Ae,Accept:"text/event-stream"},body:JSON.stringify({query:xe.content,current_timestamp:ze,session_id:X}),signal:Te.signal});if(!$e.ok)throw new Error(`API request failed with status ${$e.status}`);if($e.body){const Ge=$e.body.getReader(),qe=new TextDecoder;let Je=null,rt="",st="";for(;;){const{done:Ne,value:ut}=await Ge.read();if(Ne){st.trim()&&st.split(`
|
|
478
478
|
|
|
479
|
-
`).filter(Ot=>Ot).forEach(Ot=>{var It,_t;const Bt=(It=Ot.match(/event: (.*)/))==null?void 0:It[1],Vt=Ot.match(/data: (.*)/);if(Vt)try{const mt=JSON.parse(Vt[1]);if(Bt==="session_id"&&mt.session_id)Q(mt.session_id);else if(Bt==="agent_text_output"||Bt==="final_output"){V(!1);const ht=mt.message||"";if(rt=ht,Je)S(bt=>bt.map(St=>St.id===Je?{...St,content:ht,feedbackId:Bt==="final_output"&&mt.feedback_id?mt.feedback_id:St.feedbackId}:St));else{Je=(Date.now()+Math.random()).toString();const bt={id:Je,content:ht,role:"assistant",timestamp:new Date,feedbackId:Bt==="final_output"&&mt.feedback_id?mt.feedback_id:void 0};S(St=>[...St,bt])}if(Bt==="final_output"){console.log("Saving to IndexedDB:",{sessionId:X||mt.session_id,userMessage:xe.content,botResponse:ht,fullData:mt});const bt=X||mt.session_id;if(bt&&ht){const St={finalOutputData:mt};q(xe.content,ht,St,bt).catch(Et=>{console.error("Failed to save message to IndexedDB:",Et)})}}}else if(Bt==="tool_output"&&(mt.tool_name==="q_api_gemini"||(_t=mt.tool_name)!=null&&_t.startsWith("q_api"))){const ht=JSON.parse(mt.output),bt=mt.input?Ol(mt.input,mt.tool_name):"";if(ht.length>0){const St=ht[0],Et=Object.keys(St).find(Dt=>Dt.includes("_time"));if(Et){const Mt=Object.keys(St).filter(Ft=>Ft!==Et&&!["gateway","payment_gateway","dimension","group","category"].includes(Ft))[0];if(Mt){const Ft=gm(ht,Et,Mt),kn=Gr(Mt),yt={chart:{type:"line"},title:{text:`${Mt.replace(/_/g," ")}`},credits:{enabled:!1},xAxis:{categories:Ft.categories,labels:{formatter:function(){const Ct=String(this.value),pt=new Date(Ct);return pt.getHours()===0&&pt.getMinutes()===0?`${pt.getDate()}. ${pt.toLocaleString("default",{month:"short"})}`:Ct.split(", ")[1]},style:{color:"#9aa0a6"},rotation:0,align:"center",step:4}},yAxis:{title:{text:""},gridLineColor:"#e0e0e0",gridLineDashStyle:"Dash",labels:{formatter:function(){return ts(Number(this.value),kn)},style:{color:"#9aa0a6"}}},legend:{enabled:Ft.hasDimensions,align:"center",verticalAlign:"top",layout:"horizontal",y:10,itemStyle:{fontSize:"11px"},symbolRadius:0,symbolHeight:0,symbolWidth:0,useHTML:!0,labelFormatter:function(){return'<span style="display: inline-flex; align-items: center;"><span style="background-color: '+this.color+'; width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 4px;"></span>'+this.name+"</span>"}},plotOptions:{series:{marker:{enabled:!1,symbol:"circle",radius:3,states:{hover:{enabled:!0,radius:4}}},states:{hover:{lineWidthPlus:1}}}},tooltip:{shared:!0,useHTML:!0,backgroundColor:"rgba(255, 255, 255, 0)",borderWidth:0,shadow:!1,style:{padding:"0px"},formatter:function(){var Ut,Rt;const Ct=Gr(Mt),pt=Qt=>Qt.replace(/_/g," ").replace(/\b\w/g,sn=>sn.toUpperCase()),vt=Qt=>{const sn=new Date(Qt),Tn=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],
|
|
479
|
+
`).filter(Ot=>Ot).forEach(Ot=>{var It,_t;const Bt=(It=Ot.match(/event: (.*)/))==null?void 0:It[1],Vt=Ot.match(/data: (.*)/);if(Vt)try{const mt=JSON.parse(Vt[1]);if(Bt==="session_id"&&mt.session_id)Q(mt.session_id);else if(Bt==="agent_text_output"||Bt==="final_output"){V(!1);const ht=mt.message||"";if(rt=ht,Je)S(bt=>bt.map(St=>St.id===Je?{...St,content:ht,feedbackId:Bt==="final_output"&&mt.feedback_id?mt.feedback_id:St.feedbackId}:St));else{Je=(Date.now()+Math.random()).toString();const bt={id:Je,content:ht,role:"assistant",timestamp:new Date,feedbackId:Bt==="final_output"&&mt.feedback_id?mt.feedback_id:void 0};S(St=>[...St,bt])}if(Bt==="final_output"){console.log("Saving to IndexedDB:",{sessionId:X||mt.session_id,userMessage:xe.content,botResponse:ht,fullData:mt});const bt=X||mt.session_id;if(bt&&ht){const St={finalOutputData:mt};q(xe.content,ht,St,bt).catch(Et=>{console.error("Failed to save message to IndexedDB:",Et)})}}}else if(Bt==="tool_output"&&(mt.tool_name==="q_api_gemini"||(_t=mt.tool_name)!=null&&_t.startsWith("q_api"))){const ht=JSON.parse(mt.output),bt=mt.input?Ol(mt.input,mt.tool_name):"";if(ht.length>0){const St=ht[0],Et=Object.keys(St).find(Dt=>Dt.includes("_time"));if(Et){const Mt=Object.keys(St).filter(Ft=>Ft!==Et&&!["gateway","payment_gateway","dimension","group","category"].includes(Ft))[0];if(Mt){const Ft=gm(ht,Et,Mt),kn=Gr(Mt),yt={chart:{type:"line"},title:{text:`${Mt.replace(/_/g," ")}`},credits:{enabled:!1},xAxis:{categories:Ft.categories,labels:{formatter:function(){const Ct=String(this.value),pt=new Date(Ct);return pt.getHours()===0&&pt.getMinutes()===0?`${pt.getDate()}. ${pt.toLocaleString("default",{month:"short"})}`:Ct.split(", ")[1]},style:{color:"#9aa0a6"},rotation:0,align:"center",step:4}},yAxis:{title:{text:""},gridLineColor:"#e0e0e0",gridLineDashStyle:"Dash",labels:{formatter:function(){return ts(Number(this.value),kn)},style:{color:"#9aa0a6"}}},legend:{enabled:Ft.hasDimensions,align:"center",verticalAlign:"top",layout:"horizontal",y:10,itemStyle:{fontSize:"11px"},symbolRadius:0,symbolHeight:0,symbolWidth:0,useHTML:!0,labelFormatter:function(){return'<span style="display: inline-flex; align-items: center;"><span style="background-color: '+this.color+'; width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 4px;"></span>'+this.name+"</span>"}},plotOptions:{series:{marker:{enabled:!1,symbol:"circle",radius:3,states:{hover:{enabled:!0,radius:4}}},states:{hover:{lineWidthPlus:1}}}},tooltip:{shared:!0,useHTML:!0,backgroundColor:"rgba(255, 255, 255, 0)",borderWidth:0,shadow:!1,style:{padding:"0px"},formatter:function(){var Ut,Rt;const Ct=Gr(Mt),pt=Qt=>Qt.replace(/_/g," ").replace(/\b\w/g,sn=>sn.toUpperCase()),vt=Qt=>{const sn=new Date(Qt),Tn=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],un=["January","February","March","April","May","June","July","August","September","October","November","December"],mn=Tn[sn.getDay()],Wt=sn.getDate(),Ht=un[sn.getMonth()],$n=sn.getFullYear();let ai=sn.getHours();const si=sn.getMinutes(),yn=ai>=12?"PM":"AM";ai=ai%12,ai=ai||12;const Fn=si<10?"0"+si:si;return`${mn}, ${Wt} ${Ht}, ${$n} ${ai}:${Fn} ${yn}`};let wt='<div style="border-radius: 12px; border: 1px solid #EAECF0; background: #FFF; box-shadow: 0px 6px 15px 0px rgba(0, 0, 0, 0.15), 0px 3px 2px -5px rgba(0, 0, 0, 0.04); padding: 16px;">';wt+='<div style="display: flex; font-family: Inter, sans-serif; gap: 16px; align-items: stretch;">';const vn=((Ut=this.points)==null?void 0:Ut[0].color)||"#3BA974";if(wt+=`<div style="background:${vn}; width: 4px; flex-shrink: 0; border-radius: 4px; align-self: stretch;"></div>`,wt+='<div style="display: flex; flex-direction: column; gap: 12px;">',wt+='<div style="display: flex; flex-direction: column; gap: 4px;">',wt+=`<div style="color: #525252; font-feature-settings: 'clig' off, 'liga' off; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 600; line-height: 18px;">${pt(Mt)}</div>`,wt+="</div>",wt+='<div class="flex flex-col gap-1" style="display: flex; flex-direction: column; gap: 6px;">',this.points)[...this.points].sort((sn,Tn)=>(Tn.y||0)-(sn.y||0)).forEach(sn=>{var $n,ai;const Tn=ts(sn.y||0,Ct),un=(($n=sn.series)==null?void 0:$n.name)==="Overall",mn=un?"bg-jp-2-gray-30 text-jp-2-gray-700":"bg-jp-2-green-50 text-jp-2-green-200",Wt=un?"#E8E8E8":"#D4F4E5",Ht=un?"#424242":"#008242";wt+='<div class="flex items-center" style="display: flex; align-items: center;">',wt+=`<div class="${mn} rounded p-1 font-semibold mr-1.5 my-1" style="background-color: ${Wt}; color: ${Ht}; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${Tn}</div>`,wt+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((ai=sn.series)==null?void 0:ai.name)||""}</div>`,wt+="</div>"});else{const Qt=ts(this.y||0,Ct);wt+='<div class="flex items-center" style="display: flex; align-items: center;">',wt+=`<div class="bg-jp-2-green-50 text-jp-2-green-200 rounded p-1 font-semibold mr-1.5 my-1" style="background-color: #D4F4E5; color: #008242; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${Qt}</div>`,wt+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((Rt=this.series)==null?void 0:Rt.name)||""}</div>`,wt+="</div>"}const an=this.x?vt(String(this.x)):"";return wt+=`<div class="font-medium text-jp-2-gray-300" style="font-weight: 500; color: #9AA0A6; font-size: 12px; margin-top: 4px;">${an}</div>`,wt+="</div>",wt+="</div>",wt+="</div>",wt+="</div>",wt},xDateFormat:"%a, %d %B, %Y %H:%M"},series:Ft.series},Pt={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:bt,chartData:yt};S(Ct=>[...Ct,Pt]);const At=X||mt.session_id;At&&q(xe.content,rt,{chartData:yt,description:bt},At)}}else if(ht.length===1){const Dt=Object.keys(St)[0];if(Dt){const Mt={metric:Dt.replace(/_/g," "),value:St[Dt]===null?"N/A":St[Dt]},Ft={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:bt,singleStat:Mt};S(yt=>[...yt,Ft]);const kn=X||mt.session_id;kn&&q(xe.content,rt,{singleStat:Mt,description:bt},kn)}}else{const Dt={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:bt,tableData:ht};S(Ft=>[...Ft,Dt]);const Mt=X||mt.session_id;Mt&&q(xe.content,rt,{tableData:ht,description:bt},Mt)}}}}catch(mt){console.error("Error parsing event data:",mt)}});break}const lt=qe.decode(ut,{stream:!0});st+=lt;const Fe=st.split(`
|
|
480
480
|
|
|
481
|
-
`),ft=Fe.slice(0,-1);st=Fe[Fe.length-1],ft.forEach(ot=>{var Vt,It;const Ot=(Vt=ot.match(/event: (.*)/))==null?void 0:Vt[1],Bt=ot.match(/data: (.*)/);if(Bt)try{const _t=JSON.parse(Bt[1]);if(Ot==="session_id"&&_t.session_id)Q(_t.session_id);else if(Ot==="agent_text_output"||Ot==="final_output"){V(!1);const mt=_t.message||"";if(rt=mt,Je)S(ht=>ht.map(bt=>bt.id===Je?{...bt,content:mt,feedbackId:Ot==="final_output"&&_t.feedback_id?_t.feedback_id:bt.feedbackId}:bt));else{Je=(Date.now()+Math.random()).toString();const ht={id:Je,content:mt,role:"assistant",timestamp:new Date,feedbackId:Ot==="final_output"&&_t.feedback_id?_t.feedback_id:void 0};S(bt=>[...bt,ht])}if(Ot==="final_output"){console.log("Saving to IndexedDB:",{sessionId:X||_t.session_id,userMessage:xe.content,botResponse:mt,fullData:_t});const ht=X||_t.session_id;if(ht&&mt){const bt={finalOutputData:_t};q(xe.content,mt,bt,ht).catch(St=>{console.error("Failed to save message to IndexedDB:",St)})}}}else if(Ot==="tool_output"&&(_t.tool_name==="q_api_gemini"||(It=_t.tool_name)!=null&&It.startsWith("q_api"))){const mt=JSON.parse(_t.output),ht=_t.input?Ol(_t.input,_t.tool_name):"";if(mt.length>0){const bt=mt[0],St=Object.keys(bt).find(Et=>Et.includes("_time"));if(St){const Dt=Object.keys(bt).filter(Mt=>Mt!==St&&!["gateway","payment_gateway","dimension","group","category"].includes(Mt))[0];if(Dt){const Mt=gm(mt,St,Dt),Ft=Gr(Dt),kn={chart:{type:"line"},title:{text:`${Dt.replace(/_/g," ")}`},credits:{enabled:!1},xAxis:{categories:Mt.categories,labels:{formatter:function(){const At=String(this.value),Ct=new Date(At);return Ct.getHours()===0&&Ct.getMinutes()===0?`${Ct.getDate()}. ${Ct.toLocaleString("default",{month:"short"})}`:At.split(", ")[1]},style:{color:"#9aa0a6"},rotation:0,align:"center",step:4}},yAxis:{title:{text:""},gridLineColor:"#e0e0e0",gridLineDashStyle:"Dash",labels:{formatter:function(){return ts(Number(this.value),Ft)},style:{color:"#9aa0a6"}}},legend:{enabled:Mt.hasDimensions,align:"center",verticalAlign:"top",layout:"horizontal",y:10,itemStyle:{fontSize:"11px"},symbolRadius:0,symbolHeight:0,symbolWidth:0,useHTML:!0,labelFormatter:function(){return'<span style="display: inline-flex; align-items: center;"><span style="background-color: '+this.color+'; width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 4px;"></span>'+this.name+"</span>"}},plotOptions:{series:{marker:{enabled:!1,symbol:"circle",radius:3,states:{hover:{enabled:!0,radius:4}}},states:{hover:{lineWidthPlus:1}}}},tooltip:{shared:!0,useHTML:!0,backgroundColor:"rgba(255, 255, 255, 0)",borderWidth:0,shadow:!1,style:{padding:"0px"},formatter:function(){var an,Ut;const At=Gr(Dt),Ct=Rt=>Rt.replace(/_/g," ").replace(/\b\w/g,Qt=>Qt.toUpperCase()),pt=Rt=>{const Qt=new Date(Rt),sn=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Tn=["January","February","March","April","May","June","July","August","September","October","November","December"],cn=sn[Qt.getDay()],mn=Qt.getDate(),Wt=Tn[Qt.getMonth()],Ht=Qt.getFullYear();let $n=Qt.getHours();const ai=Qt.getMinutes(),si=$n>=12?"PM":"AM";$n=$n%12,$n=$n||12;const yn=ai<10?"0"+ai:ai;return`${cn}, ${mn} ${Wt}, ${Ht} ${$n}:${yn} ${si}`};let vt='<div style="border-radius: 12px; border: 1px solid #EAECF0; background: #FFF; box-shadow: 0px 6px 15px 0px rgba(0, 0, 0, 0.15), 0px 3px 2px -5px rgba(0, 0, 0, 0.04); padding: 16px;">';vt+='<div style="display: flex; font-family: Inter, sans-serif; gap: 16px; align-items: stretch;">';const wt=((an=this.points)==null?void 0:an[0].color)||"#3BA974";if(vt+=`<div style="background:${wt}; width: 4px; flex-shrink: 0; border-radius: 4px; align-self: stretch;"></div>`,vt+='<div style="display: flex; flex-direction: column; gap: 12px;">',vt+='<div style="display: flex; flex-direction: column; gap: 4px;">',vt+=`<div style="color: #525252; font-feature-settings: 'clig' off, 'liga' off; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 600; line-height: 18px;">${Ct(Dt)}</div>`,vt+="</div>",vt+='<div class="flex flex-col gap-1" style="display: flex; flex-direction: column; gap: 6px;">',this.points)[...this.points].sort((Qt,sn)=>(sn.y||0)-(Qt.y||0)).forEach(Qt=>{var Ht,$n;const sn=ts(Qt.y||0,At),Tn=((Ht=Qt.series)==null?void 0:Ht.name)==="Overall",cn=Tn?"bg-jp-2-gray-30 text-jp-2-gray-700":"bg-jp-2-green-50 text-jp-2-green-200",mn=Tn?"#E8E8E8":"#D4F4E5",Wt=Tn?"#424242":"#008242";vt+='<div class="flex items-center" style="display: flex; align-items: center;">',vt+=`<div class="${cn} rounded p-1 font-semibold mr-1.5 my-1" style="background-color: ${mn}; color: ${Wt}; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${sn}</div>`,vt+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${(($n=Qt.series)==null?void 0:$n.name)||""}</div>`,vt+="</div>"});else{const Rt=ts(this.y||0,At);vt+='<div class="flex items-center" style="display: flex; align-items: center;">',vt+=`<div class="bg-jp-2-green-50 text-jp-2-green-200 rounded p-1 font-semibold mr-1.5 my-1" style="background-color: #D4F4E5; color: #008242; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${Rt}</div>`,vt+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((Ut=this.series)==null?void 0:Ut.name)||""}</div>`,vt+="</div>"}const vn=this.x?pt(String(this.x)):"";return vt+=`<div class="font-medium text-jp-2-gray-300" style="font-weight: 500; color: #9AA0A6; font-size: 12px; margin-top: 4px;">${vn}</div>`,vt+="</div>",vt+="</div>",vt+="</div>",vt+="</div>",vt},xDateFormat:"%a, %d %B, %Y %H:%M"},series:Mt.series},yt={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:ht,chartData:kn};S(At=>[...At,yt]);const Pt=X||_t.session_id;Pt&&q(xe.content,rt,{chartData:kn,description:ht},Pt)}}else if(mt.length===1){const Et=Object.keys(bt)[0];if(Et){const Dt={metric:Et.replace(/_/g," "),value:bt[Et]===null?"N/A":bt[Et]},Mt={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:ht,singleStat:Dt};S(kn=>[...kn,Mt]);const Ft=X||_t.session_id;Ft&&q(xe.content,rt,{singleStat:Dt,description:ht},Ft)}}else{const Et={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:ht,tableData:mt};S(Mt=>[...Mt,Et]);const Dt=X||_t.session_id;Dt&&q(xe.content,rt,{tableData:mt,description:ht},Dt)}}}}catch(_t){console.error("Error parsing event data:",_t)}})}}else{const Ge=await $e.json(),qe={id:(Date.now()+1).toString(),content:Ge.message||"Sorry, I couldn't process that.",role:"assistant",timestamp:new Date};S(Je=>[...Je,qe])}}catch(ke){if(ke instanceof Error&&ke.name==="AbortError"){console.log("Request was aborted");return}console.error("Error sending message:",ke);let Ae="Sorry, I couldn't connect to the service. Please ensure the backend is running.";ke instanceof Error&&ke.message.includes("Authentication token not found")&&(Ae="Authentication token not found. Please ensure you are logged in.");const De={id:(Date.now()+1).toString(),content:Ae,role:"assistant",timestamp:new Date};S(ze=>[...ze,De])}finally{ne(!1),V(!1),P(null)}},ve=pe=>{var xe;B(pe),(xe=C.current)==null||xe.focus()},_e=pe=>{pe.key==="Enter"&&!pe.shiftKey&&(pe.preventDefault(),ee?re():ge())},we=()=>{x&&x()},Ee=()=>{j.trim()||(se(!0),S(pe=>pe.map(xe=>({...xe,skipAnimation:!0}))))},Re=()=>{se(!1)},be=pe=>{L(pe),_(!0),S(xe=>xe.map(Te=>({...Te,skipAnimation:!0})))},me=async pe=>{const xe=localStorage.getItem("login")||"",Te=v.find(ke=>ke.id===A);if(!(!(Te!=null&&Te.feedbackId)||!xe))try{const ke=f.replace(/\/api\/v3\/analytics\/?$/,""),Ae=`Basic ${btoa(xe+":")}`,De=await fetch(`${ke}/api/v3/analytics/feedback`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:Ae},body:JSON.stringify({id:Te.feedbackId,feedbackEnum:"DISLIKE",feedbackText:pe})});De.ok?(S(ze=>ze.map($e=>$e.id===A?{...$e,hasDisliked:!0,skipAnimation:!0}:$e)),_(!1),L(null),console.log("Dislike feedback submitted successfully")):console.error("Failed to submit dislike feedback",De.status,De.statusText)}catch(ke){console.error("Error submitting dislike feedback:",ke)}};return Y.jsx(df,{children:Y.jsxs("div",{className:Tt["genius-chatbot-mobile-wrapper"],children:[$&&Y.jsx("div",{className:Tt["genius-chatbot-mobile-history-overlay"],children:Y.jsxs("div",{className:Tt["genius-chatbot-mobile-history-container"],children:[Y.jsxs("div",{className:Tt["genius-chatbot-mobile-history-header"],children:[Y.jsxs("div",{className:Tt["genius-chatbot-mobile-history-header-left"],children:[Y.jsx("button",{className:Tt["genius-chatbot-mobile-history-back"],onClick:N,"aria-label":"Back",children:Y.jsx(DS,{})}),Y.jsx("h2",{children:"Chat History"})]}),Y.jsxs("div",{className:Tt["genius-chatbot-mobile-history-actions"],children:[Y.jsx("button",{className:Tt["genius-chatbot-mobile-history-action"],"aria-label":"New Chat",onClick:H,children:Y.jsx(c2,{})}),Y.jsx("button",{className:Tt["genius-chatbot-mobile-history-action"],"aria-label":"Close",onClick:we,children:Y.jsx(Wv,{})})]})]}),Y.jsx("div",{className:Tt["genius-chatbot-mobile-history-list"],children:te?Y.jsx("div",{className:Tt["genius-chatbot-mobile-history-loading"],children:"Loading history..."}):he.length===0?Y.jsx("div",{className:Tt["genius-chatbot-mobile-history-empty"],children:"No chat history found"}):he.map(pe=>Y.jsxs("div",{className:Tt["genius-chatbot-mobile-history-item"],onClick:()=>ce(pe),children:[Y.jsxs("div",{className:Tt["genius-chatbot-mobile-history-item-content"],children:[Y.jsx("div",{className:Tt["genius-chatbot-mobile-history-item-title"],children:pe.title}),Y.jsxs("div",{className:Tt["genius-chatbot-mobile-history-item-date"],children:[w(pe.timestamp)," • ",pe.messageCount," messages"]})]}),Y.jsx("button",{className:Tt["genius-chatbot-mobile-history-item-delete"],onClick:xe=>D(pe.sessionId,xe),"aria-label":"Delete session",children:Y.jsx(OS,{})})]},pe.sessionId))})]})}),Y.jsxs("div",{className:Tt["genius-chatbot-mobile-container"],style:d,children:[Y.jsxs("div",{className:Tt["genius-chatbot-mobile-header"],children:[Y.jsx("div",{className:Tt["genius-chatbot-mobile-header-icons"],children:T?Y.jsx("button",{className:Tt["genius-chatbot-mobile-icon-button-header"],onClick:()=>_(!1),"aria-label":"Back",children:Y.jsx(LS,{})}):Y.jsx("button",{className:Tt["genius-chatbot-mobile-icon-button-header"],onClick:E,"aria-label":"View history",children:Y.jsx(Qv,{})})}),Y.jsx("button",{className:Tt["genius-chatbot-mobile-icon-button-header"],onClick:we,"aria-label":"Close chat",children:Y.jsx(Wv,{})})]}),Y.jsxs("div",{className:Tt["genius-chatbot-mobile-body"],children:[T?Y.jsx("div",{className:Tt["genius-chatbot-mobile-feedback-overlay"],children:Y.jsx(GS,{feedbackType:"DISLIKE",onFeedbackClick:me,onBack:()=>_(!1),onClose:()=>_(!1),onHistoryClick:()=>{_(!1),E()}})}):J?Y.jsxs("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"#fff",display:"flex",flexDirection:"column",overflow:"hidden",zIndex:9999},children:[Y.jsxs("div",{className:Tt["genius-chatbot-mobile-header"],style:{position:"relative",zIndex:1002},children:[Y.jsx("div",{className:Tt["genius-chatbot-mobile-header-icons"],children:Y.jsx("button",{className:Tt["genius-chatbot-mobile-icon-button-header"],onClick:()=>{se(!1),I(!0)},"aria-label":"View history",children:Y.jsx(Qv,{})})}),Y.jsx("div",{style:{flex:1}}),Y.jsx("div",{className:Tt["genius-chatbot-mobile-header-icons"],children:Y.jsx("button",{className:Tt["genius-chatbot-mobile-icon-button-header"],onClick:Re,"aria-label":"Close voice mode",children:Y.jsx(R5,{})})})]}),!R&&Y.jsxs("div",{style:{position:"absolute",top:"64px",left:0,right:0,bottom:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:1e3,backgroundColor:"rgba(255, 255, 255, 0.98)"},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",marginBottom:"24px"},children:[Y.jsx("div",{className:`${Tt["voice-connecting-bar"]} ${Tt["voice-connecting-bar-1"]}`}),Y.jsx("div",{className:`${Tt["voice-connecting-bar"]} ${Tt["voice-connecting-bar-2"]}`}),Y.jsx("div",{className:`${Tt["voice-connecting-bar"]} ${Tt["voice-connecting-bar-3"]}`}),Y.jsx("div",{className:`${Tt["voice-connecting-bar"]} ${Tt["voice-connecting-bar-4"]}`}),Y.jsx("div",{className:`${Tt["voice-connecting-bar"]} ${Tt["voice-connecting-bar-5"]}`}),Y.jsx("div",{className:`${Tt["voice-connecting-bar"]} ${Tt["voice-connecting-bar-6"]}`})]}),Y.jsx("p",{style:{fontSize:"16px",lineHeight:"24px",color:"#70747E",textAlign:"center",margin:0,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},children:"Setting up connection..."})]}),Y.jsxs("div",{className:Tt["genius-voice-assistant-wrapper"],style:{position:"relative",width:"100%",height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},children:[Y.jsx("style",{children:`
|
|
481
|
+
`),ft=Fe.slice(0,-1);st=Fe[Fe.length-1],ft.forEach(ot=>{var Vt,It;const Ot=(Vt=ot.match(/event: (.*)/))==null?void 0:Vt[1],Bt=ot.match(/data: (.*)/);if(Bt)try{const _t=JSON.parse(Bt[1]);if(Ot==="session_id"&&_t.session_id)Q(_t.session_id);else if(Ot==="agent_text_output"||Ot==="final_output"){V(!1);const mt=_t.message||"";if(rt=mt,Je)S(ht=>ht.map(bt=>bt.id===Je?{...bt,content:mt,feedbackId:Ot==="final_output"&&_t.feedback_id?_t.feedback_id:bt.feedbackId}:bt));else{Je=(Date.now()+Math.random()).toString();const ht={id:Je,content:mt,role:"assistant",timestamp:new Date,feedbackId:Ot==="final_output"&&_t.feedback_id?_t.feedback_id:void 0};S(bt=>[...bt,ht])}if(Ot==="final_output"){console.log("Saving to IndexedDB:",{sessionId:X||_t.session_id,userMessage:xe.content,botResponse:mt,fullData:_t});const ht=X||_t.session_id;if(ht&&mt){const bt={finalOutputData:_t};q(xe.content,mt,bt,ht).catch(St=>{console.error("Failed to save message to IndexedDB:",St)})}}}else if(Ot==="tool_output"&&(_t.tool_name==="q_api_gemini"||(It=_t.tool_name)!=null&&It.startsWith("q_api"))){const mt=JSON.parse(_t.output),ht=_t.input?Ol(_t.input,_t.tool_name):"";if(mt.length>0){const bt=mt[0],St=Object.keys(bt).find(Et=>Et.includes("_time"));if(St){const Dt=Object.keys(bt).filter(Mt=>Mt!==St&&!["gateway","payment_gateway","dimension","group","category"].includes(Mt))[0];if(Dt){const Mt=gm(mt,St,Dt),Ft=Gr(Dt),kn={chart:{type:"line"},title:{text:`${Dt.replace(/_/g," ")}`},credits:{enabled:!1},xAxis:{categories:Mt.categories,labels:{formatter:function(){const At=String(this.value),Ct=new Date(At);return Ct.getHours()===0&&Ct.getMinutes()===0?`${Ct.getDate()}. ${Ct.toLocaleString("default",{month:"short"})}`:At.split(", ")[1]},style:{color:"#9aa0a6"},rotation:0,align:"center",step:4}},yAxis:{title:{text:""},gridLineColor:"#e0e0e0",gridLineDashStyle:"Dash",labels:{formatter:function(){return ts(Number(this.value),Ft)},style:{color:"#9aa0a6"}}},legend:{enabled:Mt.hasDimensions,align:"center",verticalAlign:"top",layout:"horizontal",y:10,itemStyle:{fontSize:"11px"},symbolRadius:0,symbolHeight:0,symbolWidth:0,useHTML:!0,labelFormatter:function(){return'<span style="display: inline-flex; align-items: center;"><span style="background-color: '+this.color+'; width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 4px;"></span>'+this.name+"</span>"}},plotOptions:{series:{marker:{enabled:!1,symbol:"circle",radius:3,states:{hover:{enabled:!0,radius:4}}},states:{hover:{lineWidthPlus:1}}}},tooltip:{shared:!0,useHTML:!0,backgroundColor:"rgba(255, 255, 255, 0)",borderWidth:0,shadow:!1,style:{padding:"0px"},formatter:function(){var an,Ut;const At=Gr(Dt),Ct=Rt=>Rt.replace(/_/g," ").replace(/\b\w/g,Qt=>Qt.toUpperCase()),pt=Rt=>{const Qt=new Date(Rt),sn=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Tn=["January","February","March","April","May","June","July","August","September","October","November","December"],un=sn[Qt.getDay()],mn=Qt.getDate(),Wt=Tn[Qt.getMonth()],Ht=Qt.getFullYear();let $n=Qt.getHours();const ai=Qt.getMinutes(),si=$n>=12?"PM":"AM";$n=$n%12,$n=$n||12;const yn=ai<10?"0"+ai:ai;return`${un}, ${mn} ${Wt}, ${Ht} ${$n}:${yn} ${si}`};let vt='<div style="border-radius: 12px; border: 1px solid #EAECF0; background: #FFF; box-shadow: 0px 6px 15px 0px rgba(0, 0, 0, 0.15), 0px 3px 2px -5px rgba(0, 0, 0, 0.04); padding: 16px;">';vt+='<div style="display: flex; font-family: Inter, sans-serif; gap: 16px; align-items: stretch;">';const wt=((an=this.points)==null?void 0:an[0].color)||"#3BA974";if(vt+=`<div style="background:${wt}; width: 4px; flex-shrink: 0; border-radius: 4px; align-self: stretch;"></div>`,vt+='<div style="display: flex; flex-direction: column; gap: 12px;">',vt+='<div style="display: flex; flex-direction: column; gap: 4px;">',vt+=`<div style="color: #525252; font-feature-settings: 'clig' off, 'liga' off; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 600; line-height: 18px;">${Ct(Dt)}</div>`,vt+="</div>",vt+='<div class="flex flex-col gap-1" style="display: flex; flex-direction: column; gap: 6px;">',this.points)[...this.points].sort((Qt,sn)=>(sn.y||0)-(Qt.y||0)).forEach(Qt=>{var Ht,$n;const sn=ts(Qt.y||0,At),Tn=((Ht=Qt.series)==null?void 0:Ht.name)==="Overall",un=Tn?"bg-jp-2-gray-30 text-jp-2-gray-700":"bg-jp-2-green-50 text-jp-2-green-200",mn=Tn?"#E8E8E8":"#D4F4E5",Wt=Tn?"#424242":"#008242";vt+='<div class="flex items-center" style="display: flex; align-items: center;">',vt+=`<div class="${un} rounded p-1 font-semibold mr-1.5 my-1" style="background-color: ${mn}; color: ${Wt}; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${sn}</div>`,vt+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${(($n=Qt.series)==null?void 0:$n.name)||""}</div>`,vt+="</div>"});else{const Rt=ts(this.y||0,At);vt+='<div class="flex items-center" style="display: flex; align-items: center;">',vt+=`<div class="bg-jp-2-green-50 text-jp-2-green-200 rounded p-1 font-semibold mr-1.5 my-1" style="background-color: #D4F4E5; color: #008242; border-radius: 4px; padding: 4px 8px; font-weight: 600; margin-right: 8px; font-size: 12px;">${Rt}</div>`,vt+=`<div class="text-jp-2-gray-200 font-medium" style="color: #70747E; font-weight: 500; font-size: 12px;">${((Ut=this.series)==null?void 0:Ut.name)||""}</div>`,vt+="</div>"}const vn=this.x?pt(String(this.x)):"";return vt+=`<div class="font-medium text-jp-2-gray-300" style="font-weight: 500; color: #9AA0A6; font-size: 12px; margin-top: 4px;">${vn}</div>`,vt+="</div>",vt+="</div>",vt+="</div>",vt+="</div>",vt},xDateFormat:"%a, %d %B, %Y %H:%M"},series:Mt.series},yt={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:ht,chartData:kn};S(At=>[...At,yt]);const Pt=X||_t.session_id;Pt&&q(xe.content,rt,{chartData:kn,description:ht},Pt)}}else if(mt.length===1){const Et=Object.keys(bt)[0];if(Et){const Dt={metric:Et.replace(/_/g," "),value:bt[Et]===null?"N/A":bt[Et]},Mt={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:ht,singleStat:Dt};S(kn=>[...kn,Mt]);const Ft=X||_t.session_id;Ft&&q(xe.content,rt,{singleStat:Dt,description:ht},Ft)}}else{const Et={id:(Date.now()+Math.random()).toString(),content:"",role:"assistant",timestamp:new Date,description:ht,tableData:mt};S(Mt=>[...Mt,Et]);const Dt=X||_t.session_id;Dt&&q(xe.content,rt,{tableData:mt,description:ht},Dt)}}}}catch(_t){console.error("Error parsing event data:",_t)}})}}else{const Ge=await $e.json(),qe={id:(Date.now()+1).toString(),content:Ge.message||"Sorry, I couldn't process that.",role:"assistant",timestamp:new Date};S(Je=>[...Je,qe])}}catch(ke){if(ke instanceof Error&&ke.name==="AbortError"){console.log("Request was aborted");return}console.error("Error sending message:",ke);let Ae="Sorry, I couldn't connect to the service. Please ensure the backend is running.";ke instanceof Error&&ke.message.includes("Authentication token not found")&&(Ae="Authentication token not found. Please ensure you are logged in.");const De={id:(Date.now()+1).toString(),content:Ae,role:"assistant",timestamp:new Date};S(ze=>[...ze,De])}finally{ne(!1),V(!1),P(null)}},ve=pe=>{var xe;B(pe),(xe=C.current)==null||xe.focus()},_e=pe=>{pe.key==="Enter"&&!pe.shiftKey&&(pe.preventDefault(),ee?re():ge())},we=()=>{x&&x()},Ee=()=>{j.trim()||(se(!0),S(pe=>pe.map(xe=>({...xe,skipAnimation:!0}))))},Re=()=>{se(!1)},be=pe=>{L(pe),_(!0),S(xe=>xe.map(Te=>({...Te,skipAnimation:!0})))},me=async pe=>{const xe=localStorage.getItem("login")||"",Te=v.find(ke=>ke.id===A);if(!(!(Te!=null&&Te.feedbackId)||!xe))try{const ke=f.replace(/\/api\/v3\/analytics\/?$/,""),Ae=`Basic ${btoa(xe+":")}`,De=await fetch(`${ke}/api/v3/analytics/feedback`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:Ae},body:JSON.stringify({id:Te.feedbackId,feedbackEnum:"DISLIKE",feedbackText:pe})});De.ok?(S(ze=>ze.map($e=>$e.id===A?{...$e,hasDisliked:!0,skipAnimation:!0}:$e)),_(!1),L(null),console.log("Dislike feedback submitted successfully")):console.error("Failed to submit dislike feedback",De.status,De.statusText)}catch(ke){console.error("Error submitting dislike feedback:",ke)}};return Y.jsx(df,{children:Y.jsxs("div",{className:Tt["genius-chatbot-mobile-wrapper"],children:[$&&Y.jsx("div",{className:Tt["genius-chatbot-mobile-history-overlay"],children:Y.jsxs("div",{className:Tt["genius-chatbot-mobile-history-container"],children:[Y.jsxs("div",{className:Tt["genius-chatbot-mobile-history-header"],children:[Y.jsxs("div",{className:Tt["genius-chatbot-mobile-history-header-left"],children:[Y.jsx("button",{className:Tt["genius-chatbot-mobile-history-back"],onClick:N,"aria-label":"Back",children:Y.jsx(DS,{})}),Y.jsx("h2",{children:"Chat History"})]}),Y.jsxs("div",{className:Tt["genius-chatbot-mobile-history-actions"],children:[Y.jsx("button",{className:Tt["genius-chatbot-mobile-history-action"],"aria-label":"New Chat",onClick:H,children:Y.jsx(c2,{})}),Y.jsx("button",{className:Tt["genius-chatbot-mobile-history-action"],"aria-label":"Close",onClick:we,children:Y.jsx(Wv,{})})]})]}),Y.jsx("div",{className:Tt["genius-chatbot-mobile-history-list"],children:te?Y.jsx("div",{className:Tt["genius-chatbot-mobile-history-loading"],children:"Loading history..."}):he.length===0?Y.jsx("div",{className:Tt["genius-chatbot-mobile-history-empty"],children:"No chat history found"}):he.map(pe=>Y.jsxs("div",{className:Tt["genius-chatbot-mobile-history-item"],onClick:()=>ce(pe),children:[Y.jsxs("div",{className:Tt["genius-chatbot-mobile-history-item-content"],children:[Y.jsx("div",{className:Tt["genius-chatbot-mobile-history-item-title"],children:pe.title}),Y.jsxs("div",{className:Tt["genius-chatbot-mobile-history-item-date"],children:[w(pe.timestamp)," • ",pe.messageCount," messages"]})]}),Y.jsx("button",{className:Tt["genius-chatbot-mobile-history-item-delete"],onClick:xe=>D(pe.sessionId,xe),"aria-label":"Delete session",children:Y.jsx(OS,{})})]},pe.sessionId))})]})}),Y.jsxs("div",{className:Tt["genius-chatbot-mobile-container"],style:d,children:[Y.jsxs("div",{className:Tt["genius-chatbot-mobile-header"],children:[Y.jsx("div",{className:Tt["genius-chatbot-mobile-header-icons"],children:T?Y.jsx("button",{className:Tt["genius-chatbot-mobile-icon-button-header"],onClick:()=>_(!1),"aria-label":"Back",children:Y.jsx(LS,{})}):Y.jsx("button",{className:Tt["genius-chatbot-mobile-icon-button-header"],onClick:E,"aria-label":"View history",children:Y.jsx(Qv,{})})}),Y.jsx("button",{className:Tt["genius-chatbot-mobile-icon-button-header"],onClick:we,"aria-label":"Close chat",children:Y.jsx(Wv,{})})]}),Y.jsxs("div",{className:Tt["genius-chatbot-mobile-body"],children:[T?Y.jsx("div",{className:Tt["genius-chatbot-mobile-feedback-overlay"],children:Y.jsx(GS,{feedbackType:"DISLIKE",onFeedbackClick:me,onBack:()=>_(!1),onClose:()=>_(!1),onHistoryClick:()=>{_(!1),E()}})}):J?Y.jsxs("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"#fff",display:"flex",flexDirection:"column",overflow:"hidden",zIndex:9999},children:[Y.jsxs("div",{className:Tt["genius-chatbot-mobile-header"],style:{position:"relative",zIndex:1002},children:[Y.jsx("div",{className:Tt["genius-chatbot-mobile-header-icons"],children:Y.jsx("button",{className:Tt["genius-chatbot-mobile-icon-button-header"],onClick:()=>{se(!1),I(!0)},"aria-label":"View history",children:Y.jsx(Qv,{})})}),Y.jsx("div",{style:{flex:1}}),Y.jsx("div",{className:Tt["genius-chatbot-mobile-header-icons"],children:Y.jsx("button",{className:Tt["genius-chatbot-mobile-icon-button-header"],onClick:Re,"aria-label":"Close voice mode",children:Y.jsx(R5,{})})})]}),!R&&Y.jsxs("div",{style:{position:"absolute",top:"64px",left:0,right:0,bottom:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:1e3,backgroundColor:"rgba(255, 255, 255, 0.98)"},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",marginBottom:"24px"},children:[Y.jsx("div",{className:`${Tt["voice-connecting-bar"]} ${Tt["voice-connecting-bar-1"]}`}),Y.jsx("div",{className:`${Tt["voice-connecting-bar"]} ${Tt["voice-connecting-bar-2"]}`}),Y.jsx("div",{className:`${Tt["voice-connecting-bar"]} ${Tt["voice-connecting-bar-3"]}`}),Y.jsx("div",{className:`${Tt["voice-connecting-bar"]} ${Tt["voice-connecting-bar-4"]}`}),Y.jsx("div",{className:`${Tt["voice-connecting-bar"]} ${Tt["voice-connecting-bar-5"]}`}),Y.jsx("div",{className:`${Tt["voice-connecting-bar"]} ${Tt["voice-connecting-bar-6"]}`})]}),Y.jsx("p",{style:{fontSize:"16px",lineHeight:"24px",color:"#70747E",textAlign:"center",margin:0,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},children:"Setting up connection..."})]}),Y.jsxs("div",{className:Tt["genius-voice-assistant-wrapper"],style:{position:"relative",width:"100%",height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},children:[Y.jsx("style",{children:`
|
|
482
482
|
.${Tt["genius-voice-assistant-wrapper"]} {
|
|
483
483
|
display: flex !important;
|
|
484
484
|
flex-direction: column !important;
|
|
@@ -515,7 +515,7 @@ use only for debugging`),y.connect(r.destination)),this.source=c,this.node=f,thi
|
|
|
515
515
|
overflow-y: auto !important;
|
|
516
516
|
padding-bottom: 100px !important;
|
|
517
517
|
}
|
|
518
|
-
`}),Y.jsx(A6,{})]})]}):v.length===0?Y.jsxs(Y.Fragment,{children:[Y.jsx("div",{className:Tt["genius-chatbot-mobile-content"],children:Y.jsx("div",{className:Tt["genius-chatbot-mobile-welcome"],children:Y.jsxs("div",{className:Tt["genius-chatbot-mobile-branding"],children:[Y.jsx("div",{className:Tt["genius-chatbot-mobile-logo-container"],children:Y.jsx("div",{className:Tt["genius-chatbot-mobile-logo"],children:Y.jsx("div",{className:Tt["genius-chatbot-mobile-logo-icon"],children:Y.jsx(Jv,{})})})}),Y.jsx("div",{className:Tt["genius-chatbot-mobile-welcome-text"],children:Y.jsxs("h2",{className:Tt["genius-chatbot-mobile-welcome-title"],children:["Meet Genius 👋",Y.jsx("br",{}),Y.jsx("span",{className:Tt["genius-chatbot-mobile-welcome-subtitle"],children:i})]})})]})})}),c.length>0&&Y.jsx("div",{className:Tt["genius-chatbot-mobile-suggestions"],children:c.map((pe,xe)=>Y.jsxs("button",{className:Tt["genius-chatbot-mobile-suggestion"],onClick:()=>ve(pe),type:"button",children:[pe==="Weekly Updates"&&Y.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Y.jsx("path",{d:"M11.3333 2.66667H13.3333C13.687 2.66667 14.0261 2.80714 14.2761 3.05719C14.5262 3.30724 14.6667 3.64638 14.6667 4V13.3333C14.6667 13.687 14.5262 14.0261 14.2761 14.2761C14.0261 14.5262 13.687 14.6667 13.3333 14.6667H2.66667C2.31304 14.6667 1.97391 14.5262 1.72386 14.2761C1.47381 14.0261 1.33333 13.687 1.33333 13.3333V4C1.33333 3.64638 1.47381 3.30724 1.72386 3.05719C1.97391 2.80714 2.31304 2.66667 2.66667 2.66667H4.66667",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),Y.jsx("path",{d:"M10.6667 1.33333V4M5.33333 1.33333V4M1.33333 6.66667H14.6667",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})]}),Y.jsx("span",{children:pe})]},xe))})]}):Y.jsx("div",{className:`${Tt["genius-chatbot-mobile-content"]} ${v.length>0?Tt["single-line"]:""}`,ref:g,children:Y.jsxs("div",{className:Tt["genius-chatbot-mobile-messages"],children:[v.map((pe,xe)=>pe.role==="assistant"?Y.jsx(BS,{message:pe,showIcon:xe===0||v[xe-1].role!=="assistant",onTypingStateChange:ie,skipAnimation:pe.isFromHistory||pe.skipAnimation,onRetry:le,isLastMessage:!!pe.content&&xe===v.length-1&&!O,onDislike:()=>be(pe.id),endpoint:f},pe.id):Y.jsx("div",{className:`${Tt["genius-dashboard-message"]} ${Tt[pe.role]}`,children:Y.jsx("div",{className:Tt["genius-dashboard-message-bubble"],children:Y.jsx("div",{className:Tt["genius-dashboard-message-content"],dangerouslySetInnerHTML:{__html:pe.content}})})},pe.id)),O&&Y.jsxs("div",{className:`${Tt["genius-dashboard-message"]} ${Tt.assistant}`,children:[Y.jsx("div",{className:Tt["genius-dashboard-assistant-icon"],children:Y.jsx(ub,{})}),Y.jsx("div",{className:Tt["genius-dashboard-thinking"],children:"Thinking"})]}),Y.jsx("div",{ref:ye})]})}),!T&&!J&&Y.jsx("div",{className:`${Tt["genius-chatbot-mobile-input-section"]} ${v.length>0?Tt["single-line"]:""}`,children:Y.jsxs("div",{className:`${Tt["genius-chatbot-mobile-input-container"]} ${v.length>0?Tt["single-line"]:""}`,children:[Y.jsx("textarea",{ref:C,className:`${Tt["genius-chatbot-mobile-input"]} ${v.length>0?Tt["single-line-input"]:""}`,placeholder:r,value:j,onChange:pe=>B(pe.target.value),onKeyDown:_e,disabled:!1,rows:1}),Y.jsxs("div",{className:`${Tt["genius-chatbot-mobile-input-row"]} ${v.length>0?Tt["single-line"]:""}`,children:[Y.jsx("div",{style:{flex:1}}),Y.jsxs("div",{className:Tt["genius-chatbot-mobile-input-actions"],children:[Y.jsx("button",{className:Tt["genius-chatbot-mobile-icon-button"],onClick:Ee,"aria-label":"Voice input",type:"button",children:Y.jsx(Y4,{})}),ee?Y.jsx("button",{className:Tt["genius-chatbot-mobile-cancel-button"],onClick:re,"aria-label":"Cancel",type:"button",children:Y.jsx(jS,{})}):Y.jsx("button",{className:Tt["genius-chatbot-mobile-send-button"],onClick:ge,"aria-label":"Send message",type:"button",disabled:!j.trim()||ae,children:Y.jsx(dS,{})})]})]})]})})]})]})]})})},nn={"genius-chatbot-wrapper":"genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q","bottom-right":"genius-sdk__GeniusChatbot-module__bottom-right___1B1-1","bottom-left":"genius-sdk__GeniusChatbot-module__bottom-left___jW0dZ",center:"genius-sdk__GeniusChatbot-module__center___z23Ni","genius-chatbot-container":"genius-sdk__GeniusChatbot-module__genius-chatbot-container___-1AXk",expanded:"genius-sdk__GeniusChatbot-module__expanded___egMCL","genius-chatbot-header":"genius-sdk__GeniusChatbot-module__genius-chatbot-header___KYNml","genius-chatbot-header-icons":"genius-sdk__GeniusChatbot-module__genius-chatbot-header-icons___eyLdP","genius-chatbot-icon-button":"genius-sdk__GeniusChatbot-module__genius-chatbot-icon-button___nbVeQ","genius-chatbot-icon":"genius-sdk__GeniusChatbot-module__genius-chatbot-icon___JlAuk","genius-chatbot-body":"genius-sdk__GeniusChatbot-module__genius-chatbot-body___-0tRl","genius-chatbot-content":"genius-sdk__GeniusChatbot-module__genius-chatbot-content___64G3h","genius-chatbot-branding":"genius-sdk__GeniusChatbot-module__genius-chatbot-branding___pISkM","genius-chatbot-logo-container":"genius-sdk__GeniusChatbot-module__genius-chatbot-logo-container___7Gxbj","genius-chatbot-logo":"genius-sdk__GeniusChatbot-module__genius-chatbot-logo___bcUEi","genius-chatbot-logo-icon":"genius-sdk__GeniusChatbot-module__genius-chatbot-logo-icon___vSlku","genius-chatbot-welcome":"genius-sdk__GeniusChatbot-module__genius-chatbot-welcome___uZmtS","genius-chatbot-welcome-title":"genius-sdk__GeniusChatbot-module__genius-chatbot-welcome-title___-tIN4","genius-chatbot-welcome-emoji":"genius-sdk__GeniusChatbot-module__genius-chatbot-welcome-emoji___zrXfE","genius-chatbot-welcome-subtitle":"genius-sdk__GeniusChatbot-module__genius-chatbot-welcome-subtitle___ipNy2","genius-chatbot-messages-container":"genius-sdk__GeniusChatbot-module__genius-chatbot-messages-container___lTB-Z","genius-chatbot-message":"genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9",user:"genius-sdk__GeniusChatbot-module__user___HfIkp",assistant:"genius-sdk__GeniusChatbot-module__assistant___ZGPHW","genius-chatbot-message-content":"genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA","genius-chatbot-table-wrapper":"genius-sdk__GeniusChatbot-module__genius-chatbot-table-wrapper___fK97m","genius-chatbot-sources":"genius-sdk__GeniusChatbot-module__genius-chatbot-sources___FeMnB","genius-chatbot-sources-header":"genius-sdk__GeniusChatbot-module__genius-chatbot-sources-header___faf7D","genius-chatbot-sources-chevron":"genius-sdk__GeniusChatbot-module__genius-chatbot-sources-chevron___UbDbJ","genius-chatbot-sources-list":"genius-sdk__GeniusChatbot-module__genius-chatbot-sources-list___R8Ido",slideIn:"genius-sdk__GeniusChatbot-module__slideIn___0VmGW","genius-chatbot-source-item":"genius-sdk__GeniusChatbot-module__genius-chatbot-source-item___lgwoi","genius-chatbot-source-number":"genius-sdk__GeniusChatbot-module__genius-chatbot-source-number___5MEOF","genius-dashboard-description":"genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN","genius-dashboard-value-pill":"genius-sdk__GeniusChatbot-module__genius-dashboard-value-pill___EH-fb","genius-chatbot-source-content":"genius-sdk__GeniusChatbot-module__genius-chatbot-source-content___8DpLR","genius-chatbot-source-title":"genius-sdk__GeniusChatbot-module__genius-chatbot-source-title___rmRJp","genius-chatbot-source-uri":"genius-sdk__GeniusChatbot-module__genius-chatbot-source-uri___QZVuP","genius-chatbot-scroll-button":"genius-sdk__GeniusChatbot-module__genius-chatbot-scroll-button___sHadA","genius-chatbot-input-section":"genius-sdk__GeniusChatbot-module__genius-chatbot-input-section___qlp-I","genius-chatbot-suggestions":"genius-sdk__GeniusChatbot-module__genius-chatbot-suggestions___ewgwd","genius-chatbot-suggestion":"genius-sdk__GeniusChatbot-module__genius-chatbot-suggestion___Syi1o","genius-chatbot-input-container":"genius-sdk__GeniusChatbot-module__genius-chatbot-input-container___U-16F","genius-chatbot-input-content":"genius-sdk__GeniusChatbot-module__genius-chatbot-input-content___5qw6w","genius-chatbot-input-row":"genius-sdk__GeniusChatbot-module__genius-chatbot-input-row___ZSuJF","genius-chatbot-input-actions":"genius-sdk__GeniusChatbot-module__genius-chatbot-input-actions___EilGU","genius-chatbot-input":"genius-sdk__GeniusChatbot-module__genius-chatbot-input___xVIEY","genius-chatbot-send-button":"genius-sdk__GeniusChatbot-module__genius-chatbot-send-button___GIS7-","genius-chatbot-send-icon":"genius-sdk__GeniusChatbot-module__genius-chatbot-send-icon___hFQPD"},Hx=({config:o={}})=>{const{apiKey:i="",baseUrl:r="",endpoints:c={},welcomeMessage:d="Your go-to for all payment related inquiries!",placeholder:f="Ask Genius",suggestions:y=["How to integrate?","Pricing Plan","Supported Gateways"],theme:x={},position:v="bottom-right",onMessage:S,onClose:j,onExpand:B,useStreaming:ee=!0,variant:ne="default"}=o,[O,V]=Ue.useState(!1);Ue.useEffect(()=>{const H=()=>{V(window.innerWidth<=768)};return H(),window.addEventListener("resize",H),()=>{window.removeEventListener("resize",H)}},[]),Un.setOptions({breaks:!0,gfm:!0,pedantic:!1});const[ae,ie]=Ue.useState([]),[U,P]=Ue.useState(""),[X,Q]=Ue.useState(!1),[$,I]=Ue.useState(!0),[he,oe]=Ue.useState(!1),[te,z]=Ue.useState(new Set),[W,G]=Ue.useState(!1),T=Ue.useRef(null),_=Ue.useRef(null),A=Ue.useRef(null),L=Ue.useRef(!1),J=Ue.useRef(0),se=Ue.useRef(null),R=()=>{if(!_.current)return!0;const{scrollTop:H,scrollHeight:K,clientHeight:re}=_.current;return K-H-re<100},ue=(H=!1)=>{!_.current||!T.current||(H||!L.current||R())&&(T.current.scrollIntoView({behavior:"smooth",block:"end"}),L.current=!1)},ye=()=>{_.current&&(se.current&&clearTimeout(se.current),se.current=setTimeout(()=>{R()?(L.current=!1,G(!1)):(L.current=!0,G(!0))},100))};Ue.useEffect(()=>{ae.length>J.current&&(J.current===0||!L.current)&&setTimeout(()=>ue(),100),J.current=ae.length},[ae]),Ue.useEffect(()=>{const H=K=>{K.key==="Escape"&&w()};return document.addEventListener("keydown",H),()=>{document.removeEventListener("keydown",H),se.current&&clearTimeout(se.current)}},[]),Ue.useEffect(()=>{const H=()=>{window.innerWidth<=768&&$&&I(!1)};return window.addEventListener("resize",H),H(),()=>{window.removeEventListener("resize",H)}},[$]);const g=()=>{U.trim()||oe(!0)},C=()=>{oe(!1)},k=async()=>{var re,le;if(!U.trim()||X)return;const H={id:Date.now().toString(),content:U,role:"user",timestamp:new Date};ie(ge=>[...ge,H]),P(""),Q(!0),L.current=!1,setTimeout(()=>ue(!0),100),S&&S(H);let K;if(ee&&c.stream)K=c.stream;else if(!ee&&c.chat)K=c.chat;else if(r)K=ee?`${r}/chat/stream`:`${r}/chat`;else{const ge="https://genius.juspay.in";K=ee?`${ge}/chat/stream`:`${ge}/chat`}try{const ge={"Content-Type":"application/json",Accept:"text/event-stream"};i&&(ge.Authorization=`Bearer ${i}`);const ve=await fetch(K,{method:"POST",headers:ge,body:JSON.stringify({message:H.content,conversation_id:"demo-session"})});if(!ve.ok)throw new Error(`API request failed with status ${ve.status}`);if(ee&&ve.body){console.log("Starting streaming response handling...");const _e=ve.body.getReader(),we=new TextDecoder,Ee={id:(Date.now()+1).toString(),content:"",role:"assistant",timestamp:new Date,sources:[]};ie(me=>[...me,Ee]);let Re="",be=0;for(;;){const{done:me,value:pe}=await _e.read();if(me){console.log("Stream reading complete");break}const xe=we.decode(pe,{stream:!0});Re+=xe,console.log(`Received chunk ${++be}, buffer length: ${Re.length}`);const Te=Re.split(`
|
|
518
|
+
`}),Y.jsx(A6,{})]})]}):v.length===0?Y.jsxs(Y.Fragment,{children:[Y.jsx("div",{className:Tt["genius-chatbot-mobile-content"],children:Y.jsx("div",{className:Tt["genius-chatbot-mobile-welcome"],children:Y.jsxs("div",{className:Tt["genius-chatbot-mobile-branding"],children:[Y.jsx("div",{className:Tt["genius-chatbot-mobile-logo-container"],children:Y.jsx("div",{className:Tt["genius-chatbot-mobile-logo"],children:Y.jsx("div",{className:Tt["genius-chatbot-mobile-logo-icon"],children:Y.jsx(Jv,{})})})}),Y.jsx("div",{className:Tt["genius-chatbot-mobile-welcome-text"],children:Y.jsxs("h2",{className:Tt["genius-chatbot-mobile-welcome-title"],children:["Meet Genius 👋",Y.jsx("br",{}),Y.jsx("span",{className:Tt["genius-chatbot-mobile-welcome-subtitle"],children:i})]})})]})})}),c.length>0&&Y.jsx("div",{className:Tt["genius-chatbot-mobile-suggestions"],children:c.map((pe,xe)=>Y.jsxs("button",{className:Tt["genius-chatbot-mobile-suggestion"],onClick:()=>ve(pe),type:"button",children:[pe==="Weekly Updates"&&Y.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Y.jsx("path",{d:"M11.3333 2.66667H13.3333C13.687 2.66667 14.0261 2.80714 14.2761 3.05719C14.5262 3.30724 14.6667 3.64638 14.6667 4V13.3333C14.6667 13.687 14.5262 14.0261 14.2761 14.2761C14.0261 14.5262 13.687 14.6667 13.3333 14.6667H2.66667C2.31304 14.6667 1.97391 14.5262 1.72386 14.2761C1.47381 14.0261 1.33333 13.687 1.33333 13.3333V4C1.33333 3.64638 1.47381 3.30724 1.72386 3.05719C1.97391 2.80714 2.31304 2.66667 2.66667 2.66667H4.66667",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),Y.jsx("path",{d:"M10.6667 1.33333V4M5.33333 1.33333V4M1.33333 6.66667H14.6667",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})]}),Y.jsx("span",{children:pe})]},xe))})]}):Y.jsx("div",{className:`${Tt["genius-chatbot-mobile-content"]} ${v.length>0?Tt["single-line"]:""}`,ref:g,children:Y.jsxs("div",{className:Tt["genius-chatbot-mobile-messages"],children:[v.map((pe,xe)=>pe.role==="assistant"?Y.jsx(BS,{message:pe,showIcon:xe===0||v[xe-1].role!=="assistant",onTypingStateChange:ie,skipAnimation:pe.isFromHistory||pe.skipAnimation,onRetry:le,isLastMessage:!!pe.content&&xe===v.length-1&&!O,onDislike:()=>be(pe.id),endpoint:f},pe.id):Y.jsx("div",{className:`${Tt["genius-dashboard-message"]} ${Tt[pe.role]}`,children:Y.jsx("div",{className:Tt["genius-dashboard-message-bubble"],children:Y.jsx("div",{className:Tt["genius-dashboard-message-content"],dangerouslySetInnerHTML:{__html:pe.content}})})},pe.id)),O&&Y.jsxs("div",{className:`${Tt["genius-dashboard-message"]} ${Tt.assistant}`,children:[Y.jsx("div",{className:Tt["genius-dashboard-assistant-icon"],children:Y.jsx(ub,{})}),Y.jsx("div",{className:Tt["genius-dashboard-thinking"],children:"Thinking"})]}),Y.jsx("div",{ref:ye})]})}),!T&&!J&&Y.jsx("div",{className:`${Tt["genius-chatbot-mobile-input-section"]} ${v.length>0?Tt["single-line"]:""}`,children:Y.jsxs("div",{className:`${Tt["genius-chatbot-mobile-input-container"]} ${v.length>0?Tt["single-line"]:""}`,children:[Y.jsx("textarea",{ref:C,className:`${Tt["genius-chatbot-mobile-input"]} ${v.length>0?Tt["single-line-input"]:""}`,placeholder:r,value:j,onChange:pe=>B(pe.target.value),onKeyDown:_e,disabled:!1,rows:1}),Y.jsxs("div",{className:`${Tt["genius-chatbot-mobile-input-row"]} ${v.length>0?Tt["single-line"]:""}`,children:[Y.jsx("div",{style:{flex:1}}),Y.jsxs("div",{className:Tt["genius-chatbot-mobile-input-actions"],children:[(o==null?void 0:o.showMicrophoneButton)!==!1&&Y.jsx("button",{className:Tt["genius-chatbot-mobile-icon-button"],onClick:Ee,"aria-label":"Voice input",type:"button",children:Y.jsx(Y4,{})}),ee?Y.jsx("button",{className:Tt["genius-chatbot-mobile-cancel-button"],onClick:re,"aria-label":"Cancel",type:"button",children:Y.jsx(jS,{})}):Y.jsx("button",{className:Tt["genius-chatbot-mobile-send-button"],onClick:ge,"aria-label":"Send message",type:"button",disabled:!j.trim()||ae,children:Y.jsx(dS,{})})]})]})]})})]})]})]})})},nn={"genius-chatbot-wrapper":"genius-sdk__GeniusChatbot-module__genius-chatbot-wrapper___hcV7q","bottom-right":"genius-sdk__GeniusChatbot-module__bottom-right___1B1-1","bottom-left":"genius-sdk__GeniusChatbot-module__bottom-left___jW0dZ",center:"genius-sdk__GeniusChatbot-module__center___z23Ni","genius-chatbot-container":"genius-sdk__GeniusChatbot-module__genius-chatbot-container___-1AXk",expanded:"genius-sdk__GeniusChatbot-module__expanded___egMCL","genius-chatbot-header":"genius-sdk__GeniusChatbot-module__genius-chatbot-header___KYNml","genius-chatbot-header-icons":"genius-sdk__GeniusChatbot-module__genius-chatbot-header-icons___eyLdP","genius-chatbot-icon-button":"genius-sdk__GeniusChatbot-module__genius-chatbot-icon-button___nbVeQ","genius-chatbot-icon":"genius-sdk__GeniusChatbot-module__genius-chatbot-icon___JlAuk","genius-chatbot-body":"genius-sdk__GeniusChatbot-module__genius-chatbot-body___-0tRl","genius-chatbot-content":"genius-sdk__GeniusChatbot-module__genius-chatbot-content___64G3h","genius-chatbot-branding":"genius-sdk__GeniusChatbot-module__genius-chatbot-branding___pISkM","genius-chatbot-logo-container":"genius-sdk__GeniusChatbot-module__genius-chatbot-logo-container___7Gxbj","genius-chatbot-logo":"genius-sdk__GeniusChatbot-module__genius-chatbot-logo___bcUEi","genius-chatbot-logo-icon":"genius-sdk__GeniusChatbot-module__genius-chatbot-logo-icon___vSlku","genius-chatbot-welcome":"genius-sdk__GeniusChatbot-module__genius-chatbot-welcome___uZmtS","genius-chatbot-welcome-title":"genius-sdk__GeniusChatbot-module__genius-chatbot-welcome-title___-tIN4","genius-chatbot-welcome-emoji":"genius-sdk__GeniusChatbot-module__genius-chatbot-welcome-emoji___zrXfE","genius-chatbot-welcome-subtitle":"genius-sdk__GeniusChatbot-module__genius-chatbot-welcome-subtitle___ipNy2","genius-chatbot-messages-container":"genius-sdk__GeniusChatbot-module__genius-chatbot-messages-container___lTB-Z","genius-chatbot-message":"genius-sdk__GeniusChatbot-module__genius-chatbot-message___5QQw9",user:"genius-sdk__GeniusChatbot-module__user___HfIkp",assistant:"genius-sdk__GeniusChatbot-module__assistant___ZGPHW","genius-chatbot-message-content":"genius-sdk__GeniusChatbot-module__genius-chatbot-message-content___oW1RA","genius-chatbot-table-wrapper":"genius-sdk__GeniusChatbot-module__genius-chatbot-table-wrapper___fK97m","genius-chatbot-sources":"genius-sdk__GeniusChatbot-module__genius-chatbot-sources___FeMnB","genius-chatbot-sources-header":"genius-sdk__GeniusChatbot-module__genius-chatbot-sources-header___faf7D","genius-chatbot-sources-chevron":"genius-sdk__GeniusChatbot-module__genius-chatbot-sources-chevron___UbDbJ","genius-chatbot-sources-list":"genius-sdk__GeniusChatbot-module__genius-chatbot-sources-list___R8Ido",slideIn:"genius-sdk__GeniusChatbot-module__slideIn___0VmGW","genius-chatbot-source-item":"genius-sdk__GeniusChatbot-module__genius-chatbot-source-item___lgwoi","genius-chatbot-source-number":"genius-sdk__GeniusChatbot-module__genius-chatbot-source-number___5MEOF","genius-dashboard-description":"genius-sdk__GeniusChatbot-module__genius-dashboard-description___PBOlN","genius-dashboard-value-pill":"genius-sdk__GeniusChatbot-module__genius-dashboard-value-pill___EH-fb","genius-chatbot-source-content":"genius-sdk__GeniusChatbot-module__genius-chatbot-source-content___8DpLR","genius-chatbot-source-title":"genius-sdk__GeniusChatbot-module__genius-chatbot-source-title___rmRJp","genius-chatbot-source-uri":"genius-sdk__GeniusChatbot-module__genius-chatbot-source-uri___QZVuP","genius-chatbot-scroll-button":"genius-sdk__GeniusChatbot-module__genius-chatbot-scroll-button___sHadA","genius-chatbot-input-section":"genius-sdk__GeniusChatbot-module__genius-chatbot-input-section___qlp-I","genius-chatbot-suggestions":"genius-sdk__GeniusChatbot-module__genius-chatbot-suggestions___ewgwd","genius-chatbot-suggestion":"genius-sdk__GeniusChatbot-module__genius-chatbot-suggestion___Syi1o","genius-chatbot-input-container":"genius-sdk__GeniusChatbot-module__genius-chatbot-input-container___U-16F","genius-chatbot-input-content":"genius-sdk__GeniusChatbot-module__genius-chatbot-input-content___5qw6w","genius-chatbot-input-row":"genius-sdk__GeniusChatbot-module__genius-chatbot-input-row___ZSuJF","genius-chatbot-input-actions":"genius-sdk__GeniusChatbot-module__genius-chatbot-input-actions___EilGU","genius-chatbot-input":"genius-sdk__GeniusChatbot-module__genius-chatbot-input___xVIEY","genius-chatbot-send-button":"genius-sdk__GeniusChatbot-module__genius-chatbot-send-button___GIS7-","genius-chatbot-send-icon":"genius-sdk__GeniusChatbot-module__genius-chatbot-send-icon___hFQPD"},Hx=({config:o={}})=>{const{apiKey:i="",baseUrl:r="",endpoints:c={},welcomeMessage:d="Your go-to for all payment related inquiries!",placeholder:f="Ask Genius",suggestions:y=["How to integrate?","Pricing Plan","Supported Gateways"],theme:x={},position:v="bottom-right",onMessage:S,onClose:j,onExpand:B,useStreaming:ee=!0,variant:ne="default"}=o,[O,V]=Ue.useState(!1);Ue.useEffect(()=>{const H=()=>{V(window.innerWidth<=768)};return H(),window.addEventListener("resize",H),()=>{window.removeEventListener("resize",H)}},[]),Un.setOptions({breaks:!0,gfm:!0,pedantic:!1});const[ae,ie]=Ue.useState([]),[U,P]=Ue.useState(""),[X,Q]=Ue.useState(!1),[$,I]=Ue.useState(!0),[he,oe]=Ue.useState(!1),[te,z]=Ue.useState(new Set),[W,G]=Ue.useState(!1),T=Ue.useRef(null),_=Ue.useRef(null),A=Ue.useRef(null),L=Ue.useRef(!1),J=Ue.useRef(0),se=Ue.useRef(null),R=()=>{if(!_.current)return!0;const{scrollTop:H,scrollHeight:K,clientHeight:re}=_.current;return K-H-re<100},ue=(H=!1)=>{!_.current||!T.current||(H||!L.current||R())&&(T.current.scrollIntoView({behavior:"smooth",block:"end"}),L.current=!1)},ye=()=>{_.current&&(se.current&&clearTimeout(se.current),se.current=setTimeout(()=>{R()?(L.current=!1,G(!1)):(L.current=!0,G(!0))},100))};Ue.useEffect(()=>{ae.length>J.current&&(J.current===0||!L.current)&&setTimeout(()=>ue(),100),J.current=ae.length},[ae]),Ue.useEffect(()=>{const H=K=>{K.key==="Escape"&&w()};return document.addEventListener("keydown",H),()=>{document.removeEventListener("keydown",H),se.current&&clearTimeout(se.current)}},[]),Ue.useEffect(()=>{const H=()=>{window.innerWidth<=768&&$&&I(!1)};return window.addEventListener("resize",H),H(),()=>{window.removeEventListener("resize",H)}},[$]);const g=()=>{U.trim()||oe(!0)},C=()=>{oe(!1)},k=async()=>{var re,le;if(!U.trim()||X)return;const H={id:Date.now().toString(),content:U,role:"user",timestamp:new Date};ie(ge=>[...ge,H]),P(""),Q(!0),L.current=!1,setTimeout(()=>ue(!0),100),S&&S(H);let K;if(ee&&c.stream)K=c.stream;else if(!ee&&c.chat)K=c.chat;else if(r)K=ee?`${r}/chat/stream`:`${r}/chat`;else{const ge="https://genius.juspay.in";K=ee?`${ge}/chat/stream`:`${ge}/chat`}try{const ge={"Content-Type":"application/json",Accept:"text/event-stream"};i&&(ge.Authorization=`Bearer ${i}`);const ve=await fetch(K,{method:"POST",headers:ge,body:JSON.stringify({message:H.content,conversation_id:"demo-session"})});if(!ve.ok)throw new Error(`API request failed with status ${ve.status}`);if(ee&&ve.body){console.log("Starting streaming response handling...");const _e=ve.body.getReader(),we=new TextDecoder,Ee={id:(Date.now()+1).toString(),content:"",role:"assistant",timestamp:new Date,sources:[]};ie(me=>[...me,Ee]);let Re="",be=0;for(;;){const{done:me,value:pe}=await _e.read();if(me){console.log("Stream reading complete");break}const xe=we.decode(pe,{stream:!0});Re+=xe,console.log(`Received chunk ${++be}, buffer length: ${Re.length}`);const Te=Re.split(`
|
|
519
519
|
`);Re=Te.pop()||"";for(const ke of Te)if(ke.trim()!=="")if(ke.startsWith("data: ")){const Ae=ke.slice(6);if(Ae==="[DONE]"){console.log("Received [DONE] signal");continue}try{const De=JSON.parse(Ae);if(console.log("Parsed SSE data:",De),De.text)Ee.content+=De.text,console.log(`Updated content, total length: ${Ee.content.length}`),ie(ze=>ze.map($e=>$e.id===Ee.id?{...$e,content:Ee.content}:$e));else if(De.type==="metadata"&&(De.metrics&&console.log("Response metrics:",De.metrics),De.grounding_metadata)){const ze=[],$e=new Set;De.grounding_metadata.forEach(Ge=>{var qe;Ge.title&&!$e.has(Ge.title)&&($e.add(Ge.title),ze.push({text:Ge.text||((qe=Ge.rag_chunk)==null?void 0:qe.text)||"",title:Ge.title,uri:Ge.uri||""}))}),Ee.sources=ze,console.log(`Added ${ze.length} sources`),ie(Ge=>Ge.map(qe=>qe.id===Ee.id?{...qe,sources:Ee.sources}:qe))}}catch(De){console.error("Error parsing SSE data:",De,"Line:",ke)}}else console.log("Non-data line:",ke)}}else{const _e=await ve.json(),we=[];if((re=_e.grounding_metadata)!=null&&re.grounding_metadata){const Re=new Set;_e.grounding_metadata.grounding_metadata.forEach(be=>{var me;be.title&&!Re.has(be.title)&&(Re.add(be.title),we.push({text:be.text||((me=be.rag_chunk)==null?void 0:me.text)||"",title:be.title,uri:be.uri||""}))})}const Ee={id:(Date.now()+1).toString(),content:_e.response||_e.message||"Sorry, I couldn't process that.",role:"assistant",timestamp:new Date,sources:we};ie(Re=>[...Re,Ee]),(le=_e.grounding_metadata)!=null&&le.metrics&&console.log("Response metrics:",_e.grounding_metadata.metrics)}}catch(ge){console.error("Error sending message:",ge);const ve={id:(Date.now()+1).toString(),content:"Sorry, I couldn't connect to the service. Please ensure the backend is running on port 8001.",role:"assistant",timestamp:new Date};ie(_e=>[..._e,ve])}Q(!1)},Z=H=>{var K;P(H),(K=A.current)==null||K.focus()},q=H=>{H.key==="Enter"&&!H.shiftKey&&(H.preventDefault(),k())},w=()=>{j&&j()},E=()=>{I(!$),B&&B()},N=H=>{z(K=>{const re=new Set(K);return re.has(H)?re.delete(H):re.add(H),re})},ce=H=>{let K=Un.parse(H);return K=K.replace(/<table>/g,'<div class="genius-chatbot-table-wrapper"><table>').replace(/<\/table>/g,"</table></div>"),K=K.replace(/<a\s+href=/g,'<a target="_blank" rel="noopener noreferrer" href='),{__html:K}},D={...x};return he?Y.jsx(hS,{onEnd:C}):ne==="dashboard"?O?Y.jsx(O6,{config:o}):Y.jsx(j8,{config:o}):Y.jsx(df,{children:Y.jsx("div",{className:`${nn["genius-chatbot-wrapper"]} ${nn[v]} ${$?nn.expanded:""}`,children:Y.jsxs("div",{className:nn["genius-chatbot-container"],style:D,children:[Y.jsxs("div",{className:nn["genius-chatbot-header"],children:[Y.jsxs("div",{className:nn["genius-chatbot-header-icons"],children:[Y.jsx("button",{className:nn["genius-chatbot-icon-button"],onClick:E,"aria-label":$?"Collapse chat":"Expand chat",children:Y.jsx("div",{className:nn["genius-chatbot-icon"],children:$?Y.jsx(I4,{}):Y.jsx(V4,{})})}),Y.jsx("button",{className:nn["genius-chatbot-icon-button"],"aria-label":"View history",children:Y.jsx("div",{className:nn["genius-chatbot-icon"],children:Y.jsx(Qv,{})})})]}),Y.jsx("button",{className:nn["genius-chatbot-icon-button"],onClick:w,"aria-label":"Close chat",children:Y.jsx("div",{className:nn["genius-chatbot-icon"],children:Y.jsx(Wv,{})})})]}),Y.jsx("div",{className:nn["genius-chatbot-body"],children:Y.jsxs("div",{className:nn["genius-chatbot-content"],children:[ae.length===0?Y.jsxs("div",{className:nn["genius-chatbot-branding"],children:[Y.jsx("div",{className:nn["genius-chatbot-logo-container"],children:Y.jsx("div",{className:nn["genius-chatbot-logo"],children:Y.jsx("div",{className:nn["genius-chatbot-logo-icon"],children:Y.jsx(Jv,{})})})}),Y.jsxs("div",{className:nn["genius-chatbot-welcome"],children:[Y.jsxs("h2",{className:nn["genius-chatbot-welcome-title"],children:["Meet Genius",Y.jsx("span",{className:nn["genius-chatbot-welcome-emoji"],children:"👋"})]}),Y.jsx("p",{className:nn["genius-chatbot-welcome-subtitle"],children:d})]})]}):Y.jsxs("div",{className:nn["genius-chatbot-messages-container"],ref:_,onScroll:ye,children:[ae.map(H=>Y.jsxs("div",{className:`${nn["genius-chatbot-message"]} ${nn[H.role]}`,children:[Y.jsx("div",{className:nn["genius-chatbot-message-content"],dangerouslySetInnerHTML:ce(H.content)}),H.role==="assistant"&&H.sources&&H.sources.length>0&&Y.jsxs("div",{className:nn["genius-chatbot-sources"],children:[Y.jsxs("button",{className:nn["genius-chatbot-sources-header"],onClick:()=>N(H.id),type:"button",children:[Y.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{transform:te.has(H.id)?"rotate(45deg)":"rotate(0deg)",transition:"transform 0.2s ease"},children:Y.jsx("path",{d:"M6 1V11M1 6H11",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),Y.jsxs("span",{children:["Sources (",H.sources.length,")"]}),Y.jsx("svg",{className:nn["genius-chatbot-sources-chevron"],width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{transform:te.has(H.id)?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"},children:Y.jsx("path",{d:"M3.5 5.25L7 8.75L10.5 5.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),te.has(H.id)&&Y.jsx("div",{className:nn["genius-chatbot-sources-list"],children:H.sources.map((K,re)=>Y.jsxs("div",{className:nn["genius-chatbot-source-item"],children:[Y.jsx("div",{className:nn["genius-chatbot-source-number"],children:re+1}),Y.jsxs("div",{className:nn["genius-chatbot-source-content"],children:[Y.jsx("div",{className:nn["genius-chatbot-source-title"],children:K.title.replace(/_/g," ").replace(".md","")}),K.uri&&Y.jsxs("div",{className:nn["genius-chatbot-source-uri"],children:[". ",K.uri.split("/").pop()]})]})]},re))})]})]},H.id)),X&&Y.jsx("div",{className:`${nn["genius-chatbot-message"]} ${nn.assistant}`,children:Y.jsx("span",{children:"Thinking..."})}),Y.jsx("div",{ref:T})]}),W&&Y.jsx("button",{className:nn["genius-chatbot-scroll-button"],onClick:()=>{L.current=!1,ue(!0)},"aria-label":"Scroll to bottom",children:Y.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Y.jsx("path",{d:"M10 14L6 10L7.4 8.6L10 11.2L12.6 8.6L14 10L10 14Z",fill:"currentColor"}),Y.jsx("path",{d:"M10 10L6 6L7.4 4.6L10 7.2L12.6 4.6L14 6L10 10Z",fill:"currentColor"})]})}),Y.jsxs("div",{className:nn["genius-chatbot-input-section"],children:[ae.length===0&&y.length>0&&Y.jsx("div",{className:nn["genius-chatbot-suggestions"],children:y.map((H,K)=>Y.jsx("button",{className:nn["genius-chatbot-suggestion"],onClick:()=>Z(H),type:"button",children:H},K))}),Y.jsx("div",{className:nn["genius-chatbot-input-container"],children:Y.jsxs("div",{className:nn["genius-chatbot-input-content"],children:[Y.jsx("div",{className:nn["genius-chatbot-input-row"],children:Y.jsx("input",{ref:A,type:"text",className:nn["genius-chatbot-input"],placeholder:f,value:U,onChange:H=>P(H.target.value),onKeyDown:q,disabled:X})}),Y.jsx("div",{className:nn["genius-chatbot-input-actions"],children:Y.jsx("button",{className:nn["genius-chatbot-send-button"],onClick:U.trim()?k:g,"aria-label":U.trim()?"Send message":"Voice input",type:"button",children:Y.jsx("div",{className:nn["genius-chatbot-send-icon"],children:U.trim()?Y.jsx(dS,{}):Y.jsx(q4,{})})})})]})})]})]})})]})})})},j6=Ue.createContext(void 0),L6=()=>{const o=Ue.useContext(j6);if(!o)throw new Error("useGeniusChatbot must be used within a GeniusChatbotProvider");return o},L8=({children:o,config:i={},defaultOpen:r=!1})=>{const[c,d]=Ue.useState(r),f=()=>d(!0),y=()=>d(!1),x=()=>d(!c),v=()=>{y(),i.onClose&&i.onClose()};return Y.jsxs(j6.Provider,{value:{isOpen:c,openChatbot:f,closeChatbot:y,toggleChatbot:x},children:[o,c&&Y.jsx(Hx,{config:{...i,onClose:v}})]})},$x={"genius-toggle-button":"genius-sdk__GeniusToggle-module__genius-toggle-button___-vqMH","genius-toggle-text":"genius-sdk__GeniusToggle-module__genius-toggle-text___t-WaO","genius-toggle-logo":"genius-sdk__GeniusToggle-module__genius-toggle-logo___NwizJ"},R8=()=>Y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Y.jsxs("g",{children:[Y.jsx("path",{d:"M8 1C8 1.01048 8 1.021 8 1.03141C8.00279 5.97901 9.43359 8 15 8C9.43359 8 8.00279 10.021 8 14.9686C8 14.979 8 14.9895 8 15C8 14.9895 8 14.979 8 14.9686C7.99721 10.021 6.56641 8 1 8C6.56641 8 7.99721 5.97901 8 1.03141C8 1.021 8 1.01048 8 1Z",fill:"currentColor"}),Y.jsx("path",{d:"M8 1C8.00284 5.95317 6.59995 8 1 8C6.59995 8 8.00284 10.0468 8 15C7.99716 10.0468 9.39995 8 15 8C9.39995 8 7.99716 5.95317 8 1Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinejoin:"round"})]})}),N8=({position:o="bottom-right",offsetX:i=20,offsetY:r=20})=>{const{openChatbot:c,isOpen:d}=L6(),f={position:"fixed",...o.includes("bottom")?{bottom:r}:{top:r},...o.includes("right")?{right:i}:{left:i}};return d?null:Y.jsx(df,{children:Y.jsxs("button",{className:$x["genius-toggle-button"],onClick:c,"aria-label":"Open Genius chatbot",style:f,children:[Y.jsx("span",{className:$x["genius-toggle-text"],children:"Genius"}),Y.jsx("div",{className:$x["genius-toggle-logo"],children:Y.jsx(R8,{})})]})})};var l1={exports:{}},mm={},c1={exports:{}},Gx={};/**
|
|
520
520
|
* @license React
|
|
521
521
|
* scheduler.production.js
|
|
@@ -540,15 +540,15 @@ use only for debugging`),y.connect(r.destination)),this.source=c,this.node=f,thi
|
|
|
540
540
|
*
|
|
541
541
|
* This source code is licensed under the MIT license found in the
|
|
542
542
|
* LICENSE file in the root directory of this source tree.
|
|
543
|
-
*/var U6;function U8(){if(U6)return mm;U6=1;var o=B6(),i=Ue,r=cd;function c(n){var s="https://react.dev/errors/"+n;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)s+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+n+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function f(n){var s=n,l=n;if(n.alternate)for(;s.return;)s=s.return;else{n=s;do s=n,(s.flags&4098)!==0&&(l=s.return),n=s.return;while(n)}return s.tag===3?l:null}function y(n){if(n.tag===13){var s=n.memoizedState;if(s===null&&(n=n.alternate,n!==null&&(s=n.memoizedState)),s!==null)return s.dehydrated}return null}function x(n){if(f(n)!==n)throw Error(c(188))}function v(n){var s=n.alternate;if(!s){if(s=f(n),s===null)throw Error(c(188));return s!==n?null:n}for(var l=n,h=s;;){var b=l.return;if(b===null)break;var M=b.alternate;if(M===null){if(h=b.return,h!==null){l=h;continue}break}if(b.child===M.child){for(M=b.child;M;){if(M===l)return x(b),n;if(M===h)return x(b),s;M=M.sibling}throw Error(c(188))}if(l.return!==h.return)l=b,h=M;else{for(var fe=!1,Se=b.child;Se;){if(Se===l){fe=!0,l=b,h=M;break}if(Se===h){fe=!0,h=b,l=M;break}Se=Se.sibling}if(!fe){for(Se=M.child;Se;){if(Se===l){fe=!0,l=M,h=b;break}if(Se===h){fe=!0,h=M,l=b;break}Se=Se.sibling}if(!fe)throw Error(c(189))}}if(l.alternate!==h)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?n:s}function S(n){var s=n.tag;if(s===5||s===26||s===27||s===6)return n;for(n=n.child;n!==null;){if(s=S(n),s!==null)return s;n=n.sibling}return null}var j=Object.assign,B=Symbol.for("react.element"),ee=Symbol.for("react.transitional.element"),ne=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),ie=Symbol.for("react.provider"),U=Symbol.for("react.consumer"),P=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),he=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function W(n){return n===null||typeof n!="object"?null:(n=z&&n[z]||n["@@iterator"],typeof n=="function"?n:null)}var G=Symbol.for("react.client.reference");function T(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===G?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case O:return"Fragment";case ae:return"Profiler";case V:return"StrictMode";case Q:return"Suspense";case $:return"SuspenseList";case oe:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case ne:return"Portal";case P:return(n.displayName||"Context")+".Provider";case U:return(n._context.displayName||"Context")+".Consumer";case X:var s=n.render;return n=n.displayName,n||(n=s.displayName||s.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case I:return s=n.displayName||null,s!==null?s:T(n.type)||"Memo";case he:s=n._payload,n=n._init;try{return T(n(s))}catch{}}return null}var _=Array.isArray,A=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},se=[],R=-1;function ue(n){return{current:n}}function ye(n){0>R||(n.current=se[R],se[R]=null,R--)}function g(n,s){R++,se[R]=n.current,n.current=s}var C=ue(null),k=ue(null),Z=ue(null),q=ue(null);function w(n,s){switch(g(Z,s),g(k,n),g(C,null),s.nodeType){case 9:case 11:n=(n=s.documentElement)&&(n=n.namespaceURI)?kr(n):0;break;default:if(n=s.tagName,s=s.namespaceURI)s=kr(s),n=Hu(s,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}ye(C),g(C,n)}function E(){ye(C),ye(k),ye(Z)}function N(n){n.memoizedState!==null&&g(q,n);var s=C.current,l=Hu(s,n.type);s!==l&&(g(k,n),g(C,l))}function ce(n){k.current===n&&(ye(C),ye(k)),q.current===n&&(ye(q),Fa._currentValue=J)}var D=Object.prototype.hasOwnProperty,H=o.unstable_scheduleCallback,K=o.unstable_cancelCallback,re=o.unstable_shouldYield,le=o.unstable_requestPaint,ge=o.unstable_now,ve=o.unstable_getCurrentPriorityLevel,_e=o.unstable_ImmediatePriority,we=o.unstable_UserBlockingPriority,Ee=o.unstable_NormalPriority,Re=o.unstable_LowPriority,be=o.unstable_IdlePriority,me=o.log,pe=o.unstable_setDisableYieldValue,xe=null,Te=null;function ke(n){if(typeof me=="function"&&pe(n),Te&&typeof Te.setStrictMode=="function")try{Te.setStrictMode(xe,n)}catch{}}var Ae=Math.clz32?Math.clz32:$e,De=Math.log,ze=Math.LN2;function $e(n){return n>>>=0,n===0?32:31-(De(n)/ze|0)|0}var Ge=256,qe=4194304;function Je(n){var s=n&42;if(s!==0)return s;switch(n&-n){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:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function rt(n,s,l){var h=n.pendingLanes;if(h===0)return 0;var b=0,M=n.suspendedLanes,fe=n.pingedLanes;n=n.warmLanes;var Se=h&134217727;return Se!==0?(h=Se&~M,h!==0?b=Je(h):(fe&=Se,fe!==0?b=Je(fe):l||(l=Se&~n,l!==0&&(b=Je(l))))):(Se=h&~M,Se!==0?b=Je(Se):fe!==0?b=Je(fe):l||(l=h&~n,l!==0&&(b=Je(l)))),b===0?0:s!==0&&s!==b&&(s&M)===0&&(M=b&-b,l=s&-s,M>=l||M===32&&(l&4194048)!==0)?s:b}function st(n,s){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&s)===0}function Ne(n,s){switch(n){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 ut(){var n=Ge;return Ge<<=1,(Ge&4194048)===0&&(Ge=256),n}function lt(){var n=qe;return qe<<=1,(qe&62914560)===0&&(qe=4194304),n}function Fe(n){for(var s=[],l=0;31>l;l++)s.push(n);return s}function ft(n,s){n.pendingLanes|=s,s!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function ot(n,s,l,h,b,M){var fe=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var Se=n.entanglements,Oe=n.expirationTimes,Ie=n.hiddenUpdates;for(l=fe&~l;0<l;){var at=31-Ae(l),dt=1<<at;Se[at]=0,Oe[at]=-1;var Xe=Ie[at];if(Xe!==null)for(Ie[at]=null,at=0;at<Xe.length;at++){var Qe=Xe[at];Qe!==null&&(Qe.lane&=-536870913)}l&=~dt}h!==0&&Ot(n,h,0),M!==0&&b===0&&n.tag!==0&&(n.suspendedLanes|=M&~(fe&~s))}function Ot(n,s,l){n.pendingLanes|=s,n.suspendedLanes&=~s;var h=31-Ae(s);n.entangledLanes|=s,n.entanglements[h]=n.entanglements[h]|1073741824|l&4194090}function Bt(n,s){var l=n.entangledLanes|=s;for(n=n.entanglements;l;){var h=31-Ae(l),b=1<<h;b&s|n[h]&s&&(n[h]|=s),l&=~b}}function Vt(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function It(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function _t(){var n=L.p;return n!==0?n:(n=window.event,n===void 0?32:y0(n.type))}function mt(n,s){var l=L.p;try{return L.p=n,s()}finally{L.p=l}}var ht=Math.random().toString(36).slice(2),bt="__reactFiber$"+ht,St="__reactProps$"+ht,Et="__reactContainer$"+ht,Dt="__reactEvents$"+ht,Mt="__reactListeners$"+ht,Ft="__reactHandles$"+ht,kn="__reactResources$"+ht,yt="__reactMarker$"+ht;function Pt(n){delete n[bt],delete n[St],delete n[Dt],delete n[Mt],delete n[Ft]}function At(n){var s=n[bt];if(s)return s;for(var l=n.parentNode;l;){if(s=l[Et]||l[bt]){if(l=s.alternate,s.child!==null||l!==null&&l.child!==null)for(n=ca(n);n!==null;){if(l=n[bt])return l;n=ca(n)}return s}n=l,l=n.parentNode}return null}function Ct(n){if(n=n[bt]||n[Et]){var s=n.tag;if(s===5||s===6||s===13||s===26||s===27||s===3)return n}return null}function pt(n){var s=n.tag;if(s===5||s===26||s===27||s===6)return n.stateNode;throw Error(c(33))}function vt(n){var s=n[kn];return s||(s=n[kn]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function wt(n){n[yt]=!0}var vn=new Set,an={};function Ut(n,s){Rt(n,s),Rt(n+"Capture",s)}function Rt(n,s){for(an[n]=s,n=0;n<s.length;n++)vn.add(s[n])}var Qt=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]*$"),sn={},Tn={};function cn(n){return D.call(Tn,n)?!0:D.call(sn,n)?!1:Qt.test(n)?Tn[n]=!0:(sn[n]=!0,!1)}function mn(n,s,l){if(cn(s))if(l===null)n.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":n.removeAttribute(s);return;case"boolean":var h=s.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){n.removeAttribute(s);return}}n.setAttribute(s,""+l)}}function Wt(n,s,l){if(l===null)n.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttribute(s,""+l)}}function Ht(n,s,l,h){if(h===null)n.removeAttribute(l);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(l);return}n.setAttributeNS(s,l,""+h)}}var $n,ai;function si(n){if($n===void 0)try{throw Error()}catch(l){var s=l.stack.trim().match(/\n( *(at )?)/);$n=s&&s[1]||"",ai=-1<l.stack.indexOf(`
|
|
543
|
+
*/var U6;function U8(){if(U6)return mm;U6=1;var o=B6(),i=Ue,r=cd;function c(n){var s="https://react.dev/errors/"+n;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)s+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+n+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function f(n){var s=n,l=n;if(n.alternate)for(;s.return;)s=s.return;else{n=s;do s=n,(s.flags&4098)!==0&&(l=s.return),n=s.return;while(n)}return s.tag===3?l:null}function y(n){if(n.tag===13){var s=n.memoizedState;if(s===null&&(n=n.alternate,n!==null&&(s=n.memoizedState)),s!==null)return s.dehydrated}return null}function x(n){if(f(n)!==n)throw Error(c(188))}function v(n){var s=n.alternate;if(!s){if(s=f(n),s===null)throw Error(c(188));return s!==n?null:n}for(var l=n,h=s;;){var b=l.return;if(b===null)break;var M=b.alternate;if(M===null){if(h=b.return,h!==null){l=h;continue}break}if(b.child===M.child){for(M=b.child;M;){if(M===l)return x(b),n;if(M===h)return x(b),s;M=M.sibling}throw Error(c(188))}if(l.return!==h.return)l=b,h=M;else{for(var fe=!1,Se=b.child;Se;){if(Se===l){fe=!0,l=b,h=M;break}if(Se===h){fe=!0,h=b,l=M;break}Se=Se.sibling}if(!fe){for(Se=M.child;Se;){if(Se===l){fe=!0,l=M,h=b;break}if(Se===h){fe=!0,h=M,l=b;break}Se=Se.sibling}if(!fe)throw Error(c(189))}}if(l.alternate!==h)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?n:s}function S(n){var s=n.tag;if(s===5||s===26||s===27||s===6)return n;for(n=n.child;n!==null;){if(s=S(n),s!==null)return s;n=n.sibling}return null}var j=Object.assign,B=Symbol.for("react.element"),ee=Symbol.for("react.transitional.element"),ne=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),ie=Symbol.for("react.provider"),U=Symbol.for("react.consumer"),P=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),he=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function W(n){return n===null||typeof n!="object"?null:(n=z&&n[z]||n["@@iterator"],typeof n=="function"?n:null)}var G=Symbol.for("react.client.reference");function T(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===G?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case O:return"Fragment";case ae:return"Profiler";case V:return"StrictMode";case Q:return"Suspense";case $:return"SuspenseList";case oe:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case ne:return"Portal";case P:return(n.displayName||"Context")+".Provider";case U:return(n._context.displayName||"Context")+".Consumer";case X:var s=n.render;return n=n.displayName,n||(n=s.displayName||s.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case I:return s=n.displayName||null,s!==null?s:T(n.type)||"Memo";case he:s=n._payload,n=n._init;try{return T(n(s))}catch{}}return null}var _=Array.isArray,A=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},se=[],R=-1;function ue(n){return{current:n}}function ye(n){0>R||(n.current=se[R],se[R]=null,R--)}function g(n,s){R++,se[R]=n.current,n.current=s}var C=ue(null),k=ue(null),Z=ue(null),q=ue(null);function w(n,s){switch(g(Z,s),g(k,n),g(C,null),s.nodeType){case 9:case 11:n=(n=s.documentElement)&&(n=n.namespaceURI)?kr(n):0;break;default:if(n=s.tagName,s=s.namespaceURI)s=kr(s),n=Hu(s,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}ye(C),g(C,n)}function E(){ye(C),ye(k),ye(Z)}function N(n){n.memoizedState!==null&&g(q,n);var s=C.current,l=Hu(s,n.type);s!==l&&(g(k,n),g(C,l))}function ce(n){k.current===n&&(ye(C),ye(k)),q.current===n&&(ye(q),Fa._currentValue=J)}var D=Object.prototype.hasOwnProperty,H=o.unstable_scheduleCallback,K=o.unstable_cancelCallback,re=o.unstable_shouldYield,le=o.unstable_requestPaint,ge=o.unstable_now,ve=o.unstable_getCurrentPriorityLevel,_e=o.unstable_ImmediatePriority,we=o.unstable_UserBlockingPriority,Ee=o.unstable_NormalPriority,Re=o.unstable_LowPriority,be=o.unstable_IdlePriority,me=o.log,pe=o.unstable_setDisableYieldValue,xe=null,Te=null;function ke(n){if(typeof me=="function"&&pe(n),Te&&typeof Te.setStrictMode=="function")try{Te.setStrictMode(xe,n)}catch{}}var Ae=Math.clz32?Math.clz32:$e,De=Math.log,ze=Math.LN2;function $e(n){return n>>>=0,n===0?32:31-(De(n)/ze|0)|0}var Ge=256,qe=4194304;function Je(n){var s=n&42;if(s!==0)return s;switch(n&-n){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:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function rt(n,s,l){var h=n.pendingLanes;if(h===0)return 0;var b=0,M=n.suspendedLanes,fe=n.pingedLanes;n=n.warmLanes;var Se=h&134217727;return Se!==0?(h=Se&~M,h!==0?b=Je(h):(fe&=Se,fe!==0?b=Je(fe):l||(l=Se&~n,l!==0&&(b=Je(l))))):(Se=h&~M,Se!==0?b=Je(Se):fe!==0?b=Je(fe):l||(l=h&~n,l!==0&&(b=Je(l)))),b===0?0:s!==0&&s!==b&&(s&M)===0&&(M=b&-b,l=s&-s,M>=l||M===32&&(l&4194048)!==0)?s:b}function st(n,s){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&s)===0}function Ne(n,s){switch(n){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 ut(){var n=Ge;return Ge<<=1,(Ge&4194048)===0&&(Ge=256),n}function lt(){var n=qe;return qe<<=1,(qe&62914560)===0&&(qe=4194304),n}function Fe(n){for(var s=[],l=0;31>l;l++)s.push(n);return s}function ft(n,s){n.pendingLanes|=s,s!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function ot(n,s,l,h,b,M){var fe=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var Se=n.entanglements,Oe=n.expirationTimes,Ie=n.hiddenUpdates;for(l=fe&~l;0<l;){var at=31-Ae(l),dt=1<<at;Se[at]=0,Oe[at]=-1;var Xe=Ie[at];if(Xe!==null)for(Ie[at]=null,at=0;at<Xe.length;at++){var Qe=Xe[at];Qe!==null&&(Qe.lane&=-536870913)}l&=~dt}h!==0&&Ot(n,h,0),M!==0&&b===0&&n.tag!==0&&(n.suspendedLanes|=M&~(fe&~s))}function Ot(n,s,l){n.pendingLanes|=s,n.suspendedLanes&=~s;var h=31-Ae(s);n.entangledLanes|=s,n.entanglements[h]=n.entanglements[h]|1073741824|l&4194090}function Bt(n,s){var l=n.entangledLanes|=s;for(n=n.entanglements;l;){var h=31-Ae(l),b=1<<h;b&s|n[h]&s&&(n[h]|=s),l&=~b}}function Vt(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function It(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function _t(){var n=L.p;return n!==0?n:(n=window.event,n===void 0?32:y0(n.type))}function mt(n,s){var l=L.p;try{return L.p=n,s()}finally{L.p=l}}var ht=Math.random().toString(36).slice(2),bt="__reactFiber$"+ht,St="__reactProps$"+ht,Et="__reactContainer$"+ht,Dt="__reactEvents$"+ht,Mt="__reactListeners$"+ht,Ft="__reactHandles$"+ht,kn="__reactResources$"+ht,yt="__reactMarker$"+ht;function Pt(n){delete n[bt],delete n[St],delete n[Dt],delete n[Mt],delete n[Ft]}function At(n){var s=n[bt];if(s)return s;for(var l=n.parentNode;l;){if(s=l[Et]||l[bt]){if(l=s.alternate,s.child!==null||l!==null&&l.child!==null)for(n=ca(n);n!==null;){if(l=n[bt])return l;n=ca(n)}return s}n=l,l=n.parentNode}return null}function Ct(n){if(n=n[bt]||n[Et]){var s=n.tag;if(s===5||s===6||s===13||s===26||s===27||s===3)return n}return null}function pt(n){var s=n.tag;if(s===5||s===26||s===27||s===6)return n.stateNode;throw Error(c(33))}function vt(n){var s=n[kn];return s||(s=n[kn]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function wt(n){n[yt]=!0}var vn=new Set,an={};function Ut(n,s){Rt(n,s),Rt(n+"Capture",s)}function Rt(n,s){for(an[n]=s,n=0;n<s.length;n++)vn.add(s[n])}var Qt=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]*$"),sn={},Tn={};function un(n){return D.call(Tn,n)?!0:D.call(sn,n)?!1:Qt.test(n)?Tn[n]=!0:(sn[n]=!0,!1)}function mn(n,s,l){if(un(s))if(l===null)n.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":n.removeAttribute(s);return;case"boolean":var h=s.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){n.removeAttribute(s);return}}n.setAttribute(s,""+l)}}function Wt(n,s,l){if(l===null)n.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttribute(s,""+l)}}function Ht(n,s,l,h){if(h===null)n.removeAttribute(l);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(l);return}n.setAttributeNS(s,l,""+h)}}var $n,ai;function si(n){if($n===void 0)try{throw Error()}catch(l){var s=l.stack.trim().match(/\n( *(at )?)/);$n=s&&s[1]||"",ai=-1<l.stack.indexOf(`
|
|
544
544
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
545
545
|
`+$n+n+ai}var yn=!1;function Fn(n,s){if(!n||yn)return"";yn=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(s){var dt=function(){throw Error()};if(Object.defineProperty(dt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(dt,[])}catch(Qe){var Xe=Qe}Reflect.construct(n,[],dt)}else{try{dt.call()}catch(Qe){Xe=Qe}n.call(dt.prototype)}}else{try{throw Error()}catch(Qe){Xe=Qe}(dt=n())&&typeof dt.catch=="function"&&dt.catch(function(){})}}catch(Qe){if(Qe&&Xe&&typeof Qe.stack=="string")return[Qe.stack,Xe.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var M=h.DetermineComponentFrameRoot(),fe=M[0],Se=M[1];if(fe&&Se){var Oe=fe.split(`
|
|
546
546
|
`),Ie=Se.split(`
|
|
547
547
|
`);for(b=h=0;h<Oe.length&&!Oe[h].includes("DetermineComponentFrameRoot");)h++;for(;b<Ie.length&&!Ie[b].includes("DetermineComponentFrameRoot");)b++;if(h===Oe.length||b===Ie.length)for(h=Oe.length-1,b=Ie.length-1;1<=h&&0<=b&&Oe[h]!==Ie[b];)b--;for(;1<=h&&0<=b;h--,b--)if(Oe[h]!==Ie[b]){if(h!==1||b!==1)do if(h--,b--,0>b||Oe[h]!==Ie[b]){var at=`
|
|
548
548
|
`+Oe[h].replace(" at new "," at ");return n.displayName&&at.includes("<anonymous>")&&(at=at.replace("<anonymous>",n.displayName)),at}while(1<=h&&0<=b);break}}}finally{yn=!1,Error.prepareStackTrace=l}return(l=n?n.displayName||n.name:"")?si(l):""}function Pi(n){switch(n.tag){case 26:case 27:case 5:return si(n.type);case 16:return si("Lazy");case 13:return si("Suspense");case 19:return si("SuspenseList");case 0:case 15:return Fn(n.type,!1);case 11:return Fn(n.type.render,!1);case 1:return Fn(n.type,!0);case 31:return si("Activity");default:return""}}function ns(n){try{var s="";do s+=Pi(n),n=n.return;while(n);return s}catch(l){return`
|
|
549
549
|
Error generating stack: `+l.message+`
|
|
550
|
-
`+l.stack}}function mi(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function is(n){var s=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function vs(n){var s=is(n)?"checked":"value",l=Object.getOwnPropertyDescriptor(n.constructor.prototype,s),h=""+n[s];if(!n.hasOwnProperty(s)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var b=l.get,M=l.set;return Object.defineProperty(n,s,{configurable:!0,get:function(){return b.call(this)},set:function(fe){h=""+fe,M.call(this,fe)}}),Object.defineProperty(n,s,{enumerable:l.enumerable}),{getValue:function(){return h},setValue:function(fe){h=""+fe},stopTracking:function(){n._valueTracker=null,delete n[s]}}}}function yi(n){n._valueTracker||(n._valueTracker=vs(n))}function Ti(n){if(!n)return!1;var s=n._valueTracker;if(!s)return!0;var l=s.getValue(),h="";return n&&(h=is(n)?n.checked?"true":"false":n.value),n=h,n!==l?(s.setValue(n),!0):!1}function xs(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Od=/[\n"\\]/g;function La(n){return n.replace(Od,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Af(n,s,l,h,b,M,fe,Se){n.name="",fe!=null&&typeof fe!="function"&&typeof fe!="symbol"&&typeof fe!="boolean"?n.type=fe:n.removeAttribute("type"),s!=null?fe==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+mi(s)):n.value!==""+mi(s)&&(n.value=""+mi(s)):fe!=="submit"&&fe!=="reset"||n.removeAttribute("value"),s!=null?jd(n,fe,mi(s)):l!=null?jd(n,fe,mi(l)):h!=null&&n.removeAttribute("value"),b==null&&M!=null&&(n.defaultChecked=!!M),b!=null&&(n.checked=b&&typeof b!="function"&&typeof b!="symbol"),Se!=null&&typeof Se!="function"&&typeof Se!="symbol"&&typeof Se!="boolean"?n.name=""+mi(Se):n.removeAttribute("name")}function Ef(n,s,l,h,b,M,fe,Se){if(M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(n.type=M),s!=null||l!=null){if(!(M!=="submit"&&M!=="reset"||s!=null))return;l=l!=null?""+mi(l):"",s=s!=null?""+mi(s):l,Se||s===n.value||(n.value=s),n.defaultValue=s}h=h??b,h=typeof h!="function"&&typeof h!="symbol"&&!!h,n.checked=Se?n.checked:!!h,n.defaultChecked=!!h,fe!=null&&typeof fe!="function"&&typeof fe!="symbol"&&typeof fe!="boolean"&&(n.name=fe)}function jd(n,s,l){s==="number"&&xs(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function Hl(n,s,l,h){if(n=n.options,s){s={};for(var b=0;b<l.length;b++)s["$"+l[b]]=!0;for(l=0;l<n.length;l++)b=s.hasOwnProperty("$"+n[l].value),n[l].selected!==b&&(n[l].selected=b),b&&h&&(n[l].defaultSelected=!0)}else{for(l=""+mi(l),s=null,b=0;b<n.length;b++){if(n[b].value===l){n[b].selected=!0,h&&(n[b].defaultSelected=!0);return}s!==null||n[b].disabled||(s=n[b])}s!==null&&(s.selected=!0)}}function bm(n,s,l){if(s!=null&&(s=""+mi(s),s!==n.value&&(n.value=s),l==null)){n.defaultValue!==s&&(n.defaultValue=s);return}n.defaultValue=l!=null?""+mi(l):""}function vm(n,s,l,h){if(s==null){if(h!=null){if(l!=null)throw Error(c(92));if(_(h)){if(1<h.length)throw Error(c(93));h=h[0]}l=h}l==null&&(l=""),s=l}l=mi(s),n.defaultValue=l,h=n.textContent,h===l&&h!==""&&h!==null&&(n.value=h)}function Wc(n,s){if(s){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===3){l.nodeValue=s;return}}n.textContent=s}var u1=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 Df(n,s,l){var h=s.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?h?n.setProperty(s,""):s==="float"?n.cssFloat="":n[s]="":h?n.setProperty(s,l):typeof l!="number"||l===0||u1.has(s)?s==="float"?n.cssFloat=l:n[s]=(""+l).trim():n[s]=l+"px"}function Ld(n,s,l){if(s!=null&&typeof s!="object")throw Error(c(62));if(n=n.style,l!=null){for(var h in l)!l.hasOwnProperty(h)||s!=null&&s.hasOwnProperty(h)||(h.indexOf("--")===0?n.setProperty(h,""):h==="float"?n.cssFloat="":n[h]="");for(var b in s)h=s[b],s.hasOwnProperty(b)&&l[b]!==h&&Df(n,b,h)}else for(var M in s)s.hasOwnProperty(M)&&Df(n,M,s[M])}function $l(n){if(n.indexOf("-")===-1)return!1;switch(n){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 Ix=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"]]),d1=/^[\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 Rd(n){return d1.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var Gl=null;function Of(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Jc=null,Kc=null;function h1(n){var s=Ct(n);if(s&&(n=s.stateNode)){var l=n[St]||null;e:switch(n=s.stateNode,s.type){case"input":if(Af(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),s=l.name,l.type==="radio"&&s!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+La(""+s)+'"][type="radio"]'),s=0;s<l.length;s++){var h=l[s];if(h!==n&&h.form===n.form){var b=h[St]||null;if(!b)throw Error(c(90));Af(h,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(s=0;s<l.length;s++)h=l[s],h.form===n.form&&Ti(h)}break e;case"textarea":bm(n,l.value,l.defaultValue);break e;case"select":s=l.value,s!=null&&Hl(n,!!l.multiple,s,!1)}}}var xm=!1;function eu(n,s,l){if(xm)return n(s,l);xm=!0;try{var h=n(s);return h}finally{if(xm=!1,(Jc!==null||Kc!==null)&&(vc(),Jc&&(s=Jc,n=Kc,Kc=Jc=null,h1(s),n)))for(s=0;s<n.length;s++)h1(n[s])}}function Pl(n,s){var l=n.stateNode;if(l===null)return null;var h=l[St]||null;if(h===null)return null;l=h[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(n=n.type,h=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!h;break e;default:n=!1}if(n)return null;if(l&&typeof l!="function")throw Error(c(231,s,typeof l));return l}var fo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jf=!1;if(fo)try{var or={};Object.defineProperty(or,"passive",{get:function(){jf=!0}}),window.addEventListener("test",or,or),window.removeEventListener("test",or,or)}catch{jf=!1}var rr=null,tu=null,Vl=null;function _m(){if(Vl)return Vl;var n,s=tu,l=s.length,h,b="value"in rr?rr.value:rr.textContent,M=b.length;for(n=0;n<l&&s[n]===b[n];n++);var fe=l-n;for(h=1;h<=fe&&s[l-h]===b[M-h];h++);return Vl=b.slice(n,1<h?1-h:void 0)}function ia(n){var s=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&s===13&&(n=13)):n=s,n===10&&(n=13),32<=n||n===13?n:0}function Lf(){return!0}function Rf(){return!1}function wa(n){function s(l,h,b,M,fe){this._reactName=l,this._targetInst=b,this.type=h,this.nativeEvent=M,this.target=fe,this.currentTarget=null;for(var Se in n)n.hasOwnProperty(Se)&&(l=n[Se],this[Se]=l?l(M):M[Se]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?Lf:Rf,this.isPropagationStopped=Rf,this}return j(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Lf)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Lf)},persist:function(){},isPersistent:Lf}),s}var Pr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nf=wa(Pr),Nd=j({},Pr,{view:0,detail:0}),f1=wa(Nd),Sm,zf,zd,Il=j({},Nd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lr,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==zd&&(zd&&n.type==="mousemove"?(Sm=n.screenX-zd.screenX,zf=n.screenY-zd.screenY):zf=Sm=0,zd=n),Sm)},movementY:function(n){return"movementY"in n?n.movementY:zf}}),Cm=wa(Il),p1=j({},Il,{dataTransfer:0}),g1=wa(p1),qx=j({},Nd,{relatedTarget:0}),wm=wa(qx),Yx=j({},Pr,{animationName:0,elapsedTime:0,pseudoElement:0}),Fx=wa(Yx),Xx=j({},Pr,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Bd=wa(Xx),m1=j({},Pr,{data:0}),km=wa(m1),y1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},b1={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"},Tm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function v1(n){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(n):(n=Tm[n])?!!s[n]:!1}function lr(){return v1}var ql=j({},Nd,{key:function(n){if(n.key){var s=y1[n.key]||n.key;if(s!=="Unidentified")return s}return n.type==="keypress"?(n=ia(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?b1[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lr,charCode:function(n){return n.type==="keypress"?ia(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?ia(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),Vs=wa(ql),as=j({},Il,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ud=wa(as),Bf=j({},Nd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lr}),Mm=wa(Bf),Ra=j({},Pr,{propertyName:0,elapsedTime:0,pseudoElement:0}),x1=wa(Ra),Uf=j({},Il,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),Yl=wa(Uf),Am=j({},Pr,{newState:0,oldState:0}),_1=wa(Am),S1=[9,13,27,32],Hd=fo&&"CompositionEvent"in window,$d=null;fo&&"documentMode"in document&&($d=document.documentMode);var Em=fo&&"TextEvent"in window&&!$d,po=fo&&(!Hd||$d&&8<$d&&11>=$d),Dm=" ",Hf=!1;function Gd(n,s){switch(n){case"keyup":return S1.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vr(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Ir=!1;function Om(n,s){switch(n){case"compositionend":return Vr(s);case"keypress":return s.which!==32?null:(Hf=!0,Dm);case"textInput":return n=s.data,n===Dm&&Hf?null:n;default:return null}}function Fl(n,s){if(Ir)return n==="compositionend"||!Hd&&Gd(n,s)?(n=_m(),Vl=tu=rr=null,Ir=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return po&&s.locale!=="ko"?null:s.data;default:return null}}var C1={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 $f(n){var s=n&&n.nodeName&&n.nodeName.toLowerCase();return s==="input"?!!C1[n.type]:s==="textarea"}function Gf(n,s,l,h){Jc?Kc?Kc.push(h):Kc=[h]:Jc=h,s=Uu(s,"onChange"),0<s.length&&(l=new Nf("onChange","change",null,l,h),n.push({event:l,listeners:s}))}var Is=null,qs=null;function jm(n){Cc(n,0)}function go(n){var s=pt(n);if(Ti(s))return n}function Lm(n,s){if(n==="change")return s}var Rm=!1;if(fo){var Xl;if(fo){var Zl="oninput"in document;if(!Zl){var Nm=document.createElement("div");Nm.setAttribute("oninput","return;"),Zl=typeof Nm.oninput=="function"}Xl=Zl}else Xl=!1;Rm=Xl&&(!document.documentMode||9<document.documentMode)}function nu(){Is&&(Is.detachEvent("onpropertychange",zm),qs=Is=null)}function zm(n){if(n.propertyName==="value"&&go(qs)){var s=[];Gf(s,qs,n,Of(n)),eu(jm,s)}}function Pf(n,s,l){n==="focusin"?(nu(),Is=s,qs=l,Is.attachEvent("onpropertychange",zm)):n==="focusout"&&nu()}function qr(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return go(qs)}function cr(n,s){if(n==="click")return go(s)}function Bm(n,s){if(n==="input"||n==="change")return go(s)}function Um(n,s){return n===s&&(n!==0||1/n===1/s)||n!==n&&s!==s}var aa=typeof Object.is=="function"?Object.is:Um;function Yr(n,s){if(aa(n,s))return!0;if(typeof n!="object"||n===null||typeof s!="object"||s===null)return!1;var l=Object.keys(n),h=Object.keys(s);if(l.length!==h.length)return!1;for(h=0;h<l.length;h++){var b=l[h];if(!D.call(s,b)||!aa(n[b],s[b]))return!1}return!0}function Fr(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function hi(n,s){var l=Fr(n);n=0;for(var h;l;){if(l.nodeType===3){if(h=n+l.textContent.length,n<=s&&h>=s)return{node:l,offset:s-n};n=h}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Fr(l)}}function Pd(n,s){return n&&s?n===s?!0:n&&n.nodeType===3?!1:s&&s.nodeType===3?Pd(n,s.parentNode):"contains"in n?n.contains(s):n.compareDocumentPosition?!!(n.compareDocumentPosition(s)&16):!1:!1}function Hm(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var s=xs(n.document);s instanceof n.HTMLIFrameElement;){try{var l=typeof s.contentWindow.location.href=="string"}catch{l=!1}if(l)n=s.contentWindow;else break;s=xs(n.document)}return s}function Vd(n){var s=n&&n.nodeName&&n.nodeName.toLowerCase();return s&&(s==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||s==="textarea"||n.contentEditable==="true")}var Ql=fo&&"documentMode"in document&&11>=document.documentMode,mo=null,Ys=null,Xr=null,Wl=!1;function Vf(n,s,l){var h=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wl||mo==null||mo!==xs(h)||(h=mo,"selectionStart"in h&&Vd(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Xr&&Yr(Xr,h)||(Xr=h,h=Uu(Ys,"onSelect"),0<h.length&&(s=new Nf("onSelect","select",null,s,l),n.push({event:s,listeners:h}),s.target=mo)))}function ur(n,s){var l={};return l[n.toLowerCase()]=s.toLowerCase(),l["Webkit"+n]="webkit"+s,l["Moz"+n]="moz"+s,l}var Jl={animationend:ur("Animation","AnimationEnd"),animationiteration:ur("Animation","AnimationIteration"),animationstart:ur("Animation","AnimationStart"),transitionrun:ur("Transition","TransitionRun"),transitionstart:ur("Transition","TransitionStart"),transitioncancel:ur("Transition","TransitionCancel"),transitionend:ur("Transition","TransitionEnd")},_s={},Fs={};fo&&(Fs=document.createElement("div").style,"AnimationEvent"in window||(delete Jl.animationend.animation,delete Jl.animationiteration.animation,delete Jl.animationstart.animation),"TransitionEvent"in window||delete Jl.transitionend.transition);function yo(n){if(_s[n])return _s[n];if(!Jl[n])return n;var s=Jl[n],l;for(l in s)if(s.hasOwnProperty(l)&&l in Fs)return _s[n]=s[l];return n}var w1=yo("animationend"),$m=yo("animationiteration"),k1=yo("animationstart"),Gm=yo("transitionrun"),If=yo("transitionstart"),T1=yo("transitioncancel"),Pm=yo("transitionend"),Vm=new Map,iu="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(" ");iu.push("scrollEnd");function Ss(n,s){Vm.set(n,s),Ut(s,[n])}var Im=new WeakMap;function ss(n,s){if(typeof n=="object"&&n!==null){var l=Im.get(n);return l!==void 0?l:(s={value:n,source:s,stack:ns(s)},Im.set(n,s),s)}return{value:n,source:s,stack:ns(s)}}var Na=[],Zr=0,bo=0;function Xs(){for(var n=Zr,s=bo=Zr=0;s<n;){var l=Na[s];Na[s++]=null;var h=Na[s];Na[s++]=null;var b=Na[s];Na[s++]=null;var M=Na[s];if(Na[s++]=null,h!==null&&b!==null){var fe=h.pending;fe===null?b.next=b:(b.next=fe.next,fe.next=b),h.pending=b}M!==0&&su(l,b,M)}}function Qr(n,s,l,h){Na[Zr++]=n,Na[Zr++]=s,Na[Zr++]=l,Na[Zr++]=h,bo|=h,n.lanes|=h,n=n.alternate,n!==null&&(n.lanes|=h)}function au(n,s,l,h){return Qr(n,s,l,h),Id(n)}function vo(n,s){return Qr(n,null,null,s),Id(n)}function su(n,s,l){n.lanes|=l;var h=n.alternate;h!==null&&(h.lanes|=l);for(var b=!1,M=n.return;M!==null;)M.childLanes|=l,h=M.alternate,h!==null&&(h.childLanes|=l),M.tag===22&&(n=M.stateNode,n===null||n._visibility&1||(b=!0)),n=M,M=M.return;return n.tag===3?(M=n.stateNode,b&&s!==null&&(b=31-Ae(l),n=M.hiddenUpdates,h=n[b],h===null?n[b]=[s]:h.push(s),s.lane=l|536870912),M):null}function Id(n){if(50<ju)throw ju=0,Iy=null,Error(c(185));for(var s=n.return;s!==null;)n=s,s=n.return;return n.tag===3?n.stateNode:null}var ou={};function M1(n,s,l,h){this.tag=n,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function za(n,s,l,h){return new M1(n,s,l,h)}function qd(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Zs(n,s){var l=n.alternate;return l===null?(l=za(n.tag,s,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=s,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&65011712,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,s=n.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l.refCleanup=n.refCleanup,l}function _n(n,s){n.flags&=65011714;var l=n.alternate;return l===null?(n.childLanes=0,n.lanes=s,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=l.childLanes,n.lanes=l.lanes,n.child=l.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=l.memoizedProps,n.memoizedState=l.memoizedState,n.updateQueue=l.updateQueue,n.type=l.type,s=l.dependencies,n.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),n}function xt(n,s,l,h,b,M){var fe=0;if(h=n,typeof n=="function")qd(n)&&(fe=1);else if(typeof n=="string")fe=rv(n,l,C.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case oe:return n=za(31,l,s,b),n.elementType=oe,n.lanes=M,n;case O:return Cs(l.children,b,M,s);case V:fe=8,b|=24;break;case ae:return n=za(12,l,s,b|2),n.elementType=ae,n.lanes=M,n;case Q:return n=za(13,l,s,b),n.elementType=Q,n.lanes=M,n;case $:return n=za(19,l,s,b),n.elementType=$,n.lanes=M,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case ie:case P:fe=10;break e;case U:fe=9;break e;case X:fe=11;break e;case I:fe=14;break e;case he:fe=16,h=null;break e}fe=29,l=Error(c(130,n===null?"null":typeof n,"")),h=null}return s=za(fe,l,s,b),s.elementType=n,s.type=h,s.lanes=M,s}function Cs(n,s,l,h){return n=za(7,n,h,s),n.lanes=l,n}function ru(n,s,l){return n=za(6,n,null,s),n.lanes=l,n}function Si(n,s,l){return s=za(4,n.children!==null?n.children:[],n.key,s),s.lanes=l,s.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},s}var Wr=[],Jr=0,Yd=null,lu=0,ws=[],Ba=0,dr=null,Qs=1,Mi="";function Ln(n,s){Wr[Jr++]=lu,Wr[Jr++]=Yd,Yd=n,lu=s}function qf(n,s,l){ws[Ba++]=Qs,ws[Ba++]=Mi,ws[Ba++]=dr,dr=n;var h=Qs;n=Mi;var b=32-Ae(h)-1;h&=~(1<<b),l+=1;var M=32-Ae(s)+b;if(30<M){var fe=b-b%5;M=(h&(1<<fe)-1).toString(32),h>>=fe,b-=fe,Qs=1<<32-Ae(s)+b|l<<b|h,Mi=M+n}else Qs=1<<M|l<<b|h,Mi=n}function Kl(n){n.return!==null&&(Ln(n,1),qf(n,1,0))}function xo(n){for(;n===Yd;)Yd=Wr[--Jr],Wr[Jr]=null,lu=Wr[--Jr],Wr[Jr]=null;for(;n===dr;)dr=ws[--Ba],ws[Ba]=null,Mi=ws[--Ba],ws[Ba]=null,Qs=ws[--Ba],ws[Ba]=null}var Ni=null,Gn=null,Bn=!1,ks=null,Ts=!1,ec=Error(c(519));function hr(n){var s=Error(c(418,""));throw du(ss(s,n)),ec}function Fd(n){var s=n.stateNode,l=n.type,h=n.memoizedProps;switch(s[bt]=n,s[St]=h,l){case"dialog":hn("cancel",s),hn("close",s);break;case"iframe":case"object":case"embed":hn("load",s);break;case"video":case"audio":for(l=0;l<jh.length;l++)hn(jh[l],s);break;case"source":hn("error",s);break;case"img":case"image":case"link":hn("error",s),hn("load",s);break;case"details":hn("toggle",s);break;case"input":hn("invalid",s),Ef(s,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),yi(s);break;case"select":hn("invalid",s);break;case"textarea":hn("invalid",s),vm(s,h.value,h.defaultValue,h.children),yi(s)}l=h.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||s.textContent===""+l||h.suppressHydrationWarning===!0||a0(s.textContent,l)?(h.popover!=null&&(hn("beforetoggle",s),hn("toggle",s)),h.onScroll!=null&&hn("scroll",s),h.onScrollEnd!=null&&hn("scrollend",s),h.onClick!=null&&(s.onclick=tg),s=!0):s=!1,s||hr(n)}function qm(n){for(Ni=n.return;Ni;)switch(Ni.tag){case 5:case 13:Ts=!1;return;case 27:case 3:Ts=!0;return;default:Ni=Ni.return}}function cu(n){if(n!==Ni)return!1;if(!Bn)return qm(n),Bn=!0,!1;var s=n.tag,l;if((l=s!==3&&s!==27)&&((l=s===5)&&(l=n.type,l=!(l!=="form"&&l!=="button")||$o(n.type,n.memoizedProps)),l=!l),l&&Gn&&hr(n),qm(n),s===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(c(317));e:{for(n=n.nextSibling,s=0;n;){if(n.nodeType===8)if(l=n.data,l==="/$"){if(s===0){Gn=no(n.nextSibling);break e}s--}else l!=="$"&&l!=="$!"&&l!=="$?"||s++;n=n.nextSibling}Gn=null}}else s===27?(s=Gn,ml(n.type)?(n=yl,yl=null,Gn=n):Gn=s):Gn=Ni?no(n.stateNode.nextSibling):null;return!0}function uu(){Gn=Ni=null,Bn=!1}function Ym(){var n=ks;return n!==null&&(Va===null?Va=n:Va.push.apply(Va,n),ks=null),n}function du(n){ks===null?ks=[n]:ks.push(n)}var Xd=ue(null),fr=null,Ws=null;function pr(n,s,l){g(Xd,s._currentValue),s._currentValue=l}function _o(n){n._currentValue=Xd.current,ye(Xd)}function Yf(n,s,l){for(;n!==null;){var h=n.alternate;if((n.childLanes&s)!==s?(n.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),n===l)break;n=n.return}}function Fm(n,s,l,h){var b=n.child;for(b!==null&&(b.return=n);b!==null;){var M=b.dependencies;if(M!==null){var fe=b.child;M=M.firstContext;e:for(;M!==null;){var Se=M;M=b;for(var Oe=0;Oe<s.length;Oe++)if(Se.context===s[Oe]){M.lanes|=l,Se=M.alternate,Se!==null&&(Se.lanes|=l),Yf(M.return,l,n),h||(fe=null);break e}M=Se.next}}else if(b.tag===18){if(fe=b.return,fe===null)throw Error(c(341));fe.lanes|=l,M=fe.alternate,M!==null&&(M.lanes|=l),Yf(fe,l,n),fe=null}else fe=b.child;if(fe!==null)fe.return=b;else for(fe=b;fe!==null;){if(fe===n){fe=null;break}if(b=fe.sibling,b!==null){b.return=fe.return,fe=b;break}fe=fe.return}b=fe}}function hu(n,s,l,h){n=null;for(var b=s,M=!1;b!==null;){if(!M){if((b.flags&524288)!==0)M=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var fe=b.alternate;if(fe===null)throw Error(c(387));if(fe=fe.memoizedProps,fe!==null){var Se=b.type;aa(b.pendingProps.value,fe.value)||(n!==null?n.push(Se):n=[Se])}}else if(b===q.current){if(fe=b.alternate,fe===null)throw Error(c(387));fe.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(n!==null?n.push(Fa):n=[Fa])}b=b.return}n!==null&&Fm(s,n,l,h),s.flags|=262144}function Zd(n){for(n=n.firstContext;n!==null;){if(!aa(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Kr(n){fr=n,Ws=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Zi(n){return Xm(fr,n)}function Qd(n,s){return fr===null&&Kr(n),Xm(n,s)}function Xm(n,s){var l=s._currentValue;if(s={context:s,memoizedValue:l,next:null},Ws===null){if(n===null)throw Error(c(308));Ws=s,n.dependencies={lanes:0,firstContext:s},n.flags|=524288}else Ws=Ws.next=s;return l}var fu=typeof AbortController<"u"?AbortController:function(){var n=[],s=this.signal={aborted:!1,addEventListener:function(l,h){n.push(h)}};this.abort=function(){s.aborted=!0,n.forEach(function(l){return l()})}},Ff=o.unstable_scheduleCallback,A1=o.unstable_NormalPriority,Vi={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pu(){return{controller:new fu,data:new Map,refCount:0}}function So(n){n.refCount--,n.refCount===0&&Ff(A1,function(){n.controller.abort()})}var el=null,Wd=0,Ms=0,Ii=null;function Xf(n,s){if(el===null){var l=el=[];Wd=0,Ms=Sc(),Ii={status:"pending",value:void 0,then:function(h){l.push(h)}}}return Wd++,s.then(Zf,Zf),s}function Zf(){if(--Wd===0&&el!==null){Ii!==null&&(Ii.status="fulfilled");var n=el;el=null,Ms=0,Ii=null;for(var s=0;s<n.length;s++)(0,n[s])()}}function E1(n,s){var l=[],h={status:"pending",value:null,reason:null,then:function(b){l.push(b)}};return n.then(function(){h.status="fulfilled",h.value=s;for(var b=0;b<l.length;b++)(0,l[b])(s)},function(b){for(h.status="rejected",h.reason=b,b=0;b<l.length;b++)(0,l[b])(void 0)}),h}var Qf=A.S;A.S=function(n,s){typeof s=="object"&&s!==null&&typeof s.then=="function"&&Xf(n,s),Qf!==null&&Qf(n,s)};var Co=ue(null);function Jd(){var n=Co.current;return n!==null?n:oi.pooledCache}function tc(n,s){s===null?g(Co,Co.current):g(Co,s.pool)}function Wf(){var n=Jd();return n===null?null:{parent:Vi._currentValue,pool:n}}var tl=Error(c(460)),Jf=Error(c(474)),Kd=Error(c(542)),Kf={then:function(){}};function ep(n){return n=n.status,n==="fulfilled"||n==="rejected"}function eh(){}function Zm(n,s,l){switch(l=n[l],l===void 0?n.push(s):l!==s&&(s.then(eh,eh),s=l),s.status){case"fulfilled":return s.value;case"rejected":throw n=s.reason,Wm(n),n;default:if(typeof s.status=="string")s.then(eh,eh);else{if(n=oi,n!==null&&100<n.shellSuspendCounter)throw Error(c(482));n=s,n.status="pending",n.then(function(h){if(s.status==="pending"){var b=s;b.status="fulfilled",b.value=h}},function(h){if(s.status==="pending"){var b=s;b.status="rejected",b.reason=h}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw n=s.reason,Wm(n),n}throw nc=s,tl}}var nc=null;function Qm(){if(nc===null)throw Error(c(459));var n=nc;return nc=null,n}function Wm(n){if(n===tl||n===Kd)throw Error(c(483))}var wo=!1;function tp(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function np(n,s){n=n.updateQueue,s.updateQueue===n&&(s.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Ua(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function ko(n,s,l){var h=n.updateQueue;if(h===null)return null;if(h=h.shared,(Zn&2)!==0){var b=h.pending;return b===null?s.next=s:(s.next=b.next,b.next=s),h.pending=s,s=Id(n),su(n,null,l),s}return Qr(n,h,s,l),Id(n)}function ic(n,s,l){if(s=s.updateQueue,s!==null&&(s=s.shared,(l&4194048)!==0)){var h=s.lanes;h&=n.pendingLanes,l|=h,s.lanes=l,Bt(n,l)}}function Jm(n,s){var l=n.updateQueue,h=n.alternate;if(h!==null&&(h=h.updateQueue,l===h)){var b=null,M=null;if(l=l.firstBaseUpdate,l!==null){do{var fe={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};M===null?b=M=fe:M=M.next=fe,l=l.next}while(l!==null);M===null?b=M=s:M=M.next=s}else b=M=s;l={baseState:h.baseState,firstBaseUpdate:b,lastBaseUpdate:M,shared:h.shared,callbacks:h.callbacks},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=s:n.next=s,l.lastBaseUpdate=s}var Km=!1;function gu(){if(Km){var n=Ii;if(n!==null)throw n}}function gr(n,s,l,h){Km=!1;var b=n.updateQueue;wo=!1;var M=b.firstBaseUpdate,fe=b.lastBaseUpdate,Se=b.shared.pending;if(Se!==null){b.shared.pending=null;var Oe=Se,Ie=Oe.next;Oe.next=null,fe===null?M=Ie:fe.next=Ie,fe=Oe;var at=n.alternate;at!==null&&(at=at.updateQueue,Se=at.lastBaseUpdate,Se!==fe&&(Se===null?at.firstBaseUpdate=Ie:Se.next=Ie,at.lastBaseUpdate=Oe))}if(M!==null){var dt=b.baseState;fe=0,at=Ie=Oe=null,Se=M;do{var Xe=Se.lane&-536870913,Qe=Xe!==Se.lane;if(Qe?(An&Xe)===Xe:(h&Xe)===Xe){Xe!==0&&Xe===Ms&&(Km=!0),at!==null&&(at=at.next={lane:0,tag:Se.tag,payload:Se.payload,callback:null,next:null});e:{var Xt=n,Zt=Se;Xe=s;var Vn=l;switch(Zt.tag){case 1:if(Xt=Zt.payload,typeof Xt=="function"){dt=Xt.call(Vn,dt,Xe);break e}dt=Xt;break e;case 3:Xt.flags=Xt.flags&-65537|128;case 0:if(Xt=Zt.payload,Xe=typeof Xt=="function"?Xt.call(Vn,dt,Xe):Xt,Xe==null)break e;dt=j({},dt,Xe);break e;case 2:wo=!0}}Xe=Se.callback,Xe!==null&&(n.flags|=64,Qe&&(n.flags|=8192),Qe=b.callbacks,Qe===null?b.callbacks=[Xe]:Qe.push(Xe))}else Qe={lane:Xe,tag:Se.tag,payload:Se.payload,callback:Se.callback,next:null},at===null?(Ie=at=Qe,Oe=dt):at=at.next=Qe,fe|=Xe;if(Se=Se.next,Se===null){if(Se=b.shared.pending,Se===null)break;Qe=Se,Se=Qe.next,Qe.next=null,b.lastBaseUpdate=Qe,b.shared.pending=null}}while(!0);at===null&&(Oe=dt),b.baseState=Oe,b.firstBaseUpdate=Ie,b.lastBaseUpdate=at,M===null&&(b.shared.lanes=0),Sr|=fe,n.lanes=fe,n.memoizedState=dt}}function ip(n,s){if(typeof n!="function")throw Error(c(191,n));n.call(s)}function th(n,s){var l=n.callbacks;if(l!==null)for(n.callbacks=null,n=0;n<l.length;n++)ip(l[n],s)}var ac=ue(null),nh=ue(0);function Qi(n,s){n=_r,g(nh,n),g(ac,s),_r=n|s.baseLanes}function mu(){g(nh,_r),g(ac,ac.current)}function yu(){_r=nh.current,ye(ac),ye(nh)}var As=0,dn=null,Xn=null,Ci=null,ih=!1,os=!1,nl=!1,Js=0,rs=0,mr=null,ey=0;function wi(){throw Error(c(321))}function ap(n,s){if(s===null)return!1;for(var l=0;l<s.length&&l<n.length;l++)if(!aa(n[l],s[l]))return!1;return!0}function sp(n,s,l,h,b,M){return As=M,dn=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,A.H=n===null||n.memoizedState===null?gy:my,nl=!1,M=l(h,b),nl=!1,os&&(M=ty(s,l,h,b)),il(n),M}function il(n){A.H=Sp;var s=Xn!==null&&Xn.next!==null;if(As=0,Ci=Xn=dn=null,ih=!1,rs=0,mr=null,s)throw Error(c(300));n===null||qi||(n=n.dependencies,n!==null&&Zd(n)&&(qi=!0))}function ty(n,s,l,h){dn=n;var b=0;do{if(os&&(mr=null),rs=0,os=!1,25<=b)throw Error(c(301));if(b+=1,Ci=Xn=null,n.updateQueue!=null){var M=n.updateQueue;M.lastEffect=null,M.events=null,M.stores=null,M.memoCache!=null&&(M.memoCache.index=0)}A.H=yr,M=s(l,h)}while(os);return M}function D1(){var n=A.H,s=n.useState()[0];return s=typeof s.then=="function"?sh(s):s,n=n.useState()[0],(Xn!==null?Xn.memoizedState:null)!==n&&(dn.flags|=1024),s}function op(){var n=Js!==0;return Js=0,n}function bu(n,s,l){s.updateQueue=n.updateQueue,s.flags&=-2053,n.lanes&=~l}function rp(n){if(ih){for(n=n.memoizedState;n!==null;){var s=n.queue;s!==null&&(s.pending=null),n=n.next}ih=!1}As=0,Ci=Xn=dn=null,os=!1,rs=Js=0,mr=null}function ga(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ci===null?dn.memoizedState=Ci=n:Ci=Ci.next=n,Ci}function Ai(){if(Xn===null){var n=dn.alternate;n=n!==null?n.memoizedState:null}else n=Xn.next;var s=Ci===null?dn.memoizedState:Ci.next;if(s!==null)Ci=s,Xn=n;else{if(n===null)throw dn.alternate===null?Error(c(467)):Error(c(310));Xn=n,n={memoizedState:Xn.memoizedState,baseState:Xn.baseState,baseQueue:Xn.baseQueue,queue:Xn.queue,next:null},Ci===null?dn.memoizedState=Ci=n:Ci=Ci.next=n}return Ci}function ah(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sh(n){var s=rs;return rs+=1,mr===null&&(mr=[]),n=Zm(mr,n,s),s=dn,(Ci===null?s.memoizedState:Ci.next)===null&&(s=s.alternate,A.H=s===null||s.memoizedState===null?gy:my),n}function Bi(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return sh(n);if(n.$$typeof===P)return Zi(n)}throw Error(c(438,String(n)))}function lp(n){var s=null,l=dn.updateQueue;if(l!==null&&(s=l.memoCache),s==null){var h=dn.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(s={data:h.data.map(function(b){return b.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),l===null&&(l=ah(),dn.updateQueue=l),l.memoCache=s,l=s.data[s.index],l===void 0)for(l=s.data[s.index]=Array(n),h=0;h<n;h++)l[h]=te;return s.index++,l}function To(n,s){return typeof s=="function"?s(n):s}function oh(n){var s=Ai();return cp(s,Xn,n)}function cp(n,s,l){var h=n.queue;if(h===null)throw Error(c(311));h.lastRenderedReducer=l;var b=n.baseQueue,M=h.pending;if(M!==null){if(b!==null){var fe=b.next;b.next=M.next,M.next=fe}s.baseQueue=b=M,h.pending=null}if(M=n.baseState,b===null)n.memoizedState=M;else{s=b.next;var Se=fe=null,Oe=null,Ie=s,at=!1;do{var dt=Ie.lane&-536870913;if(dt!==Ie.lane?(An&dt)===dt:(As&dt)===dt){var Xe=Ie.revertLane;if(Xe===0)Oe!==null&&(Oe=Oe.next={lane:0,revertLane:0,action:Ie.action,hasEagerState:Ie.hasEagerState,eagerState:Ie.eagerState,next:null}),dt===Ms&&(at=!0);else if((As&Xe)===Xe){Ie=Ie.next,Xe===Ms&&(at=!0);continue}else dt={lane:0,revertLane:Ie.revertLane,action:Ie.action,hasEagerState:Ie.hasEagerState,eagerState:Ie.eagerState,next:null},Oe===null?(Se=Oe=dt,fe=M):Oe=Oe.next=dt,dn.lanes|=Xe,Sr|=Xe;dt=Ie.action,nl&&l(M,dt),M=Ie.hasEagerState?Ie.eagerState:l(M,dt)}else Xe={lane:dt,revertLane:Ie.revertLane,action:Ie.action,hasEagerState:Ie.hasEagerState,eagerState:Ie.eagerState,next:null},Oe===null?(Se=Oe=Xe,fe=M):Oe=Oe.next=Xe,dn.lanes|=dt,Sr|=dt;Ie=Ie.next}while(Ie!==null&&Ie!==s);if(Oe===null?fe=M:Oe.next=Se,!aa(M,n.memoizedState)&&(qi=!0,at&&(l=Ii,l!==null)))throw l;n.memoizedState=M,n.baseState=fe,n.baseQueue=Oe,h.lastRenderedState=M}return b===null&&(h.lanes=0),[n.memoizedState,h.dispatch]}function up(n){var s=Ai(),l=s.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=n;var h=l.dispatch,b=l.pending,M=s.memoizedState;if(b!==null){l.pending=null;var fe=b=b.next;do M=n(M,fe.action),fe=fe.next;while(fe!==b);aa(M,s.memoizedState)||(qi=!0),s.memoizedState=M,s.baseQueue===null&&(s.baseState=M),l.lastRenderedState=M}return[M,h]}function rh(n,s,l){var h=dn,b=Ai(),M=Bn;if(M){if(l===void 0)throw Error(c(407));l=l()}else l=s();var fe=!aa((Xn||b).memoizedState,l);fe&&(b.memoizedState=l,qi=!0),b=b.queue;var Se=iy.bind(null,h,b,n);if(ti(2048,8,Se,[n]),b.getSnapshot!==s||fe||Ci!==null&&Ci.memoizedState.tag&1){if(h.flags|=2048,Ha(9,uh(),ny.bind(null,h,b,l,s),null),oi===null)throw Error(c(349));M||(As&124)!==0||dp(h,s,l)}return l}function dp(n,s,l){n.flags|=16384,n={getSnapshot:s,value:l},s=dn.updateQueue,s===null?(s=ah(),dn.updateQueue=s,s.stores=[n]):(l=s.stores,l===null?s.stores=[n]:l.push(n))}function ny(n,s,l,h){s.value=l,s.getSnapshot=h,ay(s)&&hp(n)}function iy(n,s,l){return l(function(){ay(s)&&hp(n)})}function ay(n){var s=n.getSnapshot;n=n.value;try{var l=s();return!aa(n,l)}catch{return!0}}function hp(n){var s=vo(n,2);s!==null&&us(s,n,2)}function lh(n){var s=ga();if(typeof n=="function"){var l=n;if(n=l(),nl){ke(!0);try{l()}finally{ke(!1)}}}return s.memoizedState=s.baseState=n,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:To,lastRenderedState:n},s}function fp(n,s,l,h){return n.baseState=l,cp(n,Xn,typeof h=="function"?h:To)}function O1(n,s,l,h,b){if(lc(n))throw Error(c(485));if(n=s.action,n!==null){var M={payload:b,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(fe){M.listeners.push(fe)}};A.T!==null?l(!0):M.isTransition=!1,h(M),l=s.pending,l===null?(M.next=s.pending=M,pp(s,M)):(M.next=l.next,s.pending=l.next=M)}}function pp(n,s){var l=s.action,h=s.payload,b=n.state;if(s.isTransition){var M=A.T,fe={};A.T=fe;try{var Se=l(b,h),Oe=A.S;Oe!==null&&Oe(fe,Se),ch(n,s,Se)}catch(Ie){mp(n,s,Ie)}finally{A.T=M}}else try{M=l(b,h),ch(n,s,M)}catch(Ie){mp(n,s,Ie)}}function ch(n,s,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(h){gp(n,s,h)},function(h){return mp(n,s,h)}):gp(n,s,l)}function gp(n,s,l){s.status="fulfilled",s.value=l,sy(s),n.state=l,s=n.pending,s!==null&&(l=s.next,l===s?n.pending=null:(l=l.next,s.next=l,pp(n,l)))}function mp(n,s,l){var h=n.pending;if(n.pending=null,h!==null){h=h.next;do s.status="rejected",s.reason=l,sy(s),s=s.next;while(s!==h)}n.action=null}function sy(n){n=n.listeners;for(var s=0;s<n.length;s++)(0,n[s])()}function yp(n,s){return s}function oy(n,s){if(Bn){var l=oi.formState;if(l!==null){e:{var h=dn;if(Bn){if(Gn){t:{for(var b=Gn,M=Ts;b.nodeType!==8;){if(!M){b=null;break t}if(b=no(b.nextSibling),b===null){b=null;break t}}M=b.data,b=M==="F!"||M==="F"?b:null}if(b){Gn=no(b.nextSibling),h=b.data==="F!";break e}}hr(h)}h=!1}h&&(s=l[0])}}return l=ga(),l.memoizedState=l.baseState=s,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yp,lastRenderedState:s},l.queue=h,l=fy.bind(null,dn,h),h.dispatch=l,h=lh(!1),M=fh.bind(null,dn,!1,h.queue),h=ga(),b={state:s,dispatch:null,action:n,pending:null},h.queue=b,l=O1.bind(null,dn,b,M,l),b.dispatch=l,h.memoizedState=n,[s,l,!1]}function Mo(n){var s=Ai();return bp(s,Xn,n)}function bp(n,s,l){if(s=cp(n,s,yp)[0],n=oh(To)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var h=sh(s)}catch(fe){throw fe===tl?Kd:fe}else h=s;s=Ai();var b=s.queue,M=b.dispatch;return l!==s.memoizedState&&(dn.flags|=2048,Ha(9,uh(),Zx.bind(null,b,l),null)),[h,M,n]}function Zx(n,s){n.action=s}function vp(n){var s=Ai(),l=Xn;if(l!==null)return bp(s,l,n);Ai(),s=s.memoizedState,l=Ai();var h=l.queue.dispatch;return l.memoizedState=n,[s,h,!1]}function Ha(n,s,l,h){return n={tag:n,create:l,deps:h,inst:s,next:null},s=dn.updateQueue,s===null&&(s=ah(),dn.updateQueue=s),l=s.lastEffect,l===null?s.lastEffect=n.next=n:(h=l.next,l.next=n,n.next=h,s.lastEffect=n),n}function uh(){return{destroy:void 0,resource:void 0}}function dh(){return Ai().memoizedState}function al(n,s,l,h){var b=ga();h=h===void 0?null:h,dn.flags|=n,b.memoizedState=Ha(1|s,uh(),l,h)}function ti(n,s,l,h){var b=Ai();h=h===void 0?null:h;var M=b.memoizedState.inst;Xn!==null&&h!==null&&ap(h,Xn.memoizedState.deps)?b.memoizedState=Ha(s,M,l,h):(dn.flags|=n,b.memoizedState=Ha(1|s,M,l,h))}function j1(n,s){al(8390656,8,n,s)}function L1(n,s){ti(2048,8,n,s)}function ry(n,s){return ti(4,2,n,s)}function Ks(n,s){return ti(4,4,n,s)}function ly(n,s){if(typeof s=="function"){n=n();var l=s(n);return function(){typeof l=="function"?l():s(null)}}if(s!=null)return n=n(),s.current=n,function(){s.current=null}}function xp(n,s,l){l=l!=null?l.concat([n]):null,ti(4,4,ly.bind(null,s,n),l)}function sc(){}function oc(n,s){var l=Ai();s=s===void 0?null:s;var h=l.memoizedState;return s!==null&&ap(s,h[1])?h[0]:(l.memoizedState=[n,s],n)}function cy(n,s){var l=Ai();s=s===void 0?null:s;var h=l.memoizedState;if(s!==null&&ap(s,h[1]))return h[0];if(h=n(),nl){ke(!0);try{n()}finally{ke(!1)}}return l.memoizedState=[h,s],h}function hh(n,s,l){return l===void 0||(As&1073741824)!==0?n.memoizedState=s:(n.memoizedState=l,n=qy(),dn.lanes|=n,Sr|=n,l)}function uy(n,s,l,h){return aa(l,s)?l:ac.current!==null?(n=hh(n,l,h),aa(n,s)||(qi=!0),n):(As&42)===0?(qi=!0,n.memoizedState=l):(n=qy(),dn.lanes|=n,Sr|=n,s)}function R1(n,s,l,h,b){var M=L.p;L.p=M!==0&&8>M?M:8;var fe=A.T,Se={};A.T=Se,fh(n,!1,s,l);try{var Oe=b(),Ie=A.S;if(Ie!==null&&Ie(Se,Oe),Oe!==null&&typeof Oe=="object"&&typeof Oe.then=="function"){var at=E1(Oe,h);rc(n,s,at,cs(n))}else rc(n,s,h,cs(n))}catch(dt){rc(n,s,{then:function(){},status:"rejected",reason:dt},cs())}finally{L.p=M,A.T=fe}}function Qx(){}function _p(n,s,l,h){if(n.tag!==5)throw Error(c(476));var b=N1(n).queue;R1(n,b,s,J,l===null?Qx:function(){return vu(n),l(h)})}function N1(n){var s=n.memoizedState;if(s!==null)return s;s={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:To,lastRenderedState:J},next:null};var l={};return s.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:To,lastRenderedState:l},next:null},n.memoizedState=s,n=n.alternate,n!==null&&(n.memoizedState=s),s}function vu(n){var s=N1(n).next.queue;rc(n,s,{},cs())}function Es(){return Zi(Fa)}function dy(){return Ai().memoizedState}function z1(){return Ai().memoizedState}function B1(n){for(var s=n.return;s!==null;){switch(s.tag){case 24:case 3:var l=cs();n=Ua(l);var h=ko(s,n,l);h!==null&&(us(h,s,l),ic(h,s,l)),s={cache:pu()},n.payload=s;return}s=s.return}}function hy(n,s,l){var h=cs();l={lane:h,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},lc(n)?U1(s,l):(l=au(n,s,l,h),l!==null&&(us(l,n,h),py(l,s,h)))}function fy(n,s,l){var h=cs();rc(n,s,l,h)}function rc(n,s,l,h){var b={lane:h,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(lc(n))U1(s,b);else{var M=n.alternate;if(n.lanes===0&&(M===null||M.lanes===0)&&(M=s.lastRenderedReducer,M!==null))try{var fe=s.lastRenderedState,Se=M(fe,l);if(b.hasEagerState=!0,b.eagerState=Se,aa(Se,fe))return Qr(n,s,b,0),oi===null&&Xs(),!1}catch{}finally{}if(l=au(n,s,b,h),l!==null)return us(l,n,h),py(l,s,h),!0}return!1}function fh(n,s,l,h){if(h={lane:2,revertLane:Sc(),action:h,hasEagerState:!1,eagerState:null,next:null},lc(n)){if(s)throw Error(c(479))}else s=au(n,l,h,2),s!==null&&us(s,n,2)}function lc(n){var s=n.alternate;return n===dn||s!==null&&s===dn}function U1(n,s){os=ih=!0;var l=n.pending;l===null?s.next=s:(s.next=l.next,l.next=s),n.pending=s}function py(n,s,l){if((l&4194048)!==0){var h=s.lanes;h&=n.pendingLanes,l|=h,s.lanes=l,Bt(n,l)}}var Sp={readContext:Zi,use:Bi,useCallback:wi,useContext:wi,useEffect:wi,useImperativeHandle:wi,useLayoutEffect:wi,useInsertionEffect:wi,useMemo:wi,useReducer:wi,useRef:wi,useState:wi,useDebugValue:wi,useDeferredValue:wi,useTransition:wi,useSyncExternalStore:wi,useId:wi,useHostTransitionStatus:wi,useFormState:wi,useActionState:wi,useOptimistic:wi,useMemoCache:wi,useCacheRefresh:wi},gy={readContext:Zi,use:Bi,useCallback:function(n,s){return ga().memoizedState=[n,s===void 0?null:s],n},useContext:Zi,useEffect:j1,useImperativeHandle:function(n,s,l){l=l!=null?l.concat([n]):null,al(4194308,4,ly.bind(null,s,n),l)},useLayoutEffect:function(n,s){return al(4194308,4,n,s)},useInsertionEffect:function(n,s){al(4,2,n,s)},useMemo:function(n,s){var l=ga();s=s===void 0?null:s;var h=n();if(nl){ke(!0);try{n()}finally{ke(!1)}}return l.memoizedState=[h,s],h},useReducer:function(n,s,l){var h=ga();if(l!==void 0){var b=l(s);if(nl){ke(!0);try{l(s)}finally{ke(!1)}}}else b=s;return h.memoizedState=h.baseState=b,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:b},h.queue=n,n=n.dispatch=hy.bind(null,dn,n),[h.memoizedState,n]},useRef:function(n){var s=ga();return n={current:n},s.memoizedState=n},useState:function(n){n=lh(n);var s=n.queue,l=fy.bind(null,dn,s);return s.dispatch=l,[n.memoizedState,l]},useDebugValue:sc,useDeferredValue:function(n,s){var l=ga();return hh(l,n,s)},useTransition:function(){var n=lh(!1);return n=R1.bind(null,dn,n.queue,!0,!1),ga().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,s,l){var h=dn,b=ga();if(Bn){if(l===void 0)throw Error(c(407));l=l()}else{if(l=s(),oi===null)throw Error(c(349));(An&124)!==0||dp(h,s,l)}b.memoizedState=l;var M={value:l,getSnapshot:s};return b.queue=M,j1(iy.bind(null,h,M,n),[n]),h.flags|=2048,Ha(9,uh(),ny.bind(null,h,M,l,s),null),l},useId:function(){var n=ga(),s=oi.identifierPrefix;if(Bn){var l=Mi,h=Qs;l=(h&~(1<<32-Ae(h)-1)).toString(32)+l,s="«"+s+"R"+l,l=Js++,0<l&&(s+="H"+l.toString(32)),s+="»"}else l=ey++,s="«"+s+"r"+l.toString(32)+"»";return n.memoizedState=s},useHostTransitionStatus:Es,useFormState:oy,useActionState:oy,useOptimistic:function(n){var s=ga();s.memoizedState=s.baseState=n;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=l,s=fh.bind(null,dn,!0,l),l.dispatch=s,[n,s]},useMemoCache:lp,useCacheRefresh:function(){return ga().memoizedState=B1.bind(null,dn)}},my={readContext:Zi,use:Bi,useCallback:oc,useContext:Zi,useEffect:L1,useImperativeHandle:xp,useInsertionEffect:ry,useLayoutEffect:Ks,useMemo:cy,useReducer:oh,useRef:dh,useState:function(){return oh(To)},useDebugValue:sc,useDeferredValue:function(n,s){var l=Ai();return uy(l,Xn.memoizedState,n,s)},useTransition:function(){var n=oh(To)[0],s=Ai().memoizedState;return[typeof n=="boolean"?n:sh(n),s]},useSyncExternalStore:rh,useId:dy,useHostTransitionStatus:Es,useFormState:Mo,useActionState:Mo,useOptimistic:function(n,s){var l=Ai();return fp(l,Xn,n,s)},useMemoCache:lp,useCacheRefresh:z1},yr={readContext:Zi,use:Bi,useCallback:oc,useContext:Zi,useEffect:L1,useImperativeHandle:xp,useInsertionEffect:ry,useLayoutEffect:Ks,useMemo:cy,useReducer:up,useRef:dh,useState:function(){return up(To)},useDebugValue:sc,useDeferredValue:function(n,s){var l=Ai();return Xn===null?hh(l,n,s):uy(l,Xn.memoizedState,n,s)},useTransition:function(){var n=up(To)[0],s=Ai().memoizedState;return[typeof n=="boolean"?n:sh(n),s]},useSyncExternalStore:rh,useId:dy,useHostTransitionStatus:Es,useFormState:vp,useActionState:vp,useOptimistic:function(n,s){var l=Ai();return Xn!==null?fp(l,Xn,n,s):(l.baseState=n,[n,l.queue.dispatch])},useMemoCache:lp,useCacheRefresh:z1},cc=null,xu=0;function Cp(n){var s=xu;return xu+=1,cc===null&&(cc=[]),Zm(cc,n,s)}function uc(n,s){s=s.props.ref,n.ref=s!==void 0?s:null}function ma(n,s){throw s.$$typeof===B?Error(c(525)):(n=Object.prototype.toString.call(s),Error(c(31,n==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":n)))}function yy(n){var s=n._init;return s(n._payload)}function $a(n){function s(Pe,He){if(n){var Ve=Pe.deletions;Ve===null?(Pe.deletions=[He],Pe.flags|=16):Ve.push(He)}}function l(Pe,He){if(!n)return null;for(;He!==null;)s(Pe,He),He=He.sibling;return null}function h(Pe){for(var He=new Map;Pe!==null;)Pe.key!==null?He.set(Pe.key,Pe):He.set(Pe.index,Pe),Pe=Pe.sibling;return He}function b(Pe,He){return Pe=Zs(Pe,He),Pe.index=0,Pe.sibling=null,Pe}function M(Pe,He,Ve){return Pe.index=Ve,n?(Ve=Pe.alternate,Ve!==null?(Ve=Ve.index,Ve<He?(Pe.flags|=67108866,He):Ve):(Pe.flags|=67108866,He)):(Pe.flags|=1048576,He)}function fe(Pe){return n&&Pe.alternate===null&&(Pe.flags|=67108866),Pe}function Se(Pe,He,Ve,ct){return He===null||He.tag!==6?(He=ru(Ve,Pe.mode,ct),He.return=Pe,He):(He=b(He,Ve),He.return=Pe,He)}function Oe(Pe,He,Ve,ct){var zt=Ve.type;return zt===O?at(Pe,He,Ve.props.children,ct,Ve.key):He!==null&&(He.elementType===zt||typeof zt=="object"&&zt!==null&&zt.$$typeof===he&&yy(zt)===He.type)?(He=b(He,Ve.props),uc(He,Ve),He.return=Pe,He):(He=xt(Ve.type,Ve.key,Ve.props,null,Pe.mode,ct),uc(He,Ve),He.return=Pe,He)}function Ie(Pe,He,Ve,ct){return He===null||He.tag!==4||He.stateNode.containerInfo!==Ve.containerInfo||He.stateNode.implementation!==Ve.implementation?(He=Si(Ve,Pe.mode,ct),He.return=Pe,He):(He=b(He,Ve.children||[]),He.return=Pe,He)}function at(Pe,He,Ve,ct,zt){return He===null||He.tag!==7?(He=Cs(Ve,Pe.mode,ct,zt),He.return=Pe,He):(He=b(He,Ve),He.return=Pe,He)}function dt(Pe,He,Ve){if(typeof He=="string"&&He!==""||typeof He=="number"||typeof He=="bigint")return He=ru(""+He,Pe.mode,Ve),He.return=Pe,He;if(typeof He=="object"&&He!==null){switch(He.$$typeof){case ee:return Ve=xt(He.type,He.key,He.props,null,Pe.mode,Ve),uc(Ve,He),Ve.return=Pe,Ve;case ne:return He=Si(He,Pe.mode,Ve),He.return=Pe,He;case he:var ct=He._init;return He=ct(He._payload),dt(Pe,He,Ve)}if(_(He)||W(He))return He=Cs(He,Pe.mode,Ve,null),He.return=Pe,He;if(typeof He.then=="function")return dt(Pe,Cp(He),Ve);if(He.$$typeof===P)return dt(Pe,Qd(Pe,He),Ve);ma(Pe,He)}return null}function Xe(Pe,He,Ve,ct){var zt=He!==null?He.key:null;if(typeof Ve=="string"&&Ve!==""||typeof Ve=="number"||typeof Ve=="bigint")return zt!==null?null:Se(Pe,He,""+Ve,ct);if(typeof Ve=="object"&&Ve!==null){switch(Ve.$$typeof){case ee:return Ve.key===zt?Oe(Pe,He,Ve,ct):null;case ne:return Ve.key===zt?Ie(Pe,He,Ve,ct):null;case he:return zt=Ve._init,Ve=zt(Ve._payload),Xe(Pe,He,Ve,ct)}if(_(Ve)||W(Ve))return zt!==null?null:at(Pe,He,Ve,ct,null);if(typeof Ve.then=="function")return Xe(Pe,He,Cp(Ve),ct);if(Ve.$$typeof===P)return Xe(Pe,He,Qd(Pe,Ve),ct);ma(Pe,Ve)}return null}function Qe(Pe,He,Ve,ct,zt){if(typeof ct=="string"&&ct!==""||typeof ct=="number"||typeof ct=="bigint")return Pe=Pe.get(Ve)||null,Se(He,Pe,""+ct,zt);if(typeof ct=="object"&&ct!==null){switch(ct.$$typeof){case ee:return Pe=Pe.get(ct.key===null?Ve:ct.key)||null,Oe(He,Pe,ct,zt);case ne:return Pe=Pe.get(ct.key===null?Ve:ct.key)||null,Ie(He,Pe,ct,zt);case he:var Sn=ct._init;return ct=Sn(ct._payload),Qe(Pe,He,Ve,ct,zt)}if(_(ct)||W(ct))return Pe=Pe.get(Ve)||null,at(He,Pe,ct,zt,null);if(typeof ct.then=="function")return Qe(Pe,He,Ve,Cp(ct),zt);if(ct.$$typeof===P)return Qe(Pe,He,Ve,Qd(He,ct),zt);ma(He,ct)}return null}function Xt(Pe,He,Ve,ct){for(var zt=null,Sn=null,qt=He,Kt=He=0,Ki=null;qt!==null&&Kt<Ve.length;Kt++){qt.index>Kt?(Ki=qt,qt=null):Ki=qt.sibling;var Nn=Xe(Pe,qt,Ve[Kt],ct);if(Nn===null){qt===null&&(qt=Ki);break}n&&qt&&Nn.alternate===null&&s(Pe,qt),He=M(Nn,He,Kt),Sn===null?zt=Nn:Sn.sibling=Nn,Sn=Nn,qt=Ki}if(Kt===Ve.length)return l(Pe,qt),Bn&&Ln(Pe,Kt),zt;if(qt===null){for(;Kt<Ve.length;Kt++)qt=dt(Pe,Ve[Kt],ct),qt!==null&&(He=M(qt,He,Kt),Sn===null?zt=qt:Sn.sibling=qt,Sn=qt);return Bn&&Ln(Pe,Kt),zt}for(qt=h(qt);Kt<Ve.length;Kt++)Ki=Qe(qt,Pe,Kt,Ve[Kt],ct),Ki!==null&&(n&&Ki.alternate!==null&&qt.delete(Ki.key===null?Kt:Ki.key),He=M(Ki,He,Kt),Sn===null?zt=Ki:Sn.sibling=Ki,Sn=Ki);return n&&qt.forEach(function(Sl){return s(Pe,Sl)}),Bn&&Ln(Pe,Kt),zt}function Zt(Pe,He,Ve,ct){if(Ve==null)throw Error(c(151));for(var zt=null,Sn=null,qt=He,Kt=He=0,Ki=null,Nn=Ve.next();qt!==null&&!Nn.done;Kt++,Nn=Ve.next()){qt.index>Kt?(Ki=qt,qt=null):Ki=qt.sibling;var Sl=Xe(Pe,qt,Nn.value,ct);if(Sl===null){qt===null&&(qt=Ki);break}n&&qt&&Sl.alternate===null&&s(Pe,qt),He=M(Sl,He,Kt),Sn===null?zt=Sl:Sn.sibling=Sl,Sn=Sl,qt=Ki}if(Nn.done)return l(Pe,qt),Bn&&Ln(Pe,Kt),zt;if(qt===null){for(;!Nn.done;Kt++,Nn=Ve.next())Nn=dt(Pe,Nn.value,ct),Nn!==null&&(He=M(Nn,He,Kt),Sn===null?zt=Nn:Sn.sibling=Nn,Sn=Nn);return Bn&&Ln(Pe,Kt),zt}for(qt=h(qt);!Nn.done;Kt++,Nn=Ve.next())Nn=Qe(qt,Pe,Kt,Nn.value,ct),Nn!==null&&(n&&Nn.alternate!==null&&qt.delete(Nn.key===null?Kt:Nn.key),He=M(Nn,He,Kt),Sn===null?zt=Nn:Sn.sibling=Nn,Sn=Nn);return n&&qt.forEach(function(l_){return s(Pe,l_)}),Bn&&Ln(Pe,Kt),zt}function Vn(Pe,He,Ve,ct){if(typeof Ve=="object"&&Ve!==null&&Ve.type===O&&Ve.key===null&&(Ve=Ve.props.children),typeof Ve=="object"&&Ve!==null){switch(Ve.$$typeof){case ee:e:{for(var zt=Ve.key;He!==null;){if(He.key===zt){if(zt=Ve.type,zt===O){if(He.tag===7){l(Pe,He.sibling),ct=b(He,Ve.props.children),ct.return=Pe,Pe=ct;break e}}else if(He.elementType===zt||typeof zt=="object"&&zt!==null&&zt.$$typeof===he&&yy(zt)===He.type){l(Pe,He.sibling),ct=b(He,Ve.props),uc(ct,Ve),ct.return=Pe,Pe=ct;break e}l(Pe,He);break}else s(Pe,He);He=He.sibling}Ve.type===O?(ct=Cs(Ve.props.children,Pe.mode,ct,Ve.key),ct.return=Pe,Pe=ct):(ct=xt(Ve.type,Ve.key,Ve.props,null,Pe.mode,ct),uc(ct,Ve),ct.return=Pe,Pe=ct)}return fe(Pe);case ne:e:{for(zt=Ve.key;He!==null;){if(He.key===zt)if(He.tag===4&&He.stateNode.containerInfo===Ve.containerInfo&&He.stateNode.implementation===Ve.implementation){l(Pe,He.sibling),ct=b(He,Ve.children||[]),ct.return=Pe,Pe=ct;break e}else{l(Pe,He);break}else s(Pe,He);He=He.sibling}ct=Si(Ve,Pe.mode,ct),ct.return=Pe,Pe=ct}return fe(Pe);case he:return zt=Ve._init,Ve=zt(Ve._payload),Vn(Pe,He,Ve,ct)}if(_(Ve))return Xt(Pe,He,Ve,ct);if(W(Ve)){if(zt=W(Ve),typeof zt!="function")throw Error(c(150));return Ve=zt.call(Ve),Zt(Pe,He,Ve,ct)}if(typeof Ve.then=="function")return Vn(Pe,He,Cp(Ve),ct);if(Ve.$$typeof===P)return Vn(Pe,He,Qd(Pe,Ve),ct);ma(Pe,Ve)}return typeof Ve=="string"&&Ve!==""||typeof Ve=="number"||typeof Ve=="bigint"?(Ve=""+Ve,He!==null&&He.tag===6?(l(Pe,He.sibling),ct=b(He,Ve),ct.return=Pe,Pe=ct):(l(Pe,He),ct=ru(Ve,Pe.mode,ct),ct.return=Pe,Pe=ct),fe(Pe)):l(Pe,He)}return function(Pe,He,Ve,ct){try{xu=0;var zt=Vn(Pe,He,Ve,ct);return cc=null,zt}catch(qt){if(qt===tl||qt===Kd)throw qt;var Sn=za(29,qt,null,Pe.mode);return Sn.lanes=ct,Sn.return=Pe,Sn}finally{}}}var dc=$a(!0),Ao=$a(!1),ls=ue(null),ya=null;function br(n){var s=n.alternate;g(ni,ni.current&1),g(ls,n),ya===null&&(s===null||ac.current!==null||s.memoizedState!==null)&&(ya=n)}function Eo(n){if(n.tag===22){if(g(ni,ni.current),g(ls,n),ya===null){var s=n.alternate;s!==null&&s.memoizedState!==null&&(ya=n)}}else Do()}function Do(){g(ni,ni.current),g(ls,ls.current)}function eo(n){ye(ls),ya===n&&(ya=null),ye(ni)}var ni=ue(0);function ph(n){for(var s=n;s!==null;){if(s.tag===13){var l=s.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||Bh(l)))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}function sl(n,s,l,h){s=n.memoizedState,l=l(h,s),l=l==null?s:j({},s,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var wp={enqueueSetState:function(n,s,l){n=n._reactInternals;var h=cs(),b=Ua(h);b.payload=s,l!=null&&(b.callback=l),s=ko(n,b,h),s!==null&&(us(s,n,h),ic(s,n,h))},enqueueReplaceState:function(n,s,l){n=n._reactInternals;var h=cs(),b=Ua(h);b.tag=1,b.payload=s,l!=null&&(b.callback=l),s=ko(n,b,h),s!==null&&(us(s,n,h),ic(s,n,h))},enqueueForceUpdate:function(n,s){n=n._reactInternals;var l=cs(),h=Ua(l);h.tag=2,s!=null&&(h.callback=s),s=ko(n,h,l),s!==null&&(us(s,n,l),ic(s,n,l))}};function _u(n,s,l,h,b,M,fe){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(h,M,fe):s.prototype&&s.prototype.isPureReactComponent?!Yr(l,h)||!Yr(b,M):!0}function hc(n,s,l,h){n=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(l,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(l,h),s.state!==n&&wp.enqueueReplaceState(s,s.state,null)}function ol(n,s){var l=s;if("ref"in s){l={};for(var h in s)h!=="ref"&&(l[h]=s[h])}if(n=n.defaultProps){l===s&&(l=j({},l));for(var b in n)l[b]===void 0&&(l[b]=n[b])}return l}var gh=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function Su(n){gh(n)}function by(n){console.error(n)}function mh(n){gh(n)}function yh(n,s){try{var l=n.onUncaughtError;l(s.value,{componentStack:s.stack})}catch(h){setTimeout(function(){throw h})}}function vy(n,s,l){try{var h=n.onCaughtError;h(l.value,{componentStack:l.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function xy(n,s,l){return l=Ua(l),l.tag=3,l.payload={element:null},l.callback=function(){yh(n,s)},l}function _y(n){return n=Ua(n),n.tag=3,n}function Ga(n,s,l,h){var b=l.type.getDerivedStateFromError;if(typeof b=="function"){var M=h.value;n.payload=function(){return b(M)},n.callback=function(){vy(s,l,h)}}var fe=l.stateNode;fe!==null&&typeof fe.componentDidCatch=="function"&&(n.callback=function(){vy(s,l,h),typeof b!="function"&&(ul===null?ul=new Set([this]):ul.add(this));var Se=h.stack;this.componentDidCatch(h.value,{componentStack:Se!==null?Se:""})})}function H1(n,s,l,h,b){if(l.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(s=l.alternate,s!==null&&hu(s,l,b,!0),l=ls.current,l!==null){switch(l.tag){case 13:return ya===null?_c():l.alternate===null&&ji===0&&(ji=3),l.flags&=-257,l.flags|=65536,l.lanes=b,h===Kf?l.flags|=16384:(s=l.updateQueue,s===null?l.updateQueue=new Set([h]):s.add(h),Qp(n,h,b)),!1;case 22:return l.flags|=65536,h===Kf?l.flags|=16384:(s=l.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([h])},l.updateQueue=s):(l=s.retryQueue,l===null?s.retryQueue=new Set([h]):l.add(h)),Qp(n,h,b)),!1}throw Error(c(435,l.tag))}return Qp(n,h,b),_c(),!1}if(Bn)return s=ls.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=b,h!==ec&&(n=Error(c(422),{cause:h}),du(ss(n,l)))):(h!==ec&&(s=Error(c(423),{cause:h}),du(ss(s,l))),n=n.current.alternate,n.flags|=65536,b&=-b,n.lanes|=b,h=ss(h,l),b=xy(n.stateNode,h,b),Jm(n,b),ji!==4&&(ji=2)),!1;var M=Error(c(520),{cause:h});if(M=ss(M,l),Eu===null?Eu=[M]:Eu.push(M),ji!==4&&(ji=2),s===null)return!0;h=ss(h,l),l=s;do{switch(l.tag){case 3:return l.flags|=65536,n=b&-b,l.lanes|=n,n=xy(l.stateNode,h,n),Jm(l,n),!1;case 1:if(s=l.type,M=l.stateNode,(l.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(ul===null||!ul.has(M))))return l.flags|=65536,b&=-b,l.lanes|=b,b=_y(b),Ga(b,n,l,h),Jm(l,b),!1}l=l.return}while(l!==null);return!1}var Ei=Error(c(461)),qi=!1;function Wi(n,s,l,h){s.child=n===null?Ao(s,null,l,h):dc(s,n.child,l,h)}function $1(n,s,l,h,b){l=l.render;var M=s.ref;if("ref"in h){var fe={};for(var Se in h)Se!=="ref"&&(fe[Se]=h[Se])}else fe=h;return Kr(s),h=sp(n,s,l,fe,M,b),Se=op(),n!==null&&!qi?(bu(n,s,b),Oo(n,s,b)):(Bn&&Se&&Kl(s),s.flags|=1,Wi(n,s,h,b),s.child)}function vr(n,s,l,h,b){if(n===null){var M=l.type;return typeof M=="function"&&!qd(M)&&M.defaultProps===void 0&&l.compare===null?(s.tag=15,s.type=M,fc(n,s,M,h,b)):(n=xt(l.type,null,h,s,s.mode,b),n.ref=s.ref,n.return=s,s.child=n)}if(M=n.child,!Rp(n,b)){var fe=M.memoizedProps;if(l=l.compare,l=l!==null?l:Yr,l(fe,h)&&n.ref===s.ref)return Oo(n,s,b)}return s.flags|=1,n=Zs(M,h),n.ref=s.ref,n.return=s,s.child=n}function fc(n,s,l,h,b){if(n!==null){var M=n.memoizedProps;if(Yr(M,h)&&n.ref===s.ref)if(qi=!1,s.pendingProps=h=M,Rp(n,b))(n.flags&131072)!==0&&(qi=!0);else return s.lanes=n.lanes,Oo(n,s,b)}return Tp(n,s,l,h,b)}function kp(n,s,l){var h=s.pendingProps,b=h.children,M=n!==null?n.memoizedState:null;if(h.mode==="hidden"){if((s.flags&128)!==0){if(h=M!==null?M.baseLanes|l:l,n!==null){for(b=s.child=n.child,M=0;b!==null;)M=M|b.lanes|b.childLanes,b=b.sibling;s.childLanes=M&~h}else s.childLanes=0,s.child=null;return pc(n,s,h,l)}if((l&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},n!==null&&tc(s,M!==null?M.cachePool:null),M!==null?Qi(s,M):mu(),Eo(s);else return s.lanes=s.childLanes=536870912,pc(n,s,M!==null?M.baseLanes|l:l,l)}else M!==null?(tc(s,M.cachePool),Qi(s,M),Do(),s.memoizedState=null):(n!==null&&tc(s,null),mu(),Do());return Wi(n,s,b,l),s.child}function pc(n,s,l,h){var b=Jd();return b=b===null?null:{parent:Vi._currentValue,pool:b},s.memoizedState={baseLanes:l,cachePool:b},n!==null&&tc(s,null),mu(),Eo(s),n!==null&&hu(n,s,h,!0),null}function bh(n,s){var l=s.ref;if(l===null)n!==null&&n.ref!==null&&(s.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(n===null||n.ref!==l)&&(s.flags|=4194816)}}function Tp(n,s,l,h,b){return Kr(s),l=sp(n,s,l,h,void 0,b),h=op(),n!==null&&!qi?(bu(n,s,b),Oo(n,s,b)):(Bn&&h&&Kl(s),s.flags|=1,Wi(n,s,l,b),s.child)}function Sy(n,s,l,h,b,M){return Kr(s),s.updateQueue=null,l=ty(s,h,l,b),il(n),h=op(),n!==null&&!qi?(bu(n,s,M),Oo(n,s,M)):(Bn&&h&&Kl(s),s.flags|=1,Wi(n,s,l,M),s.child)}function Mp(n,s,l,h,b){if(Kr(s),s.stateNode===null){var M=ou,fe=l.contextType;typeof fe=="object"&&fe!==null&&(M=Zi(fe)),M=new l(h,M),s.memoizedState=M.state!==null&&M.state!==void 0?M.state:null,M.updater=wp,s.stateNode=M,M._reactInternals=s,M=s.stateNode,M.props=h,M.state=s.memoizedState,M.refs={},tp(s),fe=l.contextType,M.context=typeof fe=="object"&&fe!==null?Zi(fe):ou,M.state=s.memoizedState,fe=l.getDerivedStateFromProps,typeof fe=="function"&&(sl(s,l,fe,h),M.state=s.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof M.getSnapshotBeforeUpdate=="function"||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(fe=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),fe!==M.state&&wp.enqueueReplaceState(M,M.state,null),gr(s,h,M,b),gu(),M.state=s.memoizedState),typeof M.componentDidMount=="function"&&(s.flags|=4194308),h=!0}else if(n===null){M=s.stateNode;var Se=s.memoizedProps,Oe=ol(l,Se);M.props=Oe;var Ie=M.context,at=l.contextType;fe=ou,typeof at=="object"&&at!==null&&(fe=Zi(at));var dt=l.getDerivedStateFromProps;at=typeof dt=="function"||typeof M.getSnapshotBeforeUpdate=="function",Se=s.pendingProps!==Se,at||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(Se||Ie!==fe)&&hc(s,M,h,fe),wo=!1;var Xe=s.memoizedState;M.state=Xe,gr(s,h,M,b),gu(),Ie=s.memoizedState,Se||Xe!==Ie||wo?(typeof dt=="function"&&(sl(s,l,dt,h),Ie=s.memoizedState),(Oe=wo||_u(s,l,Oe,h,Xe,Ie,fe))?(at||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount()),typeof M.componentDidMount=="function"&&(s.flags|=4194308)):(typeof M.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=Ie),M.props=h,M.state=Ie,M.context=fe,h=Oe):(typeof M.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{M=s.stateNode,np(n,s),fe=s.memoizedProps,at=ol(l,fe),M.props=at,dt=s.pendingProps,Xe=M.context,Ie=l.contextType,Oe=ou,typeof Ie=="object"&&Ie!==null&&(Oe=Zi(Ie)),Se=l.getDerivedStateFromProps,(Ie=typeof Se=="function"||typeof M.getSnapshotBeforeUpdate=="function")||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(fe!==dt||Xe!==Oe)&&hc(s,M,h,Oe),wo=!1,Xe=s.memoizedState,M.state=Xe,gr(s,h,M,b),gu();var Qe=s.memoizedState;fe!==dt||Xe!==Qe||wo||n!==null&&n.dependencies!==null&&Zd(n.dependencies)?(typeof Se=="function"&&(sl(s,l,Se,h),Qe=s.memoizedState),(at=wo||_u(s,l,at,h,Xe,Qe,Oe)||n!==null&&n.dependencies!==null&&Zd(n.dependencies))?(Ie||typeof M.UNSAFE_componentWillUpdate!="function"&&typeof M.componentWillUpdate!="function"||(typeof M.componentWillUpdate=="function"&&M.componentWillUpdate(h,Qe,Oe),typeof M.UNSAFE_componentWillUpdate=="function"&&M.UNSAFE_componentWillUpdate(h,Qe,Oe)),typeof M.componentDidUpdate=="function"&&(s.flags|=4),typeof M.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof M.componentDidUpdate!="function"||fe===n.memoizedProps&&Xe===n.memoizedState||(s.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||fe===n.memoizedProps&&Xe===n.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=Qe),M.props=h,M.state=Qe,M.context=Oe,h=at):(typeof M.componentDidUpdate!="function"||fe===n.memoizedProps&&Xe===n.memoizedState||(s.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||fe===n.memoizedProps&&Xe===n.memoizedState||(s.flags|=1024),h=!1)}return M=h,bh(n,s),h=(s.flags&128)!==0,M||h?(M=s.stateNode,l=h&&typeof l.getDerivedStateFromError!="function"?null:M.render(),s.flags|=1,n!==null&&h?(s.child=dc(s,n.child,null,b),s.child=dc(s,null,l,b)):Wi(n,s,l,b),s.memoizedState=M.state,n=s.child):n=Oo(n,s,b),n}function Ap(n,s,l,h){return uu(),s.flags|=256,Wi(n,s,l,h),s.child}var Ep={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cy(n){return{baseLanes:n,cachePool:Wf()}}function wy(n,s,l){return n=n!==null?n.childLanes&~l:0,s&&(n|=js),n}function ky(n,s,l){var h=s.pendingProps,b=!1,M=(s.flags&128)!==0,fe;if((fe=M)||(fe=n!==null&&n.memoizedState===null?!1:(ni.current&2)!==0),fe&&(b=!0,s.flags&=-129),fe=(s.flags&32)!==0,s.flags&=-33,n===null){if(Bn){if(b?br(s):Do(),Bn){var Se=Gn,Oe;if(Oe=Se){e:{for(Oe=Se,Se=Ts;Oe.nodeType!==8;){if(!Se){Se=null;break e}if(Oe=no(Oe.nextSibling),Oe===null){Se=null;break e}}Se=Oe}Se!==null?(s.memoizedState={dehydrated:Se,treeContext:dr!==null?{id:Qs,overflow:Mi}:null,retryLane:536870912,hydrationErrors:null},Oe=za(18,null,null,0),Oe.stateNode=Se,Oe.return=s,s.child=Oe,Ni=s,Gn=null,Oe=!0):Oe=!1}Oe||hr(s)}if(Se=s.memoizedState,Se!==null&&(Se=Se.dehydrated,Se!==null))return Bh(Se)?s.lanes=32:s.lanes=536870912,null;eo(s)}return Se=h.children,h=h.fallback,b?(Do(),b=s.mode,Se=Op({mode:"hidden",children:Se},b),h=Cs(h,b,l,null),Se.return=s,h.return=s,Se.sibling=h,s.child=Se,b=s.child,b.memoizedState=Cy(l),b.childLanes=wy(n,fe,l),s.memoizedState=Ep,h):(br(s),Dp(s,Se))}if(Oe=n.memoizedState,Oe!==null&&(Se=Oe.dehydrated,Se!==null)){if(M)s.flags&256?(br(s),s.flags&=-257,s=rl(n,s,l)):s.memoizedState!==null?(Do(),s.child=n.child,s.flags|=128,s=null):(Do(),b=h.fallback,Se=s.mode,h=Op({mode:"visible",children:h.children},Se),b=Cs(b,Se,l,null),b.flags|=2,h.return=s,b.return=s,h.sibling=b,s.child=h,dc(s,n.child,null,l),h=s.child,h.memoizedState=Cy(l),h.childLanes=wy(n,fe,l),s.memoizedState=Ep,s=b);else if(br(s),Bh(Se)){if(fe=Se.nextSibling&&Se.nextSibling.dataset,fe)var Ie=fe.dgst;fe=Ie,h=Error(c(419)),h.stack="",h.digest=fe,du({value:h,source:null,stack:null}),s=rl(n,s,l)}else if(qi||hu(n,s,l,!1),fe=(l&n.childLanes)!==0,qi||fe){if(fe=oi,fe!==null&&(h=l&-l,h=(h&42)!==0?1:Vt(h),h=(h&(fe.suspendedLanes|l))!==0?0:h,h!==0&&h!==Oe.retryLane))throw Oe.retryLane=h,vo(n,h),us(fe,n,h),Ei;Se.data==="$?"||_c(),s=rl(n,s,l)}else Se.data==="$?"?(s.flags|=192,s.child=n.child,s=null):(n=Oe.treeContext,Gn=no(Se.nextSibling),Ni=s,Bn=!0,ks=null,Ts=!1,n!==null&&(ws[Ba++]=Qs,ws[Ba++]=Mi,ws[Ba++]=dr,Qs=n.id,Mi=n.overflow,dr=s),s=Dp(s,h.children),s.flags|=4096);return s}return b?(Do(),b=h.fallback,Se=s.mode,Oe=n.child,Ie=Oe.sibling,h=Zs(Oe,{mode:"hidden",children:h.children}),h.subtreeFlags=Oe.subtreeFlags&65011712,Ie!==null?b=Zs(Ie,b):(b=Cs(b,Se,l,null),b.flags|=2),b.return=s,h.return=s,h.sibling=b,s.child=h,h=b,b=s.child,Se=n.child.memoizedState,Se===null?Se=Cy(l):(Oe=Se.cachePool,Oe!==null?(Ie=Vi._currentValue,Oe=Oe.parent!==Ie?{parent:Ie,pool:Ie}:Oe):Oe=Wf(),Se={baseLanes:Se.baseLanes|l,cachePool:Oe}),b.memoizedState=Se,b.childLanes=wy(n,fe,l),s.memoizedState=Ep,h):(br(s),l=n.child,n=l.sibling,l=Zs(l,{mode:"visible",children:h.children}),l.return=s,l.sibling=null,n!==null&&(fe=s.deletions,fe===null?(s.deletions=[n],s.flags|=16):fe.push(n)),s.child=l,s.memoizedState=null,l)}function Dp(n,s){return s=Op({mode:"visible",children:s},n.mode),s.return=n,n.child=s}function Op(n,s){return n=za(22,n,null,s),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function rl(n,s,l){return dc(s,n.child,null,l),n=Dp(s,s.pendingProps.children),n.flags|=2,s.memoizedState=null,n}function vh(n,s,l){n.lanes|=s;var h=n.alternate;h!==null&&(h.lanes|=s),Yf(n.return,s,l)}function jp(n,s,l,h,b){var M=n.memoizedState;M===null?n.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:l,tailMode:b}:(M.isBackwards=s,M.rendering=null,M.renderingStartTime=0,M.last=h,M.tail=l,M.tailMode=b)}function Lp(n,s,l){var h=s.pendingProps,b=h.revealOrder,M=h.tail;if(Wi(n,s,h.children,l),h=ni.current,(h&2)!==0)h=h&1|2,s.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=s.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&vh(n,l,s);else if(n.tag===19)vh(n,l,s);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===s)break e;for(;n.sibling===null;){if(n.return===null||n.return===s)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}h&=1}switch(g(ni,h),b){case"forwards":for(l=s.child,b=null;l!==null;)n=l.alternate,n!==null&&ph(n)===null&&(b=l),l=l.sibling;l=b,l===null?(b=s.child,s.child=null):(b=l.sibling,l.sibling=null),jp(s,!1,b,l,M);break;case"backwards":for(l=null,b=s.child,s.child=null;b!==null;){if(n=b.alternate,n!==null&&ph(n)===null){s.child=b;break}n=b.sibling,b.sibling=l,l=b,b=n}jp(s,!0,l,null,M);break;case"together":jp(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Oo(n,s,l){if(n!==null&&(s.dependencies=n.dependencies),Sr|=s.lanes,(l&s.childLanes)===0)if(n!==null){if(hu(n,s,l,!1),(l&s.childLanes)===0)return null}else return null;if(n!==null&&s.child!==n.child)throw Error(c(153));if(s.child!==null){for(n=s.child,l=Zs(n,n.pendingProps),s.child=l,l.return=s;n.sibling!==null;)n=n.sibling,l=l.sibling=Zs(n,n.pendingProps),l.return=s;l.sibling=null}return s.child}function Rp(n,s){return(n.lanes&s)!==0?!0:(n=n.dependencies,!!(n!==null&&Zd(n)))}function G1(n,s,l){switch(s.tag){case 3:w(s,s.stateNode.containerInfo),pr(s,Vi,n.memoizedState.cache),uu();break;case 27:case 5:N(s);break;case 4:w(s,s.stateNode.containerInfo);break;case 10:pr(s,s.type,s.memoizedProps.value);break;case 13:var h=s.memoizedState;if(h!==null)return h.dehydrated!==null?(br(s),s.flags|=128,null):(l&s.child.childLanes)!==0?ky(n,s,l):(br(s),n=Oo(n,s,l),n!==null?n.sibling:null);br(s);break;case 19:var b=(n.flags&128)!==0;if(h=(l&s.childLanes)!==0,h||(hu(n,s,l,!1),h=(l&s.childLanes)!==0),b){if(h)return Lp(n,s,l);s.flags|=128}if(b=s.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),g(ni,ni.current),h)break;return null;case 22:case 23:return s.lanes=0,kp(n,s,l);case 24:pr(s,Vi,n.memoizedState.cache)}return Oo(n,s,l)}function P1(n,s,l){if(n!==null)if(n.memoizedProps!==s.pendingProps)qi=!0;else{if(!Rp(n,l)&&(s.flags&128)===0)return qi=!1,G1(n,s,l);qi=(n.flags&131072)!==0}else qi=!1,Bn&&(s.flags&1048576)!==0&&qf(s,lu,s.index);switch(s.lanes=0,s.tag){case 16:e:{n=s.pendingProps;var h=s.elementType,b=h._init;if(h=b(h._payload),s.type=h,typeof h=="function")qd(h)?(n=ol(h,n),s.tag=1,s=Mp(null,s,h,n,l)):(s.tag=0,s=Tp(null,s,h,n,l));else{if(h!=null){if(b=h.$$typeof,b===X){s.tag=11,s=$1(null,s,h,n,l);break e}else if(b===I){s.tag=14,s=vr(null,s,h,n,l);break e}}throw s=T(h)||h,Error(c(306,s,""))}}return s;case 0:return Tp(n,s,s.type,s.pendingProps,l);case 1:return h=s.type,b=ol(h,s.pendingProps),Mp(n,s,h,b,l);case 3:e:{if(w(s,s.stateNode.containerInfo),n===null)throw Error(c(387));h=s.pendingProps;var M=s.memoizedState;b=M.element,np(n,s),gr(s,h,null,l);var fe=s.memoizedState;if(h=fe.cache,pr(s,Vi,h),h!==M.cache&&Fm(s,[Vi],l,!0),gu(),h=fe.element,M.isDehydrated)if(M={element:h,isDehydrated:!1,cache:fe.cache},s.updateQueue.baseState=M,s.memoizedState=M,s.flags&256){s=Ap(n,s,h,l);break e}else if(h!==b){b=ss(Error(c(424)),s),du(b),s=Ap(n,s,h,l);break e}else{switch(n=s.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Gn=no(n.firstChild),Ni=s,Bn=!0,ks=null,Ts=!0,l=Ao(s,null,h,l),s.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(uu(),h===b){s=Oo(n,s,l);break e}Wi(n,s,h,l)}s=s.child}return s;case 26:return bh(n,s),n===null?(l=av(s.type,null,s.pendingProps,null))?s.memoizedState=l:Bn||(l=s.type,n=s.pendingProps,h=Rs(Z.current).createElement(l),h[bt]=s,h[St]=n,en(h,l,n),wt(h),s.stateNode=h):s.memoizedState=av(s.type,n.memoizedProps,s.pendingProps,n.memoizedState),null;case 27:return N(s),n===null&&Bn&&(h=s.stateNode=jt(s.type,s.pendingProps,Z.current),Ni=s,Ts=!0,b=Gn,ml(s.type)?(yl=b,Gn=no(h.firstChild)):Gn=b),Wi(n,s,s.pendingProps.children,l),bh(n,s),n===null&&(s.flags|=4194304),s.child;case 5:return n===null&&Bn&&((b=h=Gn)&&(h=Gu(h,s.type,s.pendingProps,Ts),h!==null?(s.stateNode=h,Ni=s,Gn=no(h.firstChild),Ts=!1,b=!0):b=!1),b||hr(s)),N(s),b=s.type,M=s.pendingProps,fe=n!==null?n.memoizedProps:null,h=M.children,$o(b,M)?h=null:fe!==null&&$o(b,fe)&&(s.flags|=32),s.memoizedState!==null&&(b=sp(n,s,D1,null,null,l),Fa._currentValue=b),bh(n,s),Wi(n,s,h,l),s.child;case 6:return n===null&&Bn&&((n=l=Gn)&&(l=s_(l,s.pendingProps,Ts),l!==null?(s.stateNode=l,Ni=s,Gn=null,n=!0):n=!1),n||hr(s)),null;case 13:return ky(n,s,l);case 4:return w(s,s.stateNode.containerInfo),h=s.pendingProps,n===null?s.child=dc(s,null,h,l):Wi(n,s,h,l),s.child;case 11:return $1(n,s,s.type,s.pendingProps,l);case 7:return Wi(n,s,s.pendingProps,l),s.child;case 8:return Wi(n,s,s.pendingProps.children,l),s.child;case 12:return Wi(n,s,s.pendingProps.children,l),s.child;case 10:return h=s.pendingProps,pr(s,s.type,h.value),Wi(n,s,h.children,l),s.child;case 9:return b=s.type._context,h=s.pendingProps.children,Kr(s),b=Zi(b),h=h(b),s.flags|=1,Wi(n,s,h,l),s.child;case 14:return vr(n,s,s.type,s.pendingProps,l);case 15:return fc(n,s,s.type,s.pendingProps,l);case 19:return Lp(n,s,l);case 31:return h=s.pendingProps,l=s.mode,h={mode:h.mode,children:h.children},n===null?(l=Op(h,l),l.ref=s.ref,s.child=l,l.return=s,s=l):(l=Zs(n.child,h),l.ref=s.ref,s.child=l,l.return=s,s=l),s;case 22:return kp(n,s,l);case 24:return Kr(s),h=Zi(Vi),n===null?(b=Jd(),b===null&&(b=oi,M=pu(),b.pooledCache=M,M.refCount++,M!==null&&(b.pooledCacheLanes|=l),b=M),s.memoizedState={parent:h,cache:b},tp(s),pr(s,Vi,b)):((n.lanes&l)!==0&&(np(n,s),gr(s,null,null,l),gu()),b=n.memoizedState,M=s.memoizedState,b.parent!==h?(b={parent:h,cache:h},s.memoizedState=b,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=b),pr(s,Vi,h)):(h=M.cache,pr(s,Vi,h),h!==b.cache&&Fm(s,[Vi],l,!0))),Wi(n,s,s.pendingProps.children,l),s.child;case 29:throw s.pendingProps}throw Error(c(156,s.tag))}function jo(n){n.flags|=4}function Cu(n,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!l0(s)){if(s=ls.current,s!==null&&((An&4194048)===An?ya!==null:(An&62914560)!==An&&(An&536870912)===0||s!==ya))throw nc=Kf,Jf;n.flags|=8192}}function xh(n,s){s!==null&&(n.flags|=4),n.flags&16384&&(s=n.tag!==22?lt():536870912,n.lanes|=s,Au|=s)}function wu(n,s){if(!Bn)switch(n.tailMode){case"hidden":s=n.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var h=null;l!==null;)l.alternate!==null&&(h=l),l=l.sibling;h===null?s||n.tail===null?n.tail=null:n.tail.sibling=null:h.sibling=null}}function Jt(n){var s=n.alternate!==null&&n.alternate.child===n.child,l=0,h=0;if(s)for(var b=n.child;b!==null;)l|=b.lanes|b.childLanes,h|=b.subtreeFlags&65011712,h|=b.flags&65011712,b.return=n,b=b.sibling;else for(b=n.child;b!==null;)l|=b.lanes|b.childLanes,h|=b.subtreeFlags,h|=b.flags,b.return=n,b=b.sibling;return n.subtreeFlags|=h,n.childLanes=l,s}function Ty(n,s,l){var h=s.pendingProps;switch(xo(s),s.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Jt(s),null;case 1:return Jt(s),null;case 3:return l=s.stateNode,h=null,n!==null&&(h=n.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),_o(Vi),E(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(n===null||n.child===null)&&(cu(s)?jo(s):n===null||n.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Ym())),Jt(s),null;case 26:return l=s.memoizedState,n===null?(jo(s),l!==null?(Jt(s),Cu(s,l)):(Jt(s),s.flags&=-16777217)):l?l!==n.memoizedState?(jo(s),Jt(s),Cu(s,l)):(Jt(s),s.flags&=-16777217):(n.memoizedProps!==h&&jo(s),Jt(s),s.flags&=-16777217),null;case 27:ce(s),l=Z.current;var b=s.type;if(n!==null&&s.stateNode!=null)n.memoizedProps!==h&&jo(s);else{if(!h){if(s.stateNode===null)throw Error(c(166));return Jt(s),null}n=C.current,cu(s)?Fd(s):(n=jt(b,h,l),s.stateNode=n,jo(s))}return Jt(s),null;case 5:if(ce(s),l=s.type,n!==null&&s.stateNode!=null)n.memoizedProps!==h&&jo(s);else{if(!h){if(s.stateNode===null)throw Error(c(166));return Jt(s),null}if(n=C.current,cu(s))Fd(s);else{switch(b=Rs(Z.current),n){case 1:n=b.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:n=b.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":n=b.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":n=b.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":n=b.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof h.is=="string"?b.createElement("select",{is:h.is}):b.createElement("select"),h.multiple?n.multiple=!0:h.size&&(n.size=h.size);break;default:n=typeof h.is=="string"?b.createElement(l,{is:h.is}):b.createElement(l)}}n[bt]=s,n[St]=h;e:for(b=s.child;b!==null;){if(b.tag===5||b.tag===6)n.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===s)break e;for(;b.sibling===null;){if(b.return===null||b.return===s)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}s.stateNode=n;e:switch(en(n,l,h),l){case"button":case"input":case"select":case"textarea":n=!!h.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&jo(s)}}return Jt(s),s.flags&=-16777217,null;case 6:if(n&&s.stateNode!=null)n.memoizedProps!==h&&jo(s);else{if(typeof h!="string"&&s.stateNode===null)throw Error(c(166));if(n=Z.current,cu(s)){if(n=s.stateNode,l=s.memoizedProps,h=null,b=Ni,b!==null)switch(b.tag){case 27:case 5:h=b.memoizedProps}n[bt]=s,n=!!(n.nodeValue===l||h!==null&&h.suppressHydrationWarning===!0||a0(n.nodeValue,l)),n||hr(s)}else n=Rs(n).createTextNode(h),n[bt]=s,s.stateNode=n}return Jt(s),null;case 13:if(h=s.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(b=cu(s),h!==null&&h.dehydrated!==null){if(n===null){if(!b)throw Error(c(318));if(b=s.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(c(317));b[bt]=s}else uu(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Jt(s),b=!1}else b=Ym(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=b),b=!0;if(!b)return s.flags&256?(eo(s),s):(eo(s),null)}if(eo(s),(s.flags&128)!==0)return s.lanes=l,s;if(l=h!==null,n=n!==null&&n.memoizedState!==null,l){h=s.child,b=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(b=h.alternate.memoizedState.cachePool.pool);var M=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(M=h.memoizedState.cachePool.pool),M!==b&&(h.flags|=2048)}return l!==n&&l&&(s.child.flags|=8192),xh(s,s.updateQueue),Jt(s),null;case 4:return E(),n===null&&n0(s.stateNode.containerInfo),Jt(s),null;case 10:return _o(s.type),Jt(s),null;case 19:if(ye(ni),b=s.memoizedState,b===null)return Jt(s),null;if(h=(s.flags&128)!==0,M=b.rendering,M===null)if(h)wu(b,!1);else{if(ji!==0||n!==null&&(n.flags&128)!==0)for(n=s.child;n!==null;){if(M=ph(n),M!==null){for(s.flags|=128,wu(b,!1),n=M.updateQueue,s.updateQueue=n,xh(s,n),s.subtreeFlags=0,n=l,l=s.child;l!==null;)_n(l,n),l=l.sibling;return g(ni,ni.current&1|2),s.child}n=n.sibling}b.tail!==null&&ge()>Vp&&(s.flags|=128,h=!0,wu(b,!1),s.lanes=4194304)}else{if(!h)if(n=ph(M),n!==null){if(s.flags|=128,h=!0,n=n.updateQueue,s.updateQueue=n,xh(s,n),wu(b,!0),b.tail===null&&b.tailMode==="hidden"&&!M.alternate&&!Bn)return Jt(s),null}else 2*ge()-b.renderingStartTime>Vp&&l!==536870912&&(s.flags|=128,h=!0,wu(b,!1),s.lanes=4194304);b.isBackwards?(M.sibling=s.child,s.child=M):(n=b.last,n!==null?n.sibling=M:s.child=M,b.last=M)}return b.tail!==null?(s=b.tail,b.rendering=s,b.tail=s.sibling,b.renderingStartTime=ge(),s.sibling=null,n=ni.current,g(ni,h?n&1|2:n&1),s):(Jt(s),null);case 22:case 23:return eo(s),yu(),h=s.memoizedState!==null,n!==null?n.memoizedState!==null!==h&&(s.flags|=8192):h&&(s.flags|=8192),h?(l&536870912)!==0&&(s.flags&128)===0&&(Jt(s),s.subtreeFlags&6&&(s.flags|=8192)):Jt(s),l=s.updateQueue,l!==null&&xh(s,l.retryQueue),l=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==l&&(s.flags|=2048),n!==null&&ye(Co),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),s.memoizedState.cache!==l&&(s.flags|=2048),_o(Vi),Jt(s),null;case 25:return null;case 30:return null}throw Error(c(156,s.tag))}function Wx(n,s){switch(xo(s),s.tag){case 1:return n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 3:return _o(Vi),E(),n=s.flags,(n&65536)!==0&&(n&128)===0?(s.flags=n&-65537|128,s):null;case 26:case 27:case 5:return ce(s),null;case 13:if(eo(s),n=s.memoizedState,n!==null&&n.dehydrated!==null){if(s.alternate===null)throw Error(c(340));uu()}return n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 19:return ye(ni),null;case 4:return E(),null;case 10:return _o(s.type),null;case 22:case 23:return eo(s),yu(),n!==null&&ye(Co),n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 24:return _o(Vi),null;case 25:return null;default:return null}}function My(n,s){switch(xo(s),s.tag){case 3:_o(Vi),E();break;case 26:case 27:case 5:ce(s);break;case 4:E();break;case 13:eo(s);break;case 19:ye(ni);break;case 10:_o(s.type);break;case 22:case 23:eo(s),yu(),n!==null&&ye(Co);break;case 24:_o(Vi)}}function _h(n,s){try{var l=s.updateQueue,h=l!==null?l.lastEffect:null;if(h!==null){var b=h.next;l=b;do{if((l.tag&n)===n){h=void 0;var M=l.create,fe=l.inst;h=M(),fe.destroy=h}l=l.next}while(l!==b)}}catch(Se){Jn(s,s.return,Se)}}function ll(n,s,l){try{var h=s.updateQueue,b=h!==null?h.lastEffect:null;if(b!==null){var M=b.next;h=M;do{if((h.tag&n)===n){var fe=h.inst,Se=fe.destroy;if(Se!==void 0){fe.destroy=void 0,b=s;var Oe=l,Ie=Se;try{Ie()}catch(at){Jn(b,Oe,at)}}}h=h.next}while(h!==M)}}catch(at){Jn(s,s.return,at)}}function Np(n){var s=n.updateQueue;if(s!==null){var l=n.stateNode;try{th(s,l)}catch(h){Jn(n,n.return,h)}}}function Ay(n,s,l){l.props=ol(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(h){Jn(n,s,h)}}function ku(n,s){try{var l=n.ref;if(l!==null){switch(n.tag){case 26:case 27:case 5:var h=n.stateNode;break;case 30:h=n.stateNode;break;default:h=n.stateNode}typeof l=="function"?n.refCleanup=l(h):l.current=h}}catch(b){Jn(n,s,b)}}function to(n,s){var l=n.ref,h=n.refCleanup;if(l!==null)if(typeof h=="function")try{h()}catch(b){Jn(n,s,b)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(b){Jn(n,s,b)}else l.current=null}function Tu(n){var s=n.type,l=n.memoizedProps,h=n.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":l.autoFocus&&h.focus();break e;case"img":l.src?h.src=l.src:l.srcSet&&(h.srcset=l.srcSet)}}catch(b){Jn(n,n.return,b)}}function Ey(n,s,l){try{var h=n.stateNode;n_(h,n.type,l,s),h[St]=s}catch(b){Jn(n,n.return,b)}}function V1(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&ml(n.type)||n.tag===4}function Ds(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||V1(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&ml(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function gc(n,s,l){var h=n.tag;if(h===5||h===6)n=n.stateNode,s?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,s):(s=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,s.appendChild(n),l=l._reactRootContainer,l!=null||s.onclick!==null||(s.onclick=tg));else if(h!==4&&(h===27&&ml(n.type)&&(l=n.stateNode,s=null),n=n.child,n!==null))for(gc(n,s,l),n=n.sibling;n!==null;)gc(n,s,l),n=n.sibling}function zp(n,s,l){var h=n.tag;if(h===5||h===6)n=n.stateNode,s?l.insertBefore(n,s):l.appendChild(n);else if(h!==4&&(h===27&&ml(n.type)&&(l=n.stateNode),n=n.child,n!==null))for(zp(n,s,l),n=n.sibling;n!==null;)zp(n,s,l),n=n.sibling}function Bp(n){var s=n.stateNode,l=n.memoizedProps;try{for(var h=n.type,b=s.attributes;b.length;)s.removeAttributeNode(b[0]);en(s,h,l),s[bt]=n,s[St]=l}catch(M){Jn(n,n.return,M)}}var Lo=!1,Di=!1,Up=!1,Hp=typeof WeakSet=="function"?WeakSet:Set,Yi=null;function Dy(n,s){if(n=n.containerInfo,Rh=$h,n=Hm(n),Vd(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var h=l.getSelection&&l.getSelection();if(h&&h.rangeCount!==0){l=h.anchorNode;var b=h.anchorOffset,M=h.focusNode;h=h.focusOffset;try{l.nodeType,M.nodeType}catch{l=null;break e}var fe=0,Se=-1,Oe=-1,Ie=0,at=0,dt=n,Xe=null;t:for(;;){for(var Qe;dt!==l||b!==0&&dt.nodeType!==3||(Se=fe+b),dt!==M||h!==0&&dt.nodeType!==3||(Oe=fe+h),dt.nodeType===3&&(fe+=dt.nodeValue.length),(Qe=dt.firstChild)!==null;)Xe=dt,dt=Qe;for(;;){if(dt===n)break t;if(Xe===l&&++Ie===b&&(Se=fe),Xe===M&&++at===h&&(Oe=fe),(Qe=dt.nextSibling)!==null)break;dt=Xe,Xe=dt.parentNode}dt=Qe}l=Se===-1||Oe===-1?null:{start:Se,end:Oe}}else l=null}l=l||{start:0,end:0}}else l=null;for(Nh={focusedElem:n,selectionRange:l},$h=!1,Yi=s;Yi!==null;)if(s=Yi,n=s.child,(s.subtreeFlags&1024)!==0&&n!==null)n.return=s,Yi=n;else for(;Yi!==null;){switch(s=Yi,M=s.alternate,n=s.flags,s.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&M!==null){n=void 0,l=s,b=M.memoizedProps,M=M.memoizedState,h=l.stateNode;try{var Xt=ol(l.type,b,l.elementType===l.type);n=h.getSnapshotBeforeUpdate(Xt,M),h.__reactInternalSnapshotBeforeUpdate=n}catch(Zt){Jn(l,l.return,Zt)}}break;case 3:if((n&1024)!==0){if(n=s.stateNode.containerInfo,l=n.nodeType,l===9)zh(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":zh(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(c(163))}if(n=s.sibling,n!==null){n.return=s.return,Yi=n;break}Yi=s.return}}function Oy(n,s,l){var h=l.flags;switch(l.tag){case 0:case 11:case 15:No(n,l),h&4&&_h(5,l);break;case 1:if(No(n,l),h&4)if(n=l.stateNode,s===null)try{n.componentDidMount()}catch(fe){Jn(l,l.return,fe)}else{var b=ol(l.type,s.memoizedProps);s=s.memoizedState;try{n.componentDidUpdate(b,s,n.__reactInternalSnapshotBeforeUpdate)}catch(fe){Jn(l,l.return,fe)}}h&64&&Np(l),h&512&&ku(l,l.return);break;case 3:if(No(n,l),h&64&&(n=l.updateQueue,n!==null)){if(s=null,l.child!==null)switch(l.child.tag){case 27:case 5:s=l.child.stateNode;break;case 1:s=l.child.stateNode}try{th(n,s)}catch(fe){Jn(l,l.return,fe)}}break;case 27:s===null&&h&4&&Bp(l);case 26:case 5:No(n,l),s===null&&h&4&&Tu(l),h&512&&ku(l,l.return);break;case 12:No(n,l);break;case 13:No(n,l),h&4&&$p(n,l),h&64&&(n=l.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(l=Jx.bind(null,l),o_(n,l))));break;case 22:if(h=l.memoizedState!==null||Lo,!h){s=s!==null&&s.memoizedState!==null||Di,b=Lo;var M=Di;Lo=h,(Di=s)&&!M?cl(n,l,(l.subtreeFlags&8772)!==0):No(n,l),Lo=b,Di=M}break;case 30:break;default:No(n,l)}}function jy(n){var s=n.alternate;s!==null&&(n.alternate=null,jy(s)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(s=n.stateNode,s!==null&&Pt(s)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var bi=null,sa=!1;function Ro(n,s,l){for(l=l.child;l!==null;)wn(n,s,l),l=l.sibling}function wn(n,s,l){if(Te&&typeof Te.onCommitFiberUnmount=="function")try{Te.onCommitFiberUnmount(xe,l)}catch{}switch(l.tag){case 26:Di||to(l,s),Ro(n,s,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Di||to(l,s);var h=bi,b=sa;ml(l.type)&&(bi=l.stateNode,sa=!1),Ro(n,s,l),qa(l.stateNode),bi=h,sa=b;break;case 5:Di||to(l,s);case 6:if(h=bi,b=sa,bi=null,Ro(n,s,l),bi=h,sa=b,bi!==null)if(sa)try{(bi.nodeType===9?bi.body:bi.nodeName==="HTML"?bi.ownerDocument.body:bi).removeChild(l.stateNode)}catch(M){Jn(l,s,M)}else try{bi.removeChild(l.stateNode)}catch(M){Jn(l,s,M)}break;case 18:bi!==null&&(sa?(n=bi,ig(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,l.stateNode),Vo(n)):ig(bi,l.stateNode));break;case 4:h=bi,b=sa,bi=l.stateNode.containerInfo,sa=!0,Ro(n,s,l),bi=h,sa=b;break;case 0:case 11:case 14:case 15:Di||ll(2,l,s),Di||ll(4,l,s),Ro(n,s,l);break;case 1:Di||(to(l,s),h=l.stateNode,typeof h.componentWillUnmount=="function"&&Ay(l,s,h)),Ro(n,s,l);break;case 21:Ro(n,s,l);break;case 22:Di=(h=Di)||l.memoizedState!==null,Ro(n,s,l),Di=h;break;default:Ro(n,s,l)}}function $p(n,s){if(s.memoizedState===null&&(n=s.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Vo(n)}catch(l){Jn(s,s.return,l)}}function Ly(n){switch(n.tag){case 13:case 19:var s=n.stateNode;return s===null&&(s=n.stateNode=new Hp),s;case 22:return n=n.stateNode,s=n._retryCache,s===null&&(s=n._retryCache=new Hp),s;default:throw Error(c(435,n.tag))}}function Gp(n,s){var l=Ly(n);s.forEach(function(h){var b=Kx.bind(null,n,h);l.has(h)||(l.add(h),h.then(b,b))})}function ka(n,s){var l=s.deletions;if(l!==null)for(var h=0;h<l.length;h++){var b=l[h],M=n,fe=s,Se=fe;e:for(;Se!==null;){switch(Se.tag){case 27:if(ml(Se.type)){bi=Se.stateNode,sa=!1;break e}break;case 5:bi=Se.stateNode,sa=!1;break e;case 3:case 4:bi=Se.stateNode.containerInfo,sa=!0;break e}Se=Se.return}if(bi===null)throw Error(c(160));wn(M,fe,b),bi=null,sa=!1,M=b.alternate,M!==null&&(M.return=null),b.return=null}if(s.subtreeFlags&13878)for(s=s.child;s!==null;)Sh(s,n),s=s.sibling}var Ta=null;function Sh(n,s){var l=n.alternate,h=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:ka(s,n),Ji(n),h&4&&(ll(3,n,n.return),_h(3,n),ll(5,n,n.return));break;case 1:ka(s,n),Ji(n),h&512&&(Di||l===null||to(l,l.return)),h&64&&Lo&&(n=n.updateQueue,n!==null&&(h=n.callbacks,h!==null&&(l=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=l===null?h:l.concat(h))));break;case 26:var b=Ta;if(ka(s,n),Ji(n),h&512&&(Di||l===null||to(l,l.return)),h&4){var M=l!==null?l.memoizedState:null;if(h=n.memoizedState,l===null)if(h===null)if(n.stateNode===null){e:{h=n.type,l=n.memoizedProps,b=b.ownerDocument||b;t:switch(h){case"title":M=b.getElementsByTagName("title")[0],(!M||M[yt]||M[bt]||M.namespaceURI==="http://www.w3.org/2000/svg"||M.hasAttribute("itemprop"))&&(M=b.createElement(h),b.head.insertBefore(M,b.querySelector("head > title"))),en(M,h,l),M[bt]=n,wt(M),h=M;break e;case"link":var fe=o0("link","href",b).get(h+(l.href||""));if(fe){for(var Se=0;Se<fe.length;Se++)if(M=fe[Se],M.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&M.getAttribute("rel")===(l.rel==null?null:l.rel)&&M.getAttribute("title")===(l.title==null?null:l.title)&&M.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){fe.splice(Se,1);break t}}M=b.createElement(h),en(M,h,l),b.head.appendChild(M);break;case"meta":if(fe=o0("meta","content",b).get(h+(l.content||""))){for(Se=0;Se<fe.length;Se++)if(M=fe[Se],M.getAttribute("content")===(l.content==null?null:""+l.content)&&M.getAttribute("name")===(l.name==null?null:l.name)&&M.getAttribute("property")===(l.property==null?null:l.property)&&M.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&M.getAttribute("charset")===(l.charSet==null?null:l.charSet)){fe.splice(Se,1);break t}}M=b.createElement(h),en(M,h,l),b.head.appendChild(M);break;default:throw Error(c(468,h))}M[bt]=n,wt(M),h=M}n.stateNode=h}else r0(b,n.type,n.stateNode);else n.stateNode=ov(b,h,n.memoizedProps);else M!==h?(M===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):M.count--,h===null?r0(b,n.type,n.stateNode):ov(b,h,n.memoizedProps)):h===null&&n.stateNode!==null&&Ey(n,n.memoizedProps,l.memoizedProps)}break;case 27:ka(s,n),Ji(n),h&512&&(Di||l===null||to(l,l.return)),l!==null&&h&4&&Ey(n,n.memoizedProps,l.memoizedProps);break;case 5:if(ka(s,n),Ji(n),h&512&&(Di||l===null||to(l,l.return)),n.flags&32){b=n.stateNode;try{Wc(b,"")}catch(Qe){Jn(n,n.return,Qe)}}h&4&&n.stateNode!=null&&(b=n.memoizedProps,Ey(n,b,l!==null?l.memoizedProps:b)),h&1024&&(Up=!0);break;case 6:if(ka(s,n),Ji(n),h&4){if(n.stateNode===null)throw Error(c(162));h=n.memoizedProps,l=n.stateNode;try{l.nodeValue=h}catch(Qe){Jn(n,n.return,Qe)}}break;case 3:if(xl=null,b=Ta,Ta=ag(s.containerInfo),ka(s,n),Ta=b,Ji(n),h&4&&l!==null&&l.memoizedState.isDehydrated)try{Vo(s.containerInfo)}catch(Qe){Jn(n,n.return,Qe)}Up&&(Up=!1,Ry(n));break;case 4:h=Ta,Ta=ag(n.stateNode.containerInfo),ka(s,n),Ji(n),Ta=h;break;case 12:ka(s,n),Ji(n);break;case 13:ka(s,n),Ji(n),n.child.flags&8192&&n.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Py=ge()),h&4&&(h=n.updateQueue,h!==null&&(n.updateQueue=null,Gp(n,h)));break;case 22:b=n.memoizedState!==null;var Oe=l!==null&&l.memoizedState!==null,Ie=Lo,at=Di;if(Lo=Ie||b,Di=at||Oe,ka(s,n),Di=at,Lo=Ie,Ji(n),h&8192)e:for(s=n.stateNode,s._visibility=b?s._visibility&-2:s._visibility|1,b&&(l===null||Oe||Lo||Di||vi(n)),l=null,s=n;;){if(s.tag===5||s.tag===26){if(l===null){Oe=l=s;try{if(M=Oe.stateNode,b)fe=M.style,typeof fe.setProperty=="function"?fe.setProperty("display","none","important"):fe.display="none";else{Se=Oe.stateNode;var dt=Oe.memoizedProps.style,Xe=dt!=null&&dt.hasOwnProperty("display")?dt.display:null;Se.style.display=Xe==null||typeof Xe=="boolean"?"":(""+Xe).trim()}}catch(Qe){Jn(Oe,Oe.return,Qe)}}}else if(s.tag===6){if(l===null){Oe=s;try{Oe.stateNode.nodeValue=b?"":Oe.memoizedProps}catch(Qe){Jn(Oe,Oe.return,Qe)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===n)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===n)break e;for(;s.sibling===null;){if(s.return===null||s.return===n)break e;l===s&&(l=null),s=s.return}l===s&&(l=null),s.sibling.return=s.return,s=s.sibling}h&4&&(h=n.updateQueue,h!==null&&(l=h.retryQueue,l!==null&&(h.retryQueue=null,Gp(n,l))));break;case 19:ka(s,n),Ji(n),h&4&&(h=n.updateQueue,h!==null&&(n.updateQueue=null,Gp(n,h)));break;case 30:break;case 21:break;default:ka(s,n),Ji(n)}}function Ji(n){var s=n.flags;if(s&2){try{for(var l,h=n.return;h!==null;){if(V1(h)){l=h;break}h=h.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var b=l.stateNode,M=Ds(n);zp(n,M,b);break;case 5:var fe=l.stateNode;l.flags&32&&(Wc(fe,""),l.flags&=-33);var Se=Ds(n);zp(n,Se,fe);break;case 3:case 4:var Oe=l.stateNode.containerInfo,Ie=Ds(n);gc(n,Ie,Oe);break;default:throw Error(c(161))}}catch(at){Jn(n,n.return,at)}n.flags&=-3}s&4096&&(n.flags&=-4097)}function Ry(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var s=n;Ry(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),n=n.sibling}}function No(n,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)Oy(n,s.alternate,s),s=s.sibling}function vi(n){for(n=n.child;n!==null;){var s=n;switch(s.tag){case 0:case 11:case 14:case 15:ll(4,s,s.return),vi(s);break;case 1:to(s,s.return);var l=s.stateNode;typeof l.componentWillUnmount=="function"&&Ay(s,s.return,l),vi(s);break;case 27:qa(s.stateNode);case 26:case 5:to(s,s.return),vi(s);break;case 22:s.memoizedState===null&&vi(s);break;case 30:vi(s);break;default:vi(s)}n=n.sibling}}function cl(n,s,l){for(l=l&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var h=s.alternate,b=n,M=s,fe=M.flags;switch(M.tag){case 0:case 11:case 15:cl(b,M,l),_h(4,M);break;case 1:if(cl(b,M,l),h=M,b=h.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(Ie){Jn(h,h.return,Ie)}if(h=M,b=h.updateQueue,b!==null){var Se=h.stateNode;try{var Oe=b.shared.hiddenCallbacks;if(Oe!==null)for(b.shared.hiddenCallbacks=null,b=0;b<Oe.length;b++)ip(Oe[b],Se)}catch(Ie){Jn(h,h.return,Ie)}}l&&fe&64&&Np(M),ku(M,M.return);break;case 27:Bp(M);case 26:case 5:cl(b,M,l),l&&h===null&&fe&4&&Tu(M),ku(M,M.return);break;case 12:cl(b,M,l);break;case 13:cl(b,M,l),l&&fe&4&&$p(b,M);break;case 22:M.memoizedState===null&&cl(b,M,l),ku(M,M.return);break;case 30:break;default:cl(b,M,l)}s=s.sibling}}function Os(n,s){var l=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),n=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(n=s.memoizedState.cachePool.pool),n!==l&&(n!=null&&n.refCount++,l!=null&&So(l))}function Pp(n,s){n=null,s.alternate!==null&&(n=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==n&&(s.refCount++,n!=null&&So(n))}function oa(n,s,l,h){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)Ny(n,s,l,h),s=s.sibling}function Ny(n,s,l,h){var b=s.flags;switch(s.tag){case 0:case 11:case 15:oa(n,s,l,h),b&2048&&_h(9,s);break;case 1:oa(n,s,l,h);break;case 3:oa(n,s,l,h),b&2048&&(n=null,s.alternate!==null&&(n=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==n&&(s.refCount++,n!=null&&So(n)));break;case 12:if(b&2048){oa(n,s,l,h),n=s.stateNode;try{var M=s.memoizedProps,fe=M.id,Se=M.onPostCommit;typeof Se=="function"&&Se(fe,s.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(Oe){Jn(s,s.return,Oe)}}else oa(n,s,l,h);break;case 13:oa(n,s,l,h);break;case 23:break;case 22:M=s.stateNode,fe=s.alternate,s.memoizedState!==null?M._visibility&2?oa(n,s,l,h):Pn(n,s):M._visibility&2?oa(n,s,l,h):(M._visibility|=2,xr(n,s,l,h,(s.subtreeFlags&10256)!==0)),b&2048&&Os(fe,s);break;case 24:oa(n,s,l,h),b&2048&&Pp(s.alternate,s);break;default:oa(n,s,l,h)}}function xr(n,s,l,h,b){for(b=b&&(s.subtreeFlags&10256)!==0,s=s.child;s!==null;){var M=n,fe=s,Se=l,Oe=h,Ie=fe.flags;switch(fe.tag){case 0:case 11:case 15:xr(M,fe,Se,Oe,b),_h(8,fe);break;case 23:break;case 22:var at=fe.stateNode;fe.memoizedState!==null?at._visibility&2?xr(M,fe,Se,Oe,b):Pn(M,fe):(at._visibility|=2,xr(M,fe,Se,Oe,b)),b&&Ie&2048&&Os(fe.alternate,fe);break;case 24:xr(M,fe,Se,Oe,b),b&&Ie&2048&&Pp(fe.alternate,fe);break;default:xr(M,fe,Se,Oe,b)}s=s.sibling}}function Pn(n,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var l=n,h=s,b=h.flags;switch(h.tag){case 22:Pn(l,h),b&2048&&Os(h.alternate,h);break;case 24:Pn(l,h),b&2048&&Pp(h.alternate,h);break;default:Pn(l,h)}s=s.sibling}}var mc=8192;function Oi(n){if(n.subtreeFlags&mc)for(n=n.child;n!==null;)I1(n),n=n.sibling}function I1(n){switch(n.tag){case 26:Oi(n),n.flags&mc&&n.memoizedState!==null&&cv(Ta,n.memoizedState,n.memoizedProps);break;case 5:Oi(n);break;case 3:case 4:var s=Ta;Ta=ag(n.stateNode.containerInfo),Oi(n),Ta=s;break;case 22:n.memoizedState===null&&(s=n.alternate,s!==null&&s.memoizedState!==null?(s=mc,mc=16777216,Oi(n),mc=s):Oi(n));break;default:Oi(n)}}function zy(n){var s=n.alternate;if(s!==null&&(n=s.child,n!==null)){s.child=null;do s=n.sibling,n.sibling=null,n=s;while(n!==null)}}function yc(n){var s=n.deletions;if((n.flags&16)!==0){if(s!==null)for(var l=0;l<s.length;l++){var h=s[l];Yi=h,Uy(h,n)}zy(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)By(n),n=n.sibling}function By(n){switch(n.tag){case 0:case 11:case 15:yc(n),n.flags&2048&&ll(9,n,n.return);break;case 3:yc(n);break;case 12:yc(n);break;case 22:var s=n.stateNode;n.memoizedState!==null&&s._visibility&2&&(n.return===null||n.return.tag!==13)?(s._visibility&=-3,Ma(n)):yc(n);break;default:yc(n)}}function Ma(n){var s=n.deletions;if((n.flags&16)!==0){if(s!==null)for(var l=0;l<s.length;l++){var h=s[l];Yi=h,Uy(h,n)}zy(n)}for(n=n.child;n!==null;){switch(s=n,s.tag){case 0:case 11:case 15:ll(8,s,s.return),Ma(s);break;case 22:l=s.stateNode,l._visibility&2&&(l._visibility&=-3,Ma(s));break;default:Ma(s)}n=n.sibling}}function Uy(n,s){for(;Yi!==null;){var l=Yi;switch(l.tag){case 0:case 11:case 15:ll(8,l,s);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var h=l.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:So(l.memoizedState.cache)}if(h=l.child,h!==null)h.return=l,Yi=h;else e:for(l=n;Yi!==null;){h=Yi;var b=h.sibling,M=h.return;if(jy(h),h===l){Yi=null;break e}if(b!==null){b.return=M,Yi=b;break e}Yi=M}}}var Hy={getCacheForType:function(n){var s=Zi(Vi),l=s.data.get(n);return l===void 0&&(l=n(),s.data.set(n,l)),l}},q1=typeof WeakMap=="function"?WeakMap:Map,Zn=0,oi=null,Mn=null,An=0,Qn=0,Pa=null,zo=!1,Mu=!1,$y=!1,_r=0,ji=0,Sr=0,bc=0,Bo=0,js=0,Au=0,Eu=null,Va=null,Gy=!1,Py=0,Vp=1/0,Du=null,ul=null,ra=0,Uo=null,Ou=null,la=0,Ip=0,qp=null,Vy=null,ju=0,Iy=null;function cs(){if((Zn&2)!==0&&An!==0)return An&-An;if(A.T!==null){var n=Ms;return n!==0?n:Sc()}return _t()}function qy(){js===0&&(js=(An&536870912)===0||Bn?ut():536870912);var n=ls.current;return n!==null&&(n.flags|=32),js}function us(n,s,l){(n===oi&&(Qn===2||Qn===9)||n.cancelPendingCommit!==null)&&(Ho(n,0),Cr(n,An,js,!1)),ft(n,l),((Zn&2)===0||n!==oi)&&(n===oi&&((Zn&2)===0&&(bc|=l),ji===4&&Cr(n,An,js,!1)),Ia(n))}function Lu(n,s,l){if((Zn&6)!==0)throw Error(c(327));var h=!l&&(s&124)===0&&(s&n.expiredLanes)===0||st(n,s),b=h?Fy(n,s):Yp(n,s,!0),M=h;do{if(b===0){Mu&&!h&&Cr(n,s,0,!1);break}else{if(l=n.current.alternate,M&&!Y1(l)){b=Yp(n,s,!1),M=!1;continue}if(b===2){if(M=s,n.errorRecoveryDisabledLanes&M)var fe=0;else fe=n.pendingLanes&-536870913,fe=fe!==0?fe:fe&536870912?536870912:0;if(fe!==0){s=fe;e:{var Se=n;b=Eu;var Oe=Se.current.memoizedState.isDehydrated;if(Oe&&(Ho(Se,fe).flags|=256),fe=Yp(Se,fe,!1),fe!==2){if($y&&!Oe){Se.errorRecoveryDisabledLanes|=M,bc|=M,b=4;break e}M=Va,Va=b,M!==null&&(Va===null?Va=M:Va.push.apply(Va,M))}b=fe}if(M=!1,b!==2)continue}}if(b===1){Ho(n,0),Cr(n,s,0,!0);break}e:{switch(h=n,M=b,M){case 0:case 1:throw Error(c(345));case 4:if((s&4194048)!==s)break;case 6:Cr(h,s,js,!zo);break e;case 2:Va=null;break;case 3:case 5:break;default:throw Error(c(329))}if((s&62914560)===s&&(b=Py+300-ge(),10<b)){if(Cr(h,s,js,!zo),rt(h,0,!0)!==0)break e;h.timeoutHandle=ng(Ch.bind(null,h,l,Va,Du,Gy,s,js,bc,Au,zo,M,2,-0,0),b);break e}Ch(h,l,Va,Du,Gy,s,js,bc,Au,zo,M,0,-0,0)}}break}while(!0);Ia(n)}function Ch(n,s,l,h,b,M,fe,Se,Oe,Ie,at,dt,Xe,Qe){if(n.timeoutHandle=-1,dt=s.subtreeFlags,(dt&8192||(dt&16785408)===16785408)&&(qu={stylesheets:null,count:0,unsuspend:lv},I1(s),dt=c0(),dt!==null)){n.cancelPendingCommit=dt(Z1.bind(null,n,s,M,l,h,b,fe,Se,Oe,at,1,Xe,Qe)),Cr(n,M,fe,!Ie);return}Z1(n,s,M,l,h,b,fe,Se,Oe)}function Y1(n){for(var s=n;;){var l=s.tag;if((l===0||l===11||l===15)&&s.flags&16384&&(l=s.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var h=0;h<l.length;h++){var b=l[h],M=b.getSnapshot;b=b.value;try{if(!aa(M(),b))return!1}catch{return!1}}if(l=s.child,s.subtreeFlags&16384&&l!==null)l.return=s,s=l;else{if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Cr(n,s,l,h){s&=~Bo,s&=~bc,n.suspendedLanes|=s,n.pingedLanes&=~s,h&&(n.warmLanes|=s),h=n.expirationTimes;for(var b=s;0<b;){var M=31-Ae(b),fe=1<<M;h[M]=-1,b&=~fe}l!==0&&Ot(n,l,s)}function vc(){return(Zn&6)===0?(Mh(0),!1):!0}function dl(){if(Mn!==null){if(Qn===0)var n=Mn.return;else n=Mn,Ws=fr=null,rp(n),cc=null,xu=0,n=Mn;for(;n!==null;)My(n.alternate,n),n=n.return;Mn=null}}function Ho(n,s){var l=n.timeoutHandle;l!==-1&&(n.timeoutHandle=-1,i_(l)),l=n.cancelPendingCommit,l!==null&&(n.cancelPendingCommit=null,l()),dl(),oi=n,Mn=l=Zs(n.current,null),An=s,Qn=0,Pa=null,zo=!1,Mu=st(n,s),$y=!1,Au=js=Bo=bc=Sr=ji=0,Va=Eu=null,Gy=!1,(s&8)!==0&&(s|=s&32);var h=n.entangledLanes;if(h!==0)for(n=n.entanglements,h&=s;0<h;){var b=31-Ae(h),M=1<<b;s|=n[b],h&=~M}return _r=s,Xs(),l}function Yy(n,s){dn=null,A.H=Sp,s===tl||s===Kd?(s=Qm(),Qn=3):s===Jf?(s=Qm(),Qn=4):Qn=s===Ei?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Pa=s,Mn===null&&(ji=1,yh(n,ss(s,n.current)))}function F1(){var n=A.H;return A.H=Sp,n===null?Sp:n}function xc(){var n=A.A;return A.A=Hy,n}function _c(){ji=4,zo||(An&4194048)!==An&&ls.current!==null||(Mu=!0),(Sr&134217727)===0&&(bc&134217727)===0||oi===null||Cr(oi,An,js,!1)}function Yp(n,s,l){var h=Zn;Zn|=2;var b=F1(),M=xc();(oi!==n||An!==s)&&(Du=null,Ho(n,s)),s=!1;var fe=ji;e:do try{if(Qn!==0&&Mn!==null){var Se=Mn,Oe=Pa;switch(Qn){case 8:dl(),fe=6;break e;case 3:case 2:case 9:case 6:ls.current===null&&(s=!0);var Ie=Qn;if(Qn=0,Pa=null,Ru(n,Se,Oe,Ie),l&&Mu){fe=0;break e}break;default:Ie=Qn,Qn=0,Pa=null,Ru(n,Se,Oe,Ie)}}Fp(),fe=ji;break}catch(at){Yy(n,at)}while(!0);return s&&n.shellSuspendCounter++,Ws=fr=null,Zn=h,A.H=b,A.A=M,Mn===null&&(oi=null,An=0,Xs()),fe}function Fp(){for(;Mn!==null;)Zy(Mn)}function Fy(n,s){var l=Zn;Zn|=2;var h=F1(),b=xc();oi!==n||An!==s?(Du=null,Vp=ge()+500,Ho(n,s)):Mu=st(n,s);e:do try{if(Qn!==0&&Mn!==null){s=Mn;var M=Pa;t:switch(Qn){case 1:Qn=0,Pa=null,Ru(n,s,M,1);break;case 2:case 9:if(ep(M)){Qn=0,Pa=null,Qy(s);break}s=function(){Qn!==2&&Qn!==9||oi!==n||(Qn=7),Ia(n)},M.then(s,s);break e;case 3:Qn=7;break e;case 4:Qn=5;break e;case 7:ep(M)?(Qn=0,Pa=null,Qy(s)):(Qn=0,Pa=null,Ru(n,s,M,7));break;case 5:var fe=null;switch(Mn.tag){case 26:fe=Mn.memoizedState;case 5:case 27:var Se=Mn;if(!fe||l0(fe)){Qn=0,Pa=null;var Oe=Se.sibling;if(Oe!==null)Mn=Oe;else{var Ie=Se.return;Ie!==null?(Mn=Ie,wh(Ie)):Mn=null}break t}}Qn=0,Pa=null,Ru(n,s,M,5);break;case 6:Qn=0,Pa=null,Ru(n,s,M,6);break;case 8:dl(),ji=6;break e;default:throw Error(c(462))}}Xy();break}catch(at){Yy(n,at)}while(!0);return Ws=fr=null,A.H=h,A.A=b,Zn=l,Mn!==null?0:(oi=null,An=0,Xs(),ji)}function Xy(){for(;Mn!==null&&!re();)Zy(Mn)}function Zy(n){var s=P1(n.alternate,n,_r);n.memoizedProps=n.pendingProps,s===null?wh(n):Mn=s}function Qy(n){var s=n,l=s.alternate;switch(s.tag){case 15:case 0:s=Sy(l,s,s.pendingProps,s.type,void 0,An);break;case 11:s=Sy(l,s,s.pendingProps,s.type.render,s.ref,An);break;case 5:rp(s);default:My(l,s),s=Mn=_n(s,_r),s=P1(l,s,_r)}n.memoizedProps=n.pendingProps,s===null?wh(n):Mn=s}function Ru(n,s,l,h){Ws=fr=null,rp(s),cc=null,xu=0;var b=s.return;try{if(H1(n,b,s,l,An)){ji=1,yh(n,ss(l,n.current)),Mn=null;return}}catch(M){if(b!==null)throw Mn=b,M;ji=1,yh(n,ss(l,n.current)),Mn=null;return}s.flags&32768?(Bn||h===1?n=!0:Mu||(An&536870912)!==0?n=!1:(zo=n=!0,(h===2||h===9||h===3||h===6)&&(h=ls.current,h!==null&&h.tag===13&&(h.flags|=16384))),X1(s,n)):wh(s)}function wh(n){var s=n;do{if((s.flags&32768)!==0){X1(s,zo);return}n=s.return;var l=Ty(s.alternate,s,_r);if(l!==null){Mn=l;return}if(s=s.sibling,s!==null){Mn=s;return}Mn=s=n}while(s!==null);ji===0&&(ji=5)}function X1(n,s){do{var l=Wx(n.alternate,n);if(l!==null){l.flags&=32767,Mn=l;return}if(l=n.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!s&&(n=n.sibling,n!==null)){Mn=n;return}Mn=n=l}while(n!==null);ji=6,Mn=null}function Z1(n,s,l,h,b,M,fe,Se,Oe){n.cancelPendingCommit=null;do Zp();while(ra!==0);if((Zn&6)!==0)throw Error(c(327));if(s!==null){if(s===n.current)throw Error(c(177));if(M=s.lanes|s.childLanes,M|=bo,ot(n,l,M,fe,Se,Oe),n===oi&&(Mn=oi=null,An=0),Ou=s,Uo=n,la=l,Ip=M,qp=b,Vy=h,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,e_(Ee,function(){return Wy(),null})):(n.callbackNode=null,n.callbackPriority=0),h=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||h){h=A.T,A.T=null,b=L.p,L.p=2,fe=Zn,Zn|=4;try{Dy(n,s,l)}finally{Zn=fe,L.p=b,A.T=h}}ra=1,Q1(),kh(),Xp()}}function Q1(){if(ra===1){ra=0;var n=Uo,s=Ou,l=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||l){l=A.T,A.T=null;var h=L.p;L.p=2;var b=Zn;Zn|=4;try{Sh(s,n);var M=Nh,fe=Hm(n.containerInfo),Se=M.focusedElem,Oe=M.selectionRange;if(fe!==Se&&Se&&Se.ownerDocument&&Pd(Se.ownerDocument.documentElement,Se)){if(Oe!==null&&Vd(Se)){var Ie=Oe.start,at=Oe.end;if(at===void 0&&(at=Ie),"selectionStart"in Se)Se.selectionStart=Ie,Se.selectionEnd=Math.min(at,Se.value.length);else{var dt=Se.ownerDocument||document,Xe=dt&&dt.defaultView||window;if(Xe.getSelection){var Qe=Xe.getSelection(),Xt=Se.textContent.length,Zt=Math.min(Oe.start,Xt),Vn=Oe.end===void 0?Zt:Math.min(Oe.end,Xt);!Qe.extend&&Zt>Vn&&(fe=Vn,Vn=Zt,Zt=fe);var Pe=hi(Se,Zt),He=hi(Se,Vn);if(Pe&&He&&(Qe.rangeCount!==1||Qe.anchorNode!==Pe.node||Qe.anchorOffset!==Pe.offset||Qe.focusNode!==He.node||Qe.focusOffset!==He.offset)){var Ve=dt.createRange();Ve.setStart(Pe.node,Pe.offset),Qe.removeAllRanges(),Zt>Vn?(Qe.addRange(Ve),Qe.extend(He.node,He.offset)):(Ve.setEnd(He.node,He.offset),Qe.addRange(Ve))}}}}for(dt=[],Qe=Se;Qe=Qe.parentNode;)Qe.nodeType===1&&dt.push({element:Qe,left:Qe.scrollLeft,top:Qe.scrollTop});for(typeof Se.focus=="function"&&Se.focus(),Se=0;Se<dt.length;Se++){var ct=dt[Se];ct.element.scrollLeft=ct.left,ct.element.scrollTop=ct.top}}$h=!!Rh,Nh=Rh=null}finally{Zn=b,L.p=h,A.T=l}}n.current=s,ra=2}}function kh(){if(ra===2){ra=0;var n=Uo,s=Ou,l=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||l){l=A.T,A.T=null;var h=L.p;L.p=2;var b=Zn;Zn|=4;try{Oy(n,s.alternate,s)}finally{Zn=b,L.p=h,A.T=l}}ra=3}}function Xp(){if(ra===4||ra===3){ra=0,le();var n=Uo,s=Ou,l=la,h=Vy;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?ra=5:(ra=0,Ou=Uo=null,W1(n,n.pendingLanes));var b=n.pendingLanes;if(b===0&&(ul=null),It(l),s=s.stateNode,Te&&typeof Te.onCommitFiberRoot=="function")try{Te.onCommitFiberRoot(xe,s,void 0,(s.current.flags&128)===128)}catch{}if(h!==null){s=A.T,b=L.p,L.p=2,A.T=null;try{for(var M=n.onRecoverableError,fe=0;fe<h.length;fe++){var Se=h[fe];M(Se.value,{componentStack:Se.stack})}}finally{A.T=s,L.p=b}}(la&3)!==0&&Zp(),Ia(n),b=n.pendingLanes,(l&4194090)!==0&&(b&42)!==0?n===Iy?ju++:(ju=0,Iy=n):ju=0,Mh(0)}}function W1(n,s){(n.pooledCacheLanes&=s)===0&&(s=n.pooledCache,s!=null&&(n.pooledCache=null,So(s)))}function Zp(n){return Q1(),kh(),Xp(),Wy()}function Wy(){if(ra!==5)return!1;var n=Uo,s=Ip;Ip=0;var l=It(la),h=A.T,b=L.p;try{L.p=32>l?32:l,A.T=null,l=qp,qp=null;var M=Uo,fe=la;if(ra=0,Ou=Uo=null,la=0,(Zn&6)!==0)throw Error(c(331));var Se=Zn;if(Zn|=4,By(M.current),Ny(M,M.current,fe,l),Zn=Se,Mh(0,!1),Te&&typeof Te.onPostCommitFiberRoot=="function")try{Te.onPostCommitFiberRoot(xe,M)}catch{}return!0}finally{L.p=b,A.T=h,W1(n,s)}}function Jy(n,s,l){s=ss(l,s),s=xy(n.stateNode,s,2),n=ko(n,s,2),n!==null&&(ft(n,2),Ia(n))}function Jn(n,s,l){if(n.tag===3)Jy(n,n,l);else for(;s!==null;){if(s.tag===3){Jy(s,n,l);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(ul===null||!ul.has(h))){n=ss(l,n),l=_y(2),h=ko(s,l,2),h!==null&&(Ga(l,h,s,n),ft(h,2),Ia(h));break}}s=s.return}}function Qp(n,s,l){var h=n.pingCache;if(h===null){h=n.pingCache=new q1;var b=new Set;h.set(s,b)}else b=h.get(s),b===void 0&&(b=new Set,h.set(s,b));b.has(l)||($y=!0,b.add(l),n=Ky.bind(null,n,s,l),s.then(n,n))}function Ky(n,s,l){var h=n.pingCache;h!==null&&h.delete(s),n.pingedLanes|=n.suspendedLanes&l,n.warmLanes&=~l,oi===n&&(An&l)===l&&(ji===4||ji===3&&(An&62914560)===An&&300>ge()-Py?(Zn&2)===0&&Ho(n,0):Bo|=l,Au===An&&(Au=0)),Ia(n)}function e0(n,s){s===0&&(s=lt()),n=vo(n,s),n!==null&&(ft(n,s),Ia(n))}function Jx(n){var s=n.memoizedState,l=0;s!==null&&(l=s.retryLane),e0(n,l)}function Kx(n,s){var l=0;switch(n.tag){case 13:var h=n.stateNode,b=n.memoizedState;b!==null&&(l=b.retryLane);break;case 19:h=n.stateNode;break;case 22:h=n.stateNode._retryCache;break;default:throw Error(c(314))}h!==null&&h.delete(s),e0(n,l)}function e_(n,s){return H(n,s)}var Wp=null,hl=null,Th=!1,Nu=!1,Jp=!1,fl=0;function Ia(n){n!==hl&&n.next===null&&(hl===null?Wp=hl=n:hl=hl.next=n),Nu=!0,Th||(Th=!0,ev())}function Mh(n,s){if(!Jp&&Nu){Jp=!0;do for(var l=!1,h=Wp;h!==null;){if(n!==0){var b=h.pendingLanes;if(b===0)var M=0;else{var fe=h.suspendedLanes,Se=h.pingedLanes;M=(1<<31-Ae(42|n)+1)-1,M&=b&~(fe&~Se),M=M&201326741?M&201326741|1:M?M|2:0}M!==0&&(l=!0,Eh(h,M))}else M=An,M=rt(h,h===oi?M:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(M&3)===0||st(h,M)||(l=!0,Eh(h,M));h=h.next}while(l);Jp=!1}}function J1(){Ah()}function Ah(){Nu=Th=!1;var n=0;fl!==0&&(Tr()&&(n=fl),fl=0);for(var s=ge(),l=null,h=Wp;h!==null;){var b=h.next,M=t0(h,s);M===0?(h.next=null,l===null?Wp=b:l.next=b,b===null&&(hl=l)):(l=h,(n!==0||(M&3)!==0)&&(Nu=!0)),h=b}Mh(n)}function t0(n,s){for(var l=n.suspendedLanes,h=n.pingedLanes,b=n.expirationTimes,M=n.pendingLanes&-62914561;0<M;){var fe=31-Ae(M),Se=1<<fe,Oe=b[fe];Oe===-1?((Se&l)===0||(Se&h)!==0)&&(b[fe]=Ne(Se,s)):Oe<=s&&(n.expiredLanes|=Se),M&=~Se}if(s=oi,l=An,l=rt(n,n===s?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),h=n.callbackNode,l===0||n===s&&(Qn===2||Qn===9)||n.cancelPendingCommit!==null)return h!==null&&h!==null&&K(h),n.callbackNode=null,n.callbackPriority=0;if((l&3)===0||st(n,l)){if(s=l&-l,s===n.callbackPriority)return s;switch(h!==null&&K(h),It(l)){case 2:case 8:l=we;break;case 32:l=Ee;break;case 268435456:l=be;break;default:l=Ee}return h=K1.bind(null,n),l=H(l,h),n.callbackPriority=s,n.callbackNode=l,s}return h!==null&&h!==null&&K(h),n.callbackPriority=2,n.callbackNode=null,2}function K1(n,s){if(ra!==0&&ra!==5)return n.callbackNode=null,n.callbackPriority=0,null;var l=n.callbackNode;if(Zp()&&n.callbackNode!==l)return null;var h=An;return h=rt(n,n===oi?h:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),h===0?null:(Lu(n,h,s),t0(n,ge()),n.callbackNode!=null&&n.callbackNode===l?K1.bind(null,n):null)}function Eh(n,s){if(Zp())return null;Lu(n,s,!0)}function ev(){a_(function(){(Zn&6)!==0?H(_e,J1):Ah()})}function Sc(){return fl===0&&(fl=ut()),fl}function Kp(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Rd(""+n)}function Dh(n,s){var l=s.ownerDocument.createElement("input");return l.name=s.name,l.value=s.value,n.id&&l.setAttribute("form",n.id),s.parentNode.insertBefore(l,s),n=new FormData(n),l.parentNode.removeChild(l),n}function tv(n,s,l,h,b){if(s==="submit"&&l&&l.stateNode===b){var M=Kp((b[St]||null).action),fe=h.submitter;fe&&(s=(s=fe[St]||null)?Kp(s.formAction):fe.getAttribute("formAction"),s!==null&&(M=s,fe=null));var Se=new Nf("action","action",null,h,b);n.push({event:Se,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(fl!==0){var Oe=fe?Dh(b,fe):new FormData(b);_p(l,{pending:!0,data:Oe,method:b.method,action:M},null,Oe)}}else typeof M=="function"&&(Se.preventDefault(),Oe=fe?Dh(b,fe):new FormData(b),_p(l,{pending:!0,data:Oe,method:b.method,action:M},M,Oe))},currentTarget:b}]})}}for(var Li=0;Li<iu.length;Li++){var Oh=iu[Li],t_=Oh.toLowerCase(),xn=Oh[0].toUpperCase()+Oh.slice(1);Ss(t_,"on"+xn)}Ss(w1,"onAnimationEnd"),Ss($m,"onAnimationIteration"),Ss(k1,"onAnimationStart"),Ss("dblclick","onDoubleClick"),Ss("focusin","onFocus"),Ss("focusout","onBlur"),Ss(Gm,"onTransitionRun"),Ss(If,"onTransitionStart"),Ss(T1,"onTransitionCancel"),Ss(Pm,"onTransitionEnd"),Rt("onMouseEnter",["mouseout","mouseover"]),Rt("onMouseLeave",["mouseout","mouseover"]),Rt("onPointerEnter",["pointerout","pointerover"]),Rt("onPointerLeave",["pointerout","pointerover"]),Ut("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ut("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ut("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ut("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ut("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ut("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jh="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(" "),pl=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(jh));function Cc(n,s){s=(s&4)!==0;for(var l=0;l<n.length;l++){var h=n[l],b=h.event;h=h.listeners;e:{var M=void 0;if(s)for(var fe=h.length-1;0<=fe;fe--){var Se=h[fe],Oe=Se.instance,Ie=Se.currentTarget;if(Se=Se.listener,Oe!==M&&b.isPropagationStopped())break e;M=Se,b.currentTarget=Ie;try{M(b)}catch(at){gh(at)}b.currentTarget=null,M=Oe}else for(fe=0;fe<h.length;fe++){if(Se=h[fe],Oe=Se.instance,Ie=Se.currentTarget,Se=Se.listener,Oe!==M&&b.isPropagationStopped())break e;M=Se,b.currentTarget=Ie;try{M(b)}catch(at){gh(at)}b.currentTarget=null,M=Oe}}}}function hn(n,s){var l=s[Dt];l===void 0&&(l=s[Dt]=new Set);var h=n+"__bubble";l.has(h)||(eg(s,n,2,!1),l.add(h))}function zu(n,s,l){var h=0;s&&(h|=4),eg(l,n,h,s)}var Bu="_reactListening"+Math.random().toString(36).slice(2);function n0(n){if(!n[Bu]){n[Bu]=!0,vn.forEach(function(l){l!=="selectionchange"&&(pl.has(l)||zu(l,!1,n),zu(l,!0,n))});var s=n.nodeType===9?n:n.ownerDocument;s===null||s[Bu]||(s[Bu]=!0,zu("selectionchange",!1,s))}}function eg(n,s,l,h){switch(y0(s)){case 2:var b=uv;break;case 8:b=dv;break;default:b=g0}l=b.bind(null,s,l,n),b=void 0,!jf||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(b=!0),h?b!==void 0?n.addEventListener(s,l,{capture:!0,passive:b}):n.addEventListener(s,l,!0):b!==void 0?n.addEventListener(s,l,{passive:b}):n.addEventListener(s,l,!1)}function Ls(n,s,l,h,b){var M=h;if((s&1)===0&&(s&2)===0&&h!==null)e:for(;;){if(h===null)return;var fe=h.tag;if(fe===3||fe===4){var Se=h.stateNode.containerInfo;if(Se===b)break;if(fe===4)for(fe=h.return;fe!==null;){var Oe=fe.tag;if((Oe===3||Oe===4)&&fe.stateNode.containerInfo===b)return;fe=fe.return}for(;Se!==null;){if(fe=At(Se),fe===null)return;if(Oe=fe.tag,Oe===5||Oe===6||Oe===26||Oe===27){h=M=fe;continue e}Se=Se.parentNode}}h=h.return}eu(function(){var Ie=M,at=Of(l),dt=[];e:{var Xe=Vm.get(n);if(Xe!==void 0){var Qe=Nf,Xt=n;switch(n){case"keypress":if(ia(l)===0)break e;case"keydown":case"keyup":Qe=Vs;break;case"focusin":Xt="focus",Qe=wm;break;case"focusout":Xt="blur",Qe=wm;break;case"beforeblur":case"afterblur":Qe=wm;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Qe=Cm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Qe=g1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Qe=Mm;break;case w1:case $m:case k1:Qe=Fx;break;case Pm:Qe=x1;break;case"scroll":case"scrollend":Qe=f1;break;case"wheel":Qe=Yl;break;case"copy":case"cut":case"paste":Qe=Bd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Qe=Ud;break;case"toggle":case"beforetoggle":Qe=_1}var Zt=(s&4)!==0,Vn=!Zt&&(n==="scroll"||n==="scrollend"),Pe=Zt?Xe!==null?Xe+"Capture":null:Xe;Zt=[];for(var He=Ie,Ve;He!==null;){var ct=He;if(Ve=ct.stateNode,ct=ct.tag,ct!==5&&ct!==26&&ct!==27||Ve===null||Pe===null||(ct=Pl(He,Pe),ct!=null&&Zt.push(wr(He,ct,Ve))),Vn)break;He=He.return}0<Zt.length&&(Xe=new Qe(Xe,Xt,null,l,at),dt.push({event:Xe,listeners:Zt}))}}if((s&7)===0){e:{if(Xe=n==="mouseover"||n==="pointerover",Qe=n==="mouseout"||n==="pointerout",Xe&&l!==Gl&&(Xt=l.relatedTarget||l.fromElement)&&(At(Xt)||Xt[Et]))break e;if((Qe||Xe)&&(Xe=at.window===at?at:(Xe=at.ownerDocument)?Xe.defaultView||Xe.parentWindow:window,Qe?(Xt=l.relatedTarget||l.toElement,Qe=Ie,Xt=Xt?At(Xt):null,Xt!==null&&(Vn=f(Xt),Zt=Xt.tag,Xt!==Vn||Zt!==5&&Zt!==27&&Zt!==6)&&(Xt=null)):(Qe=null,Xt=Ie),Qe!==Xt)){if(Zt=Cm,ct="onMouseLeave",Pe="onMouseEnter",He="mouse",(n==="pointerout"||n==="pointerover")&&(Zt=Ud,ct="onPointerLeave",Pe="onPointerEnter",He="pointer"),Vn=Qe==null?Xe:pt(Qe),Ve=Xt==null?Xe:pt(Xt),Xe=new Zt(ct,He+"leave",Qe,l,at),Xe.target=Vn,Xe.relatedTarget=Ve,ct=null,At(at)===Ie&&(Zt=new Zt(Pe,He+"enter",Xt,l,at),Zt.target=Ve,Zt.relatedTarget=Vn,ct=Zt),Vn=ct,Qe&&Xt)t:{for(Zt=Qe,Pe=Xt,He=0,Ve=Zt;Ve;Ve=gl(Ve))He++;for(Ve=0,ct=Pe;ct;ct=gl(ct))Ve++;for(;0<He-Ve;)Zt=gl(Zt),He--;for(;0<Ve-He;)Pe=gl(Pe),Ve--;for(;He--;){if(Zt===Pe||Pe!==null&&Zt===Pe.alternate)break t;Zt=gl(Zt),Pe=gl(Pe)}Zt=null}else Zt=null;Qe!==null&&Lh(dt,Xe,Qe,Zt,!1),Xt!==null&&Vn!==null&&Lh(dt,Vn,Xt,Zt,!0)}}e:{if(Xe=Ie?pt(Ie):window,Qe=Xe.nodeName&&Xe.nodeName.toLowerCase(),Qe==="select"||Qe==="input"&&Xe.type==="file")var zt=Lm;else if($f(Xe))if(Rm)zt=Bm;else{zt=qr;var Sn=Pf}else Qe=Xe.nodeName,!Qe||Qe.toLowerCase()!=="input"||Xe.type!=="checkbox"&&Xe.type!=="radio"?Ie&&$l(Ie.elementType)&&(zt=Lm):zt=cr;if(zt&&(zt=zt(n,Ie))){Gf(dt,zt,l,at);break e}Sn&&Sn(n,Xe,Ie),n==="focusout"&&Ie&&Xe.type==="number"&&Ie.memoizedProps.value!=null&&jd(Xe,"number",Xe.value)}switch(Sn=Ie?pt(Ie):window,n){case"focusin":($f(Sn)||Sn.contentEditable==="true")&&(mo=Sn,Ys=Ie,Xr=null);break;case"focusout":Xr=Ys=mo=null;break;case"mousedown":Wl=!0;break;case"contextmenu":case"mouseup":case"dragend":Wl=!1,Vf(dt,l,at);break;case"selectionchange":if(Ql)break;case"keydown":case"keyup":Vf(dt,l,at)}var qt;if(Hd)e:{switch(n){case"compositionstart":var Kt="onCompositionStart";break e;case"compositionend":Kt="onCompositionEnd";break e;case"compositionupdate":Kt="onCompositionUpdate";break e}Kt=void 0}else Ir?Gd(n,l)&&(Kt="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(Kt="onCompositionStart");Kt&&(po&&l.locale!=="ko"&&(Ir||Kt!=="onCompositionStart"?Kt==="onCompositionEnd"&&Ir&&(qt=_m()):(rr=at,tu="value"in rr?rr.value:rr.textContent,Ir=!0)),Sn=Uu(Ie,Kt),0<Sn.length&&(Kt=new km(Kt,n,null,l,at),dt.push({event:Kt,listeners:Sn}),qt?Kt.data=qt:(qt=Vr(l),qt!==null&&(Kt.data=qt)))),(qt=Em?Om(n,l):Fl(n,l))&&(Kt=Uu(Ie,"onBeforeInput"),0<Kt.length&&(Sn=new km("onBeforeInput","beforeinput",null,l,at),dt.push({event:Sn,listeners:Kt}),Sn.data=qt)),tv(dt,n,Ie,l,at)}Cc(dt,s)})}function wr(n,s,l){return{instance:n,listener:s,currentTarget:l}}function Uu(n,s){for(var l=s+"Capture",h=[];n!==null;){var b=n,M=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||M===null||(b=Pl(n,l),b!=null&&h.unshift(wr(n,b,M)),b=Pl(n,s),b!=null&&h.push(wr(n,b,M))),n.tag===3)return h;n=n.return}return[]}function gl(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Lh(n,s,l,h,b){for(var M=s._reactName,fe=[];l!==null&&l!==h;){var Se=l,Oe=Se.alternate,Ie=Se.stateNode;if(Se=Se.tag,Oe!==null&&Oe===h)break;Se!==5&&Se!==26&&Se!==27||Ie===null||(Oe=Ie,b?(Ie=Pl(l,M),Ie!=null&&fe.unshift(wr(l,Ie,Oe))):b||(Ie=Pl(l,M),Ie!=null&&fe.push(wr(l,Ie,Oe)))),l=l.return}fe.length!==0&&n.push({event:s,listeners:fe})}var ds=/\r\n?/g,i0=/\u0000|\uFFFD/g;function nv(n){return(typeof n=="string"?n:""+n).replace(ds,`
|
|
551
|
-
`).replace(i0,"")}function a0(n,s){return s=nv(s),nv(n)===s}function tg(){}function rn(n,s,l,h,b,M){switch(l){case"children":typeof h=="string"?s==="body"||s==="textarea"&&h===""||Wc(n,h):(typeof h=="number"||typeof h=="bigint")&&s!=="body"&&Wc(n,""+h);break;case"className":Wt(n,"class",h);break;case"tabIndex":Wt(n,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":Wt(n,l,h);break;case"style":Ld(n,h,M);break;case"data":if(s!=="object"){Wt(n,"data",h);break}case"src":case"href":if(h===""&&(s!=="a"||l!=="href")){n.removeAttribute(l);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){n.removeAttribute(l);break}h=Rd(""+h),n.setAttribute(l,h);break;case"action":case"formAction":if(typeof h=="function"){n.setAttribute(l,"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 M=="function"&&(l==="formAction"?(s!=="input"&&rn(n,s,"name",b.name,b,null),rn(n,s,"formEncType",b.formEncType,b,null),rn(n,s,"formMethod",b.formMethod,b,null),rn(n,s,"formTarget",b.formTarget,b,null)):(rn(n,s,"encType",b.encType,b,null),rn(n,s,"method",b.method,b,null),rn(n,s,"target",b.target,b,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){n.removeAttribute(l);break}h=Rd(""+h),n.setAttribute(l,h);break;case"onClick":h!=null&&(n.onclick=tg);break;case"onScroll":h!=null&&hn("scroll",n);break;case"onScrollEnd":h!=null&&hn("scrollend",n);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(c(61));if(l=h.__html,l!=null){if(b.children!=null)throw Error(c(60));n.innerHTML=l}}break;case"multiple":n.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":n.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){n.removeAttribute("xlink:href");break}l=Rd(""+h),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?n.setAttribute(l,""+h):n.removeAttribute(l);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":h&&typeof h!="function"&&typeof h!="symbol"?n.setAttribute(l,""):n.removeAttribute(l);break;case"capture":case"download":h===!0?n.setAttribute(l,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?n.setAttribute(l,h):n.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?n.setAttribute(l,h):n.removeAttribute(l);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?n.removeAttribute(l):n.setAttribute(l,h);break;case"popover":hn("beforetoggle",n),hn("toggle",n),mn(n,"popover",h);break;case"xlinkActuate":Ht(n,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":Ht(n,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":Ht(n,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":Ht(n,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":Ht(n,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":Ht(n,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":Ht(n,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":Ht(n,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":Ht(n,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":mn(n,"is",h);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Ix.get(l)||l,mn(n,l,h))}}function We(n,s,l,h,b,M){switch(l){case"style":Ld(n,h,M);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(c(61));if(l=h.__html,l!=null){if(b.children!=null)throw Error(c(60));n.innerHTML=l}}break;case"children":typeof h=="string"?Wc(n,h):(typeof h=="number"||typeof h=="bigint")&&Wc(n,""+h);break;case"onScroll":h!=null&&hn("scroll",n);break;case"onScrollEnd":h!=null&&hn("scrollend",n);break;case"onClick":h!=null&&(n.onclick=tg);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!an.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(b=l.endsWith("Capture"),s=l.slice(2,b?l.length-7:void 0),M=n[St]||null,M=M!=null?M[l]:null,typeof M=="function"&&n.removeEventListener(s,M,b),typeof h=="function")){typeof M!="function"&&M!==null&&(l in n?n[l]=null:n.hasAttribute(l)&&n.removeAttribute(l)),n.addEventListener(s,h,b);break e}l in n?n[l]=h:h===!0?n.setAttribute(l,""):mn(n,l,h)}}}function en(n,s,l){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":hn("error",n),hn("load",n);var h=!1,b=!1,M;for(M in l)if(l.hasOwnProperty(M)){var fe=l[M];if(fe!=null)switch(M){case"src":h=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,s));default:rn(n,s,M,fe,l,null)}}b&&rn(n,s,"srcSet",l.srcSet,l,null),h&&rn(n,s,"src",l.src,l,null);return;case"input":hn("invalid",n);var Se=M=fe=b=null,Oe=null,Ie=null;for(h in l)if(l.hasOwnProperty(h)){var at=l[h];if(at!=null)switch(h){case"name":b=at;break;case"type":fe=at;break;case"checked":Oe=at;break;case"defaultChecked":Ie=at;break;case"value":M=at;break;case"defaultValue":Se=at;break;case"children":case"dangerouslySetInnerHTML":if(at!=null)throw Error(c(137,s));break;default:rn(n,s,h,at,l,null)}}Ef(n,M,Se,Oe,Ie,fe,b,!1),yi(n);return;case"select":hn("invalid",n),h=fe=M=null;for(b in l)if(l.hasOwnProperty(b)&&(Se=l[b],Se!=null))switch(b){case"value":M=Se;break;case"defaultValue":fe=Se;break;case"multiple":h=Se;default:rn(n,s,b,Se,l,null)}s=M,l=fe,n.multiple=!!h,s!=null?Hl(n,!!h,s,!1):l!=null&&Hl(n,!!h,l,!0);return;case"textarea":hn("invalid",n),M=b=h=null;for(fe in l)if(l.hasOwnProperty(fe)&&(Se=l[fe],Se!=null))switch(fe){case"value":h=Se;break;case"defaultValue":b=Se;break;case"children":M=Se;break;case"dangerouslySetInnerHTML":if(Se!=null)throw Error(c(91));break;default:rn(n,s,fe,Se,l,null)}vm(n,h,b,M),yi(n);return;case"option":for(Oe in l)if(l.hasOwnProperty(Oe)&&(h=l[Oe],h!=null))switch(Oe){case"selected":n.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:rn(n,s,Oe,h,l,null)}return;case"dialog":hn("beforetoggle",n),hn("toggle",n),hn("cancel",n),hn("close",n);break;case"iframe":case"object":hn("load",n);break;case"video":case"audio":for(h=0;h<jh.length;h++)hn(jh[h],n);break;case"image":hn("error",n),hn("load",n);break;case"details":hn("toggle",n);break;case"embed":case"source":case"link":hn("error",n),hn("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ie in l)if(l.hasOwnProperty(Ie)&&(h=l[Ie],h!=null))switch(Ie){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,s));default:rn(n,s,Ie,h,l,null)}return;default:if($l(s)){for(at in l)l.hasOwnProperty(at)&&(h=l[at],h!==void 0&&We(n,s,at,h,l,void 0));return}}for(Se in l)l.hasOwnProperty(Se)&&(h=l[Se],h!=null&&rn(n,s,Se,h,l,null))}function n_(n,s,l,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,M=null,fe=null,Se=null,Oe=null,Ie=null,at=null;for(Qe in l){var dt=l[Qe];if(l.hasOwnProperty(Qe)&&dt!=null)switch(Qe){case"checked":break;case"value":break;case"defaultValue":Oe=dt;default:h.hasOwnProperty(Qe)||rn(n,s,Qe,null,h,dt)}}for(var Xe in h){var Qe=h[Xe];if(dt=l[Xe],h.hasOwnProperty(Xe)&&(Qe!=null||dt!=null))switch(Xe){case"type":M=Qe;break;case"name":b=Qe;break;case"checked":Ie=Qe;break;case"defaultChecked":at=Qe;break;case"value":fe=Qe;break;case"defaultValue":Se=Qe;break;case"children":case"dangerouslySetInnerHTML":if(Qe!=null)throw Error(c(137,s));break;default:Qe!==dt&&rn(n,s,Xe,Qe,h,dt)}}Af(n,fe,Se,Oe,Ie,at,M,b);return;case"select":Qe=fe=Se=Xe=null;for(M in l)if(Oe=l[M],l.hasOwnProperty(M)&&Oe!=null)switch(M){case"value":break;case"multiple":Qe=Oe;default:h.hasOwnProperty(M)||rn(n,s,M,null,h,Oe)}for(b in h)if(M=h[b],Oe=l[b],h.hasOwnProperty(b)&&(M!=null||Oe!=null))switch(b){case"value":Xe=M;break;case"defaultValue":Se=M;break;case"multiple":fe=M;default:M!==Oe&&rn(n,s,b,M,h,Oe)}s=Se,l=fe,h=Qe,Xe!=null?Hl(n,!!l,Xe,!1):!!h!=!!l&&(s!=null?Hl(n,!!l,s,!0):Hl(n,!!l,l?[]:"",!1));return;case"textarea":Qe=Xe=null;for(Se in l)if(b=l[Se],l.hasOwnProperty(Se)&&b!=null&&!h.hasOwnProperty(Se))switch(Se){case"value":break;case"children":break;default:rn(n,s,Se,null,h,b)}for(fe in h)if(b=h[fe],M=l[fe],h.hasOwnProperty(fe)&&(b!=null||M!=null))switch(fe){case"value":Xe=b;break;case"defaultValue":Qe=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(c(91));break;default:b!==M&&rn(n,s,fe,b,h,M)}bm(n,Xe,Qe);return;case"option":for(var Xt in l)if(Xe=l[Xt],l.hasOwnProperty(Xt)&&Xe!=null&&!h.hasOwnProperty(Xt))switch(Xt){case"selected":n.selected=!1;break;default:rn(n,s,Xt,null,h,Xe)}for(Oe in h)if(Xe=h[Oe],Qe=l[Oe],h.hasOwnProperty(Oe)&&Xe!==Qe&&(Xe!=null||Qe!=null))switch(Oe){case"selected":n.selected=Xe&&typeof Xe!="function"&&typeof Xe!="symbol";break;default:rn(n,s,Oe,Xe,h,Qe)}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 Zt in l)Xe=l[Zt],l.hasOwnProperty(Zt)&&Xe!=null&&!h.hasOwnProperty(Zt)&&rn(n,s,Zt,null,h,Xe);for(Ie in h)if(Xe=h[Ie],Qe=l[Ie],h.hasOwnProperty(Ie)&&Xe!==Qe&&(Xe!=null||Qe!=null))switch(Ie){case"children":case"dangerouslySetInnerHTML":if(Xe!=null)throw Error(c(137,s));break;default:rn(n,s,Ie,Xe,h,Qe)}return;default:if($l(s)){for(var Vn in l)Xe=l[Vn],l.hasOwnProperty(Vn)&&Xe!==void 0&&!h.hasOwnProperty(Vn)&&We(n,s,Vn,void 0,h,Xe);for(at in h)Xe=h[at],Qe=l[at],!h.hasOwnProperty(at)||Xe===Qe||Xe===void 0&&Qe===void 0||We(n,s,at,Xe,h,Qe);return}}for(var Pe in l)Xe=l[Pe],l.hasOwnProperty(Pe)&&Xe!=null&&!h.hasOwnProperty(Pe)&&rn(n,s,Pe,null,h,Xe);for(dt in h)Xe=h[dt],Qe=l[dt],!h.hasOwnProperty(dt)||Xe===Qe||Xe==null&&Qe==null||rn(n,s,dt,Xe,h,Qe)}var Rh=null,Nh=null;function Rs(n){return n.nodeType===9?n:n.ownerDocument}function kr(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Hu(n,s){if(n===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&s==="foreignObject"?0:n}function $o(n,s){return n==="textarea"||n==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var $u=null;function Tr(){var n=window.event;return n&&n.type==="popstate"?n===$u?!1:($u=n,!0):($u=null,!1)}var ng=typeof setTimeout=="function"?setTimeout:void 0,i_=typeof clearTimeout=="function"?clearTimeout:void 0,iv=typeof Promise=="function"?Promise:void 0,a_=typeof queueMicrotask=="function"?queueMicrotask:typeof iv<"u"?function(n){return iv.resolve(null).then(n).catch(Go)}:ng;function Go(n){setTimeout(function(){throw n})}function ml(n){return n==="head"}function ig(n,s){var l=s,h=0,b=0;do{var M=l.nextSibling;if(n.removeChild(l),M&&M.nodeType===8)if(l=M.data,l==="/$"){if(0<h&&8>h){l=h;var fe=n.ownerDocument;if(l&1&&qa(fe.documentElement),l&2&&qa(fe.body),l&4)for(l=fe.head,qa(l),fe=l.firstChild;fe;){var Se=fe.nextSibling,Oe=fe.nodeName;fe[yt]||Oe==="SCRIPT"||Oe==="STYLE"||Oe==="LINK"&&fe.rel.toLowerCase()==="stylesheet"||l.removeChild(fe),fe=Se}}if(b===0){n.removeChild(M),Vo(s);return}b--}else l==="$"||l==="$?"||l==="$!"?b++:h=l.charCodeAt(0)-48;else h=0;l=M}while(l);Vo(s)}function zh(n){var s=n.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var l=s;switch(s=s.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":zh(l),Pt(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}n.removeChild(l)}}function Gu(n,s,l,h){for(;n.nodeType===1;){var b=l;if(n.nodeName.toLowerCase()!==s.toLowerCase()){if(!h&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(h){if(!n[yt])switch(s){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(M=n.getAttribute("rel"),M==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(M!==b.rel||n.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||n.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||n.getAttribute("title")!==(b.title==null?null:b.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(M=n.getAttribute("src"),(M!==(b.src==null?null:b.src)||n.getAttribute("type")!==(b.type==null?null:b.type)||n.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&M&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(s==="input"&&n.type==="hidden"){var M=b.name==null?null:""+b.name;if(b.type==="hidden"&&n.getAttribute("name")===M)return n}else return n;if(n=no(n.nextSibling),n===null)break}return null}function s_(n,s,l){if(s==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=no(n.nextSibling),n===null))return null;return n}function Bh(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function o_(n,s){var l=n.ownerDocument;if(n.data!=="$?"||l.readyState==="complete")s();else{var h=function(){s(),l.removeEventListener("DOMContentLoaded",h)};l.addEventListener("DOMContentLoaded",h),n._reactRetry=h}}function no(n){for(;n!=null;n=n.nextSibling){var s=n.nodeType;if(s===1||s===3)break;if(s===8){if(s=n.data,s==="$"||s==="$!"||s==="$?"||s==="F!"||s==="F")break;if(s==="/$")return null}}return n}var yl=null;function ca(n){n=n.previousSibling;for(var s=0;n;){if(n.nodeType===8){var l=n.data;if(l==="$"||l==="$!"||l==="$?"){if(s===0)return n;s--}else l==="/$"&&s++}n=n.previousSibling}return null}function jt(n,s,l){switch(s=Rs(l),n){case"html":if(n=s.documentElement,!n)throw Error(c(452));return n;case"head":if(n=s.head,!n)throw Error(c(453));return n;case"body":if(n=s.body,!n)throw Error(c(454));return n;default:throw Error(c(451))}}function qa(n){for(var s=n.attributes;s.length;)n.removeAttributeNode(s[0]);Pt(n)}var Ri=new Map,ba=new Set;function ag(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Mr=L.d;L.d={f:sg,r:og,D:Ar,C:rg,L:bl,m:va,X:vl,S:Ya,M:s0};function sg(){var n=Mr.f(),s=vc();return n||s}function og(n){var s=Ct(n);s!==null&&s.tag===5&&s.type==="form"?vu(s):Mr.r(n)}var ua=typeof document>"u"?null:document;function io(n,s,l){var h=ua;if(h&&typeof s=="string"&&s){var b=La(s);b='link[rel="'+n+'"][href="'+b+'"]',typeof l=="string"&&(b+='[crossorigin="'+l+'"]'),ba.has(b)||(ba.add(b),n={rel:n,crossOrigin:l,href:s},h.querySelector(b)===null&&(s=h.createElement("link"),en(s,"link",n),wt(s),h.head.appendChild(s)))}}function Ar(n){Mr.D(n),io("dns-prefetch",n,null)}function rg(n,s){Mr.C(n,s),io("preconnect",n,s)}function bl(n,s,l){Mr.L(n,s,l);var h=ua;if(h&&n&&s){var b='link[rel="preload"][as="'+La(s)+'"]';s==="image"&&l&&l.imageSrcSet?(b+='[imagesrcset="'+La(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(b+='[imagesizes="'+La(l.imageSizes)+'"]')):b+='[href="'+La(n)+'"]';var M=b;switch(s){case"style":M=Pu(n);break;case"script":M=Ns(n)}Ri.has(M)||(n=j({rel:"preload",href:s==="image"&&l&&l.imageSrcSet?void 0:n,as:s},l),Ri.set(M,n),h.querySelector(b)!==null||s==="style"&&h.querySelector(Vu(M))||s==="script"&&h.querySelector(wc(M))||(s=h.createElement("link"),en(s,"link",n),wt(s),h.head.appendChild(s)))}}function va(n,s){Mr.m(n,s);var l=ua;if(l&&n){var h=s&&typeof s.as=="string"?s.as:"script",b='link[rel="modulepreload"][as="'+La(h)+'"][href="'+La(n)+'"]',M=b;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":M=Ns(n)}if(!Ri.has(M)&&(n=j({rel:"modulepreload",href:n},s),Ri.set(M,n),l.querySelector(b)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(wc(M)))return}h=l.createElement("link"),en(h,"link",n),wt(h),l.head.appendChild(h)}}}function Ya(n,s,l){Mr.S(n,s,l);var h=ua;if(h&&n){var b=vt(h).hoistableStyles,M=Pu(n);s=s||"default";var fe=b.get(M);if(!fe){var Se={loading:0,preload:null};if(fe=h.querySelector(Vu(M)))Se.loading=5;else{n=j({rel:"stylesheet",href:n,"data-precedence":s},l),(l=Ri.get(M))&&cg(n,l);var Oe=fe=h.createElement("link");wt(Oe),en(Oe,"link",n),Oe._p=new Promise(function(Ie,at){Oe.onload=Ie,Oe.onerror=at}),Oe.addEventListener("load",function(){Se.loading|=1}),Oe.addEventListener("error",function(){Se.loading|=2}),Se.loading|=4,lg(fe,s,h)}fe={type:"stylesheet",instance:fe,count:1,state:Se},b.set(M,fe)}}}function vl(n,s){Mr.X(n,s);var l=ua;if(l&&n){var h=vt(l).hoistableScripts,b=Ns(n),M=h.get(b);M||(M=l.querySelector(wc(b)),M||(n=j({src:n,async:!0},s),(s=Ri.get(b))&&ug(n,s),M=l.createElement("script"),wt(M),en(M,"link",n),l.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},h.set(b,M))}}function s0(n,s){Mr.M(n,s);var l=ua;if(l&&n){var h=vt(l).hoistableScripts,b=Ns(n),M=h.get(b);M||(M=l.querySelector(wc(b)),M||(n=j({src:n,async:!0,type:"module"},s),(s=Ri.get(b))&&ug(n,s),M=l.createElement("script"),wt(M),en(M,"link",n),l.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},h.set(b,M))}}function av(n,s,l,h){var b=(b=Z.current)?ag(b):null;if(!b)throw Error(c(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(s=Pu(l.href),l=vt(b).hoistableStyles,h=l.get(s),h||(h={type:"style",instance:null,count:0,state:null},l.set(s,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){n=Pu(l.href);var M=vt(b).hoistableStyles,fe=M.get(n);if(fe||(b=b.ownerDocument||b,fe={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},M.set(n,fe),(M=b.querySelector(Vu(n)))&&!M._p&&(fe.instance=M,fe.state.loading=5),Ri.has(n)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ri.set(n,l),M||sv(b,n,l,fe.state))),s&&h===null)throw Error(c(528,""));return fe}if(s&&h!==null)throw Error(c(529,""));return null;case"script":return s=l.async,l=l.src,typeof l=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Ns(l),l=vt(b).hoistableScripts,h=l.get(s),h||(h={type:"script",instance:null,count:0,state:null},l.set(s,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,n))}}function Pu(n){return'href="'+La(n)+'"'}function Vu(n){return'link[rel="stylesheet"]['+n+"]"}function Iu(n){return j({},n,{"data-precedence":n.precedence,precedence:null})}function sv(n,s,l,h){n.querySelector('link[rel="preload"][as="style"]['+s+"]")?h.loading=1:(s=n.createElement("link"),h.preload=s,s.addEventListener("load",function(){return h.loading|=1}),s.addEventListener("error",function(){return h.loading|=2}),en(s,"link",l),wt(s),n.head.appendChild(s))}function Ns(n){return'[src="'+La(n)+'"]'}function wc(n){return"script[async]"+n}function ov(n,s,l){if(s.count++,s.instance===null)switch(s.type){case"style":var h=n.querySelector('style[data-href~="'+La(l.href)+'"]');if(h)return s.instance=h,wt(h),h;var b=j({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return h=(n.ownerDocument||n).createElement("style"),wt(h),en(h,"style",b),lg(h,l.precedence,n),s.instance=h;case"stylesheet":b=Pu(l.href);var M=n.querySelector(Vu(b));if(M)return s.state.loading|=4,s.instance=M,wt(M),M;h=Iu(l),(b=Ri.get(b))&&cg(h,b),M=(n.ownerDocument||n).createElement("link"),wt(M);var fe=M;return fe._p=new Promise(function(Se,Oe){fe.onload=Se,fe.onerror=Oe}),en(M,"link",h),s.state.loading|=4,lg(M,l.precedence,n),s.instance=M;case"script":return M=Ns(l.src),(b=n.querySelector(wc(M)))?(s.instance=b,wt(b),b):(h=l,(b=Ri.get(M))&&(h=j({},l),ug(h,b)),n=n.ownerDocument||n,b=n.createElement("script"),wt(b),en(b,"link",h),n.head.appendChild(b),s.instance=b);case"void":return null;default:throw Error(c(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(h=s.instance,s.state.loading|=4,lg(h,l.precedence,n));return s.instance}function lg(n,s,l){for(var h=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=h.length?h[h.length-1]:null,M=b,fe=0;fe<h.length;fe++){var Se=h[fe];if(Se.dataset.precedence===s)M=Se;else if(M!==b)break}M?M.parentNode.insertBefore(n,M.nextSibling):(s=l.nodeType===9?l.head:l,s.insertBefore(n,s.firstChild))}function cg(n,s){n.crossOrigin==null&&(n.crossOrigin=s.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=s.referrerPolicy),n.title==null&&(n.title=s.title)}function ug(n,s){n.crossOrigin==null&&(n.crossOrigin=s.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=s.referrerPolicy),n.integrity==null&&(n.integrity=s.integrity)}var xl=null;function o0(n,s,l){if(xl===null){var h=new Map,b=xl=new Map;b.set(l,h)}else b=xl,h=b.get(l),h||(h=new Map,b.set(l,h));if(h.has(n))return h;for(h.set(n,null),l=l.getElementsByTagName(n),b=0;b<l.length;b++){var M=l[b];if(!(M[yt]||M[bt]||n==="link"&&M.getAttribute("rel")==="stylesheet")&&M.namespaceURI!=="http://www.w3.org/2000/svg"){var fe=M.getAttribute(s)||"";fe=n+fe;var Se=h.get(fe);Se?Se.push(M):h.set(fe,[M])}}return h}function r0(n,s,l){n=n.ownerDocument||n,n.head.insertBefore(l,s==="title"?n.querySelector("head > title"):null)}function rv(n,s,l){if(l===1||s.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return n=s.disabled,typeof s.precedence=="string"&&n==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function l0(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var qu=null;function lv(){}function cv(n,s,l){if(qu===null)throw Error(c(475));var h=qu;if(s.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var b=Pu(l.href),M=n.querySelector(Vu(b));if(M){n=M._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(h.count++,h=Uh.bind(h),n.then(h,h)),s.state.loading|=4,s.instance=M,wt(M);return}M=n.ownerDocument||n,l=Iu(l),(b=Ri.get(b))&&cg(l,b),M=M.createElement("link"),wt(M);var fe=M;fe._p=new Promise(function(Se,Oe){fe.onload=Se,fe.onerror=Oe}),en(M,"link",l),s.instance=M}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(s,n),(n=s.state.preload)&&(s.state.loading&3)===0&&(h.count++,s=Uh.bind(h),n.addEventListener("load",s),n.addEventListener("error",s))}}function c0(){if(qu===null)throw Error(c(475));var n=qu;return n.stylesheets&&n.count===0&&Hh(n,n.stylesheets),0<n.count?function(s){var l=setTimeout(function(){if(n.stylesheets&&Hh(n,n.stylesheets),n.unsuspend){var h=n.unsuspend;n.unsuspend=null,h()}},6e4);return n.unsuspend=s,function(){n.unsuspend=null,clearTimeout(l)}}:null}function Uh(){if(this.count--,this.count===0){if(this.stylesheets)Hh(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Yu=null;function Hh(n,s){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Yu=new Map,s.forEach(hs,n),Yu=null,Uh.call(n))}function hs(n,s){if(!(s.state.loading&4)){var l=Yu.get(n);if(l)var h=l.get(null);else{l=new Map,Yu.set(n,l);for(var b=n.querySelectorAll("link[data-precedence],style[data-precedence]"),M=0;M<b.length;M++){var fe=b[M];(fe.nodeName==="LINK"||fe.getAttribute("media")!=="not all")&&(l.set(fe.dataset.precedence,fe),h=fe)}h&&l.set(null,h)}b=s.instance,fe=b.getAttribute("data-precedence"),M=l.get(fe)||h,M===h&&l.set(null,b),l.set(fe,b),this.count++,h=Uh.bind(this),b.addEventListener("load",h),b.addEventListener("error",h),M?M.parentNode.insertBefore(b,M.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(b,n.firstChild)),s.state.loading|=4}}var Fa={$$typeof:P,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function r_(n,s,l,h,b,M,fe,Se){this.tag=1,this.containerInfo=n,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=Fe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fe(0),this.hiddenUpdates=Fe(null),this.identifierPrefix=h,this.onUncaughtError=b,this.onCaughtError=M,this.onRecoverableError=fe,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Se,this.incompleteTransitions=new Map}function u0(n,s,l,h,b,M,fe,Se,Oe,Ie,at,dt){return n=new r_(n,s,l,fe,Se,Oe,Ie,dt),s=1,M===!0&&(s|=24),M=za(3,null,null,s),n.current=M,M.stateNode=n,s=pu(),s.refCount++,n.pooledCache=s,s.refCount++,M.memoizedState={element:h,isDehydrated:l,cache:s},tp(M),n}function d0(n){return n?(n=ou,n):ou}function h0(n,s,l,h,b,M){b=d0(b),h.context===null?h.context=b:h.pendingContext=b,h=Ua(s),h.payload={element:l},M=M===void 0?null:M,M!==null&&(h.callback=M),l=ko(n,h,s),l!==null&&(us(l,n,s),ic(l,n,s))}function f0(n,s){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<s?l:s}}function dg(n,s){f0(n,s),(n=n.alternate)&&f0(n,s)}function p0(n){if(n.tag===13){var s=vo(n,67108864);s!==null&&us(s,n,67108864),dg(n,67108864)}}var $h=!0;function uv(n,s,l,h){var b=A.T;A.T=null;var M=L.p;try{L.p=2,g0(n,s,l,h)}finally{L.p=M,A.T=b}}function dv(n,s,l,h){var b=A.T;A.T=null;var M=L.p;try{L.p=8,g0(n,s,l,h)}finally{L.p=M,A.T=b}}function g0(n,s,l,h){if($h){var b=hg(h);if(b===null)Ls(n,s,h,fg,l),kc(n,h);else if(fv(b,n,s,l,h))h.stopPropagation();else if(kc(n,h),s&4&&-1<hv.indexOf(n)){for(;b!==null;){var M=Ct(b);if(M!==null)switch(M.tag){case 3:if(M=M.stateNode,M.current.memoizedState.isDehydrated){var fe=Je(M.pendingLanes);if(fe!==0){var Se=M;for(Se.pendingLanes|=2,Se.entangledLanes|=2;fe;){var Oe=1<<31-Ae(fe);Se.entanglements[1]|=Oe,fe&=~Oe}Ia(M),(Zn&6)===0&&(Vp=ge()+500,Mh(0))}}break;case 13:Se=vo(M,2),Se!==null&&us(Se,M,2),vc(),dg(M,2)}if(M=hg(h),M===null&&Ls(n,s,h,fg,l),M===b)break;b=M}b!==null&&h.stopPropagation()}else Ls(n,s,h,null,l)}}function hg(n){return n=Of(n),m0(n)}var fg=null;function m0(n){if(fg=null,n=At(n),n!==null){var s=f(n);if(s===null)n=null;else{var l=s.tag;if(l===13){if(n=y(s),n!==null)return n;n=null}else if(l===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;n=null}else s!==n&&(n=null)}}return fg=n,null}function y0(n){switch(n){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(ve()){case _e:return 2;case we:return 8;case Ee:case Re:return 32;case be:return 268435456;default:return 32}default:return 32}}var Fu=!1,Po=null,Er=null,Dr=null,Gh=new Map,Ph=new Map,_l=[],hv="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 kc(n,s){switch(n){case"focusin":case"focusout":Po=null;break;case"dragenter":case"dragleave":Er=null;break;case"mouseover":case"mouseout":Dr=null;break;case"pointerover":case"pointerout":Gh.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ph.delete(s.pointerId)}}function Tc(n,s,l,h,b,M){return n===null||n.nativeEvent!==M?(n={blockedOn:s,domEventName:l,eventSystemFlags:h,nativeEvent:M,targetContainers:[b]},s!==null&&(s=Ct(s),s!==null&&p0(s)),n):(n.eventSystemFlags|=h,s=n.targetContainers,b!==null&&s.indexOf(b)===-1&&s.push(b),n)}function fv(n,s,l,h,b){switch(s){case"focusin":return Po=Tc(Po,n,s,l,h,b),!0;case"dragenter":return Er=Tc(Er,n,s,l,h,b),!0;case"mouseover":return Dr=Tc(Dr,n,s,l,h,b),!0;case"pointerover":var M=b.pointerId;return Gh.set(M,Tc(Gh.get(M)||null,n,s,l,h,b)),!0;case"gotpointercapture":return M=b.pointerId,Ph.set(M,Tc(Ph.get(M)||null,n,s,l,h,b)),!0}return!1}function b0(n){var s=At(n.target);if(s!==null){var l=f(s);if(l!==null){if(s=l.tag,s===13){if(s=y(l),s!==null){n.blockedOn=s,mt(n.priority,function(){if(l.tag===13){var h=cs();h=Vt(h);var b=vo(l,h);b!==null&&us(b,l,h),dg(l,h)}});return}}else if(s===3&&l.stateNode.current.memoizedState.isDehydrated){n.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Vh(n){if(n.blockedOn!==null)return!1;for(var s=n.targetContainers;0<s.length;){var l=hg(n.nativeEvent);if(l===null){l=n.nativeEvent;var h=new l.constructor(l.type,l);Gl=h,l.target.dispatchEvent(h),Gl=null}else return s=Ct(l),s!==null&&p0(s),n.blockedOn=l,!1;s.shift()}return!0}function Ih(n,s,l){Vh(n)&&l.delete(s)}function Xu(){Fu=!1,Po!==null&&Vh(Po)&&(Po=null),Er!==null&&Vh(Er)&&(Er=null),Dr!==null&&Vh(Dr)&&(Dr=null),Gh.forEach(Ih),Ph.forEach(Ih)}function pg(n,s){n.blockedOn===s&&(n.blockedOn=null,Fu||(Fu=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Xu)))}var Mc=null;function v0(n){Mc!==n&&(Mc=n,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){Mc===n&&(Mc=null);for(var s=0;s<n.length;s+=3){var l=n[s],h=n[s+1],b=n[s+2];if(typeof h!="function"){if(m0(h||l)===null)continue;break}var M=Ct(l);M!==null&&(n.splice(s,3),s-=3,_p(M,{pending:!0,data:b,method:l.method,action:h},h,b))}}))}function Vo(n){function s(Oe){return pg(Oe,n)}Po!==null&&pg(Po,n),Er!==null&&pg(Er,n),Dr!==null&&pg(Dr,n),Gh.forEach(s),Ph.forEach(s);for(var l=0;l<_l.length;l++){var h=_l[l];h.blockedOn===n&&(h.blockedOn=null)}for(;0<_l.length&&(l=_l[0],l.blockedOn===null);)b0(l),l.blockedOn===null&&_l.shift();if(l=(n.ownerDocument||n).$$reactFormReplay,l!=null)for(h=0;h<l.length;h+=3){var b=l[h],M=l[h+1],fe=b[St]||null;if(typeof M=="function")fe||v0(l);else if(fe){var Se=null;if(M&&M.hasAttribute("formAction")){if(b=M,fe=M[St]||null)Se=fe.formAction;else if(m0(b)!==null)continue}else Se=fe.action;typeof Se=="function"?l[h+1]=Se:(l.splice(h,3),h-=3),v0(l)}}}function x0(n){this._internalRoot=n}gg.prototype.render=x0.prototype.render=function(n){var s=this._internalRoot;if(s===null)throw Error(c(409));var l=s.current,h=cs();h0(l,h,n,s,null,null)},gg.prototype.unmount=x0.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var s=n.containerInfo;h0(n.current,2,null,n,null,null),vc(),s[Et]=null}};function gg(n){this._internalRoot=n}gg.prototype.unstable_scheduleHydration=function(n){if(n){var s=_t();n={blockedOn:null,target:n,priority:s};for(var l=0;l<_l.length&&s!==0&&s<_l[l].priority;l++);_l.splice(l,0,n),l===0&&b0(n)}};var _0=i.version;if(_0!=="19.1.0")throw Error(c(527,_0,"19.1.0"));L.findDOMNode=function(n){var s=n._reactInternals;if(s===void 0)throw typeof n.render=="function"?Error(c(188)):(n=Object.keys(n).join(","),Error(c(268,n)));return n=v(s),n=n!==null?S(n):null,n=n===null?null:n.stateNode,n};var Aa={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var qh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qh.isDisabled&&qh.supportsFiber)try{xe=qh.inject(Aa),Te=qh}catch{}}return mm.createRoot=function(n,s){if(!d(n))throw Error(c(299));var l=!1,h="",b=Su,M=by,fe=mh,Se=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(b=s.onUncaughtError),s.onCaughtError!==void 0&&(M=s.onCaughtError),s.onRecoverableError!==void 0&&(fe=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(Se=s.unstable_transitionCallbacks)),s=u0(n,1,!1,null,null,l,h,b,M,fe,Se,null),n[Et]=s.current,n0(n),new x0(s)},mm.hydrateRoot=function(n,s,l){if(!d(n))throw Error(c(299));var h=!1,b="",M=Su,fe=by,Se=mh,Oe=null,Ie=null;return l!=null&&(l.unstable_strictMode===!0&&(h=!0),l.identifierPrefix!==void 0&&(b=l.identifierPrefix),l.onUncaughtError!==void 0&&(M=l.onUncaughtError),l.onCaughtError!==void 0&&(fe=l.onCaughtError),l.onRecoverableError!==void 0&&(Se=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(Oe=l.unstable_transitionCallbacks),l.formState!==void 0&&(Ie=l.formState)),s=u0(n,1,!0,s,l??null,h,b,M,fe,Se,Oe,Ie),s.context=d0(null),l=s.current,h=cs(),h=Vt(h),b=Ua(h),b.callback=null,ko(l,b,h),l=h,s.current.lanes=l,ft(s,l),Ia(s),n[Et]=s.current,n0(n),new gg(s)},mm.version="19.1.0",mm}var ym={};/**
|
|
550
|
+
`+l.stack}}function mi(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function is(n){var s=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function vs(n){var s=is(n)?"checked":"value",l=Object.getOwnPropertyDescriptor(n.constructor.prototype,s),h=""+n[s];if(!n.hasOwnProperty(s)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var b=l.get,M=l.set;return Object.defineProperty(n,s,{configurable:!0,get:function(){return b.call(this)},set:function(fe){h=""+fe,M.call(this,fe)}}),Object.defineProperty(n,s,{enumerable:l.enumerable}),{getValue:function(){return h},setValue:function(fe){h=""+fe},stopTracking:function(){n._valueTracker=null,delete n[s]}}}}function yi(n){n._valueTracker||(n._valueTracker=vs(n))}function Ti(n){if(!n)return!1;var s=n._valueTracker;if(!s)return!0;var l=s.getValue(),h="";return n&&(h=is(n)?n.checked?"true":"false":n.value),n=h,n!==l?(s.setValue(n),!0):!1}function xs(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Od=/[\n"\\]/g;function La(n){return n.replace(Od,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Af(n,s,l,h,b,M,fe,Se){n.name="",fe!=null&&typeof fe!="function"&&typeof fe!="symbol"&&typeof fe!="boolean"?n.type=fe:n.removeAttribute("type"),s!=null?fe==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+mi(s)):n.value!==""+mi(s)&&(n.value=""+mi(s)):fe!=="submit"&&fe!=="reset"||n.removeAttribute("value"),s!=null?jd(n,fe,mi(s)):l!=null?jd(n,fe,mi(l)):h!=null&&n.removeAttribute("value"),b==null&&M!=null&&(n.defaultChecked=!!M),b!=null&&(n.checked=b&&typeof b!="function"&&typeof b!="symbol"),Se!=null&&typeof Se!="function"&&typeof Se!="symbol"&&typeof Se!="boolean"?n.name=""+mi(Se):n.removeAttribute("name")}function Ef(n,s,l,h,b,M,fe,Se){if(M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(n.type=M),s!=null||l!=null){if(!(M!=="submit"&&M!=="reset"||s!=null))return;l=l!=null?""+mi(l):"",s=s!=null?""+mi(s):l,Se||s===n.value||(n.value=s),n.defaultValue=s}h=h??b,h=typeof h!="function"&&typeof h!="symbol"&&!!h,n.checked=Se?n.checked:!!h,n.defaultChecked=!!h,fe!=null&&typeof fe!="function"&&typeof fe!="symbol"&&typeof fe!="boolean"&&(n.name=fe)}function jd(n,s,l){s==="number"&&xs(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function Hl(n,s,l,h){if(n=n.options,s){s={};for(var b=0;b<l.length;b++)s["$"+l[b]]=!0;for(l=0;l<n.length;l++)b=s.hasOwnProperty("$"+n[l].value),n[l].selected!==b&&(n[l].selected=b),b&&h&&(n[l].defaultSelected=!0)}else{for(l=""+mi(l),s=null,b=0;b<n.length;b++){if(n[b].value===l){n[b].selected=!0,h&&(n[b].defaultSelected=!0);return}s!==null||n[b].disabled||(s=n[b])}s!==null&&(s.selected=!0)}}function bm(n,s,l){if(s!=null&&(s=""+mi(s),s!==n.value&&(n.value=s),l==null)){n.defaultValue!==s&&(n.defaultValue=s);return}n.defaultValue=l!=null?""+mi(l):""}function vm(n,s,l,h){if(s==null){if(h!=null){if(l!=null)throw Error(c(92));if(_(h)){if(1<h.length)throw Error(c(93));h=h[0]}l=h}l==null&&(l=""),s=l}l=mi(s),n.defaultValue=l,h=n.textContent,h===l&&h!==""&&h!==null&&(n.value=h)}function Wc(n,s){if(s){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===3){l.nodeValue=s;return}}n.textContent=s}var u1=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 Df(n,s,l){var h=s.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?h?n.setProperty(s,""):s==="float"?n.cssFloat="":n[s]="":h?n.setProperty(s,l):typeof l!="number"||l===0||u1.has(s)?s==="float"?n.cssFloat=l:n[s]=(""+l).trim():n[s]=l+"px"}function Ld(n,s,l){if(s!=null&&typeof s!="object")throw Error(c(62));if(n=n.style,l!=null){for(var h in l)!l.hasOwnProperty(h)||s!=null&&s.hasOwnProperty(h)||(h.indexOf("--")===0?n.setProperty(h,""):h==="float"?n.cssFloat="":n[h]="");for(var b in s)h=s[b],s.hasOwnProperty(b)&&l[b]!==h&&Df(n,b,h)}else for(var M in s)s.hasOwnProperty(M)&&Df(n,M,s[M])}function $l(n){if(n.indexOf("-")===-1)return!1;switch(n){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 Ix=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"]]),d1=/^[\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 Rd(n){return d1.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var Gl=null;function Of(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Jc=null,Kc=null;function h1(n){var s=Ct(n);if(s&&(n=s.stateNode)){var l=n[St]||null;e:switch(n=s.stateNode,s.type){case"input":if(Af(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),s=l.name,l.type==="radio"&&s!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+La(""+s)+'"][type="radio"]'),s=0;s<l.length;s++){var h=l[s];if(h!==n&&h.form===n.form){var b=h[St]||null;if(!b)throw Error(c(90));Af(h,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(s=0;s<l.length;s++)h=l[s],h.form===n.form&&Ti(h)}break e;case"textarea":bm(n,l.value,l.defaultValue);break e;case"select":s=l.value,s!=null&&Hl(n,!!l.multiple,s,!1)}}}var xm=!1;function eu(n,s,l){if(xm)return n(s,l);xm=!0;try{var h=n(s);return h}finally{if(xm=!1,(Jc!==null||Kc!==null)&&(vc(),Jc&&(s=Jc,n=Kc,Kc=Jc=null,h1(s),n)))for(s=0;s<n.length;s++)h1(n[s])}}function Pl(n,s){var l=n.stateNode;if(l===null)return null;var h=l[St]||null;if(h===null)return null;l=h[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(n=n.type,h=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!h;break e;default:n=!1}if(n)return null;if(l&&typeof l!="function")throw Error(c(231,s,typeof l));return l}var fo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jf=!1;if(fo)try{var or={};Object.defineProperty(or,"passive",{get:function(){jf=!0}}),window.addEventListener("test",or,or),window.removeEventListener("test",or,or)}catch{jf=!1}var rr=null,tu=null,Vl=null;function _m(){if(Vl)return Vl;var n,s=tu,l=s.length,h,b="value"in rr?rr.value:rr.textContent,M=b.length;for(n=0;n<l&&s[n]===b[n];n++);var fe=l-n;for(h=1;h<=fe&&s[l-h]===b[M-h];h++);return Vl=b.slice(n,1<h?1-h:void 0)}function ia(n){var s=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&s===13&&(n=13)):n=s,n===10&&(n=13),32<=n||n===13?n:0}function Lf(){return!0}function Rf(){return!1}function wa(n){function s(l,h,b,M,fe){this._reactName=l,this._targetInst=b,this.type=h,this.nativeEvent=M,this.target=fe,this.currentTarget=null;for(var Se in n)n.hasOwnProperty(Se)&&(l=n[Se],this[Se]=l?l(M):M[Se]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?Lf:Rf,this.isPropagationStopped=Rf,this}return j(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Lf)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Lf)},persist:function(){},isPersistent:Lf}),s}var Pr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nf=wa(Pr),Nd=j({},Pr,{view:0,detail:0}),f1=wa(Nd),Sm,zf,zd,Il=j({},Nd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lr,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==zd&&(zd&&n.type==="mousemove"?(Sm=n.screenX-zd.screenX,zf=n.screenY-zd.screenY):zf=Sm=0,zd=n),Sm)},movementY:function(n){return"movementY"in n?n.movementY:zf}}),Cm=wa(Il),p1=j({},Il,{dataTransfer:0}),g1=wa(p1),qx=j({},Nd,{relatedTarget:0}),wm=wa(qx),Yx=j({},Pr,{animationName:0,elapsedTime:0,pseudoElement:0}),Fx=wa(Yx),Xx=j({},Pr,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Bd=wa(Xx),m1=j({},Pr,{data:0}),km=wa(m1),y1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},b1={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"},Tm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function v1(n){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(n):(n=Tm[n])?!!s[n]:!1}function lr(){return v1}var ql=j({},Nd,{key:function(n){if(n.key){var s=y1[n.key]||n.key;if(s!=="Unidentified")return s}return n.type==="keypress"?(n=ia(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?b1[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lr,charCode:function(n){return n.type==="keypress"?ia(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?ia(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),Vs=wa(ql),as=j({},Il,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ud=wa(as),Bf=j({},Nd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lr}),Mm=wa(Bf),Ra=j({},Pr,{propertyName:0,elapsedTime:0,pseudoElement:0}),x1=wa(Ra),Uf=j({},Il,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),Yl=wa(Uf),Am=j({},Pr,{newState:0,oldState:0}),_1=wa(Am),S1=[9,13,27,32],Hd=fo&&"CompositionEvent"in window,$d=null;fo&&"documentMode"in document&&($d=document.documentMode);var Em=fo&&"TextEvent"in window&&!$d,po=fo&&(!Hd||$d&&8<$d&&11>=$d),Dm=" ",Hf=!1;function Gd(n,s){switch(n){case"keyup":return S1.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vr(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Ir=!1;function Om(n,s){switch(n){case"compositionend":return Vr(s);case"keypress":return s.which!==32?null:(Hf=!0,Dm);case"textInput":return n=s.data,n===Dm&&Hf?null:n;default:return null}}function Fl(n,s){if(Ir)return n==="compositionend"||!Hd&&Gd(n,s)?(n=_m(),Vl=tu=rr=null,Ir=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return po&&s.locale!=="ko"?null:s.data;default:return null}}var C1={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 $f(n){var s=n&&n.nodeName&&n.nodeName.toLowerCase();return s==="input"?!!C1[n.type]:s==="textarea"}function Gf(n,s,l,h){Jc?Kc?Kc.push(h):Kc=[h]:Jc=h,s=Uu(s,"onChange"),0<s.length&&(l=new Nf("onChange","change",null,l,h),n.push({event:l,listeners:s}))}var Is=null,qs=null;function jm(n){Cc(n,0)}function go(n){var s=pt(n);if(Ti(s))return n}function Lm(n,s){if(n==="change")return s}var Rm=!1;if(fo){var Xl;if(fo){var Zl="oninput"in document;if(!Zl){var Nm=document.createElement("div");Nm.setAttribute("oninput","return;"),Zl=typeof Nm.oninput=="function"}Xl=Zl}else Xl=!1;Rm=Xl&&(!document.documentMode||9<document.documentMode)}function nu(){Is&&(Is.detachEvent("onpropertychange",zm),qs=Is=null)}function zm(n){if(n.propertyName==="value"&&go(qs)){var s=[];Gf(s,qs,n,Of(n)),eu(jm,s)}}function Pf(n,s,l){n==="focusin"?(nu(),Is=s,qs=l,Is.attachEvent("onpropertychange",zm)):n==="focusout"&&nu()}function qr(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return go(qs)}function cr(n,s){if(n==="click")return go(s)}function Bm(n,s){if(n==="input"||n==="change")return go(s)}function Um(n,s){return n===s&&(n!==0||1/n===1/s)||n!==n&&s!==s}var aa=typeof Object.is=="function"?Object.is:Um;function Yr(n,s){if(aa(n,s))return!0;if(typeof n!="object"||n===null||typeof s!="object"||s===null)return!1;var l=Object.keys(n),h=Object.keys(s);if(l.length!==h.length)return!1;for(h=0;h<l.length;h++){var b=l[h];if(!D.call(s,b)||!aa(n[b],s[b]))return!1}return!0}function Fr(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function hi(n,s){var l=Fr(n);n=0;for(var h;l;){if(l.nodeType===3){if(h=n+l.textContent.length,n<=s&&h>=s)return{node:l,offset:s-n};n=h}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Fr(l)}}function Pd(n,s){return n&&s?n===s?!0:n&&n.nodeType===3?!1:s&&s.nodeType===3?Pd(n,s.parentNode):"contains"in n?n.contains(s):n.compareDocumentPosition?!!(n.compareDocumentPosition(s)&16):!1:!1}function Hm(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var s=xs(n.document);s instanceof n.HTMLIFrameElement;){try{var l=typeof s.contentWindow.location.href=="string"}catch{l=!1}if(l)n=s.contentWindow;else break;s=xs(n.document)}return s}function Vd(n){var s=n&&n.nodeName&&n.nodeName.toLowerCase();return s&&(s==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||s==="textarea"||n.contentEditable==="true")}var Ql=fo&&"documentMode"in document&&11>=document.documentMode,mo=null,Ys=null,Xr=null,Wl=!1;function Vf(n,s,l){var h=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wl||mo==null||mo!==xs(h)||(h=mo,"selectionStart"in h&&Vd(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Xr&&Yr(Xr,h)||(Xr=h,h=Uu(Ys,"onSelect"),0<h.length&&(s=new Nf("onSelect","select",null,s,l),n.push({event:s,listeners:h}),s.target=mo)))}function ur(n,s){var l={};return l[n.toLowerCase()]=s.toLowerCase(),l["Webkit"+n]="webkit"+s,l["Moz"+n]="moz"+s,l}var Jl={animationend:ur("Animation","AnimationEnd"),animationiteration:ur("Animation","AnimationIteration"),animationstart:ur("Animation","AnimationStart"),transitionrun:ur("Transition","TransitionRun"),transitionstart:ur("Transition","TransitionStart"),transitioncancel:ur("Transition","TransitionCancel"),transitionend:ur("Transition","TransitionEnd")},_s={},Fs={};fo&&(Fs=document.createElement("div").style,"AnimationEvent"in window||(delete Jl.animationend.animation,delete Jl.animationiteration.animation,delete Jl.animationstart.animation),"TransitionEvent"in window||delete Jl.transitionend.transition);function yo(n){if(_s[n])return _s[n];if(!Jl[n])return n;var s=Jl[n],l;for(l in s)if(s.hasOwnProperty(l)&&l in Fs)return _s[n]=s[l];return n}var w1=yo("animationend"),$m=yo("animationiteration"),k1=yo("animationstart"),Gm=yo("transitionrun"),If=yo("transitionstart"),T1=yo("transitioncancel"),Pm=yo("transitionend"),Vm=new Map,iu="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(" ");iu.push("scrollEnd");function Ss(n,s){Vm.set(n,s),Ut(s,[n])}var Im=new WeakMap;function ss(n,s){if(typeof n=="object"&&n!==null){var l=Im.get(n);return l!==void 0?l:(s={value:n,source:s,stack:ns(s)},Im.set(n,s),s)}return{value:n,source:s,stack:ns(s)}}var Na=[],Zr=0,bo=0;function Xs(){for(var n=Zr,s=bo=Zr=0;s<n;){var l=Na[s];Na[s++]=null;var h=Na[s];Na[s++]=null;var b=Na[s];Na[s++]=null;var M=Na[s];if(Na[s++]=null,h!==null&&b!==null){var fe=h.pending;fe===null?b.next=b:(b.next=fe.next,fe.next=b),h.pending=b}M!==0&&su(l,b,M)}}function Qr(n,s,l,h){Na[Zr++]=n,Na[Zr++]=s,Na[Zr++]=l,Na[Zr++]=h,bo|=h,n.lanes|=h,n=n.alternate,n!==null&&(n.lanes|=h)}function au(n,s,l,h){return Qr(n,s,l,h),Id(n)}function vo(n,s){return Qr(n,null,null,s),Id(n)}function su(n,s,l){n.lanes|=l;var h=n.alternate;h!==null&&(h.lanes|=l);for(var b=!1,M=n.return;M!==null;)M.childLanes|=l,h=M.alternate,h!==null&&(h.childLanes|=l),M.tag===22&&(n=M.stateNode,n===null||n._visibility&1||(b=!0)),n=M,M=M.return;return n.tag===3?(M=n.stateNode,b&&s!==null&&(b=31-Ae(l),n=M.hiddenUpdates,h=n[b],h===null?n[b]=[s]:h.push(s),s.lane=l|536870912),M):null}function Id(n){if(50<ju)throw ju=0,Iy=null,Error(c(185));for(var s=n.return;s!==null;)n=s,s=n.return;return n.tag===3?n.stateNode:null}var ou={};function M1(n,s,l,h){this.tag=n,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function za(n,s,l,h){return new M1(n,s,l,h)}function qd(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Zs(n,s){var l=n.alternate;return l===null?(l=za(n.tag,s,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=s,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&65011712,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,s=n.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l.refCleanup=n.refCleanup,l}function _n(n,s){n.flags&=65011714;var l=n.alternate;return l===null?(n.childLanes=0,n.lanes=s,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=l.childLanes,n.lanes=l.lanes,n.child=l.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=l.memoizedProps,n.memoizedState=l.memoizedState,n.updateQueue=l.updateQueue,n.type=l.type,s=l.dependencies,n.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),n}function xt(n,s,l,h,b,M){var fe=0;if(h=n,typeof n=="function")qd(n)&&(fe=1);else if(typeof n=="string")fe=rv(n,l,C.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case oe:return n=za(31,l,s,b),n.elementType=oe,n.lanes=M,n;case O:return Cs(l.children,b,M,s);case V:fe=8,b|=24;break;case ae:return n=za(12,l,s,b|2),n.elementType=ae,n.lanes=M,n;case Q:return n=za(13,l,s,b),n.elementType=Q,n.lanes=M,n;case $:return n=za(19,l,s,b),n.elementType=$,n.lanes=M,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case ie:case P:fe=10;break e;case U:fe=9;break e;case X:fe=11;break e;case I:fe=14;break e;case he:fe=16,h=null;break e}fe=29,l=Error(c(130,n===null?"null":typeof n,"")),h=null}return s=za(fe,l,s,b),s.elementType=n,s.type=h,s.lanes=M,s}function Cs(n,s,l,h){return n=za(7,n,h,s),n.lanes=l,n}function ru(n,s,l){return n=za(6,n,null,s),n.lanes=l,n}function Si(n,s,l){return s=za(4,n.children!==null?n.children:[],n.key,s),s.lanes=l,s.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},s}var Wr=[],Jr=0,Yd=null,lu=0,ws=[],Ba=0,dr=null,Qs=1,Mi="";function Ln(n,s){Wr[Jr++]=lu,Wr[Jr++]=Yd,Yd=n,lu=s}function qf(n,s,l){ws[Ba++]=Qs,ws[Ba++]=Mi,ws[Ba++]=dr,dr=n;var h=Qs;n=Mi;var b=32-Ae(h)-1;h&=~(1<<b),l+=1;var M=32-Ae(s)+b;if(30<M){var fe=b-b%5;M=(h&(1<<fe)-1).toString(32),h>>=fe,b-=fe,Qs=1<<32-Ae(s)+b|l<<b|h,Mi=M+n}else Qs=1<<M|l<<b|h,Mi=n}function Kl(n){n.return!==null&&(Ln(n,1),qf(n,1,0))}function xo(n){for(;n===Yd;)Yd=Wr[--Jr],Wr[Jr]=null,lu=Wr[--Jr],Wr[Jr]=null;for(;n===dr;)dr=ws[--Ba],ws[Ba]=null,Mi=ws[--Ba],ws[Ba]=null,Qs=ws[--Ba],ws[Ba]=null}var Ni=null,Gn=null,Bn=!1,ks=null,Ts=!1,ec=Error(c(519));function hr(n){var s=Error(c(418,""));throw du(ss(s,n)),ec}function Fd(n){var s=n.stateNode,l=n.type,h=n.memoizedProps;switch(s[bt]=n,s[St]=h,l){case"dialog":fn("cancel",s),fn("close",s);break;case"iframe":case"object":case"embed":fn("load",s);break;case"video":case"audio":for(l=0;l<jh.length;l++)fn(jh[l],s);break;case"source":fn("error",s);break;case"img":case"image":case"link":fn("error",s),fn("load",s);break;case"details":fn("toggle",s);break;case"input":fn("invalid",s),Ef(s,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),yi(s);break;case"select":fn("invalid",s);break;case"textarea":fn("invalid",s),vm(s,h.value,h.defaultValue,h.children),yi(s)}l=h.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||s.textContent===""+l||h.suppressHydrationWarning===!0||a0(s.textContent,l)?(h.popover!=null&&(fn("beforetoggle",s),fn("toggle",s)),h.onScroll!=null&&fn("scroll",s),h.onScrollEnd!=null&&fn("scrollend",s),h.onClick!=null&&(s.onclick=tg),s=!0):s=!1,s||hr(n)}function qm(n){for(Ni=n.return;Ni;)switch(Ni.tag){case 5:case 13:Ts=!1;return;case 27:case 3:Ts=!0;return;default:Ni=Ni.return}}function cu(n){if(n!==Ni)return!1;if(!Bn)return qm(n),Bn=!0,!1;var s=n.tag,l;if((l=s!==3&&s!==27)&&((l=s===5)&&(l=n.type,l=!(l!=="form"&&l!=="button")||$o(n.type,n.memoizedProps)),l=!l),l&&Gn&&hr(n),qm(n),s===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(c(317));e:{for(n=n.nextSibling,s=0;n;){if(n.nodeType===8)if(l=n.data,l==="/$"){if(s===0){Gn=no(n.nextSibling);break e}s--}else l!=="$"&&l!=="$!"&&l!=="$?"||s++;n=n.nextSibling}Gn=null}}else s===27?(s=Gn,ml(n.type)?(n=yl,yl=null,Gn=n):Gn=s):Gn=Ni?no(n.stateNode.nextSibling):null;return!0}function uu(){Gn=Ni=null,Bn=!1}function Ym(){var n=ks;return n!==null&&(Va===null?Va=n:Va.push.apply(Va,n),ks=null),n}function du(n){ks===null?ks=[n]:ks.push(n)}var Xd=ue(null),fr=null,Ws=null;function pr(n,s,l){g(Xd,s._currentValue),s._currentValue=l}function _o(n){n._currentValue=Xd.current,ye(Xd)}function Yf(n,s,l){for(;n!==null;){var h=n.alternate;if((n.childLanes&s)!==s?(n.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),n===l)break;n=n.return}}function Fm(n,s,l,h){var b=n.child;for(b!==null&&(b.return=n);b!==null;){var M=b.dependencies;if(M!==null){var fe=b.child;M=M.firstContext;e:for(;M!==null;){var Se=M;M=b;for(var Oe=0;Oe<s.length;Oe++)if(Se.context===s[Oe]){M.lanes|=l,Se=M.alternate,Se!==null&&(Se.lanes|=l),Yf(M.return,l,n),h||(fe=null);break e}M=Se.next}}else if(b.tag===18){if(fe=b.return,fe===null)throw Error(c(341));fe.lanes|=l,M=fe.alternate,M!==null&&(M.lanes|=l),Yf(fe,l,n),fe=null}else fe=b.child;if(fe!==null)fe.return=b;else for(fe=b;fe!==null;){if(fe===n){fe=null;break}if(b=fe.sibling,b!==null){b.return=fe.return,fe=b;break}fe=fe.return}b=fe}}function hu(n,s,l,h){n=null;for(var b=s,M=!1;b!==null;){if(!M){if((b.flags&524288)!==0)M=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var fe=b.alternate;if(fe===null)throw Error(c(387));if(fe=fe.memoizedProps,fe!==null){var Se=b.type;aa(b.pendingProps.value,fe.value)||(n!==null?n.push(Se):n=[Se])}}else if(b===q.current){if(fe=b.alternate,fe===null)throw Error(c(387));fe.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(n!==null?n.push(Fa):n=[Fa])}b=b.return}n!==null&&Fm(s,n,l,h),s.flags|=262144}function Zd(n){for(n=n.firstContext;n!==null;){if(!aa(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Kr(n){fr=n,Ws=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Zi(n){return Xm(fr,n)}function Qd(n,s){return fr===null&&Kr(n),Xm(n,s)}function Xm(n,s){var l=s._currentValue;if(s={context:s,memoizedValue:l,next:null},Ws===null){if(n===null)throw Error(c(308));Ws=s,n.dependencies={lanes:0,firstContext:s},n.flags|=524288}else Ws=Ws.next=s;return l}var fu=typeof AbortController<"u"?AbortController:function(){var n=[],s=this.signal={aborted:!1,addEventListener:function(l,h){n.push(h)}};this.abort=function(){s.aborted=!0,n.forEach(function(l){return l()})}},Ff=o.unstable_scheduleCallback,A1=o.unstable_NormalPriority,Vi={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pu(){return{controller:new fu,data:new Map,refCount:0}}function So(n){n.refCount--,n.refCount===0&&Ff(A1,function(){n.controller.abort()})}var el=null,Wd=0,Ms=0,Ii=null;function Xf(n,s){if(el===null){var l=el=[];Wd=0,Ms=Sc(),Ii={status:"pending",value:void 0,then:function(h){l.push(h)}}}return Wd++,s.then(Zf,Zf),s}function Zf(){if(--Wd===0&&el!==null){Ii!==null&&(Ii.status="fulfilled");var n=el;el=null,Ms=0,Ii=null;for(var s=0;s<n.length;s++)(0,n[s])()}}function E1(n,s){var l=[],h={status:"pending",value:null,reason:null,then:function(b){l.push(b)}};return n.then(function(){h.status="fulfilled",h.value=s;for(var b=0;b<l.length;b++)(0,l[b])(s)},function(b){for(h.status="rejected",h.reason=b,b=0;b<l.length;b++)(0,l[b])(void 0)}),h}var Qf=A.S;A.S=function(n,s){typeof s=="object"&&s!==null&&typeof s.then=="function"&&Xf(n,s),Qf!==null&&Qf(n,s)};var Co=ue(null);function Jd(){var n=Co.current;return n!==null?n:oi.pooledCache}function tc(n,s){s===null?g(Co,Co.current):g(Co,s.pool)}function Wf(){var n=Jd();return n===null?null:{parent:Vi._currentValue,pool:n}}var tl=Error(c(460)),Jf=Error(c(474)),Kd=Error(c(542)),Kf={then:function(){}};function ep(n){return n=n.status,n==="fulfilled"||n==="rejected"}function eh(){}function Zm(n,s,l){switch(l=n[l],l===void 0?n.push(s):l!==s&&(s.then(eh,eh),s=l),s.status){case"fulfilled":return s.value;case"rejected":throw n=s.reason,Wm(n),n;default:if(typeof s.status=="string")s.then(eh,eh);else{if(n=oi,n!==null&&100<n.shellSuspendCounter)throw Error(c(482));n=s,n.status="pending",n.then(function(h){if(s.status==="pending"){var b=s;b.status="fulfilled",b.value=h}},function(h){if(s.status==="pending"){var b=s;b.status="rejected",b.reason=h}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw n=s.reason,Wm(n),n}throw nc=s,tl}}var nc=null;function Qm(){if(nc===null)throw Error(c(459));var n=nc;return nc=null,n}function Wm(n){if(n===tl||n===Kd)throw Error(c(483))}var wo=!1;function tp(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function np(n,s){n=n.updateQueue,s.updateQueue===n&&(s.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Ua(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function ko(n,s,l){var h=n.updateQueue;if(h===null)return null;if(h=h.shared,(Zn&2)!==0){var b=h.pending;return b===null?s.next=s:(s.next=b.next,b.next=s),h.pending=s,s=Id(n),su(n,null,l),s}return Qr(n,h,s,l),Id(n)}function ic(n,s,l){if(s=s.updateQueue,s!==null&&(s=s.shared,(l&4194048)!==0)){var h=s.lanes;h&=n.pendingLanes,l|=h,s.lanes=l,Bt(n,l)}}function Jm(n,s){var l=n.updateQueue,h=n.alternate;if(h!==null&&(h=h.updateQueue,l===h)){var b=null,M=null;if(l=l.firstBaseUpdate,l!==null){do{var fe={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};M===null?b=M=fe:M=M.next=fe,l=l.next}while(l!==null);M===null?b=M=s:M=M.next=s}else b=M=s;l={baseState:h.baseState,firstBaseUpdate:b,lastBaseUpdate:M,shared:h.shared,callbacks:h.callbacks},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=s:n.next=s,l.lastBaseUpdate=s}var Km=!1;function gu(){if(Km){var n=Ii;if(n!==null)throw n}}function gr(n,s,l,h){Km=!1;var b=n.updateQueue;wo=!1;var M=b.firstBaseUpdate,fe=b.lastBaseUpdate,Se=b.shared.pending;if(Se!==null){b.shared.pending=null;var Oe=Se,Ie=Oe.next;Oe.next=null,fe===null?M=Ie:fe.next=Ie,fe=Oe;var at=n.alternate;at!==null&&(at=at.updateQueue,Se=at.lastBaseUpdate,Se!==fe&&(Se===null?at.firstBaseUpdate=Ie:Se.next=Ie,at.lastBaseUpdate=Oe))}if(M!==null){var dt=b.baseState;fe=0,at=Ie=Oe=null,Se=M;do{var Xe=Se.lane&-536870913,Qe=Xe!==Se.lane;if(Qe?(An&Xe)===Xe:(h&Xe)===Xe){Xe!==0&&Xe===Ms&&(Km=!0),at!==null&&(at=at.next={lane:0,tag:Se.tag,payload:Se.payload,callback:null,next:null});e:{var Xt=n,Zt=Se;Xe=s;var Vn=l;switch(Zt.tag){case 1:if(Xt=Zt.payload,typeof Xt=="function"){dt=Xt.call(Vn,dt,Xe);break e}dt=Xt;break e;case 3:Xt.flags=Xt.flags&-65537|128;case 0:if(Xt=Zt.payload,Xe=typeof Xt=="function"?Xt.call(Vn,dt,Xe):Xt,Xe==null)break e;dt=j({},dt,Xe);break e;case 2:wo=!0}}Xe=Se.callback,Xe!==null&&(n.flags|=64,Qe&&(n.flags|=8192),Qe=b.callbacks,Qe===null?b.callbacks=[Xe]:Qe.push(Xe))}else Qe={lane:Xe,tag:Se.tag,payload:Se.payload,callback:Se.callback,next:null},at===null?(Ie=at=Qe,Oe=dt):at=at.next=Qe,fe|=Xe;if(Se=Se.next,Se===null){if(Se=b.shared.pending,Se===null)break;Qe=Se,Se=Qe.next,Qe.next=null,b.lastBaseUpdate=Qe,b.shared.pending=null}}while(!0);at===null&&(Oe=dt),b.baseState=Oe,b.firstBaseUpdate=Ie,b.lastBaseUpdate=at,M===null&&(b.shared.lanes=0),Sr|=fe,n.lanes=fe,n.memoizedState=dt}}function ip(n,s){if(typeof n!="function")throw Error(c(191,n));n.call(s)}function th(n,s){var l=n.callbacks;if(l!==null)for(n.callbacks=null,n=0;n<l.length;n++)ip(l[n],s)}var ac=ue(null),nh=ue(0);function Qi(n,s){n=_r,g(nh,n),g(ac,s),_r=n|s.baseLanes}function mu(){g(nh,_r),g(ac,ac.current)}function yu(){_r=nh.current,ye(ac),ye(nh)}var As=0,hn=null,Xn=null,Ci=null,ih=!1,os=!1,nl=!1,Js=0,rs=0,mr=null,ey=0;function wi(){throw Error(c(321))}function ap(n,s){if(s===null)return!1;for(var l=0;l<s.length&&l<n.length;l++)if(!aa(n[l],s[l]))return!1;return!0}function sp(n,s,l,h,b,M){return As=M,hn=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,A.H=n===null||n.memoizedState===null?gy:my,nl=!1,M=l(h,b),nl=!1,os&&(M=ty(s,l,h,b)),il(n),M}function il(n){A.H=Sp;var s=Xn!==null&&Xn.next!==null;if(As=0,Ci=Xn=hn=null,ih=!1,rs=0,mr=null,s)throw Error(c(300));n===null||qi||(n=n.dependencies,n!==null&&Zd(n)&&(qi=!0))}function ty(n,s,l,h){hn=n;var b=0;do{if(os&&(mr=null),rs=0,os=!1,25<=b)throw Error(c(301));if(b+=1,Ci=Xn=null,n.updateQueue!=null){var M=n.updateQueue;M.lastEffect=null,M.events=null,M.stores=null,M.memoCache!=null&&(M.memoCache.index=0)}A.H=yr,M=s(l,h)}while(os);return M}function D1(){var n=A.H,s=n.useState()[0];return s=typeof s.then=="function"?sh(s):s,n=n.useState()[0],(Xn!==null?Xn.memoizedState:null)!==n&&(hn.flags|=1024),s}function op(){var n=Js!==0;return Js=0,n}function bu(n,s,l){s.updateQueue=n.updateQueue,s.flags&=-2053,n.lanes&=~l}function rp(n){if(ih){for(n=n.memoizedState;n!==null;){var s=n.queue;s!==null&&(s.pending=null),n=n.next}ih=!1}As=0,Ci=Xn=hn=null,os=!1,rs=Js=0,mr=null}function ga(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ci===null?hn.memoizedState=Ci=n:Ci=Ci.next=n,Ci}function Ai(){if(Xn===null){var n=hn.alternate;n=n!==null?n.memoizedState:null}else n=Xn.next;var s=Ci===null?hn.memoizedState:Ci.next;if(s!==null)Ci=s,Xn=n;else{if(n===null)throw hn.alternate===null?Error(c(467)):Error(c(310));Xn=n,n={memoizedState:Xn.memoizedState,baseState:Xn.baseState,baseQueue:Xn.baseQueue,queue:Xn.queue,next:null},Ci===null?hn.memoizedState=Ci=n:Ci=Ci.next=n}return Ci}function ah(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sh(n){var s=rs;return rs+=1,mr===null&&(mr=[]),n=Zm(mr,n,s),s=hn,(Ci===null?s.memoizedState:Ci.next)===null&&(s=s.alternate,A.H=s===null||s.memoizedState===null?gy:my),n}function Bi(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return sh(n);if(n.$$typeof===P)return Zi(n)}throw Error(c(438,String(n)))}function lp(n){var s=null,l=hn.updateQueue;if(l!==null&&(s=l.memoCache),s==null){var h=hn.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(s={data:h.data.map(function(b){return b.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),l===null&&(l=ah(),hn.updateQueue=l),l.memoCache=s,l=s.data[s.index],l===void 0)for(l=s.data[s.index]=Array(n),h=0;h<n;h++)l[h]=te;return s.index++,l}function To(n,s){return typeof s=="function"?s(n):s}function oh(n){var s=Ai();return cp(s,Xn,n)}function cp(n,s,l){var h=n.queue;if(h===null)throw Error(c(311));h.lastRenderedReducer=l;var b=n.baseQueue,M=h.pending;if(M!==null){if(b!==null){var fe=b.next;b.next=M.next,M.next=fe}s.baseQueue=b=M,h.pending=null}if(M=n.baseState,b===null)n.memoizedState=M;else{s=b.next;var Se=fe=null,Oe=null,Ie=s,at=!1;do{var dt=Ie.lane&-536870913;if(dt!==Ie.lane?(An&dt)===dt:(As&dt)===dt){var Xe=Ie.revertLane;if(Xe===0)Oe!==null&&(Oe=Oe.next={lane:0,revertLane:0,action:Ie.action,hasEagerState:Ie.hasEagerState,eagerState:Ie.eagerState,next:null}),dt===Ms&&(at=!0);else if((As&Xe)===Xe){Ie=Ie.next,Xe===Ms&&(at=!0);continue}else dt={lane:0,revertLane:Ie.revertLane,action:Ie.action,hasEagerState:Ie.hasEagerState,eagerState:Ie.eagerState,next:null},Oe===null?(Se=Oe=dt,fe=M):Oe=Oe.next=dt,hn.lanes|=Xe,Sr|=Xe;dt=Ie.action,nl&&l(M,dt),M=Ie.hasEagerState?Ie.eagerState:l(M,dt)}else Xe={lane:dt,revertLane:Ie.revertLane,action:Ie.action,hasEagerState:Ie.hasEagerState,eagerState:Ie.eagerState,next:null},Oe===null?(Se=Oe=Xe,fe=M):Oe=Oe.next=Xe,hn.lanes|=dt,Sr|=dt;Ie=Ie.next}while(Ie!==null&&Ie!==s);if(Oe===null?fe=M:Oe.next=Se,!aa(M,n.memoizedState)&&(qi=!0,at&&(l=Ii,l!==null)))throw l;n.memoizedState=M,n.baseState=fe,n.baseQueue=Oe,h.lastRenderedState=M}return b===null&&(h.lanes=0),[n.memoizedState,h.dispatch]}function up(n){var s=Ai(),l=s.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=n;var h=l.dispatch,b=l.pending,M=s.memoizedState;if(b!==null){l.pending=null;var fe=b=b.next;do M=n(M,fe.action),fe=fe.next;while(fe!==b);aa(M,s.memoizedState)||(qi=!0),s.memoizedState=M,s.baseQueue===null&&(s.baseState=M),l.lastRenderedState=M}return[M,h]}function rh(n,s,l){var h=hn,b=Ai(),M=Bn;if(M){if(l===void 0)throw Error(c(407));l=l()}else l=s();var fe=!aa((Xn||b).memoizedState,l);fe&&(b.memoizedState=l,qi=!0),b=b.queue;var Se=iy.bind(null,h,b,n);if(ti(2048,8,Se,[n]),b.getSnapshot!==s||fe||Ci!==null&&Ci.memoizedState.tag&1){if(h.flags|=2048,Ha(9,uh(),ny.bind(null,h,b,l,s),null),oi===null)throw Error(c(349));M||(As&124)!==0||dp(h,s,l)}return l}function dp(n,s,l){n.flags|=16384,n={getSnapshot:s,value:l},s=hn.updateQueue,s===null?(s=ah(),hn.updateQueue=s,s.stores=[n]):(l=s.stores,l===null?s.stores=[n]:l.push(n))}function ny(n,s,l,h){s.value=l,s.getSnapshot=h,ay(s)&&hp(n)}function iy(n,s,l){return l(function(){ay(s)&&hp(n)})}function ay(n){var s=n.getSnapshot;n=n.value;try{var l=s();return!aa(n,l)}catch{return!0}}function hp(n){var s=vo(n,2);s!==null&&us(s,n,2)}function lh(n){var s=ga();if(typeof n=="function"){var l=n;if(n=l(),nl){ke(!0);try{l()}finally{ke(!1)}}}return s.memoizedState=s.baseState=n,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:To,lastRenderedState:n},s}function fp(n,s,l,h){return n.baseState=l,cp(n,Xn,typeof h=="function"?h:To)}function O1(n,s,l,h,b){if(lc(n))throw Error(c(485));if(n=s.action,n!==null){var M={payload:b,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(fe){M.listeners.push(fe)}};A.T!==null?l(!0):M.isTransition=!1,h(M),l=s.pending,l===null?(M.next=s.pending=M,pp(s,M)):(M.next=l.next,s.pending=l.next=M)}}function pp(n,s){var l=s.action,h=s.payload,b=n.state;if(s.isTransition){var M=A.T,fe={};A.T=fe;try{var Se=l(b,h),Oe=A.S;Oe!==null&&Oe(fe,Se),ch(n,s,Se)}catch(Ie){mp(n,s,Ie)}finally{A.T=M}}else try{M=l(b,h),ch(n,s,M)}catch(Ie){mp(n,s,Ie)}}function ch(n,s,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(h){gp(n,s,h)},function(h){return mp(n,s,h)}):gp(n,s,l)}function gp(n,s,l){s.status="fulfilled",s.value=l,sy(s),n.state=l,s=n.pending,s!==null&&(l=s.next,l===s?n.pending=null:(l=l.next,s.next=l,pp(n,l)))}function mp(n,s,l){var h=n.pending;if(n.pending=null,h!==null){h=h.next;do s.status="rejected",s.reason=l,sy(s),s=s.next;while(s!==h)}n.action=null}function sy(n){n=n.listeners;for(var s=0;s<n.length;s++)(0,n[s])()}function yp(n,s){return s}function oy(n,s){if(Bn){var l=oi.formState;if(l!==null){e:{var h=hn;if(Bn){if(Gn){t:{for(var b=Gn,M=Ts;b.nodeType!==8;){if(!M){b=null;break t}if(b=no(b.nextSibling),b===null){b=null;break t}}M=b.data,b=M==="F!"||M==="F"?b:null}if(b){Gn=no(b.nextSibling),h=b.data==="F!";break e}}hr(h)}h=!1}h&&(s=l[0])}}return l=ga(),l.memoizedState=l.baseState=s,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yp,lastRenderedState:s},l.queue=h,l=fy.bind(null,hn,h),h.dispatch=l,h=lh(!1),M=fh.bind(null,hn,!1,h.queue),h=ga(),b={state:s,dispatch:null,action:n,pending:null},h.queue=b,l=O1.bind(null,hn,b,M,l),b.dispatch=l,h.memoizedState=n,[s,l,!1]}function Mo(n){var s=Ai();return bp(s,Xn,n)}function bp(n,s,l){if(s=cp(n,s,yp)[0],n=oh(To)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var h=sh(s)}catch(fe){throw fe===tl?Kd:fe}else h=s;s=Ai();var b=s.queue,M=b.dispatch;return l!==s.memoizedState&&(hn.flags|=2048,Ha(9,uh(),Zx.bind(null,b,l),null)),[h,M,n]}function Zx(n,s){n.action=s}function vp(n){var s=Ai(),l=Xn;if(l!==null)return bp(s,l,n);Ai(),s=s.memoizedState,l=Ai();var h=l.queue.dispatch;return l.memoizedState=n,[s,h,!1]}function Ha(n,s,l,h){return n={tag:n,create:l,deps:h,inst:s,next:null},s=hn.updateQueue,s===null&&(s=ah(),hn.updateQueue=s),l=s.lastEffect,l===null?s.lastEffect=n.next=n:(h=l.next,l.next=n,n.next=h,s.lastEffect=n),n}function uh(){return{destroy:void 0,resource:void 0}}function dh(){return Ai().memoizedState}function al(n,s,l,h){var b=ga();h=h===void 0?null:h,hn.flags|=n,b.memoizedState=Ha(1|s,uh(),l,h)}function ti(n,s,l,h){var b=Ai();h=h===void 0?null:h;var M=b.memoizedState.inst;Xn!==null&&h!==null&&ap(h,Xn.memoizedState.deps)?b.memoizedState=Ha(s,M,l,h):(hn.flags|=n,b.memoizedState=Ha(1|s,M,l,h))}function j1(n,s){al(8390656,8,n,s)}function L1(n,s){ti(2048,8,n,s)}function ry(n,s){return ti(4,2,n,s)}function Ks(n,s){return ti(4,4,n,s)}function ly(n,s){if(typeof s=="function"){n=n();var l=s(n);return function(){typeof l=="function"?l():s(null)}}if(s!=null)return n=n(),s.current=n,function(){s.current=null}}function xp(n,s,l){l=l!=null?l.concat([n]):null,ti(4,4,ly.bind(null,s,n),l)}function sc(){}function oc(n,s){var l=Ai();s=s===void 0?null:s;var h=l.memoizedState;return s!==null&&ap(s,h[1])?h[0]:(l.memoizedState=[n,s],n)}function cy(n,s){var l=Ai();s=s===void 0?null:s;var h=l.memoizedState;if(s!==null&&ap(s,h[1]))return h[0];if(h=n(),nl){ke(!0);try{n()}finally{ke(!1)}}return l.memoizedState=[h,s],h}function hh(n,s,l){return l===void 0||(As&1073741824)!==0?n.memoizedState=s:(n.memoizedState=l,n=qy(),hn.lanes|=n,Sr|=n,l)}function uy(n,s,l,h){return aa(l,s)?l:ac.current!==null?(n=hh(n,l,h),aa(n,s)||(qi=!0),n):(As&42)===0?(qi=!0,n.memoizedState=l):(n=qy(),hn.lanes|=n,Sr|=n,s)}function R1(n,s,l,h,b){var M=L.p;L.p=M!==0&&8>M?M:8;var fe=A.T,Se={};A.T=Se,fh(n,!1,s,l);try{var Oe=b(),Ie=A.S;if(Ie!==null&&Ie(Se,Oe),Oe!==null&&typeof Oe=="object"&&typeof Oe.then=="function"){var at=E1(Oe,h);rc(n,s,at,cs(n))}else rc(n,s,h,cs(n))}catch(dt){rc(n,s,{then:function(){},status:"rejected",reason:dt},cs())}finally{L.p=M,A.T=fe}}function Qx(){}function _p(n,s,l,h){if(n.tag!==5)throw Error(c(476));var b=N1(n).queue;R1(n,b,s,J,l===null?Qx:function(){return vu(n),l(h)})}function N1(n){var s=n.memoizedState;if(s!==null)return s;s={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:To,lastRenderedState:J},next:null};var l={};return s.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:To,lastRenderedState:l},next:null},n.memoizedState=s,n=n.alternate,n!==null&&(n.memoizedState=s),s}function vu(n){var s=N1(n).next.queue;rc(n,s,{},cs())}function Es(){return Zi(Fa)}function dy(){return Ai().memoizedState}function z1(){return Ai().memoizedState}function B1(n){for(var s=n.return;s!==null;){switch(s.tag){case 24:case 3:var l=cs();n=Ua(l);var h=ko(s,n,l);h!==null&&(us(h,s,l),ic(h,s,l)),s={cache:pu()},n.payload=s;return}s=s.return}}function hy(n,s,l){var h=cs();l={lane:h,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},lc(n)?U1(s,l):(l=au(n,s,l,h),l!==null&&(us(l,n,h),py(l,s,h)))}function fy(n,s,l){var h=cs();rc(n,s,l,h)}function rc(n,s,l,h){var b={lane:h,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(lc(n))U1(s,b);else{var M=n.alternate;if(n.lanes===0&&(M===null||M.lanes===0)&&(M=s.lastRenderedReducer,M!==null))try{var fe=s.lastRenderedState,Se=M(fe,l);if(b.hasEagerState=!0,b.eagerState=Se,aa(Se,fe))return Qr(n,s,b,0),oi===null&&Xs(),!1}catch{}finally{}if(l=au(n,s,b,h),l!==null)return us(l,n,h),py(l,s,h),!0}return!1}function fh(n,s,l,h){if(h={lane:2,revertLane:Sc(),action:h,hasEagerState:!1,eagerState:null,next:null},lc(n)){if(s)throw Error(c(479))}else s=au(n,l,h,2),s!==null&&us(s,n,2)}function lc(n){var s=n.alternate;return n===hn||s!==null&&s===hn}function U1(n,s){os=ih=!0;var l=n.pending;l===null?s.next=s:(s.next=l.next,l.next=s),n.pending=s}function py(n,s,l){if((l&4194048)!==0){var h=s.lanes;h&=n.pendingLanes,l|=h,s.lanes=l,Bt(n,l)}}var Sp={readContext:Zi,use:Bi,useCallback:wi,useContext:wi,useEffect:wi,useImperativeHandle:wi,useLayoutEffect:wi,useInsertionEffect:wi,useMemo:wi,useReducer:wi,useRef:wi,useState:wi,useDebugValue:wi,useDeferredValue:wi,useTransition:wi,useSyncExternalStore:wi,useId:wi,useHostTransitionStatus:wi,useFormState:wi,useActionState:wi,useOptimistic:wi,useMemoCache:wi,useCacheRefresh:wi},gy={readContext:Zi,use:Bi,useCallback:function(n,s){return ga().memoizedState=[n,s===void 0?null:s],n},useContext:Zi,useEffect:j1,useImperativeHandle:function(n,s,l){l=l!=null?l.concat([n]):null,al(4194308,4,ly.bind(null,s,n),l)},useLayoutEffect:function(n,s){return al(4194308,4,n,s)},useInsertionEffect:function(n,s){al(4,2,n,s)},useMemo:function(n,s){var l=ga();s=s===void 0?null:s;var h=n();if(nl){ke(!0);try{n()}finally{ke(!1)}}return l.memoizedState=[h,s],h},useReducer:function(n,s,l){var h=ga();if(l!==void 0){var b=l(s);if(nl){ke(!0);try{l(s)}finally{ke(!1)}}}else b=s;return h.memoizedState=h.baseState=b,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:b},h.queue=n,n=n.dispatch=hy.bind(null,hn,n),[h.memoizedState,n]},useRef:function(n){var s=ga();return n={current:n},s.memoizedState=n},useState:function(n){n=lh(n);var s=n.queue,l=fy.bind(null,hn,s);return s.dispatch=l,[n.memoizedState,l]},useDebugValue:sc,useDeferredValue:function(n,s){var l=ga();return hh(l,n,s)},useTransition:function(){var n=lh(!1);return n=R1.bind(null,hn,n.queue,!0,!1),ga().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,s,l){var h=hn,b=ga();if(Bn){if(l===void 0)throw Error(c(407));l=l()}else{if(l=s(),oi===null)throw Error(c(349));(An&124)!==0||dp(h,s,l)}b.memoizedState=l;var M={value:l,getSnapshot:s};return b.queue=M,j1(iy.bind(null,h,M,n),[n]),h.flags|=2048,Ha(9,uh(),ny.bind(null,h,M,l,s),null),l},useId:function(){var n=ga(),s=oi.identifierPrefix;if(Bn){var l=Mi,h=Qs;l=(h&~(1<<32-Ae(h)-1)).toString(32)+l,s="«"+s+"R"+l,l=Js++,0<l&&(s+="H"+l.toString(32)),s+="»"}else l=ey++,s="«"+s+"r"+l.toString(32)+"»";return n.memoizedState=s},useHostTransitionStatus:Es,useFormState:oy,useActionState:oy,useOptimistic:function(n){var s=ga();s.memoizedState=s.baseState=n;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=l,s=fh.bind(null,hn,!0,l),l.dispatch=s,[n,s]},useMemoCache:lp,useCacheRefresh:function(){return ga().memoizedState=B1.bind(null,hn)}},my={readContext:Zi,use:Bi,useCallback:oc,useContext:Zi,useEffect:L1,useImperativeHandle:xp,useInsertionEffect:ry,useLayoutEffect:Ks,useMemo:cy,useReducer:oh,useRef:dh,useState:function(){return oh(To)},useDebugValue:sc,useDeferredValue:function(n,s){var l=Ai();return uy(l,Xn.memoizedState,n,s)},useTransition:function(){var n=oh(To)[0],s=Ai().memoizedState;return[typeof n=="boolean"?n:sh(n),s]},useSyncExternalStore:rh,useId:dy,useHostTransitionStatus:Es,useFormState:Mo,useActionState:Mo,useOptimistic:function(n,s){var l=Ai();return fp(l,Xn,n,s)},useMemoCache:lp,useCacheRefresh:z1},yr={readContext:Zi,use:Bi,useCallback:oc,useContext:Zi,useEffect:L1,useImperativeHandle:xp,useInsertionEffect:ry,useLayoutEffect:Ks,useMemo:cy,useReducer:up,useRef:dh,useState:function(){return up(To)},useDebugValue:sc,useDeferredValue:function(n,s){var l=Ai();return Xn===null?hh(l,n,s):uy(l,Xn.memoizedState,n,s)},useTransition:function(){var n=up(To)[0],s=Ai().memoizedState;return[typeof n=="boolean"?n:sh(n),s]},useSyncExternalStore:rh,useId:dy,useHostTransitionStatus:Es,useFormState:vp,useActionState:vp,useOptimistic:function(n,s){var l=Ai();return Xn!==null?fp(l,Xn,n,s):(l.baseState=n,[n,l.queue.dispatch])},useMemoCache:lp,useCacheRefresh:z1},cc=null,xu=0;function Cp(n){var s=xu;return xu+=1,cc===null&&(cc=[]),Zm(cc,n,s)}function uc(n,s){s=s.props.ref,n.ref=s!==void 0?s:null}function ma(n,s){throw s.$$typeof===B?Error(c(525)):(n=Object.prototype.toString.call(s),Error(c(31,n==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":n)))}function yy(n){var s=n._init;return s(n._payload)}function $a(n){function s(Pe,He){if(n){var Ve=Pe.deletions;Ve===null?(Pe.deletions=[He],Pe.flags|=16):Ve.push(He)}}function l(Pe,He){if(!n)return null;for(;He!==null;)s(Pe,He),He=He.sibling;return null}function h(Pe){for(var He=new Map;Pe!==null;)Pe.key!==null?He.set(Pe.key,Pe):He.set(Pe.index,Pe),Pe=Pe.sibling;return He}function b(Pe,He){return Pe=Zs(Pe,He),Pe.index=0,Pe.sibling=null,Pe}function M(Pe,He,Ve){return Pe.index=Ve,n?(Ve=Pe.alternate,Ve!==null?(Ve=Ve.index,Ve<He?(Pe.flags|=67108866,He):Ve):(Pe.flags|=67108866,He)):(Pe.flags|=1048576,He)}function fe(Pe){return n&&Pe.alternate===null&&(Pe.flags|=67108866),Pe}function Se(Pe,He,Ve,ct){return He===null||He.tag!==6?(He=ru(Ve,Pe.mode,ct),He.return=Pe,He):(He=b(He,Ve),He.return=Pe,He)}function Oe(Pe,He,Ve,ct){var zt=Ve.type;return zt===O?at(Pe,He,Ve.props.children,ct,Ve.key):He!==null&&(He.elementType===zt||typeof zt=="object"&&zt!==null&&zt.$$typeof===he&&yy(zt)===He.type)?(He=b(He,Ve.props),uc(He,Ve),He.return=Pe,He):(He=xt(Ve.type,Ve.key,Ve.props,null,Pe.mode,ct),uc(He,Ve),He.return=Pe,He)}function Ie(Pe,He,Ve,ct){return He===null||He.tag!==4||He.stateNode.containerInfo!==Ve.containerInfo||He.stateNode.implementation!==Ve.implementation?(He=Si(Ve,Pe.mode,ct),He.return=Pe,He):(He=b(He,Ve.children||[]),He.return=Pe,He)}function at(Pe,He,Ve,ct,zt){return He===null||He.tag!==7?(He=Cs(Ve,Pe.mode,ct,zt),He.return=Pe,He):(He=b(He,Ve),He.return=Pe,He)}function dt(Pe,He,Ve){if(typeof He=="string"&&He!==""||typeof He=="number"||typeof He=="bigint")return He=ru(""+He,Pe.mode,Ve),He.return=Pe,He;if(typeof He=="object"&&He!==null){switch(He.$$typeof){case ee:return Ve=xt(He.type,He.key,He.props,null,Pe.mode,Ve),uc(Ve,He),Ve.return=Pe,Ve;case ne:return He=Si(He,Pe.mode,Ve),He.return=Pe,He;case he:var ct=He._init;return He=ct(He._payload),dt(Pe,He,Ve)}if(_(He)||W(He))return He=Cs(He,Pe.mode,Ve,null),He.return=Pe,He;if(typeof He.then=="function")return dt(Pe,Cp(He),Ve);if(He.$$typeof===P)return dt(Pe,Qd(Pe,He),Ve);ma(Pe,He)}return null}function Xe(Pe,He,Ve,ct){var zt=He!==null?He.key:null;if(typeof Ve=="string"&&Ve!==""||typeof Ve=="number"||typeof Ve=="bigint")return zt!==null?null:Se(Pe,He,""+Ve,ct);if(typeof Ve=="object"&&Ve!==null){switch(Ve.$$typeof){case ee:return Ve.key===zt?Oe(Pe,He,Ve,ct):null;case ne:return Ve.key===zt?Ie(Pe,He,Ve,ct):null;case he:return zt=Ve._init,Ve=zt(Ve._payload),Xe(Pe,He,Ve,ct)}if(_(Ve)||W(Ve))return zt!==null?null:at(Pe,He,Ve,ct,null);if(typeof Ve.then=="function")return Xe(Pe,He,Cp(Ve),ct);if(Ve.$$typeof===P)return Xe(Pe,He,Qd(Pe,Ve),ct);ma(Pe,Ve)}return null}function Qe(Pe,He,Ve,ct,zt){if(typeof ct=="string"&&ct!==""||typeof ct=="number"||typeof ct=="bigint")return Pe=Pe.get(Ve)||null,Se(He,Pe,""+ct,zt);if(typeof ct=="object"&&ct!==null){switch(ct.$$typeof){case ee:return Pe=Pe.get(ct.key===null?Ve:ct.key)||null,Oe(He,Pe,ct,zt);case ne:return Pe=Pe.get(ct.key===null?Ve:ct.key)||null,Ie(He,Pe,ct,zt);case he:var Sn=ct._init;return ct=Sn(ct._payload),Qe(Pe,He,Ve,ct,zt)}if(_(ct)||W(ct))return Pe=Pe.get(Ve)||null,at(He,Pe,ct,zt,null);if(typeof ct.then=="function")return Qe(Pe,He,Ve,Cp(ct),zt);if(ct.$$typeof===P)return Qe(Pe,He,Ve,Qd(He,ct),zt);ma(He,ct)}return null}function Xt(Pe,He,Ve,ct){for(var zt=null,Sn=null,qt=He,Kt=He=0,Ki=null;qt!==null&&Kt<Ve.length;Kt++){qt.index>Kt?(Ki=qt,qt=null):Ki=qt.sibling;var Nn=Xe(Pe,qt,Ve[Kt],ct);if(Nn===null){qt===null&&(qt=Ki);break}n&&qt&&Nn.alternate===null&&s(Pe,qt),He=M(Nn,He,Kt),Sn===null?zt=Nn:Sn.sibling=Nn,Sn=Nn,qt=Ki}if(Kt===Ve.length)return l(Pe,qt),Bn&&Ln(Pe,Kt),zt;if(qt===null){for(;Kt<Ve.length;Kt++)qt=dt(Pe,Ve[Kt],ct),qt!==null&&(He=M(qt,He,Kt),Sn===null?zt=qt:Sn.sibling=qt,Sn=qt);return Bn&&Ln(Pe,Kt),zt}for(qt=h(qt);Kt<Ve.length;Kt++)Ki=Qe(qt,Pe,Kt,Ve[Kt],ct),Ki!==null&&(n&&Ki.alternate!==null&&qt.delete(Ki.key===null?Kt:Ki.key),He=M(Ki,He,Kt),Sn===null?zt=Ki:Sn.sibling=Ki,Sn=Ki);return n&&qt.forEach(function(Sl){return s(Pe,Sl)}),Bn&&Ln(Pe,Kt),zt}function Zt(Pe,He,Ve,ct){if(Ve==null)throw Error(c(151));for(var zt=null,Sn=null,qt=He,Kt=He=0,Ki=null,Nn=Ve.next();qt!==null&&!Nn.done;Kt++,Nn=Ve.next()){qt.index>Kt?(Ki=qt,qt=null):Ki=qt.sibling;var Sl=Xe(Pe,qt,Nn.value,ct);if(Sl===null){qt===null&&(qt=Ki);break}n&&qt&&Sl.alternate===null&&s(Pe,qt),He=M(Sl,He,Kt),Sn===null?zt=Sl:Sn.sibling=Sl,Sn=Sl,qt=Ki}if(Nn.done)return l(Pe,qt),Bn&&Ln(Pe,Kt),zt;if(qt===null){for(;!Nn.done;Kt++,Nn=Ve.next())Nn=dt(Pe,Nn.value,ct),Nn!==null&&(He=M(Nn,He,Kt),Sn===null?zt=Nn:Sn.sibling=Nn,Sn=Nn);return Bn&&Ln(Pe,Kt),zt}for(qt=h(qt);!Nn.done;Kt++,Nn=Ve.next())Nn=Qe(qt,Pe,Kt,Nn.value,ct),Nn!==null&&(n&&Nn.alternate!==null&&qt.delete(Nn.key===null?Kt:Nn.key),He=M(Nn,He,Kt),Sn===null?zt=Nn:Sn.sibling=Nn,Sn=Nn);return n&&qt.forEach(function(l_){return s(Pe,l_)}),Bn&&Ln(Pe,Kt),zt}function Vn(Pe,He,Ve,ct){if(typeof Ve=="object"&&Ve!==null&&Ve.type===O&&Ve.key===null&&(Ve=Ve.props.children),typeof Ve=="object"&&Ve!==null){switch(Ve.$$typeof){case ee:e:{for(var zt=Ve.key;He!==null;){if(He.key===zt){if(zt=Ve.type,zt===O){if(He.tag===7){l(Pe,He.sibling),ct=b(He,Ve.props.children),ct.return=Pe,Pe=ct;break e}}else if(He.elementType===zt||typeof zt=="object"&&zt!==null&&zt.$$typeof===he&&yy(zt)===He.type){l(Pe,He.sibling),ct=b(He,Ve.props),uc(ct,Ve),ct.return=Pe,Pe=ct;break e}l(Pe,He);break}else s(Pe,He);He=He.sibling}Ve.type===O?(ct=Cs(Ve.props.children,Pe.mode,ct,Ve.key),ct.return=Pe,Pe=ct):(ct=xt(Ve.type,Ve.key,Ve.props,null,Pe.mode,ct),uc(ct,Ve),ct.return=Pe,Pe=ct)}return fe(Pe);case ne:e:{for(zt=Ve.key;He!==null;){if(He.key===zt)if(He.tag===4&&He.stateNode.containerInfo===Ve.containerInfo&&He.stateNode.implementation===Ve.implementation){l(Pe,He.sibling),ct=b(He,Ve.children||[]),ct.return=Pe,Pe=ct;break e}else{l(Pe,He);break}else s(Pe,He);He=He.sibling}ct=Si(Ve,Pe.mode,ct),ct.return=Pe,Pe=ct}return fe(Pe);case he:return zt=Ve._init,Ve=zt(Ve._payload),Vn(Pe,He,Ve,ct)}if(_(Ve))return Xt(Pe,He,Ve,ct);if(W(Ve)){if(zt=W(Ve),typeof zt!="function")throw Error(c(150));return Ve=zt.call(Ve),Zt(Pe,He,Ve,ct)}if(typeof Ve.then=="function")return Vn(Pe,He,Cp(Ve),ct);if(Ve.$$typeof===P)return Vn(Pe,He,Qd(Pe,Ve),ct);ma(Pe,Ve)}return typeof Ve=="string"&&Ve!==""||typeof Ve=="number"||typeof Ve=="bigint"?(Ve=""+Ve,He!==null&&He.tag===6?(l(Pe,He.sibling),ct=b(He,Ve),ct.return=Pe,Pe=ct):(l(Pe,He),ct=ru(Ve,Pe.mode,ct),ct.return=Pe,Pe=ct),fe(Pe)):l(Pe,He)}return function(Pe,He,Ve,ct){try{xu=0;var zt=Vn(Pe,He,Ve,ct);return cc=null,zt}catch(qt){if(qt===tl||qt===Kd)throw qt;var Sn=za(29,qt,null,Pe.mode);return Sn.lanes=ct,Sn.return=Pe,Sn}finally{}}}var dc=$a(!0),Ao=$a(!1),ls=ue(null),ya=null;function br(n){var s=n.alternate;g(ni,ni.current&1),g(ls,n),ya===null&&(s===null||ac.current!==null||s.memoizedState!==null)&&(ya=n)}function Eo(n){if(n.tag===22){if(g(ni,ni.current),g(ls,n),ya===null){var s=n.alternate;s!==null&&s.memoizedState!==null&&(ya=n)}}else Do()}function Do(){g(ni,ni.current),g(ls,ls.current)}function eo(n){ye(ls),ya===n&&(ya=null),ye(ni)}var ni=ue(0);function ph(n){for(var s=n;s!==null;){if(s.tag===13){var l=s.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||Bh(l)))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}function sl(n,s,l,h){s=n.memoizedState,l=l(h,s),l=l==null?s:j({},s,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var wp={enqueueSetState:function(n,s,l){n=n._reactInternals;var h=cs(),b=Ua(h);b.payload=s,l!=null&&(b.callback=l),s=ko(n,b,h),s!==null&&(us(s,n,h),ic(s,n,h))},enqueueReplaceState:function(n,s,l){n=n._reactInternals;var h=cs(),b=Ua(h);b.tag=1,b.payload=s,l!=null&&(b.callback=l),s=ko(n,b,h),s!==null&&(us(s,n,h),ic(s,n,h))},enqueueForceUpdate:function(n,s){n=n._reactInternals;var l=cs(),h=Ua(l);h.tag=2,s!=null&&(h.callback=s),s=ko(n,h,l),s!==null&&(us(s,n,l),ic(s,n,l))}};function _u(n,s,l,h,b,M,fe){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(h,M,fe):s.prototype&&s.prototype.isPureReactComponent?!Yr(l,h)||!Yr(b,M):!0}function hc(n,s,l,h){n=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(l,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(l,h),s.state!==n&&wp.enqueueReplaceState(s,s.state,null)}function ol(n,s){var l=s;if("ref"in s){l={};for(var h in s)h!=="ref"&&(l[h]=s[h])}if(n=n.defaultProps){l===s&&(l=j({},l));for(var b in n)l[b]===void 0&&(l[b]=n[b])}return l}var gh=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function Su(n){gh(n)}function by(n){console.error(n)}function mh(n){gh(n)}function yh(n,s){try{var l=n.onUncaughtError;l(s.value,{componentStack:s.stack})}catch(h){setTimeout(function(){throw h})}}function vy(n,s,l){try{var h=n.onCaughtError;h(l.value,{componentStack:l.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function xy(n,s,l){return l=Ua(l),l.tag=3,l.payload={element:null},l.callback=function(){yh(n,s)},l}function _y(n){return n=Ua(n),n.tag=3,n}function Ga(n,s,l,h){var b=l.type.getDerivedStateFromError;if(typeof b=="function"){var M=h.value;n.payload=function(){return b(M)},n.callback=function(){vy(s,l,h)}}var fe=l.stateNode;fe!==null&&typeof fe.componentDidCatch=="function"&&(n.callback=function(){vy(s,l,h),typeof b!="function"&&(ul===null?ul=new Set([this]):ul.add(this));var Se=h.stack;this.componentDidCatch(h.value,{componentStack:Se!==null?Se:""})})}function H1(n,s,l,h,b){if(l.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(s=l.alternate,s!==null&&hu(s,l,b,!0),l=ls.current,l!==null){switch(l.tag){case 13:return ya===null?_c():l.alternate===null&&ji===0&&(ji=3),l.flags&=-257,l.flags|=65536,l.lanes=b,h===Kf?l.flags|=16384:(s=l.updateQueue,s===null?l.updateQueue=new Set([h]):s.add(h),Qp(n,h,b)),!1;case 22:return l.flags|=65536,h===Kf?l.flags|=16384:(s=l.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([h])},l.updateQueue=s):(l=s.retryQueue,l===null?s.retryQueue=new Set([h]):l.add(h)),Qp(n,h,b)),!1}throw Error(c(435,l.tag))}return Qp(n,h,b),_c(),!1}if(Bn)return s=ls.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=b,h!==ec&&(n=Error(c(422),{cause:h}),du(ss(n,l)))):(h!==ec&&(s=Error(c(423),{cause:h}),du(ss(s,l))),n=n.current.alternate,n.flags|=65536,b&=-b,n.lanes|=b,h=ss(h,l),b=xy(n.stateNode,h,b),Jm(n,b),ji!==4&&(ji=2)),!1;var M=Error(c(520),{cause:h});if(M=ss(M,l),Eu===null?Eu=[M]:Eu.push(M),ji!==4&&(ji=2),s===null)return!0;h=ss(h,l),l=s;do{switch(l.tag){case 3:return l.flags|=65536,n=b&-b,l.lanes|=n,n=xy(l.stateNode,h,n),Jm(l,n),!1;case 1:if(s=l.type,M=l.stateNode,(l.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(ul===null||!ul.has(M))))return l.flags|=65536,b&=-b,l.lanes|=b,b=_y(b),Ga(b,n,l,h),Jm(l,b),!1}l=l.return}while(l!==null);return!1}var Ei=Error(c(461)),qi=!1;function Wi(n,s,l,h){s.child=n===null?Ao(s,null,l,h):dc(s,n.child,l,h)}function $1(n,s,l,h,b){l=l.render;var M=s.ref;if("ref"in h){var fe={};for(var Se in h)Se!=="ref"&&(fe[Se]=h[Se])}else fe=h;return Kr(s),h=sp(n,s,l,fe,M,b),Se=op(),n!==null&&!qi?(bu(n,s,b),Oo(n,s,b)):(Bn&&Se&&Kl(s),s.flags|=1,Wi(n,s,h,b),s.child)}function vr(n,s,l,h,b){if(n===null){var M=l.type;return typeof M=="function"&&!qd(M)&&M.defaultProps===void 0&&l.compare===null?(s.tag=15,s.type=M,fc(n,s,M,h,b)):(n=xt(l.type,null,h,s,s.mode,b),n.ref=s.ref,n.return=s,s.child=n)}if(M=n.child,!Rp(n,b)){var fe=M.memoizedProps;if(l=l.compare,l=l!==null?l:Yr,l(fe,h)&&n.ref===s.ref)return Oo(n,s,b)}return s.flags|=1,n=Zs(M,h),n.ref=s.ref,n.return=s,s.child=n}function fc(n,s,l,h,b){if(n!==null){var M=n.memoizedProps;if(Yr(M,h)&&n.ref===s.ref)if(qi=!1,s.pendingProps=h=M,Rp(n,b))(n.flags&131072)!==0&&(qi=!0);else return s.lanes=n.lanes,Oo(n,s,b)}return Tp(n,s,l,h,b)}function kp(n,s,l){var h=s.pendingProps,b=h.children,M=n!==null?n.memoizedState:null;if(h.mode==="hidden"){if((s.flags&128)!==0){if(h=M!==null?M.baseLanes|l:l,n!==null){for(b=s.child=n.child,M=0;b!==null;)M=M|b.lanes|b.childLanes,b=b.sibling;s.childLanes=M&~h}else s.childLanes=0,s.child=null;return pc(n,s,h,l)}if((l&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},n!==null&&tc(s,M!==null?M.cachePool:null),M!==null?Qi(s,M):mu(),Eo(s);else return s.lanes=s.childLanes=536870912,pc(n,s,M!==null?M.baseLanes|l:l,l)}else M!==null?(tc(s,M.cachePool),Qi(s,M),Do(),s.memoizedState=null):(n!==null&&tc(s,null),mu(),Do());return Wi(n,s,b,l),s.child}function pc(n,s,l,h){var b=Jd();return b=b===null?null:{parent:Vi._currentValue,pool:b},s.memoizedState={baseLanes:l,cachePool:b},n!==null&&tc(s,null),mu(),Eo(s),n!==null&&hu(n,s,h,!0),null}function bh(n,s){var l=s.ref;if(l===null)n!==null&&n.ref!==null&&(s.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(n===null||n.ref!==l)&&(s.flags|=4194816)}}function Tp(n,s,l,h,b){return Kr(s),l=sp(n,s,l,h,void 0,b),h=op(),n!==null&&!qi?(bu(n,s,b),Oo(n,s,b)):(Bn&&h&&Kl(s),s.flags|=1,Wi(n,s,l,b),s.child)}function Sy(n,s,l,h,b,M){return Kr(s),s.updateQueue=null,l=ty(s,h,l,b),il(n),h=op(),n!==null&&!qi?(bu(n,s,M),Oo(n,s,M)):(Bn&&h&&Kl(s),s.flags|=1,Wi(n,s,l,M),s.child)}function Mp(n,s,l,h,b){if(Kr(s),s.stateNode===null){var M=ou,fe=l.contextType;typeof fe=="object"&&fe!==null&&(M=Zi(fe)),M=new l(h,M),s.memoizedState=M.state!==null&&M.state!==void 0?M.state:null,M.updater=wp,s.stateNode=M,M._reactInternals=s,M=s.stateNode,M.props=h,M.state=s.memoizedState,M.refs={},tp(s),fe=l.contextType,M.context=typeof fe=="object"&&fe!==null?Zi(fe):ou,M.state=s.memoizedState,fe=l.getDerivedStateFromProps,typeof fe=="function"&&(sl(s,l,fe,h),M.state=s.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof M.getSnapshotBeforeUpdate=="function"||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(fe=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),fe!==M.state&&wp.enqueueReplaceState(M,M.state,null),gr(s,h,M,b),gu(),M.state=s.memoizedState),typeof M.componentDidMount=="function"&&(s.flags|=4194308),h=!0}else if(n===null){M=s.stateNode;var Se=s.memoizedProps,Oe=ol(l,Se);M.props=Oe;var Ie=M.context,at=l.contextType;fe=ou,typeof at=="object"&&at!==null&&(fe=Zi(at));var dt=l.getDerivedStateFromProps;at=typeof dt=="function"||typeof M.getSnapshotBeforeUpdate=="function",Se=s.pendingProps!==Se,at||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(Se||Ie!==fe)&&hc(s,M,h,fe),wo=!1;var Xe=s.memoizedState;M.state=Xe,gr(s,h,M,b),gu(),Ie=s.memoizedState,Se||Xe!==Ie||wo?(typeof dt=="function"&&(sl(s,l,dt,h),Ie=s.memoizedState),(Oe=wo||_u(s,l,Oe,h,Xe,Ie,fe))?(at||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount()),typeof M.componentDidMount=="function"&&(s.flags|=4194308)):(typeof M.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=Ie),M.props=h,M.state=Ie,M.context=fe,h=Oe):(typeof M.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{M=s.stateNode,np(n,s),fe=s.memoizedProps,at=ol(l,fe),M.props=at,dt=s.pendingProps,Xe=M.context,Ie=l.contextType,Oe=ou,typeof Ie=="object"&&Ie!==null&&(Oe=Zi(Ie)),Se=l.getDerivedStateFromProps,(Ie=typeof Se=="function"||typeof M.getSnapshotBeforeUpdate=="function")||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(fe!==dt||Xe!==Oe)&&hc(s,M,h,Oe),wo=!1,Xe=s.memoizedState,M.state=Xe,gr(s,h,M,b),gu();var Qe=s.memoizedState;fe!==dt||Xe!==Qe||wo||n!==null&&n.dependencies!==null&&Zd(n.dependencies)?(typeof Se=="function"&&(sl(s,l,Se,h),Qe=s.memoizedState),(at=wo||_u(s,l,at,h,Xe,Qe,Oe)||n!==null&&n.dependencies!==null&&Zd(n.dependencies))?(Ie||typeof M.UNSAFE_componentWillUpdate!="function"&&typeof M.componentWillUpdate!="function"||(typeof M.componentWillUpdate=="function"&&M.componentWillUpdate(h,Qe,Oe),typeof M.UNSAFE_componentWillUpdate=="function"&&M.UNSAFE_componentWillUpdate(h,Qe,Oe)),typeof M.componentDidUpdate=="function"&&(s.flags|=4),typeof M.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof M.componentDidUpdate!="function"||fe===n.memoizedProps&&Xe===n.memoizedState||(s.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||fe===n.memoizedProps&&Xe===n.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=Qe),M.props=h,M.state=Qe,M.context=Oe,h=at):(typeof M.componentDidUpdate!="function"||fe===n.memoizedProps&&Xe===n.memoizedState||(s.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||fe===n.memoizedProps&&Xe===n.memoizedState||(s.flags|=1024),h=!1)}return M=h,bh(n,s),h=(s.flags&128)!==0,M||h?(M=s.stateNode,l=h&&typeof l.getDerivedStateFromError!="function"?null:M.render(),s.flags|=1,n!==null&&h?(s.child=dc(s,n.child,null,b),s.child=dc(s,null,l,b)):Wi(n,s,l,b),s.memoizedState=M.state,n=s.child):n=Oo(n,s,b),n}function Ap(n,s,l,h){return uu(),s.flags|=256,Wi(n,s,l,h),s.child}var Ep={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cy(n){return{baseLanes:n,cachePool:Wf()}}function wy(n,s,l){return n=n!==null?n.childLanes&~l:0,s&&(n|=js),n}function ky(n,s,l){var h=s.pendingProps,b=!1,M=(s.flags&128)!==0,fe;if((fe=M)||(fe=n!==null&&n.memoizedState===null?!1:(ni.current&2)!==0),fe&&(b=!0,s.flags&=-129),fe=(s.flags&32)!==0,s.flags&=-33,n===null){if(Bn){if(b?br(s):Do(),Bn){var Se=Gn,Oe;if(Oe=Se){e:{for(Oe=Se,Se=Ts;Oe.nodeType!==8;){if(!Se){Se=null;break e}if(Oe=no(Oe.nextSibling),Oe===null){Se=null;break e}}Se=Oe}Se!==null?(s.memoizedState={dehydrated:Se,treeContext:dr!==null?{id:Qs,overflow:Mi}:null,retryLane:536870912,hydrationErrors:null},Oe=za(18,null,null,0),Oe.stateNode=Se,Oe.return=s,s.child=Oe,Ni=s,Gn=null,Oe=!0):Oe=!1}Oe||hr(s)}if(Se=s.memoizedState,Se!==null&&(Se=Se.dehydrated,Se!==null))return Bh(Se)?s.lanes=32:s.lanes=536870912,null;eo(s)}return Se=h.children,h=h.fallback,b?(Do(),b=s.mode,Se=Op({mode:"hidden",children:Se},b),h=Cs(h,b,l,null),Se.return=s,h.return=s,Se.sibling=h,s.child=Se,b=s.child,b.memoizedState=Cy(l),b.childLanes=wy(n,fe,l),s.memoizedState=Ep,h):(br(s),Dp(s,Se))}if(Oe=n.memoizedState,Oe!==null&&(Se=Oe.dehydrated,Se!==null)){if(M)s.flags&256?(br(s),s.flags&=-257,s=rl(n,s,l)):s.memoizedState!==null?(Do(),s.child=n.child,s.flags|=128,s=null):(Do(),b=h.fallback,Se=s.mode,h=Op({mode:"visible",children:h.children},Se),b=Cs(b,Se,l,null),b.flags|=2,h.return=s,b.return=s,h.sibling=b,s.child=h,dc(s,n.child,null,l),h=s.child,h.memoizedState=Cy(l),h.childLanes=wy(n,fe,l),s.memoizedState=Ep,s=b);else if(br(s),Bh(Se)){if(fe=Se.nextSibling&&Se.nextSibling.dataset,fe)var Ie=fe.dgst;fe=Ie,h=Error(c(419)),h.stack="",h.digest=fe,du({value:h,source:null,stack:null}),s=rl(n,s,l)}else if(qi||hu(n,s,l,!1),fe=(l&n.childLanes)!==0,qi||fe){if(fe=oi,fe!==null&&(h=l&-l,h=(h&42)!==0?1:Vt(h),h=(h&(fe.suspendedLanes|l))!==0?0:h,h!==0&&h!==Oe.retryLane))throw Oe.retryLane=h,vo(n,h),us(fe,n,h),Ei;Se.data==="$?"||_c(),s=rl(n,s,l)}else Se.data==="$?"?(s.flags|=192,s.child=n.child,s=null):(n=Oe.treeContext,Gn=no(Se.nextSibling),Ni=s,Bn=!0,ks=null,Ts=!1,n!==null&&(ws[Ba++]=Qs,ws[Ba++]=Mi,ws[Ba++]=dr,Qs=n.id,Mi=n.overflow,dr=s),s=Dp(s,h.children),s.flags|=4096);return s}return b?(Do(),b=h.fallback,Se=s.mode,Oe=n.child,Ie=Oe.sibling,h=Zs(Oe,{mode:"hidden",children:h.children}),h.subtreeFlags=Oe.subtreeFlags&65011712,Ie!==null?b=Zs(Ie,b):(b=Cs(b,Se,l,null),b.flags|=2),b.return=s,h.return=s,h.sibling=b,s.child=h,h=b,b=s.child,Se=n.child.memoizedState,Se===null?Se=Cy(l):(Oe=Se.cachePool,Oe!==null?(Ie=Vi._currentValue,Oe=Oe.parent!==Ie?{parent:Ie,pool:Ie}:Oe):Oe=Wf(),Se={baseLanes:Se.baseLanes|l,cachePool:Oe}),b.memoizedState=Se,b.childLanes=wy(n,fe,l),s.memoizedState=Ep,h):(br(s),l=n.child,n=l.sibling,l=Zs(l,{mode:"visible",children:h.children}),l.return=s,l.sibling=null,n!==null&&(fe=s.deletions,fe===null?(s.deletions=[n],s.flags|=16):fe.push(n)),s.child=l,s.memoizedState=null,l)}function Dp(n,s){return s=Op({mode:"visible",children:s},n.mode),s.return=n,n.child=s}function Op(n,s){return n=za(22,n,null,s),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function rl(n,s,l){return dc(s,n.child,null,l),n=Dp(s,s.pendingProps.children),n.flags|=2,s.memoizedState=null,n}function vh(n,s,l){n.lanes|=s;var h=n.alternate;h!==null&&(h.lanes|=s),Yf(n.return,s,l)}function jp(n,s,l,h,b){var M=n.memoizedState;M===null?n.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:l,tailMode:b}:(M.isBackwards=s,M.rendering=null,M.renderingStartTime=0,M.last=h,M.tail=l,M.tailMode=b)}function Lp(n,s,l){var h=s.pendingProps,b=h.revealOrder,M=h.tail;if(Wi(n,s,h.children,l),h=ni.current,(h&2)!==0)h=h&1|2,s.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=s.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&vh(n,l,s);else if(n.tag===19)vh(n,l,s);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===s)break e;for(;n.sibling===null;){if(n.return===null||n.return===s)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}h&=1}switch(g(ni,h),b){case"forwards":for(l=s.child,b=null;l!==null;)n=l.alternate,n!==null&&ph(n)===null&&(b=l),l=l.sibling;l=b,l===null?(b=s.child,s.child=null):(b=l.sibling,l.sibling=null),jp(s,!1,b,l,M);break;case"backwards":for(l=null,b=s.child,s.child=null;b!==null;){if(n=b.alternate,n!==null&&ph(n)===null){s.child=b;break}n=b.sibling,b.sibling=l,l=b,b=n}jp(s,!0,l,null,M);break;case"together":jp(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Oo(n,s,l){if(n!==null&&(s.dependencies=n.dependencies),Sr|=s.lanes,(l&s.childLanes)===0)if(n!==null){if(hu(n,s,l,!1),(l&s.childLanes)===0)return null}else return null;if(n!==null&&s.child!==n.child)throw Error(c(153));if(s.child!==null){for(n=s.child,l=Zs(n,n.pendingProps),s.child=l,l.return=s;n.sibling!==null;)n=n.sibling,l=l.sibling=Zs(n,n.pendingProps),l.return=s;l.sibling=null}return s.child}function Rp(n,s){return(n.lanes&s)!==0?!0:(n=n.dependencies,!!(n!==null&&Zd(n)))}function G1(n,s,l){switch(s.tag){case 3:w(s,s.stateNode.containerInfo),pr(s,Vi,n.memoizedState.cache),uu();break;case 27:case 5:N(s);break;case 4:w(s,s.stateNode.containerInfo);break;case 10:pr(s,s.type,s.memoizedProps.value);break;case 13:var h=s.memoizedState;if(h!==null)return h.dehydrated!==null?(br(s),s.flags|=128,null):(l&s.child.childLanes)!==0?ky(n,s,l):(br(s),n=Oo(n,s,l),n!==null?n.sibling:null);br(s);break;case 19:var b=(n.flags&128)!==0;if(h=(l&s.childLanes)!==0,h||(hu(n,s,l,!1),h=(l&s.childLanes)!==0),b){if(h)return Lp(n,s,l);s.flags|=128}if(b=s.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),g(ni,ni.current),h)break;return null;case 22:case 23:return s.lanes=0,kp(n,s,l);case 24:pr(s,Vi,n.memoizedState.cache)}return Oo(n,s,l)}function P1(n,s,l){if(n!==null)if(n.memoizedProps!==s.pendingProps)qi=!0;else{if(!Rp(n,l)&&(s.flags&128)===0)return qi=!1,G1(n,s,l);qi=(n.flags&131072)!==0}else qi=!1,Bn&&(s.flags&1048576)!==0&&qf(s,lu,s.index);switch(s.lanes=0,s.tag){case 16:e:{n=s.pendingProps;var h=s.elementType,b=h._init;if(h=b(h._payload),s.type=h,typeof h=="function")qd(h)?(n=ol(h,n),s.tag=1,s=Mp(null,s,h,n,l)):(s.tag=0,s=Tp(null,s,h,n,l));else{if(h!=null){if(b=h.$$typeof,b===X){s.tag=11,s=$1(null,s,h,n,l);break e}else if(b===I){s.tag=14,s=vr(null,s,h,n,l);break e}}throw s=T(h)||h,Error(c(306,s,""))}}return s;case 0:return Tp(n,s,s.type,s.pendingProps,l);case 1:return h=s.type,b=ol(h,s.pendingProps),Mp(n,s,h,b,l);case 3:e:{if(w(s,s.stateNode.containerInfo),n===null)throw Error(c(387));h=s.pendingProps;var M=s.memoizedState;b=M.element,np(n,s),gr(s,h,null,l);var fe=s.memoizedState;if(h=fe.cache,pr(s,Vi,h),h!==M.cache&&Fm(s,[Vi],l,!0),gu(),h=fe.element,M.isDehydrated)if(M={element:h,isDehydrated:!1,cache:fe.cache},s.updateQueue.baseState=M,s.memoizedState=M,s.flags&256){s=Ap(n,s,h,l);break e}else if(h!==b){b=ss(Error(c(424)),s),du(b),s=Ap(n,s,h,l);break e}else{switch(n=s.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Gn=no(n.firstChild),Ni=s,Bn=!0,ks=null,Ts=!0,l=Ao(s,null,h,l),s.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(uu(),h===b){s=Oo(n,s,l);break e}Wi(n,s,h,l)}s=s.child}return s;case 26:return bh(n,s),n===null?(l=av(s.type,null,s.pendingProps,null))?s.memoizedState=l:Bn||(l=s.type,n=s.pendingProps,h=Rs(Z.current).createElement(l),h[bt]=s,h[St]=n,en(h,l,n),wt(h),s.stateNode=h):s.memoizedState=av(s.type,n.memoizedProps,s.pendingProps,n.memoizedState),null;case 27:return N(s),n===null&&Bn&&(h=s.stateNode=jt(s.type,s.pendingProps,Z.current),Ni=s,Ts=!0,b=Gn,ml(s.type)?(yl=b,Gn=no(h.firstChild)):Gn=b),Wi(n,s,s.pendingProps.children,l),bh(n,s),n===null&&(s.flags|=4194304),s.child;case 5:return n===null&&Bn&&((b=h=Gn)&&(h=Gu(h,s.type,s.pendingProps,Ts),h!==null?(s.stateNode=h,Ni=s,Gn=no(h.firstChild),Ts=!1,b=!0):b=!1),b||hr(s)),N(s),b=s.type,M=s.pendingProps,fe=n!==null?n.memoizedProps:null,h=M.children,$o(b,M)?h=null:fe!==null&&$o(b,fe)&&(s.flags|=32),s.memoizedState!==null&&(b=sp(n,s,D1,null,null,l),Fa._currentValue=b),bh(n,s),Wi(n,s,h,l),s.child;case 6:return n===null&&Bn&&((n=l=Gn)&&(l=s_(l,s.pendingProps,Ts),l!==null?(s.stateNode=l,Ni=s,Gn=null,n=!0):n=!1),n||hr(s)),null;case 13:return ky(n,s,l);case 4:return w(s,s.stateNode.containerInfo),h=s.pendingProps,n===null?s.child=dc(s,null,h,l):Wi(n,s,h,l),s.child;case 11:return $1(n,s,s.type,s.pendingProps,l);case 7:return Wi(n,s,s.pendingProps,l),s.child;case 8:return Wi(n,s,s.pendingProps.children,l),s.child;case 12:return Wi(n,s,s.pendingProps.children,l),s.child;case 10:return h=s.pendingProps,pr(s,s.type,h.value),Wi(n,s,h.children,l),s.child;case 9:return b=s.type._context,h=s.pendingProps.children,Kr(s),b=Zi(b),h=h(b),s.flags|=1,Wi(n,s,h,l),s.child;case 14:return vr(n,s,s.type,s.pendingProps,l);case 15:return fc(n,s,s.type,s.pendingProps,l);case 19:return Lp(n,s,l);case 31:return h=s.pendingProps,l=s.mode,h={mode:h.mode,children:h.children},n===null?(l=Op(h,l),l.ref=s.ref,s.child=l,l.return=s,s=l):(l=Zs(n.child,h),l.ref=s.ref,s.child=l,l.return=s,s=l),s;case 22:return kp(n,s,l);case 24:return Kr(s),h=Zi(Vi),n===null?(b=Jd(),b===null&&(b=oi,M=pu(),b.pooledCache=M,M.refCount++,M!==null&&(b.pooledCacheLanes|=l),b=M),s.memoizedState={parent:h,cache:b},tp(s),pr(s,Vi,b)):((n.lanes&l)!==0&&(np(n,s),gr(s,null,null,l),gu()),b=n.memoizedState,M=s.memoizedState,b.parent!==h?(b={parent:h,cache:h},s.memoizedState=b,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=b),pr(s,Vi,h)):(h=M.cache,pr(s,Vi,h),h!==b.cache&&Fm(s,[Vi],l,!0))),Wi(n,s,s.pendingProps.children,l),s.child;case 29:throw s.pendingProps}throw Error(c(156,s.tag))}function jo(n){n.flags|=4}function Cu(n,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!l0(s)){if(s=ls.current,s!==null&&((An&4194048)===An?ya!==null:(An&62914560)!==An&&(An&536870912)===0||s!==ya))throw nc=Kf,Jf;n.flags|=8192}}function xh(n,s){s!==null&&(n.flags|=4),n.flags&16384&&(s=n.tag!==22?lt():536870912,n.lanes|=s,Au|=s)}function wu(n,s){if(!Bn)switch(n.tailMode){case"hidden":s=n.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var h=null;l!==null;)l.alternate!==null&&(h=l),l=l.sibling;h===null?s||n.tail===null?n.tail=null:n.tail.sibling=null:h.sibling=null}}function Jt(n){var s=n.alternate!==null&&n.alternate.child===n.child,l=0,h=0;if(s)for(var b=n.child;b!==null;)l|=b.lanes|b.childLanes,h|=b.subtreeFlags&65011712,h|=b.flags&65011712,b.return=n,b=b.sibling;else for(b=n.child;b!==null;)l|=b.lanes|b.childLanes,h|=b.subtreeFlags,h|=b.flags,b.return=n,b=b.sibling;return n.subtreeFlags|=h,n.childLanes=l,s}function Ty(n,s,l){var h=s.pendingProps;switch(xo(s),s.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Jt(s),null;case 1:return Jt(s),null;case 3:return l=s.stateNode,h=null,n!==null&&(h=n.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),_o(Vi),E(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(n===null||n.child===null)&&(cu(s)?jo(s):n===null||n.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Ym())),Jt(s),null;case 26:return l=s.memoizedState,n===null?(jo(s),l!==null?(Jt(s),Cu(s,l)):(Jt(s),s.flags&=-16777217)):l?l!==n.memoizedState?(jo(s),Jt(s),Cu(s,l)):(Jt(s),s.flags&=-16777217):(n.memoizedProps!==h&&jo(s),Jt(s),s.flags&=-16777217),null;case 27:ce(s),l=Z.current;var b=s.type;if(n!==null&&s.stateNode!=null)n.memoizedProps!==h&&jo(s);else{if(!h){if(s.stateNode===null)throw Error(c(166));return Jt(s),null}n=C.current,cu(s)?Fd(s):(n=jt(b,h,l),s.stateNode=n,jo(s))}return Jt(s),null;case 5:if(ce(s),l=s.type,n!==null&&s.stateNode!=null)n.memoizedProps!==h&&jo(s);else{if(!h){if(s.stateNode===null)throw Error(c(166));return Jt(s),null}if(n=C.current,cu(s))Fd(s);else{switch(b=Rs(Z.current),n){case 1:n=b.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:n=b.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":n=b.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":n=b.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":n=b.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof h.is=="string"?b.createElement("select",{is:h.is}):b.createElement("select"),h.multiple?n.multiple=!0:h.size&&(n.size=h.size);break;default:n=typeof h.is=="string"?b.createElement(l,{is:h.is}):b.createElement(l)}}n[bt]=s,n[St]=h;e:for(b=s.child;b!==null;){if(b.tag===5||b.tag===6)n.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===s)break e;for(;b.sibling===null;){if(b.return===null||b.return===s)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}s.stateNode=n;e:switch(en(n,l,h),l){case"button":case"input":case"select":case"textarea":n=!!h.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&jo(s)}}return Jt(s),s.flags&=-16777217,null;case 6:if(n&&s.stateNode!=null)n.memoizedProps!==h&&jo(s);else{if(typeof h!="string"&&s.stateNode===null)throw Error(c(166));if(n=Z.current,cu(s)){if(n=s.stateNode,l=s.memoizedProps,h=null,b=Ni,b!==null)switch(b.tag){case 27:case 5:h=b.memoizedProps}n[bt]=s,n=!!(n.nodeValue===l||h!==null&&h.suppressHydrationWarning===!0||a0(n.nodeValue,l)),n||hr(s)}else n=Rs(n).createTextNode(h),n[bt]=s,s.stateNode=n}return Jt(s),null;case 13:if(h=s.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(b=cu(s),h!==null&&h.dehydrated!==null){if(n===null){if(!b)throw Error(c(318));if(b=s.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(c(317));b[bt]=s}else uu(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Jt(s),b=!1}else b=Ym(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=b),b=!0;if(!b)return s.flags&256?(eo(s),s):(eo(s),null)}if(eo(s),(s.flags&128)!==0)return s.lanes=l,s;if(l=h!==null,n=n!==null&&n.memoizedState!==null,l){h=s.child,b=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(b=h.alternate.memoizedState.cachePool.pool);var M=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(M=h.memoizedState.cachePool.pool),M!==b&&(h.flags|=2048)}return l!==n&&l&&(s.child.flags|=8192),xh(s,s.updateQueue),Jt(s),null;case 4:return E(),n===null&&n0(s.stateNode.containerInfo),Jt(s),null;case 10:return _o(s.type),Jt(s),null;case 19:if(ye(ni),b=s.memoizedState,b===null)return Jt(s),null;if(h=(s.flags&128)!==0,M=b.rendering,M===null)if(h)wu(b,!1);else{if(ji!==0||n!==null&&(n.flags&128)!==0)for(n=s.child;n!==null;){if(M=ph(n),M!==null){for(s.flags|=128,wu(b,!1),n=M.updateQueue,s.updateQueue=n,xh(s,n),s.subtreeFlags=0,n=l,l=s.child;l!==null;)_n(l,n),l=l.sibling;return g(ni,ni.current&1|2),s.child}n=n.sibling}b.tail!==null&&ge()>Vp&&(s.flags|=128,h=!0,wu(b,!1),s.lanes=4194304)}else{if(!h)if(n=ph(M),n!==null){if(s.flags|=128,h=!0,n=n.updateQueue,s.updateQueue=n,xh(s,n),wu(b,!0),b.tail===null&&b.tailMode==="hidden"&&!M.alternate&&!Bn)return Jt(s),null}else 2*ge()-b.renderingStartTime>Vp&&l!==536870912&&(s.flags|=128,h=!0,wu(b,!1),s.lanes=4194304);b.isBackwards?(M.sibling=s.child,s.child=M):(n=b.last,n!==null?n.sibling=M:s.child=M,b.last=M)}return b.tail!==null?(s=b.tail,b.rendering=s,b.tail=s.sibling,b.renderingStartTime=ge(),s.sibling=null,n=ni.current,g(ni,h?n&1|2:n&1),s):(Jt(s),null);case 22:case 23:return eo(s),yu(),h=s.memoizedState!==null,n!==null?n.memoizedState!==null!==h&&(s.flags|=8192):h&&(s.flags|=8192),h?(l&536870912)!==0&&(s.flags&128)===0&&(Jt(s),s.subtreeFlags&6&&(s.flags|=8192)):Jt(s),l=s.updateQueue,l!==null&&xh(s,l.retryQueue),l=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==l&&(s.flags|=2048),n!==null&&ye(Co),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),s.memoizedState.cache!==l&&(s.flags|=2048),_o(Vi),Jt(s),null;case 25:return null;case 30:return null}throw Error(c(156,s.tag))}function Wx(n,s){switch(xo(s),s.tag){case 1:return n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 3:return _o(Vi),E(),n=s.flags,(n&65536)!==0&&(n&128)===0?(s.flags=n&-65537|128,s):null;case 26:case 27:case 5:return ce(s),null;case 13:if(eo(s),n=s.memoizedState,n!==null&&n.dehydrated!==null){if(s.alternate===null)throw Error(c(340));uu()}return n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 19:return ye(ni),null;case 4:return E(),null;case 10:return _o(s.type),null;case 22:case 23:return eo(s),yu(),n!==null&&ye(Co),n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 24:return _o(Vi),null;case 25:return null;default:return null}}function My(n,s){switch(xo(s),s.tag){case 3:_o(Vi),E();break;case 26:case 27:case 5:ce(s);break;case 4:E();break;case 13:eo(s);break;case 19:ye(ni);break;case 10:_o(s.type);break;case 22:case 23:eo(s),yu(),n!==null&&ye(Co);break;case 24:_o(Vi)}}function _h(n,s){try{var l=s.updateQueue,h=l!==null?l.lastEffect:null;if(h!==null){var b=h.next;l=b;do{if((l.tag&n)===n){h=void 0;var M=l.create,fe=l.inst;h=M(),fe.destroy=h}l=l.next}while(l!==b)}}catch(Se){Jn(s,s.return,Se)}}function ll(n,s,l){try{var h=s.updateQueue,b=h!==null?h.lastEffect:null;if(b!==null){var M=b.next;h=M;do{if((h.tag&n)===n){var fe=h.inst,Se=fe.destroy;if(Se!==void 0){fe.destroy=void 0,b=s;var Oe=l,Ie=Se;try{Ie()}catch(at){Jn(b,Oe,at)}}}h=h.next}while(h!==M)}}catch(at){Jn(s,s.return,at)}}function Np(n){var s=n.updateQueue;if(s!==null){var l=n.stateNode;try{th(s,l)}catch(h){Jn(n,n.return,h)}}}function Ay(n,s,l){l.props=ol(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(h){Jn(n,s,h)}}function ku(n,s){try{var l=n.ref;if(l!==null){switch(n.tag){case 26:case 27:case 5:var h=n.stateNode;break;case 30:h=n.stateNode;break;default:h=n.stateNode}typeof l=="function"?n.refCleanup=l(h):l.current=h}}catch(b){Jn(n,s,b)}}function to(n,s){var l=n.ref,h=n.refCleanup;if(l!==null)if(typeof h=="function")try{h()}catch(b){Jn(n,s,b)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(b){Jn(n,s,b)}else l.current=null}function Tu(n){var s=n.type,l=n.memoizedProps,h=n.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":l.autoFocus&&h.focus();break e;case"img":l.src?h.src=l.src:l.srcSet&&(h.srcset=l.srcSet)}}catch(b){Jn(n,n.return,b)}}function Ey(n,s,l){try{var h=n.stateNode;n_(h,n.type,l,s),h[St]=s}catch(b){Jn(n,n.return,b)}}function V1(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&ml(n.type)||n.tag===4}function Ds(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||V1(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&ml(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function gc(n,s,l){var h=n.tag;if(h===5||h===6)n=n.stateNode,s?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,s):(s=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,s.appendChild(n),l=l._reactRootContainer,l!=null||s.onclick!==null||(s.onclick=tg));else if(h!==4&&(h===27&&ml(n.type)&&(l=n.stateNode,s=null),n=n.child,n!==null))for(gc(n,s,l),n=n.sibling;n!==null;)gc(n,s,l),n=n.sibling}function zp(n,s,l){var h=n.tag;if(h===5||h===6)n=n.stateNode,s?l.insertBefore(n,s):l.appendChild(n);else if(h!==4&&(h===27&&ml(n.type)&&(l=n.stateNode),n=n.child,n!==null))for(zp(n,s,l),n=n.sibling;n!==null;)zp(n,s,l),n=n.sibling}function Bp(n){var s=n.stateNode,l=n.memoizedProps;try{for(var h=n.type,b=s.attributes;b.length;)s.removeAttributeNode(b[0]);en(s,h,l),s[bt]=n,s[St]=l}catch(M){Jn(n,n.return,M)}}var Lo=!1,Di=!1,Up=!1,Hp=typeof WeakSet=="function"?WeakSet:Set,Yi=null;function Dy(n,s){if(n=n.containerInfo,Rh=$h,n=Hm(n),Vd(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var h=l.getSelection&&l.getSelection();if(h&&h.rangeCount!==0){l=h.anchorNode;var b=h.anchorOffset,M=h.focusNode;h=h.focusOffset;try{l.nodeType,M.nodeType}catch{l=null;break e}var fe=0,Se=-1,Oe=-1,Ie=0,at=0,dt=n,Xe=null;t:for(;;){for(var Qe;dt!==l||b!==0&&dt.nodeType!==3||(Se=fe+b),dt!==M||h!==0&&dt.nodeType!==3||(Oe=fe+h),dt.nodeType===3&&(fe+=dt.nodeValue.length),(Qe=dt.firstChild)!==null;)Xe=dt,dt=Qe;for(;;){if(dt===n)break t;if(Xe===l&&++Ie===b&&(Se=fe),Xe===M&&++at===h&&(Oe=fe),(Qe=dt.nextSibling)!==null)break;dt=Xe,Xe=dt.parentNode}dt=Qe}l=Se===-1||Oe===-1?null:{start:Se,end:Oe}}else l=null}l=l||{start:0,end:0}}else l=null;for(Nh={focusedElem:n,selectionRange:l},$h=!1,Yi=s;Yi!==null;)if(s=Yi,n=s.child,(s.subtreeFlags&1024)!==0&&n!==null)n.return=s,Yi=n;else for(;Yi!==null;){switch(s=Yi,M=s.alternate,n=s.flags,s.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&M!==null){n=void 0,l=s,b=M.memoizedProps,M=M.memoizedState,h=l.stateNode;try{var Xt=ol(l.type,b,l.elementType===l.type);n=h.getSnapshotBeforeUpdate(Xt,M),h.__reactInternalSnapshotBeforeUpdate=n}catch(Zt){Jn(l,l.return,Zt)}}break;case 3:if((n&1024)!==0){if(n=s.stateNode.containerInfo,l=n.nodeType,l===9)zh(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":zh(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(c(163))}if(n=s.sibling,n!==null){n.return=s.return,Yi=n;break}Yi=s.return}}function Oy(n,s,l){var h=l.flags;switch(l.tag){case 0:case 11:case 15:No(n,l),h&4&&_h(5,l);break;case 1:if(No(n,l),h&4)if(n=l.stateNode,s===null)try{n.componentDidMount()}catch(fe){Jn(l,l.return,fe)}else{var b=ol(l.type,s.memoizedProps);s=s.memoizedState;try{n.componentDidUpdate(b,s,n.__reactInternalSnapshotBeforeUpdate)}catch(fe){Jn(l,l.return,fe)}}h&64&&Np(l),h&512&&ku(l,l.return);break;case 3:if(No(n,l),h&64&&(n=l.updateQueue,n!==null)){if(s=null,l.child!==null)switch(l.child.tag){case 27:case 5:s=l.child.stateNode;break;case 1:s=l.child.stateNode}try{th(n,s)}catch(fe){Jn(l,l.return,fe)}}break;case 27:s===null&&h&4&&Bp(l);case 26:case 5:No(n,l),s===null&&h&4&&Tu(l),h&512&&ku(l,l.return);break;case 12:No(n,l);break;case 13:No(n,l),h&4&&$p(n,l),h&64&&(n=l.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(l=Jx.bind(null,l),o_(n,l))));break;case 22:if(h=l.memoizedState!==null||Lo,!h){s=s!==null&&s.memoizedState!==null||Di,b=Lo;var M=Di;Lo=h,(Di=s)&&!M?cl(n,l,(l.subtreeFlags&8772)!==0):No(n,l),Lo=b,Di=M}break;case 30:break;default:No(n,l)}}function jy(n){var s=n.alternate;s!==null&&(n.alternate=null,jy(s)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(s=n.stateNode,s!==null&&Pt(s)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var bi=null,sa=!1;function Ro(n,s,l){for(l=l.child;l!==null;)wn(n,s,l),l=l.sibling}function wn(n,s,l){if(Te&&typeof Te.onCommitFiberUnmount=="function")try{Te.onCommitFiberUnmount(xe,l)}catch{}switch(l.tag){case 26:Di||to(l,s),Ro(n,s,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Di||to(l,s);var h=bi,b=sa;ml(l.type)&&(bi=l.stateNode,sa=!1),Ro(n,s,l),qa(l.stateNode),bi=h,sa=b;break;case 5:Di||to(l,s);case 6:if(h=bi,b=sa,bi=null,Ro(n,s,l),bi=h,sa=b,bi!==null)if(sa)try{(bi.nodeType===9?bi.body:bi.nodeName==="HTML"?bi.ownerDocument.body:bi).removeChild(l.stateNode)}catch(M){Jn(l,s,M)}else try{bi.removeChild(l.stateNode)}catch(M){Jn(l,s,M)}break;case 18:bi!==null&&(sa?(n=bi,ig(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,l.stateNode),Vo(n)):ig(bi,l.stateNode));break;case 4:h=bi,b=sa,bi=l.stateNode.containerInfo,sa=!0,Ro(n,s,l),bi=h,sa=b;break;case 0:case 11:case 14:case 15:Di||ll(2,l,s),Di||ll(4,l,s),Ro(n,s,l);break;case 1:Di||(to(l,s),h=l.stateNode,typeof h.componentWillUnmount=="function"&&Ay(l,s,h)),Ro(n,s,l);break;case 21:Ro(n,s,l);break;case 22:Di=(h=Di)||l.memoizedState!==null,Ro(n,s,l),Di=h;break;default:Ro(n,s,l)}}function $p(n,s){if(s.memoizedState===null&&(n=s.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Vo(n)}catch(l){Jn(s,s.return,l)}}function Ly(n){switch(n.tag){case 13:case 19:var s=n.stateNode;return s===null&&(s=n.stateNode=new Hp),s;case 22:return n=n.stateNode,s=n._retryCache,s===null&&(s=n._retryCache=new Hp),s;default:throw Error(c(435,n.tag))}}function Gp(n,s){var l=Ly(n);s.forEach(function(h){var b=Kx.bind(null,n,h);l.has(h)||(l.add(h),h.then(b,b))})}function ka(n,s){var l=s.deletions;if(l!==null)for(var h=0;h<l.length;h++){var b=l[h],M=n,fe=s,Se=fe;e:for(;Se!==null;){switch(Se.tag){case 27:if(ml(Se.type)){bi=Se.stateNode,sa=!1;break e}break;case 5:bi=Se.stateNode,sa=!1;break e;case 3:case 4:bi=Se.stateNode.containerInfo,sa=!0;break e}Se=Se.return}if(bi===null)throw Error(c(160));wn(M,fe,b),bi=null,sa=!1,M=b.alternate,M!==null&&(M.return=null),b.return=null}if(s.subtreeFlags&13878)for(s=s.child;s!==null;)Sh(s,n),s=s.sibling}var Ta=null;function Sh(n,s){var l=n.alternate,h=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:ka(s,n),Ji(n),h&4&&(ll(3,n,n.return),_h(3,n),ll(5,n,n.return));break;case 1:ka(s,n),Ji(n),h&512&&(Di||l===null||to(l,l.return)),h&64&&Lo&&(n=n.updateQueue,n!==null&&(h=n.callbacks,h!==null&&(l=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=l===null?h:l.concat(h))));break;case 26:var b=Ta;if(ka(s,n),Ji(n),h&512&&(Di||l===null||to(l,l.return)),h&4){var M=l!==null?l.memoizedState:null;if(h=n.memoizedState,l===null)if(h===null)if(n.stateNode===null){e:{h=n.type,l=n.memoizedProps,b=b.ownerDocument||b;t:switch(h){case"title":M=b.getElementsByTagName("title")[0],(!M||M[yt]||M[bt]||M.namespaceURI==="http://www.w3.org/2000/svg"||M.hasAttribute("itemprop"))&&(M=b.createElement(h),b.head.insertBefore(M,b.querySelector("head > title"))),en(M,h,l),M[bt]=n,wt(M),h=M;break e;case"link":var fe=o0("link","href",b).get(h+(l.href||""));if(fe){for(var Se=0;Se<fe.length;Se++)if(M=fe[Se],M.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&M.getAttribute("rel")===(l.rel==null?null:l.rel)&&M.getAttribute("title")===(l.title==null?null:l.title)&&M.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){fe.splice(Se,1);break t}}M=b.createElement(h),en(M,h,l),b.head.appendChild(M);break;case"meta":if(fe=o0("meta","content",b).get(h+(l.content||""))){for(Se=0;Se<fe.length;Se++)if(M=fe[Se],M.getAttribute("content")===(l.content==null?null:""+l.content)&&M.getAttribute("name")===(l.name==null?null:l.name)&&M.getAttribute("property")===(l.property==null?null:l.property)&&M.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&M.getAttribute("charset")===(l.charSet==null?null:l.charSet)){fe.splice(Se,1);break t}}M=b.createElement(h),en(M,h,l),b.head.appendChild(M);break;default:throw Error(c(468,h))}M[bt]=n,wt(M),h=M}n.stateNode=h}else r0(b,n.type,n.stateNode);else n.stateNode=ov(b,h,n.memoizedProps);else M!==h?(M===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):M.count--,h===null?r0(b,n.type,n.stateNode):ov(b,h,n.memoizedProps)):h===null&&n.stateNode!==null&&Ey(n,n.memoizedProps,l.memoizedProps)}break;case 27:ka(s,n),Ji(n),h&512&&(Di||l===null||to(l,l.return)),l!==null&&h&4&&Ey(n,n.memoizedProps,l.memoizedProps);break;case 5:if(ka(s,n),Ji(n),h&512&&(Di||l===null||to(l,l.return)),n.flags&32){b=n.stateNode;try{Wc(b,"")}catch(Qe){Jn(n,n.return,Qe)}}h&4&&n.stateNode!=null&&(b=n.memoizedProps,Ey(n,b,l!==null?l.memoizedProps:b)),h&1024&&(Up=!0);break;case 6:if(ka(s,n),Ji(n),h&4){if(n.stateNode===null)throw Error(c(162));h=n.memoizedProps,l=n.stateNode;try{l.nodeValue=h}catch(Qe){Jn(n,n.return,Qe)}}break;case 3:if(xl=null,b=Ta,Ta=ag(s.containerInfo),ka(s,n),Ta=b,Ji(n),h&4&&l!==null&&l.memoizedState.isDehydrated)try{Vo(s.containerInfo)}catch(Qe){Jn(n,n.return,Qe)}Up&&(Up=!1,Ry(n));break;case 4:h=Ta,Ta=ag(n.stateNode.containerInfo),ka(s,n),Ji(n),Ta=h;break;case 12:ka(s,n),Ji(n);break;case 13:ka(s,n),Ji(n),n.child.flags&8192&&n.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Py=ge()),h&4&&(h=n.updateQueue,h!==null&&(n.updateQueue=null,Gp(n,h)));break;case 22:b=n.memoizedState!==null;var Oe=l!==null&&l.memoizedState!==null,Ie=Lo,at=Di;if(Lo=Ie||b,Di=at||Oe,ka(s,n),Di=at,Lo=Ie,Ji(n),h&8192)e:for(s=n.stateNode,s._visibility=b?s._visibility&-2:s._visibility|1,b&&(l===null||Oe||Lo||Di||vi(n)),l=null,s=n;;){if(s.tag===5||s.tag===26){if(l===null){Oe=l=s;try{if(M=Oe.stateNode,b)fe=M.style,typeof fe.setProperty=="function"?fe.setProperty("display","none","important"):fe.display="none";else{Se=Oe.stateNode;var dt=Oe.memoizedProps.style,Xe=dt!=null&&dt.hasOwnProperty("display")?dt.display:null;Se.style.display=Xe==null||typeof Xe=="boolean"?"":(""+Xe).trim()}}catch(Qe){Jn(Oe,Oe.return,Qe)}}}else if(s.tag===6){if(l===null){Oe=s;try{Oe.stateNode.nodeValue=b?"":Oe.memoizedProps}catch(Qe){Jn(Oe,Oe.return,Qe)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===n)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===n)break e;for(;s.sibling===null;){if(s.return===null||s.return===n)break e;l===s&&(l=null),s=s.return}l===s&&(l=null),s.sibling.return=s.return,s=s.sibling}h&4&&(h=n.updateQueue,h!==null&&(l=h.retryQueue,l!==null&&(h.retryQueue=null,Gp(n,l))));break;case 19:ka(s,n),Ji(n),h&4&&(h=n.updateQueue,h!==null&&(n.updateQueue=null,Gp(n,h)));break;case 30:break;case 21:break;default:ka(s,n),Ji(n)}}function Ji(n){var s=n.flags;if(s&2){try{for(var l,h=n.return;h!==null;){if(V1(h)){l=h;break}h=h.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var b=l.stateNode,M=Ds(n);zp(n,M,b);break;case 5:var fe=l.stateNode;l.flags&32&&(Wc(fe,""),l.flags&=-33);var Se=Ds(n);zp(n,Se,fe);break;case 3:case 4:var Oe=l.stateNode.containerInfo,Ie=Ds(n);gc(n,Ie,Oe);break;default:throw Error(c(161))}}catch(at){Jn(n,n.return,at)}n.flags&=-3}s&4096&&(n.flags&=-4097)}function Ry(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var s=n;Ry(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),n=n.sibling}}function No(n,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)Oy(n,s.alternate,s),s=s.sibling}function vi(n){for(n=n.child;n!==null;){var s=n;switch(s.tag){case 0:case 11:case 14:case 15:ll(4,s,s.return),vi(s);break;case 1:to(s,s.return);var l=s.stateNode;typeof l.componentWillUnmount=="function"&&Ay(s,s.return,l),vi(s);break;case 27:qa(s.stateNode);case 26:case 5:to(s,s.return),vi(s);break;case 22:s.memoizedState===null&&vi(s);break;case 30:vi(s);break;default:vi(s)}n=n.sibling}}function cl(n,s,l){for(l=l&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var h=s.alternate,b=n,M=s,fe=M.flags;switch(M.tag){case 0:case 11:case 15:cl(b,M,l),_h(4,M);break;case 1:if(cl(b,M,l),h=M,b=h.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(Ie){Jn(h,h.return,Ie)}if(h=M,b=h.updateQueue,b!==null){var Se=h.stateNode;try{var Oe=b.shared.hiddenCallbacks;if(Oe!==null)for(b.shared.hiddenCallbacks=null,b=0;b<Oe.length;b++)ip(Oe[b],Se)}catch(Ie){Jn(h,h.return,Ie)}}l&&fe&64&&Np(M),ku(M,M.return);break;case 27:Bp(M);case 26:case 5:cl(b,M,l),l&&h===null&&fe&4&&Tu(M),ku(M,M.return);break;case 12:cl(b,M,l);break;case 13:cl(b,M,l),l&&fe&4&&$p(b,M);break;case 22:M.memoizedState===null&&cl(b,M,l),ku(M,M.return);break;case 30:break;default:cl(b,M,l)}s=s.sibling}}function Os(n,s){var l=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),n=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(n=s.memoizedState.cachePool.pool),n!==l&&(n!=null&&n.refCount++,l!=null&&So(l))}function Pp(n,s){n=null,s.alternate!==null&&(n=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==n&&(s.refCount++,n!=null&&So(n))}function oa(n,s,l,h){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)Ny(n,s,l,h),s=s.sibling}function Ny(n,s,l,h){var b=s.flags;switch(s.tag){case 0:case 11:case 15:oa(n,s,l,h),b&2048&&_h(9,s);break;case 1:oa(n,s,l,h);break;case 3:oa(n,s,l,h),b&2048&&(n=null,s.alternate!==null&&(n=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==n&&(s.refCount++,n!=null&&So(n)));break;case 12:if(b&2048){oa(n,s,l,h),n=s.stateNode;try{var M=s.memoizedProps,fe=M.id,Se=M.onPostCommit;typeof Se=="function"&&Se(fe,s.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(Oe){Jn(s,s.return,Oe)}}else oa(n,s,l,h);break;case 13:oa(n,s,l,h);break;case 23:break;case 22:M=s.stateNode,fe=s.alternate,s.memoizedState!==null?M._visibility&2?oa(n,s,l,h):Pn(n,s):M._visibility&2?oa(n,s,l,h):(M._visibility|=2,xr(n,s,l,h,(s.subtreeFlags&10256)!==0)),b&2048&&Os(fe,s);break;case 24:oa(n,s,l,h),b&2048&&Pp(s.alternate,s);break;default:oa(n,s,l,h)}}function xr(n,s,l,h,b){for(b=b&&(s.subtreeFlags&10256)!==0,s=s.child;s!==null;){var M=n,fe=s,Se=l,Oe=h,Ie=fe.flags;switch(fe.tag){case 0:case 11:case 15:xr(M,fe,Se,Oe,b),_h(8,fe);break;case 23:break;case 22:var at=fe.stateNode;fe.memoizedState!==null?at._visibility&2?xr(M,fe,Se,Oe,b):Pn(M,fe):(at._visibility|=2,xr(M,fe,Se,Oe,b)),b&&Ie&2048&&Os(fe.alternate,fe);break;case 24:xr(M,fe,Se,Oe,b),b&&Ie&2048&&Pp(fe.alternate,fe);break;default:xr(M,fe,Se,Oe,b)}s=s.sibling}}function Pn(n,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var l=n,h=s,b=h.flags;switch(h.tag){case 22:Pn(l,h),b&2048&&Os(h.alternate,h);break;case 24:Pn(l,h),b&2048&&Pp(h.alternate,h);break;default:Pn(l,h)}s=s.sibling}}var mc=8192;function Oi(n){if(n.subtreeFlags&mc)for(n=n.child;n!==null;)I1(n),n=n.sibling}function I1(n){switch(n.tag){case 26:Oi(n),n.flags&mc&&n.memoizedState!==null&&cv(Ta,n.memoizedState,n.memoizedProps);break;case 5:Oi(n);break;case 3:case 4:var s=Ta;Ta=ag(n.stateNode.containerInfo),Oi(n),Ta=s;break;case 22:n.memoizedState===null&&(s=n.alternate,s!==null&&s.memoizedState!==null?(s=mc,mc=16777216,Oi(n),mc=s):Oi(n));break;default:Oi(n)}}function zy(n){var s=n.alternate;if(s!==null&&(n=s.child,n!==null)){s.child=null;do s=n.sibling,n.sibling=null,n=s;while(n!==null)}}function yc(n){var s=n.deletions;if((n.flags&16)!==0){if(s!==null)for(var l=0;l<s.length;l++){var h=s[l];Yi=h,Uy(h,n)}zy(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)By(n),n=n.sibling}function By(n){switch(n.tag){case 0:case 11:case 15:yc(n),n.flags&2048&&ll(9,n,n.return);break;case 3:yc(n);break;case 12:yc(n);break;case 22:var s=n.stateNode;n.memoizedState!==null&&s._visibility&2&&(n.return===null||n.return.tag!==13)?(s._visibility&=-3,Ma(n)):yc(n);break;default:yc(n)}}function Ma(n){var s=n.deletions;if((n.flags&16)!==0){if(s!==null)for(var l=0;l<s.length;l++){var h=s[l];Yi=h,Uy(h,n)}zy(n)}for(n=n.child;n!==null;){switch(s=n,s.tag){case 0:case 11:case 15:ll(8,s,s.return),Ma(s);break;case 22:l=s.stateNode,l._visibility&2&&(l._visibility&=-3,Ma(s));break;default:Ma(s)}n=n.sibling}}function Uy(n,s){for(;Yi!==null;){var l=Yi;switch(l.tag){case 0:case 11:case 15:ll(8,l,s);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var h=l.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:So(l.memoizedState.cache)}if(h=l.child,h!==null)h.return=l,Yi=h;else e:for(l=n;Yi!==null;){h=Yi;var b=h.sibling,M=h.return;if(jy(h),h===l){Yi=null;break e}if(b!==null){b.return=M,Yi=b;break e}Yi=M}}}var Hy={getCacheForType:function(n){var s=Zi(Vi),l=s.data.get(n);return l===void 0&&(l=n(),s.data.set(n,l)),l}},q1=typeof WeakMap=="function"?WeakMap:Map,Zn=0,oi=null,Mn=null,An=0,Qn=0,Pa=null,zo=!1,Mu=!1,$y=!1,_r=0,ji=0,Sr=0,bc=0,Bo=0,js=0,Au=0,Eu=null,Va=null,Gy=!1,Py=0,Vp=1/0,Du=null,ul=null,ra=0,Uo=null,Ou=null,la=0,Ip=0,qp=null,Vy=null,ju=0,Iy=null;function cs(){if((Zn&2)!==0&&An!==0)return An&-An;if(A.T!==null){var n=Ms;return n!==0?n:Sc()}return _t()}function qy(){js===0&&(js=(An&536870912)===0||Bn?ut():536870912);var n=ls.current;return n!==null&&(n.flags|=32),js}function us(n,s,l){(n===oi&&(Qn===2||Qn===9)||n.cancelPendingCommit!==null)&&(Ho(n,0),Cr(n,An,js,!1)),ft(n,l),((Zn&2)===0||n!==oi)&&(n===oi&&((Zn&2)===0&&(bc|=l),ji===4&&Cr(n,An,js,!1)),Ia(n))}function Lu(n,s,l){if((Zn&6)!==0)throw Error(c(327));var h=!l&&(s&124)===0&&(s&n.expiredLanes)===0||st(n,s),b=h?Fy(n,s):Yp(n,s,!0),M=h;do{if(b===0){Mu&&!h&&Cr(n,s,0,!1);break}else{if(l=n.current.alternate,M&&!Y1(l)){b=Yp(n,s,!1),M=!1;continue}if(b===2){if(M=s,n.errorRecoveryDisabledLanes&M)var fe=0;else fe=n.pendingLanes&-536870913,fe=fe!==0?fe:fe&536870912?536870912:0;if(fe!==0){s=fe;e:{var Se=n;b=Eu;var Oe=Se.current.memoizedState.isDehydrated;if(Oe&&(Ho(Se,fe).flags|=256),fe=Yp(Se,fe,!1),fe!==2){if($y&&!Oe){Se.errorRecoveryDisabledLanes|=M,bc|=M,b=4;break e}M=Va,Va=b,M!==null&&(Va===null?Va=M:Va.push.apply(Va,M))}b=fe}if(M=!1,b!==2)continue}}if(b===1){Ho(n,0),Cr(n,s,0,!0);break}e:{switch(h=n,M=b,M){case 0:case 1:throw Error(c(345));case 4:if((s&4194048)!==s)break;case 6:Cr(h,s,js,!zo);break e;case 2:Va=null;break;case 3:case 5:break;default:throw Error(c(329))}if((s&62914560)===s&&(b=Py+300-ge(),10<b)){if(Cr(h,s,js,!zo),rt(h,0,!0)!==0)break e;h.timeoutHandle=ng(Ch.bind(null,h,l,Va,Du,Gy,s,js,bc,Au,zo,M,2,-0,0),b);break e}Ch(h,l,Va,Du,Gy,s,js,bc,Au,zo,M,0,-0,0)}}break}while(!0);Ia(n)}function Ch(n,s,l,h,b,M,fe,Se,Oe,Ie,at,dt,Xe,Qe){if(n.timeoutHandle=-1,dt=s.subtreeFlags,(dt&8192||(dt&16785408)===16785408)&&(qu={stylesheets:null,count:0,unsuspend:lv},I1(s),dt=c0(),dt!==null)){n.cancelPendingCommit=dt(Z1.bind(null,n,s,M,l,h,b,fe,Se,Oe,at,1,Xe,Qe)),Cr(n,M,fe,!Ie);return}Z1(n,s,M,l,h,b,fe,Se,Oe)}function Y1(n){for(var s=n;;){var l=s.tag;if((l===0||l===11||l===15)&&s.flags&16384&&(l=s.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var h=0;h<l.length;h++){var b=l[h],M=b.getSnapshot;b=b.value;try{if(!aa(M(),b))return!1}catch{return!1}}if(l=s.child,s.subtreeFlags&16384&&l!==null)l.return=s,s=l;else{if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Cr(n,s,l,h){s&=~Bo,s&=~bc,n.suspendedLanes|=s,n.pingedLanes&=~s,h&&(n.warmLanes|=s),h=n.expirationTimes;for(var b=s;0<b;){var M=31-Ae(b),fe=1<<M;h[M]=-1,b&=~fe}l!==0&&Ot(n,l,s)}function vc(){return(Zn&6)===0?(Mh(0),!1):!0}function dl(){if(Mn!==null){if(Qn===0)var n=Mn.return;else n=Mn,Ws=fr=null,rp(n),cc=null,xu=0,n=Mn;for(;n!==null;)My(n.alternate,n),n=n.return;Mn=null}}function Ho(n,s){var l=n.timeoutHandle;l!==-1&&(n.timeoutHandle=-1,i_(l)),l=n.cancelPendingCommit,l!==null&&(n.cancelPendingCommit=null,l()),dl(),oi=n,Mn=l=Zs(n.current,null),An=s,Qn=0,Pa=null,zo=!1,Mu=st(n,s),$y=!1,Au=js=Bo=bc=Sr=ji=0,Va=Eu=null,Gy=!1,(s&8)!==0&&(s|=s&32);var h=n.entangledLanes;if(h!==0)for(n=n.entanglements,h&=s;0<h;){var b=31-Ae(h),M=1<<b;s|=n[b],h&=~M}return _r=s,Xs(),l}function Yy(n,s){hn=null,A.H=Sp,s===tl||s===Kd?(s=Qm(),Qn=3):s===Jf?(s=Qm(),Qn=4):Qn=s===Ei?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Pa=s,Mn===null&&(ji=1,yh(n,ss(s,n.current)))}function F1(){var n=A.H;return A.H=Sp,n===null?Sp:n}function xc(){var n=A.A;return A.A=Hy,n}function _c(){ji=4,zo||(An&4194048)!==An&&ls.current!==null||(Mu=!0),(Sr&134217727)===0&&(bc&134217727)===0||oi===null||Cr(oi,An,js,!1)}function Yp(n,s,l){var h=Zn;Zn|=2;var b=F1(),M=xc();(oi!==n||An!==s)&&(Du=null,Ho(n,s)),s=!1;var fe=ji;e:do try{if(Qn!==0&&Mn!==null){var Se=Mn,Oe=Pa;switch(Qn){case 8:dl(),fe=6;break e;case 3:case 2:case 9:case 6:ls.current===null&&(s=!0);var Ie=Qn;if(Qn=0,Pa=null,Ru(n,Se,Oe,Ie),l&&Mu){fe=0;break e}break;default:Ie=Qn,Qn=0,Pa=null,Ru(n,Se,Oe,Ie)}}Fp(),fe=ji;break}catch(at){Yy(n,at)}while(!0);return s&&n.shellSuspendCounter++,Ws=fr=null,Zn=h,A.H=b,A.A=M,Mn===null&&(oi=null,An=0,Xs()),fe}function Fp(){for(;Mn!==null;)Zy(Mn)}function Fy(n,s){var l=Zn;Zn|=2;var h=F1(),b=xc();oi!==n||An!==s?(Du=null,Vp=ge()+500,Ho(n,s)):Mu=st(n,s);e:do try{if(Qn!==0&&Mn!==null){s=Mn;var M=Pa;t:switch(Qn){case 1:Qn=0,Pa=null,Ru(n,s,M,1);break;case 2:case 9:if(ep(M)){Qn=0,Pa=null,Qy(s);break}s=function(){Qn!==2&&Qn!==9||oi!==n||(Qn=7),Ia(n)},M.then(s,s);break e;case 3:Qn=7;break e;case 4:Qn=5;break e;case 7:ep(M)?(Qn=0,Pa=null,Qy(s)):(Qn=0,Pa=null,Ru(n,s,M,7));break;case 5:var fe=null;switch(Mn.tag){case 26:fe=Mn.memoizedState;case 5:case 27:var Se=Mn;if(!fe||l0(fe)){Qn=0,Pa=null;var Oe=Se.sibling;if(Oe!==null)Mn=Oe;else{var Ie=Se.return;Ie!==null?(Mn=Ie,wh(Ie)):Mn=null}break t}}Qn=0,Pa=null,Ru(n,s,M,5);break;case 6:Qn=0,Pa=null,Ru(n,s,M,6);break;case 8:dl(),ji=6;break e;default:throw Error(c(462))}}Xy();break}catch(at){Yy(n,at)}while(!0);return Ws=fr=null,A.H=h,A.A=b,Zn=l,Mn!==null?0:(oi=null,An=0,Xs(),ji)}function Xy(){for(;Mn!==null&&!re();)Zy(Mn)}function Zy(n){var s=P1(n.alternate,n,_r);n.memoizedProps=n.pendingProps,s===null?wh(n):Mn=s}function Qy(n){var s=n,l=s.alternate;switch(s.tag){case 15:case 0:s=Sy(l,s,s.pendingProps,s.type,void 0,An);break;case 11:s=Sy(l,s,s.pendingProps,s.type.render,s.ref,An);break;case 5:rp(s);default:My(l,s),s=Mn=_n(s,_r),s=P1(l,s,_r)}n.memoizedProps=n.pendingProps,s===null?wh(n):Mn=s}function Ru(n,s,l,h){Ws=fr=null,rp(s),cc=null,xu=0;var b=s.return;try{if(H1(n,b,s,l,An)){ji=1,yh(n,ss(l,n.current)),Mn=null;return}}catch(M){if(b!==null)throw Mn=b,M;ji=1,yh(n,ss(l,n.current)),Mn=null;return}s.flags&32768?(Bn||h===1?n=!0:Mu||(An&536870912)!==0?n=!1:(zo=n=!0,(h===2||h===9||h===3||h===6)&&(h=ls.current,h!==null&&h.tag===13&&(h.flags|=16384))),X1(s,n)):wh(s)}function wh(n){var s=n;do{if((s.flags&32768)!==0){X1(s,zo);return}n=s.return;var l=Ty(s.alternate,s,_r);if(l!==null){Mn=l;return}if(s=s.sibling,s!==null){Mn=s;return}Mn=s=n}while(s!==null);ji===0&&(ji=5)}function X1(n,s){do{var l=Wx(n.alternate,n);if(l!==null){l.flags&=32767,Mn=l;return}if(l=n.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!s&&(n=n.sibling,n!==null)){Mn=n;return}Mn=n=l}while(n!==null);ji=6,Mn=null}function Z1(n,s,l,h,b,M,fe,Se,Oe){n.cancelPendingCommit=null;do Zp();while(ra!==0);if((Zn&6)!==0)throw Error(c(327));if(s!==null){if(s===n.current)throw Error(c(177));if(M=s.lanes|s.childLanes,M|=bo,ot(n,l,M,fe,Se,Oe),n===oi&&(Mn=oi=null,An=0),Ou=s,Uo=n,la=l,Ip=M,qp=b,Vy=h,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,e_(Ee,function(){return Wy(),null})):(n.callbackNode=null,n.callbackPriority=0),h=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||h){h=A.T,A.T=null,b=L.p,L.p=2,fe=Zn,Zn|=4;try{Dy(n,s,l)}finally{Zn=fe,L.p=b,A.T=h}}ra=1,Q1(),kh(),Xp()}}function Q1(){if(ra===1){ra=0;var n=Uo,s=Ou,l=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||l){l=A.T,A.T=null;var h=L.p;L.p=2;var b=Zn;Zn|=4;try{Sh(s,n);var M=Nh,fe=Hm(n.containerInfo),Se=M.focusedElem,Oe=M.selectionRange;if(fe!==Se&&Se&&Se.ownerDocument&&Pd(Se.ownerDocument.documentElement,Se)){if(Oe!==null&&Vd(Se)){var Ie=Oe.start,at=Oe.end;if(at===void 0&&(at=Ie),"selectionStart"in Se)Se.selectionStart=Ie,Se.selectionEnd=Math.min(at,Se.value.length);else{var dt=Se.ownerDocument||document,Xe=dt&&dt.defaultView||window;if(Xe.getSelection){var Qe=Xe.getSelection(),Xt=Se.textContent.length,Zt=Math.min(Oe.start,Xt),Vn=Oe.end===void 0?Zt:Math.min(Oe.end,Xt);!Qe.extend&&Zt>Vn&&(fe=Vn,Vn=Zt,Zt=fe);var Pe=hi(Se,Zt),He=hi(Se,Vn);if(Pe&&He&&(Qe.rangeCount!==1||Qe.anchorNode!==Pe.node||Qe.anchorOffset!==Pe.offset||Qe.focusNode!==He.node||Qe.focusOffset!==He.offset)){var Ve=dt.createRange();Ve.setStart(Pe.node,Pe.offset),Qe.removeAllRanges(),Zt>Vn?(Qe.addRange(Ve),Qe.extend(He.node,He.offset)):(Ve.setEnd(He.node,He.offset),Qe.addRange(Ve))}}}}for(dt=[],Qe=Se;Qe=Qe.parentNode;)Qe.nodeType===1&&dt.push({element:Qe,left:Qe.scrollLeft,top:Qe.scrollTop});for(typeof Se.focus=="function"&&Se.focus(),Se=0;Se<dt.length;Se++){var ct=dt[Se];ct.element.scrollLeft=ct.left,ct.element.scrollTop=ct.top}}$h=!!Rh,Nh=Rh=null}finally{Zn=b,L.p=h,A.T=l}}n.current=s,ra=2}}function kh(){if(ra===2){ra=0;var n=Uo,s=Ou,l=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||l){l=A.T,A.T=null;var h=L.p;L.p=2;var b=Zn;Zn|=4;try{Oy(n,s.alternate,s)}finally{Zn=b,L.p=h,A.T=l}}ra=3}}function Xp(){if(ra===4||ra===3){ra=0,le();var n=Uo,s=Ou,l=la,h=Vy;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?ra=5:(ra=0,Ou=Uo=null,W1(n,n.pendingLanes));var b=n.pendingLanes;if(b===0&&(ul=null),It(l),s=s.stateNode,Te&&typeof Te.onCommitFiberRoot=="function")try{Te.onCommitFiberRoot(xe,s,void 0,(s.current.flags&128)===128)}catch{}if(h!==null){s=A.T,b=L.p,L.p=2,A.T=null;try{for(var M=n.onRecoverableError,fe=0;fe<h.length;fe++){var Se=h[fe];M(Se.value,{componentStack:Se.stack})}}finally{A.T=s,L.p=b}}(la&3)!==0&&Zp(),Ia(n),b=n.pendingLanes,(l&4194090)!==0&&(b&42)!==0?n===Iy?ju++:(ju=0,Iy=n):ju=0,Mh(0)}}function W1(n,s){(n.pooledCacheLanes&=s)===0&&(s=n.pooledCache,s!=null&&(n.pooledCache=null,So(s)))}function Zp(n){return Q1(),kh(),Xp(),Wy()}function Wy(){if(ra!==5)return!1;var n=Uo,s=Ip;Ip=0;var l=It(la),h=A.T,b=L.p;try{L.p=32>l?32:l,A.T=null,l=qp,qp=null;var M=Uo,fe=la;if(ra=0,Ou=Uo=null,la=0,(Zn&6)!==0)throw Error(c(331));var Se=Zn;if(Zn|=4,By(M.current),Ny(M,M.current,fe,l),Zn=Se,Mh(0,!1),Te&&typeof Te.onPostCommitFiberRoot=="function")try{Te.onPostCommitFiberRoot(xe,M)}catch{}return!0}finally{L.p=b,A.T=h,W1(n,s)}}function Jy(n,s,l){s=ss(l,s),s=xy(n.stateNode,s,2),n=ko(n,s,2),n!==null&&(ft(n,2),Ia(n))}function Jn(n,s,l){if(n.tag===3)Jy(n,n,l);else for(;s!==null;){if(s.tag===3){Jy(s,n,l);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(ul===null||!ul.has(h))){n=ss(l,n),l=_y(2),h=ko(s,l,2),h!==null&&(Ga(l,h,s,n),ft(h,2),Ia(h));break}}s=s.return}}function Qp(n,s,l){var h=n.pingCache;if(h===null){h=n.pingCache=new q1;var b=new Set;h.set(s,b)}else b=h.get(s),b===void 0&&(b=new Set,h.set(s,b));b.has(l)||($y=!0,b.add(l),n=Ky.bind(null,n,s,l),s.then(n,n))}function Ky(n,s,l){var h=n.pingCache;h!==null&&h.delete(s),n.pingedLanes|=n.suspendedLanes&l,n.warmLanes&=~l,oi===n&&(An&l)===l&&(ji===4||ji===3&&(An&62914560)===An&&300>ge()-Py?(Zn&2)===0&&Ho(n,0):Bo|=l,Au===An&&(Au=0)),Ia(n)}function e0(n,s){s===0&&(s=lt()),n=vo(n,s),n!==null&&(ft(n,s),Ia(n))}function Jx(n){var s=n.memoizedState,l=0;s!==null&&(l=s.retryLane),e0(n,l)}function Kx(n,s){var l=0;switch(n.tag){case 13:var h=n.stateNode,b=n.memoizedState;b!==null&&(l=b.retryLane);break;case 19:h=n.stateNode;break;case 22:h=n.stateNode._retryCache;break;default:throw Error(c(314))}h!==null&&h.delete(s),e0(n,l)}function e_(n,s){return H(n,s)}var Wp=null,hl=null,Th=!1,Nu=!1,Jp=!1,fl=0;function Ia(n){n!==hl&&n.next===null&&(hl===null?Wp=hl=n:hl=hl.next=n),Nu=!0,Th||(Th=!0,ev())}function Mh(n,s){if(!Jp&&Nu){Jp=!0;do for(var l=!1,h=Wp;h!==null;){if(n!==0){var b=h.pendingLanes;if(b===0)var M=0;else{var fe=h.suspendedLanes,Se=h.pingedLanes;M=(1<<31-Ae(42|n)+1)-1,M&=b&~(fe&~Se),M=M&201326741?M&201326741|1:M?M|2:0}M!==0&&(l=!0,Eh(h,M))}else M=An,M=rt(h,h===oi?M:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(M&3)===0||st(h,M)||(l=!0,Eh(h,M));h=h.next}while(l);Jp=!1}}function J1(){Ah()}function Ah(){Nu=Th=!1;var n=0;fl!==0&&(Tr()&&(n=fl),fl=0);for(var s=ge(),l=null,h=Wp;h!==null;){var b=h.next,M=t0(h,s);M===0?(h.next=null,l===null?Wp=b:l.next=b,b===null&&(hl=l)):(l=h,(n!==0||(M&3)!==0)&&(Nu=!0)),h=b}Mh(n)}function t0(n,s){for(var l=n.suspendedLanes,h=n.pingedLanes,b=n.expirationTimes,M=n.pendingLanes&-62914561;0<M;){var fe=31-Ae(M),Se=1<<fe,Oe=b[fe];Oe===-1?((Se&l)===0||(Se&h)!==0)&&(b[fe]=Ne(Se,s)):Oe<=s&&(n.expiredLanes|=Se),M&=~Se}if(s=oi,l=An,l=rt(n,n===s?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),h=n.callbackNode,l===0||n===s&&(Qn===2||Qn===9)||n.cancelPendingCommit!==null)return h!==null&&h!==null&&K(h),n.callbackNode=null,n.callbackPriority=0;if((l&3)===0||st(n,l)){if(s=l&-l,s===n.callbackPriority)return s;switch(h!==null&&K(h),It(l)){case 2:case 8:l=we;break;case 32:l=Ee;break;case 268435456:l=be;break;default:l=Ee}return h=K1.bind(null,n),l=H(l,h),n.callbackPriority=s,n.callbackNode=l,s}return h!==null&&h!==null&&K(h),n.callbackPriority=2,n.callbackNode=null,2}function K1(n,s){if(ra!==0&&ra!==5)return n.callbackNode=null,n.callbackPriority=0,null;var l=n.callbackNode;if(Zp()&&n.callbackNode!==l)return null;var h=An;return h=rt(n,n===oi?h:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),h===0?null:(Lu(n,h,s),t0(n,ge()),n.callbackNode!=null&&n.callbackNode===l?K1.bind(null,n):null)}function Eh(n,s){if(Zp())return null;Lu(n,s,!0)}function ev(){a_(function(){(Zn&6)!==0?H(_e,J1):Ah()})}function Sc(){return fl===0&&(fl=ut()),fl}function Kp(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Rd(""+n)}function Dh(n,s){var l=s.ownerDocument.createElement("input");return l.name=s.name,l.value=s.value,n.id&&l.setAttribute("form",n.id),s.parentNode.insertBefore(l,s),n=new FormData(n),l.parentNode.removeChild(l),n}function tv(n,s,l,h,b){if(s==="submit"&&l&&l.stateNode===b){var M=Kp((b[St]||null).action),fe=h.submitter;fe&&(s=(s=fe[St]||null)?Kp(s.formAction):fe.getAttribute("formAction"),s!==null&&(M=s,fe=null));var Se=new Nf("action","action",null,h,b);n.push({event:Se,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(fl!==0){var Oe=fe?Dh(b,fe):new FormData(b);_p(l,{pending:!0,data:Oe,method:b.method,action:M},null,Oe)}}else typeof M=="function"&&(Se.preventDefault(),Oe=fe?Dh(b,fe):new FormData(b),_p(l,{pending:!0,data:Oe,method:b.method,action:M},M,Oe))},currentTarget:b}]})}}for(var Li=0;Li<iu.length;Li++){var Oh=iu[Li],t_=Oh.toLowerCase(),xn=Oh[0].toUpperCase()+Oh.slice(1);Ss(t_,"on"+xn)}Ss(w1,"onAnimationEnd"),Ss($m,"onAnimationIteration"),Ss(k1,"onAnimationStart"),Ss("dblclick","onDoubleClick"),Ss("focusin","onFocus"),Ss("focusout","onBlur"),Ss(Gm,"onTransitionRun"),Ss(If,"onTransitionStart"),Ss(T1,"onTransitionCancel"),Ss(Pm,"onTransitionEnd"),Rt("onMouseEnter",["mouseout","mouseover"]),Rt("onMouseLeave",["mouseout","mouseover"]),Rt("onPointerEnter",["pointerout","pointerover"]),Rt("onPointerLeave",["pointerout","pointerover"]),Ut("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ut("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ut("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ut("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ut("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ut("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jh="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(" "),pl=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(jh));function Cc(n,s){s=(s&4)!==0;for(var l=0;l<n.length;l++){var h=n[l],b=h.event;h=h.listeners;e:{var M=void 0;if(s)for(var fe=h.length-1;0<=fe;fe--){var Se=h[fe],Oe=Se.instance,Ie=Se.currentTarget;if(Se=Se.listener,Oe!==M&&b.isPropagationStopped())break e;M=Se,b.currentTarget=Ie;try{M(b)}catch(at){gh(at)}b.currentTarget=null,M=Oe}else for(fe=0;fe<h.length;fe++){if(Se=h[fe],Oe=Se.instance,Ie=Se.currentTarget,Se=Se.listener,Oe!==M&&b.isPropagationStopped())break e;M=Se,b.currentTarget=Ie;try{M(b)}catch(at){gh(at)}b.currentTarget=null,M=Oe}}}}function fn(n,s){var l=s[Dt];l===void 0&&(l=s[Dt]=new Set);var h=n+"__bubble";l.has(h)||(eg(s,n,2,!1),l.add(h))}function zu(n,s,l){var h=0;s&&(h|=4),eg(l,n,h,s)}var Bu="_reactListening"+Math.random().toString(36).slice(2);function n0(n){if(!n[Bu]){n[Bu]=!0,vn.forEach(function(l){l!=="selectionchange"&&(pl.has(l)||zu(l,!1,n),zu(l,!0,n))});var s=n.nodeType===9?n:n.ownerDocument;s===null||s[Bu]||(s[Bu]=!0,zu("selectionchange",!1,s))}}function eg(n,s,l,h){switch(y0(s)){case 2:var b=uv;break;case 8:b=dv;break;default:b=g0}l=b.bind(null,s,l,n),b=void 0,!jf||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(b=!0),h?b!==void 0?n.addEventListener(s,l,{capture:!0,passive:b}):n.addEventListener(s,l,!0):b!==void 0?n.addEventListener(s,l,{passive:b}):n.addEventListener(s,l,!1)}function Ls(n,s,l,h,b){var M=h;if((s&1)===0&&(s&2)===0&&h!==null)e:for(;;){if(h===null)return;var fe=h.tag;if(fe===3||fe===4){var Se=h.stateNode.containerInfo;if(Se===b)break;if(fe===4)for(fe=h.return;fe!==null;){var Oe=fe.tag;if((Oe===3||Oe===4)&&fe.stateNode.containerInfo===b)return;fe=fe.return}for(;Se!==null;){if(fe=At(Se),fe===null)return;if(Oe=fe.tag,Oe===5||Oe===6||Oe===26||Oe===27){h=M=fe;continue e}Se=Se.parentNode}}h=h.return}eu(function(){var Ie=M,at=Of(l),dt=[];e:{var Xe=Vm.get(n);if(Xe!==void 0){var Qe=Nf,Xt=n;switch(n){case"keypress":if(ia(l)===0)break e;case"keydown":case"keyup":Qe=Vs;break;case"focusin":Xt="focus",Qe=wm;break;case"focusout":Xt="blur",Qe=wm;break;case"beforeblur":case"afterblur":Qe=wm;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Qe=Cm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Qe=g1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Qe=Mm;break;case w1:case $m:case k1:Qe=Fx;break;case Pm:Qe=x1;break;case"scroll":case"scrollend":Qe=f1;break;case"wheel":Qe=Yl;break;case"copy":case"cut":case"paste":Qe=Bd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Qe=Ud;break;case"toggle":case"beforetoggle":Qe=_1}var Zt=(s&4)!==0,Vn=!Zt&&(n==="scroll"||n==="scrollend"),Pe=Zt?Xe!==null?Xe+"Capture":null:Xe;Zt=[];for(var He=Ie,Ve;He!==null;){var ct=He;if(Ve=ct.stateNode,ct=ct.tag,ct!==5&&ct!==26&&ct!==27||Ve===null||Pe===null||(ct=Pl(He,Pe),ct!=null&&Zt.push(wr(He,ct,Ve))),Vn)break;He=He.return}0<Zt.length&&(Xe=new Qe(Xe,Xt,null,l,at),dt.push({event:Xe,listeners:Zt}))}}if((s&7)===0){e:{if(Xe=n==="mouseover"||n==="pointerover",Qe=n==="mouseout"||n==="pointerout",Xe&&l!==Gl&&(Xt=l.relatedTarget||l.fromElement)&&(At(Xt)||Xt[Et]))break e;if((Qe||Xe)&&(Xe=at.window===at?at:(Xe=at.ownerDocument)?Xe.defaultView||Xe.parentWindow:window,Qe?(Xt=l.relatedTarget||l.toElement,Qe=Ie,Xt=Xt?At(Xt):null,Xt!==null&&(Vn=f(Xt),Zt=Xt.tag,Xt!==Vn||Zt!==5&&Zt!==27&&Zt!==6)&&(Xt=null)):(Qe=null,Xt=Ie),Qe!==Xt)){if(Zt=Cm,ct="onMouseLeave",Pe="onMouseEnter",He="mouse",(n==="pointerout"||n==="pointerover")&&(Zt=Ud,ct="onPointerLeave",Pe="onPointerEnter",He="pointer"),Vn=Qe==null?Xe:pt(Qe),Ve=Xt==null?Xe:pt(Xt),Xe=new Zt(ct,He+"leave",Qe,l,at),Xe.target=Vn,Xe.relatedTarget=Ve,ct=null,At(at)===Ie&&(Zt=new Zt(Pe,He+"enter",Xt,l,at),Zt.target=Ve,Zt.relatedTarget=Vn,ct=Zt),Vn=ct,Qe&&Xt)t:{for(Zt=Qe,Pe=Xt,He=0,Ve=Zt;Ve;Ve=gl(Ve))He++;for(Ve=0,ct=Pe;ct;ct=gl(ct))Ve++;for(;0<He-Ve;)Zt=gl(Zt),He--;for(;0<Ve-He;)Pe=gl(Pe),Ve--;for(;He--;){if(Zt===Pe||Pe!==null&&Zt===Pe.alternate)break t;Zt=gl(Zt),Pe=gl(Pe)}Zt=null}else Zt=null;Qe!==null&&Lh(dt,Xe,Qe,Zt,!1),Xt!==null&&Vn!==null&&Lh(dt,Vn,Xt,Zt,!0)}}e:{if(Xe=Ie?pt(Ie):window,Qe=Xe.nodeName&&Xe.nodeName.toLowerCase(),Qe==="select"||Qe==="input"&&Xe.type==="file")var zt=Lm;else if($f(Xe))if(Rm)zt=Bm;else{zt=qr;var Sn=Pf}else Qe=Xe.nodeName,!Qe||Qe.toLowerCase()!=="input"||Xe.type!=="checkbox"&&Xe.type!=="radio"?Ie&&$l(Ie.elementType)&&(zt=Lm):zt=cr;if(zt&&(zt=zt(n,Ie))){Gf(dt,zt,l,at);break e}Sn&&Sn(n,Xe,Ie),n==="focusout"&&Ie&&Xe.type==="number"&&Ie.memoizedProps.value!=null&&jd(Xe,"number",Xe.value)}switch(Sn=Ie?pt(Ie):window,n){case"focusin":($f(Sn)||Sn.contentEditable==="true")&&(mo=Sn,Ys=Ie,Xr=null);break;case"focusout":Xr=Ys=mo=null;break;case"mousedown":Wl=!0;break;case"contextmenu":case"mouseup":case"dragend":Wl=!1,Vf(dt,l,at);break;case"selectionchange":if(Ql)break;case"keydown":case"keyup":Vf(dt,l,at)}var qt;if(Hd)e:{switch(n){case"compositionstart":var Kt="onCompositionStart";break e;case"compositionend":Kt="onCompositionEnd";break e;case"compositionupdate":Kt="onCompositionUpdate";break e}Kt=void 0}else Ir?Gd(n,l)&&(Kt="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(Kt="onCompositionStart");Kt&&(po&&l.locale!=="ko"&&(Ir||Kt!=="onCompositionStart"?Kt==="onCompositionEnd"&&Ir&&(qt=_m()):(rr=at,tu="value"in rr?rr.value:rr.textContent,Ir=!0)),Sn=Uu(Ie,Kt),0<Sn.length&&(Kt=new km(Kt,n,null,l,at),dt.push({event:Kt,listeners:Sn}),qt?Kt.data=qt:(qt=Vr(l),qt!==null&&(Kt.data=qt)))),(qt=Em?Om(n,l):Fl(n,l))&&(Kt=Uu(Ie,"onBeforeInput"),0<Kt.length&&(Sn=new km("onBeforeInput","beforeinput",null,l,at),dt.push({event:Sn,listeners:Kt}),Sn.data=qt)),tv(dt,n,Ie,l,at)}Cc(dt,s)})}function wr(n,s,l){return{instance:n,listener:s,currentTarget:l}}function Uu(n,s){for(var l=s+"Capture",h=[];n!==null;){var b=n,M=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||M===null||(b=Pl(n,l),b!=null&&h.unshift(wr(n,b,M)),b=Pl(n,s),b!=null&&h.push(wr(n,b,M))),n.tag===3)return h;n=n.return}return[]}function gl(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Lh(n,s,l,h,b){for(var M=s._reactName,fe=[];l!==null&&l!==h;){var Se=l,Oe=Se.alternate,Ie=Se.stateNode;if(Se=Se.tag,Oe!==null&&Oe===h)break;Se!==5&&Se!==26&&Se!==27||Ie===null||(Oe=Ie,b?(Ie=Pl(l,M),Ie!=null&&fe.unshift(wr(l,Ie,Oe))):b||(Ie=Pl(l,M),Ie!=null&&fe.push(wr(l,Ie,Oe)))),l=l.return}fe.length!==0&&n.push({event:s,listeners:fe})}var ds=/\r\n?/g,i0=/\u0000|\uFFFD/g;function nv(n){return(typeof n=="string"?n:""+n).replace(ds,`
|
|
551
|
+
`).replace(i0,"")}function a0(n,s){return s=nv(s),nv(n)===s}function tg(){}function rn(n,s,l,h,b,M){switch(l){case"children":typeof h=="string"?s==="body"||s==="textarea"&&h===""||Wc(n,h):(typeof h=="number"||typeof h=="bigint")&&s!=="body"&&Wc(n,""+h);break;case"className":Wt(n,"class",h);break;case"tabIndex":Wt(n,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":Wt(n,l,h);break;case"style":Ld(n,h,M);break;case"data":if(s!=="object"){Wt(n,"data",h);break}case"src":case"href":if(h===""&&(s!=="a"||l!=="href")){n.removeAttribute(l);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){n.removeAttribute(l);break}h=Rd(""+h),n.setAttribute(l,h);break;case"action":case"formAction":if(typeof h=="function"){n.setAttribute(l,"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 M=="function"&&(l==="formAction"?(s!=="input"&&rn(n,s,"name",b.name,b,null),rn(n,s,"formEncType",b.formEncType,b,null),rn(n,s,"formMethod",b.formMethod,b,null),rn(n,s,"formTarget",b.formTarget,b,null)):(rn(n,s,"encType",b.encType,b,null),rn(n,s,"method",b.method,b,null),rn(n,s,"target",b.target,b,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){n.removeAttribute(l);break}h=Rd(""+h),n.setAttribute(l,h);break;case"onClick":h!=null&&(n.onclick=tg);break;case"onScroll":h!=null&&fn("scroll",n);break;case"onScrollEnd":h!=null&&fn("scrollend",n);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(c(61));if(l=h.__html,l!=null){if(b.children!=null)throw Error(c(60));n.innerHTML=l}}break;case"multiple":n.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":n.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){n.removeAttribute("xlink:href");break}l=Rd(""+h),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?n.setAttribute(l,""+h):n.removeAttribute(l);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":h&&typeof h!="function"&&typeof h!="symbol"?n.setAttribute(l,""):n.removeAttribute(l);break;case"capture":case"download":h===!0?n.setAttribute(l,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?n.setAttribute(l,h):n.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?n.setAttribute(l,h):n.removeAttribute(l);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?n.removeAttribute(l):n.setAttribute(l,h);break;case"popover":fn("beforetoggle",n),fn("toggle",n),mn(n,"popover",h);break;case"xlinkActuate":Ht(n,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":Ht(n,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":Ht(n,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":Ht(n,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":Ht(n,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":Ht(n,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":Ht(n,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":Ht(n,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":Ht(n,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":mn(n,"is",h);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Ix.get(l)||l,mn(n,l,h))}}function We(n,s,l,h,b,M){switch(l){case"style":Ld(n,h,M);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(c(61));if(l=h.__html,l!=null){if(b.children!=null)throw Error(c(60));n.innerHTML=l}}break;case"children":typeof h=="string"?Wc(n,h):(typeof h=="number"||typeof h=="bigint")&&Wc(n,""+h);break;case"onScroll":h!=null&&fn("scroll",n);break;case"onScrollEnd":h!=null&&fn("scrollend",n);break;case"onClick":h!=null&&(n.onclick=tg);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!an.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(b=l.endsWith("Capture"),s=l.slice(2,b?l.length-7:void 0),M=n[St]||null,M=M!=null?M[l]:null,typeof M=="function"&&n.removeEventListener(s,M,b),typeof h=="function")){typeof M!="function"&&M!==null&&(l in n?n[l]=null:n.hasAttribute(l)&&n.removeAttribute(l)),n.addEventListener(s,h,b);break e}l in n?n[l]=h:h===!0?n.setAttribute(l,""):mn(n,l,h)}}}function en(n,s,l){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":fn("error",n),fn("load",n);var h=!1,b=!1,M;for(M in l)if(l.hasOwnProperty(M)){var fe=l[M];if(fe!=null)switch(M){case"src":h=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,s));default:rn(n,s,M,fe,l,null)}}b&&rn(n,s,"srcSet",l.srcSet,l,null),h&&rn(n,s,"src",l.src,l,null);return;case"input":fn("invalid",n);var Se=M=fe=b=null,Oe=null,Ie=null;for(h in l)if(l.hasOwnProperty(h)){var at=l[h];if(at!=null)switch(h){case"name":b=at;break;case"type":fe=at;break;case"checked":Oe=at;break;case"defaultChecked":Ie=at;break;case"value":M=at;break;case"defaultValue":Se=at;break;case"children":case"dangerouslySetInnerHTML":if(at!=null)throw Error(c(137,s));break;default:rn(n,s,h,at,l,null)}}Ef(n,M,Se,Oe,Ie,fe,b,!1),yi(n);return;case"select":fn("invalid",n),h=fe=M=null;for(b in l)if(l.hasOwnProperty(b)&&(Se=l[b],Se!=null))switch(b){case"value":M=Se;break;case"defaultValue":fe=Se;break;case"multiple":h=Se;default:rn(n,s,b,Se,l,null)}s=M,l=fe,n.multiple=!!h,s!=null?Hl(n,!!h,s,!1):l!=null&&Hl(n,!!h,l,!0);return;case"textarea":fn("invalid",n),M=b=h=null;for(fe in l)if(l.hasOwnProperty(fe)&&(Se=l[fe],Se!=null))switch(fe){case"value":h=Se;break;case"defaultValue":b=Se;break;case"children":M=Se;break;case"dangerouslySetInnerHTML":if(Se!=null)throw Error(c(91));break;default:rn(n,s,fe,Se,l,null)}vm(n,h,b,M),yi(n);return;case"option":for(Oe in l)if(l.hasOwnProperty(Oe)&&(h=l[Oe],h!=null))switch(Oe){case"selected":n.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:rn(n,s,Oe,h,l,null)}return;case"dialog":fn("beforetoggle",n),fn("toggle",n),fn("cancel",n),fn("close",n);break;case"iframe":case"object":fn("load",n);break;case"video":case"audio":for(h=0;h<jh.length;h++)fn(jh[h],n);break;case"image":fn("error",n),fn("load",n);break;case"details":fn("toggle",n);break;case"embed":case"source":case"link":fn("error",n),fn("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ie in l)if(l.hasOwnProperty(Ie)&&(h=l[Ie],h!=null))switch(Ie){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,s));default:rn(n,s,Ie,h,l,null)}return;default:if($l(s)){for(at in l)l.hasOwnProperty(at)&&(h=l[at],h!==void 0&&We(n,s,at,h,l,void 0));return}}for(Se in l)l.hasOwnProperty(Se)&&(h=l[Se],h!=null&&rn(n,s,Se,h,l,null))}function n_(n,s,l,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,M=null,fe=null,Se=null,Oe=null,Ie=null,at=null;for(Qe in l){var dt=l[Qe];if(l.hasOwnProperty(Qe)&&dt!=null)switch(Qe){case"checked":break;case"value":break;case"defaultValue":Oe=dt;default:h.hasOwnProperty(Qe)||rn(n,s,Qe,null,h,dt)}}for(var Xe in h){var Qe=h[Xe];if(dt=l[Xe],h.hasOwnProperty(Xe)&&(Qe!=null||dt!=null))switch(Xe){case"type":M=Qe;break;case"name":b=Qe;break;case"checked":Ie=Qe;break;case"defaultChecked":at=Qe;break;case"value":fe=Qe;break;case"defaultValue":Se=Qe;break;case"children":case"dangerouslySetInnerHTML":if(Qe!=null)throw Error(c(137,s));break;default:Qe!==dt&&rn(n,s,Xe,Qe,h,dt)}}Af(n,fe,Se,Oe,Ie,at,M,b);return;case"select":Qe=fe=Se=Xe=null;for(M in l)if(Oe=l[M],l.hasOwnProperty(M)&&Oe!=null)switch(M){case"value":break;case"multiple":Qe=Oe;default:h.hasOwnProperty(M)||rn(n,s,M,null,h,Oe)}for(b in h)if(M=h[b],Oe=l[b],h.hasOwnProperty(b)&&(M!=null||Oe!=null))switch(b){case"value":Xe=M;break;case"defaultValue":Se=M;break;case"multiple":fe=M;default:M!==Oe&&rn(n,s,b,M,h,Oe)}s=Se,l=fe,h=Qe,Xe!=null?Hl(n,!!l,Xe,!1):!!h!=!!l&&(s!=null?Hl(n,!!l,s,!0):Hl(n,!!l,l?[]:"",!1));return;case"textarea":Qe=Xe=null;for(Se in l)if(b=l[Se],l.hasOwnProperty(Se)&&b!=null&&!h.hasOwnProperty(Se))switch(Se){case"value":break;case"children":break;default:rn(n,s,Se,null,h,b)}for(fe in h)if(b=h[fe],M=l[fe],h.hasOwnProperty(fe)&&(b!=null||M!=null))switch(fe){case"value":Xe=b;break;case"defaultValue":Qe=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(c(91));break;default:b!==M&&rn(n,s,fe,b,h,M)}bm(n,Xe,Qe);return;case"option":for(var Xt in l)if(Xe=l[Xt],l.hasOwnProperty(Xt)&&Xe!=null&&!h.hasOwnProperty(Xt))switch(Xt){case"selected":n.selected=!1;break;default:rn(n,s,Xt,null,h,Xe)}for(Oe in h)if(Xe=h[Oe],Qe=l[Oe],h.hasOwnProperty(Oe)&&Xe!==Qe&&(Xe!=null||Qe!=null))switch(Oe){case"selected":n.selected=Xe&&typeof Xe!="function"&&typeof Xe!="symbol";break;default:rn(n,s,Oe,Xe,h,Qe)}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 Zt in l)Xe=l[Zt],l.hasOwnProperty(Zt)&&Xe!=null&&!h.hasOwnProperty(Zt)&&rn(n,s,Zt,null,h,Xe);for(Ie in h)if(Xe=h[Ie],Qe=l[Ie],h.hasOwnProperty(Ie)&&Xe!==Qe&&(Xe!=null||Qe!=null))switch(Ie){case"children":case"dangerouslySetInnerHTML":if(Xe!=null)throw Error(c(137,s));break;default:rn(n,s,Ie,Xe,h,Qe)}return;default:if($l(s)){for(var Vn in l)Xe=l[Vn],l.hasOwnProperty(Vn)&&Xe!==void 0&&!h.hasOwnProperty(Vn)&&We(n,s,Vn,void 0,h,Xe);for(at in h)Xe=h[at],Qe=l[at],!h.hasOwnProperty(at)||Xe===Qe||Xe===void 0&&Qe===void 0||We(n,s,at,Xe,h,Qe);return}}for(var Pe in l)Xe=l[Pe],l.hasOwnProperty(Pe)&&Xe!=null&&!h.hasOwnProperty(Pe)&&rn(n,s,Pe,null,h,Xe);for(dt in h)Xe=h[dt],Qe=l[dt],!h.hasOwnProperty(dt)||Xe===Qe||Xe==null&&Qe==null||rn(n,s,dt,Xe,h,Qe)}var Rh=null,Nh=null;function Rs(n){return n.nodeType===9?n:n.ownerDocument}function kr(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Hu(n,s){if(n===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&s==="foreignObject"?0:n}function $o(n,s){return n==="textarea"||n==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var $u=null;function Tr(){var n=window.event;return n&&n.type==="popstate"?n===$u?!1:($u=n,!0):($u=null,!1)}var ng=typeof setTimeout=="function"?setTimeout:void 0,i_=typeof clearTimeout=="function"?clearTimeout:void 0,iv=typeof Promise=="function"?Promise:void 0,a_=typeof queueMicrotask=="function"?queueMicrotask:typeof iv<"u"?function(n){return iv.resolve(null).then(n).catch(Go)}:ng;function Go(n){setTimeout(function(){throw n})}function ml(n){return n==="head"}function ig(n,s){var l=s,h=0,b=0;do{var M=l.nextSibling;if(n.removeChild(l),M&&M.nodeType===8)if(l=M.data,l==="/$"){if(0<h&&8>h){l=h;var fe=n.ownerDocument;if(l&1&&qa(fe.documentElement),l&2&&qa(fe.body),l&4)for(l=fe.head,qa(l),fe=l.firstChild;fe;){var Se=fe.nextSibling,Oe=fe.nodeName;fe[yt]||Oe==="SCRIPT"||Oe==="STYLE"||Oe==="LINK"&&fe.rel.toLowerCase()==="stylesheet"||l.removeChild(fe),fe=Se}}if(b===0){n.removeChild(M),Vo(s);return}b--}else l==="$"||l==="$?"||l==="$!"?b++:h=l.charCodeAt(0)-48;else h=0;l=M}while(l);Vo(s)}function zh(n){var s=n.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var l=s;switch(s=s.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":zh(l),Pt(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}n.removeChild(l)}}function Gu(n,s,l,h){for(;n.nodeType===1;){var b=l;if(n.nodeName.toLowerCase()!==s.toLowerCase()){if(!h&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(h){if(!n[yt])switch(s){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(M=n.getAttribute("rel"),M==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(M!==b.rel||n.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||n.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||n.getAttribute("title")!==(b.title==null?null:b.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(M=n.getAttribute("src"),(M!==(b.src==null?null:b.src)||n.getAttribute("type")!==(b.type==null?null:b.type)||n.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&M&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(s==="input"&&n.type==="hidden"){var M=b.name==null?null:""+b.name;if(b.type==="hidden"&&n.getAttribute("name")===M)return n}else return n;if(n=no(n.nextSibling),n===null)break}return null}function s_(n,s,l){if(s==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=no(n.nextSibling),n===null))return null;return n}function Bh(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function o_(n,s){var l=n.ownerDocument;if(n.data!=="$?"||l.readyState==="complete")s();else{var h=function(){s(),l.removeEventListener("DOMContentLoaded",h)};l.addEventListener("DOMContentLoaded",h),n._reactRetry=h}}function no(n){for(;n!=null;n=n.nextSibling){var s=n.nodeType;if(s===1||s===3)break;if(s===8){if(s=n.data,s==="$"||s==="$!"||s==="$?"||s==="F!"||s==="F")break;if(s==="/$")return null}}return n}var yl=null;function ca(n){n=n.previousSibling;for(var s=0;n;){if(n.nodeType===8){var l=n.data;if(l==="$"||l==="$!"||l==="$?"){if(s===0)return n;s--}else l==="/$"&&s++}n=n.previousSibling}return null}function jt(n,s,l){switch(s=Rs(l),n){case"html":if(n=s.documentElement,!n)throw Error(c(452));return n;case"head":if(n=s.head,!n)throw Error(c(453));return n;case"body":if(n=s.body,!n)throw Error(c(454));return n;default:throw Error(c(451))}}function qa(n){for(var s=n.attributes;s.length;)n.removeAttributeNode(s[0]);Pt(n)}var Ri=new Map,ba=new Set;function ag(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Mr=L.d;L.d={f:sg,r:og,D:Ar,C:rg,L:bl,m:va,X:vl,S:Ya,M:s0};function sg(){var n=Mr.f(),s=vc();return n||s}function og(n){var s=Ct(n);s!==null&&s.tag===5&&s.type==="form"?vu(s):Mr.r(n)}var ua=typeof document>"u"?null:document;function io(n,s,l){var h=ua;if(h&&typeof s=="string"&&s){var b=La(s);b='link[rel="'+n+'"][href="'+b+'"]',typeof l=="string"&&(b+='[crossorigin="'+l+'"]'),ba.has(b)||(ba.add(b),n={rel:n,crossOrigin:l,href:s},h.querySelector(b)===null&&(s=h.createElement("link"),en(s,"link",n),wt(s),h.head.appendChild(s)))}}function Ar(n){Mr.D(n),io("dns-prefetch",n,null)}function rg(n,s){Mr.C(n,s),io("preconnect",n,s)}function bl(n,s,l){Mr.L(n,s,l);var h=ua;if(h&&n&&s){var b='link[rel="preload"][as="'+La(s)+'"]';s==="image"&&l&&l.imageSrcSet?(b+='[imagesrcset="'+La(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(b+='[imagesizes="'+La(l.imageSizes)+'"]')):b+='[href="'+La(n)+'"]';var M=b;switch(s){case"style":M=Pu(n);break;case"script":M=Ns(n)}Ri.has(M)||(n=j({rel:"preload",href:s==="image"&&l&&l.imageSrcSet?void 0:n,as:s},l),Ri.set(M,n),h.querySelector(b)!==null||s==="style"&&h.querySelector(Vu(M))||s==="script"&&h.querySelector(wc(M))||(s=h.createElement("link"),en(s,"link",n),wt(s),h.head.appendChild(s)))}}function va(n,s){Mr.m(n,s);var l=ua;if(l&&n){var h=s&&typeof s.as=="string"?s.as:"script",b='link[rel="modulepreload"][as="'+La(h)+'"][href="'+La(n)+'"]',M=b;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":M=Ns(n)}if(!Ri.has(M)&&(n=j({rel:"modulepreload",href:n},s),Ri.set(M,n),l.querySelector(b)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(wc(M)))return}h=l.createElement("link"),en(h,"link",n),wt(h),l.head.appendChild(h)}}}function Ya(n,s,l){Mr.S(n,s,l);var h=ua;if(h&&n){var b=vt(h).hoistableStyles,M=Pu(n);s=s||"default";var fe=b.get(M);if(!fe){var Se={loading:0,preload:null};if(fe=h.querySelector(Vu(M)))Se.loading=5;else{n=j({rel:"stylesheet",href:n,"data-precedence":s},l),(l=Ri.get(M))&&cg(n,l);var Oe=fe=h.createElement("link");wt(Oe),en(Oe,"link",n),Oe._p=new Promise(function(Ie,at){Oe.onload=Ie,Oe.onerror=at}),Oe.addEventListener("load",function(){Se.loading|=1}),Oe.addEventListener("error",function(){Se.loading|=2}),Se.loading|=4,lg(fe,s,h)}fe={type:"stylesheet",instance:fe,count:1,state:Se},b.set(M,fe)}}}function vl(n,s){Mr.X(n,s);var l=ua;if(l&&n){var h=vt(l).hoistableScripts,b=Ns(n),M=h.get(b);M||(M=l.querySelector(wc(b)),M||(n=j({src:n,async:!0},s),(s=Ri.get(b))&&ug(n,s),M=l.createElement("script"),wt(M),en(M,"link",n),l.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},h.set(b,M))}}function s0(n,s){Mr.M(n,s);var l=ua;if(l&&n){var h=vt(l).hoistableScripts,b=Ns(n),M=h.get(b);M||(M=l.querySelector(wc(b)),M||(n=j({src:n,async:!0,type:"module"},s),(s=Ri.get(b))&&ug(n,s),M=l.createElement("script"),wt(M),en(M,"link",n),l.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},h.set(b,M))}}function av(n,s,l,h){var b=(b=Z.current)?ag(b):null;if(!b)throw Error(c(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(s=Pu(l.href),l=vt(b).hoistableStyles,h=l.get(s),h||(h={type:"style",instance:null,count:0,state:null},l.set(s,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){n=Pu(l.href);var M=vt(b).hoistableStyles,fe=M.get(n);if(fe||(b=b.ownerDocument||b,fe={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},M.set(n,fe),(M=b.querySelector(Vu(n)))&&!M._p&&(fe.instance=M,fe.state.loading=5),Ri.has(n)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ri.set(n,l),M||sv(b,n,l,fe.state))),s&&h===null)throw Error(c(528,""));return fe}if(s&&h!==null)throw Error(c(529,""));return null;case"script":return s=l.async,l=l.src,typeof l=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Ns(l),l=vt(b).hoistableScripts,h=l.get(s),h||(h={type:"script",instance:null,count:0,state:null},l.set(s,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,n))}}function Pu(n){return'href="'+La(n)+'"'}function Vu(n){return'link[rel="stylesheet"]['+n+"]"}function Iu(n){return j({},n,{"data-precedence":n.precedence,precedence:null})}function sv(n,s,l,h){n.querySelector('link[rel="preload"][as="style"]['+s+"]")?h.loading=1:(s=n.createElement("link"),h.preload=s,s.addEventListener("load",function(){return h.loading|=1}),s.addEventListener("error",function(){return h.loading|=2}),en(s,"link",l),wt(s),n.head.appendChild(s))}function Ns(n){return'[src="'+La(n)+'"]'}function wc(n){return"script[async]"+n}function ov(n,s,l){if(s.count++,s.instance===null)switch(s.type){case"style":var h=n.querySelector('style[data-href~="'+La(l.href)+'"]');if(h)return s.instance=h,wt(h),h;var b=j({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return h=(n.ownerDocument||n).createElement("style"),wt(h),en(h,"style",b),lg(h,l.precedence,n),s.instance=h;case"stylesheet":b=Pu(l.href);var M=n.querySelector(Vu(b));if(M)return s.state.loading|=4,s.instance=M,wt(M),M;h=Iu(l),(b=Ri.get(b))&&cg(h,b),M=(n.ownerDocument||n).createElement("link"),wt(M);var fe=M;return fe._p=new Promise(function(Se,Oe){fe.onload=Se,fe.onerror=Oe}),en(M,"link",h),s.state.loading|=4,lg(M,l.precedence,n),s.instance=M;case"script":return M=Ns(l.src),(b=n.querySelector(wc(M)))?(s.instance=b,wt(b),b):(h=l,(b=Ri.get(M))&&(h=j({},l),ug(h,b)),n=n.ownerDocument||n,b=n.createElement("script"),wt(b),en(b,"link",h),n.head.appendChild(b),s.instance=b);case"void":return null;default:throw Error(c(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(h=s.instance,s.state.loading|=4,lg(h,l.precedence,n));return s.instance}function lg(n,s,l){for(var h=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=h.length?h[h.length-1]:null,M=b,fe=0;fe<h.length;fe++){var Se=h[fe];if(Se.dataset.precedence===s)M=Se;else if(M!==b)break}M?M.parentNode.insertBefore(n,M.nextSibling):(s=l.nodeType===9?l.head:l,s.insertBefore(n,s.firstChild))}function cg(n,s){n.crossOrigin==null&&(n.crossOrigin=s.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=s.referrerPolicy),n.title==null&&(n.title=s.title)}function ug(n,s){n.crossOrigin==null&&(n.crossOrigin=s.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=s.referrerPolicy),n.integrity==null&&(n.integrity=s.integrity)}var xl=null;function o0(n,s,l){if(xl===null){var h=new Map,b=xl=new Map;b.set(l,h)}else b=xl,h=b.get(l),h||(h=new Map,b.set(l,h));if(h.has(n))return h;for(h.set(n,null),l=l.getElementsByTagName(n),b=0;b<l.length;b++){var M=l[b];if(!(M[yt]||M[bt]||n==="link"&&M.getAttribute("rel")==="stylesheet")&&M.namespaceURI!=="http://www.w3.org/2000/svg"){var fe=M.getAttribute(s)||"";fe=n+fe;var Se=h.get(fe);Se?Se.push(M):h.set(fe,[M])}}return h}function r0(n,s,l){n=n.ownerDocument||n,n.head.insertBefore(l,s==="title"?n.querySelector("head > title"):null)}function rv(n,s,l){if(l===1||s.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return n=s.disabled,typeof s.precedence=="string"&&n==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function l0(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var qu=null;function lv(){}function cv(n,s,l){if(qu===null)throw Error(c(475));var h=qu;if(s.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var b=Pu(l.href),M=n.querySelector(Vu(b));if(M){n=M._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(h.count++,h=Uh.bind(h),n.then(h,h)),s.state.loading|=4,s.instance=M,wt(M);return}M=n.ownerDocument||n,l=Iu(l),(b=Ri.get(b))&&cg(l,b),M=M.createElement("link"),wt(M);var fe=M;fe._p=new Promise(function(Se,Oe){fe.onload=Se,fe.onerror=Oe}),en(M,"link",l),s.instance=M}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(s,n),(n=s.state.preload)&&(s.state.loading&3)===0&&(h.count++,s=Uh.bind(h),n.addEventListener("load",s),n.addEventListener("error",s))}}function c0(){if(qu===null)throw Error(c(475));var n=qu;return n.stylesheets&&n.count===0&&Hh(n,n.stylesheets),0<n.count?function(s){var l=setTimeout(function(){if(n.stylesheets&&Hh(n,n.stylesheets),n.unsuspend){var h=n.unsuspend;n.unsuspend=null,h()}},6e4);return n.unsuspend=s,function(){n.unsuspend=null,clearTimeout(l)}}:null}function Uh(){if(this.count--,this.count===0){if(this.stylesheets)Hh(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Yu=null;function Hh(n,s){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Yu=new Map,s.forEach(hs,n),Yu=null,Uh.call(n))}function hs(n,s){if(!(s.state.loading&4)){var l=Yu.get(n);if(l)var h=l.get(null);else{l=new Map,Yu.set(n,l);for(var b=n.querySelectorAll("link[data-precedence],style[data-precedence]"),M=0;M<b.length;M++){var fe=b[M];(fe.nodeName==="LINK"||fe.getAttribute("media")!=="not all")&&(l.set(fe.dataset.precedence,fe),h=fe)}h&&l.set(null,h)}b=s.instance,fe=b.getAttribute("data-precedence"),M=l.get(fe)||h,M===h&&l.set(null,b),l.set(fe,b),this.count++,h=Uh.bind(this),b.addEventListener("load",h),b.addEventListener("error",h),M?M.parentNode.insertBefore(b,M.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(b,n.firstChild)),s.state.loading|=4}}var Fa={$$typeof:P,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function r_(n,s,l,h,b,M,fe,Se){this.tag=1,this.containerInfo=n,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=Fe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fe(0),this.hiddenUpdates=Fe(null),this.identifierPrefix=h,this.onUncaughtError=b,this.onCaughtError=M,this.onRecoverableError=fe,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Se,this.incompleteTransitions=new Map}function u0(n,s,l,h,b,M,fe,Se,Oe,Ie,at,dt){return n=new r_(n,s,l,fe,Se,Oe,Ie,dt),s=1,M===!0&&(s|=24),M=za(3,null,null,s),n.current=M,M.stateNode=n,s=pu(),s.refCount++,n.pooledCache=s,s.refCount++,M.memoizedState={element:h,isDehydrated:l,cache:s},tp(M),n}function d0(n){return n?(n=ou,n):ou}function h0(n,s,l,h,b,M){b=d0(b),h.context===null?h.context=b:h.pendingContext=b,h=Ua(s),h.payload={element:l},M=M===void 0?null:M,M!==null&&(h.callback=M),l=ko(n,h,s),l!==null&&(us(l,n,s),ic(l,n,s))}function f0(n,s){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<s?l:s}}function dg(n,s){f0(n,s),(n=n.alternate)&&f0(n,s)}function p0(n){if(n.tag===13){var s=vo(n,67108864);s!==null&&us(s,n,67108864),dg(n,67108864)}}var $h=!0;function uv(n,s,l,h){var b=A.T;A.T=null;var M=L.p;try{L.p=2,g0(n,s,l,h)}finally{L.p=M,A.T=b}}function dv(n,s,l,h){var b=A.T;A.T=null;var M=L.p;try{L.p=8,g0(n,s,l,h)}finally{L.p=M,A.T=b}}function g0(n,s,l,h){if($h){var b=hg(h);if(b===null)Ls(n,s,h,fg,l),kc(n,h);else if(fv(b,n,s,l,h))h.stopPropagation();else if(kc(n,h),s&4&&-1<hv.indexOf(n)){for(;b!==null;){var M=Ct(b);if(M!==null)switch(M.tag){case 3:if(M=M.stateNode,M.current.memoizedState.isDehydrated){var fe=Je(M.pendingLanes);if(fe!==0){var Se=M;for(Se.pendingLanes|=2,Se.entangledLanes|=2;fe;){var Oe=1<<31-Ae(fe);Se.entanglements[1]|=Oe,fe&=~Oe}Ia(M),(Zn&6)===0&&(Vp=ge()+500,Mh(0))}}break;case 13:Se=vo(M,2),Se!==null&&us(Se,M,2),vc(),dg(M,2)}if(M=hg(h),M===null&&Ls(n,s,h,fg,l),M===b)break;b=M}b!==null&&h.stopPropagation()}else Ls(n,s,h,null,l)}}function hg(n){return n=Of(n),m0(n)}var fg=null;function m0(n){if(fg=null,n=At(n),n!==null){var s=f(n);if(s===null)n=null;else{var l=s.tag;if(l===13){if(n=y(s),n!==null)return n;n=null}else if(l===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;n=null}else s!==n&&(n=null)}}return fg=n,null}function y0(n){switch(n){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(ve()){case _e:return 2;case we:return 8;case Ee:case Re:return 32;case be:return 268435456;default:return 32}default:return 32}}var Fu=!1,Po=null,Er=null,Dr=null,Gh=new Map,Ph=new Map,_l=[],hv="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 kc(n,s){switch(n){case"focusin":case"focusout":Po=null;break;case"dragenter":case"dragleave":Er=null;break;case"mouseover":case"mouseout":Dr=null;break;case"pointerover":case"pointerout":Gh.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ph.delete(s.pointerId)}}function Tc(n,s,l,h,b,M){return n===null||n.nativeEvent!==M?(n={blockedOn:s,domEventName:l,eventSystemFlags:h,nativeEvent:M,targetContainers:[b]},s!==null&&(s=Ct(s),s!==null&&p0(s)),n):(n.eventSystemFlags|=h,s=n.targetContainers,b!==null&&s.indexOf(b)===-1&&s.push(b),n)}function fv(n,s,l,h,b){switch(s){case"focusin":return Po=Tc(Po,n,s,l,h,b),!0;case"dragenter":return Er=Tc(Er,n,s,l,h,b),!0;case"mouseover":return Dr=Tc(Dr,n,s,l,h,b),!0;case"pointerover":var M=b.pointerId;return Gh.set(M,Tc(Gh.get(M)||null,n,s,l,h,b)),!0;case"gotpointercapture":return M=b.pointerId,Ph.set(M,Tc(Ph.get(M)||null,n,s,l,h,b)),!0}return!1}function b0(n){var s=At(n.target);if(s!==null){var l=f(s);if(l!==null){if(s=l.tag,s===13){if(s=y(l),s!==null){n.blockedOn=s,mt(n.priority,function(){if(l.tag===13){var h=cs();h=Vt(h);var b=vo(l,h);b!==null&&us(b,l,h),dg(l,h)}});return}}else if(s===3&&l.stateNode.current.memoizedState.isDehydrated){n.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Vh(n){if(n.blockedOn!==null)return!1;for(var s=n.targetContainers;0<s.length;){var l=hg(n.nativeEvent);if(l===null){l=n.nativeEvent;var h=new l.constructor(l.type,l);Gl=h,l.target.dispatchEvent(h),Gl=null}else return s=Ct(l),s!==null&&p0(s),n.blockedOn=l,!1;s.shift()}return!0}function Ih(n,s,l){Vh(n)&&l.delete(s)}function Xu(){Fu=!1,Po!==null&&Vh(Po)&&(Po=null),Er!==null&&Vh(Er)&&(Er=null),Dr!==null&&Vh(Dr)&&(Dr=null),Gh.forEach(Ih),Ph.forEach(Ih)}function pg(n,s){n.blockedOn===s&&(n.blockedOn=null,Fu||(Fu=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Xu)))}var Mc=null;function v0(n){Mc!==n&&(Mc=n,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){Mc===n&&(Mc=null);for(var s=0;s<n.length;s+=3){var l=n[s],h=n[s+1],b=n[s+2];if(typeof h!="function"){if(m0(h||l)===null)continue;break}var M=Ct(l);M!==null&&(n.splice(s,3),s-=3,_p(M,{pending:!0,data:b,method:l.method,action:h},h,b))}}))}function Vo(n){function s(Oe){return pg(Oe,n)}Po!==null&&pg(Po,n),Er!==null&&pg(Er,n),Dr!==null&&pg(Dr,n),Gh.forEach(s),Ph.forEach(s);for(var l=0;l<_l.length;l++){var h=_l[l];h.blockedOn===n&&(h.blockedOn=null)}for(;0<_l.length&&(l=_l[0],l.blockedOn===null);)b0(l),l.blockedOn===null&&_l.shift();if(l=(n.ownerDocument||n).$$reactFormReplay,l!=null)for(h=0;h<l.length;h+=3){var b=l[h],M=l[h+1],fe=b[St]||null;if(typeof M=="function")fe||v0(l);else if(fe){var Se=null;if(M&&M.hasAttribute("formAction")){if(b=M,fe=M[St]||null)Se=fe.formAction;else if(m0(b)!==null)continue}else Se=fe.action;typeof Se=="function"?l[h+1]=Se:(l.splice(h,3),h-=3),v0(l)}}}function x0(n){this._internalRoot=n}gg.prototype.render=x0.prototype.render=function(n){var s=this._internalRoot;if(s===null)throw Error(c(409));var l=s.current,h=cs();h0(l,h,n,s,null,null)},gg.prototype.unmount=x0.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var s=n.containerInfo;h0(n.current,2,null,n,null,null),vc(),s[Et]=null}};function gg(n){this._internalRoot=n}gg.prototype.unstable_scheduleHydration=function(n){if(n){var s=_t();n={blockedOn:null,target:n,priority:s};for(var l=0;l<_l.length&&s!==0&&s<_l[l].priority;l++);_l.splice(l,0,n),l===0&&b0(n)}};var _0=i.version;if(_0!=="19.1.0")throw Error(c(527,_0,"19.1.0"));L.findDOMNode=function(n){var s=n._reactInternals;if(s===void 0)throw typeof n.render=="function"?Error(c(188)):(n=Object.keys(n).join(","),Error(c(268,n)));return n=v(s),n=n!==null?S(n):null,n=n===null?null:n.stateNode,n};var Aa={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var qh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qh.isDisabled&&qh.supportsFiber)try{xe=qh.inject(Aa),Te=qh}catch{}}return mm.createRoot=function(n,s){if(!d(n))throw Error(c(299));var l=!1,h="",b=Su,M=by,fe=mh,Se=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(b=s.onUncaughtError),s.onCaughtError!==void 0&&(M=s.onCaughtError),s.onRecoverableError!==void 0&&(fe=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(Se=s.unstable_transitionCallbacks)),s=u0(n,1,!1,null,null,l,h,b,M,fe,Se,null),n[Et]=s.current,n0(n),new x0(s)},mm.hydrateRoot=function(n,s,l){if(!d(n))throw Error(c(299));var h=!1,b="",M=Su,fe=by,Se=mh,Oe=null,Ie=null;return l!=null&&(l.unstable_strictMode===!0&&(h=!0),l.identifierPrefix!==void 0&&(b=l.identifierPrefix),l.onUncaughtError!==void 0&&(M=l.onUncaughtError),l.onCaughtError!==void 0&&(fe=l.onCaughtError),l.onRecoverableError!==void 0&&(Se=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(Oe=l.unstable_transitionCallbacks),l.formState!==void 0&&(Ie=l.formState)),s=u0(n,1,!0,s,l??null,h,b,M,fe,Se,Oe,Ie),s.context=d0(null),l=s.current,h=cs(),h=Vt(h),b=Ua(h),b.callback=null,ko(l,b,h),l=h,s.current.lanes=l,ft(s,l),Ia(s),n[Et]=s.current,n0(n),new gg(s)},mm.version="19.1.0",mm}var ym={};/**
|
|
552
552
|
* @license React
|
|
553
553
|
* react-dom-client.development.js
|
|
554
554
|
*
|
|
@@ -556,7 +556,7 @@ Error generating stack: `+l.message+`
|
|
|
556
556
|
*
|
|
557
557
|
* This source code is licensed under the MIT license found in the
|
|
558
558
|
* LICENSE file in the root directory of this source tree.
|
|
559
|
-
*/var H6;function H8(){return H6||(H6=1,process.env.NODE_ENV!=="production"&&function(){function o(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function i(e,t,a,u){if(a>=t.length)return u;var p=t[a],m=rn(e)?e.slice():xn({},e);return m[p]=i(e[p],t,a+1,u),m}function r(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var u=0;u<a.length-1;u++)if(t[u]!==a[u]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return c(e,t,a,0)}}function c(e,t,a,u){var p=t[u],m=rn(e)?e.slice():xn({},e);return u+1===t.length?(m[a[u]]=m[p],rn(m)?m.splice(p,1):delete m[p]):m[p]=c(e[p],t,a,u+1),m}function d(e,t,a){var u=t[a],p=rn(e)?e.slice():xn({},e);return a+1===t.length?(rn(p)?p.splice(u,1):delete p[u],p):(p[u]=d(e[u],t,a+1),p)}function f(){return!1}function y(){return null}function x(){}function v(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function S(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function j(){}function B(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function ee(e,t,a,u){return new $d(e,t,a,u)}function ne(e,t){e.context===Zu&&(Jn(e.current,2,t,e,null,null),fc())}function O(e,t){if(qo!==null){var a=t.staleFamilies;t=t.updatedFamilies,Cu(),Hd(e.current,t,a),fc()}}function V(e){qo=e}function ae(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ie(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function U(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function P(e){if(ie(e)!==e)throw Error("Unable to find node on an unmounted component.")}function X(e){var t=e.alternate;if(!t){if(t=ie(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,u=t;;){var p=a.return;if(p===null)break;var m=p.alternate;if(m===null){if(u=p.return,u!==null){a=u;continue}break}if(p.child===m.child){for(m=p.child;m;){if(m===a)return P(p),e;if(m===u)return P(p),t;m=m.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==u.return)a=p,u=m;else{for(var F=!1,de=p.child;de;){if(de===a){F=!0,a=p,u=m;break}if(de===u){F=!0,u=p,a=m;break}de=de.sibling}if(!F){for(de=m.child;de;){if(de===a){F=!0,a=m,u=p;break}if(de===u){F=!0,u=m,a=p;break}de=de.sibling}if(!F)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==u)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function Q(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Q(e),t!==null)return t;e=e.sibling}return null}function $(e){return e===null||typeof e!="object"?null:(e=a0&&e[a0]||e["@@iterator"],typeof e=="function"?e:null)}function I(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===tg?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case hn:return"Fragment";case Bu:return"Profiler";case zu:return"StrictMode";case Uu:return"Suspense";case gl:return"SuspenseList";case i0:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Cc:return"Portal";case Ls:return(e.displayName||"Context")+".Provider";case eg:return(e._context.displayName||"Context")+".Consumer";case wr:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Lh:return t=e.displayName||null,t!==null?t:I(e.type)||"Memo";case ds:t=e._payload,e=e._init;try{return I(e(t))}catch{}}return null}function he(e){return typeof e.tag=="number"?oe(e):typeof e.name=="string"?e.name:null}function oe(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return(t.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return I(t);case 8:return t===zu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name=="string")return t[a].name}if(e.return!==null)return oe(e.return)}return null}function te(e){return{current:e}}function z(e,t){0>Rs?console.error("Unexpected pop."):(t!==Nh[Rs]&&console.error("Unexpected Fiber popped."),e.current=Rh[Rs],Rh[Rs]=null,Nh[Rs]=null,Rs--)}function W(e,t,a){Rs++,Rh[Rs]=e.current,Nh[Rs]=a,e.current=t}function G(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function T(e,t){W($o,t,e),W(Hu,e,e),W(kr,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?Qn(t):Bc;break;default:if(a=t.tagName,t=t.namespaceURI)t=Qn(t),t=Pa(t,a);else switch(a){case"svg":t=Vg;break;case"math":t=Vv;break;default:t=Bc}}a=a.toLowerCase(),a=bm(null,a),a={context:t,ancestorInfo:a},z(kr,e),W(kr,a,e)}function _(e){z(kr,e),z(Hu,e),z($o,e)}function A(){return G(kr.current)}function L(e){e.memoizedState!==null&&W($u,e,e);var t=G(kr.current),a=e.type,u=Pa(t.context,a);a=bm(t.ancestorInfo,a),u={context:u,ancestorInfo:a},t!==u&&(W(Hu,e,e),W(kr,u,e))}function J(e){Hu.current===e&&(z(kr,e),z(Hu,e)),$u.current===e&&(z($u,e),K0._currentValue=uf)}function se(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function R(e){try{return ue(e),!1}catch{return!0}}function ue(e){return""+e}function ye(e,t){if(R(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,se(e)),ue(e)}function g(e,t){if(R(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,se(e)),ue(e)}function C(e){if(R(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",se(e)),ue(e)}function k(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{yl=t.inject(e),ca=t}catch(a){console.error("React instrumentation encountered an error: %s.",a)}return!!t.checkDCE}function Z(e){if(typeof o_=="function"&&no(e),ca&&typeof ca.setStrictMode=="function")try{ca.setStrictMode(yl,e)}catch(t){qa||(qa=!0,console.error("React instrumentation encountered an error: %s",t))}}function q(e){jt=e}function w(){jt!==null&&typeof jt.markCommitStopped=="function"&&jt.markCommitStopped()}function E(e){jt!==null&&typeof jt.markComponentRenderStarted=="function"&&jt.markComponentRenderStarted(e)}function N(){jt!==null&&typeof jt.markComponentRenderStopped=="function"&&jt.markComponentRenderStopped()}function ce(e){jt!==null&&typeof jt.markRenderStarted=="function"&&jt.markRenderStarted(e)}function D(){jt!==null&&typeof jt.markRenderStopped=="function"&&jt.markRenderStopped()}function H(e,t){jt!==null&&typeof jt.markStateUpdateScheduled=="function"&&jt.markStateUpdateScheduled(e,t)}function K(e){return e>>>=0,e===0?32:31-(ag(e)/Mr|0)|0}function re(e){if(e&1)return"SyncHydrationLane";if(e&2)return"Sync";if(e&4)return"InputContinuousHydration";if(e&8)return"InputContinuous";if(e&16)return"DefaultHydration";if(e&32)return"Default";if(e&128)return"TransitionHydration";if(e&4194048)return"Transition";if(e&62914560)return"Retry";if(e&67108864)return"SelectiveHydration";if(e&134217728)return"IdleHydration";if(e&268435456)return"Idle";if(e&536870912)return"Offscreen";if(e&1073741824)return"Deferred"}function le(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function ge(e,t,a){var u=e.pendingLanes;if(u===0)return 0;var p=0,m=e.suspendedLanes,F=e.pingedLanes;e=e.warmLanes;var de=u&134217727;return de!==0?(u=de&~m,u!==0?p=le(u):(F&=de,F!==0?p=le(F):a||(a=de&~e,a!==0&&(p=le(a))))):(de=u&~m,de!==0?p=le(de):F!==0?p=le(F):a||(a=u&~e,a!==0&&(p=le(a)))),p===0?0:t!==0&&t!==p&&(t&m)===0&&(m=p&-p,a=t&-t,m>=a||m===32&&(a&4194048)!==0)?t:p}function ve(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function _e(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 console.error("Should have found matching lanes. This is a bug in React."),-1}}function we(){var e=sg;return sg<<=1,(sg&4194048)===0&&(sg=256),e}function Ee(){var e=og;return og<<=1,(og&62914560)===0&&(og=4194304),e}function Re(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function be(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function me(e,t,a,u,p,m){var F=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var de=e.entanglements,Ce=e.expirationTimes,Me=e.hiddenUpdates;for(a=F&~a;0<a;){var Ze=31-ba(a),et=1<<Ze;de[Ze]=0,Ce[Ze]=-1;var Ye=Me[Ze];if(Ye!==null)for(Me[Ze]=null,Ze=0;Ze<Ye.length;Ze++){var tt=Ye[Ze];tt!==null&&(tt.lane&=-536870913)}a&=~et}u!==0&&pe(e,u,0),m!==0&&p===0&&e.tag!==0&&(e.suspendedLanes|=m&~(F&~t))}function pe(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var u=31-ba(t);e.entangledLanes|=t,e.entanglements[u]=e.entanglements[u]|1073741824|a&4194090}function xe(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var u=31-ba(a),p=1<<u;p&t|e[u]&t&&(e[u]|=t),a&=~p}}function Te(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ke(e,t,a){if(Ri)for(e=e.pendingUpdatersLaneMap;0<a;){var u=31-ba(a),p=1<<u;e[u].add(t),a&=~p}}function Ae(e,t){if(Ri)for(var a=e.pendingUpdatersLaneMap,u=e.memoizedUpdaters;0<t;){var p=31-ba(t);e=1<<p,p=a[p],0<p.size&&(p.forEach(function(m){var F=m.alternate;F!==null&&u.has(F)||u.add(m)}),p.clear()),t&=~e}}function De(e){return e&=-e,ua<e?io<e?(e&134217727)!==0?Ar:rg:io:ua}function ze(){var e=en.p;return e!==0?e:(e=window.event,e===void 0?Ar:Jp(e.type))}function $e(e,t){var a=en.p;try{return en.p=e,t()}finally{en.p=a}}function Ge(e){delete e[va],delete e[Ya],delete e[s0],delete e[av],delete e[Pu]}function qe(e){var t=e[va];if(t)return t;for(var a=e.parentNode;a;){if(t=a[vl]||a[va]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=ju(e);e!==null;){if(a=e[va])return a;e=ju(e)}return t}e=a,a=e.parentNode}return null}function Je(e){if(e=e[va]||e[vl]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function rt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function st(e){var t=e[Vu];return t||(t=e[Vu]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ne(e){e[Iu]=!0}function ut(e,t){lt(e,t),lt(e+"Capture",t)}function lt(e,t){Ns[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ns[e]=t;var a=e.toLowerCase();for(wc[a]=e,e==="onDoubleClick"&&(wc.ondblclick=e),e=0;e<t.length;e++)sv.add(t[e])}function Fe(e,t){ov[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function ft(e){return Tr.call(ug,e)?!0:Tr.call(cg,e)?!1:lg.test(e)?ug[e]=!0:(cg[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function ot(e,t,a){if(ft(t)){if(!e.hasAttribute(t)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}return e=e.getAttribute(t),e===""&&a===!0?!0:(ye(a,t),e===""+a?a:e)}}function Ot(e,t,a){if(ft(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var u=t.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(t);return}}ye(a,t),e.setAttribute(t,""+a)}}function Bt(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}ye(a,t),e.setAttribute(t,""+a)}}function Vt(e,t,a,u){if(u===null)e.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}ye(u,a),e.setAttributeNS(t,a,""+u)}}function It(){}function _t(){if(xl===0){o0=console.log,r0=console.info,rv=console.warn,l0=console.error,qu=console.group,lv=console.groupCollapsed,cv=console.groupEnd;var e={configurable:!0,enumerable:!0,value:It,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}xl++}function mt(){if(xl--,xl===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:xn({},e,{value:o0}),info:xn({},e,{value:r0}),warn:xn({},e,{value:rv}),error:xn({},e,{value:l0}),group:xn({},e,{value:qu}),groupCollapsed:xn({},e,{value:lv}),groupEnd:xn({},e,{value:cv})})}0>xl&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ht(e){if(c0===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);c0=t&&t[1]||"",Uh=-1<a.stack.indexOf(`
|
|
559
|
+
*/var H6;function H8(){return H6||(H6=1,process.env.NODE_ENV!=="production"&&function(){function o(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function i(e,t,a,u){if(a>=t.length)return u;var p=t[a],m=rn(e)?e.slice():xn({},e);return m[p]=i(e[p],t,a+1,u),m}function r(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var u=0;u<a.length-1;u++)if(t[u]!==a[u]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return c(e,t,a,0)}}function c(e,t,a,u){var p=t[u],m=rn(e)?e.slice():xn({},e);return u+1===t.length?(m[a[u]]=m[p],rn(m)?m.splice(p,1):delete m[p]):m[p]=c(e[p],t,a,u+1),m}function d(e,t,a){var u=t[a],p=rn(e)?e.slice():xn({},e);return a+1===t.length?(rn(p)?p.splice(u,1):delete p[u],p):(p[u]=d(e[u],t,a+1),p)}function f(){return!1}function y(){return null}function x(){}function v(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function S(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function j(){}function B(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function ee(e,t,a,u){return new $d(e,t,a,u)}function ne(e,t){e.context===Zu&&(Jn(e.current,2,t,e,null,null),fc())}function O(e,t){if(qo!==null){var a=t.staleFamilies;t=t.updatedFamilies,Cu(),Hd(e.current,t,a),fc()}}function V(e){qo=e}function ae(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ie(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function U(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function P(e){if(ie(e)!==e)throw Error("Unable to find node on an unmounted component.")}function X(e){var t=e.alternate;if(!t){if(t=ie(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,u=t;;){var p=a.return;if(p===null)break;var m=p.alternate;if(m===null){if(u=p.return,u!==null){a=u;continue}break}if(p.child===m.child){for(m=p.child;m;){if(m===a)return P(p),e;if(m===u)return P(p),t;m=m.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==u.return)a=p,u=m;else{for(var F=!1,de=p.child;de;){if(de===a){F=!0,a=p,u=m;break}if(de===u){F=!0,u=p,a=m;break}de=de.sibling}if(!F){for(de=m.child;de;){if(de===a){F=!0,a=m,u=p;break}if(de===u){F=!0,u=m,a=p;break}de=de.sibling}if(!F)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==u)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function Q(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Q(e),t!==null)return t;e=e.sibling}return null}function $(e){return e===null||typeof e!="object"?null:(e=a0&&e[a0]||e["@@iterator"],typeof e=="function"?e:null)}function I(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===tg?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fn:return"Fragment";case Bu:return"Profiler";case zu:return"StrictMode";case Uu:return"Suspense";case gl:return"SuspenseList";case i0:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Cc:return"Portal";case Ls:return(e.displayName||"Context")+".Provider";case eg:return(e._context.displayName||"Context")+".Consumer";case wr:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Lh:return t=e.displayName||null,t!==null?t:I(e.type)||"Memo";case ds:t=e._payload,e=e._init;try{return I(e(t))}catch{}}return null}function he(e){return typeof e.tag=="number"?oe(e):typeof e.name=="string"?e.name:null}function oe(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return(t.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return I(t);case 8:return t===zu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name=="string")return t[a].name}if(e.return!==null)return oe(e.return)}return null}function te(e){return{current:e}}function z(e,t){0>Rs?console.error("Unexpected pop."):(t!==Nh[Rs]&&console.error("Unexpected Fiber popped."),e.current=Rh[Rs],Rh[Rs]=null,Nh[Rs]=null,Rs--)}function W(e,t,a){Rs++,Rh[Rs]=e.current,Nh[Rs]=a,e.current=t}function G(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function T(e,t){W($o,t,e),W(Hu,e,e),W(kr,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?Qn(t):Bc;break;default:if(a=t.tagName,t=t.namespaceURI)t=Qn(t),t=Pa(t,a);else switch(a){case"svg":t=Vg;break;case"math":t=Vv;break;default:t=Bc}}a=a.toLowerCase(),a=bm(null,a),a={context:t,ancestorInfo:a},z(kr,e),W(kr,a,e)}function _(e){z(kr,e),z(Hu,e),z($o,e)}function A(){return G(kr.current)}function L(e){e.memoizedState!==null&&W($u,e,e);var t=G(kr.current),a=e.type,u=Pa(t.context,a);a=bm(t.ancestorInfo,a),u={context:u,ancestorInfo:a},t!==u&&(W(Hu,e,e),W(kr,u,e))}function J(e){Hu.current===e&&(z(kr,e),z(Hu,e)),$u.current===e&&(z($u,e),K0._currentValue=uf)}function se(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function R(e){try{return ue(e),!1}catch{return!0}}function ue(e){return""+e}function ye(e,t){if(R(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,se(e)),ue(e)}function g(e,t){if(R(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,se(e)),ue(e)}function C(e){if(R(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",se(e)),ue(e)}function k(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{yl=t.inject(e),ca=t}catch(a){console.error("React instrumentation encountered an error: %s.",a)}return!!t.checkDCE}function Z(e){if(typeof o_=="function"&&no(e),ca&&typeof ca.setStrictMode=="function")try{ca.setStrictMode(yl,e)}catch(t){qa||(qa=!0,console.error("React instrumentation encountered an error: %s",t))}}function q(e){jt=e}function w(){jt!==null&&typeof jt.markCommitStopped=="function"&&jt.markCommitStopped()}function E(e){jt!==null&&typeof jt.markComponentRenderStarted=="function"&&jt.markComponentRenderStarted(e)}function N(){jt!==null&&typeof jt.markComponentRenderStopped=="function"&&jt.markComponentRenderStopped()}function ce(e){jt!==null&&typeof jt.markRenderStarted=="function"&&jt.markRenderStarted(e)}function D(){jt!==null&&typeof jt.markRenderStopped=="function"&&jt.markRenderStopped()}function H(e,t){jt!==null&&typeof jt.markStateUpdateScheduled=="function"&&jt.markStateUpdateScheduled(e,t)}function K(e){return e>>>=0,e===0?32:31-(ag(e)/Mr|0)|0}function re(e){if(e&1)return"SyncHydrationLane";if(e&2)return"Sync";if(e&4)return"InputContinuousHydration";if(e&8)return"InputContinuous";if(e&16)return"DefaultHydration";if(e&32)return"Default";if(e&128)return"TransitionHydration";if(e&4194048)return"Transition";if(e&62914560)return"Retry";if(e&67108864)return"SelectiveHydration";if(e&134217728)return"IdleHydration";if(e&268435456)return"Idle";if(e&536870912)return"Offscreen";if(e&1073741824)return"Deferred"}function le(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function ge(e,t,a){var u=e.pendingLanes;if(u===0)return 0;var p=0,m=e.suspendedLanes,F=e.pingedLanes;e=e.warmLanes;var de=u&134217727;return de!==0?(u=de&~m,u!==0?p=le(u):(F&=de,F!==0?p=le(F):a||(a=de&~e,a!==0&&(p=le(a))))):(de=u&~m,de!==0?p=le(de):F!==0?p=le(F):a||(a=u&~e,a!==0&&(p=le(a)))),p===0?0:t!==0&&t!==p&&(t&m)===0&&(m=p&-p,a=t&-t,m>=a||m===32&&(a&4194048)!==0)?t:p}function ve(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function _e(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 console.error("Should have found matching lanes. This is a bug in React."),-1}}function we(){var e=sg;return sg<<=1,(sg&4194048)===0&&(sg=256),e}function Ee(){var e=og;return og<<=1,(og&62914560)===0&&(og=4194304),e}function Re(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function be(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function me(e,t,a,u,p,m){var F=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var de=e.entanglements,Ce=e.expirationTimes,Me=e.hiddenUpdates;for(a=F&~a;0<a;){var Ze=31-ba(a),et=1<<Ze;de[Ze]=0,Ce[Ze]=-1;var Ye=Me[Ze];if(Ye!==null)for(Me[Ze]=null,Ze=0;Ze<Ye.length;Ze++){var tt=Ye[Ze];tt!==null&&(tt.lane&=-536870913)}a&=~et}u!==0&&pe(e,u,0),m!==0&&p===0&&e.tag!==0&&(e.suspendedLanes|=m&~(F&~t))}function pe(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var u=31-ba(t);e.entangledLanes|=t,e.entanglements[u]=e.entanglements[u]|1073741824|a&4194090}function xe(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var u=31-ba(a),p=1<<u;p&t|e[u]&t&&(e[u]|=t),a&=~p}}function Te(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ke(e,t,a){if(Ri)for(e=e.pendingUpdatersLaneMap;0<a;){var u=31-ba(a),p=1<<u;e[u].add(t),a&=~p}}function Ae(e,t){if(Ri)for(var a=e.pendingUpdatersLaneMap,u=e.memoizedUpdaters;0<t;){var p=31-ba(t);e=1<<p,p=a[p],0<p.size&&(p.forEach(function(m){var F=m.alternate;F!==null&&u.has(F)||u.add(m)}),p.clear()),t&=~e}}function De(e){return e&=-e,ua<e?io<e?(e&134217727)!==0?Ar:rg:io:ua}function ze(){var e=en.p;return e!==0?e:(e=window.event,e===void 0?Ar:Jp(e.type))}function $e(e,t){var a=en.p;try{return en.p=e,t()}finally{en.p=a}}function Ge(e){delete e[va],delete e[Ya],delete e[s0],delete e[av],delete e[Pu]}function qe(e){var t=e[va];if(t)return t;for(var a=e.parentNode;a;){if(t=a[vl]||a[va]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=ju(e);e!==null;){if(a=e[va])return a;e=ju(e)}return t}e=a,a=e.parentNode}return null}function Je(e){if(e=e[va]||e[vl]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function rt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function st(e){var t=e[Vu];return t||(t=e[Vu]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ne(e){e[Iu]=!0}function ut(e,t){lt(e,t),lt(e+"Capture",t)}function lt(e,t){Ns[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ns[e]=t;var a=e.toLowerCase();for(wc[a]=e,e==="onDoubleClick"&&(wc.ondblclick=e),e=0;e<t.length;e++)sv.add(t[e])}function Fe(e,t){ov[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function ft(e){return Tr.call(ug,e)?!0:Tr.call(cg,e)?!1:lg.test(e)?ug[e]=!0:(cg[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function ot(e,t,a){if(ft(t)){if(!e.hasAttribute(t)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}return e=e.getAttribute(t),e===""&&a===!0?!0:(ye(a,t),e===""+a?a:e)}}function Ot(e,t,a){if(ft(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var u=t.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(t);return}}ye(a,t),e.setAttribute(t,""+a)}}function Bt(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}ye(a,t),e.setAttribute(t,""+a)}}function Vt(e,t,a,u){if(u===null)e.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}ye(u,a),e.setAttributeNS(t,a,""+u)}}function It(){}function _t(){if(xl===0){o0=console.log,r0=console.info,rv=console.warn,l0=console.error,qu=console.group,lv=console.groupCollapsed,cv=console.groupEnd;var e={configurable:!0,enumerable:!0,value:It,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}xl++}function mt(){if(xl--,xl===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:xn({},e,{value:o0}),info:xn({},e,{value:r0}),warn:xn({},e,{value:rv}),error:xn({},e,{value:l0}),group:xn({},e,{value:qu}),groupCollapsed:xn({},e,{value:lv}),groupEnd:xn({},e,{value:cv})})}0>xl&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ht(e){if(c0===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);c0=t&&t[1]||"",Uh=-1<a.stack.indexOf(`
|
|
560
560
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
561
561
|
`+c0+e+Uh}function bt(e,t){if(!e||Yu)return"";var a=Hh.get(e);if(a!==void 0)return a;Yu=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var u=null;u=We.H,We.H=null,_t();try{var p={DetermineComponentFrameRoot:function(){try{if(t){var Ye=function(){throw Error()};if(Object.defineProperty(Ye.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ye,[])}catch($t){var tt=$t}Reflect.construct(e,[],Ye)}else{try{Ye.call()}catch($t){tt=$t}e.call(Ye.prototype)}}else{try{throw Error()}catch($t){tt=$t}(Ye=e())&&typeof Ye.catch=="function"&&Ye.catch(function(){})}}catch($t){if($t&&tt&&typeof $t.stack=="string")return[$t.stack,tt.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var F=p.DetermineComponentFrameRoot(),de=F[0],Ce=F[1];if(de&&Ce){var Me=de.split(`
|
|
562
562
|
`),Ze=Ce.split(`
|
|
@@ -570,9 +570,9 @@ Error generating stack: `+Ce.message+`
|
|
|
570
570
|
`+u))}else if(e.debugStack!=null){var p=e.debugStack;(e=e.owner)&&p&&(t+=`
|
|
571
571
|
`+St(p))}else break;var m=t}catch(F){m=`
|
|
572
572
|
Error generating stack: `+F.message+`
|
|
573
|
-
`+F.stack}return m}function yt(e,t,a,u,p,m,F){var de=hs;Pt(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,u,p,m,F)):t(a,u,p,m,F)}finally{Pt(de)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Pt(e){We.getCurrentStack=e===null?null:kn,Fa=!1,hs=e}function At(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return C(e),e;default:return""}}function Ct(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pt(e){var t=Ct(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);C(e[t]);var u=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var p=a.get,m=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return p.call(this)},set:function(F){C(F),u=""+F,m.call(this,F)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return u},setValue:function(F){C(F),u=""+F},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vt(e){e._valueTracker||(e._valueTracker=pt(e))}function wt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),u="";return e&&(u=Ct(e)?e.checked?"true":"false":e.value),e=u,e!==a?(t.setValue(e),!0):!1}function vn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function an(e){return e.replace(r_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ut(e,t){t.checked===void 0||t.defaultChecked===void 0||d0||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Ft()||"A component",t.type),d0=!0),t.value===void 0||t.defaultValue===void 0||u0||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Ft()||"A component",t.type),u0=!0)}function Rt(e,t,a,u,p,m,F,de){e.name="",F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?(ye(F,"type"),e.type=F):e.removeAttribute("type"),t!=null?F==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+At(t)):e.value!==""+At(t)&&(e.value=""+At(t)):F!=="submit"&&F!=="reset"||e.removeAttribute("value"),t!=null?sn(e,F,At(t)):a!=null?sn(e,F,At(a)):u!=null&&e.removeAttribute("value"),p==null&&m!=null&&(e.defaultChecked=!!m),p!=null&&(e.checked=p&&typeof p!="function"&&typeof p!="symbol"),de!=null&&typeof de!="function"&&typeof de!="symbol"&&typeof de!="boolean"?(ye(de,"name"),e.name=""+At(de)):e.removeAttribute("name")}function Qt(e,t,a,u,p,m,F,de){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(ye(m,"type"),e.type=m),t!=null||a!=null){if(!(m!=="submit"&&m!=="reset"||t!=null))return;a=a!=null?""+At(a):"",t=t!=null?""+At(t):a,de||t===e.value||(e.value=t),e.defaultValue=t}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=de?e.checked:!!u,e.defaultChecked=!!u,F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"&&(ye(F,"name"),e.name=F)}function sn(e,t,a){t==="number"&&vn(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Tn(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?Oh.Children.forEach(t.children,function(a){a==null||typeof a=="string"||typeof a=="number"||typeof a=="bigint"||f0||(f0=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||dg||(dg=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||h0||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),h0=!0)}function
|
|
573
|
+
`+F.stack}return m}function yt(e,t,a,u,p,m,F){var de=hs;Pt(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,u,p,m,F)):t(a,u,p,m,F)}finally{Pt(de)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Pt(e){We.getCurrentStack=e===null?null:kn,Fa=!1,hs=e}function At(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return C(e),e;default:return""}}function Ct(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pt(e){var t=Ct(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);C(e[t]);var u=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var p=a.get,m=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return p.call(this)},set:function(F){C(F),u=""+F,m.call(this,F)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return u},setValue:function(F){C(F),u=""+F},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vt(e){e._valueTracker||(e._valueTracker=pt(e))}function wt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),u="";return e&&(u=Ct(e)?e.checked?"true":"false":e.value),e=u,e!==a?(t.setValue(e),!0):!1}function vn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function an(e){return e.replace(r_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ut(e,t){t.checked===void 0||t.defaultChecked===void 0||d0||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Ft()||"A component",t.type),d0=!0),t.value===void 0||t.defaultValue===void 0||u0||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Ft()||"A component",t.type),u0=!0)}function Rt(e,t,a,u,p,m,F,de){e.name="",F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?(ye(F,"type"),e.type=F):e.removeAttribute("type"),t!=null?F==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+At(t)):e.value!==""+At(t)&&(e.value=""+At(t)):F!=="submit"&&F!=="reset"||e.removeAttribute("value"),t!=null?sn(e,F,At(t)):a!=null?sn(e,F,At(a)):u!=null&&e.removeAttribute("value"),p==null&&m!=null&&(e.defaultChecked=!!m),p!=null&&(e.checked=p&&typeof p!="function"&&typeof p!="symbol"),de!=null&&typeof de!="function"&&typeof de!="symbol"&&typeof de!="boolean"?(ye(de,"name"),e.name=""+At(de)):e.removeAttribute("name")}function Qt(e,t,a,u,p,m,F,de){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(ye(m,"type"),e.type=m),t!=null||a!=null){if(!(m!=="submit"&&m!=="reset"||t!=null))return;a=a!=null?""+At(a):"",t=t!=null?""+At(t):a,de||t===e.value||(e.value=t),e.defaultValue=t}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=de?e.checked:!!u,e.defaultChecked=!!u,F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"&&(ye(F,"name"),e.name=F)}function sn(e,t,a){t==="number"&&vn(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Tn(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?Oh.Children.forEach(t.children,function(a){a==null||typeof a=="string"||typeof a=="number"||typeof a=="bigint"||f0||(f0=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||dg||(dg=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||h0||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),h0=!0)}function un(){var e=Ft();return e?`
|
|
574
574
|
|
|
575
|
-
Check the render method of \``+e+"`.":""}function mn(e,t,a,u){if(e=e.options,t){t={};for(var p=0;p<a.length;p++)t["$"+a[p]]=!0;for(a=0;a<e.length;a++)p=t.hasOwnProperty("$"+e[a].value),e[a].selected!==p&&(e[a].selected=p),p&&u&&(e[a].defaultSelected=!0)}else{for(a=""+At(a),t=null,p=0;p<e.length;p++){if(e[p].value===a){e[p].selected=!0,u&&(e[p].defaultSelected=!0);return}t!==null||e[p].disabled||(t=e[p])}t!==null&&(t.selected=!0)}}function Wt(e,t){for(e=0;e<$h.length;e++){var a=$h[e];if(t[a]!=null){var u=rn(t[a]);t.multiple&&!u?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,
|
|
575
|
+
Check the render method of \``+e+"`.":""}function mn(e,t,a,u){if(e=e.options,t){t={};for(var p=0;p<a.length;p++)t["$"+a[p]]=!0;for(a=0;a<e.length;a++)p=t.hasOwnProperty("$"+e[a].value),e[a].selected!==p&&(e[a].selected=p),p&&u&&(e[a].defaultSelected=!0)}else{for(a=""+At(a),t=null,p=0;p<e.length;p++){if(e[p].value===a){e[p].selected=!0,u&&(e[p].defaultSelected=!0);return}t!==null||e[p].disabled||(t=e[p])}t!==null&&(t.selected=!0)}}function Wt(e,t){for(e=0;e<$h.length;e++){var a=$h[e];if(t[a]!=null){var u=rn(t[a]);t.multiple&&!u?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,un()):!t.multiple&&u&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,un())}}t.value===void 0||t.defaultValue===void 0||p0||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),p0=!0)}function Ht(e,t){t.value===void 0||t.defaultValue===void 0||uv||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Ft()||"A component"),uv=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function $n(e,t,a){if(t!=null&&(t=""+At(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+At(a):""}function ai(e,t,a,u){if(t==null){if(u!=null){if(a!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(rn(u)){if(1<u.length)throw Error("<textarea> can only have at most one child.");u=u[0]}a=u}a==null&&(a=""),t=a}a=At(t),e.defaultValue=a,u=e.textContent,u===a&&u!==""&&u!==null&&(e.value=u)}function si(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?si(e.children[0],t):e}function yn(e){return" "+" ".repeat(e)}function Fn(e){return"+ "+" ".repeat(e)}function Pi(e){return"- "+" ".repeat(e)}function ns(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function mi(e,t){return dv.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function is(e,t,a){var u=120-2*a;if(t===null)return Fn(a)+mi(e,u)+`
|
|
576
576
|
`;if(typeof t=="string"){for(var p=0;p<t.length&&p<e.length&&t.charCodeAt(p)===e.charCodeAt(p);p++);return p>u-8&&10<p&&(e="..."+e.slice(p-8),t="..."+t.slice(p-8)),Fn(a)+mi(e,u)+`
|
|
577
577
|
`+Pi(a)+mi(t,u)+`
|
|
578
578
|
`}return yn(a)+mi(e,u)+`
|
|
@@ -608,7 +608,7 @@ This will cause a hydration error.%s`,F,u,a,m)):console.error(`In HTML, %s canno
|
|
|
608
608
|
This will cause a hydration error.%s`,F,u,m),t&&(e=t.return,p===null||e===null||p===e&&e._debugOwner===t._debugOwner||yt(p,function(){console.error(`<%s> cannot contain a nested %s.
|
|
609
609
|
See this log for the ancestor stack trace.`,u,F)})),!1}function Ld(e,t,a){if(a||vm("#text",t,!1))return!0;if(a="#text|"+t,Fu[a])return!1;Fu[a]=!0;var u=(a=hs)?u1(a,t):null;return a=a!==null&&u!==null?Hl(u,a,a.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
610
610
|
This will cause a hydration error.%s`,t,a):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
611
|
-
This will cause a hydration error.%s`,t,a),!1}function $l(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function Ix(e){return e.replace(_l,function(t,a){return a.toUpperCase()})}function d1(e,t,a){var u=t.indexOf("--")===0;u||(-1<t.indexOf("-")?kc.hasOwnProperty(t)&&kc[t]||(kc[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,Ix(t.replace(Ph,"ms-")))):Gh.test(t)?kc.hasOwnProperty(t)&&kc[t]||(kc[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!hv.test(a)||Tc.hasOwnProperty(a)&&Tc[a]||(Tc[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(hv,""))),typeof a=="number"&&(isNaN(a)?fv||(fv=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||b0||(b0=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),a==null||typeof a=="boolean"||a===""?u?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":u?e.setProperty(t,a):typeof a!="number"||a===0||Vh.has(t)?t==="float"?e.cssFloat=a:(g(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function Rd(e,t,a){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,a!=null){if(t){var u={};if(a){for(var p in a)if(a.hasOwnProperty(p)&&!t.hasOwnProperty(p))for(var m=Po[p]||[p],F=0;F<m.length;F++)u[m[F]]=p}for(var de in t)if(t.hasOwnProperty(de)&&(!a||a[de]!==t[de]))for(p=Po[de]||[de],m=0;m<p.length;m++)u[p[m]]=de;de={};for(var Ce in t)for(p=Po[Ce]||[Ce],m=0;m<p.length;m++)de[p[m]]=Ce;Ce={};for(var Me in u)if(p=u[Me],(m=de[Me])&&p!==m&&(F=p+","+m,!Ce[F])){Ce[F]=!0,F=console;var Ze=t[p];F.error.call(F,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Ze==null||typeof Ze=="boolean"||Ze===""?"Removing":"Updating",p,m)}}for(var et in a)!a.hasOwnProperty(et)||t!=null&&t.hasOwnProperty(et)||(et.indexOf("--")===0?e.setProperty(et,""):et==="float"?e.cssFloat="":e[et]="");for(var Ye in t)Me=t[Ye],t.hasOwnProperty(Ye)&&a[Ye]!==Me&&d1(e,Ye,Me)}else for(u in t)t.hasOwnProperty(u)&&d1(e,u,t[u])}function Gl(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Of(e){return pg.get(e)||e}function Jc(e,t){if(Tr.call(Vo,t)&&Vo[t])return!0;if(gg.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=v0.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Vo[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Vo[t]=!0}if(x0.test(t)){if(e=t.toLowerCase(),e=v0.hasOwnProperty(e)?e:null,e==null)return Vo[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Vo[t]=!0)}return!0}function Kc(e,t){var a=[],u;for(u in t)Jc(e,u)||a.push(u);t=a.map(function(p){return"`"+p+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function h1(e,t,a,u){if(Tr.call(Aa,t)&&Aa[t])return!0;var p=t.toLowerCase();if(p==="onfocusin"||p==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Aa[t]=!0;if(typeof a=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(u!=null){if(e=u.possibleRegistrationNames,u.registrationNameDependencies.hasOwnProperty(t))return!0;if(u=e.hasOwnProperty(p)?e[p]:null,u!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,u),Aa[t]=!0;if(qh.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Aa[t]=!0}else if(qh.test(t))return n.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Aa[t]=!0;if(s.test(t)||l.test(t))return!0;if(p==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Aa[t]=!0;if(p==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Aa[t]=!0;if(p==="is"&&a!==null&&a!==void 0&&typeof a!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),Aa[t]=!0;if(typeof a=="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Aa[t]=!0;if(Mc.hasOwnProperty(p)){if(p=Mc[p],p!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,p),Aa[t]=!0}else if(t!==p)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,p),Aa[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:return p=t.toLowerCase().slice(0,5),p==="data-"||p==="aria-"?!0:(a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,t,t,a,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,t,t,a,t,t,t),Aa[t]=!0)}case"function":case"symbol":return Aa[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,t,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,a),Aa[t]=!0}}return!0}function xm(e,t,a){var u=[],p;for(p in t)h1(e,p,t[p],a)||u.push(p);t=u.map(function(m){return"`"+m+"`"}).join(", "),u.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<u.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function eu(e){return h.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Pl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function fo(e){var t=Je(e);if(t&&(e=t.stateNode)){var a=e[Ya]||null;e:switch(e=t.stateNode,t.type){case"input":if(Rt(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(ye(t,"name"),a=a.querySelectorAll('input[name="'+an(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var u=a[t];if(u!==e&&u.form===e.form){var p=u[Ya]||null;if(!p)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Rt(u,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(t=0;t<a.length;t++)u=a[t],u.form===e.form&&wt(u)}break e;case"textarea":$n(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&mn(e,!!a.multiple,t,!1)}}}function jf(e,t,a){if(Se)return e(t,a);Se=!0;try{var u=e(t);return u}finally{if(Se=!1,(M!==null||fe!==null)&&(fc(),M&&(t=M,e=fe,fe=M=null,fo(t),e)))for(t=0;t<e.length;t++)fo(e[t])}}function or(e,t){var a=e.stateNode;if(a===null)return null;var u=a[Ya]||null;if(u===null)return null;a=u[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function rr(){if(Qe)return Qe;var e,t=Xe,a=t.length,u,p="value"in dt?dt.value:dt.textContent,m=p.length;for(e=0;e<a&&t[e]===p[e];e++);var F=a-e;for(u=1;u<=F&&t[a-u]===p[m-u];u++);return Qe=p.slice(e,1<u?1-u:void 0)}function tu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Vl(){return!0}function _m(){return!1}function ia(e){function t(a,u,p,m,F){this._reactName=a,this._targetInst=p,this.type=u,this.nativeEvent=m,this.target=F,this.currentTarget=null;for(var de in e)e.hasOwnProperty(de)&&(a=e[de],this[de]=a?a(m):m[de]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Vl:_m,this.isPropagationStopped=_m,this}return xn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Vl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Vl)},persist:function(){},isPersistent:Vl}),t}function Lf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Z8[e])?!!t[e]:!1}function Rf(){return Lf}function wa(e,t){switch(e){case"keyup":return r9.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==I6;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function Nf(e,t){switch(e){case"compositionend":return Pr(t);case"keypress":return t.which!==Y6?null:(X6=!0,F6);case"textInput":return e=t.data,e===F6&&X6?null:e;default:return null}}function Nd(e,t){if(mg)return e==="compositionend"||!c_&&wa(e,t)?(e=rr(),Qe=Xe=dt=null,mg=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return q6&&t.locale!=="ko"?null:t.data;default:return null}}function f1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!c9[e.type]:t==="textarea"}function Sm(e){if(!Oe)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function zf(e,t,a,u){M?fe?fe.push(u):fe=[u]:M=u,t=Sh(t,"onChange"),0<t.length&&(a=new Zt("onChange","change",null,a,u),e.push({event:a,listeners:t}))}function zd(e){Ro(e,0)}function Il(e){var t=rt(e);if(wt(t))return e}function Cm(e,t){if(e==="change")return t}function p1(){C0&&(C0.detachEvent("onpropertychange",g1),w0=C0=null)}function g1(e){if(e.propertyName==="value"&&Il(w0)){var t=[];zf(t,w0,e,Pl(e)),jf(zd,t)}}function qx(e,t,a){e==="focusin"?(p1(),C0=t,w0=a,C0.attachEvent("onpropertychange",g1)):e==="focusout"&&p1()}function wm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Il(w0)}function Yx(e,t){if(e==="click")return Il(t)}function Fx(e,t){if(e==="input"||e==="change")return Il(t)}function Xx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Bd(e,t){if(fs(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),u=Object.keys(t);if(a.length!==u.length)return!1;for(u=0;u<a.length;u++){var p=a[u];if(!Tr.call(t,p)||!fs(e[p],t[p]))return!1}return!0}function m1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function km(e,t){var a=m1(e);e=0;for(var u;a;){if(a.nodeType===3){if(u=e+a.textContent.length,e<=t&&u>=t)return{node:a,offset:t-e};e=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=m1(a)}}function y1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?y1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function b1(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=vn(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=vn(e.document)}return t}function Tm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function v1(e,t,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;d_||yg==null||yg!==vn(u)||(u=yg,"selectionStart"in u&&Tm(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),k0&&Bd(k0,u)||(k0=u,u=Sh(u_,"onSelect"),0<u.length&&(t=new Zt("onSelect","select",null,t,a),e.push({event:t,listeners:u}),t.target=yg)))}function lr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function ql(e){if(h_[e])return h_[e];if(!bg[e])return e;var t=bg[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Q6)return h_[e]=t[a];return e}function Vs(e,t){tk.set(e,t),ut(t,[e])}function as(e,t){if(typeof e=="object"&&e!==null){var a=p_.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Dt(t)},p_.set(e,t),t)}return{value:e,source:t,stack:Dt(t)}}function Ud(){for(var e=vg,t=g_=vg=0;t<e;){var a=Io[t];Io[t++]=null;var u=Io[t];Io[t++]=null;var p=Io[t];Io[t++]=null;var m=Io[t];if(Io[t++]=null,u!==null&&p!==null){var F=u.pending;F===null?p.next=p:(p.next=F.next,F.next=p),u.pending=p}m!==0&&x1(a,p,m)}}function Bf(e,t,a,u){Io[vg++]=e,Io[vg++]=t,Io[vg++]=a,Io[vg++]=u,g_|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function Mm(e,t,a,u){return Bf(e,t,a,u),Uf(e)}function Ra(e,t){return Bf(e,null,null,t),Uf(e)}function x1(e,t,a){e.lanes|=a;var u=e.alternate;u!==null&&(u.lanes|=a);for(var p=!1,m=e.return;m!==null;)m.childLanes|=a,u=m.alternate,u!==null&&(u.childLanes|=a),m.tag===22&&(e=m.stateNode,e===null||e._visibility&pv||(p=!0)),e=m,m=m.return;return e.tag===3?(m=e.stateNode,p&&t!==null&&(p=31-ba(a),e=m.hiddenUpdates,u=e[p],u===null?e[p]=[t]:u.push(t),t.lane=a|536870912),m):null}function Uf(e){if(F0>j9)throw sf=F0=0,X0=q_=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");sf>L9&&(sf=0,X0=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&to(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&to(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function Yl(e){if(qo===null)return e;var t=qo(e);return t===void 0?e:t.current}function Am(e){if(qo===null)return e;var t=qo(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=Yl(e.render),e.render!==t)?(t={$$typeof:wr,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function _1(e,t){if(qo===null)return!1;var a=e.elementType;t=t.type;var u=!1,p=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(u=!0);break;case 0:(typeof t=="function"||p===ds)&&(u=!0);break;case 11:(p===wr||p===ds)&&(u=!0);break;case 14:case 15:(p===Lh||p===ds)&&(u=!0);break;default:return!1}return!!(u&&(e=qo(a),e!==void 0&&e===qo(t)))}function S1(e){qo!==null&&typeof WeakSet=="function"&&(xg===null&&(xg=new WeakSet),xg.add(e))}function Hd(e,t,a){var u=e.alternate,p=e.child,m=e.sibling,F=e.tag,de=e.type,Ce=null;switch(F){case 0:case 15:case 1:Ce=de;break;case 11:Ce=de.render}if(qo===null)throw Error("Expected resolveFamily to be set during hot reload.");var Me=!1;de=!1,Ce!==null&&(Ce=qo(Ce),Ce!==void 0&&(a.has(Ce)?de=!0:t.has(Ce)&&(F===1?de=!0:Me=!0))),xg!==null&&(xg.has(e)||u!==null&&xg.has(u))&&(de=!0),de&&(e._debugNeedsRemount=!0),(de||Me)&&(u=Ra(e,2),u!==null&&Ei(u,e,2)),p===null||de||Hd(p,t,a),m!==null&&Hd(m,t,a)}function $d(e,t,a,u){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,ik||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function Em(e){return e=e.prototype,!(!e||!e.isReactComponent)}function po(e,t){var a=e.alternate;switch(a===null?(a=ee(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:a.type=Yl(e.type);break;case 1:a.type=Yl(e.type);break;case 11:a.type=Am(e.type)}return a}function Dm(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function Hf(e,t,a,u,p,m){var F=0,de=e;if(typeof e=="function")Em(e)&&(F=1),de=Yl(de);else if(typeof e=="string")F=A(),F=Ru(e,a,F)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case i0:return t=ee(31,a,t,p),t.elementType=i0,t.lanes=m,t;case hn:return Vr(a.children,p,m,t);case zu:F=8,p|=Xa,p|=Or;break;case Bu:return e=a,u=p,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=ee(12,e,t,u|Ea),t.elementType=Bu,t.lanes=m,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Uu:return t=ee(13,a,t,p),t.elementType=Uu,t.lanes=m,t;case gl:return t=ee(19,a,t,p),t.elementType=gl,t.lanes=m,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case n0:case Ls:F=10;break e;case eg:F=9;break e;case wr:F=11,de=Am(de);break e;case Lh:F=14;break e;case ds:F=16,de=null;break e}de="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(de+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?a="null":rn(e)?a="array":e!==void 0&&e.$$typeof===pl?(a="<"+(I(e.type)||"Unknown")+" />",de=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(F=u?he(u):null)&&(de+=`
|
|
611
|
+
This will cause a hydration error.%s`,t,a),!1}function $l(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function Ix(e){return e.replace(_l,function(t,a){return a.toUpperCase()})}function d1(e,t,a){var u=t.indexOf("--")===0;u||(-1<t.indexOf("-")?kc.hasOwnProperty(t)&&kc[t]||(kc[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,Ix(t.replace(Ph,"ms-")))):Gh.test(t)?kc.hasOwnProperty(t)&&kc[t]||(kc[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!hv.test(a)||Tc.hasOwnProperty(a)&&Tc[a]||(Tc[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(hv,""))),typeof a=="number"&&(isNaN(a)?fv||(fv=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||b0||(b0=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),a==null||typeof a=="boolean"||a===""?u?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":u?e.setProperty(t,a):typeof a!="number"||a===0||Vh.has(t)?t==="float"?e.cssFloat=a:(g(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function Rd(e,t,a){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,a!=null){if(t){var u={};if(a){for(var p in a)if(a.hasOwnProperty(p)&&!t.hasOwnProperty(p))for(var m=Po[p]||[p],F=0;F<m.length;F++)u[m[F]]=p}for(var de in t)if(t.hasOwnProperty(de)&&(!a||a[de]!==t[de]))for(p=Po[de]||[de],m=0;m<p.length;m++)u[p[m]]=de;de={};for(var Ce in t)for(p=Po[Ce]||[Ce],m=0;m<p.length;m++)de[p[m]]=Ce;Ce={};for(var Me in u)if(p=u[Me],(m=de[Me])&&p!==m&&(F=p+","+m,!Ce[F])){Ce[F]=!0,F=console;var Ze=t[p];F.error.call(F,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Ze==null||typeof Ze=="boolean"||Ze===""?"Removing":"Updating",p,m)}}for(var et in a)!a.hasOwnProperty(et)||t!=null&&t.hasOwnProperty(et)||(et.indexOf("--")===0?e.setProperty(et,""):et==="float"?e.cssFloat="":e[et]="");for(var Ye in t)Me=t[Ye],t.hasOwnProperty(Ye)&&a[Ye]!==Me&&d1(e,Ye,Me)}else for(u in t)t.hasOwnProperty(u)&&d1(e,u,t[u])}function Gl(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Of(e){return pg.get(e)||e}function Jc(e,t){if(Tr.call(Vo,t)&&Vo[t])return!0;if(gg.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=v0.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Vo[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Vo[t]=!0}if(x0.test(t)){if(e=t.toLowerCase(),e=v0.hasOwnProperty(e)?e:null,e==null)return Vo[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Vo[t]=!0)}return!0}function Kc(e,t){var a=[],u;for(u in t)Jc(e,u)||a.push(u);t=a.map(function(p){return"`"+p+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function h1(e,t,a,u){if(Tr.call(Aa,t)&&Aa[t])return!0;var p=t.toLowerCase();if(p==="onfocusin"||p==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Aa[t]=!0;if(typeof a=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(u!=null){if(e=u.possibleRegistrationNames,u.registrationNameDependencies.hasOwnProperty(t))return!0;if(u=e.hasOwnProperty(p)?e[p]:null,u!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,u),Aa[t]=!0;if(qh.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Aa[t]=!0}else if(qh.test(t))return n.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Aa[t]=!0;if(s.test(t)||l.test(t))return!0;if(p==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Aa[t]=!0;if(p==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Aa[t]=!0;if(p==="is"&&a!==null&&a!==void 0&&typeof a!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),Aa[t]=!0;if(typeof a=="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Aa[t]=!0;if(Mc.hasOwnProperty(p)){if(p=Mc[p],p!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,p),Aa[t]=!0}else if(t!==p)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,p),Aa[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:return p=t.toLowerCase().slice(0,5),p==="data-"||p==="aria-"?!0:(a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,t,t,a,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,t,t,a,t,t,t),Aa[t]=!0)}case"function":case"symbol":return Aa[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,t,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,a),Aa[t]=!0}}return!0}function xm(e,t,a){var u=[],p;for(p in t)h1(e,p,t[p],a)||u.push(p);t=u.map(function(m){return"`"+m+"`"}).join(", "),u.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<u.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function eu(e){return h.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Pl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function fo(e){var t=Je(e);if(t&&(e=t.stateNode)){var a=e[Ya]||null;e:switch(e=t.stateNode,t.type){case"input":if(Rt(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(ye(t,"name"),a=a.querySelectorAll('input[name="'+an(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var u=a[t];if(u!==e&&u.form===e.form){var p=u[Ya]||null;if(!p)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Rt(u,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(t=0;t<a.length;t++)u=a[t],u.form===e.form&&wt(u)}break e;case"textarea":$n(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&mn(e,!!a.multiple,t,!1)}}}function jf(e,t,a){if(Se)return e(t,a);Se=!0;try{var u=e(t);return u}finally{if(Se=!1,(M!==null||fe!==null)&&(fc(),M&&(t=M,e=fe,fe=M=null,fo(t),e)))for(t=0;t<e.length;t++)fo(e[t])}}function or(e,t){var a=e.stateNode;if(a===null)return null;var u=a[Ya]||null;if(u===null)return null;a=u[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function rr(){if(Qe)return Qe;var e,t=Xe,a=t.length,u,p="value"in dt?dt.value:dt.textContent,m=p.length;for(e=0;e<a&&t[e]===p[e];e++);var F=a-e;for(u=1;u<=F&&t[a-u]===p[m-u];u++);return Qe=p.slice(e,1<u?1-u:void 0)}function tu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Vl(){return!0}function _m(){return!1}function ia(e){function t(a,u,p,m,F){this._reactName=a,this._targetInst=p,this.type=u,this.nativeEvent=m,this.target=F,this.currentTarget=null;for(var de in e)e.hasOwnProperty(de)&&(a=e[de],this[de]=a?a(m):m[de]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Vl:_m,this.isPropagationStopped=_m,this}return xn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Vl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Vl)},persist:function(){},isPersistent:Vl}),t}function Lf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Z8[e])?!!t[e]:!1}function Rf(){return Lf}function wa(e,t){switch(e){case"keyup":return r9.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==I6;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function Nf(e,t){switch(e){case"compositionend":return Pr(t);case"keypress":return t.which!==Y6?null:(X6=!0,F6);case"textInput":return e=t.data,e===F6&&X6?null:e;default:return null}}function Nd(e,t){if(mg)return e==="compositionend"||!c_&&wa(e,t)?(e=rr(),Qe=Xe=dt=null,mg=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return q6&&t.locale!=="ko"?null:t.data;default:return null}}function f1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!c9[e.type]:t==="textarea"}function Sm(e){if(!Oe)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function zf(e,t,a,u){M?fe?fe.push(u):fe=[u]:M=u,t=Sh(t,"onChange"),0<t.length&&(a=new Zt("onChange","change",null,a,u),e.push({event:a,listeners:t}))}function zd(e){Ro(e,0)}function Il(e){var t=rt(e);if(wt(t))return e}function Cm(e,t){if(e==="change")return t}function p1(){C0&&(C0.detachEvent("onpropertychange",g1),w0=C0=null)}function g1(e){if(e.propertyName==="value"&&Il(w0)){var t=[];zf(t,w0,e,Pl(e)),jf(zd,t)}}function qx(e,t,a){e==="focusin"?(p1(),C0=t,w0=a,C0.attachEvent("onpropertychange",g1)):e==="focusout"&&p1()}function wm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Il(w0)}function Yx(e,t){if(e==="click")return Il(t)}function Fx(e,t){if(e==="input"||e==="change")return Il(t)}function Xx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Bd(e,t){if(fs(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),u=Object.keys(t);if(a.length!==u.length)return!1;for(u=0;u<a.length;u++){var p=a[u];if(!Tr.call(t,p)||!fs(e[p],t[p]))return!1}return!0}function m1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function km(e,t){var a=m1(e);e=0;for(var u;a;){if(a.nodeType===3){if(u=e+a.textContent.length,e<=t&&u>=t)return{node:a,offset:t-e};e=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=m1(a)}}function y1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?y1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function b1(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=vn(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=vn(e.document)}return t}function Tm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function v1(e,t,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;d_||yg==null||yg!==vn(u)||(u=yg,"selectionStart"in u&&Tm(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),k0&&Bd(k0,u)||(k0=u,u=Sh(u_,"onSelect"),0<u.length&&(t=new Zt("onSelect","select",null,t,a),e.push({event:t,listeners:u}),t.target=yg)))}function lr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function ql(e){if(h_[e])return h_[e];if(!bg[e])return e;var t=bg[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Q6)return h_[e]=t[a];return e}function Vs(e,t){tk.set(e,t),ut(t,[e])}function as(e,t){if(typeof e=="object"&&e!==null){var a=p_.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Dt(t)},p_.set(e,t),t)}return{value:e,source:t,stack:Dt(t)}}function Ud(){for(var e=vg,t=g_=vg=0;t<e;){var a=Io[t];Io[t++]=null;var u=Io[t];Io[t++]=null;var p=Io[t];Io[t++]=null;var m=Io[t];if(Io[t++]=null,u!==null&&p!==null){var F=u.pending;F===null?p.next=p:(p.next=F.next,F.next=p),u.pending=p}m!==0&&x1(a,p,m)}}function Bf(e,t,a,u){Io[vg++]=e,Io[vg++]=t,Io[vg++]=a,Io[vg++]=u,g_|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function Mm(e,t,a,u){return Bf(e,t,a,u),Uf(e)}function Ra(e,t){return Bf(e,null,null,t),Uf(e)}function x1(e,t,a){e.lanes|=a;var u=e.alternate;u!==null&&(u.lanes|=a);for(var p=!1,m=e.return;m!==null;)m.childLanes|=a,u=m.alternate,u!==null&&(u.childLanes|=a),m.tag===22&&(e=m.stateNode,e===null||e._visibility&pv||(p=!0)),e=m,m=m.return;return e.tag===3?(m=e.stateNode,p&&t!==null&&(p=31-ba(a),e=m.hiddenUpdates,u=e[p],u===null?e[p]=[t]:u.push(t),t.lane=a|536870912),m):null}function Uf(e){if(F0>j9)throw sf=F0=0,X0=q_=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");sf>L9&&(sf=0,X0=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&to(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&to(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function Yl(e){if(qo===null)return e;var t=qo(e);return t===void 0?e:t.current}function Am(e){if(qo===null)return e;var t=qo(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=Yl(e.render),e.render!==t)?(t={$$typeof:wr,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function _1(e,t){if(qo===null)return!1;var a=e.elementType;t=t.type;var u=!1,p=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(u=!0);break;case 0:(typeof t=="function"||p===ds)&&(u=!0);break;case 11:(p===wr||p===ds)&&(u=!0);break;case 14:case 15:(p===Lh||p===ds)&&(u=!0);break;default:return!1}return!!(u&&(e=qo(a),e!==void 0&&e===qo(t)))}function S1(e){qo!==null&&typeof WeakSet=="function"&&(xg===null&&(xg=new WeakSet),xg.add(e))}function Hd(e,t,a){var u=e.alternate,p=e.child,m=e.sibling,F=e.tag,de=e.type,Ce=null;switch(F){case 0:case 15:case 1:Ce=de;break;case 11:Ce=de.render}if(qo===null)throw Error("Expected resolveFamily to be set during hot reload.");var Me=!1;de=!1,Ce!==null&&(Ce=qo(Ce),Ce!==void 0&&(a.has(Ce)?de=!0:t.has(Ce)&&(F===1?de=!0:Me=!0))),xg!==null&&(xg.has(e)||u!==null&&xg.has(u))&&(de=!0),de&&(e._debugNeedsRemount=!0),(de||Me)&&(u=Ra(e,2),u!==null&&Ei(u,e,2)),p===null||de||Hd(p,t,a),m!==null&&Hd(m,t,a)}function $d(e,t,a,u){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,ik||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function Em(e){return e=e.prototype,!(!e||!e.isReactComponent)}function po(e,t){var a=e.alternate;switch(a===null?(a=ee(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:a.type=Yl(e.type);break;case 1:a.type=Yl(e.type);break;case 11:a.type=Am(e.type)}return a}function Dm(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function Hf(e,t,a,u,p,m){var F=0,de=e;if(typeof e=="function")Em(e)&&(F=1),de=Yl(de);else if(typeof e=="string")F=A(),F=Ru(e,a,F)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case i0:return t=ee(31,a,t,p),t.elementType=i0,t.lanes=m,t;case fn:return Vr(a.children,p,m,t);case zu:F=8,p|=Xa,p|=Or;break;case Bu:return e=a,u=p,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=ee(12,e,t,u|Ea),t.elementType=Bu,t.lanes=m,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Uu:return t=ee(13,a,t,p),t.elementType=Uu,t.lanes=m,t;case gl:return t=ee(19,a,t,p),t.elementType=gl,t.lanes=m,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case n0:case Ls:F=10;break e;case eg:F=9;break e;case wr:F=11,de=Am(de);break e;case Lh:F=14;break e;case ds:F=16,de=null;break e}de="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(de+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?a="null":rn(e)?a="array":e!==void 0&&e.$$typeof===pl?(a="<"+(I(e.type)||"Unknown")+" />",de=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(F=u?he(u):null)&&(de+=`
|
|
612
612
|
|
|
613
613
|
Check the render method of \``+F+"`."),F=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+de)),de=null}return t=ee(F,a,t,p),t.elementType=e,t.type=de,t.lanes=m,t._debugOwner=u,t}function Gd(e,t,a){return t=Hf(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Vr(e,t,a,u){return e=ee(7,e,u,t),e.lanes=a,e}function Ir(e,t,a){return e=ee(6,e,null,t),e.lanes=a,e}function Om(e,t,a){return t=ee(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fl(e,t){Is(),_g[Sg++]=mv,_g[Sg++]=gv,gv=e,mv=t}function C1(e,t,a){Is(),Yo[Fo++]=Ec,Yo[Fo++]=Dc,Yo[Fo++]=Yh,Yh=e;var u=Ec;e=Dc;var p=32-ba(u)-1;u&=~(1<<p),a+=1;var m=32-ba(t)+p;if(30<m){var F=p-p%5;m=(u&(1<<F)-1).toString(32),u>>=F,p-=F,Ec=1<<32-ba(t)+p|a<<p|u,Dc=m+e}else Ec=1<<m|a<<p|u,Dc=e}function $f(e){Is(),e.return!==null&&(Fl(e,1),C1(e,1,0))}function Gf(e){for(;e===gv;)gv=_g[--Sg],_g[Sg]=null,mv=_g[--Sg],_g[Sg]=null;for(;e===Yh;)Yh=Yo[--Fo],Yo[Fo]=null,Dc=Yo[--Fo],Yo[Fo]=null,Ec=Yo[--Fo],Yo[Fo]=null}function Is(){In||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function qs(e,t){if(e.return===null){if(Xo===null)Xo={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Xo.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Xo.distanceFromLeaf>t&&(Xo.distanceFromLeaf=t)}return Xo}var a=qs(e.return,t+1).children;return 0<a.length&&a[a.length-1].fiber===e?(a=a[a.length-1],a.distanceFromLeaf>t&&(a.distanceFromLeaf=t),a):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},a.push(t),t)}function jm(e,t){Oc||(e=qs(e,0),e.serverProps=null,t!==null&&(t=Ip(t),e.serverTail.push(t)))}function go(e){var t="",a=Xo;throw a!==null&&(Xo=null,t=jd(a)),nu(as(Error(`Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
614
614
|
|
|
@@ -645,14 +645,14 @@ Please update the following component: %s`,p),gk=!0}return(Kn&ms)!==ao?(p=u.pend
|
|
|
645
645
|
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Wr(e,t){if(z0)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ke),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
646
646
|
|
|
647
647
|
Previous: %s
|
|
648
|
-
Incoming: %s`,Ke,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!fs(e[a],t[a]))return!1;return!0}function Jr(e,t,a,u,p,m){Wu=m,ln=t,Wo=e!==null?e._debugHookTypes:null,Lc=-1,z0=e!==null&&e.type!==t.type,(Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")&&(m=oe(ln),w_.has(m)||(w_.add(m),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",m===null?"An unknown Component":"<"+m+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,We.H=e!==null&&e.memoizedState!==null?T_:Wo!==null?vk:k_,Jh=m=(t.mode&Xa)!==xi;var F=M_(a,u,p);if(Jh=!1,Eg&&(F=lu(t,a,u,p)),m){Z(!0);try{F=lu(t,a,u,p)}finally{Z(!1)}}return Yd(e,t),F}function Yd(e,t){t._debugHookTypes=Wo,t.dependencies===null?jc!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:jc}):t.dependencies._debugThenableState=jc,We.H=Mv;var a=ci!==null&&ci.next!==null;if(Wu=0,Wo=Ke=ea=ci=ln=null,Lc=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),kv=!1,N0=0,jc=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||xa||(e=e.dependencies,e!==null&&Yr(e)&&(xa=!0)),Cv?(Cv=!1,e=!0):e=!1,e&&(t=oe(t)||"Unknown",yk.has(t)||w_.has(t)||(yk.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function lu(e,t,a,u){ln=e;var p=0;do{if(Eg&&(jc=null),N0=0,Eg=!1,p>=_9)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(p+=1,z0=!1,ea=ci=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}Lc=-1,We.H=xk,m=M_(t,a,u)}while(Eg);return m}function ws(){var e=We.H,t=e.useState()[0];return t=typeof t.then=="function"?Kl(t):t,e=e.useState()[0],(ci!==null?ci.memoizedState:null)!==e&&(ln.flags|=1024),t}function Ba(){var e=Tv!==0;return Tv=0,e}function dr(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&Or)!==xi?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function Qs(e){if(kv){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}kv=!1}Wu=0,Wo=ea=ci=ln=null,Lc=-1,Ke=null,Eg=!1,N0=Tv=0,jc=null}function Mi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ea===null?ln.memoizedState=ea=e:ea=ea.next=e,ea}function Ln(){if(ci===null){var e=ln.alternate;e=e!==null?e.memoizedState:null}else e=ci.next;var t=ea===null?ln.memoizedState:ea.next;if(t!==null)ea=t,ci=e;else{if(e===null)throw ln.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");ci=e,e={memoizedState:ci.memoizedState,baseState:ci.baseState,baseQueue:ci.baseQueue,queue:ci.queue,next:null},ea===null?ln.memoizedState=ea=e:ea=ea.next=e}return ea}function qf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kl(e){var t=N0;return N0+=1,jc===null&&(jc=Pm()),e=Ss(jc,e,t),t=ln,(ea===null?t.memoizedState:ea.next)===null&&(t=t.alternate,We.H=t!==null&&t.memoizedState!==null?T_:k_),e}function xo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Kl(e);if(e.$$typeof===Ls)return hi(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Ni(e){var t=null,a=ln.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var u=ln.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(t={data:u.data.map(function(p){return p.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=qf(),ln.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||z0)for(a=t.data[t.index]=Array(e),u=0;u<e;u++)a[u]=nv;else a.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,e);return t.index++,a}function Gn(e,t){return typeof t=="function"?t(e):t}function Bn(e,t,a){var u=Mi();if(a!==void 0){var p=a(t);if(Jh){Z(!0);try{a(t)}finally{Z(!1)}}}else p=t;return u.memoizedState=u.baseState=p,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:p},u.queue=e,e=e.dispatch=Km.bind(null,ln,e),[u.memoizedState,e]}function ks(e){var t=Ln();return Ts(t,ci,e)}function Ts(e,t,a){var u=e.queue;if(u===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");u.lastRenderedReducer=a;var p=e.baseQueue,m=u.pending;if(m!==null){if(p!==null){var F=p.next;p.next=m.next,m.next=F}t.baseQueue!==p&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=p=m,u.pending=null}if(m=e.baseState,p===null)e.memoizedState=m;else{t=p.next;var de=F=null,Ce=null,Me=t,Ze=!1;do{var et=Me.lane&-536870913;if(et!==Me.lane?(Dn&et)===et:(Wu&et)===et){var Ye=Me.revertLane;if(Ye===0)Ce!==null&&(Ce=Ce.next={lane:0,revertLane:0,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null}),et===Zh&&(Ze=!0);else if((Wu&Ye)===Ye){Me=Me.next,Ye===Zh&&(Ze=!0);continue}else et={lane:0,revertLane:Me.revertLane,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null},Ce===null?(de=Ce=et,F=m):Ce=Ce.next=et,ln.lanes|=Ye,ed|=Ye;et=Me.action,Jh&&a(m,et),m=Me.hasEagerState?Me.eagerState:a(m,et)}else Ye={lane:et,revertLane:Me.revertLane,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null},Ce===null?(de=Ce=Ye,F=m):Ce=Ce.next=Ye,ln.lanes|=et,ed|=et;Me=Me.next}while(Me!==null&&Me!==t);if(Ce===null?F=m:Ce.next=de,!fs(m,e.memoizedState)&&(xa=!0,Ze&&(a=Tg,a!==null)))throw a;e.memoizedState=m,e.baseState=F,e.baseQueue=Ce,u.lastRenderedState=m}return p===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function ec(e){var t=Ln(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var u=a.dispatch,p=a.pending,m=t.memoizedState;if(p!==null){a.pending=null;var F=p=p.next;do m=e(m,F.action),F=F.next;while(F!==p);fs(m,t.memoizedState)||(xa=!0),t.memoizedState=m,t.baseQueue===null&&(t.baseState=m),a.lastRenderedState=m}return[m,u]}function hr(e,t,a){var u=ln,p=Mi();if(In){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var m=a();Ag||m===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Ag=!0)}else{if(m=t(),Ag||(a=t(),fs(m,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ag=!0)),fi===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Dn&124)!==0||qm(u,t,m)}return p.memoizedState=m,a={value:m,getSnapshot:t},p.queue=a,Xf(uu.bind(null,u,a,e),[e]),u.flags|=2048,So(Qo|ha,el(),cu.bind(null,u,a,m,t),null),m}function Fd(e,t,a){var u=ln,p=Ln(),m=In;if(m){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!Ag){var F=t();fs(a,F)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ag=!0)}(F=!fs((ci||p).memoizedState,a))&&(p.memoizedState=a,xa=!0),p=p.queue;var de=uu.bind(null,u,p,e);if(Ii(2048,ha,de,[e]),p.getSnapshot!==t||F||ea!==null&&ea.memoizedState.tag&Qo){if(u.flags|=2048,So(Qo|ha,el(),cu.bind(null,u,p,a,t),null),fi===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");m||(Wu&124)!==0||qm(u,t,a)}return a}function qm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ln.updateQueue,t===null?(t=qf(),ln.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function cu(e,t,a,u){t.value=a,t.getSnapshot=u,Ym(t)&&du(e)}function uu(e,t,a){return a(function(){Ym(t)&&du(e)})}function Ym(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!fs(e,a)}catch{return!0}}function du(e){var t=Ra(e,2);t!==null&&Ei(t,e,2)}function Xd(e){var t=Mi();if(typeof e=="function"){var a=e;if(e=a(),Jh){Z(!0);try{a()}finally{Z(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:e},t}function fr(e){e=Xd(e);var t=e.queue,a=gu.bind(null,ln,t);return t.dispatch=a,[e.memoizedState,a]}function Ws(e){var t=Mi();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ip.bind(null,ln,!0,a),a.dispatch=t,[e,t]}function pr(e,t){var a=Ln();return _o(a,ci,e,t)}function _o(e,t,a,u){return e.baseState=a,Ts(e,ci,typeof u=="function"?u:Gn)}function Yf(e,t){var a=Ln();return ci!==null?_o(a,ci,e,t):(a.baseState=e,[e,a.queue.dispatch])}function Fm(e,t,a,u,p){if(th(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var m={payload:p,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(F){m.listeners.push(F)}};We.T!==null?a(!0):m.isTransition=!1,u(m),a=t.pending,a===null?(m.next=t.pending=m,hu(t,m)):(m.next=a.next,t.pending=a.next=m)}}function hu(e,t){var a=t.action,u=t.payload,p=e.state;if(t.isTransition){var m=We.T,F={};We.T=F,We.T._updatedFibers=new Set;try{var de=a(p,u),Ce=We.S;Ce!==null&&Ce(F,de),Zd(e,t,de)}catch(Me){Zi(e,t,Me)}finally{We.T=m,m===null&&F._updatedFibers&&(e=F._updatedFibers.size,F._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{F=a(p,u),Zd(e,t,F)}catch(Me){Zi(e,t,Me)}}function Zd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?(a.then(function(u){Kr(e,t,u)},function(u){return Zi(e,t,u)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Kr(e,t,a)}function Kr(e,t,a){t.status="fulfilled",t.value=a,Qd(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,hu(e,a)))}function Zi(e,t,a){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do t.status="rejected",t.reason=a,Qd(t),t=t.next;while(t!==u)}e.action=null}function Qd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Xm(e,t){return t}function fu(e,t){if(In){var a=fi.formState;if(a!==null){e:{var u=ln;if(In){if(Ui){t:{for(var p=Ui,m=Cl;p.nodeType!==8;){if(!m){p=null;break t}if(p=la(p.nextSibling),p===null){p=null;break t}}m=p.data,p=m===K_||m===b4?p:null}if(p){Ui=la(p.nextSibling),u=p.data===K_;break e}}go(u)}u=!1}u&&(t=a[0])}}return a=Mi(),a.memoizedState=a.baseState=t,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xm,lastRenderedState:t},a.queue=u,a=gu.bind(null,ln,u),u.dispatch=a,u=Xd(!1),m=ip.bind(null,ln,!1,u.queue),u=Mi(),p={state:t,dispatch:null,action:e,pending:null},u.queue=p,a=Fm.bind(null,ln,p,m,a),p.dispatch=a,u.memoizedState=e,[t,a,!1]}function Ff(e){var t=Ln();return A1(t,ci,e)}function A1(e,t,a){if(t=Ts(e,t,Xm)[0],e=ks(Gn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var u=Kl(t)}catch(F){throw F===L0?Sv:F}else u=t;t=Ln();var p=t.queue,m=p.dispatch;return a!==t.memoizedState&&(ln.flags|=2048,So(Qo|ha,el(),Vi.bind(null,p,a),null)),[u,m,e]}function Vi(e,t){e.action=t}function pu(e){var t=Ln(),a=ci;if(a!==null)return A1(t,a,e);Ln(),t=t.memoizedState,a=Ln();var u=a.queue.dispatch;return a.memoizedState=e,[t,u,!1]}function So(e,t,a,u){return e={tag:e,create:a,deps:u,inst:t,next:null},t=ln.updateQueue,t===null&&(t=qf(),ln.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(u=a.next,a.next=e,e.next=u,t.lastEffect=e),e}function el(){return{destroy:void 0,resource:void 0}}function Wd(e){var t=Mi();return e={current:e},t.memoizedState=e}function Ms(e,t,a,u){var p=Mi();u=u===void 0?null:u,ln.flags|=e,p.memoizedState=So(Qo|t,el(),a,u)}function Ii(e,t,a,u){var p=Ln();u=u===void 0?null:u;var m=p.memoizedState.inst;ci!==null&&u!==null&&Wr(u,ci.memoizedState.deps)?p.memoizedState=So(t,m,a,u):(ln.flags|=e,p.memoizedState=So(Qo|t,m,a,u))}function Xf(e,t){(ln.mode&Or)!==xi&&(ln.mode&nk)===xi?Ms(276826112,ha,e,t):Ms(8390656,ha,e,t)}function Zf(e,t){var a=4194308;return(ln.mode&Or)!==xi&&(a|=134217728),Ms(a,Da,e,t)}function E1(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Qf(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null;var u=4194308;(ln.mode&Or)!==xi&&(u|=134217728),Ms(u,Da,E1.bind(null,t,e),a)}function Co(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null,Ii(4,Da,E1.bind(null,t,e),a)}function Jd(e,t){return Mi().memoizedState=[e,t===void 0?null:t],e}function tc(e,t){var a=Ln();t=t===void 0?null:t;var u=a.memoizedState;return t!==null&&Wr(t,u[1])?u[0]:(a.memoizedState=[e,t],e)}function Wf(e,t){var a=Mi();t=t===void 0?null:t;var u=e();if(Jh){Z(!0);try{e()}finally{Z(!1)}}return a.memoizedState=[u,t],u}function tl(e,t){var a=Ln();t=t===void 0?null:t;var u=a.memoizedState;if(t!==null&&Wr(t,u[1]))return u[0];if(u=e(),Jh){Z(!0);try{e()}finally{Z(!1)}}return a.memoizedState=[u,t],u}function Jf(e,t){var a=Mi();return ep(a,e,t)}function Kd(e,t){var a=Ln();return eh(a,ci.memoizedState,e,t)}function Kf(e,t){var a=Ln();return ci===null?ep(a,e,t):eh(a,ci.memoizedState,e,t)}function ep(e,t,a){return a===void 0||(Wu&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=H1(),ln.lanes|=e,ed|=e,a)}function eh(e,t,a,u){return fs(a,t)?a:Mg.current!==null?(e=ep(e,a,u),fs(e,t)||(xa=!0),e):(Wu&42)===0?(xa=!0,e.memoizedState=a):(e=H1(),ln.lanes|=e,ed|=e,t)}function Zm(e,t,a,u,p){var m=en.p;en.p=m!==0&&m<io?m:io;var F=We.T,de={};We.T=de,ip(e,!1,t,a),de._updatedFibers=new Set;try{var Ce=p(),Me=We.S;if(Me!==null&&Me(de,Ce),Ce!==null&&typeof Ce=="object"&&typeof Ce.then=="function"){var Ze=k1(Ce,u);gr(e,t,Ze,Ga(e))}else gr(e,t,u,Ga(e))}catch(et){gr(e,t,{then:function(){},status:"rejected",reason:et},Ga(e))}finally{en.p=m,We.T=F,F===null&&de._updatedFibers&&(e=de._updatedFibers.size,de._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function nc(e,t,a,u){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var p=Qm(e).queue;Zm(e,p,t,uf,a===null?j:function(){return Wm(e),a(u)})}function Qm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:uf,baseState:uf,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:uf},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wm(e){We.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Qm(e).next.queue;gr(e,t,{},Ga(e))}function wo(){var e=Xd(!1);return e=Zm.bind(null,ln,e.queue,!0,!1),Mi().memoizedState=e,[!1,e]}function tp(){var e=ks(Gn)[0],t=Ln().memoizedState;return[typeof e=="boolean"?e:Kl(e),t]}function np(){var e=ec(Gn)[0],t=Ln().memoizedState;return[typeof e=="boolean"?e:Kl(e),t]}function Ua(){return hi(K0)}function ko(){var e=Mi(),t=fi.identifierPrefix;if(In){var a=Dc,u=Ec;a=(u&~(1<<32-ba(u)-1)).toString(32)+a,t="«"+t+"R"+a,a=Tv++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=x9++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t}function ic(){return Mi().memoizedState=Jm.bind(null,ln)}function Jm(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var u=Ga(a);e=bo(u);var p=Xs(a,e,u);p!==null&&(Ei(p,a,u),Qr(p,a,u)),a=Vd(),t!=null&&p!==null&&console.error("The seed argument is not enabled outside experimental channels."),e.payload={cache:a};return}a=a.return}}function Km(e,t,a){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=Ga(e);var p={lane:u,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};th(e)?ac(t,p):(p=Mm(e,t,p,u),p!==null&&(Ei(p,e,u),nh(p,t,u))),H(e,u)}function gu(e,t,a){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=Ga(e),gr(e,t,a,u),H(e,u)}function gr(e,t,a,u){var p={lane:u,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(th(e))ac(t,p);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=t.lastRenderedReducer,m!==null)){var F=We.H;We.H=Lr;try{var de=t.lastRenderedState,Ce=m(de,a);if(p.hasEagerState=!0,p.eagerState=Ce,fs(Ce,de))return Bf(e,t,p,0),fi===null&&Ud(),!1}catch{}finally{We.H=F}}if(a=Mm(e,t,p,u),a!==null)return Ei(a,e,u),nh(a,t,u),!0}return!1}function ip(e,t,a,u){if(We.T===null&&Zh===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),u={lane:2,revertLane:Dy(),action:u,hasEagerState:!1,eagerState:null,next:null},th(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Mm(e,a,u,2),t!==null&&Ei(t,e,2);H(e,2)}function th(e){var t=e.alternate;return e===ln||t!==null&&t===ln}function ac(e,t){Eg=kv=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function nh(e,t,a){if((a&4194048)!==0){var u=t.lanes;u&=e.pendingLanes,a|=u,t.lanes=a,xe(e,a)}}function Qi(e){var t=Cn;return e!=null&&(Cn=t===null?e:t.concat(e)),t}function mu(e,t,a){for(var u=Object.keys(e.props),p=0;p<u.length;p++){var m=u[p];if(m!=="children"&&m!=="key"){t===null&&(t=Gd(e,a.mode,0),t._debugInfo=Cn,t.return=a),yt(t,function(F){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F)},m);break}}}function yu(e){var t=B0;return B0+=1,Dg===null&&(Dg=Pm()),Ss(Dg,e,t)}function As(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function dn(e,t){throw t.$$typeof===jh?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
648
|
+
Incoming: %s`,Ke,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!fs(e[a],t[a]))return!1;return!0}function Jr(e,t,a,u,p,m){Wu=m,ln=t,Wo=e!==null?e._debugHookTypes:null,Lc=-1,z0=e!==null&&e.type!==t.type,(Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")&&(m=oe(ln),w_.has(m)||(w_.add(m),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",m===null?"An unknown Component":"<"+m+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,We.H=e!==null&&e.memoizedState!==null?T_:Wo!==null?vk:k_,Jh=m=(t.mode&Xa)!==xi;var F=M_(a,u,p);if(Jh=!1,Eg&&(F=lu(t,a,u,p)),m){Z(!0);try{F=lu(t,a,u,p)}finally{Z(!1)}}return Yd(e,t),F}function Yd(e,t){t._debugHookTypes=Wo,t.dependencies===null?jc!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:jc}):t.dependencies._debugThenableState=jc,We.H=Mv;var a=ci!==null&&ci.next!==null;if(Wu=0,Wo=Ke=ea=ci=ln=null,Lc=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),kv=!1,N0=0,jc=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||xa||(e=e.dependencies,e!==null&&Yr(e)&&(xa=!0)),Cv?(Cv=!1,e=!0):e=!1,e&&(t=oe(t)||"Unknown",yk.has(t)||w_.has(t)||(yk.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function lu(e,t,a,u){ln=e;var p=0;do{if(Eg&&(jc=null),N0=0,Eg=!1,p>=_9)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(p+=1,z0=!1,ea=ci=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}Lc=-1,We.H=xk,m=M_(t,a,u)}while(Eg);return m}function ws(){var e=We.H,t=e.useState()[0];return t=typeof t.then=="function"?Kl(t):t,e=e.useState()[0],(ci!==null?ci.memoizedState:null)!==e&&(ln.flags|=1024),t}function Ba(){var e=Tv!==0;return Tv=0,e}function dr(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&Or)!==xi?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function Qs(e){if(kv){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}kv=!1}Wu=0,Wo=ea=ci=ln=null,Lc=-1,Ke=null,Eg=!1,N0=Tv=0,jc=null}function Mi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ea===null?ln.memoizedState=ea=e:ea=ea.next=e,ea}function Ln(){if(ci===null){var e=ln.alternate;e=e!==null?e.memoizedState:null}else e=ci.next;var t=ea===null?ln.memoizedState:ea.next;if(t!==null)ea=t,ci=e;else{if(e===null)throw ln.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");ci=e,e={memoizedState:ci.memoizedState,baseState:ci.baseState,baseQueue:ci.baseQueue,queue:ci.queue,next:null},ea===null?ln.memoizedState=ea=e:ea=ea.next=e}return ea}function qf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kl(e){var t=N0;return N0+=1,jc===null&&(jc=Pm()),e=Ss(jc,e,t),t=ln,(ea===null?t.memoizedState:ea.next)===null&&(t=t.alternate,We.H=t!==null&&t.memoizedState!==null?T_:k_),e}function xo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Kl(e);if(e.$$typeof===Ls)return hi(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Ni(e){var t=null,a=ln.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var u=ln.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(t={data:u.data.map(function(p){return p.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=qf(),ln.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||z0)for(a=t.data[t.index]=Array(e),u=0;u<e;u++)a[u]=nv;else a.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,e);return t.index++,a}function Gn(e,t){return typeof t=="function"?t(e):t}function Bn(e,t,a){var u=Mi();if(a!==void 0){var p=a(t);if(Jh){Z(!0);try{a(t)}finally{Z(!1)}}}else p=t;return u.memoizedState=u.baseState=p,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:p},u.queue=e,e=e.dispatch=Km.bind(null,ln,e),[u.memoizedState,e]}function ks(e){var t=Ln();return Ts(t,ci,e)}function Ts(e,t,a){var u=e.queue;if(u===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");u.lastRenderedReducer=a;var p=e.baseQueue,m=u.pending;if(m!==null){if(p!==null){var F=p.next;p.next=m.next,m.next=F}t.baseQueue!==p&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=p=m,u.pending=null}if(m=e.baseState,p===null)e.memoizedState=m;else{t=p.next;var de=F=null,Ce=null,Me=t,Ze=!1;do{var et=Me.lane&-536870913;if(et!==Me.lane?(Dn&et)===et:(Wu&et)===et){var Ye=Me.revertLane;if(Ye===0)Ce!==null&&(Ce=Ce.next={lane:0,revertLane:0,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null}),et===Zh&&(Ze=!0);else if((Wu&Ye)===Ye){Me=Me.next,Ye===Zh&&(Ze=!0);continue}else et={lane:0,revertLane:Me.revertLane,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null},Ce===null?(de=Ce=et,F=m):Ce=Ce.next=et,ln.lanes|=Ye,ed|=Ye;et=Me.action,Jh&&a(m,et),m=Me.hasEagerState?Me.eagerState:a(m,et)}else Ye={lane:et,revertLane:Me.revertLane,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null},Ce===null?(de=Ce=Ye,F=m):Ce=Ce.next=Ye,ln.lanes|=et,ed|=et;Me=Me.next}while(Me!==null&&Me!==t);if(Ce===null?F=m:Ce.next=de,!fs(m,e.memoizedState)&&(xa=!0,Ze&&(a=Tg,a!==null)))throw a;e.memoizedState=m,e.baseState=F,e.baseQueue=Ce,u.lastRenderedState=m}return p===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function ec(e){var t=Ln(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var u=a.dispatch,p=a.pending,m=t.memoizedState;if(p!==null){a.pending=null;var F=p=p.next;do m=e(m,F.action),F=F.next;while(F!==p);fs(m,t.memoizedState)||(xa=!0),t.memoizedState=m,t.baseQueue===null&&(t.baseState=m),a.lastRenderedState=m}return[m,u]}function hr(e,t,a){var u=ln,p=Mi();if(In){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var m=a();Ag||m===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Ag=!0)}else{if(m=t(),Ag||(a=t(),fs(m,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ag=!0)),fi===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Dn&124)!==0||qm(u,t,m)}return p.memoizedState=m,a={value:m,getSnapshot:t},p.queue=a,Xf(uu.bind(null,u,a,e),[e]),u.flags|=2048,So(Qo|ha,el(),cu.bind(null,u,a,m,t),null),m}function Fd(e,t,a){var u=ln,p=Ln(),m=In;if(m){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!Ag){var F=t();fs(a,F)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ag=!0)}(F=!fs((ci||p).memoizedState,a))&&(p.memoizedState=a,xa=!0),p=p.queue;var de=uu.bind(null,u,p,e);if(Ii(2048,ha,de,[e]),p.getSnapshot!==t||F||ea!==null&&ea.memoizedState.tag&Qo){if(u.flags|=2048,So(Qo|ha,el(),cu.bind(null,u,p,a,t),null),fi===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");m||(Wu&124)!==0||qm(u,t,a)}return a}function qm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ln.updateQueue,t===null?(t=qf(),ln.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function cu(e,t,a,u){t.value=a,t.getSnapshot=u,Ym(t)&&du(e)}function uu(e,t,a){return a(function(){Ym(t)&&du(e)})}function Ym(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!fs(e,a)}catch{return!0}}function du(e){var t=Ra(e,2);t!==null&&Ei(t,e,2)}function Xd(e){var t=Mi();if(typeof e=="function"){var a=e;if(e=a(),Jh){Z(!0);try{a()}finally{Z(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:e},t}function fr(e){e=Xd(e);var t=e.queue,a=gu.bind(null,ln,t);return t.dispatch=a,[e.memoizedState,a]}function Ws(e){var t=Mi();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ip.bind(null,ln,!0,a),a.dispatch=t,[e,t]}function pr(e,t){var a=Ln();return _o(a,ci,e,t)}function _o(e,t,a,u){return e.baseState=a,Ts(e,ci,typeof u=="function"?u:Gn)}function Yf(e,t){var a=Ln();return ci!==null?_o(a,ci,e,t):(a.baseState=e,[e,a.queue.dispatch])}function Fm(e,t,a,u,p){if(th(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var m={payload:p,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(F){m.listeners.push(F)}};We.T!==null?a(!0):m.isTransition=!1,u(m),a=t.pending,a===null?(m.next=t.pending=m,hu(t,m)):(m.next=a.next,t.pending=a.next=m)}}function hu(e,t){var a=t.action,u=t.payload,p=e.state;if(t.isTransition){var m=We.T,F={};We.T=F,We.T._updatedFibers=new Set;try{var de=a(p,u),Ce=We.S;Ce!==null&&Ce(F,de),Zd(e,t,de)}catch(Me){Zi(e,t,Me)}finally{We.T=m,m===null&&F._updatedFibers&&(e=F._updatedFibers.size,F._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{F=a(p,u),Zd(e,t,F)}catch(Me){Zi(e,t,Me)}}function Zd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?(a.then(function(u){Kr(e,t,u)},function(u){return Zi(e,t,u)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Kr(e,t,a)}function Kr(e,t,a){t.status="fulfilled",t.value=a,Qd(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,hu(e,a)))}function Zi(e,t,a){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do t.status="rejected",t.reason=a,Qd(t),t=t.next;while(t!==u)}e.action=null}function Qd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Xm(e,t){return t}function fu(e,t){if(In){var a=fi.formState;if(a!==null){e:{var u=ln;if(In){if(Ui){t:{for(var p=Ui,m=Cl;p.nodeType!==8;){if(!m){p=null;break t}if(p=la(p.nextSibling),p===null){p=null;break t}}m=p.data,p=m===K_||m===b4?p:null}if(p){Ui=la(p.nextSibling),u=p.data===K_;break e}}go(u)}u=!1}u&&(t=a[0])}}return a=Mi(),a.memoizedState=a.baseState=t,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xm,lastRenderedState:t},a.queue=u,a=gu.bind(null,ln,u),u.dispatch=a,u=Xd(!1),m=ip.bind(null,ln,!1,u.queue),u=Mi(),p={state:t,dispatch:null,action:e,pending:null},u.queue=p,a=Fm.bind(null,ln,p,m,a),p.dispatch=a,u.memoizedState=e,[t,a,!1]}function Ff(e){var t=Ln();return A1(t,ci,e)}function A1(e,t,a){if(t=Ts(e,t,Xm)[0],e=ks(Gn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var u=Kl(t)}catch(F){throw F===L0?Sv:F}else u=t;t=Ln();var p=t.queue,m=p.dispatch;return a!==t.memoizedState&&(ln.flags|=2048,So(Qo|ha,el(),Vi.bind(null,p,a),null)),[u,m,e]}function Vi(e,t){e.action=t}function pu(e){var t=Ln(),a=ci;if(a!==null)return A1(t,a,e);Ln(),t=t.memoizedState,a=Ln();var u=a.queue.dispatch;return a.memoizedState=e,[t,u,!1]}function So(e,t,a,u){return e={tag:e,create:a,deps:u,inst:t,next:null},t=ln.updateQueue,t===null&&(t=qf(),ln.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(u=a.next,a.next=e,e.next=u,t.lastEffect=e),e}function el(){return{destroy:void 0,resource:void 0}}function Wd(e){var t=Mi();return e={current:e},t.memoizedState=e}function Ms(e,t,a,u){var p=Mi();u=u===void 0?null:u,ln.flags|=e,p.memoizedState=So(Qo|t,el(),a,u)}function Ii(e,t,a,u){var p=Ln();u=u===void 0?null:u;var m=p.memoizedState.inst;ci!==null&&u!==null&&Wr(u,ci.memoizedState.deps)?p.memoizedState=So(t,m,a,u):(ln.flags|=e,p.memoizedState=So(Qo|t,m,a,u))}function Xf(e,t){(ln.mode&Or)!==xi&&(ln.mode&nk)===xi?Ms(276826112,ha,e,t):Ms(8390656,ha,e,t)}function Zf(e,t){var a=4194308;return(ln.mode&Or)!==xi&&(a|=134217728),Ms(a,Da,e,t)}function E1(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Qf(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null;var u=4194308;(ln.mode&Or)!==xi&&(u|=134217728),Ms(u,Da,E1.bind(null,t,e),a)}function Co(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null,Ii(4,Da,E1.bind(null,t,e),a)}function Jd(e,t){return Mi().memoizedState=[e,t===void 0?null:t],e}function tc(e,t){var a=Ln();t=t===void 0?null:t;var u=a.memoizedState;return t!==null&&Wr(t,u[1])?u[0]:(a.memoizedState=[e,t],e)}function Wf(e,t){var a=Mi();t=t===void 0?null:t;var u=e();if(Jh){Z(!0);try{e()}finally{Z(!1)}}return a.memoizedState=[u,t],u}function tl(e,t){var a=Ln();t=t===void 0?null:t;var u=a.memoizedState;if(t!==null&&Wr(t,u[1]))return u[0];if(u=e(),Jh){Z(!0);try{e()}finally{Z(!1)}}return a.memoizedState=[u,t],u}function Jf(e,t){var a=Mi();return ep(a,e,t)}function Kd(e,t){var a=Ln();return eh(a,ci.memoizedState,e,t)}function Kf(e,t){var a=Ln();return ci===null?ep(a,e,t):eh(a,ci.memoizedState,e,t)}function ep(e,t,a){return a===void 0||(Wu&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=H1(),ln.lanes|=e,ed|=e,a)}function eh(e,t,a,u){return fs(a,t)?a:Mg.current!==null?(e=ep(e,a,u),fs(e,t)||(xa=!0),e):(Wu&42)===0?(xa=!0,e.memoizedState=a):(e=H1(),ln.lanes|=e,ed|=e,t)}function Zm(e,t,a,u,p){var m=en.p;en.p=m!==0&&m<io?m:io;var F=We.T,de={};We.T=de,ip(e,!1,t,a),de._updatedFibers=new Set;try{var Ce=p(),Me=We.S;if(Me!==null&&Me(de,Ce),Ce!==null&&typeof Ce=="object"&&typeof Ce.then=="function"){var Ze=k1(Ce,u);gr(e,t,Ze,Ga(e))}else gr(e,t,u,Ga(e))}catch(et){gr(e,t,{then:function(){},status:"rejected",reason:et},Ga(e))}finally{en.p=m,We.T=F,F===null&&de._updatedFibers&&(e=de._updatedFibers.size,de._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function nc(e,t,a,u){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var p=Qm(e).queue;Zm(e,p,t,uf,a===null?j:function(){return Wm(e),a(u)})}function Qm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:uf,baseState:uf,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:uf},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wm(e){We.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Qm(e).next.queue;gr(e,t,{},Ga(e))}function wo(){var e=Xd(!1);return e=Zm.bind(null,ln,e.queue,!0,!1),Mi().memoizedState=e,[!1,e]}function tp(){var e=ks(Gn)[0],t=Ln().memoizedState;return[typeof e=="boolean"?e:Kl(e),t]}function np(){var e=ec(Gn)[0],t=Ln().memoizedState;return[typeof e=="boolean"?e:Kl(e),t]}function Ua(){return hi(K0)}function ko(){var e=Mi(),t=fi.identifierPrefix;if(In){var a=Dc,u=Ec;a=(u&~(1<<32-ba(u)-1)).toString(32)+a,t="«"+t+"R"+a,a=Tv++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=x9++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t}function ic(){return Mi().memoizedState=Jm.bind(null,ln)}function Jm(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var u=Ga(a);e=bo(u);var p=Xs(a,e,u);p!==null&&(Ei(p,a,u),Qr(p,a,u)),a=Vd(),t!=null&&p!==null&&console.error("The seed argument is not enabled outside experimental channels."),e.payload={cache:a};return}a=a.return}}function Km(e,t,a){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=Ga(e);var p={lane:u,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};th(e)?ac(t,p):(p=Mm(e,t,p,u),p!==null&&(Ei(p,e,u),nh(p,t,u))),H(e,u)}function gu(e,t,a){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=Ga(e),gr(e,t,a,u),H(e,u)}function gr(e,t,a,u){var p={lane:u,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(th(e))ac(t,p);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=t.lastRenderedReducer,m!==null)){var F=We.H;We.H=Lr;try{var de=t.lastRenderedState,Ce=m(de,a);if(p.hasEagerState=!0,p.eagerState=Ce,fs(Ce,de))return Bf(e,t,p,0),fi===null&&Ud(),!1}catch{}finally{We.H=F}}if(a=Mm(e,t,p,u),a!==null)return Ei(a,e,u),nh(a,t,u),!0}return!1}function ip(e,t,a,u){if(We.T===null&&Zh===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),u={lane:2,revertLane:Dy(),action:u,hasEagerState:!1,eagerState:null,next:null},th(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Mm(e,a,u,2),t!==null&&Ei(t,e,2);H(e,2)}function th(e){var t=e.alternate;return e===ln||t!==null&&t===ln}function ac(e,t){Eg=kv=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function nh(e,t,a){if((a&4194048)!==0){var u=t.lanes;u&=e.pendingLanes,a|=u,t.lanes=a,xe(e,a)}}function Qi(e){var t=Cn;return e!=null&&(Cn=t===null?e:t.concat(e)),t}function mu(e,t,a){for(var u=Object.keys(e.props),p=0;p<u.length;p++){var m=u[p];if(m!=="children"&&m!=="key"){t===null&&(t=Gd(e,a.mode,0),t._debugInfo=Cn,t.return=a),yt(t,function(F){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F)},m);break}}}function yu(e){var t=B0;return B0+=1,Dg===null&&(Dg=Pm()),Ss(Dg,e,t)}function As(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function hn(e,t){throw t.$$typeof===jh?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
649
649
|
- Multiple copies of the "react" package is used.
|
|
650
650
|
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
651
651
|
- A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function Xn(e,t){var a=oe(e)||"Component";Nk[a]||(Nk[a]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
652
652
|
root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
653
653
|
<%s>{%s}</%s>`,t,t,a,t,a))}function Ci(e,t){var a=oe(e)||"Component";zk[a]||(zk[a]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
654
654
|
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
655
|
-
<%s>%s</%s>`,a,t,a))}function ih(e){function t(je,Le){if(e){var Be=je.deletions;Be===null?(je.deletions=[Le],je.flags|=16):Be.push(Le)}}function a(je,Le){if(!e)return null;for(;Le!==null;)t(je,Le),Le=Le.sibling;return null}function u(je){for(var Le=new Map;je!==null;)je.key!==null?Le.set(je.key,je):Le.set(je.index,je),je=je.sibling;return Le}function p(je,Le){return je=po(je,Le),je.index=0,je.sibling=null,je}function m(je,Le,Be){return je.index=Be,e?(Be=je.alternate,Be!==null?(Be=Be.index,Be<Le?(je.flags|=67108866,Le):Be):(je.flags|=67108866,Le)):(je.flags|=1048576,Le)}function F(je){return e&&je.alternate===null&&(je.flags|=67108866),je}function de(je,Le,Be,nt){return Le===null||Le.tag!==6?(Le=Ir(Be,je.mode,nt),Le.return=je,Le._debugOwner=je,Le._debugTask=je._debugTask,Le._debugInfo=Cn,Le):(Le=p(Le,Be),Le.return=je,Le._debugInfo=Cn,Le)}function Ce(je,Le,Be,nt){var kt=Be.type;return kt===hn?(Le=Ze(je,Le,Be.props.children,nt,Be.key),mu(Be,Le,je),Le):Le!==null&&(Le.elementType===kt||_1(Le,Be)||typeof kt=="object"&&kt!==null&&kt.$$typeof===ds&&Ju(kt)===Le.type)?(Le=p(Le,Be.props),As(Le,Be),Le.return=je,Le._debugOwner=Be._owner,Le._debugInfo=Cn,Le):(Le=Gd(Be,je.mode,nt),As(Le,Be),Le.return=je,Le._debugInfo=Cn,Le)}function Me(je,Le,Be,nt){return Le===null||Le.tag!==4||Le.stateNode.containerInfo!==Be.containerInfo||Le.stateNode.implementation!==Be.implementation?(Le=Om(Be,je.mode,nt),Le.return=je,Le._debugInfo=Cn,Le):(Le=p(Le,Be.children||[]),Le.return=je,Le._debugInfo=Cn,Le)}function Ze(je,Le,Be,nt,kt){return Le===null||Le.tag!==7?(Le=Vr(Be,je.mode,nt,kt),Le.return=je,Le._debugOwner=je,Le._debugTask=je._debugTask,Le._debugInfo=Cn,Le):(Le=p(Le,Be),Le.return=je,Le._debugInfo=Cn,Le)}function et(je,Le,Be){if(typeof Le=="string"&&Le!==""||typeof Le=="number"||typeof Le=="bigint")return Le=Ir(""+Le,je.mode,Be),Le.return=je,Le._debugOwner=je,Le._debugTask=je._debugTask,Le._debugInfo=Cn,Le;if(typeof Le=="object"&&Le!==null){switch(Le.$$typeof){case pl:return Be=Gd(Le,je.mode,Be),As(Be,Le),Be.return=je,je=Qi(Le._debugInfo),Be._debugInfo=Cn,Cn=je,Be;case Cc:return Le=Om(Le,je.mode,Be),Le.return=je,Le._debugInfo=Cn,Le;case ds:var nt=Qi(Le._debugInfo);return Le=Ju(Le),je=et(je,Le,Be),Cn=nt,je}if(rn(Le)||$(Le))return Be=Vr(Le,je.mode,Be,null),Be.return=je,Be._debugOwner=je,Be._debugTask=je._debugTask,je=Qi(Le._debugInfo),Be._debugInfo=Cn,Cn=je,Be;if(typeof Le.then=="function")return nt=Qi(Le._debugInfo),je=et(je,yu(Le),Be),Cn=nt,je;if(Le.$$typeof===Ls)return et(je,Pd(je,Le),Be);dn(je,Le)}return typeof Le=="function"&&Xn(je,Le),typeof Le=="symbol"&&Ci(je,Le),null}function Ye(je,Le,Be,nt){var kt=Le!==null?Le.key:null;if(typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint")return kt!==null?null:de(je,Le,""+Be,nt);if(typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case pl:return Be.key===kt?(kt=Qi(Be._debugInfo),je=Ce(je,Le,Be,nt),Cn=kt,je):null;case Cc:return Be.key===kt?Me(je,Le,Be,nt):null;case ds:return kt=Qi(Be._debugInfo),Be=Ju(Be),je=Ye(je,Le,Be,nt),Cn=kt,je}if(rn(Be)||$(Be))return kt!==null?null:(kt=Qi(Be._debugInfo),je=Ze(je,Le,Be,nt,null),Cn=kt,je);if(typeof Be.then=="function")return kt=Qi(Be._debugInfo),je=Ye(je,Le,yu(Be),nt),Cn=kt,je;if(Be.$$typeof===Ls)return Ye(je,Le,Pd(je,Be),nt);dn(je,Be)}return typeof Be=="function"&&Xn(je,Be),typeof Be=="symbol"&&Ci(je,Be),null}function tt(je,Le,Be,nt,kt){if(typeof nt=="string"&&nt!==""||typeof nt=="number"||typeof nt=="bigint")return je=je.get(Be)||null,de(Le,je,""+nt,kt);if(typeof nt=="object"&&nt!==null){switch(nt.$$typeof){case pl:return Be=je.get(nt.key===null?Be:nt.key)||null,je=Qi(nt._debugInfo),Le=Ce(Le,Be,nt,kt),Cn=je,Le;case Cc:return je=je.get(nt.key===null?Be:nt.key)||null,Me(Le,je,nt,kt);case ds:var fn=Qi(nt._debugInfo);return nt=Ju(nt),Le=tt(je,Le,Be,nt,kt),Cn=fn,Le}if(rn(nt)||$(nt))return Be=je.get(Be)||null,je=Qi(nt._debugInfo),Le=Ze(Le,Be,nt,kt,null),Cn=je,Le;if(typeof nt.then=="function")return fn=Qi(nt._debugInfo),Le=tt(je,Le,Be,yu(nt),kt),Cn=fn,Le;if(nt.$$typeof===Ls)return tt(je,Le,Be,Pd(Le,nt),kt);dn(Le,nt)}return typeof nt=="function"&&Xn(Le,nt),typeof nt=="symbol"&&Ci(Le,nt),null}function $t(je,Le,Be,nt){if(typeof Be!="object"||Be===null)return nt;switch(Be.$$typeof){case pl:case Cc:x(je,Le,Be);var kt=Be.key;if(typeof kt!="string")break;if(nt===null){nt=new Set,nt.add(kt);break}if(!nt.has(kt)){nt.add(kt);break}yt(Le,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",kt)});break;case ds:Be=Ju(Be),$t(je,Le,Be,nt)}return nt}function tn(je,Le,Be,nt){for(var kt=null,fn=null,Gt=null,pn=Le,bn=Le=0,_i=null;pn!==null&&bn<Be.length;bn++){pn.index>bn?(_i=pn,pn=null):_i=pn.sibling;var Xi=Ye(je,pn,Be[bn],nt);if(Xi===null){pn===null&&(pn=_i);break}kt=$t(je,Xi,Be[bn],kt),e&&pn&&Xi.alternate===null&&t(je,pn),Le=m(Xi,Le,bn),Gt===null?fn=Xi:Gt.sibling=Xi,Gt=Xi,pn=_i}if(bn===Be.length)return a(je,pn),In&&Fl(je,bn),fn;if(pn===null){for(;bn<Be.length;bn++)pn=et(je,Be[bn],nt),pn!==null&&(kt=$t(je,pn,Be[bn],kt),Le=m(pn,Le,bn),Gt===null?fn=pn:Gt.sibling=pn,Gt=pn);return In&&Fl(je,bn),fn}for(pn=u(pn);bn<Be.length;bn++)_i=tt(pn,je,bn,Be[bn],nt),_i!==null&&(kt=$t(je,_i,Be[bn],kt),e&&_i.alternate!==null&&pn.delete(_i.key===null?bn:_i.key),Le=m(_i,Le,bn),Gt===null?fn=_i:Gt.sibling=_i,Gt=_i);return e&&pn.forEach(function(Hc){return t(je,Hc)}),In&&Fl(je,bn),fn}function pi(je,Le,Be,nt){if(Be==null)throw Error("An iterable object provided no iterator.");for(var kt=null,fn=null,Gt=Le,pn=Le=0,bn=null,_i=null,Xi=Be.next();Gt!==null&&!Xi.done;pn++,Xi=Be.next()){Gt.index>pn?(bn=Gt,Gt=null):bn=Gt.sibling;var Hc=Ye(je,Gt,Xi.value,nt);if(Hc===null){Gt===null&&(Gt=bn);break}_i=$t(je,Hc,Xi.value,_i),e&&Gt&&Hc.alternate===null&&t(je,Gt),Le=m(Hc,Le,pn),fn===null?kt=Hc:fn.sibling=Hc,fn=Hc,Gt=bn}if(Xi.done)return a(je,Gt),In&&Fl(je,pn),kt;if(Gt===null){for(;!Xi.done;pn++,Xi=Be.next())Gt=et(je,Xi.value,nt),Gt!==null&&(_i=$t(je,Gt,Xi.value,_i),Le=m(Gt,Le,pn),fn===null?kt=Gt:fn.sibling=Gt,fn=Gt);return In&&Fl(je,pn),kt}for(Gt=u(Gt);!Xi.done;pn++,Xi=Be.next())bn=tt(Gt,je,pn,Xi.value,nt),bn!==null&&(_i=$t(je,bn,Xi.value,_i),e&&bn.alternate!==null&&Gt.delete(bn.key===null?pn:bn.key),Le=m(bn,Le,pn),fn===null?kt=bn:fn.sibling=bn,fn=bn);return e&&Gt.forEach(function(F9){return t(je,F9)}),In&&Fl(je,pn),kt}function Rn(je,Le,Be,nt){if(typeof Be=="object"&&Be!==null&&Be.type===hn&&Be.key===null&&(mu(Be,null,je),Be=Be.props.children),typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case pl:var kt=Qi(Be._debugInfo);e:{for(var fn=Be.key;Le!==null;){if(Le.key===fn){if(fn=Be.type,fn===hn){if(Le.tag===7){a(je,Le.sibling),nt=p(Le,Be.props.children),nt.return=je,nt._debugOwner=Be._owner,nt._debugInfo=Cn,mu(Be,nt,je),je=nt;break e}}else if(Le.elementType===fn||_1(Le,Be)||typeof fn=="object"&&fn!==null&&fn.$$typeof===ds&&Ju(fn)===Le.type){a(je,Le.sibling),nt=p(Le,Be.props),As(nt,Be),nt.return=je,nt._debugOwner=Be._owner,nt._debugInfo=Cn,je=nt;break e}a(je,Le);break}else t(je,Le);Le=Le.sibling}Be.type===hn?(nt=Vr(Be.props.children,je.mode,nt,Be.key),nt.return=je,nt._debugOwner=je,nt._debugTask=je._debugTask,nt._debugInfo=Cn,mu(Be,nt,je),je=nt):(nt=Gd(Be,je.mode,nt),As(nt,Be),nt.return=je,nt._debugInfo=Cn,je=nt)}return je=F(je),Cn=kt,je;case Cc:e:{for(kt=Be,Be=kt.key;Le!==null;){if(Le.key===Be)if(Le.tag===4&&Le.stateNode.containerInfo===kt.containerInfo&&Le.stateNode.implementation===kt.implementation){a(je,Le.sibling),nt=p(Le,kt.children||[]),nt.return=je,je=nt;break e}else{a(je,Le);break}else t(je,Le);Le=Le.sibling}nt=Om(kt,je.mode,nt),nt.return=je,je=nt}return F(je);case ds:return kt=Qi(Be._debugInfo),Be=Ju(Be),je=Rn(je,Le,Be,nt),Cn=kt,je}if(rn(Be))return kt=Qi(Be._debugInfo),je=tn(je,Le,Be,nt),Cn=kt,je;if($(Be)){if(kt=Qi(Be._debugInfo),fn=$(Be),typeof fn!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Gt=fn.call(Be);return Gt===Be?(je.tag!==0||Object.prototype.toString.call(je.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Gt)!=="[object Generator]")&&(Lk||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),Lk=!0):Be.entries!==fn||E_||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),E_=!0),je=pi(je,Le,Gt,nt),Cn=kt,je}if(typeof Be.then=="function")return kt=Qi(Be._debugInfo),je=Rn(je,Le,yu(Be),nt),Cn=kt,je;if(Be.$$typeof===Ls)return Rn(je,Le,Pd(je,Be),nt);dn(je,Be)}return typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint"?(kt=""+Be,Le!==null&&Le.tag===6?(a(je,Le.sibling),nt=p(Le,kt),nt.return=je,je=nt):(a(je,Le),nt=Ir(kt,je.mode,nt),nt.return=je,nt._debugOwner=je,nt._debugTask=je._debugTask,nt._debugInfo=Cn,je=nt),F(je)):(typeof Be=="function"&&Xn(je,Be),typeof Be=="symbol"&&Ci(je,Be),a(je,Le))}return function(je,Le,Be,nt){var kt=Cn;Cn=null;try{B0=0;var fn=Rn(je,Le,Be,nt);return Dg=null,fn}catch(_i){if(_i===L0||_i===Sv)throw _i;var Gt=ee(29,_i,null,je.mode);Gt.lanes=nt,Gt.return=je;var pn=Gt._debugInfo=Cn;if(Gt._debugOwner=je._debugOwner,Gt._debugTask=je._debugTask,pn!=null){for(var bn=pn.length-1;0<=bn;bn--)if(typeof pn[bn].stack=="string"){Gt._debugOwner=pn[bn],Gt._debugTask=pn[bn].debugTask;break}}return Gt}finally{Cn=kt}}}function os(e){var t=e.alternate;W(fa,fa.current&jg,e),W(Jo,e,e),kl===null&&(t===null||Mg.current!==null||t.memoizedState!==null)&&(kl=e)}function nl(e){if(e.tag===22){if(W(fa,fa.current,e),W(Jo,e,e),kl===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(kl=e)}}else Js(e)}function Js(e){W(fa,fa.current,e),W(Jo,Jo.current,e)}function rs(e){z(Jo,e),kl===e&&(kl=null),z(fa,e)}function mr(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data===zc||Uo(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ey(e){if(e!==null&&typeof e!="function"){var t=String(e);Xk.has(t)||(Xk.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function wi(e,t,a,u){var p=e.memoizedState,m=a(u,p);if(e.mode&Xa){Z(!0);try{m=a(u,p)}finally{Z(!1)}}m===void 0&&(t=I(t)||"Component",Ik.has(t)||(Ik.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),p=m==null?p:xn({},p,m),e.memoizedState=p,e.lanes===0&&(e.updateQueue.baseState=p)}function ap(e,t,a,u,p,m,F){var de=e.stateNode;if(typeof de.shouldComponentUpdate=="function"){if(a=de.shouldComponentUpdate(u,m,F),e.mode&Xa){Z(!0);try{a=de.shouldComponentUpdate(u,m,F)}finally{Z(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",I(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Bd(a,u)||!Bd(p,m):!0}function sp(e,t,a,u){var p=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,u),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,u),t.state!==p&&(e=oe(e)||"Component",Hk.has(e)||(Hk.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),D_.enqueueReplaceState(t,t.state,null))}function il(e,t){var a=t;if("ref"in t){a={};for(var u in t)u!=="ref"&&(a[u]=t[u])}if(e=e.defaultProps){a===t&&(a=xn({},a));for(var p in e)a[p]===void 0&&(a[p]=e[p])}return a}function ty(e){O_(e),console.warn(`%s
|
|
655
|
+
<%s>%s</%s>`,a,t,a))}function ih(e){function t(je,Le){if(e){var Be=je.deletions;Be===null?(je.deletions=[Le],je.flags|=16):Be.push(Le)}}function a(je,Le){if(!e)return null;for(;Le!==null;)t(je,Le),Le=Le.sibling;return null}function u(je){for(var Le=new Map;je!==null;)je.key!==null?Le.set(je.key,je):Le.set(je.index,je),je=je.sibling;return Le}function p(je,Le){return je=po(je,Le),je.index=0,je.sibling=null,je}function m(je,Le,Be){return je.index=Be,e?(Be=je.alternate,Be!==null?(Be=Be.index,Be<Le?(je.flags|=67108866,Le):Be):(je.flags|=67108866,Le)):(je.flags|=1048576,Le)}function F(je){return e&&je.alternate===null&&(je.flags|=67108866),je}function de(je,Le,Be,nt){return Le===null||Le.tag!==6?(Le=Ir(Be,je.mode,nt),Le.return=je,Le._debugOwner=je,Le._debugTask=je._debugTask,Le._debugInfo=Cn,Le):(Le=p(Le,Be),Le.return=je,Le._debugInfo=Cn,Le)}function Ce(je,Le,Be,nt){var kt=Be.type;return kt===fn?(Le=Ze(je,Le,Be.props.children,nt,Be.key),mu(Be,Le,je),Le):Le!==null&&(Le.elementType===kt||_1(Le,Be)||typeof kt=="object"&&kt!==null&&kt.$$typeof===ds&&Ju(kt)===Le.type)?(Le=p(Le,Be.props),As(Le,Be),Le.return=je,Le._debugOwner=Be._owner,Le._debugInfo=Cn,Le):(Le=Gd(Be,je.mode,nt),As(Le,Be),Le.return=je,Le._debugInfo=Cn,Le)}function Me(je,Le,Be,nt){return Le===null||Le.tag!==4||Le.stateNode.containerInfo!==Be.containerInfo||Le.stateNode.implementation!==Be.implementation?(Le=Om(Be,je.mode,nt),Le.return=je,Le._debugInfo=Cn,Le):(Le=p(Le,Be.children||[]),Le.return=je,Le._debugInfo=Cn,Le)}function Ze(je,Le,Be,nt,kt){return Le===null||Le.tag!==7?(Le=Vr(Be,je.mode,nt,kt),Le.return=je,Le._debugOwner=je,Le._debugTask=je._debugTask,Le._debugInfo=Cn,Le):(Le=p(Le,Be),Le.return=je,Le._debugInfo=Cn,Le)}function et(je,Le,Be){if(typeof Le=="string"&&Le!==""||typeof Le=="number"||typeof Le=="bigint")return Le=Ir(""+Le,je.mode,Be),Le.return=je,Le._debugOwner=je,Le._debugTask=je._debugTask,Le._debugInfo=Cn,Le;if(typeof Le=="object"&&Le!==null){switch(Le.$$typeof){case pl:return Be=Gd(Le,je.mode,Be),As(Be,Le),Be.return=je,je=Qi(Le._debugInfo),Be._debugInfo=Cn,Cn=je,Be;case Cc:return Le=Om(Le,je.mode,Be),Le.return=je,Le._debugInfo=Cn,Le;case ds:var nt=Qi(Le._debugInfo);return Le=Ju(Le),je=et(je,Le,Be),Cn=nt,je}if(rn(Le)||$(Le))return Be=Vr(Le,je.mode,Be,null),Be.return=je,Be._debugOwner=je,Be._debugTask=je._debugTask,je=Qi(Le._debugInfo),Be._debugInfo=Cn,Cn=je,Be;if(typeof Le.then=="function")return nt=Qi(Le._debugInfo),je=et(je,yu(Le),Be),Cn=nt,je;if(Le.$$typeof===Ls)return et(je,Pd(je,Le),Be);hn(je,Le)}return typeof Le=="function"&&Xn(je,Le),typeof Le=="symbol"&&Ci(je,Le),null}function Ye(je,Le,Be,nt){var kt=Le!==null?Le.key:null;if(typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint")return kt!==null?null:de(je,Le,""+Be,nt);if(typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case pl:return Be.key===kt?(kt=Qi(Be._debugInfo),je=Ce(je,Le,Be,nt),Cn=kt,je):null;case Cc:return Be.key===kt?Me(je,Le,Be,nt):null;case ds:return kt=Qi(Be._debugInfo),Be=Ju(Be),je=Ye(je,Le,Be,nt),Cn=kt,je}if(rn(Be)||$(Be))return kt!==null?null:(kt=Qi(Be._debugInfo),je=Ze(je,Le,Be,nt,null),Cn=kt,je);if(typeof Be.then=="function")return kt=Qi(Be._debugInfo),je=Ye(je,Le,yu(Be),nt),Cn=kt,je;if(Be.$$typeof===Ls)return Ye(je,Le,Pd(je,Be),nt);hn(je,Be)}return typeof Be=="function"&&Xn(je,Be),typeof Be=="symbol"&&Ci(je,Be),null}function tt(je,Le,Be,nt,kt){if(typeof nt=="string"&&nt!==""||typeof nt=="number"||typeof nt=="bigint")return je=je.get(Be)||null,de(Le,je,""+nt,kt);if(typeof nt=="object"&&nt!==null){switch(nt.$$typeof){case pl:return Be=je.get(nt.key===null?Be:nt.key)||null,je=Qi(nt._debugInfo),Le=Ce(Le,Be,nt,kt),Cn=je,Le;case Cc:return je=je.get(nt.key===null?Be:nt.key)||null,Me(Le,je,nt,kt);case ds:var pn=Qi(nt._debugInfo);return nt=Ju(nt),Le=tt(je,Le,Be,nt,kt),Cn=pn,Le}if(rn(nt)||$(nt))return Be=je.get(Be)||null,je=Qi(nt._debugInfo),Le=Ze(Le,Be,nt,kt,null),Cn=je,Le;if(typeof nt.then=="function")return pn=Qi(nt._debugInfo),Le=tt(je,Le,Be,yu(nt),kt),Cn=pn,Le;if(nt.$$typeof===Ls)return tt(je,Le,Be,Pd(Le,nt),kt);hn(Le,nt)}return typeof nt=="function"&&Xn(Le,nt),typeof nt=="symbol"&&Ci(Le,nt),null}function $t(je,Le,Be,nt){if(typeof Be!="object"||Be===null)return nt;switch(Be.$$typeof){case pl:case Cc:x(je,Le,Be);var kt=Be.key;if(typeof kt!="string")break;if(nt===null){nt=new Set,nt.add(kt);break}if(!nt.has(kt)){nt.add(kt);break}yt(Le,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",kt)});break;case ds:Be=Ju(Be),$t(je,Le,Be,nt)}return nt}function tn(je,Le,Be,nt){for(var kt=null,pn=null,Gt=null,gn=Le,bn=Le=0,_i=null;gn!==null&&bn<Be.length;bn++){gn.index>bn?(_i=gn,gn=null):_i=gn.sibling;var Xi=Ye(je,gn,Be[bn],nt);if(Xi===null){gn===null&&(gn=_i);break}kt=$t(je,Xi,Be[bn],kt),e&&gn&&Xi.alternate===null&&t(je,gn),Le=m(Xi,Le,bn),Gt===null?pn=Xi:Gt.sibling=Xi,Gt=Xi,gn=_i}if(bn===Be.length)return a(je,gn),In&&Fl(je,bn),pn;if(gn===null){for(;bn<Be.length;bn++)gn=et(je,Be[bn],nt),gn!==null&&(kt=$t(je,gn,Be[bn],kt),Le=m(gn,Le,bn),Gt===null?pn=gn:Gt.sibling=gn,Gt=gn);return In&&Fl(je,bn),pn}for(gn=u(gn);bn<Be.length;bn++)_i=tt(gn,je,bn,Be[bn],nt),_i!==null&&(kt=$t(je,_i,Be[bn],kt),e&&_i.alternate!==null&&gn.delete(_i.key===null?bn:_i.key),Le=m(_i,Le,bn),Gt===null?pn=_i:Gt.sibling=_i,Gt=_i);return e&&gn.forEach(function(Hc){return t(je,Hc)}),In&&Fl(je,bn),pn}function pi(je,Le,Be,nt){if(Be==null)throw Error("An iterable object provided no iterator.");for(var kt=null,pn=null,Gt=Le,gn=Le=0,bn=null,_i=null,Xi=Be.next();Gt!==null&&!Xi.done;gn++,Xi=Be.next()){Gt.index>gn?(bn=Gt,Gt=null):bn=Gt.sibling;var Hc=Ye(je,Gt,Xi.value,nt);if(Hc===null){Gt===null&&(Gt=bn);break}_i=$t(je,Hc,Xi.value,_i),e&&Gt&&Hc.alternate===null&&t(je,Gt),Le=m(Hc,Le,gn),pn===null?kt=Hc:pn.sibling=Hc,pn=Hc,Gt=bn}if(Xi.done)return a(je,Gt),In&&Fl(je,gn),kt;if(Gt===null){for(;!Xi.done;gn++,Xi=Be.next())Gt=et(je,Xi.value,nt),Gt!==null&&(_i=$t(je,Gt,Xi.value,_i),Le=m(Gt,Le,gn),pn===null?kt=Gt:pn.sibling=Gt,pn=Gt);return In&&Fl(je,gn),kt}for(Gt=u(Gt);!Xi.done;gn++,Xi=Be.next())bn=tt(Gt,je,gn,Xi.value,nt),bn!==null&&(_i=$t(je,bn,Xi.value,_i),e&&bn.alternate!==null&&Gt.delete(bn.key===null?gn:bn.key),Le=m(bn,Le,gn),pn===null?kt=bn:pn.sibling=bn,pn=bn);return e&&Gt.forEach(function(F9){return t(je,F9)}),In&&Fl(je,gn),kt}function Rn(je,Le,Be,nt){if(typeof Be=="object"&&Be!==null&&Be.type===fn&&Be.key===null&&(mu(Be,null,je),Be=Be.props.children),typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case pl:var kt=Qi(Be._debugInfo);e:{for(var pn=Be.key;Le!==null;){if(Le.key===pn){if(pn=Be.type,pn===fn){if(Le.tag===7){a(je,Le.sibling),nt=p(Le,Be.props.children),nt.return=je,nt._debugOwner=Be._owner,nt._debugInfo=Cn,mu(Be,nt,je),je=nt;break e}}else if(Le.elementType===pn||_1(Le,Be)||typeof pn=="object"&&pn!==null&&pn.$$typeof===ds&&Ju(pn)===Le.type){a(je,Le.sibling),nt=p(Le,Be.props),As(nt,Be),nt.return=je,nt._debugOwner=Be._owner,nt._debugInfo=Cn,je=nt;break e}a(je,Le);break}else t(je,Le);Le=Le.sibling}Be.type===fn?(nt=Vr(Be.props.children,je.mode,nt,Be.key),nt.return=je,nt._debugOwner=je,nt._debugTask=je._debugTask,nt._debugInfo=Cn,mu(Be,nt,je),je=nt):(nt=Gd(Be,je.mode,nt),As(nt,Be),nt.return=je,nt._debugInfo=Cn,je=nt)}return je=F(je),Cn=kt,je;case Cc:e:{for(kt=Be,Be=kt.key;Le!==null;){if(Le.key===Be)if(Le.tag===4&&Le.stateNode.containerInfo===kt.containerInfo&&Le.stateNode.implementation===kt.implementation){a(je,Le.sibling),nt=p(Le,kt.children||[]),nt.return=je,je=nt;break e}else{a(je,Le);break}else t(je,Le);Le=Le.sibling}nt=Om(kt,je.mode,nt),nt.return=je,je=nt}return F(je);case ds:return kt=Qi(Be._debugInfo),Be=Ju(Be),je=Rn(je,Le,Be,nt),Cn=kt,je}if(rn(Be))return kt=Qi(Be._debugInfo),je=tn(je,Le,Be,nt),Cn=kt,je;if($(Be)){if(kt=Qi(Be._debugInfo),pn=$(Be),typeof pn!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Gt=pn.call(Be);return Gt===Be?(je.tag!==0||Object.prototype.toString.call(je.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Gt)!=="[object Generator]")&&(Lk||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),Lk=!0):Be.entries!==pn||E_||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),E_=!0),je=pi(je,Le,Gt,nt),Cn=kt,je}if(typeof Be.then=="function")return kt=Qi(Be._debugInfo),je=Rn(je,Le,yu(Be),nt),Cn=kt,je;if(Be.$$typeof===Ls)return Rn(je,Le,Pd(je,Be),nt);hn(je,Be)}return typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint"?(kt=""+Be,Le!==null&&Le.tag===6?(a(je,Le.sibling),nt=p(Le,kt),nt.return=je,je=nt):(a(je,Le),nt=Ir(kt,je.mode,nt),nt.return=je,nt._debugOwner=je,nt._debugTask=je._debugTask,nt._debugInfo=Cn,je=nt),F(je)):(typeof Be=="function"&&Xn(je,Be),typeof Be=="symbol"&&Ci(je,Be),a(je,Le))}return function(je,Le,Be,nt){var kt=Cn;Cn=null;try{B0=0;var pn=Rn(je,Le,Be,nt);return Dg=null,pn}catch(_i){if(_i===L0||_i===Sv)throw _i;var Gt=ee(29,_i,null,je.mode);Gt.lanes=nt,Gt.return=je;var gn=Gt._debugInfo=Cn;if(Gt._debugOwner=je._debugOwner,Gt._debugTask=je._debugTask,gn!=null){for(var bn=gn.length-1;0<=bn;bn--)if(typeof gn[bn].stack=="string"){Gt._debugOwner=gn[bn],Gt._debugTask=gn[bn].debugTask;break}}return Gt}finally{Cn=kt}}}function os(e){var t=e.alternate;W(fa,fa.current&jg,e),W(Jo,e,e),kl===null&&(t===null||Mg.current!==null||t.memoizedState!==null)&&(kl=e)}function nl(e){if(e.tag===22){if(W(fa,fa.current,e),W(Jo,e,e),kl===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(kl=e)}}else Js(e)}function Js(e){W(fa,fa.current,e),W(Jo,Jo.current,e)}function rs(e){z(Jo,e),kl===e&&(kl=null),z(fa,e)}function mr(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data===zc||Uo(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ey(e){if(e!==null&&typeof e!="function"){var t=String(e);Xk.has(t)||(Xk.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function wi(e,t,a,u){var p=e.memoizedState,m=a(u,p);if(e.mode&Xa){Z(!0);try{m=a(u,p)}finally{Z(!1)}}m===void 0&&(t=I(t)||"Component",Ik.has(t)||(Ik.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),p=m==null?p:xn({},p,m),e.memoizedState=p,e.lanes===0&&(e.updateQueue.baseState=p)}function ap(e,t,a,u,p,m,F){var de=e.stateNode;if(typeof de.shouldComponentUpdate=="function"){if(a=de.shouldComponentUpdate(u,m,F),e.mode&Xa){Z(!0);try{a=de.shouldComponentUpdate(u,m,F)}finally{Z(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",I(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Bd(a,u)||!Bd(p,m):!0}function sp(e,t,a,u){var p=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,u),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,u),t.state!==p&&(e=oe(e)||"Component",Hk.has(e)||(Hk.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),D_.enqueueReplaceState(t,t.state,null))}function il(e,t){var a=t;if("ref"in t){a={};for(var u in t)u!=="ref"&&(a[u]=t[u])}if(e=e.defaultProps){a===t&&(a=xn({},a));for(var p in e)a[p]===void 0&&(a[p]=e[p])}return a}function ty(e){O_(e),console.warn(`%s
|
|
656
656
|
|
|
657
657
|
%s
|
|
658
658
|
`,Lg?"An error occurred in the <"+Lg+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
@@ -710,7 +710,7 @@ act(() => {
|
|
|
710
710
|
});
|
|
711
711
|
/* assert on the output */
|
|
712
712
|
|
|
713
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,oe(e))})}function Ds(e){e!==Pg&&e.next===null&&(Pg===null?Rv=Pg=e:Pg=Pg.next=e),Nv=!0,We.actQueue!==null?X_||(X_=!0,Yi()):F_||(F_=!0,Yi())}function gc(e,t){if(!Z_&&Nv){Z_=!0;do for(var a=!1,u=Rv;u!==null;){if(e!==0){var p=u.pendingLanes;if(p===0)var m=0;else{var F=u.suspendedLanes,de=u.pingedLanes;m=(1<<31-ba(42|e)+1)-1,m&=p&~(F&~de),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(a=!0,Up(u,m))}else m=Dn,m=ge(u,u===fi?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==lf),(m&3)===0||ve(u,m)||(a=!0,Up(u,m));u=u.next}while(a);Z_=!1}}function zp(){Bp()}function Bp(){Nv=X_=F_=!1;var e=0;of!==0&&(Mu()&&(e=of),of=0);for(var t=Go(),a=null,u=Rv;u!==null;){var p=u.next,m=Lo(u,t);m===0?(u.next=null,a===null?Rv=p:a.next=p,p===null&&(Pg=a)):(a=u,(e!==0||(m&3)!==0)&&(Nv=!0)),u=p}gc(e)}function Lo(e,t){for(var a=e.suspendedLanes,u=e.pingedLanes,p=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var F=31-ba(m),de=1<<F,Ce=p[F];Ce===-1?((de&a)===0||(de&u)!==0)&&(p[F]=_e(de,t)):Ce<=t&&(e.expiredLanes|=de),m&=~de}if(t=fi,a=Dn,a=ge(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==lf),u=e.callbackNode,a===0||e===t&&(ii===ef||ii===tf)||e.cancelPendingCommit!==null)return u!==null&&Hp(u),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ve(e,a)){if(t=a&-a,t!==e.callbackPriority||We.actQueue!==null&&u!==Q_)Hp(u);else return t;switch(De(a)){case ua:case io:a=zh;break;case Ar:a=Gu;break;case rg:a=Bh;break;default:a=Gu}return u=Di.bind(null,e),We.actQueue!==null?(We.actQueue.push(u),a=Q_):a=ng(a,u),e.callbackPriority=t,e.callbackNode=a,t}return u!==null&&Hp(u),e.callbackPriority=2,e.callbackNode=null,2}function Di(e,t){if(xv=vv=!1,Oa!==af&&Oa!==P_)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Cu()&&e.callbackNode!==a)return null;var u=Dn;return u=ge(e,e===fi?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==lf),u===0?null:(qi(e,u,t),Lo(e,Go()),e.callbackNode!=null&&e.callbackNode===a?Di.bind(null,e):null)}function Up(e,t){if(Cu())return null;vv=xv,xv=!1,qi(e,t,!0)}function Hp(e){e!==Q_&&e!==null&&i_(e)}function Yi(){We.actQueue!==null&&We.actQueue.push(function(){return Bp(),null}),I9(function(){(Kn&(ms|Nr))!==ao?ng(ig,zp):Bp()})}function Dy(){return of===0&&(of=we()),of}function Oy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(ye(e,"action"),eu(""+e))}function jy(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function bi(e,t,a,u,p){if(t==="submit"&&a&&a.stateNode===p){var m=Oy((p[Ya]||null).action),F=u.submitter;F&&(t=(t=F[Ya]||null)?Oy(t.formAction):F.getAttribute("formAction"),t!==null&&(m=t,F=null));var de=new Zt("action","action",null,u,p);e.push({event:de,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(of!==0){var Ce=F?jy(p,F):new FormData(p),Me={pending:!0,data:Ce,method:p.method,action:m};Object.freeze(Me),nc(a,Me,null,Ce)}}else typeof m=="function"&&(de.preventDefault(),Ce=F?jy(p,F):new FormData(p),Me={pending:!0,data:Ce,method:p.method,action:m},Object.freeze(Me),nc(a,Me,m,Ce))},currentTarget:p}]})}}function sa(e,t,a){e.currentTarget=a;try{t(e)}catch(u){O_(u)}e.currentTarget=null}function Ro(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var u=e[a];e:{var p=void 0,m=u.event;if(u=u.listeners,t)for(var F=u.length-1;0<=F;F--){var de=u[F],Ce=de.instance,Me=de.currentTarget;if(de=de.listener,Ce!==p&&m.isPropagationStopped())break e;Ce!==null?yt(Ce,sa,m,de,Me):sa(m,de,Me),p=Ce}else for(F=0;F<u.length;F++){if(de=u[F],Ce=de.instance,Me=de.currentTarget,de=de.listener,Ce!==p&&m.isPropagationStopped())break e;Ce!==null?yt(Ce,sa,m,de,Me):sa(m,de,Me),p=Ce}}}}function wn(e,t){W_.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[s0];a===void 0&&(a=t[s0]=new Set);var u=e+"__bubble";a.has(u)||(Gp(t,e,2,!1),a.add(u))}function $p(e,t,a){W_.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var u=0;t&&(u|=4),Gp(a,e,u,t)}function Ly(e){if(!e[zv]){e[zv]=!0,sv.forEach(function(a){a!=="selectionchange"&&(W_.has(a)||$p(a,!1,e),$p(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zv]||(t[zv]=!0,$p("selectionchange",!1,t))}}function Gp(e,t,a,u){switch(Jp(t)){case ua:var p=e_;break;case io:p=Wp;break;default:p=hl}a=p.bind(null,t,a,e),p=void 0,!Ie||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(p=!0),u?p!==void 0?e.addEventListener(t,a,{capture:!0,passive:p}):e.addEventListener(t,a,!0):p!==void 0?e.addEventListener(t,a,{passive:p}):e.addEventListener(t,a,!1)}function ka(e,t,a,u,p){var m=u;if((t&1)===0&&(t&2)===0&&u!==null)e:for(;;){if(u===null)return;var F=u.tag;if(F===3||F===4){var de=u.stateNode.containerInfo;if(de===p)break;if(F===4)for(F=u.return;F!==null;){var Ce=F.tag;if((Ce===3||Ce===4)&&F.stateNode.containerInfo===p)return;F=F.return}for(;de!==null;){if(F=qe(de),F===null)return;if(Ce=F.tag,Ce===5||Ce===6||Ce===26||Ce===27){u=m=F;continue e}de=de.parentNode}}u=u.return}jf(function(){var Me=m,Ze=Pl(a),et=[];e:{var Ye=tk.get(e);if(Ye!==void 0){var tt=Zt,$t=e;switch(e){case"keypress":if(tu(a)===0)break e;case"keydown":case"keyup":tt=W8;break;case"focusin":$t="focus",tt=Nn;break;case"focusout":$t="blur",tt=Nn;break;case"beforeblur":case"afterblur":tt=Nn;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":tt=Sn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":tt=Kt;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":tt=e9;break;case W6:case J6:case K6:tt=l_;break;case ek:tt=n9;break;case"scroll":case"scrollend":tt=Pe;break;case"wheel":tt=a9;break;case"copy":case"cut":case"paste":tt=I8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":tt=V6;break;case"toggle":case"beforetoggle":tt=o9}var tn=(t&4)!==0,pi=!tn&&(e==="scroll"||e==="scrollend"),Rn=tn?Ye!==null?Ye+"Capture":null:Ye;tn=[];for(var je=Me,Le;je!==null;){var Be=je;if(Le=Be.stateNode,Be=Be.tag,Be!==5&&Be!==26&&Be!==27||Le===null||Rn===null||(Be=or(je,Rn),Be!=null&&tn.push(Ta(je,Be,Le))),pi)break;je=je.return}0<tn.length&&(Ye=new tt(Ye,$t,null,a,Ze),et.push({event:Ye,listeners:tn}))}}if((t&7)===0){e:{if(Ye=e==="mouseover"||e==="pointerover",tt=e==="mouseout"||e==="pointerout",Ye&&a!==b&&($t=a.relatedTarget||a.fromElement)&&(qe($t)||$t[vl]))break e;if((tt||Ye)&&(Ye=Ze.window===Ze?Ze:(Ye=Ze.ownerDocument)?Ye.defaultView||Ye.parentWindow:window,tt?($t=a.relatedTarget||a.toElement,tt=Me,$t=$t?qe($t):null,$t!==null&&(pi=ie($t),tn=$t.tag,$t!==pi||tn!==5&&tn!==27&&tn!==6)&&($t=null)):(tt=null,$t=Me),tt!==$t)){if(tn=Sn,Be="onMouseLeave",Rn="onMouseEnter",je="mouse",(e==="pointerout"||e==="pointerover")&&(tn=V6,Be="onPointerLeave",Rn="onPointerEnter",je="pointer"),pi=tt==null?Ye:rt(tt),Le=$t==null?Ye:rt($t),Ye=new tn(Be,je+"leave",tt,a,Ze),Ye.target=pi,Ye.relatedTarget=Le,Be=null,qe(Ze)===Me&&(tn=new tn(Rn,je+"enter",$t,a,Ze),tn.target=Le,tn.relatedTarget=pi,Be=tn),pi=Be,tt&&$t)t:{for(tn=tt,Rn=$t,je=0,Le=tn;Le;Le=Ji(Le))je++;for(Le=0,Be=Rn;Be;Be=Ji(Be))Le++;for(;0<je-Le;)tn=Ji(tn),je--;for(;0<Le-je;)Rn=Ji(Rn),Le--;for(;je--;){if(tn===Rn||Rn!==null&&tn===Rn.alternate)break t;tn=Ji(tn),Rn=Ji(Rn)}tn=null}else tn=null;tt!==null&&Ry(et,Ye,tt,tn,!1),$t!==null&&pi!==null&&Ry(et,pi,$t,tn,!0)}}e:{if(Ye=Me?rt(Me):window,tt=Ye.nodeName&&Ye.nodeName.toLowerCase(),tt==="select"||tt==="input"&&Ye.type==="file")var nt=Cm;else if(f1(Ye))if(Z6)nt=Fx;else{nt=wm;var kt=qx}else tt=Ye.nodeName,!tt||tt.toLowerCase()!=="input"||Ye.type!=="checkbox"&&Ye.type!=="radio"?Me&&Gl(Me.elementType)&&(nt=Cm):nt=Yx;if(nt&&(nt=nt(e,Me))){zf(et,nt,a,Ze);break e}kt&&kt(e,Ye,Me),e==="focusout"&&Me&&Ye.type==="number"&&Me.memoizedProps.value!=null&&sn(Ye,"number",Ye.value)}switch(kt=Me?rt(Me):window,e){case"focusin":(f1(kt)||kt.contentEditable==="true")&&(yg=kt,u_=Me,k0=null);break;case"focusout":k0=u_=yg=null;break;case"mousedown":d_=!0;break;case"contextmenu":case"mouseup":case"dragend":d_=!1,v1(et,a,Ze);break;case"selectionchange":if(u9)break;case"keydown":case"keyup":v1(et,a,Ze)}var fn;if(c_)e:{switch(e){case"compositionstart":var Gt="onCompositionStart";break e;case"compositionend":Gt="onCompositionEnd";break e;case"compositionupdate":Gt="onCompositionUpdate";break e}Gt=void 0}else mg?wa(e,a)&&(Gt="onCompositionEnd"):e==="keydown"&&a.keyCode===I6&&(Gt="onCompositionStart");Gt&&(q6&&a.locale!=="ko"&&(mg||Gt!=="onCompositionStart"?Gt==="onCompositionEnd"&&mg&&(fn=rr()):(dt=Ze,Xe="value"in dt?dt.value:dt.textContent,mg=!0)),kt=Sh(Me,Gt),0<kt.length&&(Gt=new P6(Gt,e,null,a,Ze),et.push({event:Gt,listeners:kt}),fn?Gt.data=fn:(fn=Pr(a),fn!==null&&(Gt.data=fn)))),(fn=l9?Nf(e,a):Nd(e,a))&&(Gt=Sh(Me,"onBeforeInput"),0<Gt.length&&(kt=new Y8("onBeforeInput","beforeinput",null,a,Ze),et.push({event:kt,listeners:Gt}),kt.data=fn)),bi(et,e,Me,a,Ze)}Ro(et,t)})}function Ta(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Sh(e,t){for(var a=t+"Capture",u=[];e!==null;){var p=e,m=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||m===null||(p=or(e,a),p!=null&&u.unshift(Ta(e,p,m)),p=or(e,t),p!=null&&u.push(Ta(e,p,m))),e.tag===3)return u;e=e.return}return[]}function Ji(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ry(e,t,a,u,p){for(var m=t._reactName,F=[];a!==null&&a!==u;){var de=a,Ce=de.alternate,Me=de.stateNode;if(de=de.tag,Ce!==null&&Ce===u)break;de!==5&&de!==26&&de!==27||Me===null||(Ce=Me,p?(Me=or(a,m),Me!=null&&F.unshift(Ta(a,Me,Ce))):p||(Me=or(a,m),Me!=null&&F.push(Ta(a,Me,Ce)))),a=a.return}F.length!==0&&e.push({event:t,listeners:F})}function No(e,t){Kc(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||_0||(_0=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:Ns,possibleRegistrationNames:wc};Gl(e)||typeof t.is=="string"||xm(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function vi(e,t,a,u){t!==a&&(a=oa(a),oa(t)!==a&&(u[e]=t))}function cl(e,t,a){t.forEach(function(u){a[zy(u)]=u==="style"?yc(e):e.getAttribute(u)})}function Os(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function Pp(e,t){return e=e.namespaceURI===Ih||e.namespaceURI===Xu?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function oa(e){return R(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",se(e)),ue(e)),(typeof e=="string"?e:""+e).replace(N9,`
|
|
713
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,oe(e))})}function Ds(e){e!==Pg&&e.next===null&&(Pg===null?Rv=Pg=e:Pg=Pg.next=e),Nv=!0,We.actQueue!==null?X_||(X_=!0,Yi()):F_||(F_=!0,Yi())}function gc(e,t){if(!Z_&&Nv){Z_=!0;do for(var a=!1,u=Rv;u!==null;){if(e!==0){var p=u.pendingLanes;if(p===0)var m=0;else{var F=u.suspendedLanes,de=u.pingedLanes;m=(1<<31-ba(42|e)+1)-1,m&=p&~(F&~de),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(a=!0,Up(u,m))}else m=Dn,m=ge(u,u===fi?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==lf),(m&3)===0||ve(u,m)||(a=!0,Up(u,m));u=u.next}while(a);Z_=!1}}function zp(){Bp()}function Bp(){Nv=X_=F_=!1;var e=0;of!==0&&(Mu()&&(e=of),of=0);for(var t=Go(),a=null,u=Rv;u!==null;){var p=u.next,m=Lo(u,t);m===0?(u.next=null,a===null?Rv=p:a.next=p,p===null&&(Pg=a)):(a=u,(e!==0||(m&3)!==0)&&(Nv=!0)),u=p}gc(e)}function Lo(e,t){for(var a=e.suspendedLanes,u=e.pingedLanes,p=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var F=31-ba(m),de=1<<F,Ce=p[F];Ce===-1?((de&a)===0||(de&u)!==0)&&(p[F]=_e(de,t)):Ce<=t&&(e.expiredLanes|=de),m&=~de}if(t=fi,a=Dn,a=ge(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==lf),u=e.callbackNode,a===0||e===t&&(ii===ef||ii===tf)||e.cancelPendingCommit!==null)return u!==null&&Hp(u),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ve(e,a)){if(t=a&-a,t!==e.callbackPriority||We.actQueue!==null&&u!==Q_)Hp(u);else return t;switch(De(a)){case ua:case io:a=zh;break;case Ar:a=Gu;break;case rg:a=Bh;break;default:a=Gu}return u=Di.bind(null,e),We.actQueue!==null?(We.actQueue.push(u),a=Q_):a=ng(a,u),e.callbackPriority=t,e.callbackNode=a,t}return u!==null&&Hp(u),e.callbackPriority=2,e.callbackNode=null,2}function Di(e,t){if(xv=vv=!1,Oa!==af&&Oa!==P_)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Cu()&&e.callbackNode!==a)return null;var u=Dn;return u=ge(e,e===fi?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==lf),u===0?null:(qi(e,u,t),Lo(e,Go()),e.callbackNode!=null&&e.callbackNode===a?Di.bind(null,e):null)}function Up(e,t){if(Cu())return null;vv=xv,xv=!1,qi(e,t,!0)}function Hp(e){e!==Q_&&e!==null&&i_(e)}function Yi(){We.actQueue!==null&&We.actQueue.push(function(){return Bp(),null}),I9(function(){(Kn&(ms|Nr))!==ao?ng(ig,zp):Bp()})}function Dy(){return of===0&&(of=we()),of}function Oy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(ye(e,"action"),eu(""+e))}function jy(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function bi(e,t,a,u,p){if(t==="submit"&&a&&a.stateNode===p){var m=Oy((p[Ya]||null).action),F=u.submitter;F&&(t=(t=F[Ya]||null)?Oy(t.formAction):F.getAttribute("formAction"),t!==null&&(m=t,F=null));var de=new Zt("action","action",null,u,p);e.push({event:de,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(of!==0){var Ce=F?jy(p,F):new FormData(p),Me={pending:!0,data:Ce,method:p.method,action:m};Object.freeze(Me),nc(a,Me,null,Ce)}}else typeof m=="function"&&(de.preventDefault(),Ce=F?jy(p,F):new FormData(p),Me={pending:!0,data:Ce,method:p.method,action:m},Object.freeze(Me),nc(a,Me,m,Ce))},currentTarget:p}]})}}function sa(e,t,a){e.currentTarget=a;try{t(e)}catch(u){O_(u)}e.currentTarget=null}function Ro(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var u=e[a];e:{var p=void 0,m=u.event;if(u=u.listeners,t)for(var F=u.length-1;0<=F;F--){var de=u[F],Ce=de.instance,Me=de.currentTarget;if(de=de.listener,Ce!==p&&m.isPropagationStopped())break e;Ce!==null?yt(Ce,sa,m,de,Me):sa(m,de,Me),p=Ce}else for(F=0;F<u.length;F++){if(de=u[F],Ce=de.instance,Me=de.currentTarget,de=de.listener,Ce!==p&&m.isPropagationStopped())break e;Ce!==null?yt(Ce,sa,m,de,Me):sa(m,de,Me),p=Ce}}}}function wn(e,t){W_.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[s0];a===void 0&&(a=t[s0]=new Set);var u=e+"__bubble";a.has(u)||(Gp(t,e,2,!1),a.add(u))}function $p(e,t,a){W_.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var u=0;t&&(u|=4),Gp(a,e,u,t)}function Ly(e){if(!e[zv]){e[zv]=!0,sv.forEach(function(a){a!=="selectionchange"&&(W_.has(a)||$p(a,!1,e),$p(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zv]||(t[zv]=!0,$p("selectionchange",!1,t))}}function Gp(e,t,a,u){switch(Jp(t)){case ua:var p=e_;break;case io:p=Wp;break;default:p=hl}a=p.bind(null,t,a,e),p=void 0,!Ie||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(p=!0),u?p!==void 0?e.addEventListener(t,a,{capture:!0,passive:p}):e.addEventListener(t,a,!0):p!==void 0?e.addEventListener(t,a,{passive:p}):e.addEventListener(t,a,!1)}function ka(e,t,a,u,p){var m=u;if((t&1)===0&&(t&2)===0&&u!==null)e:for(;;){if(u===null)return;var F=u.tag;if(F===3||F===4){var de=u.stateNode.containerInfo;if(de===p)break;if(F===4)for(F=u.return;F!==null;){var Ce=F.tag;if((Ce===3||Ce===4)&&F.stateNode.containerInfo===p)return;F=F.return}for(;de!==null;){if(F=qe(de),F===null)return;if(Ce=F.tag,Ce===5||Ce===6||Ce===26||Ce===27){u=m=F;continue e}de=de.parentNode}}u=u.return}jf(function(){var Me=m,Ze=Pl(a),et=[];e:{var Ye=tk.get(e);if(Ye!==void 0){var tt=Zt,$t=e;switch(e){case"keypress":if(tu(a)===0)break e;case"keydown":case"keyup":tt=W8;break;case"focusin":$t="focus",tt=Nn;break;case"focusout":$t="blur",tt=Nn;break;case"beforeblur":case"afterblur":tt=Nn;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":tt=Sn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":tt=Kt;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":tt=e9;break;case W6:case J6:case K6:tt=l_;break;case ek:tt=n9;break;case"scroll":case"scrollend":tt=Pe;break;case"wheel":tt=a9;break;case"copy":case"cut":case"paste":tt=I8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":tt=V6;break;case"toggle":case"beforetoggle":tt=o9}var tn=(t&4)!==0,pi=!tn&&(e==="scroll"||e==="scrollend"),Rn=tn?Ye!==null?Ye+"Capture":null:Ye;tn=[];for(var je=Me,Le;je!==null;){var Be=je;if(Le=Be.stateNode,Be=Be.tag,Be!==5&&Be!==26&&Be!==27||Le===null||Rn===null||(Be=or(je,Rn),Be!=null&&tn.push(Ta(je,Be,Le))),pi)break;je=je.return}0<tn.length&&(Ye=new tt(Ye,$t,null,a,Ze),et.push({event:Ye,listeners:tn}))}}if((t&7)===0){e:{if(Ye=e==="mouseover"||e==="pointerover",tt=e==="mouseout"||e==="pointerout",Ye&&a!==b&&($t=a.relatedTarget||a.fromElement)&&(qe($t)||$t[vl]))break e;if((tt||Ye)&&(Ye=Ze.window===Ze?Ze:(Ye=Ze.ownerDocument)?Ye.defaultView||Ye.parentWindow:window,tt?($t=a.relatedTarget||a.toElement,tt=Me,$t=$t?qe($t):null,$t!==null&&(pi=ie($t),tn=$t.tag,$t!==pi||tn!==5&&tn!==27&&tn!==6)&&($t=null)):(tt=null,$t=Me),tt!==$t)){if(tn=Sn,Be="onMouseLeave",Rn="onMouseEnter",je="mouse",(e==="pointerout"||e==="pointerover")&&(tn=V6,Be="onPointerLeave",Rn="onPointerEnter",je="pointer"),pi=tt==null?Ye:rt(tt),Le=$t==null?Ye:rt($t),Ye=new tn(Be,je+"leave",tt,a,Ze),Ye.target=pi,Ye.relatedTarget=Le,Be=null,qe(Ze)===Me&&(tn=new tn(Rn,je+"enter",$t,a,Ze),tn.target=Le,tn.relatedTarget=pi,Be=tn),pi=Be,tt&&$t)t:{for(tn=tt,Rn=$t,je=0,Le=tn;Le;Le=Ji(Le))je++;for(Le=0,Be=Rn;Be;Be=Ji(Be))Le++;for(;0<je-Le;)tn=Ji(tn),je--;for(;0<Le-je;)Rn=Ji(Rn),Le--;for(;je--;){if(tn===Rn||Rn!==null&&tn===Rn.alternate)break t;tn=Ji(tn),Rn=Ji(Rn)}tn=null}else tn=null;tt!==null&&Ry(et,Ye,tt,tn,!1),$t!==null&&pi!==null&&Ry(et,pi,$t,tn,!0)}}e:{if(Ye=Me?rt(Me):window,tt=Ye.nodeName&&Ye.nodeName.toLowerCase(),tt==="select"||tt==="input"&&Ye.type==="file")var nt=Cm;else if(f1(Ye))if(Z6)nt=Fx;else{nt=wm;var kt=qx}else tt=Ye.nodeName,!tt||tt.toLowerCase()!=="input"||Ye.type!=="checkbox"&&Ye.type!=="radio"?Me&&Gl(Me.elementType)&&(nt=Cm):nt=Yx;if(nt&&(nt=nt(e,Me))){zf(et,nt,a,Ze);break e}kt&&kt(e,Ye,Me),e==="focusout"&&Me&&Ye.type==="number"&&Me.memoizedProps.value!=null&&sn(Ye,"number",Ye.value)}switch(kt=Me?rt(Me):window,e){case"focusin":(f1(kt)||kt.contentEditable==="true")&&(yg=kt,u_=Me,k0=null);break;case"focusout":k0=u_=yg=null;break;case"mousedown":d_=!0;break;case"contextmenu":case"mouseup":case"dragend":d_=!1,v1(et,a,Ze);break;case"selectionchange":if(u9)break;case"keydown":case"keyup":v1(et,a,Ze)}var pn;if(c_)e:{switch(e){case"compositionstart":var Gt="onCompositionStart";break e;case"compositionend":Gt="onCompositionEnd";break e;case"compositionupdate":Gt="onCompositionUpdate";break e}Gt=void 0}else mg?wa(e,a)&&(Gt="onCompositionEnd"):e==="keydown"&&a.keyCode===I6&&(Gt="onCompositionStart");Gt&&(q6&&a.locale!=="ko"&&(mg||Gt!=="onCompositionStart"?Gt==="onCompositionEnd"&&mg&&(pn=rr()):(dt=Ze,Xe="value"in dt?dt.value:dt.textContent,mg=!0)),kt=Sh(Me,Gt),0<kt.length&&(Gt=new P6(Gt,e,null,a,Ze),et.push({event:Gt,listeners:kt}),pn?Gt.data=pn:(pn=Pr(a),pn!==null&&(Gt.data=pn)))),(pn=l9?Nf(e,a):Nd(e,a))&&(Gt=Sh(Me,"onBeforeInput"),0<Gt.length&&(kt=new Y8("onBeforeInput","beforeinput",null,a,Ze),et.push({event:kt,listeners:Gt}),kt.data=pn)),bi(et,e,Me,a,Ze)}Ro(et,t)})}function Ta(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Sh(e,t){for(var a=t+"Capture",u=[];e!==null;){var p=e,m=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||m===null||(p=or(e,a),p!=null&&u.unshift(Ta(e,p,m)),p=or(e,t),p!=null&&u.push(Ta(e,p,m))),e.tag===3)return u;e=e.return}return[]}function Ji(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ry(e,t,a,u,p){for(var m=t._reactName,F=[];a!==null&&a!==u;){var de=a,Ce=de.alternate,Me=de.stateNode;if(de=de.tag,Ce!==null&&Ce===u)break;de!==5&&de!==26&&de!==27||Me===null||(Ce=Me,p?(Me=or(a,m),Me!=null&&F.unshift(Ta(a,Me,Ce))):p||(Me=or(a,m),Me!=null&&F.push(Ta(a,Me,Ce)))),a=a.return}F.length!==0&&e.push({event:t,listeners:F})}function No(e,t){Kc(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||_0||(_0=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:Ns,possibleRegistrationNames:wc};Gl(e)||typeof t.is=="string"||xm(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function vi(e,t,a,u){t!==a&&(a=oa(a),oa(t)!==a&&(u[e]=t))}function cl(e,t,a){t.forEach(function(u){a[zy(u)]=u==="style"?yc(e):e.getAttribute(u)})}function Os(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function Pp(e,t){return e=e.namespaceURI===Ih||e.namespaceURI===Xu?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function oa(e){return R(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",se(e)),ue(e)),(typeof e=="string"?e:""+e).replace(N9,`
|
|
714
714
|
`).replace(z9,"")}function Ny(e,t){return t=oa(t),oa(e)===t}function xr(){}function Pn(e,t,a,u,p,m){switch(a){case"children":typeof u=="string"?(Ld(u,t,!1),t==="body"||t==="textarea"&&u===""||$l(e,u)):(typeof u=="number"||typeof u=="bigint")&&(Ld(""+u,t,!1),t!=="body"&&$l(e,""+u));break;case"className":Bt(e,"class",u);break;case"tabIndex":Bt(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Bt(e,a,u);break;case"style":Rd(e,u,m);break;case"data":if(t!=="object"){Bt(e,"data",u);break}case"src":case"href":if(u===""&&(t!=="a"||a!=="href")){console.error(a==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),e.removeAttribute(a);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(a);break}ye(u,a),u=eu(""+u),e.setAttribute(a,u);break;case"action":case"formAction":if(u!=null&&(t==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof u=="function"&&(p.encType==null&&p.method==null||Hv||(Hv=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),p.target==null||Uv||(Uv=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||p.type==="submit"||p.type==="image"||Bv?t!=="button"||p.type==null||p.type==="submit"||Bv?typeof u=="function"&&(p.name==null||m4||(m4=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),p.formEncType==null&&p.formMethod==null||Hv||(Hv=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),p.formTarget==null||Uv||(Uv=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Bv=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Bv=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(a==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof u=="function"){e.setAttribute(a,"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 m=="function"&&(a==="formAction"?(t!=="input"&&Pn(e,t,"name",p.name,p,null),Pn(e,t,"formEncType",p.formEncType,p,null),Pn(e,t,"formMethod",p.formMethod,p,null),Pn(e,t,"formTarget",p.formTarget,p,null)):(Pn(e,t,"encType",p.encType,p,null),Pn(e,t,"method",p.method,p,null),Pn(e,t,"target",p.target,p,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(a);break}ye(u,a),u=eu(""+u),e.setAttribute(a,u);break;case"onClick":u!=null&&(typeof u!="function"&&Os(a,u),e.onclick=xr);break;case"onScroll":u!=null&&(typeof u!="function"&&Os(a,u),wn("scroll",e));break;case"onScrollEnd":u!=null&&(typeof u!="function"&&Os(a,u),wn("scrollend",e));break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=u.__html,a!=null){if(p.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}ye(u,a),a=eu(""+u),e.setAttributeNS(rf,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?(ye(u,a),e.setAttribute(a,""+u)):e.removeAttribute(a);break;case"inert":u!==""||$v[a]||($v[a]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",a));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":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":u===!0?e.setAttribute(a,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?(ye(u,a),e.setAttribute(a,u)):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?(ye(u,a),e.setAttribute(a,u)):e.removeAttribute(a);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(a):(ye(u,a),e.setAttribute(a,u));break;case"popover":wn("beforetoggle",e),wn("toggle",e),Ot(e,"popover",u);break;case"xlinkActuate":Vt(e,rf,"xlink:actuate",u);break;case"xlinkArcrole":Vt(e,rf,"xlink:arcrole",u);break;case"xlinkRole":Vt(e,rf,"xlink:role",u);break;case"xlinkShow":Vt(e,rf,"xlink:show",u);break;case"xlinkTitle":Vt(e,rf,"xlink:title",u);break;case"xlinkType":Vt(e,rf,"xlink:type",u);break;case"xmlBase":Vt(e,J_,"xml:base",u);break;case"xmlLang":Vt(e,J_,"xml:lang",u);break;case"xmlSpace":Vt(e,J_,"xml:space",u);break;case"is":m!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Ot(e,"is",u);break;case"innerText":case"textContent":break;case"popoverTarget":y4||u==null||typeof u!="object"||(y4=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",u));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=Of(a),Ot(e,a,u)):Ns.hasOwnProperty(a)&&u!=null&&typeof u!="function"&&Os(a,u)}}function mc(e,t,a,u,p,m){switch(a){case"style":Rd(e,u,m);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=u.__html,a!=null){if(p.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof u=="string"?$l(e,u):(typeof u=="number"||typeof u=="bigint")&&$l(e,""+u);break;case"onScroll":u!=null&&(typeof u!="function"&&Os(a,u),wn("scroll",e));break;case"onScrollEnd":u!=null&&(typeof u!="function"&&Os(a,u),wn("scrollend",e));break;case"onClick":u!=null&&(typeof u!="function"&&Os(a,u),e.onclick=xr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Ns.hasOwnProperty(a))u!=null&&typeof u!="function"&&Os(a,u);else e:{if(a[0]==="o"&&a[1]==="n"&&(p=a.endsWith("Capture"),t=a.slice(2,p?a.length-7:void 0),m=e[Ya]||null,m=m!=null?m[a]:null,typeof m=="function"&&e.removeEventListener(t,m,p),typeof u=="function")){typeof m!="function"&&m!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,u,p);break e}a in e?e[a]=u:u===!0?e.setAttribute(a,""):Ot(e,a,u)}}}function Oi(e,t,a){switch(No(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":wn("error",e),wn("load",e);var u=!1,p=!1,m;for(m in a)if(a.hasOwnProperty(m)){var F=a[m];if(F!=null)switch(m){case"src":u=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Pn(e,t,m,F,a,null)}}p&&Pn(e,t,"srcSet",a.srcSet,a,null),u&&Pn(e,t,"src",a.src,a,null);return;case"input":Fe("input",a),wn("invalid",e);var de=m=F=p=null,Ce=null,Me=null;for(u in a)if(a.hasOwnProperty(u)){var Ze=a[u];if(Ze!=null)switch(u){case"name":p=Ze;break;case"type":F=Ze;break;case"checked":Ce=Ze;break;case"defaultChecked":Me=Ze;break;case"value":m=Ze;break;case"defaultValue":de=Ze;break;case"children":case"dangerouslySetInnerHTML":if(Ze!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Pn(e,t,u,Ze,a,null)}}Ut(e,a),Qt(e,m,de,Ce,Me,F,p,!1),vt(e);return;case"select":Fe("select",a),wn("invalid",e),u=F=m=null;for(p in a)if(a.hasOwnProperty(p)&&(de=a[p],de!=null))switch(p){case"value":m=de;break;case"defaultValue":F=de;break;case"multiple":u=de;default:Pn(e,t,p,de,a,null)}Wt(e,a),t=m,a=F,e.multiple=!!u,t!=null?mn(e,!!u,t,!1):a!=null&&mn(e,!!u,a,!0);return;case"textarea":Fe("textarea",a),wn("invalid",e),m=p=u=null;for(F in a)if(a.hasOwnProperty(F)&&(de=a[F],de!=null))switch(F){case"value":u=de;break;case"defaultValue":p=de;break;case"children":m=de;break;case"dangerouslySetInnerHTML":if(de!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Pn(e,t,F,de,a,null)}Ht(e,a),ai(e,u,p,m),vt(e);return;case"option":Tn(e,a);for(Ce in a)if(a.hasOwnProperty(Ce)&&(u=a[Ce],u!=null))switch(Ce){case"selected":e.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Pn(e,t,Ce,u,a,null)}return;case"dialog":wn("beforetoggle",e),wn("toggle",e),wn("cancel",e),wn("close",e);break;case"iframe":case"object":wn("load",e);break;case"video":case"audio":for(u=0;u<Z0.length;u++)wn(Z0[u],e);break;case"image":wn("error",e),wn("load",e);break;case"details":wn("toggle",e);break;case"embed":case"source":case"link":wn("error",e),wn("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Me in a)if(a.hasOwnProperty(Me)&&(u=a[Me],u!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Pn(e,t,Me,u,a,null)}return;default:if(Gl(t)){for(Ze in a)a.hasOwnProperty(Ze)&&(u=a[Ze],u!==void 0&&mc(e,t,Ze,u,a,void 0));return}}for(de in a)a.hasOwnProperty(de)&&(u=a[de],u!=null&&Pn(e,t,de,u,a,null))}function I1(e,t,a,u){switch(No(t,u),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,m=null,F=null,de=null,Ce=null,Me=null,Ze=null;for(tt in a){var et=a[tt];if(a.hasOwnProperty(tt)&&et!=null)switch(tt){case"checked":break;case"value":break;case"defaultValue":Ce=et;default:u.hasOwnProperty(tt)||Pn(e,t,tt,null,u,et)}}for(var Ye in u){var tt=u[Ye];if(et=a[Ye],u.hasOwnProperty(Ye)&&(tt!=null||et!=null))switch(Ye){case"type":m=tt;break;case"name":p=tt;break;case"checked":Me=tt;break;case"defaultChecked":Ze=tt;break;case"value":F=tt;break;case"defaultValue":de=tt;break;case"children":case"dangerouslySetInnerHTML":if(tt!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:tt!==et&&Pn(e,t,Ye,tt,u,et)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,u=u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null,t||!u||g4||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),g4=!0),!t||u||p4||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),p4=!0),Rt(e,F,de,Ce,Me,Ze,m,p);return;case"select":tt=F=de=Ye=null;for(m in a)if(Ce=a[m],a.hasOwnProperty(m)&&Ce!=null)switch(m){case"value":break;case"multiple":tt=Ce;default:u.hasOwnProperty(m)||Pn(e,t,m,null,u,Ce)}for(p in u)if(m=u[p],Ce=a[p],u.hasOwnProperty(p)&&(m!=null||Ce!=null))switch(p){case"value":Ye=m;break;case"defaultValue":de=m;break;case"multiple":F=m;default:m!==Ce&&Pn(e,t,p,m,u,Ce)}u=de,t=F,a=tt,Ye!=null?mn(e,!!t,Ye,!1):!!a!=!!t&&(u!=null?mn(e,!!t,u,!0):mn(e,!!t,t?[]:"",!1));return;case"textarea":tt=Ye=null;for(de in a)if(p=a[de],a.hasOwnProperty(de)&&p!=null&&!u.hasOwnProperty(de))switch(de){case"value":break;case"children":break;default:Pn(e,t,de,null,u,p)}for(F in u)if(p=u[F],m=a[F],u.hasOwnProperty(F)&&(p!=null||m!=null))switch(F){case"value":Ye=p;break;case"defaultValue":tt=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:p!==m&&Pn(e,t,F,p,u,m)}$n(e,Ye,tt);return;case"option":for(var $t in a)if(Ye=a[$t],a.hasOwnProperty($t)&&Ye!=null&&!u.hasOwnProperty($t))switch($t){case"selected":e.selected=!1;break;default:Pn(e,t,$t,null,u,Ye)}for(Ce in u)if(Ye=u[Ce],tt=a[Ce],u.hasOwnProperty(Ce)&&Ye!==tt&&(Ye!=null||tt!=null))switch(Ce){case"selected":e.selected=Ye&&typeof Ye!="function"&&typeof Ye!="symbol";break;default:Pn(e,t,Ce,Ye,u,tt)}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 tn in a)Ye=a[tn],a.hasOwnProperty(tn)&&Ye!=null&&!u.hasOwnProperty(tn)&&Pn(e,t,tn,null,u,Ye);for(Me in u)if(Ye=u[Me],tt=a[Me],u.hasOwnProperty(Me)&&Ye!==tt&&(Ye!=null||tt!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":if(Ye!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Pn(e,t,Me,Ye,u,tt)}return;default:if(Gl(t)){for(var pi in a)Ye=a[pi],a.hasOwnProperty(pi)&&Ye!==void 0&&!u.hasOwnProperty(pi)&&mc(e,t,pi,void 0,u,Ye);for(Ze in u)Ye=u[Ze],tt=a[Ze],!u.hasOwnProperty(Ze)||Ye===tt||Ye===void 0&&tt===void 0||mc(e,t,Ze,Ye,u,tt);return}}for(var Rn in a)Ye=a[Rn],a.hasOwnProperty(Rn)&&Ye!=null&&!u.hasOwnProperty(Rn)&&Pn(e,t,Rn,null,u,Ye);for(et in u)Ye=u[et],tt=a[et],!u.hasOwnProperty(et)||Ye===tt||Ye==null&&tt==null||Pn(e,t,et,Ye,u,tt)}function zy(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function yc(e){var t={};e=e.style;for(var a=0;a<e.length;a++){var u=e[a];t[u]=e.getPropertyValue(u)}return t}function By(e,t,a){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var u,p=u="",m;for(m in t)if(t.hasOwnProperty(m)){var F=t[m];F!=null&&typeof F!="boolean"&&F!==""&&(m.indexOf("--")===0?(g(F,m),u+=p+m+":"+(""+F).trim()):typeof F!="number"||F===0||Vh.has(m)?(g(F,m),u+=p+m.replace(Er,"-$1").toLowerCase().replace(Dr,"-ms-")+":"+(""+F).trim()):u+=p+m.replace(Er,"-$1").toLowerCase().replace(Dr,"-ms-")+":"+F+"px",p=";")}u=u||null,t=e.getAttribute("style"),t!==u&&(u=oa(u),oa(t)!==u&&(a.style=yc(e)))}}function Ma(e,t,a,u,p,m){if(p.delete(a),e=e.getAttribute(a),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(ye(u,t),e===""+u)return}vi(t,e,u,m)}function Uy(e,t,a,u,p,m){if(p.delete(a),e=e.getAttribute(a),e===null){switch(typeof u){case"function":case"symbol":return}if(!u)return}else switch(typeof u){case"function":case"symbol":break;default:if(u)return}vi(t,e,u,m)}function Hy(e,t,a,u,p,m){if(p.delete(a),e=e.getAttribute(a),e===null)switch(typeof u){case"undefined":case"function":case"symbol":return}else if(u!=null)switch(typeof u){case"function":case"symbol":break;default:if(ye(u,a),e===""+u)return}vi(t,e,u,m)}function q1(e,t,a,u,p,m){if(p.delete(a),e=e.getAttribute(a),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(u))return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(!isNaN(u)&&(ye(u,t),e===""+u))return}vi(t,e,u,m)}function Zn(e,t,a,u,p,m){if(p.delete(a),e=e.getAttribute(a),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(ye(u,t),a=eu(""+u),e===a)return}vi(t,e,u,m)}function oi(e,t,a,u){for(var p={},m=new Set,F=e.attributes,de=0;de<F.length;de++)switch(F[de].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:m.add(F[de].name)}if(Gl(t)){for(var Ce in a)if(a.hasOwnProperty(Ce)){var Me=a[Ce];if(Me!=null){if(Ns.hasOwnProperty(Ce))typeof Me!="function"&&Os(Ce,Me);else if(a.suppressHydrationWarning!==!0)switch(Ce){case"children":typeof Me!="string"&&typeof Me!="number"||vi("children",e.textContent,Me,p);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":F=e.innerHTML,Me=Me?Me.__html:void 0,Me!=null&&(Me=Pp(e,Me),vi(Ce,F,Me,p));continue;case"style":m.delete(Ce),By(e,Me,p);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":m.delete(Ce.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",Ce);continue;case"className":m.delete("class"),F=ot(e,"class",Me),vi("className",F,Me,p);continue;default:u.context===Bc&&t!=="svg"&&t!=="math"?m.delete(Ce.toLowerCase()):m.delete(Ce),F=ot(e,Ce,Me),vi(Ce,F,Me,p)}}}}else for(Me in a)if(a.hasOwnProperty(Me)&&(Ce=a[Me],Ce!=null)){if(Ns.hasOwnProperty(Me))typeof Ce!="function"&&Os(Me,Ce);else if(a.suppressHydrationWarning!==!0)switch(Me){case"children":typeof Ce!="string"&&typeof Ce!="number"||vi("children",e.textContent,Ce,p);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":F=e.innerHTML,Ce=Ce?Ce.__html:void 0,Ce!=null&&(Ce=Pp(e,Ce),F!==Ce&&(p[Me]={__html:F}));continue;case"className":Ma(e,Me,"class",Ce,m,p);continue;case"tabIndex":Ma(e,Me,"tabindex",Ce,m,p);continue;case"style":m.delete(Me),By(e,Ce,p);continue;case"multiple":m.delete(Me),vi(Me,e.multiple,Ce,p);continue;case"muted":m.delete(Me),vi(Me,e.muted,Ce,p);continue;case"autoFocus":m.delete("autofocus"),vi(Me,e.autofocus,Ce,p);continue;case"data":if(t!=="object"){m.delete(Me),F=e.getAttribute("data"),vi(Me,F,Ce,p);continue}case"src":case"href":if(!(Ce!==""||t==="a"&&Me==="href"||t==="object"&&Me==="data")){console.error(Me==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',Me,Me);continue}Zn(e,Me,Me,Ce,m,p);continue;case"action":case"formAction":if(F=e.getAttribute(Me),typeof Ce=="function"){m.delete(Me.toLowerCase()),Me==="formAction"?(m.delete("name"),m.delete("formenctype"),m.delete("formmethod"),m.delete("formtarget")):(m.delete("enctype"),m.delete("method"),m.delete("target"));continue}else if(F===B9){m.delete(Me.toLowerCase()),vi(Me,"function",Ce,p);continue}Zn(e,Me,Me.toLowerCase(),Ce,m,p);continue;case"xlinkHref":Zn(e,Me,"xlink:href",Ce,m,p);continue;case"contentEditable":Hy(e,Me,"contenteditable",Ce,m,p);continue;case"spellCheck":Hy(e,Me,"spellcheck",Ce,m,p);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Hy(e,Me,Me,Ce,m,p);continue;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":Uy(e,Me,Me.toLowerCase(),Ce,m,p);continue;case"capture":case"download":e:{de=e;var Ze=F=Me,et=p;if(m.delete(Ze),de=de.getAttribute(Ze),de===null)switch(typeof Ce){case"undefined":case"function":case"symbol":break e;default:if(Ce===!1)break e}else if(Ce!=null)switch(typeof Ce){case"function":case"symbol":break;case"boolean":if(Ce===!0&&de==="")break e;break;default:if(ye(Ce,F),de===""+Ce)break e}vi(F,de,Ce,et)}continue;case"cols":case"rows":case"size":case"span":e:{if(de=e,Ze=F=Me,et=p,m.delete(Ze),de=de.getAttribute(Ze),de===null)switch(typeof Ce){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(Ce)||1>Ce)break e}else if(Ce!=null)switch(typeof Ce){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(Ce)||1>Ce)&&(ye(Ce,F),de===""+Ce))break e}vi(F,de,Ce,et)}continue;case"rowSpan":q1(e,Me,"rowspan",Ce,m,p);continue;case"start":q1(e,Me,Me,Ce,m,p);continue;case"xHeight":Ma(e,Me,"x-height",Ce,m,p);continue;case"xlinkActuate":Ma(e,Me,"xlink:actuate",Ce,m,p);continue;case"xlinkArcrole":Ma(e,Me,"xlink:arcrole",Ce,m,p);continue;case"xlinkRole":Ma(e,Me,"xlink:role",Ce,m,p);continue;case"xlinkShow":Ma(e,Me,"xlink:show",Ce,m,p);continue;case"xlinkTitle":Ma(e,Me,"xlink:title",Ce,m,p);continue;case"xlinkType":Ma(e,Me,"xlink:type",Ce,m,p);continue;case"xmlBase":Ma(e,Me,"xml:base",Ce,m,p);continue;case"xmlLang":Ma(e,Me,"xml:lang",Ce,m,p);continue;case"xmlSpace":Ma(e,Me,"xml:space",Ce,m,p);continue;case"inert":Ce!==""||$v[Me]||($v[Me]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",Me)),Uy(e,Me,Me,Ce,m,p);continue;default:if(!(2<Me.length)||Me[0]!=="o"&&Me[0]!=="O"||Me[1]!=="n"&&Me[1]!=="N"){de=Of(Me),F=!1,u.context===Bc&&t!=="svg"&&t!=="math"?m.delete(de.toLowerCase()):(Ze=Me.toLowerCase(),Ze=Mc.hasOwnProperty(Ze)&&Mc[Ze]||null,Ze!==null&&Ze!==Me&&(F=!0,m.delete(Ze)),m.delete(de));e:if(Ze=e,et=de,de=Ce,ft(et))if(Ze.hasAttribute(et))Ze=Ze.getAttribute(et),ye(de,et),de=Ze===""+de?de:Ze;else{switch(typeof de){case"function":case"symbol":break e;case"boolean":if(Ze=et.toLowerCase().slice(0,5),Ze!=="data-"&&Ze!=="aria-")break e}de=de===void 0?void 0:null}else de=void 0;F||vi(Me,de,Ce,p)}}}return 0<m.size&&a.suppressHydrationWarning!==!0&&cl(e,m,p),Object.keys(p).length===0?null:p}function Mn(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function An(e){return e.nodeType===9?e:e.ownerDocument}function Qn(e){switch(e){case Xu:return Vg;case Ih:return Vv;default:return Bc}}function Pa(e,t){if(e===Bc)switch(t){case"svg":return Vg;case"math":return Vv;default:return Bc}return e===Vg&&t==="foreignObject"?Bc:e}function zo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function Mu(){var e=window.event;return e&&e.type==="popstate"?e===nS?!1:(nS=e,!0):(nS=null,!1)}function $y(e){setTimeout(function(){throw e})}function _r(e,t,a){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}function ji(e,t,a,u){I1(e,t,a,u),e[Ya]=u}function Sr(e){$l(e,"")}function bc(e,t,a){e.nodeValue=a}function Bo(e){return e==="head"}function js(e,t){e.removeChild(t)}function Au(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function Eu(e,t){var a=t,u=0,p=0;do{var m=a.nextSibling;if(e.removeChild(a),m&&m.nodeType===8)if(a=m.data,a===Pv){if(0<u&&8>u){a=u;var F=e.ownerDocument;if(a&H9&&Lu(F.documentElement),a&$9&&Lu(F.body),a&G9)for(a=F.head,Lu(a),F=a.firstChild;F;){var de=F.nextSibling,Ce=F.nodeName;F[Iu]||Ce==="SCRIPT"||Ce==="STYLE"||Ce==="LINK"&&F.rel.toLowerCase()==="stylesheet"||a.removeChild(F),F=de}}if(p===0){e.removeChild(m),Sc(t);return}p--}else a===Gv||a===zc||a===Q0?p++:u=a.charCodeAt(0)-48;else u=0;a=m}while(a);Sc(t)}function Va(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function Gy(e){e.nodeValue=""}function Py(e,t){t=t[P9],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function Vp(e,t){e.nodeValue=t}function Du(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Du(a),Ge(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function ul(e,t,a,u){for(;e.nodeType===1;){var p=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[Iu])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(m=e.getAttribute("rel"),m==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(m!==p.rel||e.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||e.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||e.getAttribute("title")!==(p.title==null?null:p.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(m=e.getAttribute("src"),(m!==(p.src==null?null:p.src)||e.getAttribute("type")!==(p.type==null?null:p.type)||e.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&m&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){ye(p.name,"name");var m=p.name==null?null:""+p.name;if(p.type==="hidden"&&e.getAttribute("name")===m)return e}else return e;if(e=la(e.nextSibling),e===null)break}return null}function ra(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=la(e.nextSibling),e===null))return null;return e}function Uo(e){return e.data===Q0||e.data===zc&&e.ownerDocument.readyState===v4}function Ou(e,t){var a=e.ownerDocument;if(e.data!==zc||a.readyState===v4)t();else{var u=function(){t(),a.removeEventListener("DOMContentLoaded",u)};a.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function la(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===Gv||t===Q0||t===zc||t===K_||t===b4)break;if(t===Pv)return null}}return e}function Ip(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},u=e.attributes,p=0;p<u.length;p++){var m=u[p];a[zy(m.name)]=m.name.toLowerCase()==="style"?yc(e):m.value}return{type:t,props:a}}return e.nodeType===8?{type:"Suspense",props:{}}:e.nodeValue}function qp(e,t,a){return a===null||a[U9]!==!0?(e.nodeValue===t?e=null:(t=oa(t),e=oa(e.nodeValue)===t?null:e.nodeValue),e):null}function Vy(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Pv){if(t===0)return la(e.nextSibling);t--}else a!==Gv&&a!==Q0&&a!==zc||t++}e=e.nextSibling}return null}function ju(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Gv||a===Q0||a===zc){if(t===0)return e;t--}else a===Pv&&t++}e=e.previousSibling}return null}function Iy(e){Sc(e)}function cs(e){Sc(e)}function qy(e,t,a,u,p){switch(p&&Df(e,u.ancestorInfo),t=An(a),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function us(e,t,a,u){if(!a[vl]&&Je(a)){var p=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",p,p,p)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(p=a.attributes;p.length;)a.removeAttributeNode(p[0]);Oi(a,e,t),a[va]=u,a[Ya]=t}function Lu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ge(e)}function Ch(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Y1(e,t,a){var u=Ig;if(u&&typeof t=="string"&&t){var p=an(t);p='link[rel="'+e+'"][href="'+p+'"]',typeof a=="string"&&(p+='[crossorigin="'+a+'"]'),k4.has(p)||(k4.add(p),e={rel:e,crossOrigin:a,href:t},u.querySelector(p)===null&&(t=u.createElement("link"),Oi(t,"link",e),Ne(t),u.head.appendChild(t)))}}function Cr(e,t,a,u){var p=(p=$o.current)?Ch(p):null;if(!p)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=dl(a.href),t=st(p).hoistableStyles,u=t.get(a),u||(u={type:"style",instance:null,count:0,state:null},t.set(a,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=dl(a.href);var m=st(p).hoistableStyles,F=m.get(e);if(!F&&(p=p.ownerDocument||p,F={type:"stylesheet",instance:null,count:0,state:{loading:cf,preload:null}},m.set(e,F),(m=p.querySelector(Ho(e)))&&!m._p&&(F.instance=m,F.state.loading=W0|Ko),!er.has(e))){var de={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};er.set(e,de),m||F1(p,e,de,F.state)}if(t&&u===null)throw a=`
|
|
715
715
|
|
|
716
716
|
- `+vc(t)+`
|
|
@@ -719,7 +719,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
719
719
|
- `+vc(t)+`
|
|
720
720
|
+ `+vc(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=xc(a),t=st(p).hoistableScripts,u=t.get(a),u||(u={type:"script",instance:null,count:0,state:null},t.set(a,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function vc(e){var t=0,a="<link";return typeof e.rel=="string"?(t++,a+=' rel="'+e.rel+'"'):Tr.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,a+=' href="'+e.href+'"'):Tr.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,a+=' precedence="'+e.precedence+'"'):Tr.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function dl(e){return'href="'+an(e)+'"'}function Ho(e){return'link[rel="stylesheet"]['+e+"]"}function Yy(e){return xn({},e,{"data-precedence":e.precedence,precedence:null})}function F1(e,t,a,u){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?u.loading=W0:(t=e.createElement("link"),u.preload=t,t.addEventListener("load",function(){return u.loading|=W0}),t.addEventListener("error",function(){return u.loading|=C4}),Oi(t,"link",a),Ne(t),e.head.appendChild(t))}function xc(e){return'[src="'+an(e)+'"]'}function _c(e){return"script[async]"+e}function Yp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var u=e.querySelector('style[data-href~="'+an(a.href)+'"]');if(u)return t.instance=u,Ne(u),u;var p=xn({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),Ne(u),Oi(u,"style",p),Fp(u,a.precedence,e),t.instance=u;case"stylesheet":p=dl(a.href);var m=e.querySelector(Ho(p));if(m)return t.state.loading|=Ko,t.instance=m,Ne(m),m;u=Yy(a),(p=er.get(p))&&Fy(u,p),m=(e.ownerDocument||e).createElement("link"),Ne(m);var F=m;return F._p=new Promise(function(de,Ce){F.onload=de,F.onerror=Ce}),Oi(m,"link",u),t.state.loading|=Ko,Fp(m,a.precedence,e),t.instance=m;case"script":return m=xc(a.src),(p=e.querySelector(_c(m)))?(t.instance=p,Ne(p),p):(u=a,(p=er.get(m))&&(u=xn({},a),Xy(u,p)),e=e.ownerDocument||e,p=e.createElement("script"),Ne(p),Oi(p,"link",u),e.head.appendChild(p),t.instance=p);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&Ko)===cf&&(u=t.instance,t.state.loading|=Ko,Fp(u,a.precedence,e));return t.instance}function Fp(e,t,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,m=p,F=0;F<u.length;F++){var de=u[F];if(de.dataset.precedence===t)m=de;else if(m!==p)break}m?m.parentNode.insertBefore(e,m.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Fy(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Xy(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function Zy(e,t,a){if(Iv===null){var u=new Map,p=Iv=new Map;p.set(a,u)}else p=Iv,u=p.get(a),u||(u=new Map,p.set(a,u));if(u.has(e))return u;for(u.set(e,null),a=a.getElementsByTagName(e),p=0;p<a.length;p++){var m=a[p];if(!(m[Iu]||m[va]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!==Xu){var F=m.getAttribute(t)||"";F=e+F;var de=u.get(F);de?de.push(m):u.set(F,[m])}}return u}function Qy(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Ru(e,t,a){var u=!a.ancestorInfo.containerTagInScope;if(a.context===Vg||t.itemProp!=null)return!u||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){u&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var p=t.onError,m=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),p&&a.push("`onError`"),m!=null&&a.push("`disabled`"),p=Mn(a,"and"),p+=a.length===1?" prop":" props",m=a.length===1?"an "+p:"the "+p,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,m,p)}u&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!="string"&&u&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){u&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":u&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function wh(e){return!(e.type==="stylesheet"&&(e.state.loading&w4)===cf)}function X1(){}function Z1(e,t,a){if(J0===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var u=J0;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&Ko)===cf){if(t.instance===null){var p=dl(a.href),m=e.querySelector(Ho(p));if(m){e=m._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(u.count++,u=kh.bind(u),e.then(u,u)),t.state.loading|=Ko,t.instance=m,Ne(m);return}m=e.ownerDocument||e,a=Yy(a),(p=er.get(p))&&Fy(a,p),m=m.createElement("link"),Ne(m);var F=m;F._p=new Promise(function(de,Ce){F.onload=de,F.onerror=Ce}),Oi(m,"link",a),t.instance=m}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&w4)===cf&&(u.count++,t=kh.bind(u),e.addEventListener("load",t),e.addEventListener("error",t))}}function Q1(){if(J0===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var e=J0;return e.stylesheets&&e.count===0&&Xp(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&Xp(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function kh(){if(this.count--,this.count===0){if(this.stylesheets)Xp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Xp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,qv=new Map,t.forEach(W1,e),qv=null,kh.call(e))}function W1(e,t){if(!(t.state.loading&Ko)){var a=qv.get(e);if(a)var u=a.get(aS);else{a=new Map,qv.set(e,a);for(var p=e.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<p.length;m++){var F=p[m];(F.nodeName==="LINK"||F.getAttribute("media")!=="not all")&&(a.set(F.dataset.precedence,F),u=F)}u&&a.set(aS,u)}p=t.instance,F=p.getAttribute("data-precedence"),m=a.get(F)||u,m===u&&a.set(aS,p),a.set(F,p),this.count++,u=kh.bind(this),p.addEventListener("load",u),p.addEventListener("error",u),m?m.parentNode.insertBefore(p,m.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(p,e.firstChild)),t.state.loading|=Ko}}function Zp(e,t,a,u,p,m,F,de){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=lf,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Re(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Re(0),this.hiddenUpdates=Re(null),this.identifierPrefix=u,this.onUncaughtError=p,this.onCaughtError=m,this.onRecoverableError=F,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=de,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function Wy(e,t,a,u,p,m,F,de,Ce,Me,Ze,et){return e=new Zp(e,t,a,F,de,Ce,Me,et),t=p9,m===!0&&(t|=Xa|Or),Ri&&(t|=Ea),m=ee(3,null,null,t),e.current=m,m.stateNode=e,t=Vd(),Ql(t),e.pooledCache=t,Ql(t),m.memoizedState={element:u,isDehydrated:a,cache:t},Na(m),e}function Jy(e){return e?(e=Zu,e):Zu}function Jn(e,t,a,u,p,m){if(ca&&typeof ca.onScheduleFiberRoot=="function")try{ca.onScheduleFiberRoot(yl,u,a)}catch(F){qa||(qa=!0,console.error("React instrumentation encountered an error: %s",F))}jt!==null&&typeof jt.markRenderScheduled=="function"&&jt.markRenderScheduled(t),p=Jy(p),u.context===null?u.context=p:u.pendingContext=p,Fa&&hs!==null&&!E4&&(E4=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
721
721
|
|
|
722
|
-
Check the render method of %s.`,oe(hs)||"Unknown")),u=bo(t),u.payload={element:a},m=m===void 0?null:m,m!==null&&(typeof m!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",m),u.callback=m),a=Xs(e,u,t),a!==null&&(Ei(a,e,t),Qr(a,e,t))}function Qp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Ky(e,t){Qp(e,t),(e=e.alternate)&&Qp(e,t)}function e0(e){if(e.tag===13){var t=Ra(e,67108864);t!==null&&Ei(t,e,67108864),Ky(e,67108864)}}function Jx(){return hs}function Kx(){for(var e=new Map,t=1,a=0;31>a;a++){var u=re(t);e.set(t,u),t*=2}return e}function e_(e,t,a,u){var p=We.T;We.T=null;var m=en.p;try{en.p=ua,hl(e,t,a,u)}finally{en.p=m,We.T=p}}function Wp(e,t,a,u){var p=We.T;We.T=null;var m=en.p;try{en.p=io,hl(e,t,a,u)}finally{en.p=m,We.T=p}}function hl(e,t,a,u){if(Fv){var p=Th(u);if(p===null)ka(e,t,u,Xv,a),fl(e,u);else if(Mh(p,e,t,a,u))u.stopPropagation();else if(fl(e,u),t&4&&-1<Y9.indexOf(e)){for(;p!==null;){var m=Je(p);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var F=le(m.pendingLanes);if(F!==0){var de=m;for(de.pendingLanes|=2,de.entangledLanes|=2;F;){var Ce=1<<31-ba(F);de.entanglements[1]|=Ce,F&=~Ce}Ds(m),(Kn&(ms|Nr))===ao&&(Ov=Go()+r4,gc(0))}}break;case 13:de=Ra(m,2),de!==null&&Ei(de,m,2),fc(),Ky(m,2)}if(m=Th(u),m===null&&ka(e,t,u,Xv,a),m===p)break;p=m}p!==null&&u.stopPropagation()}else ka(e,t,u,null,a)}}function Th(e){return e=Pl(e),Nu(e)}function Nu(e){if(Xv=null,e=qe(e),e!==null){var t=ie(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=U(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Xv=e,null}function Jp(e){switch(e){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 ua;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 io;case"message":switch(ml()){case ig:return ua;case zh:return io;case Gu:case s_:return Ar;case Bh:return rg;default:return Ar}default:return Ar}}function fl(e,t){switch(e){case"focusin":case"focusout":sd=null;break;case"dragenter":case"dragleave":od=null;break;case"mouseover":case"mouseout":rd=null;break;case"pointerover":case"pointerout":eb.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tb.delete(t.pointerId)}}function Ia(e,t,a,u,p,m){return e===null||e.nativeEvent!==m?(e={blockedOn:t,domEventName:a,eventSystemFlags:u,nativeEvent:m,targetContainers:[p]},t!==null&&(t=Je(t),t!==null&&e0(t)),e):(e.eventSystemFlags|=u,t=e.targetContainers,p!==null&&t.indexOf(p)===-1&&t.push(p),e)}function Mh(e,t,a,u,p){switch(t){case"focusin":return sd=Ia(sd,e,t,a,u,p),!0;case"dragenter":return od=Ia(od,e,t,a,u,p),!0;case"mouseover":return rd=Ia(rd,e,t,a,u,p),!0;case"pointerover":var m=p.pointerId;return eb.set(m,Ia(eb.get(m)||null,e,t,a,u,p)),!0;case"gotpointercapture":return m=p.pointerId,tb.set(m,Ia(tb.get(m)||null,e,t,a,u,p)),!0}return!1}function J1(e){var t=qe(e.target);if(t!==null){var a=ie(t);if(a!==null){if(t=a.tag,t===13){if(t=U(a),t!==null){e.blockedOn=t,$e(e.priority,function(){if(a.tag===13){var u=Ga(a);u=Te(u);var p=Ra(a,u);p!==null&&Ei(p,a,u),Ky(a,u)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ah(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Th(e.nativeEvent);if(a===null){a=e.nativeEvent;var u=new a.constructor(a.type,a),p=u;b!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),b=p,a.target.dispatchEvent(u),b===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),b=null}else return t=Je(a),t!==null&&e0(t),e.blockedOn=a,!1;t.shift()}return!0}function t0(e,t,a){Ah(e)&&a.delete(t)}function K1(){sS=!1,sd!==null&&Ah(sd)&&(sd=null),od!==null&&Ah(od)&&(od=null),rd!==null&&Ah(rd)&&(rd=null),eb.forEach(t0),tb.forEach(t0)}function Eh(e,t){e.blockedOn===t&&(e.blockedOn=null,sS||(sS=!0,Li.unstable_scheduleCallback(Li.unstable_NormalPriority,K1)))}function ev(e){Zv!==e&&(Zv=e,Li.unstable_scheduleCallback(Li.unstable_NormalPriority,function(){Zv===e&&(Zv=null);for(var t=0;t<e.length;t+=3){var a=e[t],u=e[t+1],p=e[t+2];if(typeof u!="function"){if(Nu(u||a)===null)continue;break}var m=Je(a);m!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:p,method:a.method,action:u},Object.freeze(a),nc(m,a,u,p))}}))}function Sc(e){function t(Ce){return Eh(Ce,e)}sd!==null&&Eh(sd,e),od!==null&&Eh(od,e),rd!==null&&Eh(rd,e),eb.forEach(t),tb.forEach(t);for(var a=0;a<ld.length;a++){var u=ld[a];u.blockedOn===e&&(u.blockedOn=null)}for(;0<ld.length&&(a=ld[0],a.blockedOn===null);)J1(a),a.blockedOn===null&&ld.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(u=0;u<a.length;u+=3){var p=a[u],m=a[u+1],F=p[Ya]||null;if(typeof m=="function")F||ev(a);else if(F){var de=null;if(m&&m.hasAttribute("formAction")){if(p=m,F=m[Ya]||null)de=F.formAction;else if(Nu(p)!==null)continue}else de=F.action;typeof de=="function"?a[u+1]=de:(a.splice(u,3),u-=3),ev(a)}}}function Kp(e){this._internalRoot=e}function Dh(e){this._internalRoot=e}function tv(e){e[vl]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Li=B6(),Oh=Ue,t_=cd,xn=Object.assign,jh=Symbol.for("react.element"),pl=Symbol.for("react.transitional.element"),Cc=Symbol.for("react.portal"),hn=Symbol.for("react.fragment"),zu=Symbol.for("react.strict_mode"),Bu=Symbol.for("react.profiler"),n0=Symbol.for("react.provider"),eg=Symbol.for("react.consumer"),Ls=Symbol.for("react.context"),wr=Symbol.for("react.forward_ref"),Uu=Symbol.for("react.suspense"),gl=Symbol.for("react.suspense_list"),Lh=Symbol.for("react.memo"),ds=Symbol.for("react.lazy"),i0=Symbol.for("react.activity"),nv=Symbol.for("react.memo_cache_sentinel"),a0=Symbol.iterator,tg=Symbol.for("react.client.reference"),rn=Array.isArray,We=Oh.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,en=t_.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,n_=Object.freeze({pending:!1,data:null,method:null,action:null}),Rh=[],Nh=[],Rs=-1,kr=te(null),Hu=te(null),$o=te(null),$u=te(null),Tr=Object.prototype.hasOwnProperty,ng=Li.unstable_scheduleCallback,i_=Li.unstable_cancelCallback,iv=Li.unstable_shouldYield,a_=Li.unstable_requestPaint,Go=Li.unstable_now,ml=Li.unstable_getCurrentPriorityLevel,ig=Li.unstable_ImmediatePriority,zh=Li.unstable_UserBlockingPriority,Gu=Li.unstable_NormalPriority,s_=Li.unstable_LowPriority,Bh=Li.unstable_IdlePriority,o_=Li.log,no=Li.unstable_setDisableYieldValue,yl=null,ca=null,jt=null,qa=!1,Ri=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ba=Math.clz32?Math.clz32:K,ag=Math.log,Mr=Math.LN2,sg=256,og=4194304,ua=2,io=8,Ar=32,rg=268435456,bl=Math.random().toString(36).slice(2),va="__reactFiber$"+bl,Ya="__reactProps$"+bl,vl="__reactContainer$"+bl,s0="__reactEvents$"+bl,av="__reactListeners$"+bl,Pu="__reactHandles$"+bl,Vu="__reactResources$"+bl,Iu="__reactMarker$"+bl,sv=new Set,Ns={},wc={},ov={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},lg=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]*$"),cg={},ug={},xl=0,o0,r0,rv,l0,qu,lv,cv;It.__reactDisabledLog=!0;var c0,Uh,Yu=!1,Hh=new(typeof WeakMap=="function"?WeakMap:Map),hs=null,Fa=!1,r_=/[\n"\\]/g,u0=!1,d0=!1,h0=!1,f0=!1,dg=!1,p0=!1,$h=["value","defaultValue"],uv=!1,dv=/["'&<>\n\t]|^\s|\s$/,g0="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),hg="applet caption html table td th marquee object template foreignObject desc title".split(" "),fg=hg.concat(["button"]),m0="dd dt li option optgroup p rp rt".split(" "),y0={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Fu={},Po={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Er=/([A-Z])/g,Dr=/^ms-/,Gh=/^(?:webkit|moz|o)[A-Z]/,Ph=/^-ms-/,_l=/-(.)/g,hv=/;\s*$/,kc={},Tc={},fv=!1,b0=!1,Vh=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(" ")),Ih="http://www.w3.org/1998/Math/MathML",Xu="http://www.w3.org/2000/svg",pg=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"]]),Mc={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},v0={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Vo={},x0=RegExp("^(aria)-[: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]*$"),gg=RegExp("^(aria)[A-Z][: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]*$"),_0=!1,Aa={},qh=/^on./,n=/^on[^A-Z]/,s=RegExp("^(aria)-[: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]*$"),l=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),h=/^[\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,b=null,M=null,fe=null,Se=!1,Oe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ie=!1;if(Oe)try{var at={};Object.defineProperty(at,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",at,at),window.removeEventListener("test",at,at)}catch{Ie=!1}var dt=null,Xe=null,Qe=null,Xt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zt=ia(Xt),Vn=xn({},Xt,{view:0,detail:0}),Pe=ia(Vn),He,Ve,ct,zt=xn({},Vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ct&&(ct&&e.type==="mousemove"?(He=e.screenX-ct.screenX,Ve=e.screenY-ct.screenY):Ve=He=0,ct=e),He)},movementY:function(e){return"movementY"in e?e.movementY:Ve}}),Sn=ia(zt),qt=xn({},zt,{dataTransfer:0}),Kt=ia(qt),Ki=xn({},Vn,{relatedTarget:0}),Nn=ia(Ki),Sl=xn({},Xt,{animationName:0,elapsedTime:0,pseudoElement:0}),l_=ia(Sl),V8=xn({},Xt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),I8=ia(V8),q8=xn({},Xt,{data:0}),P6=ia(q8),Y8=P6,F8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},X8={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"},Z8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Q8=xn({},Vn,{key:function(e){if(e.key){var t=F8[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?X8[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rf,charCode:function(e){return e.type==="keypress"?tu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),W8=ia(Q8),J8=xn({},zt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),V6=ia(J8),K8=xn({},Vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rf}),e9=ia(K8),t9=xn({},Xt,{propertyName:0,elapsedTime:0,pseudoElement:0}),n9=ia(t9),i9=xn({},zt,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),a9=ia(i9),s9=xn({},Xt,{newState:0,oldState:0}),o9=ia(s9),r9=[9,13,27,32],I6=229,c_=Oe&&"CompositionEvent"in window,S0=null;Oe&&"documentMode"in document&&(S0=document.documentMode);var l9=Oe&&"TextEvent"in window&&!S0,q6=Oe&&(!c_||S0&&8<S0&&11>=S0),Y6=32,F6=String.fromCharCode(Y6),X6=!1,mg=!1,c9={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},C0=null,w0=null,Z6=!1;Oe&&(Z6=Sm("input")&&(!document.documentMode||9<document.documentMode));var fs=typeof Object.is=="function"?Object.is:Xx,u9=Oe&&"documentMode"in document&&11>=document.documentMode,yg=null,u_=null,k0=null,d_=!1,bg={animationend:lr("Animation","AnimationEnd"),animationiteration:lr("Animation","AnimationIteration"),animationstart:lr("Animation","AnimationStart"),transitionrun:lr("Transition","TransitionRun"),transitionstart:lr("Transition","TransitionStart"),transitioncancel:lr("Transition","TransitionCancel"),transitionend:lr("Transition","TransitionEnd")},h_={},Q6={};Oe&&(Q6=document.createElement("div").style,"AnimationEvent"in window||(delete bg.animationend.animation,delete bg.animationiteration.animation,delete bg.animationstart.animation),"TransitionEvent"in window||delete bg.transitionend.transition);var W6=ql("animationend"),J6=ql("animationiteration"),K6=ql("animationstart"),d9=ql("transitionrun"),h9=ql("transitionstart"),f9=ql("transitioncancel"),ek=ql("transitionend"),tk=new Map,f_="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(" ");f_.push("scrollEnd");var p_=new WeakMap,pv=1,Ac=2,Io=[],vg=0,g_=0,Zu={};Object.freeze(Zu);var qo=null,xg=null,xi=0,p9=1,Ea=2,Xa=8,Or=16,nk=64,ik=!1;try{var ak=Object.preventExtensions({})}catch{ik=!0}var _g=[],Sg=0,gv=null,mv=0,Yo=[],Fo=0,Yh=null,Ec=1,Dc="",ps=null,Ui=null,In=!1,Oc=!1,Xo=null,Fh=null,Cl=!1,m_=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),sk=0;if(typeof performance=="object"&&typeof performance.now=="function")var g9=performance,ok=function(){return g9.now()};else{var m9=Date;ok=function(){return m9.now()}}var y_=te(null),b_=te(null),rk={},yv=null,Cg=null,wg=!1,y9=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,u){e.push(u)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},b9=Li.unstable_scheduleCallback,v9=Li.unstable_NormalPriority,da={$$typeof:Ls,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},kg=Li.unstable_now,lk=-0,bv=-0,zs=-1.1,Xh=-0,vv=!1,xv=!1,T0=null,v_=0,Zh=0,Tg=null,ck=We.S;We.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&w1(e,t),ck!==null&&ck(e,t)};var Qh=te(null),jr={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},M0=[],A0=[],E0=[],D0=[],O0=[],j0=[],Wh=new Set;jr.recordUnsafeLifecycleWarnings=function(e,t){Wh.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&M0.push(e),e.mode&Xa&&typeof t.UNSAFE_componentWillMount=="function"&&A0.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&E0.push(e),e.mode&Xa&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&D0.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&O0.push(e),e.mode&Xa&&typeof t.UNSAFE_componentWillUpdate=="function"&&j0.push(e))},jr.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<M0.length&&(M0.forEach(function(de){e.add(oe(de)||"Component"),Wh.add(de.type)}),M0=[]);var t=new Set;0<A0.length&&(A0.forEach(function(de){t.add(oe(de)||"Component"),Wh.add(de.type)}),A0=[]);var a=new Set;0<E0.length&&(E0.forEach(function(de){a.add(oe(de)||"Component"),Wh.add(de.type)}),E0=[]);var u=new Set;0<D0.length&&(D0.forEach(function(de){u.add(oe(de)||"Component"),Wh.add(de.type)}),D0=[]);var p=new Set;0<O0.length&&(O0.forEach(function(de){p.add(oe(de)||"Component"),Wh.add(de.type)}),O0=[]);var m=new Set;if(0<j0.length&&(j0.forEach(function(de){m.add(oe(de)||"Component"),Wh.add(de.type)}),j0=[]),0<t.size){var F=B(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
722
|
+
Check the render method of %s.`,oe(hs)||"Unknown")),u=bo(t),u.payload={element:a},m=m===void 0?null:m,m!==null&&(typeof m!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",m),u.callback=m),a=Xs(e,u,t),a!==null&&(Ei(a,e,t),Qr(a,e,t))}function Qp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Ky(e,t){Qp(e,t),(e=e.alternate)&&Qp(e,t)}function e0(e){if(e.tag===13){var t=Ra(e,67108864);t!==null&&Ei(t,e,67108864),Ky(e,67108864)}}function Jx(){return hs}function Kx(){for(var e=new Map,t=1,a=0;31>a;a++){var u=re(t);e.set(t,u),t*=2}return e}function e_(e,t,a,u){var p=We.T;We.T=null;var m=en.p;try{en.p=ua,hl(e,t,a,u)}finally{en.p=m,We.T=p}}function Wp(e,t,a,u){var p=We.T;We.T=null;var m=en.p;try{en.p=io,hl(e,t,a,u)}finally{en.p=m,We.T=p}}function hl(e,t,a,u){if(Fv){var p=Th(u);if(p===null)ka(e,t,u,Xv,a),fl(e,u);else if(Mh(p,e,t,a,u))u.stopPropagation();else if(fl(e,u),t&4&&-1<Y9.indexOf(e)){for(;p!==null;){var m=Je(p);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var F=le(m.pendingLanes);if(F!==0){var de=m;for(de.pendingLanes|=2,de.entangledLanes|=2;F;){var Ce=1<<31-ba(F);de.entanglements[1]|=Ce,F&=~Ce}Ds(m),(Kn&(ms|Nr))===ao&&(Ov=Go()+r4,gc(0))}}break;case 13:de=Ra(m,2),de!==null&&Ei(de,m,2),fc(),Ky(m,2)}if(m=Th(u),m===null&&ka(e,t,u,Xv,a),m===p)break;p=m}p!==null&&u.stopPropagation()}else ka(e,t,u,null,a)}}function Th(e){return e=Pl(e),Nu(e)}function Nu(e){if(Xv=null,e=qe(e),e!==null){var t=ie(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=U(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Xv=e,null}function Jp(e){switch(e){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 ua;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 io;case"message":switch(ml()){case ig:return ua;case zh:return io;case Gu:case s_:return Ar;case Bh:return rg;default:return Ar}default:return Ar}}function fl(e,t){switch(e){case"focusin":case"focusout":sd=null;break;case"dragenter":case"dragleave":od=null;break;case"mouseover":case"mouseout":rd=null;break;case"pointerover":case"pointerout":eb.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tb.delete(t.pointerId)}}function Ia(e,t,a,u,p,m){return e===null||e.nativeEvent!==m?(e={blockedOn:t,domEventName:a,eventSystemFlags:u,nativeEvent:m,targetContainers:[p]},t!==null&&(t=Je(t),t!==null&&e0(t)),e):(e.eventSystemFlags|=u,t=e.targetContainers,p!==null&&t.indexOf(p)===-1&&t.push(p),e)}function Mh(e,t,a,u,p){switch(t){case"focusin":return sd=Ia(sd,e,t,a,u,p),!0;case"dragenter":return od=Ia(od,e,t,a,u,p),!0;case"mouseover":return rd=Ia(rd,e,t,a,u,p),!0;case"pointerover":var m=p.pointerId;return eb.set(m,Ia(eb.get(m)||null,e,t,a,u,p)),!0;case"gotpointercapture":return m=p.pointerId,tb.set(m,Ia(tb.get(m)||null,e,t,a,u,p)),!0}return!1}function J1(e){var t=qe(e.target);if(t!==null){var a=ie(t);if(a!==null){if(t=a.tag,t===13){if(t=U(a),t!==null){e.blockedOn=t,$e(e.priority,function(){if(a.tag===13){var u=Ga(a);u=Te(u);var p=Ra(a,u);p!==null&&Ei(p,a,u),Ky(a,u)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ah(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Th(e.nativeEvent);if(a===null){a=e.nativeEvent;var u=new a.constructor(a.type,a),p=u;b!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),b=p,a.target.dispatchEvent(u),b===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),b=null}else return t=Je(a),t!==null&&e0(t),e.blockedOn=a,!1;t.shift()}return!0}function t0(e,t,a){Ah(e)&&a.delete(t)}function K1(){sS=!1,sd!==null&&Ah(sd)&&(sd=null),od!==null&&Ah(od)&&(od=null),rd!==null&&Ah(rd)&&(rd=null),eb.forEach(t0),tb.forEach(t0)}function Eh(e,t){e.blockedOn===t&&(e.blockedOn=null,sS||(sS=!0,Li.unstable_scheduleCallback(Li.unstable_NormalPriority,K1)))}function ev(e){Zv!==e&&(Zv=e,Li.unstable_scheduleCallback(Li.unstable_NormalPriority,function(){Zv===e&&(Zv=null);for(var t=0;t<e.length;t+=3){var a=e[t],u=e[t+1],p=e[t+2];if(typeof u!="function"){if(Nu(u||a)===null)continue;break}var m=Je(a);m!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:p,method:a.method,action:u},Object.freeze(a),nc(m,a,u,p))}}))}function Sc(e){function t(Ce){return Eh(Ce,e)}sd!==null&&Eh(sd,e),od!==null&&Eh(od,e),rd!==null&&Eh(rd,e),eb.forEach(t),tb.forEach(t);for(var a=0;a<ld.length;a++){var u=ld[a];u.blockedOn===e&&(u.blockedOn=null)}for(;0<ld.length&&(a=ld[0],a.blockedOn===null);)J1(a),a.blockedOn===null&&ld.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(u=0;u<a.length;u+=3){var p=a[u],m=a[u+1],F=p[Ya]||null;if(typeof m=="function")F||ev(a);else if(F){var de=null;if(m&&m.hasAttribute("formAction")){if(p=m,F=m[Ya]||null)de=F.formAction;else if(Nu(p)!==null)continue}else de=F.action;typeof de=="function"?a[u+1]=de:(a.splice(u,3),u-=3),ev(a)}}}function Kp(e){this._internalRoot=e}function Dh(e){this._internalRoot=e}function tv(e){e[vl]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Li=B6(),Oh=Ue,t_=cd,xn=Object.assign,jh=Symbol.for("react.element"),pl=Symbol.for("react.transitional.element"),Cc=Symbol.for("react.portal"),fn=Symbol.for("react.fragment"),zu=Symbol.for("react.strict_mode"),Bu=Symbol.for("react.profiler"),n0=Symbol.for("react.provider"),eg=Symbol.for("react.consumer"),Ls=Symbol.for("react.context"),wr=Symbol.for("react.forward_ref"),Uu=Symbol.for("react.suspense"),gl=Symbol.for("react.suspense_list"),Lh=Symbol.for("react.memo"),ds=Symbol.for("react.lazy"),i0=Symbol.for("react.activity"),nv=Symbol.for("react.memo_cache_sentinel"),a0=Symbol.iterator,tg=Symbol.for("react.client.reference"),rn=Array.isArray,We=Oh.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,en=t_.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,n_=Object.freeze({pending:!1,data:null,method:null,action:null}),Rh=[],Nh=[],Rs=-1,kr=te(null),Hu=te(null),$o=te(null),$u=te(null),Tr=Object.prototype.hasOwnProperty,ng=Li.unstable_scheduleCallback,i_=Li.unstable_cancelCallback,iv=Li.unstable_shouldYield,a_=Li.unstable_requestPaint,Go=Li.unstable_now,ml=Li.unstable_getCurrentPriorityLevel,ig=Li.unstable_ImmediatePriority,zh=Li.unstable_UserBlockingPriority,Gu=Li.unstable_NormalPriority,s_=Li.unstable_LowPriority,Bh=Li.unstable_IdlePriority,o_=Li.log,no=Li.unstable_setDisableYieldValue,yl=null,ca=null,jt=null,qa=!1,Ri=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ba=Math.clz32?Math.clz32:K,ag=Math.log,Mr=Math.LN2,sg=256,og=4194304,ua=2,io=8,Ar=32,rg=268435456,bl=Math.random().toString(36).slice(2),va="__reactFiber$"+bl,Ya="__reactProps$"+bl,vl="__reactContainer$"+bl,s0="__reactEvents$"+bl,av="__reactListeners$"+bl,Pu="__reactHandles$"+bl,Vu="__reactResources$"+bl,Iu="__reactMarker$"+bl,sv=new Set,Ns={},wc={},ov={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},lg=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]*$"),cg={},ug={},xl=0,o0,r0,rv,l0,qu,lv,cv;It.__reactDisabledLog=!0;var c0,Uh,Yu=!1,Hh=new(typeof WeakMap=="function"?WeakMap:Map),hs=null,Fa=!1,r_=/[\n"\\]/g,u0=!1,d0=!1,h0=!1,f0=!1,dg=!1,p0=!1,$h=["value","defaultValue"],uv=!1,dv=/["'&<>\n\t]|^\s|\s$/,g0="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),hg="applet caption html table td th marquee object template foreignObject desc title".split(" "),fg=hg.concat(["button"]),m0="dd dt li option optgroup p rp rt".split(" "),y0={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Fu={},Po={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Er=/([A-Z])/g,Dr=/^ms-/,Gh=/^(?:webkit|moz|o)[A-Z]/,Ph=/^-ms-/,_l=/-(.)/g,hv=/;\s*$/,kc={},Tc={},fv=!1,b0=!1,Vh=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(" ")),Ih="http://www.w3.org/1998/Math/MathML",Xu="http://www.w3.org/2000/svg",pg=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"]]),Mc={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},v0={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Vo={},x0=RegExp("^(aria)-[: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]*$"),gg=RegExp("^(aria)[A-Z][: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]*$"),_0=!1,Aa={},qh=/^on./,n=/^on[^A-Z]/,s=RegExp("^(aria)-[: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]*$"),l=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),h=/^[\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,b=null,M=null,fe=null,Se=!1,Oe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ie=!1;if(Oe)try{var at={};Object.defineProperty(at,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",at,at),window.removeEventListener("test",at,at)}catch{Ie=!1}var dt=null,Xe=null,Qe=null,Xt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zt=ia(Xt),Vn=xn({},Xt,{view:0,detail:0}),Pe=ia(Vn),He,Ve,ct,zt=xn({},Vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ct&&(ct&&e.type==="mousemove"?(He=e.screenX-ct.screenX,Ve=e.screenY-ct.screenY):Ve=He=0,ct=e),He)},movementY:function(e){return"movementY"in e?e.movementY:Ve}}),Sn=ia(zt),qt=xn({},zt,{dataTransfer:0}),Kt=ia(qt),Ki=xn({},Vn,{relatedTarget:0}),Nn=ia(Ki),Sl=xn({},Xt,{animationName:0,elapsedTime:0,pseudoElement:0}),l_=ia(Sl),V8=xn({},Xt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),I8=ia(V8),q8=xn({},Xt,{data:0}),P6=ia(q8),Y8=P6,F8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},X8={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"},Z8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Q8=xn({},Vn,{key:function(e){if(e.key){var t=F8[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?X8[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rf,charCode:function(e){return e.type==="keypress"?tu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),W8=ia(Q8),J8=xn({},zt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),V6=ia(J8),K8=xn({},Vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rf}),e9=ia(K8),t9=xn({},Xt,{propertyName:0,elapsedTime:0,pseudoElement:0}),n9=ia(t9),i9=xn({},zt,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),a9=ia(i9),s9=xn({},Xt,{newState:0,oldState:0}),o9=ia(s9),r9=[9,13,27,32],I6=229,c_=Oe&&"CompositionEvent"in window,S0=null;Oe&&"documentMode"in document&&(S0=document.documentMode);var l9=Oe&&"TextEvent"in window&&!S0,q6=Oe&&(!c_||S0&&8<S0&&11>=S0),Y6=32,F6=String.fromCharCode(Y6),X6=!1,mg=!1,c9={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},C0=null,w0=null,Z6=!1;Oe&&(Z6=Sm("input")&&(!document.documentMode||9<document.documentMode));var fs=typeof Object.is=="function"?Object.is:Xx,u9=Oe&&"documentMode"in document&&11>=document.documentMode,yg=null,u_=null,k0=null,d_=!1,bg={animationend:lr("Animation","AnimationEnd"),animationiteration:lr("Animation","AnimationIteration"),animationstart:lr("Animation","AnimationStart"),transitionrun:lr("Transition","TransitionRun"),transitionstart:lr("Transition","TransitionStart"),transitioncancel:lr("Transition","TransitionCancel"),transitionend:lr("Transition","TransitionEnd")},h_={},Q6={};Oe&&(Q6=document.createElement("div").style,"AnimationEvent"in window||(delete bg.animationend.animation,delete bg.animationiteration.animation,delete bg.animationstart.animation),"TransitionEvent"in window||delete bg.transitionend.transition);var W6=ql("animationend"),J6=ql("animationiteration"),K6=ql("animationstart"),d9=ql("transitionrun"),h9=ql("transitionstart"),f9=ql("transitioncancel"),ek=ql("transitionend"),tk=new Map,f_="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(" ");f_.push("scrollEnd");var p_=new WeakMap,pv=1,Ac=2,Io=[],vg=0,g_=0,Zu={};Object.freeze(Zu);var qo=null,xg=null,xi=0,p9=1,Ea=2,Xa=8,Or=16,nk=64,ik=!1;try{var ak=Object.preventExtensions({})}catch{ik=!0}var _g=[],Sg=0,gv=null,mv=0,Yo=[],Fo=0,Yh=null,Ec=1,Dc="",ps=null,Ui=null,In=!1,Oc=!1,Xo=null,Fh=null,Cl=!1,m_=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),sk=0;if(typeof performance=="object"&&typeof performance.now=="function")var g9=performance,ok=function(){return g9.now()};else{var m9=Date;ok=function(){return m9.now()}}var y_=te(null),b_=te(null),rk={},yv=null,Cg=null,wg=!1,y9=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,u){e.push(u)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},b9=Li.unstable_scheduleCallback,v9=Li.unstable_NormalPriority,da={$$typeof:Ls,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},kg=Li.unstable_now,lk=-0,bv=-0,zs=-1.1,Xh=-0,vv=!1,xv=!1,T0=null,v_=0,Zh=0,Tg=null,ck=We.S;We.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&w1(e,t),ck!==null&&ck(e,t)};var Qh=te(null),jr={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},M0=[],A0=[],E0=[],D0=[],O0=[],j0=[],Wh=new Set;jr.recordUnsafeLifecycleWarnings=function(e,t){Wh.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&M0.push(e),e.mode&Xa&&typeof t.UNSAFE_componentWillMount=="function"&&A0.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&E0.push(e),e.mode&Xa&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&D0.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&O0.push(e),e.mode&Xa&&typeof t.UNSAFE_componentWillUpdate=="function"&&j0.push(e))},jr.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<M0.length&&(M0.forEach(function(de){e.add(oe(de)||"Component"),Wh.add(de.type)}),M0=[]);var t=new Set;0<A0.length&&(A0.forEach(function(de){t.add(oe(de)||"Component"),Wh.add(de.type)}),A0=[]);var a=new Set;0<E0.length&&(E0.forEach(function(de){a.add(oe(de)||"Component"),Wh.add(de.type)}),E0=[]);var u=new Set;0<D0.length&&(D0.forEach(function(de){u.add(oe(de)||"Component"),Wh.add(de.type)}),D0=[]);var p=new Set;0<O0.length&&(O0.forEach(function(de){p.add(oe(de)||"Component"),Wh.add(de.type)}),O0=[]);var m=new Set;if(0<j0.length&&(j0.forEach(function(de){m.add(oe(de)||"Component"),Wh.add(de.type)}),j0=[]),0<t.size){var F=B(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
723
723
|
|
|
724
724
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
725
725
|
|