@glydeunity/voice-sdk 1.5.13 → 1.5.16

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(ut,ja){typeof exports=="object"&&typeof module<"u"?ja(exports):typeof define=="function"&&define.amd?define(["exports"],ja):(ut=typeof globalThis<"u"?globalThis:ut||self,ja(ut.GlydeChat={}))})(this,(function(ut){"use strict";const ja=`
1
+ (function(ft,ja){typeof exports=="object"&&typeof module<"u"?ja(exports):typeof define=="function"&&define.amd?define(["exports"],ja):(ft=typeof globalThis<"u"?globalThis:ft||self,ja(ft.GlydeChat={}))})(this,(function(ft){"use strict";const ja=`
2
2
  class AudioCaptureProcessor extends AudioWorkletProcessor {
3
3
  constructor() {
4
4
  super();
@@ -130,14 +130,14 @@ class AudioPlaybackProcessor extends AudioWorkletProcessor {
130
130
  }
131
131
 
132
132
  registerProcessor('audio-playback-processor', AudioPlaybackProcessor);
133
- `;class Df{config;unityUrl;active=!1;serverConfig=null;ws=null;audioContext=null;mediaStream=null;captureWorkletNode=null;playbackWorkletNode=null;isMuted=!1;outputSampleRate=24e3;inputSampleRate=48e3;isAgentSpeaking=!1;agentAudioDoneReceived=!1;conversationHistory=[];sessionContext={};constructor(f){this.config=f,this.unityUrl=f.unityBaseUrl||"https://api.glydeunity.com",console.log("[GlydeVoice] Initialized with Unity API URL:",this.unityUrl),f.conversationHistory&&(this.conversationHistory=f.conversationHistory),!f.publishableKey&&!f.apiKey&&!f.authToken&&console.warn("[GlydeVoice] No authentication method provided. One of publishableKey, apiKey, or authToken is required.")}getAuthHeaders(){const f={"Content-Type":"application/json"};return this.config.publishableKey&&(f["x-publishable-key"]=this.config.publishableKey),this.config.apiKey&&(f["x-api-key"]=this.config.apiKey),this.config.authToken&&(f.Authorization=`Bearer ${this.config.authToken}`),f}async fetchConfig(){const f=`${this.unityUrl}/api/unity/voice/config/${this.config.contextType}`,y=this.config.contextId?`${f}/${this.config.contextId}`:f,M=await fetch(y,{method:"GET",headers:this.getAuthHeaders()});if(!M.ok){const C=await M.json();throw new Error(C.error?.message||C.message||"Failed to fetch voice config")}const{data:o}=await M.json();return o}async start(){if(!this.active){this.active=!0;try{this.serverConfig=await this.fetchConfig(),console.log("[GlydeVoice] Fetched config:",this.serverConfig);const f={context_id:this.config.contextId,domain:typeof window<"u"?window.location.hostname:"localhost"};this.config.deepgramConfig&&(f.deepgram_config=this.config.deepgramConfig),this.conversationHistory.length>0&&(f.conversation_history=this.conversationHistory);const y=await fetch(`${this.unityUrl}/api/unity/voice/auth`,{method:"POST",headers:this.getAuthHeaders(),body:JSON.stringify(f)});if(!y.ok){const D=await y.json();throw new Error(D.error?.message||D.message||"Failed to authenticate voice session")}const{data:M}=await y.json(),{token:o,agent_config:C,deepgram_config:H}=M;this.setSessionContext({clientUuid:C?.client_uuid,contextId:this.config.contextId,contextType:this.config.contextType,currentJobUuid:C?.job_uuid});const Q=C?.instructions||this.serverConfig?.system_prompt||"You are a helpful AI assistant.";await this.initializeAudio();let U="wss://agent.deepgram.com/v1/agent/converse";const S=this.config.deepgramConfig||H||this.serverConfig?.deepgram_config;if(S?.tags&&S.tags.length>0){const D=new URLSearchParams;S.tags.forEach(R=>D.append("tag",R)),U+=`?${D.toString()}`}this.ws=new WebSocket(U,["bearer",o]),this.ws.onopen=()=>{const D=S||{think:{provider:{type:"open_ai",model:"gpt-4.1-nano"}},speak:{provider:{type:"deepgram",model:"aura-2-thalia-en"}},listen:{provider:{type:"deepgram",version:"v2",model:"flux-general-en"}}},R={type:"Settings",audio:{input:{encoding:"linear16",sample_rate:this.inputSampleRate},output:{encoding:"linear16",sample_rate:this.outputSampleRate,container:"none"}},agent:{language:"en",speak:D.speak||{provider:{type:"deepgram",model:"aura-2-thalia-en"}},listen:D.listen||{provider:{type:"deepgram",version:"v2",model:"flux-general-en"}},think:{provider:D.think?.provider||{type:"open_ai",model:"gpt-4.1-nano"},...((D.think?.functions?.length||0)>0||(this.config.additionalFunctions?.length||0)>0)&&{functions:[...D.think?.functions||[],...this.config.additionalFunctions||[]]}},...(C?.greeting??D?.greeting)&&{greeting:C?.greeting??D?.greeting}}};D.tags&&D.tags.length>0&&(R.tags=D.tags),this.ws.send(JSON.stringify(R)),this.emit({type:"open",payload:{config:C,serverConfig:this.serverConfig}})};const G=Q;this.ws.onmessage=D=>{if(typeof D.data=="string"){try{const R=JSON.parse(D.data);if(R.type==="SettingsApplied"){const w={type:"UpdatePrompt",prompt:G};this.ws.send(JSON.stringify(w)),setTimeout(()=>{this.mediaStream||this.startMicrophone().catch(st=>{console.error("[GlydeVoice] Failed to start microphone:",st)})},500)}R.type==="PromptUpdated"&&(this.mediaStream||this.startMicrophone().catch(w=>{console.error("[GlydeVoice] Failed to start microphone:",w)}))}catch{}this.handleTextMessage(D.data)}else D.data instanceof Blob?this.handleAudioData(D.data):D.data instanceof ArrayBuffer&&this.handleAudioBuffer(D.data)},this.ws.onerror=D=>{console.error("[GlydeVoice] WebSocket error:",D),this.emit({type:"error",payload:D})},this.ws.onclose=()=>{this.cleanup(),this.emit({type:"close"})},this.renderUI()}catch(f){throw console.error("[GlydeVoice] Error starting session:",f),this.active=!1,this.emit({type:"error",payload:f}),f}}}createWorkletBlobUrl(f){const y=new Blob([f],{type:"application/javascript"});return URL.createObjectURL(y)}async initializeAudio(){this.audioContext=new AudioContext({sampleRate:this.inputSampleRate});const f=this.createWorkletBlobUrl(ja),y=this.createWorkletBlobUrl(uh);try{await Promise.all([this.audioContext.audioWorklet.addModule(f),this.audioContext.audioWorklet.addModule(y)])}finally{URL.revokeObjectURL(f),URL.revokeObjectURL(y)}this.playbackWorkletNode=new AudioWorkletNode(this.audioContext,"audio-playback-processor"),this.playbackWorkletNode.connect(this.audioContext.destination),this.playbackWorkletNode.port.onmessage=M=>{const{type:o}=M.data;(o==="cleared"||o==="bufferEmpty")&&(this.isAgentSpeaking=!1,this.agentAudioDoneReceived=!1,this.emit({type:"agent_speaking",payload:!1}))}}handleTextMessage(f){try{const y=JSON.parse(f);switch(y.type){case"Welcome":this.emit({type:"ready"});break;case"SettingsApplied":break;case"PromptUpdated":break;case"UserStartedSpeaking":this.emit({type:"user_speaking",payload:!0}),this.clearPlaybackBuffer(),this.isAgentSpeaking=!1,this.agentAudioDoneReceived=!1;break;case"UserStoppedSpeaking":this.emit({type:"user_speaking",payload:!1});break;case"ConversationText":if(y.content&&y.content.trim()){const M=y.role==="assistant"?"agent":"user";this.config.onTranscript&&this.config.onTranscript(y.content,M),this.emit({type:"transcript",payload:{text:y.content,role:M}}),this.saveTranscript(y.content,y.role)}break;case"AgentStartedSpeaking":this.isAgentSpeaking=!0,this.agentAudioDoneReceived=!1,this.emit({type:"agent_speaking",payload:!0});break;case"AgentAudioDone":this.agentAudioDoneReceived=!0;break;case"Error":console.error("[GlydeVoice] Agent error:",y),this.emit({type:"error",payload:y});break;case"FunctionCallRequest":this.handleFunctionCallRequest(y);break}}catch(y){console.error("[GlydeVoice] Failed to parse message:",y)}}async handleAudioData(f){const y=await f.arrayBuffer();this.handleAudioBuffer(y)}handleAudioBuffer(f){if(!this.playbackWorkletNode||!this.audioContext)return;this.audioContext.state==="suspended"&&this.audioContext.resume();const y=f.byteLength;if(y===0)return;const M=y-y%2;if(M===0)return;const o=M===y?f:f.slice(0,M),C=new Int16Array(o),H=new Float32Array(C.length);for(let S=0;S<C.length;S++)H[S]=C[S]/32768;const Q=this.resample24kTo48k(H);!this.isAgentSpeaking&&!this.agentAudioDoneReceived&&(this.isAgentSpeaking=!0,this.emit({type:"agent_speaking",payload:!0}));const U=new Float32Array(Q);this.playbackWorkletNode.port.postMessage({type:"audio",data:U},[U.buffer])}resample24kTo48k(f){const y=f.length*2,M=new Float32Array(y);for(let C=0;C<f.length-1;C++){const H=f[C],Q=f[C+1];M[C*2]=H,M[C*2+1]=(H+Q)/2}const o=f.length-1;return M[o*2]=f[o],M[o*2+1]=f[o],M}clearPlaybackBuffer(){this.playbackWorkletNode&&this.playbackWorkletNode.port.postMessage({type:"clear"})}async startMicrophone(){if(!this.audioContext)throw new Error("Audio context not initialized");try{this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:{channelCount:1,sampleRate:this.inputSampleRate,echoCancellation:!0,noiseSuppression:!0}});const f=this.audioContext.createMediaStreamSource(this.mediaStream);this.captureWorkletNode=new AudioWorkletNode(this.audioContext,"audio-capture-processor"),this.captureWorkletNode.port.onmessage=y=>{!this.active||!this.ws||this.ws.readyState!==WebSocket.OPEN||this.isMuted||this.ws.send(y.data)},f.connect(this.captureWorkletNode),this.emit({type:"microphone_ready"})}catch(f){throw console.error("[GlydeVoice] Microphone error:",f),f}}async saveTranscript(f,y){if(!(!this.config.contextId||!f))try{await fetch(`${this.unityUrl}/api/unity/voice/transcript`,{method:"POST",headers:this.getAuthHeaders(),body:JSON.stringify({context_id:this.config.contextId,content:f,role:y==="assistant"?"assistant":"user"})})}catch{}}setMuted(f){this.isMuted=f}getMuted(){return this.isMuted}isActive(){return this.active}getServerConfig(){return this.serverConfig}stop(){this.active=!1,this.cleanup()}cleanup(){this.captureWorkletNode&&(this.captureWorkletNode.disconnect(),this.captureWorkletNode.port.close(),this.captureWorkletNode=null),this.playbackWorkletNode&&(this.playbackWorkletNode.disconnect(),this.playbackWorkletNode.port.close(),this.playbackWorkletNode=null),this.mediaStream&&(this.mediaStream.getTracks().forEach(f=>f.stop()),this.mediaStream=null),this.audioContext&&(this.audioContext.close(),this.audioContext=null),this.ws&&(this.ws.readyState===WebSocket.OPEN&&this.ws.close(),this.ws=null)}emit(f){this.config.onEvent&&this.config.onEvent(f)}renderUI(){if(!this.config.container)return;const f=typeof this.config.container=="string"?document.querySelector(this.config.container):this.config.container;f&&(f.innerHTML=`
133
+ `;class Df{config;unityUrl;active=!1;serverConfig=null;ws=null;audioContext=null;mediaStream=null;captureWorkletNode=null;playbackWorkletNode=null;isMuted=!1;outputSampleRate=24e3;inputSampleRate=48e3;isAgentSpeaking=!1;agentAudioDoneReceived=!1;conversationHistory=[];sessionContext={};constructor(f){this.config=f,this.unityUrl=f.unityBaseUrl||"https://api.glydeunity.com",console.log("[GlydeVoice] Initialized with Unity API URL:",this.unityUrl),f.conversationHistory&&(this.conversationHistory=f.conversationHistory),!f.publishableKey&&!f.apiKey&&!f.authToken&&console.warn("[GlydeVoice] No authentication method provided. One of publishableKey, apiKey, or authToken is required.")}getAuthHeaders(){const f={"Content-Type":"application/json"};return this.config.publishableKey&&(f["x-publishable-key"]=this.config.publishableKey),this.config.apiKey&&(f["x-api-key"]=this.config.apiKey),this.config.authToken&&(f.Authorization=`Bearer ${this.config.authToken}`),f}async fetchConfig(){const f=`${this.unityUrl}/api/unity/voice/config/${this.config.contextType}`;let h=this.config.contextId?`${f}/${this.config.contextId}`:f;if(this.config.skipContinuityLimit===!0){const C=h.includes("?")?"&":"?";h+=`${C}skip_continuity_limit=true`}const M=await fetch(h,{method:"GET",headers:this.getAuthHeaders()});if(!M.ok){const C=await M.json();throw new Error(C.error?.message||C.message||"Failed to fetch voice config")}const{data:o}=await M.json();return o}async start(){if(!this.active){this.active=!0;try{this.serverConfig=await this.fetchConfig(),console.log("[GlydeVoice] Fetched config:",this.serverConfig);const f={context_id:this.config.contextId,domain:typeof window<"u"?window.location.hostname:"localhost"};this.config.deepgramConfig&&(f.deepgram_config=this.config.deepgramConfig),this.conversationHistory.length>0&&(f.conversation_history=this.conversationHistory),this.config.skipContinuityLimit===!0&&(f.skip_continuity_limit=!0);const h=await fetch(`${this.unityUrl}/api/unity/voice/auth`,{method:"POST",headers:this.getAuthHeaders(),body:JSON.stringify(f)});if(!h.ok){const O=await h.json();throw new Error(O.error?.message||O.message||"Failed to authenticate voice session")}const{data:M}=await h.json(),{token:o,agent_config:C,deepgram_config:N}=M;this.setSessionContext({clientUuid:C?.client_uuid,contextId:this.config.contextId,contextType:this.config.contextType,currentJobUuid:C?.job_uuid});const Q=C?.instructions||this.serverConfig?.system_prompt||"You are a helpful AI assistant.";await this.initializeAudio();let D="wss://agent.deepgram.com/v1/agent/converse";const S=this.config.deepgramConfig||N||this.serverConfig?.deepgram_config;if(S?.tags&&S.tags.length>0){const O=new URLSearchParams;S.tags.forEach(H=>O.append("tag",H)),D+=`?${O.toString()}`}this.ws=new WebSocket(D,["bearer",o]),this.ws.onopen=()=>{const O=S||{think:{provider:{type:"open_ai",model:"gpt-4.1-nano"}},speak:{provider:{type:"deepgram",model:"aura-2-thalia-en"}},listen:{provider:{type:"deepgram",version:"v2",model:"flux-general-en"}}},H={type:"Settings",audio:{input:{encoding:"linear16",sample_rate:this.inputSampleRate},output:{encoding:"linear16",sample_rate:this.outputSampleRate,container:"none"}},agent:{language:"en",speak:O.speak||{provider:{type:"deepgram",model:"aura-2-thalia-en"}},listen:O.listen||{provider:{type:"deepgram",version:"v2",model:"flux-general-en"}},think:{provider:O.think?.provider||{type:"open_ai",model:"gpt-4.1-nano"},...((O.think?.functions?.length||0)>0||(this.config.additionalFunctions?.length||0)>0)&&{functions:[...O.think?.functions||[],...this.config.additionalFunctions||[]]}},...(C?.greeting??O?.greeting)&&{greeting:C?.greeting??O?.greeting}}};O.tags&&O.tags.length>0&&(H.tags=O.tags),this.ws.send(JSON.stringify(H)),this.emit({type:"open",payload:{config:C,serverConfig:this.serverConfig}})};const G=Q;this.ws.onmessage=O=>{if(typeof O.data=="string"){try{const H=JSON.parse(O.data);if(H.type==="SettingsApplied"){const w={type:"UpdatePrompt",prompt:G};this.ws.send(JSON.stringify(w)),setTimeout(()=>{this.mediaStream||this.startMicrophone().catch(F=>{console.error("[GlydeVoice] Failed to start microphone:",F)})},500)}H.type==="PromptUpdated"&&(this.mediaStream||this.startMicrophone().catch(w=>{console.error("[GlydeVoice] Failed to start microphone:",w)}))}catch{}this.handleTextMessage(O.data)}else O.data instanceof Blob?this.handleAudioData(O.data):O.data instanceof ArrayBuffer&&this.handleAudioBuffer(O.data)},this.ws.onerror=O=>{console.error("[GlydeVoice] WebSocket error:",O),this.emit({type:"error",payload:O})},this.ws.onclose=()=>{this.cleanup(),this.emit({type:"close"})},this.renderUI()}catch(f){throw console.error("[GlydeVoice] Error starting session:",f),this.active=!1,this.emit({type:"error",payload:f}),f}}}createWorkletBlobUrl(f){const h=new Blob([f],{type:"application/javascript"});return URL.createObjectURL(h)}async initializeAudio(){this.audioContext=new AudioContext({sampleRate:this.inputSampleRate});const f=this.createWorkletBlobUrl(ja),h=this.createWorkletBlobUrl(uh);try{await Promise.all([this.audioContext.audioWorklet.addModule(f),this.audioContext.audioWorklet.addModule(h)])}finally{URL.revokeObjectURL(f),URL.revokeObjectURL(h)}this.playbackWorkletNode=new AudioWorkletNode(this.audioContext,"audio-playback-processor"),this.playbackWorkletNode.connect(this.audioContext.destination),this.playbackWorkletNode.port.onmessage=M=>{const{type:o}=M.data;(o==="cleared"||o==="bufferEmpty")&&(this.isAgentSpeaking=!1,this.agentAudioDoneReceived=!1,this.emit({type:"agent_speaking",payload:!1}))}}handleTextMessage(f){try{const h=JSON.parse(f);switch(h.type){case"Welcome":this.emit({type:"ready"});break;case"SettingsApplied":break;case"PromptUpdated":break;case"UserStartedSpeaking":this.emit({type:"user_speaking",payload:!0}),this.clearPlaybackBuffer(),this.isAgentSpeaking=!1,this.agentAudioDoneReceived=!1;break;case"UserStoppedSpeaking":this.emit({type:"user_speaking",payload:!1});break;case"ConversationText":if(h.content&&h.content.trim()){const M=h.role==="assistant"?"agent":"user";this.config.onTranscript&&this.config.onTranscript(h.content,M),this.emit({type:"transcript",payload:{text:h.content,role:M}}),this.saveTranscript(h.content,h.role)}break;case"AgentStartedSpeaking":this.isAgentSpeaking=!0,this.agentAudioDoneReceived=!1,this.emit({type:"agent_speaking",payload:!0});break;case"AgentAudioDone":this.agentAudioDoneReceived=!0;break;case"Error":console.error("[GlydeVoice] Agent error:",h),this.emit({type:"error",payload:h});break;case"FunctionCallRequest":this.handleFunctionCallRequest(h);break}}catch(h){console.error("[GlydeVoice] Failed to parse message:",h)}}async handleAudioData(f){const h=await f.arrayBuffer();this.handleAudioBuffer(h)}handleAudioBuffer(f){if(!this.playbackWorkletNode||!this.audioContext)return;this.audioContext.state==="suspended"&&this.audioContext.resume();const h=f.byteLength;if(h===0)return;const M=h-h%2;if(M===0)return;const o=M===h?f:f.slice(0,M),C=new Int16Array(o),N=new Float32Array(C.length);for(let S=0;S<C.length;S++)N[S]=C[S]/32768;const Q=this.resample24kTo48k(N);!this.isAgentSpeaking&&!this.agentAudioDoneReceived&&(this.isAgentSpeaking=!0,this.emit({type:"agent_speaking",payload:!0}));const D=new Float32Array(Q);this.playbackWorkletNode.port.postMessage({type:"audio",data:D},[D.buffer])}resample24kTo48k(f){const h=f.length*2,M=new Float32Array(h);for(let C=0;C<f.length-1;C++){const N=f[C],Q=f[C+1];M[C*2]=N,M[C*2+1]=(N+Q)/2}const o=f.length-1;return M[o*2]=f[o],M[o*2+1]=f[o],M}clearPlaybackBuffer(){this.playbackWorkletNode&&this.playbackWorkletNode.port.postMessage({type:"clear"})}async startMicrophone(){if(!this.audioContext)throw new Error("Audio context not initialized");try{this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:{channelCount:1,sampleRate:this.inputSampleRate,echoCancellation:!0,noiseSuppression:!0}});const f=this.audioContext.createMediaStreamSource(this.mediaStream);this.captureWorkletNode=new AudioWorkletNode(this.audioContext,"audio-capture-processor"),this.captureWorkletNode.port.onmessage=h=>{!this.active||!this.ws||this.ws.readyState!==WebSocket.OPEN||this.isMuted||this.ws.send(h.data)},f.connect(this.captureWorkletNode),this.emit({type:"microphone_ready"})}catch(f){throw console.error("[GlydeVoice] Microphone error:",f),f}}async saveTranscript(f,h){if(!(!this.config.contextId||!f))try{await fetch(`${this.unityUrl}/api/unity/voice/transcript`,{method:"POST",headers:this.getAuthHeaders(),body:JSON.stringify({context_id:this.config.contextId,content:f,role:h==="assistant"?"assistant":"user"})})}catch{}}setMuted(f){this.isMuted=f}getMuted(){return this.isMuted}isActive(){return this.active}getServerConfig(){return this.serverConfig}stop(){this.active=!1,this.cleanup()}cleanup(){this.captureWorkletNode&&(this.captureWorkletNode.disconnect(),this.captureWorkletNode.port.close(),this.captureWorkletNode=null),this.playbackWorkletNode&&(this.playbackWorkletNode.disconnect(),this.playbackWorkletNode.port.close(),this.playbackWorkletNode=null),this.mediaStream&&(this.mediaStream.getTracks().forEach(f=>f.stop()),this.mediaStream=null),this.audioContext&&(this.audioContext.close(),this.audioContext=null),this.ws&&(this.ws.readyState===WebSocket.OPEN&&this.ws.close(),this.ws=null)}emit(f){this.config.onEvent&&this.config.onEvent(f)}renderUI(){if(!this.config.container)return;const f=typeof this.config.container=="string"?document.querySelector(this.config.container):this.config.container;f&&(f.innerHTML=`
134
134
  <div style="padding: 20px; border: 1px solid #ccc; border-radius: 8px; background: #fff;">
135
135
  <h3>Glyde Voice Agent</h3>
136
136
  <p>Status: Active</p>
137
137
  <p>Context: ${this.config.contextType}</p>
138
138
  <button onclick="this.closest('div').remove()">Close</button>
139
139
  </div>
140
- `)}async handleFunctionCallRequest(f){for(const y of f.functions){console.log("[GlydeVoice] Function call request:",y.name,y.arguments);let M={};try{M=y.arguments?JSON.parse(y.arguments):{}}catch(H){console.warn("[GlydeVoice] Failed to parse function arguments:",H)}let o;try{y.name==="end_conversation"?o=await this.handleEndConversation(M):o=await this.executeVoiceFunction(y.name,y.id,M)}catch(H){console.error("[GlydeVoice] Function call error:",H),o=JSON.stringify({error:"Function execution failed",details:H instanceof Error?H.message:String(H)})}const C={type:"FunctionCallResponse",id:y.id,name:y.name,content:o};this.ws&&this.ws.readyState===WebSocket.OPEN?(this.ws.send(JSON.stringify(C)),console.log("[GlydeVoice] Function response sent:",y.name)):console.error("[GlydeVoice] Cannot send function response - WebSocket not open")}}async executeVoiceFunction(f,y,M){console.log("[GlydeVoice] Executing voice function via Unity API:",f);try{const o=await fetch(`${this.unityUrl}/api/unity/voice/function`,{method:"POST",headers:this.getAuthHeaders(),body:JSON.stringify({function_name:f,function_call_id:y,input:M,context:{context_id:this.sessionContext.contextId,context_type:this.sessionContext.contextType,current_job_uuid:this.sessionContext.currentJobUuid}})});if(!o.ok){const H=await o.json().catch(()=>({})),Q=H.error?.message||H.message||`HTTP ${o.status}`;throw console.error("[GlydeVoice] Voice function API call failed:",o.status,Q),new Error(Q)}const C=await o.json();if(C.success&&C.data?.output!==void 0){const H=C.data.output;if(typeof H=="object"&&H!==null&&H.success===!1){const Q=H.error??H.fallback_message;console.warn("[GlydeVoice] Voice function backend reported failure:",f,Q)}return typeof H=="string"?H:JSON.stringify(H)}throw console.error("[GlydeVoice] Voice function invalid response:",C),new Error("Invalid response from voice function endpoint")}catch(o){const C=o instanceof Error?o.message:"Function execution failed";return console.error("[GlydeVoice] Voice function error:",C,o),JSON.stringify({success:!1,error:C,fallback_message:"I apologize, but I'm having trouble with that request right now. Is there something else I can help you with?"})}}async handleEndConversation(f){const y=f.item||"user request";return console.log(`[GlydeVoice] End conversation triggered by: ${y}`),setTimeout(()=>{this.stop()},2e3),JSON.stringify({success:!0,message:"Conversation ending. Say goodbye to the user.",trigger_phrase:y})}setSessionContext(f){this.sessionContext={...this.sessionContext,...f},console.log("[GlydeVoice] Session context updated:",{hasContextId:!!f.contextId,contextType:f.contextType,hasJobUuid:!!f.currentJobUuid})}}class Uf{config;unityUrl;history=[];isTyping=!1;initialized=!1;conversationSummary=null;constructor(f){this.config=f,this.unityUrl=f.unityBaseUrl||"https://api.glydeunity.com",console.log("[GlydeText] Initialized with Unity API URL:",this.unityUrl),!f.publishableKey&&!f.apiKey&&!f.authToken&&console.warn("[GlydeText] No authentication method provided. One of publishableKey, apiKey, or authToken is required.")}getAuthHeaders(){const f={"Content-Type":"application/json"};return this.config.publishableKey&&(f["x-publishable-key"]=this.config.publishableKey),this.config.apiKey&&(f["x-api-key"]=this.config.apiKey),this.config.authToken&&(f.Authorization=`Bearer ${this.config.authToken}`),f}emit(f){this.config.onEvent&&this.config.onEvent(f)}setTyping(f){this.isTyping=f,this.config.onTyping&&this.config.onTyping(f)}async initialize(){if(!this.config.contextId)throw new Error("contextId is required for text chat initialization");this.setTyping(!0);try{const f=await fetch(`${this.unityUrl}/api/unity/screening/summary/${this.config.contextId}`,{method:"GET",headers:this.getAuthHeaders()});if(!f.ok){const o=await f.json().catch(()=>({}));throw new Error(o.error?.message||o.message||"Failed to initialize chat")}const y=await f.json();this.conversationSummary=y;const M={role:"assistant",content:y.greeting,created:new Date().toISOString()};return this.history=[M],this.initialized=!0,this.emit({type:"ready"}),this.emit({type:"history_loaded",payload:this.history}),this.history}catch(f){throw console.error("[GlydeText] Initialization error:",f),this.emit({type:"error",payload:f}),f}finally{this.setTyping(!1)}}getSummary(){return this.conversationSummary}async sendMessage(f){if(!this.config.contextId)throw new Error("contextId is required for sending messages");if(!f.trim())throw new Error("Message cannot be empty");this.initialized||await this.initialize();const y={role:"user",content:f.trim(),created:new Date().toISOString()};this.history.push(y),this.config.onMessage&&this.config.onMessage(y),this.emit({type:"message",payload:y}),this.setTyping(!0);try{const M=await fetch(`${this.unityUrl}/api/unity/screening/chat`,{method:"POST",headers:this.getAuthHeaders(),body:JSON.stringify({application_uuid:this.config.contextId,message:f.trim()})});if(!M.ok){const Q=await M.json().catch(()=>({}));throw new Error(Q.error?.message||Q.message||"Failed to send message")}const o=await M.json();o.history?.messages&&(this.history=o.history.messages.filter(Q=>Q.role!=="system"));const C=[...this.history].reverse().find(Q=>Q.role==="assistant");return C?(this.config.onMessage&&this.config.onMessage(C),this.emit({type:"message",payload:C}),C):{role:"assistant",content:o.response||"I received your message.",created:new Date().toISOString()}}catch(M){throw console.error("[GlydeText] Send message error:",M),this.emit({type:"error",payload:M}),M}finally{this.setTyping(!1)}}getHistory(){return[...this.history].filter(f=>f.role!=="system")}clearHistory(){this.history=[],this.initialized=!1}getIsTyping(){return this.isTyping}getIsInitialized(){return this.initialized}}function ih(g){return g&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g}var Pu={exports:{}},K={},jf;function ch(){if(jf)return K;jf=1;var g={env:{NODE_ENV:"production"}};var f=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),G=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),w=Symbol.iterator;function st(d){return d===null||typeof d!="object"?null:(d=w&&d[w]||d["@@iterator"],typeof d=="function"?d:null)}var $={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},J=Object.assign,dt={};function gt(d,E,N){this.props=d,this.context=E,this.refs=dt,this.updater=N||$}gt.prototype.isReactComponent={},gt.prototype.setState=function(d,E){if(typeof d!="object"&&typeof d!="function"&&d!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,d,E,"setState")},gt.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function bt(){}bt.prototype=gt.prototype;function xt(d,E,N){this.props=d,this.context=E,this.refs=dt,this.updater=N||$}var V=xt.prototype=new bt;V.constructor=xt,J(V,gt.prototype),V.isPureReactComponent=!0;var Mt=Array.isArray;function Gt(){}var et={H:null,A:null,T:null,S:null},At=Object.prototype.hasOwnProperty;function Pt(d,E,N){var Y=N.ref;return{$$typeof:f,type:d,key:E,ref:Y!==void 0?Y:null,props:N}}function je(d,E){return Pt(d.type,E,d.props)}function Yt(d){return typeof d=="object"&&d!==null&&d.$$typeof===f}function $t(d){var E={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(N){return E[N]})}var pe=/\/+/g;function Wt(d,E){return typeof d=="object"&&d!==null&&d.key!=null?$t(""+d.key):E.toString(36)}function j(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(Gt,Gt):(d.status="pending",d.then(function(E){d.status==="pending"&&(d.status="fulfilled",d.value=E)},function(E){d.status==="pending"&&(d.status="rejected",d.reason=E)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function _(d,E,N,Y,F){var I=typeof d;(I==="undefined"||I==="boolean")&&(d=null);var rt=!1;if(d===null)rt=!0;else switch(I){case"bigint":case"string":case"number":rt=!0;break;case"object":switch(d.$$typeof){case f:case y:rt=!0;break;case D:return rt=d._init,_(rt(d._payload),E,N,Y,F)}}if(rt)return F=F(d),rt=Y===""?"."+Wt(d,0):Y,Mt(F)?(N="",rt!=null&&(N=rt.replace(pe,"$&/")+"/"),_(F,E,N,"",function(Ya){return Ya})):F!=null&&(Yt(F)&&(F=je(F,N+(F.key==null||d&&d.key===F.key?"":(""+F.key).replace(pe,"$&/")+"/")+rt)),E.push(F)),1;rt=0;var Ft=Y===""?".":Y+":";if(Mt(d))for(var Ut=0;Ut<d.length;Ut++)Y=d[Ut],I=Ft+Wt(Y,Ut),rt+=_(Y,E,N,I,F);else if(Ut=st(d),typeof Ut=="function")for(d=Ut.call(d),Ut=0;!(Y=d.next()).done;)Y=Y.value,I=Ft+Wt(Y,Ut++),rt+=_(Y,E,N,I,F);else if(I==="object"){if(typeof d.then=="function")return _(j(d),E,N,Y,F);throw E=String(d),Error("Objects are not valid as a React child (found: "+(E==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}return rt}function O(d,E,N){if(d==null)return d;var Y=[],F=0;return _(d,Y,"","",function(I){return E.call(N,I,F++)}),Y}function it(d){if(d._status===-1){var E=d._result;E=E(),E.then(function(N){(d._status===0||d._status===-1)&&(d._status=1,d._result=N)},function(N){(d._status===0||d._status===-1)&&(d._status=2,d._result=N)}),d._status===-1&&(d._status=0,d._result=E)}if(d._status===1)return d._result.default;throw d._result}var Tt=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var E=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(E))return}else if(typeof g=="object"&&typeof g.emit=="function"){g.emit("uncaughtException",d);return}console.error(d)},ce={map:O,forEach:function(d,E,N){O(d,function(){E.apply(this,arguments)},N)},count:function(d){var E=0;return O(d,function(){E++}),E},toArray:function(d){return O(d,function(E){return E})||[]},only:function(d){if(!Yt(d))throw Error("React.Children.only expected to receive a single React element child.");return d}};return K.Activity=R,K.Children=ce,K.Component=gt,K.Fragment=M,K.Profiler=C,K.PureComponent=xt,K.StrictMode=o,K.Suspense=S,K.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=et,K.__COMPILER_RUNTIME={__proto__:null,c:function(d){return et.H.useMemoCache(d)}},K.cache=function(d){return function(){return d.apply(null,arguments)}},K.cacheSignal=function(){return null},K.cloneElement=function(d,E,N){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var Y=J({},d.props),F=d.key;if(E!=null)for(I in E.key!==void 0&&(F=""+E.key),E)!At.call(E,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&E.ref===void 0||(Y[I]=E[I]);var I=arguments.length-2;if(I===1)Y.children=N;else if(1<I){for(var rt=Array(I),Ft=0;Ft<I;Ft++)rt[Ft]=arguments[Ft+2];Y.children=rt}return Pt(d.type,F,Y)},K.createContext=function(d){return d={$$typeof:Q,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:H,_context:d},d},K.createElement=function(d,E,N){var Y,F={},I=null;if(E!=null)for(Y in E.key!==void 0&&(I=""+E.key),E)At.call(E,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(F[Y]=E[Y]);var rt=arguments.length-2;if(rt===1)F.children=N;else if(1<rt){for(var Ft=Array(rt),Ut=0;Ut<rt;Ut++)Ft[Ut]=arguments[Ut+2];F.children=Ft}if(d&&d.defaultProps)for(Y in rt=d.defaultProps,rt)F[Y]===void 0&&(F[Y]=rt[Y]);return Pt(d,I,F)},K.createRef=function(){return{current:null}},K.forwardRef=function(d){return{$$typeof:U,render:d}},K.isValidElement=Yt,K.lazy=function(d){return{$$typeof:D,_payload:{_status:-1,_result:d},_init:it}},K.memo=function(d,E){return{$$typeof:G,type:d,compare:E===void 0?null:E}},K.startTransition=function(d){var E=et.T,N={};et.T=N;try{var Y=d(),F=et.S;F!==null&&F(N,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(Gt,Tt)}catch(I){Tt(I)}finally{E!==null&&N.types!==null&&(E.types=N.types),et.T=E}},K.unstable_useCacheRefresh=function(){return et.H.useCacheRefresh()},K.use=function(d){return et.H.use(d)},K.useActionState=function(d,E,N){return et.H.useActionState(d,E,N)},K.useCallback=function(d,E){return et.H.useCallback(d,E)},K.useContext=function(d){return et.H.useContext(d)},K.useDebugValue=function(){},K.useDeferredValue=function(d,E){return et.H.useDeferredValue(d,E)},K.useEffect=function(d,E){return et.H.useEffect(d,E)},K.useEffectEvent=function(d){return et.H.useEffectEvent(d)},K.useId=function(){return et.H.useId()},K.useImperativeHandle=function(d,E,N){return et.H.useImperativeHandle(d,E,N)},K.useInsertionEffect=function(d,E){return et.H.useInsertionEffect(d,E)},K.useLayoutEffect=function(d,E){return et.H.useLayoutEffect(d,E)},K.useMemo=function(d,E){return et.H.useMemo(d,E)},K.useOptimistic=function(d,E){return et.H.useOptimistic(d,E)},K.useReducer=function(d,E,N){return et.H.useReducer(d,E,N)},K.useRef=function(d){return et.H.useRef(d)},K.useState=function(d){return et.H.useState(d)},K.useSyncExternalStore=function(d,E,N){return et.H.useSyncExternalStore(d,E,N)},K.useTransition=function(){return et.H.useTransition()},K.version="19.2.4",K}var Rf;function ti(){return Rf||(Rf=1,Pu.exports=ch()),Pu.exports}var Z=ti();const Rn=ih(Z);function Nf(g){const[f,y]=Z.useState("idle"),[M,o]=Z.useState([]),[C,H]=Z.useState(!1),[Q,U]=Z.useState(!1),[S,G]=Z.useState(!1),[D,R]=Z.useState(null),w=Z.useRef(null),st=Z.useCallback(V=>{switch(V.type){case"ready":y("active");break;case"close":y("idle"),H(!1),U(!1);break;case"error":y("error"),R(typeof V.payload=="object"&&V.payload!==null&&"message"in V.payload?String(V.payload.message):"Connection error");break;case"user_speaking":H(!!V.payload);break;case"agent_speaking":U(!!V.payload);break}},[]),$=Z.useCallback((V,Mt)=>{o(Gt=>[...Gt,{role:Mt,content:V,timestamp:new Date}])},[]),J=Z.useCallback(async()=>{y("connecting"),R(null);try{const V=new Df({...g,onEvent:st,onTranscript:$});w.current=V,await V.start()}catch(V){console.error("[useVoiceAgent] Failed to start:",V),y("error"),R(V instanceof Error?V.message:"Failed to connect")}},[g,st,$]),dt=Z.useCallback(()=>{w.current?.stop(),w.current=null,y("idle"),H(!1),U(!1)},[]),gt=Z.useCallback(()=>{const V=!S;G(V),w.current?.setMuted(V)},[S]),bt=Z.useCallback(V=>{G(V),w.current?.setMuted(V)},[]),xt=Z.useCallback(()=>{o([])},[]);return Z.useEffect(()=>()=>{w.current?.stop()},[]),Z.useEffect(()=>{g.autoStart&&f==="idle"&&J()},[g.autoStart,f,J]),{status:f,transcripts:M,isUserSpeaking:C,isAgentSpeaking:Q,isMuted:S,errorMessage:D,start:J,stop:dt,toggleMute:gt,setMuted:bt,clearTranscripts:xt,voiceAgent:w.current}}function Hf(g){const[f,y]=Z.useState("idle"),[M,o]=Z.useState([]),[C,H]=Z.useState(!1),[Q,U]=Z.useState(null),S=Z.useRef(null),G=Z.useRef(!1),D=Z.useCallback(()=>(S.current||(S.current=new Uf({...g,onTyping:H})),S.current),[g]),R=Z.useCallback(async()=>{if(!G.current){y("loading"),U(null);try{const J=await D().initialize();o(J),y("ready"),G.current=!0}catch($){console.error("[useTextChat] Initialization error:",$),y("error"),U($ instanceof Error?$.message:"Failed to initialize chat")}}},[D]),w=Z.useCallback(async $=>{if($.trim()){U(null);try{const J=D(),dt={role:"user",content:$.trim(),created:new Date().toISOString()};o(bt=>[...bt,dt]),await J.sendMessage($);const gt=J.getHistory();o(gt),f!=="ready"&&(y("ready"),G.current=!0)}catch(J){console.error("[useTextChat] Send message error:",J),U(J instanceof Error?J.message:"Failed to send message")}}},[D,f]),st=Z.useCallback(()=>{S.current?.clearHistory(),o([]),G.current=!1,y("idle")},[]);return Z.useEffect(()=>{g.autoInit&&!G.current&&g.contextId&&R()},[g.autoInit,g.contextId,R]),Z.useEffect(()=>()=>{S.current=null},[]),{status:f,messages:M,isLoading:C,errorMessage:Q,initialize:R,sendMessage:w,clearHistory:st,textChat:S.current}}var ei={exports:{}},Ra={};var Bf;function fh(){if(Bf)return Ra;Bf=1;var g=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function y(M,o,C){var H=null;if(C!==void 0&&(H=""+C),o.key!==void 0&&(H=""+o.key),"key"in o){C={};for(var Q in o)Q!=="key"&&(C[Q]=o[Q])}else C=o;return o=C.ref,{$$typeof:g,type:M,key:H,ref:o!==void 0?o:null,props:C}}return Ra.Fragment=f,Ra.jsx=y,Ra.jsxs=y,Ra}var qf;function sh(){return qf||(qf=1,ei.exports=fh()),ei.exports}var p=sh();const Na=({size:g=24,color:f="currentColor",className:y})=>p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:y,children:[p.jsx("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"}),p.jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),p.jsx("line",{x1:"12",x2:"12",y1:"19",y2:"22"})]}),oh=({size:g=24,color:f="currentColor",className:y})=>p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:y,children:[p.jsx("line",{x1:"2",x2:"22",y1:"2",y2:"22"}),p.jsx("path",{d:"M18.89 13.23A7.12 7.12 0 0 0 19 12v-2"}),p.jsx("path",{d:"M5 10v2a7 7 0 0 0 12 5"}),p.jsx("path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33"}),p.jsx("path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12"}),p.jsx("line",{x1:"12",x2:"12",y1:"19",y2:"22"})]}),rh=({size:g=24,color:f="currentColor",className:y})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:y,children:p.jsx("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})}),Gf=({size:g=24,color:f="currentColor",className:y})=>p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:y,children:[p.jsx("path",{d:"M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"}),p.jsx("line",{x1:"22",x2:"2",y1:"2",y2:"22"})]}),Nn=({size:g=24,color:f="currentColor",className:y})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:y,children:p.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}),Yf=({size:g=24,color:f="currentColor",className:y})=>p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:y,children:[p.jsx("line",{x1:"22",x2:"11",y1:"2",y2:"13"}),p.jsx("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})]}),wf=({size:g=24,color:f="currentColor",className:y})=>p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:y,children:[p.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),p.jsx("circle",{cx:"12",cy:"7",r:"4"})]}),Lf=({size:g=24,color:f="currentColor",className:y})=>p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:y,children:[p.jsx("path",{d:"M12 8V4H8"}),p.jsx("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),p.jsx("path",{d:"M2 14h2"}),p.jsx("path",{d:"M20 14h2"}),p.jsx("path",{d:"M15 13v2"}),p.jsx("path",{d:"M9 13v2"})]}),Xf=({size:g=24,color:f="currentColor",className:y})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:y,children:p.jsx("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})}),Vf=({size:g=24,color:f="currentColor",className:y})=>p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:y,children:[p.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),p.jsx("line",{x1:"22",x2:"16",y1:"9",y2:"15"}),p.jsx("line",{x1:"16",x2:"22",y1:"9",y2:"15"})]}),Qf=({size:g=24,color:f="currentColor",className:y})=>p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:y,children:[p.jsx("line",{x1:"18",x2:"6",y1:"6",y2:"18"}),p.jsx("line",{x1:"6",x2:"18",y1:"6",y2:"18"})]}),Zf=({size:g=24,color:f="currentColor",className:y})=>p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:y,children:[p.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),p.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),p.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),p.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]}),dh=({size:g=24,color:f="currentColor",className:y})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:y,style:{animation:"spin 1s linear infinite"},children:p.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}),Kf={light:{primary:"#c026d3",primaryHover:"#a21caf",primaryLight:"#fdf4ff",primaryText:"#ffffff",secondary:"#0284c7",secondaryHover:"#0369a1",secondaryLight:"#f0f9ff",secondaryText:"#ffffff",success:"#059669",successLight:"#dcfce7",successText:"#166534",error:"#ef4444",errorHover:"#dc2626",errorLight:"#fef2f2",errorText:"#b91c1c",background:"#ffffff",surface:"#f9fafb",border:"#e5e7eb",borderLight:"#f3f4f6",text:"#1f2937",textSecondary:"#6b7280",textMuted:"#9ca3af"},dark:{primary:"#d946ef",primaryHover:"#c026d3",primaryLight:"#3b0764",primaryText:"#ffffff",secondary:"#38bdf8",secondaryHover:"#0ea5e9",secondaryLight:"#0c4a6e",secondaryText:"#ffffff",success:"#34d399",successLight:"#064e3b",successText:"#a7f3d0",error:"#f87171",errorHover:"#ef4444",errorLight:"#450a0a",errorText:"#fecaca",background:"#111827",surface:"#1f2937",border:"#374151",borderLight:"#4b5563",text:"#f9fafb",textSecondary:"#d1d5db",textMuted:"#9ca3af"}};function li(g){const f=Kf[g];return`
140
+ `)}async handleFunctionCallRequest(f){for(const h of f.functions){console.log("[GlydeVoice] Function call request:",h.name,h.arguments);let M={};try{M=h.arguments?JSON.parse(h.arguments):{}}catch(N){console.warn("[GlydeVoice] Failed to parse function arguments:",N)}let o;try{h.name==="end_conversation"?o=await this.handleEndConversation(M):o=await this.executeVoiceFunction(h.name,h.id,M)}catch(N){console.error("[GlydeVoice] Function call error:",N),o=JSON.stringify({error:"Function execution failed",details:N instanceof Error?N.message:String(N)})}const C={type:"FunctionCallResponse",id:h.id,name:h.name,content:o};this.ws&&this.ws.readyState===WebSocket.OPEN?(this.ws.send(JSON.stringify(C)),console.log("[GlydeVoice] Function response sent:",h.name)):console.error("[GlydeVoice] Cannot send function response - WebSocket not open")}}async executeVoiceFunction(f,h,M){console.log("[GlydeVoice] Executing voice function via Unity API:",f);try{const o=await fetch(`${this.unityUrl}/api/unity/voice/function`,{method:"POST",headers:this.getAuthHeaders(),body:JSON.stringify({function_name:f,function_call_id:h,input:M,context:{context_id:this.sessionContext.contextId,context_type:this.sessionContext.contextType,current_job_uuid:this.sessionContext.currentJobUuid}})});if(!o.ok){const N=await o.json().catch(()=>({})),Q=N.error?.message||N.message||`HTTP ${o.status}`;throw console.error("[GlydeVoice] Voice function API call failed:",o.status,Q),new Error(Q)}const C=await o.json();if(C.success&&C.data?.output!==void 0){const N=C.data.output;if(typeof N=="object"&&N!==null&&N.success===!1){const Q=N.error??N.fallback_message;console.warn("[GlydeVoice] Voice function backend reported failure:",f,Q)}return typeof N=="string"?N:JSON.stringify(N)}throw console.error("[GlydeVoice] Voice function invalid response:",C),new Error("Invalid response from voice function endpoint")}catch(o){const C=o instanceof Error?o.message:"Function execution failed";return console.error("[GlydeVoice] Voice function error:",C,o),JSON.stringify({success:!1,error:C,fallback_message:"I apologize, but I'm having trouble with that request right now. Is there something else I can help you with?"})}}async handleEndConversation(f){const h=f.item||"user request";return console.log(`[GlydeVoice] End conversation triggered by: ${h}`),setTimeout(()=>{this.stop()},2e3),JSON.stringify({success:!0,message:"Conversation ending. Say goodbye to the user.",trigger_phrase:h})}setSessionContext(f){this.sessionContext={...this.sessionContext,...f},console.log("[GlydeVoice] Session context updated:",{hasContextId:!!f.contextId,contextType:f.contextType,hasJobUuid:!!f.currentJobUuid})}}class Uf{config;unityUrl;history=[];isTyping=!1;initialized=!1;conversationSummary=null;constructor(f){this.config=f,this.unityUrl=f.unityBaseUrl||"https://api.glydeunity.com",console.log("[GlydeText] Initialized with Unity API URL:",this.unityUrl),!f.publishableKey&&!f.apiKey&&!f.authToken&&console.warn("[GlydeText] No authentication method provided. One of publishableKey, apiKey, or authToken is required.")}getAuthHeaders(){const f={"Content-Type":"application/json"};return this.config.publishableKey&&(f["x-publishable-key"]=this.config.publishableKey),this.config.apiKey&&(f["x-api-key"]=this.config.apiKey),this.config.authToken&&(f.Authorization=`Bearer ${this.config.authToken}`),f}emit(f){this.config.onEvent&&this.config.onEvent(f)}setTyping(f){this.isTyping=f,this.config.onTyping&&this.config.onTyping(f)}async initialize(){if(!this.config.contextId)throw new Error("contextId is required for text chat initialization");this.setTyping(!0);try{const f=await fetch(`${this.unityUrl}/api/unity/screening/summary/${this.config.contextId}`,{method:"GET",headers:this.getAuthHeaders()});if(!f.ok){const o=await f.json().catch(()=>({}));throw new Error(o.error?.message||o.message||"Failed to initialize chat")}const h=await f.json();this.conversationSummary=h;const M={role:"assistant",content:h.greeting,created:new Date().toISOString()};return this.history=[M],this.initialized=!0,this.emit({type:"ready"}),this.emit({type:"history_loaded",payload:this.history}),this.history}catch(f){throw console.error("[GlydeText] Initialization error:",f),this.emit({type:"error",payload:f}),f}finally{this.setTyping(!1)}}getSummary(){return this.conversationSummary}async sendMessage(f){if(!this.config.contextId)throw new Error("contextId is required for sending messages");if(!f.trim())throw new Error("Message cannot be empty");this.initialized||await this.initialize();const h={role:"user",content:f.trim(),created:new Date().toISOString()};this.history.push(h),this.config.onMessage&&this.config.onMessage(h),this.emit({type:"message",payload:h}),this.setTyping(!0);try{const M=await fetch(`${this.unityUrl}/api/unity/screening/chat`,{method:"POST",headers:this.getAuthHeaders(),body:JSON.stringify({application_uuid:this.config.contextId,message:f.trim()})});if(!M.ok){const Q=await M.json().catch(()=>({}));throw new Error(Q.error?.message||Q.message||"Failed to send message")}const o=await M.json();o.history?.messages&&(this.history=o.history.messages.filter(Q=>Q.role!=="system"));const C=[...this.history].reverse().find(Q=>Q.role==="assistant");return C?(this.config.onMessage&&this.config.onMessage(C),this.emit({type:"message",payload:C}),C):{role:"assistant",content:o.response||"I received your message.",created:new Date().toISOString()}}catch(M){throw console.error("[GlydeText] Send message error:",M),this.emit({type:"error",payload:M}),M}finally{this.setTyping(!1)}}getHistory(){return[...this.history].filter(f=>f.role!=="system")}clearHistory(){this.history=[],this.initialized=!1}getIsTyping(){return this.isTyping}getIsInitialized(){return this.initialized}}function ih(g){return g&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g}var ti={exports:{}},J={},jf;function ch(){if(jf)return J;jf=1;var g={env:{NODE_ENV:"production"}};var f=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),G=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),w=Symbol.iterator;function F(d){return d===null||typeof d!="object"?null:(d=w&&d[w]||d["@@iterator"],typeof d=="function"?d:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,bt={};function dt(d,E,R){this.props=d,this.context=E,this.refs=bt,this.updater=R||I}dt.prototype.isReactComponent={},dt.prototype.setState=function(d,E){if(typeof d!="object"&&typeof d!="function"&&d!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,d,E,"setState")},dt.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function zt(){}zt.prototype=dt.prototype;function ct(d,E,R){this.props=d,this.context=E,this.refs=bt,this.updater=R||I}var X=ct.prototype=new zt;X.constructor=ct,$(X,dt.prototype),X.isPureReactComponent=!0;var _t=Array.isArray;function Ct(){}var at={H:null,A:null,T:null,S:null},wt=Object.prototype.hasOwnProperty;function Ot(d,E,R){var Y=R.ref;return{$$typeof:f,type:d,key:E,ref:Y!==void 0?Y:null,props:R}}function Oe(d,E){return Ot(d.type,E,d.props)}function Ft(d){return typeof d=="object"&&d!==null&&d.$$typeof===f}function Qt(d){var E={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(R){return E[R]})}var pe=/\/+/g;function Lt(d,E){return typeof d=="object"&&d!==null&&d.key!=null?Qt(""+d.key):E.toString(36)}function U(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(Ct,Ct):(d.status="pending",d.then(function(E){d.status==="pending"&&(d.status="fulfilled",d.value=E)},function(E){d.status==="pending"&&(d.status="rejected",d.reason=E)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function _(d,E,R,Y,P){var tt=typeof d;(tt==="undefined"||tt==="boolean")&&(d=null);var ht=!1;if(d===null)ht=!0;else switch(tt){case"bigint":case"string":case"number":ht=!0;break;case"object":switch(d.$$typeof){case f:case h:ht=!0;break;case O:return ht=d._init,_(ht(d._payload),E,R,Y,P)}}if(ht)return P=P(d),ht=Y===""?"."+Lt(d,0):Y,_t(P)?(R="",ht!=null&&(R=ht.replace(pe,"$&/")+"/"),_(P,E,R,"",function(Ya){return Ya})):P!=null&&(Ft(P)&&(P=Oe(P,R+(P.key==null||d&&d.key===P.key?"":(""+P.key).replace(pe,"$&/")+"/")+ht)),E.push(P)),1;ht=0;var It=Y===""?".":Y+":";if(_t(d))for(var jt=0;jt<d.length;jt++)Y=d[jt],tt=It+Lt(Y,jt),ht+=_(Y,E,R,tt,P);else if(jt=F(d),typeof jt=="function")for(d=jt.call(d),jt=0;!(Y=d.next()).done;)Y=Y.value,tt=It+Lt(Y,jt++),ht+=_(Y,E,R,tt,P);else if(tt==="object"){if(typeof d.then=="function")return _(U(d),E,R,Y,P);throw E=String(d),Error("Objects are not valid as a React child (found: "+(E==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}return ht}function j(d,E,R){if(d==null)return d;var Y=[],P=0;return _(d,Y,"","",function(tt){return E.call(R,tt,P++)}),Y}function K(d){if(d._status===-1){var E=d._result;E=E(),E.then(function(R){(d._status===0||d._status===-1)&&(d._status=1,d._result=R)},function(R){(d._status===0||d._status===-1)&&(d._status=2,d._result=R)}),d._status===-1&&(d._status=0,d._result=E)}if(d._status===1)return d._result.default;throw d._result}var St=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var E=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(E))return}else if(typeof g=="object"&&typeof g.emit=="function"){g.emit("uncaughtException",d);return}console.error(d)},ce={map:j,forEach:function(d,E,R){j(d,function(){E.apply(this,arguments)},R)},count:function(d){var E=0;return j(d,function(){E++}),E},toArray:function(d){return j(d,function(E){return E})||[]},only:function(d){if(!Ft(d))throw Error("React.Children.only expected to receive a single React element child.");return d}};return J.Activity=H,J.Children=ce,J.Component=dt,J.Fragment=M,J.Profiler=C,J.PureComponent=ct,J.StrictMode=o,J.Suspense=S,J.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=at,J.__COMPILER_RUNTIME={__proto__:null,c:function(d){return at.H.useMemoCache(d)}},J.cache=function(d){return function(){return d.apply(null,arguments)}},J.cacheSignal=function(){return null},J.cloneElement=function(d,E,R){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var Y=$({},d.props),P=d.key;if(E!=null)for(tt in E.key!==void 0&&(P=""+E.key),E)!wt.call(E,tt)||tt==="key"||tt==="__self"||tt==="__source"||tt==="ref"&&E.ref===void 0||(Y[tt]=E[tt]);var tt=arguments.length-2;if(tt===1)Y.children=R;else if(1<tt){for(var ht=Array(tt),It=0;It<tt;It++)ht[It]=arguments[It+2];Y.children=ht}return Ot(d.type,P,Y)},J.createContext=function(d){return d={$$typeof:Q,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:N,_context:d},d},J.createElement=function(d,E,R){var Y,P={},tt=null;if(E!=null)for(Y in E.key!==void 0&&(tt=""+E.key),E)wt.call(E,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(P[Y]=E[Y]);var ht=arguments.length-2;if(ht===1)P.children=R;else if(1<ht){for(var It=Array(ht),jt=0;jt<ht;jt++)It[jt]=arguments[jt+2];P.children=It}if(d&&d.defaultProps)for(Y in ht=d.defaultProps,ht)P[Y]===void 0&&(P[Y]=ht[Y]);return Ot(d,tt,P)},J.createRef=function(){return{current:null}},J.forwardRef=function(d){return{$$typeof:D,render:d}},J.isValidElement=Ft,J.lazy=function(d){return{$$typeof:O,_payload:{_status:-1,_result:d},_init:K}},J.memo=function(d,E){return{$$typeof:G,type:d,compare:E===void 0?null:E}},J.startTransition=function(d){var E=at.T,R={};at.T=R;try{var Y=d(),P=at.S;P!==null&&P(R,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(Ct,St)}catch(tt){St(tt)}finally{E!==null&&R.types!==null&&(E.types=R.types),at.T=E}},J.unstable_useCacheRefresh=function(){return at.H.useCacheRefresh()},J.use=function(d){return at.H.use(d)},J.useActionState=function(d,E,R){return at.H.useActionState(d,E,R)},J.useCallback=function(d,E){return at.H.useCallback(d,E)},J.useContext=function(d){return at.H.useContext(d)},J.useDebugValue=function(){},J.useDeferredValue=function(d,E){return at.H.useDeferredValue(d,E)},J.useEffect=function(d,E){return at.H.useEffect(d,E)},J.useEffectEvent=function(d){return at.H.useEffectEvent(d)},J.useId=function(){return at.H.useId()},J.useImperativeHandle=function(d,E,R){return at.H.useImperativeHandle(d,E,R)},J.useInsertionEffect=function(d,E){return at.H.useInsertionEffect(d,E)},J.useLayoutEffect=function(d,E){return at.H.useLayoutEffect(d,E)},J.useMemo=function(d,E){return at.H.useMemo(d,E)},J.useOptimistic=function(d,E){return at.H.useOptimistic(d,E)},J.useReducer=function(d,E,R){return at.H.useReducer(d,E,R)},J.useRef=function(d){return at.H.useRef(d)},J.useState=function(d){return at.H.useState(d)},J.useSyncExternalStore=function(d,E,R){return at.H.useSyncExternalStore(d,E,R)},J.useTransition=function(){return at.H.useTransition()},J.version="19.2.4",J}var Rf;function ei(){return Rf||(Rf=1,ti.exports=ch()),ti.exports}var Z=ei();const Rn=ih(Z);function Nf(g){const[f,h]=Z.useState("idle"),[M,o]=Z.useState([]),[C,N]=Z.useState(!1),[Q,D]=Z.useState(!1),[S,G]=Z.useState(!1),[O,H]=Z.useState(null),w=Z.useRef(null),F=Z.useCallback(X=>{switch(X.type){case"ready":h("active");break;case"close":h("idle"),N(!1),D(!1);break;case"error":h("error"),H(typeof X.payload=="object"&&X.payload!==null&&"message"in X.payload?String(X.payload.message):"Connection error");break;case"user_speaking":N(!!X.payload);break;case"agent_speaking":D(!!X.payload);break}},[]),I=Z.useCallback((X,_t)=>{o(Ct=>[...Ct,{role:_t,content:X,timestamp:new Date}])},[]),$=Z.useCallback(async()=>{h("connecting"),H(null);try{const X=new Df({...g,onEvent:F,onTranscript:I});w.current=X,await X.start()}catch(X){console.error("[useVoiceAgent] Failed to start:",X),h("error"),H(X instanceof Error?X.message:"Failed to connect")}},[g,F,I]),bt=Z.useCallback(()=>{w.current?.stop(),w.current=null,h("idle"),N(!1),D(!1)},[]),dt=Z.useCallback(()=>{const X=!S;G(X),w.current?.setMuted(X)},[S]),zt=Z.useCallback(X=>{G(X),w.current?.setMuted(X)},[]),ct=Z.useCallback(()=>{o([])},[]);return Z.useEffect(()=>()=>{w.current?.stop()},[]),Z.useEffect(()=>{g.autoStart&&f==="idle"&&$()},[g.autoStart,f,$]),{status:f,transcripts:M,isUserSpeaking:C,isAgentSpeaking:Q,isMuted:S,errorMessage:O,start:$,stop:bt,toggleMute:dt,setMuted:zt,clearTranscripts:ct,voiceAgent:w.current}}function Hf(g){const[f,h]=Z.useState("idle"),[M,o]=Z.useState([]),[C,N]=Z.useState(!1),[Q,D]=Z.useState(null),S=Z.useRef(null),G=Z.useRef(!1),O=Z.useCallback(()=>(S.current||(S.current=new Uf({...g,onTyping:N})),S.current),[g]),H=Z.useCallback(async()=>{if(!G.current){h("loading"),D(null);try{const $=await O().initialize();o($),h("ready"),G.current=!0}catch(I){console.error("[useTextChat] Initialization error:",I),h("error"),D(I instanceof Error?I.message:"Failed to initialize chat")}}},[O]),w=Z.useCallback(async I=>{if(I.trim()){D(null);try{const $=O(),bt={role:"user",content:I.trim(),created:new Date().toISOString()};o(zt=>[...zt,bt]),await $.sendMessage(I);const dt=$.getHistory();o(dt),f!=="ready"&&(h("ready"),G.current=!0)}catch($){console.error("[useTextChat] Send message error:",$),D($ instanceof Error?$.message:"Failed to send message")}}},[O,f]),F=Z.useCallback(()=>{S.current?.clearHistory(),o([]),G.current=!1,h("idle")},[]);return Z.useEffect(()=>{g.autoInit&&!G.current&&g.contextId&&H()},[g.autoInit,g.contextId,H]),Z.useEffect(()=>()=>{S.current=null},[]),{status:f,messages:M,isLoading:C,errorMessage:Q,initialize:H,sendMessage:w,clearHistory:F,textChat:S.current}}var li={exports:{}},Ra={};var Bf;function fh(){if(Bf)return Ra;Bf=1;var g=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function h(M,o,C){var N=null;if(C!==void 0&&(N=""+C),o.key!==void 0&&(N=""+o.key),"key"in o){C={};for(var Q in o)Q!=="key"&&(C[Q]=o[Q])}else C=o;return o=C.ref,{$$typeof:g,type:M,key:N,ref:o!==void 0?o:null,props:C}}return Ra.Fragment=f,Ra.jsx=h,Ra.jsxs=h,Ra}var qf;function sh(){return qf||(qf=1,li.exports=fh()),li.exports}var v=sh();const Na=({size:g=24,color:f="currentColor",className:h})=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:h,children:[v.jsx("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"}),v.jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),v.jsx("line",{x1:"12",x2:"12",y1:"19",y2:"22"})]}),oh=({size:g=24,color:f="currentColor",className:h})=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:h,children:[v.jsx("line",{x1:"2",x2:"22",y1:"2",y2:"22"}),v.jsx("path",{d:"M18.89 13.23A7.12 7.12 0 0 0 19 12v-2"}),v.jsx("path",{d:"M5 10v2a7 7 0 0 0 12 5"}),v.jsx("path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33"}),v.jsx("path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12"}),v.jsx("line",{x1:"12",x2:"12",y1:"19",y2:"22"})]}),rh=({size:g=24,color:f="currentColor",className:h})=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:h,children:v.jsx("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})}),Gf=({size:g=24,color:f="currentColor",className:h})=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:h,children:[v.jsx("path",{d:"M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"}),v.jsx("line",{x1:"22",x2:"2",y1:"2",y2:"22"})]}),Nn=({size:g=24,color:f="currentColor",className:h})=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:h,children:v.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}),Yf=({size:g=24,color:f="currentColor",className:h})=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:h,children:[v.jsx("line",{x1:"22",x2:"11",y1:"2",y2:"13"}),v.jsx("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})]}),wf=({size:g=24,color:f="currentColor",className:h})=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:h,children:[v.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),v.jsx("circle",{cx:"12",cy:"7",r:"4"})]}),Lf=({size:g=24,color:f="currentColor",className:h})=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:h,children:[v.jsx("path",{d:"M12 8V4H8"}),v.jsx("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),v.jsx("path",{d:"M2 14h2"}),v.jsx("path",{d:"M20 14h2"}),v.jsx("path",{d:"M15 13v2"}),v.jsx("path",{d:"M9 13v2"})]}),Xf=({size:g=24,color:f="currentColor",className:h})=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:h,children:v.jsx("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})}),Vf=({size:g=24,color:f="currentColor",className:h})=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:h,children:[v.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),v.jsx("line",{x1:"22",x2:"16",y1:"9",y2:"15"}),v.jsx("line",{x1:"16",x2:"22",y1:"9",y2:"15"})]}),Qf=({size:g=24,color:f="currentColor",className:h})=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:h,children:[v.jsx("line",{x1:"18",x2:"6",y1:"6",y2:"18"}),v.jsx("line",{x1:"6",x2:"18",y1:"6",y2:"18"})]}),Zf=({size:g=24,color:f="currentColor",className:h})=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:h,children:[v.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),v.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),v.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),v.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]}),dh=({size:g=24,color:f="currentColor",className:h})=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:g,height:g,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:h,style:{animation:"spin 1s linear infinite"},children:v.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}),Kf={light:{primary:"#c026d3",primaryHover:"#a21caf",primaryLight:"#fdf4ff",primaryText:"#ffffff",secondary:"#0284c7",secondaryHover:"#0369a1",secondaryLight:"#f0f9ff",secondaryText:"#ffffff",success:"#059669",successLight:"#dcfce7",successText:"#166534",error:"#ef4444",errorHover:"#dc2626",errorLight:"#fef2f2",errorText:"#b91c1c",background:"#ffffff",surface:"#f9fafb",border:"#e5e7eb",borderLight:"#f3f4f6",text:"#1f2937",textSecondary:"#6b7280",textMuted:"#9ca3af"},dark:{primary:"#d946ef",primaryHover:"#c026d3",primaryLight:"#3b0764",primaryText:"#ffffff",secondary:"#38bdf8",secondaryHover:"#0ea5e9",secondaryLight:"#0c4a6e",secondaryText:"#ffffff",success:"#34d399",successLight:"#064e3b",successText:"#a7f3d0",error:"#f87171",errorHover:"#ef4444",errorLight:"#450a0a",errorText:"#fecaca",background:"#111827",surface:"#1f2937",border:"#374151",borderLight:"#4b5563",text:"#f9fafb",textSecondary:"#d1d5db",textMuted:"#9ca3af"}};function ai(g){const f=Kf[g];return`
141
141
  --glyde-primary: ${f.primary};
142
142
  --glyde-primary-hover: ${f.primaryHover};
143
143
  --glyde-primary-light: ${f.primaryLight};
@@ -160,7 +160,7 @@ registerProcessor('audio-playback-processor', AudioPlaybackProcessor);
160
160
  --glyde-text: ${f.text};
161
161
  --glyde-text-secondary: ${f.textSecondary};
162
162
  --glyde-text-muted: ${f.textMuted};
163
- `}const ai=`
163
+ `}const ni=`
164
164
  @keyframes glyde-pulse {
165
165
  0%, 100% { opacity: 1; transform: scale(1); }
166
166
  50% { opacity: 0.5; transform: scale(1.2); }
@@ -203,6 +203,34 @@ registerProcessor('audio-playback-processor', AudioPlaybackProcessor);
203
203
  animation: glyde-modal-scale-in 0.2s ease-out;
204
204
  }
205
205
 
206
+ /* Mobile display: full viewport with safe areas, no FAB, auto-start */
207
+ .glyde-mobile-viewport {
208
+ position: fixed;
209
+ inset: 0;
210
+ width: 100%;
211
+ height: 100%;
212
+ height: 100dvh;
213
+ max-height: 100dvh;
214
+ padding-top: env(safe-area-inset-top, 0);
215
+ padding-right: env(safe-area-inset-right, 0);
216
+ padding-bottom: env(safe-area-inset-bottom, 0);
217
+ padding-left: env(safe-area-inset-left, 0);
218
+ box-sizing: border-box;
219
+ z-index: 10000;
220
+ display: flex;
221
+ flex-direction: column;
222
+ overflow: hidden;
223
+ background: var(--glyde-background);
224
+ }
225
+
226
+ .glyde-mobile-viewport .glyde-widget-root {
227
+ flex: 1;
228
+ min-height: 0;
229
+ border-radius: 0;
230
+ border: none;
231
+ box-shadow: none;
232
+ }
233
+
206
234
  .glyde-fade-in {
207
235
  animation: glyde-fade-in 0.2s ease-out;
208
236
  }
@@ -239,19 +267,19 @@ registerProcessor('audio-playback-processor', AudioPlaybackProcessor);
239
267
  .glyde-slide-up {
240
268
  animation: glyde-slide-up 0.3s ease-out;
241
269
  }
242
- `,Ct={floatingButton:{position:"fixed",width:"60px",height:"60px",borderRadius:"50%",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",transition:"transform 0.2s, box-shadow 0.2s",zIndex:9999},widgetPanel:{position:"fixed",width:"380px",height:"600px",borderRadius:"16px",boxShadow:"0 10px 40px rgba(0, 0, 0, 0.2)",display:"flex",flexDirection:"column",overflow:"hidden",zIndex:9998},card:{background:"var(--glyde-background)",borderRadius:"12px",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",overflow:"hidden"},header:{padding:"16px 20px",borderBottom:"1px solid var(--glyde-border)",display:"flex",justifyContent:"space-between",alignItems:"center"},modeSelector:{display:"flex",gap:"8px",padding:"4px",background:"var(--glyde-surface)",borderRadius:"8px"},modeSelectorButton:{padding:"8px 16px",border:"none",borderRadius:"6px",cursor:"pointer",display:"flex",alignItems:"center",gap:"6px",fontSize:"14px",fontWeight:500,transition:"all 0.2s"},transcriptArea:{flex:1,overflowY:"auto",padding:"16px",background:"var(--glyde-surface)"},messageBubble:{maxWidth:"80%",padding:"10px 14px",borderRadius:"12px",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"},messageBubbleUser:{background:"var(--glyde-primary)",color:"var(--glyde-primary-text)",borderTopRightRadius:"4px"},messageBubbleAgent:{background:"var(--glyde-background)",color:"var(--glyde-text)",borderTopLeftRadius:"4px"},controlsArea:{padding:"16px",borderTop:"1px solid var(--glyde-border)",background:"var(--glyde-background)"},speakingIndicator:{display:"flex",alignItems:"center",gap:"6px",fontSize:"13px"},speakingDot:{width:"8px",height:"8px",borderRadius:"50%",transition:"background-color 0.2s"},primaryButton:{padding:"12px 24px",background:"var(--glyde-primary)",color:"var(--glyde-primary-text)",border:"none",borderRadius:"8px",fontSize:"15px",fontWeight:600,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",transition:"background-color 0.2s, transform 0.1s"},secondaryButton:{padding:"10px 20px",background:"var(--glyde-surface)",color:"var(--glyde-text)",border:"1px solid var(--glyde-border)",borderRadius:"8px",fontSize:"14px",fontWeight:500,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",transition:"background-color 0.2s"},dangerButton:{padding:"12px 24px",background:"var(--glyde-error)",color:"white",border:"none",borderRadius:"24px",fontSize:"15px",fontWeight:600,cursor:"pointer",display:"flex",alignItems:"center",gap:"8px",transition:"background-color 0.2s"},iconButton:{width:"44px",height:"44px",padding:"0",border:"none",borderRadius:"50%",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"background-color 0.2s"},inputField:{flex:1,padding:"12px 16px",borderRadius:"8px",border:"1px solid var(--glyde-border)",background:"var(--glyde-background)",color:"var(--glyde-text)",fontSize:"14px",outline:"none",transition:"border-color 0.2s"},statusBadge:{padding:"4px 10px",borderRadius:"20px",fontSize:"12px",fontWeight:500,display:"flex",alignItems:"center",gap:"4px"},statusBadgeLive:{background:"var(--glyde-success-light)",color:"var(--glyde-success-text)"},statusBadgeConnecting:{background:"var(--glyde-primary-light)",color:"var(--glyde-primary)"}};function Jf(g,f=20){return{"bottom-right":{button:{bottom:f,right:f},panel:{bottom:f+70,right:f}},"bottom-left":{button:{bottom:f,left:f},panel:{bottom:f+70,left:f}},"top-right":{button:{top:f,right:f},panel:{top:f+70,right:f}},"top-left":{button:{top:f,left:f},panel:{top:f+70,left:f}}}[g]}function Ha(g="light"){const f="glyde-widget-styles";if(document.getElementById(f))return;const y=document.createElement("style");y.id=f,y.textContent=`
270
+ `,Mt={floatingButton:{position:"fixed",width:"60px",height:"60px",borderRadius:"50%",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",transition:"transform 0.2s, box-shadow 0.2s",zIndex:9999},widgetPanel:{position:"fixed",width:"380px",height:"600px",borderRadius:"16px",boxShadow:"0 10px 40px rgba(0, 0, 0, 0.2)",display:"flex",flexDirection:"column",overflow:"hidden",zIndex:9998},card:{background:"var(--glyde-background)",borderRadius:"12px",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",overflow:"hidden"},header:{padding:"16px 20px",borderBottom:"1px solid var(--glyde-border)",display:"flex",justifyContent:"space-between",alignItems:"center"},modeSelector:{display:"flex",gap:"8px",padding:"4px",background:"var(--glyde-surface)",borderRadius:"8px"},modeSelectorButton:{padding:"8px 16px",border:"none",borderRadius:"6px",cursor:"pointer",display:"flex",alignItems:"center",gap:"6px",fontSize:"14px",fontWeight:500,transition:"all 0.2s"},transcriptArea:{flex:1,overflowY:"auto",padding:"16px",background:"var(--glyde-surface)"},messageBubble:{maxWidth:"80%",padding:"10px 14px",borderRadius:"12px",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"},messageBubbleUser:{background:"var(--glyde-primary)",color:"var(--glyde-primary-text)",borderTopRightRadius:"4px"},messageBubbleAgent:{background:"var(--glyde-background)",color:"var(--glyde-text)",borderTopLeftRadius:"4px"},controlsArea:{padding:"16px",borderTop:"1px solid var(--glyde-border)",background:"var(--glyde-background)"},speakingIndicator:{display:"flex",alignItems:"center",gap:"6px",fontSize:"13px"},speakingDot:{width:"8px",height:"8px",borderRadius:"50%",transition:"background-color 0.2s"},primaryButton:{padding:"12px 24px",background:"var(--glyde-primary)",color:"var(--glyde-primary-text)",border:"none",borderRadius:"8px",fontSize:"15px",fontWeight:600,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",transition:"background-color 0.2s, transform 0.1s"},secondaryButton:{padding:"10px 20px",background:"var(--glyde-surface)",color:"var(--glyde-text)",border:"1px solid var(--glyde-border)",borderRadius:"8px",fontSize:"14px",fontWeight:500,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",transition:"background-color 0.2s"},dangerButton:{padding:"12px 24px",background:"var(--glyde-error)",color:"white",border:"none",borderRadius:"24px",fontSize:"15px",fontWeight:600,cursor:"pointer",display:"flex",alignItems:"center",gap:"8px",transition:"background-color 0.2s"},iconButton:{width:"44px",height:"44px",padding:"0",border:"none",borderRadius:"50%",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"background-color 0.2s"},inputField:{flex:1,padding:"12px 16px",borderRadius:"8px",border:"1px solid var(--glyde-border)",background:"var(--glyde-background)",color:"var(--glyde-text)",fontSize:"14px",outline:"none",transition:"border-color 0.2s"},statusBadge:{padding:"4px 10px",borderRadius:"20px",fontSize:"12px",fontWeight:500,display:"flex",alignItems:"center",gap:"4px"},statusBadgeLive:{background:"var(--glyde-success-light)",color:"var(--glyde-success-text)"},statusBadgeConnecting:{background:"var(--glyde-primary-light)",color:"var(--glyde-primary)"}};function Jf(g,f=20){return{"bottom-right":{button:{bottom:f,right:f},panel:{bottom:f+70,right:f}},"bottom-left":{button:{bottom:f,left:f},panel:{bottom:f+70,left:f}},"top-right":{button:{top:f,right:f},panel:{top:f+70,right:f}},"top-left":{button:{top:f,left:f},panel:{top:f+70,left:f}}}[g]}function Ha(g="light"){const f="glyde-widget-styles";if(document.getElementById(f))return;const h=document.createElement("style");h.id=f,h.textContent=`
243
271
  :root {
244
- ${li(g)}
272
+ ${ai(g)}
245
273
  }
246
274
 
247
- ${ai}
248
- `,document.head.appendChild(y)}function hh(g){const y=document.getElementById("glyde-widget-styles");y?y.textContent=`
275
+ ${ni}
276
+ `,document.head.appendChild(h)}function hh(g){const h=document.getElementById("glyde-widget-styles");h?h.textContent=`
249
277
  :root {
250
- ${li(g)}
278
+ ${ai(g)}
251
279
  }
252
280
 
253
- ${ai}
254
- `:Ha(g)}const ni=({contextId:g,publishableKey:f,apiKey:y,authToken:M,unityApiUrl:o="https://api.glydeunity.com",contextType:C="screening",height:H="600px",onTranscript:Q,onCallEnd:U,onError:S,onSwitchToText:G})=>{const D=Z.useRef(null),{status:R,transcripts:w,isUserSpeaking:st,isAgentSpeaking:$,isMuted:J,errorMessage:dt,start:gt,stop:bt,toggleMute:xt,clearTranscripts:V}=Nf({publishableKey:f,apiKey:y,authToken:M,contextType:C,contextId:g,unityBaseUrl:o});Z.useEffect(()=>{D.current?.scrollIntoView({behavior:"smooth"})},[w]),Z.useEffect(()=>{if(Q&&w.length>0){const At=w[w.length-1];Q(At.content,At.role)}},[w,Q]),Z.useEffect(()=>{R==="error"&&dt&&S&&S(new Error(dt))},[R,dt,S]);const Mt=()=>{switch(C){case"screening":return"Screening Interview";case"recruiter":return"Recruiter Copilot";case"custom":return"Custom Agent";case"phone":return"Phone Agent";default:return"Voice Interview"}},Gt=async()=>{V(),await gt()},et=()=>{bt(),U?.()};return p.jsxs("div",{style:{background:"var(--glyde-background, white)",borderRadius:"12px",boxShadow:"0 4px 6px rgba(0,0,0,0.1)",height:typeof H=="number"?`${H}px`:H,display:"flex",flexDirection:"column",overflow:"hidden"},children:[p.jsxs("div",{style:{padding:"16px 20px",borderBottom:"1px solid var(--glyde-border, #e5e7eb)",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p.jsxs("div",{children:[p.jsx("h2",{style:{margin:0,fontSize:"1.1rem",fontWeight:600,color:"var(--glyde-text, #1f2937)"},children:Mt()}),p.jsx("small",{style:{color:"var(--glyde-text-secondary, #6b7280)",fontSize:"0.8rem"},children:M?"JWT Auth":f?"Publishable Key":"API Key"})]}),R==="active"&&p.jsxs("div",{style:{...Ct.statusBadge,...Ct.statusBadgeLive},children:[p.jsx(Xf,{size:14})," Live"]})]}),p.jsx("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:R==="idle"||R==="error"?p.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"40px"},children:[p.jsx("div",{style:{width:"100px",height:"100px",borderRadius:"50%",background:"var(--glyde-primary-light, #fdf4ff)",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"24px"},children:p.jsx(Na,{size:48,color:"var(--glyde-primary, #c026d3)"})}),p.jsxs("h3",{style:{marginBottom:"8px",color:"var(--glyde-text, #1f2937)"},children:["Ready for ",Mt(),"?"]}),p.jsx("p",{style:{color:"var(--glyde-text-secondary, #666)",marginBottom:"24px",textAlign:"center",maxWidth:"280px"},children:C==="screening"?"The AI recruiter will speak with you. Make sure your microphone is ready.":C==="recruiter"?"The AI copilot will assist you with recruiting tasks.":"The AI agent will speak with you. Make sure your microphone is ready."}),p.jsxs("button",{onClick:Gt,style:{...Ct.primaryButton,padding:"14px 36px",borderRadius:"30px",boxShadow:"0 4px 12px rgba(192, 38, 211, 0.3)"},children:["Start ",C==="screening"?"Interview":"Call"]}),dt&&p.jsx("p",{style:{color:"var(--glyde-error, #ef4444)",marginTop:"16px",fontSize:"0.9rem"},children:dt}),G&&p.jsxs("button",{onClick:G,style:{marginTop:"20px",padding:"8px 16px",background:"transparent",border:"none",color:"var(--glyde-secondary, #0284c7)",fontSize:"0.9rem",cursor:"pointer",display:"flex",alignItems:"center",gap:"6px"},children:[p.jsx(Nn,{size:16,color:"var(--glyde-secondary, #0284c7)"}),"Prefer to type? Switch to text chat"]})]}):p.jsxs(p.Fragment,{children:[p.jsxs("div",{style:{flex:1,overflowY:"auto",padding:"16px",background:"var(--glyde-surface, #f9fafb)"},children:[R==="connecting"&&p.jsxs("div",{style:{textAlign:"center",color:"var(--glyde-text-secondary, #6b7280)",padding:"40px"},children:[p.jsx("div",{className:"glyde-spinner",style:{margin:"0 auto 12px"}}),"Connecting to AI Agent..."]}),w.length===0&&R==="active"&&p.jsxs("div",{style:{textAlign:"center",color:"var(--glyde-text-muted, #9ca3af)",padding:"40px"},children:[p.jsx(Nn,{size:32,color:"var(--glyde-text-muted, #9ca3af)"}),p.jsx("p",{style:{marginTop:"8px"},children:"Start speaking - the AI will respond"})]}),w.map((At,Pt)=>p.jsx(yh,{transcript:At,contextType:C},Pt)),p.jsx("div",{ref:D})]}),p.jsxs("div",{style:{padding:"16px",borderTop:"1px solid var(--glyde-border, #e5e7eb)",background:"var(--glyde-background, white)"},children:[p.jsx(gh,{isUserSpeaking:st,isAgentSpeaking:$}),p.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"12px",marginTop:"16px"},children:[p.jsx("button",{onClick:xt,style:{...Ct.iconButton,background:J?"var(--glyde-error-light, #fecaca)":"var(--glyde-secondary-light, #e0f2fe)"},title:J?"Unmute":"Mute",children:J?p.jsx(Vf,{size:20,color:"var(--glyde-error, #dc2626)"}):p.jsx(Na,{size:20,color:"var(--glyde-secondary, #0ea5e9)"})}),p.jsxs("button",{onClick:et,style:Ct.dangerButton,children:[p.jsx(Gf,{size:18,color:"white"})," End Call"]})]})]})]})}),p.jsx("style",{children:`
281
+ ${ni}
282
+ `:Ha(g)}const ui=({contextId:g,publishableKey:f,apiKey:h,authToken:M,unityApiUrl:o="https://api.glydeunity.com",contextType:C="screening",height:N="600px",onTranscript:Q,onCallEnd:D,onError:S,onSwitchToText:G,skipContinuityLimit:O})=>{const H=Z.useRef(null),{status:w,transcripts:F,isUserSpeaking:I,isAgentSpeaking:$,isMuted:bt,errorMessage:dt,start:zt,stop:ct,toggleMute:X,clearTranscripts:_t}=Nf({publishableKey:f,apiKey:h,authToken:M,contextType:C,contextId:g,unityBaseUrl:o,skipContinuityLimit:O});Z.useEffect(()=>{H.current?.scrollIntoView({behavior:"smooth"})},[F]),Z.useEffect(()=>{if(Q&&F.length>0){const Ot=F[F.length-1];Q(Ot.content,Ot.role)}},[F,Q]),Z.useEffect(()=>{w==="error"&&dt&&S&&S(new Error(dt))},[w,dt,S]);const Ct=()=>{switch(C){case"screening":return"Screening Interview";case"recruiter":return"Recruiter Copilot";case"custom":return"Custom Agent";case"phone":return"Phone Agent";default:return"Voice Interview"}},at=async()=>{_t(),await zt()},wt=()=>{ct(),D?.()};return v.jsxs("div",{style:{background:"var(--glyde-background, white)",borderRadius:"12px",boxShadow:"0 4px 6px rgba(0,0,0,0.1)",height:typeof N=="number"?`${N}px`:N,display:"flex",flexDirection:"column",overflow:"hidden"},children:[v.jsxs("div",{style:{padding:"16px 20px",borderBottom:"1px solid var(--glyde-border, #e5e7eb)",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[v.jsxs("div",{children:[v.jsx("h2",{style:{margin:0,fontSize:"1.1rem",fontWeight:600,color:"var(--glyde-text, #1f2937)"},children:Ct()}),v.jsx("small",{style:{color:"var(--glyde-text-secondary, #6b7280)",fontSize:"0.8rem"},children:M?"JWT Auth":f?"Publishable Key":"API Key"})]}),w==="active"&&v.jsxs("div",{style:{...Mt.statusBadge,...Mt.statusBadgeLive},children:[v.jsx(Xf,{size:14})," Live"]})]}),v.jsx("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:w==="idle"||w==="error"?v.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"40px"},children:[v.jsx("div",{style:{width:"100px",height:"100px",borderRadius:"50%",background:"var(--glyde-primary-light, #fdf4ff)",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"24px"},children:v.jsx(Na,{size:48,color:"var(--glyde-primary, #c026d3)"})}),v.jsxs("h3",{style:{marginBottom:"8px",color:"var(--glyde-text, #1f2937)"},children:["Ready for ",Ct(),"?"]}),v.jsx("p",{style:{color:"var(--glyde-text-secondary, #666)",marginBottom:"24px",textAlign:"center",maxWidth:"280px"},children:C==="screening"?"The AI recruiter will speak with you. Make sure your microphone is ready.":C==="recruiter"?"The AI copilot will assist you with recruiting tasks.":"The AI agent will speak with you. Make sure your microphone is ready."}),v.jsxs("button",{onClick:at,style:{...Mt.primaryButton,padding:"14px 36px",borderRadius:"30px",boxShadow:"0 4px 12px rgba(192, 38, 211, 0.3)"},children:["Start ",C==="screening"?"Interview":"Call"]}),dt&&v.jsx("p",{style:{color:"var(--glyde-error, #ef4444)",marginTop:"16px",fontSize:"0.9rem"},children:dt}),G&&v.jsxs("button",{onClick:G,style:{marginTop:"20px",padding:"8px 16px",background:"transparent",border:"none",color:"var(--glyde-secondary, #0284c7)",fontSize:"0.9rem",cursor:"pointer",display:"flex",alignItems:"center",gap:"6px"},children:[v.jsx(Nn,{size:16,color:"var(--glyde-secondary, #0284c7)"}),"Prefer to type? Switch to text chat"]})]}):v.jsxs(v.Fragment,{children:[v.jsxs("div",{style:{flex:1,overflowY:"auto",padding:"16px",background:"var(--glyde-surface, #f9fafb)"},children:[w==="connecting"&&v.jsxs("div",{style:{textAlign:"center",color:"var(--glyde-text-secondary, #6b7280)",padding:"40px"},children:[v.jsx("div",{className:"glyde-spinner",style:{margin:"0 auto 12px"}}),"Connecting to AI Agent..."]}),F.length===0&&w==="active"&&v.jsxs("div",{style:{textAlign:"center",color:"var(--glyde-text-muted, #9ca3af)",padding:"40px"},children:[v.jsx(Nn,{size:32,color:"var(--glyde-text-muted, #9ca3af)"}),v.jsx("p",{style:{marginTop:"8px"},children:"Start speaking - the AI will respond"})]}),F.map((Ot,Oe)=>v.jsx(yh,{transcript:Ot,contextType:C},Oe)),v.jsx("div",{ref:H})]}),v.jsxs("div",{style:{padding:"16px",borderTop:"1px solid var(--glyde-border, #e5e7eb)",background:"var(--glyde-background, white)"},children:[v.jsx(gh,{isUserSpeaking:I,isAgentSpeaking:$}),v.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"12px",marginTop:"16px"},children:[v.jsx("button",{onClick:X,style:{...Mt.iconButton,background:bt?"var(--glyde-error-light, #fecaca)":"var(--glyde-secondary-light, #e0f2fe)"},title:bt?"Unmute":"Mute",children:bt?v.jsx(Vf,{size:20,color:"var(--glyde-error, #dc2626)"}):v.jsx(Na,{size:20,color:"var(--glyde-secondary, #0ea5e9)"})}),v.jsxs("button",{onClick:wt,style:Mt.dangerButton,children:[v.jsx(Gf,{size:18,color:"white"})," End Call"]})]})]})]})}),v.jsx("style",{children:`
255
283
  @keyframes glyde-pulse {
256
284
  0%, 100% { opacity: 1; transform: scale(1); }
257
285
  50% { opacity: 0.5; transform: scale(1.2); }
@@ -267,7 +295,7 @@ registerProcessor('audio-playback-processor', AudioPlaybackProcessor);
267
295
  @keyframes spin {
268
296
  to { transform: rotate(360deg); }
269
297
  }
270
- `})]})},yh=({transcript:g,contextType:f})=>{const y=g.role==="user";return p.jsx("div",{style:{marginBottom:"12px",display:"flex",justifyContent:y?"flex-end":"flex-start"},children:p.jsxs("div",{style:{...Ct.messageBubble,...y?Ct.messageBubbleUser:Ct.messageBubbleAgent},children:[p.jsx("div",{style:{fontSize:"0.75rem",opacity:.7,marginBottom:"4px"},children:y?"You":f==="recruiter"?"AI Copilot":"AI Recruiter"}),g.content]})})},gh=({isUserSpeaking:g,isAgentSpeaking:f})=>p.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"20px"},children:[p.jsxs("div",{style:{...Ct.speakingIndicator,color:g?"var(--glyde-primary, #c026d3)":"var(--glyde-text-muted, #9ca3af)"},children:[p.jsx("div",{style:{...Ct.speakingDot,background:g?"var(--glyde-primary, #c026d3)":"var(--glyde-border, #d1d5db)",animation:g?"glyde-pulse 1s infinite":"none"}}),"You"]}),p.jsxs("div",{style:{...Ct.speakingIndicator,color:f?"var(--glyde-success, #059669)":"var(--glyde-text-muted, #9ca3af)"},children:[p.jsx("div",{style:{...Ct.speakingDot,background:f?"var(--glyde-success, #059669)":"var(--glyde-border, #d1d5db)",animation:f?"glyde-pulse 1s infinite":"none"}}),"AI Agent"]})]}),ui=({contextId:g,publishableKey:f,apiKey:y,authToken:M,unityApiUrl:o="https://api.glydeunity.com",height:C="600px",title:H="AI Chat",placeholder:Q="Type your message...",autoInit:U=!0,onMessage:S,onError:G})=>{const[D,R]=Z.useState(""),w=Z.useRef(null),{status:st,messages:$,isLoading:J,errorMessage:dt,sendMessage:gt}=Hf({publishableKey:f,apiKey:y,authToken:M,contextId:g,unityBaseUrl:o,autoInit:U});Z.useEffect(()=>{w.current?.scrollIntoView({behavior:"smooth"})},[$]),Z.useEffect(()=>{st==="error"&&dt&&G&&G(new Error(dt))},[st,dt,G]);const bt=async()=>{if(!D.trim()||J)return;const V=D.trim();R(""),await gt(V),S&&S({role:"user",content:V})},xt=V=>{V.key==="Enter"&&!V.shiftKey&&(V.preventDefault(),bt())};return p.jsxs("div",{style:{background:"var(--glyde-background, white)",borderRadius:"12px",boxShadow:"0 4px 6px rgba(0,0,0,0.1)",height:typeof C=="number"?`${C}px`:C,display:"flex",flexDirection:"column",overflow:"hidden"},children:[p.jsx("div",{style:{padding:"16px 20px",borderBottom:"1px solid var(--glyde-border, #eee)",background:"var(--glyde-secondary, #0284c7)",color:"white",borderTopLeftRadius:"12px",borderTopRightRadius:"12px"},children:p.jsx("h2",{style:{margin:0,fontSize:"1.1rem",fontWeight:600},children:H})}),p.jsxs("div",{style:{flex:1,overflowY:"auto",padding:"20px",display:"flex",flexDirection:"column",gap:"15px",background:"var(--glyde-background, white)"},children:[st==="loading"&&$.length===0&&p.jsxs("div",{style:{textAlign:"center",color:"var(--glyde-text-muted, #94a3b8)",padding:"20px"},children:[p.jsx("div",{className:"glyde-spinner",style:{margin:"0 auto 12px"}}),"Loading conversation..."]}),$.map((V,Mt)=>p.jsx(mh,{message:V},Mt)),J&&p.jsx("div",{style:{color:"var(--glyde-text-muted, #94a3b8)",fontSize:"0.9rem",marginLeft:"42px"},children:p.jsx(vh,{})}),p.jsx("div",{ref:w})]}),p.jsxs("div",{style:{padding:"16px 20px",borderTop:"1px solid var(--glyde-border, #eee)"},children:[dt&&p.jsx("p",{style:{color:"var(--glyde-error, #ef4444)",fontSize:"0.85rem",marginBottom:"10px"},children:dt}),p.jsxs("div",{style:{display:"flex",gap:"10px"},children:[p.jsx("input",{type:"text",value:D,onChange:V=>R(V.target.value),onKeyDown:xt,placeholder:Q,style:{...Ct.inputField,flex:1},disabled:J}),p.jsx("button",{onClick:bt,disabled:J||!D.trim(),style:{...Ct.iconButton,background:"var(--glyde-secondary, #0284c7)",width:"48px",height:"48px",opacity:J||!D.trim()?.5:1,cursor:J||!D.trim()?"not-allowed":"pointer"},children:p.jsx(Yf,{size:20,color:"white"})})]})]}),p.jsx("style",{children:`
298
+ `})]})},yh=({transcript:g,contextType:f})=>{const h=g.role==="user";return v.jsx("div",{style:{marginBottom:"12px",display:"flex",justifyContent:h?"flex-end":"flex-start"},children:v.jsxs("div",{style:{...Mt.messageBubble,...h?Mt.messageBubbleUser:Mt.messageBubbleAgent},children:[v.jsx("div",{style:{fontSize:"0.75rem",opacity:.7,marginBottom:"4px"},children:h?"You":f==="recruiter"?"AI Copilot":"AI Recruiter"}),g.content]})})},gh=({isUserSpeaking:g,isAgentSpeaking:f})=>v.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"20px"},children:[v.jsxs("div",{style:{...Mt.speakingIndicator,color:g?"var(--glyde-primary, #c026d3)":"var(--glyde-text-muted, #9ca3af)"},children:[v.jsx("div",{style:{...Mt.speakingDot,background:g?"var(--glyde-primary, #c026d3)":"var(--glyde-border, #d1d5db)",animation:g?"glyde-pulse 1s infinite":"none"}}),"You"]}),v.jsxs("div",{style:{...Mt.speakingIndicator,color:f?"var(--glyde-success, #059669)":"var(--glyde-text-muted, #9ca3af)"},children:[v.jsx("div",{style:{...Mt.speakingDot,background:f?"var(--glyde-success, #059669)":"var(--glyde-border, #d1d5db)",animation:f?"glyde-pulse 1s infinite":"none"}}),"AI Agent"]})]}),ii=({contextId:g,publishableKey:f,apiKey:h,authToken:M,unityApiUrl:o="https://api.glydeunity.com",height:C="600px",title:N="AI Chat",placeholder:Q="Type your message...",autoInit:D=!0,onMessage:S,onError:G})=>{const[O,H]=Z.useState(""),w=Z.useRef(null),{status:F,messages:I,isLoading:$,errorMessage:bt,sendMessage:dt}=Hf({publishableKey:f,apiKey:h,authToken:M,contextId:g,unityBaseUrl:o,autoInit:D});Z.useEffect(()=>{w.current?.scrollIntoView({behavior:"smooth"})},[I]),Z.useEffect(()=>{F==="error"&&bt&&G&&G(new Error(bt))},[F,bt,G]);const zt=async()=>{if(!O.trim()||$)return;const X=O.trim();H(""),await dt(X),S&&S({role:"user",content:X})},ct=X=>{X.key==="Enter"&&!X.shiftKey&&(X.preventDefault(),zt())};return v.jsxs("div",{style:{background:"var(--glyde-background, white)",borderRadius:"12px",boxShadow:"0 4px 6px rgba(0,0,0,0.1)",height:typeof C=="number"?`${C}px`:C,display:"flex",flexDirection:"column",overflow:"hidden"},children:[v.jsx("div",{style:{padding:"16px 20px",borderBottom:"1px solid var(--glyde-border, #eee)",background:"var(--glyde-secondary, #0284c7)",color:"white",borderTopLeftRadius:"12px",borderTopRightRadius:"12px"},children:v.jsx("h2",{style:{margin:0,fontSize:"1.1rem",fontWeight:600},children:N})}),v.jsxs("div",{style:{flex:1,overflowY:"auto",padding:"20px",display:"flex",flexDirection:"column",gap:"15px",background:"var(--glyde-background, white)"},children:[F==="loading"&&I.length===0&&v.jsxs("div",{style:{textAlign:"center",color:"var(--glyde-text-muted, #94a3b8)",padding:"20px"},children:[v.jsx("div",{className:"glyde-spinner",style:{margin:"0 auto 12px"}}),"Loading conversation..."]}),I.map((X,_t)=>v.jsx(mh,{message:X},_t)),$&&v.jsx("div",{style:{color:"var(--glyde-text-muted, #94a3b8)",fontSize:"0.9rem",marginLeft:"42px"},children:v.jsx(vh,{})}),v.jsx("div",{ref:w})]}),v.jsxs("div",{style:{padding:"16px 20px",borderTop:"1px solid var(--glyde-border, #eee)"},children:[bt&&v.jsx("p",{style:{color:"var(--glyde-error, #ef4444)",fontSize:"0.85rem",marginBottom:"10px"},children:bt}),v.jsxs("div",{style:{display:"flex",gap:"10px"},children:[v.jsx("input",{type:"text",value:O,onChange:X=>H(X.target.value),onKeyDown:ct,placeholder:Q,style:{...Mt.inputField,flex:1},disabled:$}),v.jsx("button",{onClick:zt,disabled:$||!O.trim(),style:{...Mt.iconButton,background:"var(--glyde-secondary, #0284c7)",width:"48px",height:"48px",opacity:$||!O.trim()?.5:1,cursor:$||!O.trim()?"not-allowed":"pointer"},children:v.jsx(Yf,{size:20,color:"white"})})]})]}),v.jsx("style",{children:`
271
299
  .glyde-spinner {
272
300
  width: 24px;
273
301
  height: 24px;
@@ -283,13 +311,13 @@ registerProcessor('audio-playback-processor', AudioPlaybackProcessor);
283
311
  0%, 60%, 100% { opacity: 0.3; }
284
312
  30% { opacity: 1; }
285
313
  }
286
- `})]})},mh=({message:g})=>{const f=g.role==="user";return g.role==="system"?null:p.jsxs("div",{style:{display:"flex",gap:"10px",flexDirection:f?"row-reverse":"row",alignItems:"flex-start"},children:[p.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",background:f?"var(--glyde-primary-light, #e0e7ff)":"var(--glyde-secondary-light, #f0f9ff)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:f?p.jsx(wf,{size:18,color:"var(--glyde-primary, #4338ca)"}):p.jsx(Lf,{size:18,color:"var(--glyde-secondary, #0284c7)"})}),p.jsx("div",{style:{padding:"12px 16px",borderRadius:"12px",background:f?"var(--glyde-primary, #4338ca)":"var(--glyde-surface, #f1f5f9)",color:f?"white":"var(--glyde-text, #1e293b)",maxWidth:"70%",borderTopRightRadius:f?"4px":"12px",borderTopLeftRadius:f?"12px":"4px",lineHeight:1.5},children:g.content})]})},vh=()=>p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[p.jsx("span",{children:"Typing"}),p.jsx("span",{style:{display:"flex",gap:"2px"},children:[0,1,2].map(g=>p.jsx("span",{style:{width:"4px",height:"4px",borderRadius:"50%",background:"var(--glyde-text-muted, #94a3b8)",animation:"typing-dot 1.4s infinite",animationDelay:`${g*.2}s`}},g))})]}),ph={floating:{width:380,height:520},modal:{width:480,height:600,maxWidth:"95vw",maxHeight:"90vh"},inline:{width:"100%",height:600}},Ba=({publishableKey:g,apiKey:f,authToken:y,contextId:M,unityBaseUrl:o="https://api.glydeunity.com",contextType:C="screening",defaultMode:H="voice",position:Q="bottom-right",theme:U="light",allowModeSwitch:S=!0,container:G,displayMode:D="floating",dimensions:R,showHeader:w=!0,allowClose:st=!0,onReady:$,onModeChange:J,onTranscript:dt,onError:gt,onClose:bt,initialExpanded:xt=!1})=>{console.log("[ChatWidget] Received unityBaseUrl:",o);const[V,Mt]=Z.useState(D==="floating"?xt:!0),[Gt,et]=Z.useState(!0),[At,Pt]=Z.useState(H||"voice");Z.useEffect(()=>{const O=U==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":U;Ha(O)},[U]),Z.useEffect(()=>{$?.()},[$]);const je=Jf(Q),Yt=O=>{Pt(O),J?.(O)},$t=(O,it)=>{dt?.(O,it)},pe=O=>{gt?.(O)},Wt=()=>{D==="floating"?Mt(!1):(et(!1),bt?.())},j={...ph[D],...R},_=O=>{if(O!==void 0)return typeof O=="number"?`${O}px`:O};return Gt?G?p.jsx(ii,{publishableKey:g,apiKey:f,authToken:y,contextId:M,unityBaseUrl:o,contextType:C,mode:At,allowModeSwitch:S,showHeader:w,allowClose:st,dimensions:j,onModeChange:Yt,onTranscript:$t,onError:pe,onClose:Wt}):D==="modal"?p.jsx(bh,{publishableKey:g,apiKey:f,authToken:y,contextId:M,unityBaseUrl:o,contextType:C,mode:At,allowModeSwitch:S,showHeader:w,allowClose:st,dimensions:j,onModeChange:Yt,onTranscript:$t,onError:pe,onClose:Wt}):D==="inline"?p.jsx("div",{className:"glyde-widget-root",style:{width:_(j.width),height:_(j.height),maxWidth:_(j.maxWidth),maxHeight:_(j.maxHeight),minHeight:"500px"},children:p.jsx(ii,{publishableKey:g,apiKey:f,authToken:y,contextId:M,unityBaseUrl:o,contextType:C,mode:At,allowModeSwitch:S,showHeader:w,allowClose:st,dimensions:j,onModeChange:Yt,onTranscript:$t,onError:pe,onClose:Wt})}):p.jsxs("div",{className:"glyde-widget-root",children:[!V&&p.jsx("button",{onClick:()=>Mt(!0),style:{...Ct.floatingButton,...je.button,background:"linear-gradient(135deg, var(--glyde-primary, #c026d3) 0%, var(--glyde-secondary, #7c3aed) 100%)"},"aria-label":"Open chat",children:p.jsx(Na,{size:28,color:"white"})}),V&&p.jsxs("div",{style:{...Ct.widgetPanel,...je.panel,background:"var(--glyde-background, white)"},className:"glyde-slide-up",children:[p.jsx(kf,{contextType:C,showMinimize:!0,showClose:!0,onMinimize:()=>Mt(!1),onClose:Wt}),S&&p.jsx("div",{style:{padding:"12px 16px",borderBottom:"1px solid var(--glyde-border, #e5e7eb)"},children:p.jsx(Wf,{mode:At,onModeChange:Yt})}),p.jsx("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:At==="voice"?p.jsx(ni,{publishableKey:g,apiKey:f,authToken:y,contextId:M||"",unityApiUrl:o,contextType:C,height:"100%",onTranscript:$t,onError:pe,onSwitchToText:S?()=>Yt("text"):void 0}):p.jsx(ui,{publishableKey:g,apiKey:f,authToken:y,contextId:M||"",unityApiUrl:o,height:"100%",title:"Text Chat",onError:pe})})]})]}):null},kf=({contextType:g,showMinimize:f,showClose:y,onMinimize:M,onClose:o})=>p.jsxs("div",{style:{...Ct.header,background:"linear-gradient(135deg, var(--glyde-primary, #c026d3) 0%, var(--glyde-secondary, #7c3aed) 100%)",color:"white",borderTopLeftRadius:"16px",borderTopRightRadius:"16px"},children:[p.jsxs("div",{children:[p.jsx("h3",{style:{margin:0,fontSize:"1rem",fontWeight:600},children:"GLYDE Assistant"}),p.jsx("small",{style:{opacity:.8,fontSize:"0.75rem"},children:g==="screening"?"Candidate Screening":"AI Assistant"})]}),p.jsxs("div",{style:{display:"flex",gap:"8px"},children:[f&&M&&p.jsx("button",{onClick:M,style:{...Ct.iconButton,background:"rgba(255,255,255,0.2)",width:"32px",height:"32px"},"aria-label":"Minimize",children:p.jsx(Zf,{size:16,color:"white"})}),y&&o&&p.jsx("button",{onClick:o,style:{...Ct.iconButton,background:"rgba(255,255,255,0.2)",width:"32px",height:"32px"},"aria-label":"Close",children:p.jsx(Qf,{size:16,color:"white"})})]})]}),Wf=({mode:g,onModeChange:f})=>p.jsxs("div",{style:Ct.modeSelector,children:[p.jsxs("button",{onClick:()=>f("voice"),style:{...Ct.modeSelectorButton,background:g==="voice"?"var(--glyde-primary, #c026d3)":"transparent",color:g==="voice"?"white":"var(--glyde-text, #1f2937)"},children:[p.jsx(Na,{size:16})," Voice"]}),p.jsxs("button",{onClick:()=>f("text"),style:{...Ct.modeSelectorButton,background:g==="text"?"var(--glyde-secondary, #0284c7)":"transparent",color:g==="text"?"white":"var(--glyde-text, #1f2937)"},children:[p.jsx(Nn,{size:16})," Text"]})]}),ii=({publishableKey:g,apiKey:f,authToken:y,contextId:M,unityBaseUrl:o,contextType:C,mode:H,allowModeSwitch:Q,showHeader:U=!0,allowClose:S=!0,dimensions:G,onModeChange:D,onTranscript:R,onError:w,onClose:st})=>{const[$,J]=Z.useState(H);Z.useEffect(()=>{J(H)},[H]);const dt=bt=>{J(bt),D(bt)},gt=bt=>{if(bt!==void 0)return typeof bt=="number"?`${bt}px`:bt};return p.jsxs("div",{className:"glyde-widget-root",style:{height:gt(G?.height)||"100%",width:gt(G?.width)||"100%",maxWidth:gt(G?.maxWidth),maxHeight:gt(G?.maxHeight),minHeight:"500px",display:"flex",flexDirection:"column",borderRadius:"16px",overflow:"hidden",boxShadow:"0 4px 20px rgba(0,0,0,0.15)",border:"1px solid var(--glyde-border, #e5e7eb)",background:"var(--glyde-background, white)"},children:[U&&p.jsx(kf,{contextType:C,showMinimize:!1,showClose:S,onClose:st}),Q&&p.jsx("div",{style:{padding:"12px 16px",borderBottom:"1px solid var(--glyde-border, #e5e7eb)",background:"var(--glyde-background, white)"},children:p.jsx(Wf,{mode:$,onModeChange:dt})}),p.jsx("div",{style:{flex:1,overflow:"hidden",display:"flex",flexDirection:"column"},children:$==="voice"?p.jsx(ni,{publishableKey:g,apiKey:f,authToken:y,contextId:M||"",unityApiUrl:o,contextType:C,height:"100%",onTranscript:R,onSwitchToText:Q?()=>dt("text"):void 0,onError:w}):p.jsx(ui,{publishableKey:g,apiKey:f,authToken:y,contextId:M||"",unityApiUrl:o,height:"100%",title:"Text Chat",onError:w})})]})},bh=g=>{const{dimensions:f,onClose:y}=g,M=C=>{if(C!==void 0)return typeof C=="number"?`${C}px`:C},o=C=>{C.target===C.currentTarget&&g.allowClose&&y?.()};return Z.useEffect(()=>{const C=H=>{H.key==="Escape"&&g.allowClose&&y?.()};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[y,g.allowClose]),p.jsx("div",{className:"glyde-modal-backdrop",onClick:o,style:{position:"fixed",top:0,left:0,right:0,bottom:0,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e4,padding:"20px"},children:p.jsx("div",{className:"glyde-modal-content glyde-fade-in",style:{width:M(f?.width)||"480px",height:M(f?.height)||"600px",maxWidth:M(f?.maxWidth)||"95vw",maxHeight:M(f?.maxHeight)||"90vh"},children:p.jsx(ii,{...g})})})};var ci={exports:{}},qa={},fi={exports:{}},si={};var $f;function Sh(){return $f||($f=1,(function(g){function f(j,_){var O=j.length;j.push(_);t:for(;0<O;){var it=O-1>>>1,Tt=j[it];if(0<o(Tt,_))j[it]=_,j[O]=Tt,O=it;else break t}}function y(j){return j.length===0?null:j[0]}function M(j){if(j.length===0)return null;var _=j[0],O=j.pop();if(O!==_){j[0]=O;t:for(var it=0,Tt=j.length,ce=Tt>>>1;it<ce;){var d=2*(it+1)-1,E=j[d],N=d+1,Y=j[N];if(0>o(E,O))N<Tt&&0>o(Y,E)?(j[it]=Y,j[N]=O,it=N):(j[it]=E,j[d]=O,it=d);else if(N<Tt&&0>o(Y,O))j[it]=Y,j[N]=O,it=N;else break t}}return _}function o(j,_){var O=j.sortIndex-_.sortIndex;return O!==0?O:j.id-_.id}if(g.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var C=performance;g.unstable_now=function(){return C.now()}}else{var H=Date,Q=H.now();g.unstable_now=function(){return H.now()-Q}}var U=[],S=[],G=1,D=null,R=3,w=!1,st=!1,$=!1,J=!1,dt=typeof setTimeout=="function"?setTimeout:null,gt=typeof clearTimeout=="function"?clearTimeout:null,bt=typeof setImmediate<"u"?setImmediate:null;function xt(j){for(var _=y(S);_!==null;){if(_.callback===null)M(S);else if(_.startTime<=j)M(S),_.sortIndex=_.expirationTime,f(U,_);else break;_=y(S)}}function V(j){if($=!1,xt(j),!st)if(y(U)!==null)st=!0,Mt||(Mt=!0,Yt());else{var _=y(S);_!==null&&Wt(V,_.startTime-j)}}var Mt=!1,Gt=-1,et=5,At=-1;function Pt(){return J?!0:!(g.unstable_now()-At<et)}function je(){if(J=!1,Mt){var j=g.unstable_now();At=j;var _=!0;try{t:{st=!1,$&&($=!1,gt(Gt),Gt=-1),w=!0;var O=R;try{e:{for(xt(j),D=y(U);D!==null&&!(D.expirationTime>j&&Pt());){var it=D.callback;if(typeof it=="function"){D.callback=null,R=D.priorityLevel;var Tt=it(D.expirationTime<=j);if(j=g.unstable_now(),typeof Tt=="function"){D.callback=Tt,xt(j),_=!0;break e}D===y(U)&&M(U),xt(j)}else M(U);D=y(U)}if(D!==null)_=!0;else{var ce=y(S);ce!==null&&Wt(V,ce.startTime-j),_=!1}}break t}finally{D=null,R=O,w=!1}_=void 0}}finally{_?Yt():Mt=!1}}}var Yt;if(typeof bt=="function")Yt=function(){bt(je)};else if(typeof MessageChannel<"u"){var $t=new MessageChannel,pe=$t.port2;$t.port1.onmessage=je,Yt=function(){pe.postMessage(null)}}else Yt=function(){dt(je,0)};function Wt(j,_){Gt=dt(function(){j(g.unstable_now())},_)}g.unstable_IdlePriority=5,g.unstable_ImmediatePriority=1,g.unstable_LowPriority=4,g.unstable_NormalPriority=3,g.unstable_Profiling=null,g.unstable_UserBlockingPriority=2,g.unstable_cancelCallback=function(j){j.callback=null},g.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):et=0<j?Math.floor(1e3/j):5},g.unstable_getCurrentPriorityLevel=function(){return R},g.unstable_next=function(j){switch(R){case 1:case 2:case 3:var _=3;break;default:_=R}var O=R;R=_;try{return j()}finally{R=O}},g.unstable_requestPaint=function(){J=!0},g.unstable_runWithPriority=function(j,_){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var O=R;R=j;try{return _()}finally{R=O}},g.unstable_scheduleCallback=function(j,_,O){var it=g.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?it+O:it):O=it,j){case 1:var Tt=-1;break;case 2:Tt=250;break;case 5:Tt=1073741823;break;case 4:Tt=1e4;break;default:Tt=5e3}return Tt=O+Tt,j={id:G++,callback:_,priorityLevel:j,startTime:O,expirationTime:Tt,sortIndex:-1},O>it?(j.sortIndex=O,f(S,j),y(U)===null&&j===y(S)&&($?(gt(Gt),Gt=-1):$=!0,Wt(V,O-it))):(j.sortIndex=Tt,f(U,j),st||w||(st=!0,Mt||(Mt=!0,Yt()))),j},g.unstable_shouldYield=Pt,g.unstable_wrapCallback=function(j){var _=R;return function(){var O=R;R=_;try{return j.apply(this,arguments)}finally{R=O}}}})(si)),si}var Ff;function xh(){return Ff||(Ff=1,fi.exports=Sh()),fi.exports}var oi={exports:{}},kt={};var If;function Ah(){if(If)return kt;If=1;var g=ti();function f(U){var S="https://react.dev/errors/"+U;if(1<arguments.length){S+="?args[]="+encodeURIComponent(arguments[1]);for(var G=2;G<arguments.length;G++)S+="&args[]="+encodeURIComponent(arguments[G])}return"Minified React error #"+U+"; visit "+S+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function y(){}var M={d:{f:y,r:function(){throw Error(f(522))},D:y,C:y,L:y,m:y,X:y,S:y,M:y},p:0,findDOMNode:null},o=Symbol.for("react.portal");function C(U,S,G){var D=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:D==null?null:""+D,children:U,containerInfo:S,implementation:G}}var H=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Q(U,S){if(U==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}return kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,kt.createPortal=function(U,S){var G=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11)throw Error(f(299));return C(U,S,null,G)},kt.flushSync=function(U){var S=H.T,G=M.p;try{if(H.T=null,M.p=2,U)return U()}finally{H.T=S,M.p=G,M.d.f()}},kt.preconnect=function(U,S){typeof U=="string"&&(S?(S=S.crossOrigin,S=typeof S=="string"?S==="use-credentials"?S:"":void 0):S=null,M.d.C(U,S))},kt.prefetchDNS=function(U){typeof U=="string"&&M.d.D(U)},kt.preinit=function(U,S){if(typeof U=="string"&&S&&typeof S.as=="string"){var G=S.as,D=Q(G,S.crossOrigin),R=typeof S.integrity=="string"?S.integrity:void 0,w=typeof S.fetchPriority=="string"?S.fetchPriority:void 0;G==="style"?M.d.S(U,typeof S.precedence=="string"?S.precedence:void 0,{crossOrigin:D,integrity:R,fetchPriority:w}):G==="script"&&M.d.X(U,{crossOrigin:D,integrity:R,fetchPriority:w,nonce:typeof S.nonce=="string"?S.nonce:void 0})}},kt.preinitModule=function(U,S){if(typeof U=="string")if(typeof S=="object"&&S!==null){if(S.as==null||S.as==="script"){var G=Q(S.as,S.crossOrigin);M.d.M(U,{crossOrigin:G,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0})}}else S==null&&M.d.M(U)},kt.preload=function(U,S){if(typeof U=="string"&&typeof S=="object"&&S!==null&&typeof S.as=="string"){var G=S.as,D=Q(G,S.crossOrigin);M.d.L(U,G,{crossOrigin:D,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,type:typeof S.type=="string"?S.type:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0,referrerPolicy:typeof S.referrerPolicy=="string"?S.referrerPolicy:void 0,imageSrcSet:typeof S.imageSrcSet=="string"?S.imageSrcSet:void 0,imageSizes:typeof S.imageSizes=="string"?S.imageSizes:void 0,media:typeof S.media=="string"?S.media:void 0})}},kt.preloadModule=function(U,S){if(typeof U=="string")if(S){var G=Q(S.as,S.crossOrigin);M.d.m(U,{as:typeof S.as=="string"&&S.as!=="script"?S.as:void 0,crossOrigin:G,integrity:typeof S.integrity=="string"?S.integrity:void 0})}else M.d.m(U)},kt.requestFormReset=function(U){M.d.r(U)},kt.unstable_batchedUpdates=function(U,S){return U(S)},kt.useFormState=function(U,S,G){return H.H.useFormState(U,S,G)},kt.useFormStatus=function(){return H.H.useHostTransitionStatus()},kt.version="19.2.4",kt}var Pf;function Th(){if(Pf)return oi.exports;Pf=1;function g(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(g)}catch(f){console.error(f)}}return g(),oi.exports=Ah(),oi.exports}var ts;function zh(){if(ts)return qa;ts=1;var g={env:{NODE_ENV:"production"}};var f=xh(),y=ti(),M=Th();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function C(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function H(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function Q(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function U(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function S(t){if(H(t)!==t)throw Error(o(188))}function G(t){var e=t.alternate;if(!e){if(e=H(t),e===null)throw Error(o(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return S(n),t;if(u===a)return S(n),e;u=u.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=u;else{for(var i=!1,c=n.child;c;){if(c===l){i=!0,l=n,a=u;break}if(c===a){i=!0,a=n,l=u;break}c=c.sibling}if(!i){for(c=u.child;c;){if(c===l){i=!0,l=u,a=n;break}if(c===a){i=!0,a=u,l=n;break}c=c.sibling}if(!i)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?t:e}function D(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=D(t),e!==null)return e;t=t.sibling}return null}var R=Object.assign,w=Symbol.for("react.element"),st=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),J=Symbol.for("react.fragment"),dt=Symbol.for("react.strict_mode"),gt=Symbol.for("react.profiler"),bt=Symbol.for("react.consumer"),xt=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),Mt=Symbol.for("react.suspense"),Gt=Symbol.for("react.suspense_list"),et=Symbol.for("react.memo"),At=Symbol.for("react.lazy"),Pt=Symbol.for("react.activity"),je=Symbol.for("react.memo_cache_sentinel"),Yt=Symbol.iterator;function $t(t){return t===null||typeof t!="object"?null:(t=Yt&&t[Yt]||t["@@iterator"],typeof t=="function"?t:null)}var pe=Symbol.for("react.client.reference");function Wt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===pe?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case J:return"Fragment";case gt:return"Profiler";case dt:return"StrictMode";case Mt:return"Suspense";case Gt:return"SuspenseList";case Pt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case $:return"Portal";case xt:return t.displayName||"Context";case bt:return(t._context.displayName||"Context")+".Consumer";case V:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case et:return e=t.displayName||null,e!==null?e:Wt(t.type)||"Memo";case At:e=t._payload,t=t._init;try{return Wt(t(e))}catch{}}return null}var j=Array.isArray,_=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=M.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,it={pending:!1,data:null,method:null,action:null},Tt=[],ce=-1;function d(t){return{current:t}}function E(t){0>ce||(t.current=Tt[ce],Tt[ce]=null,ce--)}function N(t,e){ce++,Tt[ce]=t.current,t.current=e}var Y=d(null),F=d(null),I=d(null),rt=d(null);function Ft(t,e){switch(N(I,e),N(F,t),N(Y,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Cd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Cd(e),t=Od(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}E(Y),N(Y,t)}function Ut(){E(Y),E(F),E(I)}function Ya(t){t.memoizedState!==null&&N(rt,t);var e=Y.current,l=Od(e,t.type);e!==l&&(N(F,t),N(Y,l))}function Hn(t){F.current===t&&(E(Y),E(F)),rt.current===t&&(E(rt),On._currentValue=it)}var ri,as;function Ol(t){if(ri===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);ri=e&&e[1]||"",as=-1<l.stack.indexOf(`
314
+ `})]})},mh=({message:g})=>{const f=g.role==="user";return g.role==="system"?null:v.jsxs("div",{style:{display:"flex",gap:"10px",flexDirection:f?"row-reverse":"row",alignItems:"flex-start"},children:[v.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",background:f?"var(--glyde-primary-light, #e0e7ff)":"var(--glyde-secondary-light, #f0f9ff)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:f?v.jsx(wf,{size:18,color:"var(--glyde-primary, #4338ca)"}):v.jsx(Lf,{size:18,color:"var(--glyde-secondary, #0284c7)"})}),v.jsx("div",{style:{padding:"12px 16px",borderRadius:"12px",background:f?"var(--glyde-primary, #4338ca)":"var(--glyde-surface, #f1f5f9)",color:f?"white":"var(--glyde-text, #1e293b)",maxWidth:"70%",borderTopRightRadius:f?"4px":"12px",borderTopLeftRadius:f?"12px":"4px",lineHeight:1.5},children:g.content})]})},vh=()=>v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[v.jsx("span",{children:"Typing"}),v.jsx("span",{style:{display:"flex",gap:"2px"},children:[0,1,2].map(g=>v.jsx("span",{style:{width:"4px",height:"4px",borderRadius:"50%",background:"var(--glyde-text-muted, #94a3b8)",animation:"typing-dot 1.4s infinite",animationDelay:`${g*.2}s`}},g))})]}),ph={floating:{width:380,height:520},modal:{width:480,height:600,maxWidth:"95vw",maxHeight:"90vh"},inline:{width:"100%",height:600},mobile:{width:"100%",height:"100dvh",maxWidth:"100vw",maxHeight:"100dvh"}},Ba=({publishableKey:g,apiKey:f,authToken:h,contextId:M,unityBaseUrl:o="https://api.glydeunity.com",contextType:C="screening",defaultMode:N="voice",position:Q="bottom-right",theme:D="light",allowModeSwitch:S=!0,container:G,displayMode:O="floating",dimensions:H,showHeader:w=!0,allowClose:F=!0,onReady:I,onModeChange:$,onTranscript:bt,onError:dt,onClose:zt,initialExpanded:ct=!1,skipContinuityLimit:X})=>{console.log("[ChatWidget] Received unityBaseUrl:",o);const[_t,Ct]=Z.useState(O==="floating"?ct:!0),[at,wt]=Z.useState(!0),[Ot,Oe]=Z.useState(N||"voice");Z.useEffect(()=>{const K=D==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":D;Ha(K)},[D]),Z.useEffect(()=>{I?.()},[I]);const Ft=Jf(Q),Qt=K=>{Oe(K),$?.(K)},pe=(K,St)=>{bt?.(K,St)},Lt=K=>{dt?.(K)},U=()=>{O==="floating"?Ct(!1):(wt(!1),zt?.())},_={...ph[O],...H},j=K=>{if(K!==void 0)return typeof K=="number"?`${K}px`:K};return at?G?v.jsx(Hn,{publishableKey:g,apiKey:f,authToken:h,contextId:M,unityBaseUrl:o,contextType:C,mode:Ot,allowModeSwitch:S,showHeader:w,allowClose:F,dimensions:_,onModeChange:Qt,onTranscript:pe,onError:Lt,onClose:U,skipContinuityLimit:X}):O==="modal"?v.jsx(bh,{publishableKey:g,apiKey:f,authToken:h,contextId:M,unityBaseUrl:o,contextType:C,mode:Ot,allowModeSwitch:S,showHeader:w,allowClose:F,dimensions:_,onModeChange:Qt,onTranscript:pe,onError:Lt,onClose:U,skipContinuityLimit:X}):O==="mobile"?v.jsx(Sh,{publishableKey:g,apiKey:f,authToken:h,contextId:M,unityBaseUrl:o,contextType:C,mode:Ot,allowModeSwitch:S,showHeader:w,allowClose:F,dimensions:_,onModeChange:Qt,onTranscript:pe,onError:Lt,onClose:U,skipContinuityLimit:X}):O==="inline"?v.jsx("div",{className:"glyde-widget-root",style:{width:j(_.width),height:j(_.height),maxWidth:j(_.maxWidth),maxHeight:j(_.maxHeight),minHeight:"500px"},children:v.jsx(Hn,{publishableKey:g,apiKey:f,authToken:h,contextId:M,unityBaseUrl:o,contextType:C,mode:Ot,allowModeSwitch:S,showHeader:w,allowClose:F,dimensions:_,onModeChange:Qt,onTranscript:pe,onError:Lt,onClose:U,skipContinuityLimit:X})}):v.jsxs("div",{className:"glyde-widget-root",children:[!_t&&v.jsx("button",{onClick:()=>Ct(!0),style:{...Mt.floatingButton,...Ft.button,background:"linear-gradient(135deg, var(--glyde-primary, #c026d3) 0%, var(--glyde-secondary, #7c3aed) 100%)"},"aria-label":"Open chat",children:v.jsx(Na,{size:28,color:"white"})}),_t&&v.jsxs("div",{style:{...Mt.widgetPanel,...Ft.panel,background:"var(--glyde-background, white)"},className:"glyde-slide-up",children:[v.jsx(kf,{contextType:C,showMinimize:!0,showClose:!0,onMinimize:()=>Ct(!1),onClose:U}),S&&v.jsx("div",{style:{padding:"12px 16px",borderBottom:"1px solid var(--glyde-border, #e5e7eb)"},children:v.jsx(Wf,{mode:Ot,onModeChange:Qt})}),v.jsx("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:Ot==="voice"?v.jsx(ui,{publishableKey:g,apiKey:f,authToken:h,contextId:M||"",unityApiUrl:o,contextType:C,height:"100%",onTranscript:pe,onError:Lt,onSwitchToText:S?()=>Qt("text"):void 0,skipContinuityLimit:X}):v.jsx(ii,{publishableKey:g,apiKey:f,authToken:h,contextId:M||"",unityApiUrl:o,height:"100%",title:"Text Chat",onError:Lt})})]})]}):null},kf=({contextType:g,showMinimize:f,showClose:h,onMinimize:M,onClose:o})=>v.jsxs("div",{style:{...Mt.header,background:"linear-gradient(135deg, var(--glyde-primary, #c026d3) 0%, var(--glyde-secondary, #7c3aed) 100%)",color:"white",borderTopLeftRadius:"16px",borderTopRightRadius:"16px"},children:[v.jsxs("div",{children:[v.jsx("h3",{style:{margin:0,fontSize:"1rem",fontWeight:600},children:"GLYDE Assistant"}),v.jsx("small",{style:{opacity:.8,fontSize:"0.75rem"},children:g==="screening"?"Candidate Screening":"AI Assistant"})]}),v.jsxs("div",{style:{display:"flex",gap:"8px"},children:[f&&M&&v.jsx("button",{onClick:M,style:{...Mt.iconButton,background:"rgba(255,255,255,0.2)",width:"32px",height:"32px"},"aria-label":"Minimize",children:v.jsx(Zf,{size:16,color:"white"})}),h&&o&&v.jsx("button",{onClick:o,style:{...Mt.iconButton,background:"rgba(255,255,255,0.2)",width:"32px",height:"32px"},"aria-label":"Close",children:v.jsx(Qf,{size:16,color:"white"})})]})]}),Wf=({mode:g,onModeChange:f})=>v.jsxs("div",{style:Mt.modeSelector,children:[v.jsxs("button",{onClick:()=>f("voice"),style:{...Mt.modeSelectorButton,background:g==="voice"?"var(--glyde-primary, #c026d3)":"transparent",color:g==="voice"?"white":"var(--glyde-text, #1f2937)"},children:[v.jsx(Na,{size:16})," Voice"]}),v.jsxs("button",{onClick:()=>f("text"),style:{...Mt.modeSelectorButton,background:g==="text"?"var(--glyde-secondary, #0284c7)":"transparent",color:g==="text"?"white":"var(--glyde-text, #1f2937)"},children:[v.jsx(Nn,{size:16})," Text"]})]}),Hn=({publishableKey:g,apiKey:f,authToken:h,contextId:M,unityBaseUrl:o,contextType:C,mode:N,allowModeSwitch:Q,showHeader:D=!0,allowClose:S=!0,dimensions:G,onModeChange:O,onTranscript:H,onError:w,onClose:F,skipContinuityLimit:I})=>{const[$,bt]=Z.useState(N);Z.useEffect(()=>{bt(N)},[N]);const dt=ct=>{bt(ct),O(ct)},zt=ct=>{if(ct!==void 0)return typeof ct=="number"?`${ct}px`:ct};return v.jsxs("div",{className:"glyde-widget-root",style:{height:zt(G?.height)||"100%",width:zt(G?.width)||"100%",maxWidth:zt(G?.maxWidth),maxHeight:zt(G?.maxHeight),minHeight:"500px",display:"flex",flexDirection:"column",borderRadius:"16px",overflow:"hidden",boxShadow:"0 4px 20px rgba(0,0,0,0.15)",border:"1px solid var(--glyde-border, #e5e7eb)",background:"var(--glyde-background, white)"},children:[D&&v.jsx(kf,{contextType:C,showMinimize:!1,showClose:S,onClose:F}),Q&&v.jsx("div",{style:{padding:"12px 16px",borderBottom:"1px solid var(--glyde-border, #e5e7eb)",background:"var(--glyde-background, white)"},children:v.jsx(Wf,{mode:$,onModeChange:dt})}),v.jsx("div",{style:{flex:1,overflow:"hidden",display:"flex",flexDirection:"column"},children:$==="voice"?v.jsx(ui,{publishableKey:g,apiKey:f,authToken:h,contextId:M||"",unityApiUrl:o,contextType:C,height:"100%",onTranscript:H,onSwitchToText:Q?()=>dt("text"):void 0,onError:w,skipContinuityLimit:I}):v.jsx(ii,{publishableKey:g,apiKey:f,authToken:h,contextId:M||"",unityApiUrl:o,height:"100%",title:"Text Chat",onError:w})})]})},bh=g=>{const{dimensions:f,onClose:h}=g,M=C=>{if(C!==void 0)return typeof C=="number"?`${C}px`:C},o=C=>{C.target===C.currentTarget&&g.allowClose&&h?.()};return Z.useEffect(()=>{const C=N=>{N.key==="Escape"&&g.allowClose&&h?.()};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[h,g.allowClose]),v.jsx("div",{className:"glyde-modal-backdrop",onClick:o,style:{position:"fixed",top:0,left:0,right:0,bottom:0,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e4,padding:"20px"},children:v.jsx("div",{className:"glyde-modal-content glyde-fade-in",style:{width:M(f?.width)||"480px",height:M(f?.height)||"600px",maxWidth:M(f?.maxWidth)||"95vw",maxHeight:M(f?.maxHeight)||"90vh"},children:v.jsx(Hn,{...g})})})},Sh=g=>{const{onClose:f,dimensions:h}=g,M={...h,width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%"};return Z.useEffect(()=>{const o=C=>{C.key==="Escape"&&g.allowClose&&f?.()};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[f,g.allowClose]),v.jsx("div",{className:"glyde-mobile-viewport",children:v.jsx(Hn,{...g,dimensions:M})})};var ci={exports:{}},qa={},fi={exports:{}},si={};var $f;function xh(){return $f||($f=1,(function(g){function f(U,_){var j=U.length;U.push(_);t:for(;0<j;){var K=j-1>>>1,St=U[K];if(0<o(St,_))U[K]=_,U[j]=St,j=K;else break t}}function h(U){return U.length===0?null:U[0]}function M(U){if(U.length===0)return null;var _=U[0],j=U.pop();if(j!==_){U[0]=j;t:for(var K=0,St=U.length,ce=St>>>1;K<ce;){var d=2*(K+1)-1,E=U[d],R=d+1,Y=U[R];if(0>o(E,j))R<St&&0>o(Y,E)?(U[K]=Y,U[R]=j,K=R):(U[K]=E,U[d]=j,K=d);else if(R<St&&0>o(Y,j))U[K]=Y,U[R]=j,K=R;else break t}}return _}function o(U,_){var j=U.sortIndex-_.sortIndex;return j!==0?j:U.id-_.id}if(g.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var C=performance;g.unstable_now=function(){return C.now()}}else{var N=Date,Q=N.now();g.unstable_now=function(){return N.now()-Q}}var D=[],S=[],G=1,O=null,H=3,w=!1,F=!1,I=!1,$=!1,bt=typeof setTimeout=="function"?setTimeout:null,dt=typeof clearTimeout=="function"?clearTimeout:null,zt=typeof setImmediate<"u"?setImmediate:null;function ct(U){for(var _=h(S);_!==null;){if(_.callback===null)M(S);else if(_.startTime<=U)M(S),_.sortIndex=_.expirationTime,f(D,_);else break;_=h(S)}}function X(U){if(I=!1,ct(U),!F)if(h(D)!==null)F=!0,_t||(_t=!0,Ft());else{var _=h(S);_!==null&&Lt(X,_.startTime-U)}}var _t=!1,Ct=-1,at=5,wt=-1;function Ot(){return $?!0:!(g.unstable_now()-wt<at)}function Oe(){if($=!1,_t){var U=g.unstable_now();wt=U;var _=!0;try{t:{F=!1,I&&(I=!1,dt(Ct),Ct=-1),w=!0;var j=H;try{e:{for(ct(U),O=h(D);O!==null&&!(O.expirationTime>U&&Ot());){var K=O.callback;if(typeof K=="function"){O.callback=null,H=O.priorityLevel;var St=K(O.expirationTime<=U);if(U=g.unstable_now(),typeof St=="function"){O.callback=St,ct(U),_=!0;break e}O===h(D)&&M(D),ct(U)}else M(D);O=h(D)}if(O!==null)_=!0;else{var ce=h(S);ce!==null&&Lt(X,ce.startTime-U),_=!1}}break t}finally{O=null,H=j,w=!1}_=void 0}}finally{_?Ft():_t=!1}}}var Ft;if(typeof zt=="function")Ft=function(){zt(Oe)};else if(typeof MessageChannel<"u"){var Qt=new MessageChannel,pe=Qt.port2;Qt.port1.onmessage=Oe,Ft=function(){pe.postMessage(null)}}else Ft=function(){bt(Oe,0)};function Lt(U,_){Ct=bt(function(){U(g.unstable_now())},_)}g.unstable_IdlePriority=5,g.unstable_ImmediatePriority=1,g.unstable_LowPriority=4,g.unstable_NormalPriority=3,g.unstable_Profiling=null,g.unstable_UserBlockingPriority=2,g.unstable_cancelCallback=function(U){U.callback=null},g.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):at=0<U?Math.floor(1e3/U):5},g.unstable_getCurrentPriorityLevel=function(){return H},g.unstable_next=function(U){switch(H){case 1:case 2:case 3:var _=3;break;default:_=H}var j=H;H=_;try{return U()}finally{H=j}},g.unstable_requestPaint=function(){$=!0},g.unstable_runWithPriority=function(U,_){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var j=H;H=U;try{return _()}finally{H=j}},g.unstable_scheduleCallback=function(U,_,j){var K=g.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?K+j:K):j=K,U){case 1:var St=-1;break;case 2:St=250;break;case 5:St=1073741823;break;case 4:St=1e4;break;default:St=5e3}return St=j+St,U={id:G++,callback:_,priorityLevel:U,startTime:j,expirationTime:St,sortIndex:-1},j>K?(U.sortIndex=j,f(S,U),h(D)===null&&U===h(S)&&(I?(dt(Ct),Ct=-1):I=!0,Lt(X,j-K))):(U.sortIndex=St,f(D,U),F||w||(F=!0,_t||(_t=!0,Ft()))),U},g.unstable_shouldYield=Ot,g.unstable_wrapCallback=function(U){var _=H;return function(){var j=H;H=_;try{return U.apply(this,arguments)}finally{H=j}}}})(si)),si}var Ff;function Ah(){return Ff||(Ff=1,fi.exports=xh()),fi.exports}var oi={exports:{}},$t={};var If;function Th(){if(If)return $t;If=1;var g=ei();function f(D){var S="https://react.dev/errors/"+D;if(1<arguments.length){S+="?args[]="+encodeURIComponent(arguments[1]);for(var G=2;G<arguments.length;G++)S+="&args[]="+encodeURIComponent(arguments[G])}return"Minified React error #"+D+"; visit "+S+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(){}var M={d:{f:h,r:function(){throw Error(f(522))},D:h,C:h,L:h,m:h,X:h,S:h,M:h},p:0,findDOMNode:null},o=Symbol.for("react.portal");function C(D,S,G){var O=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:O==null?null:""+O,children:D,containerInfo:S,implementation:G}}var N=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Q(D,S){if(D==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}return $t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,$t.createPortal=function(D,S){var G=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11)throw Error(f(299));return C(D,S,null,G)},$t.flushSync=function(D){var S=N.T,G=M.p;try{if(N.T=null,M.p=2,D)return D()}finally{N.T=S,M.p=G,M.d.f()}},$t.preconnect=function(D,S){typeof D=="string"&&(S?(S=S.crossOrigin,S=typeof S=="string"?S==="use-credentials"?S:"":void 0):S=null,M.d.C(D,S))},$t.prefetchDNS=function(D){typeof D=="string"&&M.d.D(D)},$t.preinit=function(D,S){if(typeof D=="string"&&S&&typeof S.as=="string"){var G=S.as,O=Q(G,S.crossOrigin),H=typeof S.integrity=="string"?S.integrity:void 0,w=typeof S.fetchPriority=="string"?S.fetchPriority:void 0;G==="style"?M.d.S(D,typeof S.precedence=="string"?S.precedence:void 0,{crossOrigin:O,integrity:H,fetchPriority:w}):G==="script"&&M.d.X(D,{crossOrigin:O,integrity:H,fetchPriority:w,nonce:typeof S.nonce=="string"?S.nonce:void 0})}},$t.preinitModule=function(D,S){if(typeof D=="string")if(typeof S=="object"&&S!==null){if(S.as==null||S.as==="script"){var G=Q(S.as,S.crossOrigin);M.d.M(D,{crossOrigin:G,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0})}}else S==null&&M.d.M(D)},$t.preload=function(D,S){if(typeof D=="string"&&typeof S=="object"&&S!==null&&typeof S.as=="string"){var G=S.as,O=Q(G,S.crossOrigin);M.d.L(D,G,{crossOrigin:O,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,type:typeof S.type=="string"?S.type:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0,referrerPolicy:typeof S.referrerPolicy=="string"?S.referrerPolicy:void 0,imageSrcSet:typeof S.imageSrcSet=="string"?S.imageSrcSet:void 0,imageSizes:typeof S.imageSizes=="string"?S.imageSizes:void 0,media:typeof S.media=="string"?S.media:void 0})}},$t.preloadModule=function(D,S){if(typeof D=="string")if(S){var G=Q(S.as,S.crossOrigin);M.d.m(D,{as:typeof S.as=="string"&&S.as!=="script"?S.as:void 0,crossOrigin:G,integrity:typeof S.integrity=="string"?S.integrity:void 0})}else M.d.m(D)},$t.requestFormReset=function(D){M.d.r(D)},$t.unstable_batchedUpdates=function(D,S){return D(S)},$t.useFormState=function(D,S,G){return N.H.useFormState(D,S,G)},$t.useFormStatus=function(){return N.H.useHostTransitionStatus()},$t.version="19.2.4",$t}var Pf;function zh(){if(Pf)return oi.exports;Pf=1;function g(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(g)}catch(f){console.error(f)}}return g(),oi.exports=Th(),oi.exports}var ts;function Eh(){if(ts)return qa;ts=1;var g={env:{NODE_ENV:"production"}};var f=Ah(),h=ei(),M=zh();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function C(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function N(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function Q(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function D(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function S(t){if(N(t)!==t)throw Error(o(188))}function G(t){var e=t.alternate;if(!e){if(e=N(t),e===null)throw Error(o(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return S(n),t;if(u===a)return S(n),e;u=u.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=u;else{for(var i=!1,c=n.child;c;){if(c===l){i=!0,l=n,a=u;break}if(c===a){i=!0,a=n,l=u;break}c=c.sibling}if(!i){for(c=u.child;c;){if(c===l){i=!0,l=u,a=n;break}if(c===a){i=!0,a=u,l=n;break}c=c.sibling}if(!i)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?t:e}function O(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=O(t),e!==null)return e;t=t.sibling}return null}var H=Object.assign,w=Symbol.for("react.element"),F=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),bt=Symbol.for("react.strict_mode"),dt=Symbol.for("react.profiler"),zt=Symbol.for("react.consumer"),ct=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),_t=Symbol.for("react.suspense"),Ct=Symbol.for("react.suspense_list"),at=Symbol.for("react.memo"),wt=Symbol.for("react.lazy"),Ot=Symbol.for("react.activity"),Oe=Symbol.for("react.memo_cache_sentinel"),Ft=Symbol.iterator;function Qt(t){return t===null||typeof t!="object"?null:(t=Ft&&t[Ft]||t["@@iterator"],typeof t=="function"?t:null)}var pe=Symbol.for("react.client.reference");function Lt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===pe?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case $:return"Fragment";case dt:return"Profiler";case bt:return"StrictMode";case _t:return"Suspense";case Ct:return"SuspenseList";case Ot:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case I:return"Portal";case ct:return t.displayName||"Context";case zt:return(t._context.displayName||"Context")+".Consumer";case X:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case at:return e=t.displayName||null,e!==null?e:Lt(t.type)||"Memo";case wt:e=t._payload,t=t._init;try{return Lt(t(e))}catch{}}return null}var U=Array.isArray,_=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=M.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},St=[],ce=-1;function d(t){return{current:t}}function E(t){0>ce||(t.current=St[ce],St[ce]=null,ce--)}function R(t,e){ce++,St[ce]=t.current,t.current=e}var Y=d(null),P=d(null),tt=d(null),ht=d(null);function It(t,e){switch(R(tt,e),R(P,t),R(Y,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Cd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Cd(e),t=Od(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}E(Y),R(Y,t)}function jt(){E(Y),E(P),E(tt)}function Ya(t){t.memoizedState!==null&&R(ht,t);var e=Y.current,l=Od(e,t.type);e!==l&&(R(P,t),R(Y,l))}function Bn(t){P.current===t&&(E(Y),E(P)),ht.current===t&&(E(ht),On._currentValue=K)}var ri,as;function Ol(t){if(ri===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);ri=e&&e[1]||"",as=-1<l.stack.indexOf(`
287
315
  at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
288
316
  `+ri+t+as}var di=!1;function hi(t,e){if(!t||di)return"";di=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var z=function(){throw Error()};if(Object.defineProperty(z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(z,[])}catch(x){var b=x}Reflect.construct(t,[],z)}else{try{z.call()}catch(x){b=x}t.call(z.prototype)}}else{try{throw Error()}catch(x){b=x}(z=t())&&typeof z.catch=="function"&&z.catch(function(){})}}catch(x){if(x&&b&&typeof x.stack=="string")return[x.stack,b.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),i=u[0],c=u[1];if(i&&c){var s=i.split(`
289
- `),v=c.split(`
290
- `);for(n=a=0;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;for(;n<v.length&&!v[n].includes("DetermineComponentFrameRoot");)n++;if(a===s.length||n===v.length)for(a=s.length-1,n=v.length-1;1<=a&&0<=n&&s[a]!==v[n];)n--;for(;1<=a&&0<=n;a--,n--)if(s[a]!==v[n]){if(a!==1||n!==1)do if(a--,n--,0>n||s[a]!==v[n]){var A=`
291
- `+s[a].replace(" at new "," at ");return t.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",t.displayName)),A}while(1<=a&&0<=n);break}}}finally{di=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Ol(l):""}function _h(t,e){switch(t.tag){case 26:case 27:case 5:return Ol(t.type);case 16:return Ol("Lazy");case 13:return t.child!==e&&e!==null?Ol("Suspense Fallback"):Ol("Suspense");case 19:return Ol("SuspenseList");case 0:case 15:return hi(t.type,!1);case 11:return hi(t.type.render,!1);case 1:return hi(t.type,!0);case 31:return Ol("Activity");default:return""}}function ns(t){try{var e="",l=null;do e+=_h(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
317
+ `),p=c.split(`
318
+ `);for(n=a=0;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;for(;n<p.length&&!p[n].includes("DetermineComponentFrameRoot");)n++;if(a===s.length||n===p.length)for(a=s.length-1,n=p.length-1;1<=a&&0<=n&&s[a]!==p[n];)n--;for(;1<=a&&0<=n;a--,n--)if(s[a]!==p[n]){if(a!==1||n!==1)do if(a--,n--,0>n||s[a]!==p[n]){var A=`
319
+ `+s[a].replace(" at new "," at ");return t.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",t.displayName)),A}while(1<=a&&0<=n);break}}}finally{di=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Ol(l):""}function Ch(t,e){switch(t.tag){case 26:case 27:case 5:return Ol(t.type);case 16:return Ol("Lazy");case 13:return t.child!==e&&e!==null?Ol("Suspense Fallback"):Ol("Suspense");case 19:return Ol("SuspenseList");case 0:case 15:return hi(t.type,!1);case 11:return hi(t.type.render,!1);case 1:return hi(t.type,!0);case 31:return Ol("Activity");default:return""}}function ns(t){try{var e="",l=null;do e+=Ch(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
292
320
  Error generating stack: `+a.message+`
293
- `+a.stack}}var yi=Object.prototype.hasOwnProperty,gi=f.unstable_scheduleCallback,mi=f.unstable_cancelCallback,Ch=f.unstable_shouldYield,Oh=f.unstable_requestPaint,fe=f.unstable_now,Dh=f.unstable_getCurrentPriorityLevel,us=f.unstable_ImmediatePriority,is=f.unstable_UserBlockingPriority,Bn=f.unstable_NormalPriority,Uh=f.unstable_LowPriority,cs=f.unstable_IdlePriority,jh=f.log,Rh=f.unstable_setDisableYieldValue,wa=null,se=null;function ll(t){if(typeof jh=="function"&&Rh(t),se&&typeof se.setStrictMode=="function")try{se.setStrictMode(wa,t)}catch{}}var oe=Math.clz32?Math.clz32:Bh,Nh=Math.log,Hh=Math.LN2;function Bh(t){return t>>>=0,t===0?32:31-(Nh(t)/Hh|0)|0}var qn=256,Gn=262144,Yn=4194304;function Dl(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function wn(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,u=t.suspendedLanes,i=t.pingedLanes;t=t.warmLanes;var c=a&134217727;return c!==0?(a=c&~u,a!==0?n=Dl(a):(i&=c,i!==0?n=Dl(i):l||(l=c&~t,l!==0&&(n=Dl(l))))):(c=a&~u,c!==0?n=Dl(c):i!==0?n=Dl(i):l||(l=a&~t,l!==0&&(n=Dl(l)))),n===0?0:e!==0&&e!==n&&(e&u)===0&&(u=n&-n,l=e&-e,u>=l||u===32&&(l&4194048)!==0)?e:n}function La(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function qh(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 fs(){var t=Yn;return Yn<<=1,(Yn&62914560)===0&&(Yn=4194304),t}function vi(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Xa(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Gh(t,e,l,a,n,u){var i=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var c=t.entanglements,s=t.expirationTimes,v=t.hiddenUpdates;for(l=i&~l;0<l;){var A=31-oe(l),z=1<<A;c[A]=0,s[A]=-1;var b=v[A];if(b!==null)for(v[A]=null,A=0;A<b.length;A++){var x=b[A];x!==null&&(x.lane&=-536870913)}l&=~z}a!==0&&ss(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(i&~e))}function ss(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-oe(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function os(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-oe(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function rs(t,e){var l=e&-e;return l=(l&42)!==0?1:pi(l),(l&(t.suspendedLanes|e))!==0?0:l}function pi(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function bi(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ds(){var t=O.p;return t!==0?t:(t=window.event,t===void 0?32:Id(t.type))}function hs(t,e){var l=O.p;try{return O.p=t,e()}finally{O.p=l}}var al=Math.random().toString(36).slice(2),Vt="__reactFiber$"+al,te="__reactProps$"+al,kl="__reactContainer$"+al,Si="__reactEvents$"+al,Yh="__reactListeners$"+al,wh="__reactHandles$"+al,ys="__reactResources$"+al,Va="__reactMarker$"+al;function xi(t){delete t[Vt],delete t[te],delete t[Si],delete t[Yh],delete t[wh]}function Wl(t){var e=t[Vt];if(e)return e;for(var l=t.parentNode;l;){if(e=l[kl]||l[Vt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=Bd(t);t!==null;){if(l=t[Vt])return l;t=Bd(t)}return e}t=l,l=t.parentNode}return null}function $l(t){if(t=t[Vt]||t[kl]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Qa(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function Fl(t){var e=t[ys];return e||(e=t[ys]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Lt(t){t[Va]=!0}var gs=new Set,ms={};function Ul(t,e){Il(t,e),Il(t+"Capture",e)}function Il(t,e){for(ms[t]=e,t=0;t<e.length;t++)gs.add(e[t])}var Lh=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]*$"),vs={},ps={};function Xh(t){return yi.call(ps,t)?!0:yi.call(vs,t)?!1:Lh.test(t)?ps[t]=!0:(vs[t]=!0,!1)}function Ln(t,e,l){if(Xh(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Xn(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function Ge(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function be(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function bs(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Vh(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(i){l=""+i,u.call(this,i)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(i){l=""+i},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ai(t){if(!t._valueTracker){var e=bs(t)?"checked":"value";t._valueTracker=Vh(t,e,""+t[e])}}function Ss(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=bs(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function Vn(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Qh=/[\n"\\]/g;function Se(t){return t.replace(Qh,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ti(t,e,l,a,n,u,i,c){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),e!=null?i==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+be(e)):t.value!==""+be(e)&&(t.value=""+be(e)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),e!=null?zi(t,i,be(e)):l!=null?zi(t,i,be(l)):a!=null&&t.removeAttribute("value"),n==null&&u!=null&&(t.defaultChecked=!!u),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?t.name=""+be(c):t.removeAttribute("name")}function xs(t,e,l,a,n,u,i,c){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Ai(t);return}l=l!=null?""+be(l):"",e=e!=null?""+be(e):l,c||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=c?t.checked:!!a,t.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i),Ai(t)}function zi(t,e,l){e==="number"&&Vn(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function Pl(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+be(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function As(t,e,l){if(e!=null&&(e=""+be(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+be(l):""}function Ts(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(o(92));if(j(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=be(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),Ai(t)}function ta(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Zh=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 zs(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||Zh.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function Es(t,e,l){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&zs(t,n,a)}else for(var u in e)e.hasOwnProperty(u)&&zs(t,u,e[u])}function Ei(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Kh=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"]]),Jh=/^[\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 Qn(t){return Jh.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ye(){}var Mi=null;function _i(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ea=null,la=null;function Ms(t){var e=$l(t);if(e&&(t=e.stateNode)){var l=t[te]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ti(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Se(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[te]||null;if(!n)throw Error(o(90));Ti(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&Ss(a)}break t;case"textarea":As(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&Pl(t,!!l.multiple,e,!1)}}}var Ci=!1;function _s(t,e,l){if(Ci)return t(e,l);Ci=!0;try{var a=t(e);return a}finally{if(Ci=!1,(ea!==null||la!==null)&&(Uu(),ea&&(e=ea,t=la,la=ea=null,Ms(e),t)))for(e=0;e<t.length;e++)Ms(t[e])}}function Za(t,e){var l=t.stateNode;if(l===null)return null;var a=l[te]||null;if(a===null)return null;l=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(o(231,e,typeof l));return l}var we=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oi=!1;if(we)try{var Ka={};Object.defineProperty(Ka,"passive",{get:function(){Oi=!0}}),window.addEventListener("test",Ka,Ka),window.removeEventListener("test",Ka,Ka)}catch{Oi=!1}var nl=null,Di=null,Zn=null;function Cs(){if(Zn)return Zn;var t,e=Di,l=e.length,a,n="value"in nl?nl.value:nl.textContent,u=n.length;for(t=0;t<l&&e[t]===n[t];t++);var i=l-t;for(a=1;a<=i&&e[l-a]===n[u-a];a++);return Zn=n.slice(t,1<a?1-a:void 0)}function Kn(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Jn(){return!0}function Os(){return!1}function ee(t){function e(l,a,n,u,i){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var c in t)t.hasOwnProperty(c)&&(l=t[c],this[c]=l?l(u):u[c]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Jn:Os,this.isPropagationStopped=Os,this}return R(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Jn)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Jn)},persist:function(){},isPersistent:Jn}),e}var jl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kn=ee(jl),Ja=R({},jl,{view:0,detail:0}),kh=ee(Ja),Ui,ji,ka,Wn=R({},Ja,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ni,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ka&&(ka&&t.type==="mousemove"?(Ui=t.screenX-ka.screenX,ji=t.screenY-ka.screenY):ji=Ui=0,ka=t),Ui)},movementY:function(t){return"movementY"in t?t.movementY:ji}}),Ds=ee(Wn),Wh=R({},Wn,{dataTransfer:0}),$h=ee(Wh),Fh=R({},Ja,{relatedTarget:0}),Ri=ee(Fh),Ih=R({},jl,{animationName:0,elapsedTime:0,pseudoElement:0}),Ph=ee(Ih),ty=R({},jl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ey=ee(ty),ly=R({},jl,{data:0}),Us=ee(ly),ay={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ny={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"},uy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iy(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=uy[t])?!!e[t]:!1}function Ni(){return iy}var cy=R({},Ja,{key:function(t){if(t.key){var e=ay[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Kn(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?ny[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ni,charCode:function(t){return t.type==="keypress"?Kn(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Kn(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),fy=ee(cy),sy=R({},Wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),js=ee(sy),oy=R({},Ja,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ni}),ry=ee(oy),dy=R({},jl,{propertyName:0,elapsedTime:0,pseudoElement:0}),hy=ee(dy),yy=R({},Wn,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),gy=ee(yy),my=R({},jl,{newState:0,oldState:0}),vy=ee(my),py=[9,13,27,32],Hi=we&&"CompositionEvent"in window,Wa=null;we&&"documentMode"in document&&(Wa=document.documentMode);var by=we&&"TextEvent"in window&&!Wa,Rs=we&&(!Hi||Wa&&8<Wa&&11>=Wa),Ns=" ",Hs=!1;function Bs(t,e){switch(t){case"keyup":return py.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qs(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var aa=!1;function Sy(t,e){switch(t){case"compositionend":return qs(e);case"keypress":return e.which!==32?null:(Hs=!0,Ns);case"textInput":return t=e.data,t===Ns&&Hs?null:t;default:return null}}function xy(t,e){if(aa)return t==="compositionend"||!Hi&&Bs(t,e)?(t=Cs(),Zn=Di=nl=null,aa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Rs&&e.locale!=="ko"?null:e.data;default:return null}}var Ay={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 Gs(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Ay[t.type]:e==="textarea"}function Ys(t,e,l,a){ea?la?la.push(a):la=[a]:ea=a,e=Gu(e,"onChange"),0<e.length&&(l=new kn("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var $a=null,Fa=null;function Ty(t){Ad(t,0)}function $n(t){var e=Qa(t);if(Ss(e))return t}function ws(t,e){if(t==="change")return e}var Ls=!1;if(we){var Bi;if(we){var qi="oninput"in document;if(!qi){var Xs=document.createElement("div");Xs.setAttribute("oninput","return;"),qi=typeof Xs.oninput=="function"}Bi=qi}else Bi=!1;Ls=Bi&&(!document.documentMode||9<document.documentMode)}function Vs(){$a&&($a.detachEvent("onpropertychange",Qs),Fa=$a=null)}function Qs(t){if(t.propertyName==="value"&&$n(Fa)){var e=[];Ys(e,Fa,t,_i(t)),_s(Ty,e)}}function zy(t,e,l){t==="focusin"?(Vs(),$a=e,Fa=l,$a.attachEvent("onpropertychange",Qs)):t==="focusout"&&Vs()}function Ey(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return $n(Fa)}function My(t,e){if(t==="click")return $n(e)}function _y(t,e){if(t==="input"||t==="change")return $n(e)}function Cy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var re=typeof Object.is=="function"?Object.is:Cy;function Ia(t,e){if(re(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!yi.call(e,n)||!re(t[n],e[n]))return!1}return!0}function Zs(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ks(t,e){var l=Zs(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Zs(l)}}function Js(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Js(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function ks(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Vn(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=Vn(t.document)}return e}function Gi(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Oy=we&&"documentMode"in document&&11>=document.documentMode,na=null,Yi=null,Pa=null,wi=!1;function Ws(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;wi||na==null||na!==Vn(a)||(a=na,"selectionStart"in a&&Gi(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Pa&&Ia(Pa,a)||(Pa=a,a=Gu(Yi,"onSelect"),0<a.length&&(e=new kn("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=na)))}function Rl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var ua={animationend:Rl("Animation","AnimationEnd"),animationiteration:Rl("Animation","AnimationIteration"),animationstart:Rl("Animation","AnimationStart"),transitionrun:Rl("Transition","TransitionRun"),transitionstart:Rl("Transition","TransitionStart"),transitioncancel:Rl("Transition","TransitionCancel"),transitionend:Rl("Transition","TransitionEnd")},Li={},$s={};we&&($s=document.createElement("div").style,"AnimationEvent"in window||(delete ua.animationend.animation,delete ua.animationiteration.animation,delete ua.animationstart.animation),"TransitionEvent"in window||delete ua.transitionend.transition);function Nl(t){if(Li[t])return Li[t];if(!ua[t])return t;var e=ua[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in $s)return Li[t]=e[l];return t}var Fs=Nl("animationend"),Is=Nl("animationiteration"),Ps=Nl("animationstart"),Dy=Nl("transitionrun"),Uy=Nl("transitionstart"),jy=Nl("transitioncancel"),to=Nl("transitionend"),eo=new Map,Xi="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(" ");Xi.push("scrollEnd");function Oe(t,e){eo.set(t,e),Ul(e,[t])}var Fn=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof g=="object"&&typeof g.emit=="function"){g.emit("uncaughtException",t);return}console.error(t)},xe=[],ia=0,Vi=0;function In(){for(var t=ia,e=Vi=ia=0;e<t;){var l=xe[e];xe[e++]=null;var a=xe[e];xe[e++]=null;var n=xe[e];xe[e++]=null;var u=xe[e];if(xe[e++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&lo(l,n,u)}}function Pn(t,e,l,a){xe[ia++]=t,xe[ia++]=e,xe[ia++]=l,xe[ia++]=a,Vi|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Qi(t,e,l,a){return Pn(t,e,l,a),tu(t)}function Hl(t,e){return Pn(t,null,null,e),tu(t)}function lo(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=t.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(n=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,n&&e!==null&&(n=31-oe(l),t=u.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),u):null}function tu(t){if(50<An)throw An=0,Pc=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ca={};function Ry(t,e,l,a){this.tag=t,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=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function de(t,e,l,a){return new Ry(t,e,l,a)}function Zi(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Le(t,e){var l=t.alternate;return l===null?(l=de(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function ao(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function eu(t,e,l,a,n,u){var i=0;if(a=t,typeof t=="function")Zi(t)&&(i=1);else if(typeof t=="string")i=Gg(t,l,Y.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Pt:return t=de(31,l,e,n),t.elementType=Pt,t.lanes=u,t;case J:return Bl(l.children,n,u,e);case dt:i=8,n|=24;break;case gt:return t=de(12,l,e,n|2),t.elementType=gt,t.lanes=u,t;case Mt:return t=de(13,l,e,n),t.elementType=Mt,t.lanes=u,t;case Gt:return t=de(19,l,e,n),t.elementType=Gt,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case xt:i=10;break t;case bt:i=9;break t;case V:i=11;break t;case et:i=14;break t;case At:i=16,a=null;break t}i=29,l=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=de(i,l,e,n),e.elementType=t,e.type=a,e.lanes=u,e}function Bl(t,e,l,a){return t=de(7,t,a,e),t.lanes=l,t}function Ki(t,e,l){return t=de(6,t,null,e),t.lanes=l,t}function no(t){var e=de(18,null,null,0);return e.stateNode=t,e}function Ji(t,e,l){return e=de(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var uo=new WeakMap;function Ae(t,e){if(typeof t=="object"&&t!==null){var l=uo.get(t);return l!==void 0?l:(e={value:t,source:e,stack:ns(e)},uo.set(t,e),e)}return{value:t,source:e,stack:ns(e)}}var fa=[],sa=0,lu=null,tn=0,Te=[],ze=0,ul=null,Re=1,Ne="";function Xe(t,e){fa[sa++]=tn,fa[sa++]=lu,lu=t,tn=e}function io(t,e,l){Te[ze++]=Re,Te[ze++]=Ne,Te[ze++]=ul,ul=t;var a=Re;t=Ne;var n=32-oe(a)-1;a&=~(1<<n),l+=1;var u=32-oe(e)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,Re=1<<32-oe(e)+n|l<<n|a,Ne=u+t}else Re=1<<u|l<<n|a,Ne=t}function ki(t){t.return!==null&&(Xe(t,1),io(t,1,0))}function Wi(t){for(;t===lu;)lu=fa[--sa],fa[sa]=null,tn=fa[--sa],fa[sa]=null;for(;t===ul;)ul=Te[--ze],Te[ze]=null,Ne=Te[--ze],Te[ze]=null,Re=Te[--ze],Te[ze]=null}function co(t,e){Te[ze++]=Re,Te[ze++]=Ne,Te[ze++]=ul,Re=e.id,Ne=e.overflow,ul=t}var Qt=null,zt=null,nt=!1,il=null,Ee=!1,$i=Error(o(519));function cl(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw en(Ae(e,t)),$i}function fo(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[Vt]=t,e[te]=a,l){case"dialog":tt("cancel",e),tt("close",e);break;case"iframe":case"object":case"embed":tt("load",e);break;case"video":case"audio":for(l=0;l<zn.length;l++)tt(zn[l],e);break;case"source":tt("error",e);break;case"img":case"image":case"link":tt("error",e),tt("load",e);break;case"details":tt("toggle",e);break;case"input":tt("invalid",e),xs(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":tt("invalid",e);break;case"textarea":tt("invalid",e),Ts(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||Md(e.textContent,l)?(a.popover!=null&&(tt("beforetoggle",e),tt("toggle",e)),a.onScroll!=null&&tt("scroll",e),a.onScrollEnd!=null&&tt("scrollend",e),a.onClick!=null&&(e.onclick=Ye),e=!0):e=!1,e||cl(t,!0)}function so(t){for(Qt=t.return;Qt;)switch(Qt.tag){case 5:case 31:case 13:Ee=!1;return;case 27:case 3:Ee=!0;return;default:Qt=Qt.return}}function oa(t){if(t!==Qt)return!1;if(!nt)return so(t),nt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||gf(t.type,t.memoizedProps)),l=!l),l&&zt&&cl(t),so(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));zt=Hd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));zt=Hd(t)}else e===27?(e=zt,xl(t.type)?(t=Sf,Sf=null,zt=t):zt=e):zt=Qt?_e(t.stateNode.nextSibling):null;return!0}function ql(){zt=Qt=null,nt=!1}function Fi(){var t=il;return t!==null&&(ue===null?ue=t:ue.push.apply(ue,t),il=null),t}function en(t){il===null?il=[t]:il.push(t)}var Ii=d(null),Gl=null,Ve=null;function fl(t,e,l){N(Ii,e._currentValue),e._currentValue=l}function Qe(t){t._currentValue=Ii.current,E(Ii)}function Pi(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function tc(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;t:for(;u!==null;){var c=u;u=n;for(var s=0;s<e.length;s++)if(c.context===e[s]){u.lanes|=l,c=u.alternate,c!==null&&(c.lanes|=l),Pi(u.return,l,t),a||(i=null);break t}u=c.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(o(341));i.lanes|=l,u=i.alternate,u!==null&&(u.lanes|=l),Pi(i,l,t),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===t){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function ra(t,e,l,a){t=null;for(var n=e,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(o(387));if(i=i.memoizedProps,i!==null){var c=n.type;re(n.pendingProps.value,i.value)||(t!==null?t.push(c):t=[c])}}else if(n===rt.current){if(i=n.alternate,i===null)throw Error(o(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(On):t=[On])}n=n.return}t!==null&&tc(e,t,l,a),e.flags|=262144}function au(t){for(t=t.firstContext;t!==null;){if(!re(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Yl(t){Gl=t,Ve=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Zt(t){return oo(Gl,t)}function nu(t,e){return Gl===null&&Yl(t),oo(t,e)}function oo(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},Ve===null){if(t===null)throw Error(o(308));Ve=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Ve=Ve.next=e;return l}var Ny=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},Hy=f.unstable_scheduleCallback,By=f.unstable_NormalPriority,Nt={$$typeof:xt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ec(){return{controller:new Ny,data:new Map,refCount:0}}function ln(t){t.refCount--,t.refCount===0&&Hy(By,function(){t.controller.abort()})}var an=null,lc=0,da=0,ha=null;function qy(t,e){if(an===null){var l=an=[];lc=0,da=uf(),ha={status:"pending",value:void 0,then:function(a){l.push(a)}}}return lc++,e.then(ro,ro),e}function ro(){if(--lc===0&&an!==null){ha!==null&&(ha.status="fulfilled");var t=an;an=null,da=0,ha=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Gy(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var ho=_.S;_.S=function(t,e){$r=fe(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&qy(t,e),ho!==null&&ho(t,e)};var wl=d(null);function ac(){var t=wl.current;return t!==null?t:St.pooledCache}function uu(t,e){e===null?N(wl,wl.current):N(wl,e.pool)}function yo(){var t=ac();return t===null?null:{parent:Nt._currentValue,pool:t}}var ya=Error(o(460)),nc=Error(o(474)),iu=Error(o(542)),cu={then:function(){}};function go(t){return t=t.status,t==="fulfilled"||t==="rejected"}function mo(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(Ye,Ye),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,po(t),t;default:if(typeof e.status=="string")e.then(Ye,Ye);else{if(t=St,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,po(t),t}throw Xl=e,ya}}function Ll(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Xl=l,ya):l}}var Xl=null;function vo(){if(Xl===null)throw Error(o(459));var t=Xl;return Xl=null,t}function po(t){if(t===ya||t===iu)throw Error(o(483))}var ga=null,nn=0;function fu(t){var e=nn;return nn+=1,ga===null&&(ga=[]),mo(ga,t,e)}function un(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function su(t,e){throw e.$$typeof===w?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function bo(t){function e(h,r){if(t){var m=h.deletions;m===null?(h.deletions=[r],h.flags|=16):m.push(r)}}function l(h,r){if(!t)return null;for(;r!==null;)e(h,r),r=r.sibling;return null}function a(h){for(var r=new Map;h!==null;)h.key!==null?r.set(h.key,h):r.set(h.index,h),h=h.sibling;return r}function n(h,r){return h=Le(h,r),h.index=0,h.sibling=null,h}function u(h,r,m){return h.index=m,t?(m=h.alternate,m!==null?(m=m.index,m<r?(h.flags|=67108866,r):m):(h.flags|=67108866,r)):(h.flags|=1048576,r)}function i(h){return t&&h.alternate===null&&(h.flags|=67108866),h}function c(h,r,m,T){return r===null||r.tag!==6?(r=Ki(m,h.mode,T),r.return=h,r):(r=n(r,m),r.return=h,r)}function s(h,r,m,T){var L=m.type;return L===J?A(h,r,m.props.children,T,m.key):r!==null&&(r.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===At&&Ll(L)===r.type)?(r=n(r,m.props),un(r,m),r.return=h,r):(r=eu(m.type,m.key,m.props,null,h.mode,T),un(r,m),r.return=h,r)}function v(h,r,m,T){return r===null||r.tag!==4||r.stateNode.containerInfo!==m.containerInfo||r.stateNode.implementation!==m.implementation?(r=Ji(m,h.mode,T),r.return=h,r):(r=n(r,m.children||[]),r.return=h,r)}function A(h,r,m,T,L){return r===null||r.tag!==7?(r=Bl(m,h.mode,T,L),r.return=h,r):(r=n(r,m),r.return=h,r)}function z(h,r,m){if(typeof r=="string"&&r!==""||typeof r=="number"||typeof r=="bigint")return r=Ki(""+r,h.mode,m),r.return=h,r;if(typeof r=="object"&&r!==null){switch(r.$$typeof){case st:return m=eu(r.type,r.key,r.props,null,h.mode,m),un(m,r),m.return=h,m;case $:return r=Ji(r,h.mode,m),r.return=h,r;case At:return r=Ll(r),z(h,r,m)}if(j(r)||$t(r))return r=Bl(r,h.mode,m,null),r.return=h,r;if(typeof r.then=="function")return z(h,fu(r),m);if(r.$$typeof===xt)return z(h,nu(h,r),m);su(h,r)}return null}function b(h,r,m,T){var L=r!==null?r.key:null;if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return L!==null?null:c(h,r,""+m,T);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case st:return m.key===L?s(h,r,m,T):null;case $:return m.key===L?v(h,r,m,T):null;case At:return m=Ll(m),b(h,r,m,T)}if(j(m)||$t(m))return L!==null?null:A(h,r,m,T,null);if(typeof m.then=="function")return b(h,r,fu(m),T);if(m.$$typeof===xt)return b(h,r,nu(h,m),T);su(h,m)}return null}function x(h,r,m,T,L){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return h=h.get(m)||null,c(r,h,""+T,L);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case st:return h=h.get(T.key===null?m:T.key)||null,s(r,h,T,L);case $:return h=h.get(T.key===null?m:T.key)||null,v(r,h,T,L);case At:return T=Ll(T),x(h,r,m,T,L)}if(j(T)||$t(T))return h=h.get(m)||null,A(r,h,T,L,null);if(typeof T.then=="function")return x(h,r,m,fu(T),L);if(T.$$typeof===xt)return x(h,r,m,nu(r,T),L);su(r,T)}return null}function B(h,r,m,T){for(var L=null,ct=null,q=r,W=r=0,at=null;q!==null&&W<m.length;W++){q.index>W?(at=q,q=null):at=q.sibling;var ft=b(h,q,m[W],T);if(ft===null){q===null&&(q=at);break}t&&q&&ft.alternate===null&&e(h,q),r=u(ft,r,W),ct===null?L=ft:ct.sibling=ft,ct=ft,q=at}if(W===m.length)return l(h,q),nt&&Xe(h,W),L;if(q===null){for(;W<m.length;W++)q=z(h,m[W],T),q!==null&&(r=u(q,r,W),ct===null?L=q:ct.sibling=q,ct=q);return nt&&Xe(h,W),L}for(q=a(q);W<m.length;W++)at=x(q,h,W,m[W],T),at!==null&&(t&&at.alternate!==null&&q.delete(at.key===null?W:at.key),r=u(at,r,W),ct===null?L=at:ct.sibling=at,ct=at);return t&&q.forEach(function(Ml){return e(h,Ml)}),nt&&Xe(h,W),L}function X(h,r,m,T){if(m==null)throw Error(o(151));for(var L=null,ct=null,q=r,W=r=0,at=null,ft=m.next();q!==null&&!ft.done;W++,ft=m.next()){q.index>W?(at=q,q=null):at=q.sibling;var Ml=b(h,q,ft.value,T);if(Ml===null){q===null&&(q=at);break}t&&q&&Ml.alternate===null&&e(h,q),r=u(Ml,r,W),ct===null?L=Ml:ct.sibling=Ml,ct=Ml,q=at}if(ft.done)return l(h,q),nt&&Xe(h,W),L;if(q===null){for(;!ft.done;W++,ft=m.next())ft=z(h,ft.value,T),ft!==null&&(r=u(ft,r,W),ct===null?L=ft:ct.sibling=ft,ct=ft);return nt&&Xe(h,W),L}for(q=a(q);!ft.done;W++,ft=m.next())ft=x(q,h,W,ft.value,T),ft!==null&&(t&&ft.alternate!==null&&q.delete(ft.key===null?W:ft.key),r=u(ft,r,W),ct===null?L=ft:ct.sibling=ft,ct=ft);return t&&q.forEach(function(Wg){return e(h,Wg)}),nt&&Xe(h,W),L}function pt(h,r,m,T){if(typeof m=="object"&&m!==null&&m.type===J&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case st:t:{for(var L=m.key;r!==null;){if(r.key===L){if(L=m.type,L===J){if(r.tag===7){l(h,r.sibling),T=n(r,m.props.children),T.return=h,h=T;break t}}else if(r.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===At&&Ll(L)===r.type){l(h,r.sibling),T=n(r,m.props),un(T,m),T.return=h,h=T;break t}l(h,r);break}else e(h,r);r=r.sibling}m.type===J?(T=Bl(m.props.children,h.mode,T,m.key),T.return=h,h=T):(T=eu(m.type,m.key,m.props,null,h.mode,T),un(T,m),T.return=h,h=T)}return i(h);case $:t:{for(L=m.key;r!==null;){if(r.key===L)if(r.tag===4&&r.stateNode.containerInfo===m.containerInfo&&r.stateNode.implementation===m.implementation){l(h,r.sibling),T=n(r,m.children||[]),T.return=h,h=T;break t}else{l(h,r);break}else e(h,r);r=r.sibling}T=Ji(m,h.mode,T),T.return=h,h=T}return i(h);case At:return m=Ll(m),pt(h,r,m,T)}if(j(m))return B(h,r,m,T);if($t(m)){if(L=$t(m),typeof L!="function")throw Error(o(150));return m=L.call(m),X(h,r,m,T)}if(typeof m.then=="function")return pt(h,r,fu(m),T);if(m.$$typeof===xt)return pt(h,r,nu(h,m),T);su(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint"?(m=""+m,r!==null&&r.tag===6?(l(h,r.sibling),T=n(r,m),T.return=h,h=T):(l(h,r),T=Ki(m,h.mode,T),T.return=h,h=T),i(h)):l(h,r)}return function(h,r,m,T){try{nn=0;var L=pt(h,r,m,T);return ga=null,L}catch(q){if(q===ya||q===iu)throw q;var ct=de(29,q,null,h.mode);return ct.lanes=T,ct.return=h,ct}}}var Vl=bo(!0),So=bo(!1),sl=!1;function uc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ic(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ol(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function rl(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(ot&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=tu(t),lo(t,null,l),e}return Pn(t,a,e,l),tu(t)}function cn(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,os(t,l)}}function cc(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,l=l.next}while(l!==null);u===null?n=u=e:u=u.next=e}else n=u=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var fc=!1;function fn(){if(fc){var t=ha;if(t!==null)throw t}}function sn(t,e,l,a){fc=!1;var n=t.updateQueue;sl=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,c=n.shared.pending;if(c!==null){n.shared.pending=null;var s=c,v=s.next;s.next=null,i===null?u=v:i.next=v,i=s;var A=t.alternate;A!==null&&(A=A.updateQueue,c=A.lastBaseUpdate,c!==i&&(c===null?A.firstBaseUpdate=v:c.next=v,A.lastBaseUpdate=s))}if(u!==null){var z=n.baseState;i=0,A=v=s=null,c=u;do{var b=c.lane&-536870913,x=b!==c.lane;if(x?(lt&b)===b:(a&b)===b){b!==0&&b===da&&(fc=!0),A!==null&&(A=A.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});t:{var B=t,X=c;b=e;var pt=l;switch(X.tag){case 1:if(B=X.payload,typeof B=="function"){z=B.call(pt,z,b);break t}z=B;break t;case 3:B.flags=B.flags&-65537|128;case 0:if(B=X.payload,b=typeof B=="function"?B.call(pt,z,b):B,b==null)break t;z=R({},z,b);break t;case 2:sl=!0}}b=c.callback,b!==null&&(t.flags|=64,x&&(t.flags|=8192),x=n.callbacks,x===null?n.callbacks=[b]:x.push(b))}else x={lane:b,tag:c.tag,payload:c.payload,callback:c.callback,next:null},A===null?(v=A=x,s=z):A=A.next=x,i|=b;if(c=c.next,c===null){if(c=n.shared.pending,c===null)break;x=c,c=x.next,x.next=null,n.lastBaseUpdate=x,n.shared.pending=null}}while(!0);A===null&&(s=z),n.baseState=s,n.firstBaseUpdate=v,n.lastBaseUpdate=A,u===null&&(n.shared.lanes=0),ml|=i,t.lanes=i,t.memoizedState=z}}function xo(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Ao(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)xo(l[t],e)}var ma=d(null),ou=d(0);function To(t,e){t=Pe,N(ou,t),N(ma,e),Pe=t|e.baseLanes}function sc(){N(ou,Pe),N(ma,ma.current)}function oc(){Pe=ou.current,E(ma),E(ou)}var he=d(null),Me=null;function dl(t){var e=t.alternate;N(jt,jt.current&1),N(he,t),Me===null&&(e===null||ma.current!==null||e.memoizedState!==null)&&(Me=t)}function rc(t){N(jt,jt.current),N(he,t),Me===null&&(Me=t)}function zo(t){t.tag===22?(N(jt,jt.current),N(he,t),Me===null&&(Me=t)):hl()}function hl(){N(jt,jt.current),N(he,he.current)}function ye(t){E(he),Me===t&&(Me=null),E(jt)}var jt=d(0);function ru(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||pf(l)||bf(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ze=0,k=null,mt=null,Ht=null,du=!1,va=!1,Ql=!1,hu=0,on=0,pa=null,Yy=0;function Ot(){throw Error(o(321))}function dc(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!re(t[l],e[l]))return!1;return!0}function hc(t,e,l,a,n,u){return Ze=u,k=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,_.H=t===null||t.memoizedState===null?cr:Cc,Ql=!1,u=l(a,n),Ql=!1,va&&(u=Mo(e,l,a,n)),Eo(t),u}function Eo(t){_.H=hn;var e=mt!==null&&mt.next!==null;if(Ze=0,Ht=mt=k=null,du=!1,on=0,pa=null,e)throw Error(o(300));t===null||Bt||(t=t.dependencies,t!==null&&au(t)&&(Bt=!0))}function Mo(t,e,l,a){k=t;var n=0;do{if(va&&(pa=null),on=0,va=!1,25<=n)throw Error(o(301));if(n+=1,Ht=mt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}_.H=fr,u=e(l,a)}while(va);return u}function wy(){var t=_.H,e=t.useState()[0];return e=typeof e.then=="function"?rn(e):e,t=t.useState()[0],(mt!==null?mt.memoizedState:null)!==t&&(k.flags|=1024),e}function yc(){var t=hu!==0;return hu=0,t}function gc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function mc(t){if(du){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}du=!1}Ze=0,Ht=mt=k=null,va=!1,on=hu=0,pa=null}function It(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ht===null?k.memoizedState=Ht=t:Ht=Ht.next=t,Ht}function Rt(){if(mt===null){var t=k.alternate;t=t!==null?t.memoizedState:null}else t=mt.next;var e=Ht===null?k.memoizedState:Ht.next;if(e!==null)Ht=e,mt=t;else{if(t===null)throw k.alternate===null?Error(o(467)):Error(o(310));mt=t,t={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},Ht===null?k.memoizedState=Ht=t:Ht=Ht.next=t}return Ht}function yu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rn(t){var e=on;return on+=1,pa===null&&(pa=[]),t=mo(pa,t,e),e=k,(Ht===null?e.memoizedState:Ht.next)===null&&(e=e.alternate,_.H=e===null||e.memoizedState===null?cr:Cc),t}function gu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return rn(t);if(t.$$typeof===xt)return Zt(t)}throw Error(o(438,String(t)))}function vc(t){var e=null,l=k.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=k.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=yu(),k.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=je;return e.index++,l}function Ke(t,e){return typeof e=="function"?e(t):e}function mu(t){var e=Rt();return pc(e,mt,t)}function pc(t,e,l){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=t.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}e.baseQueue=n=u,a.pending=null}if(u=t.baseState,n===null)t.memoizedState=u;else{e=n.next;var c=i=null,s=null,v=e,A=!1;do{var z=v.lane&-536870913;if(z!==v.lane?(lt&z)===z:(Ze&z)===z){var b=v.revertLane;if(b===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null}),z===da&&(A=!0);else if((Ze&b)===b){v=v.next,b===da&&(A=!0);continue}else z={lane:0,revertLane:v.revertLane,gesture:null,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},s===null?(c=s=z,i=u):s=s.next=z,k.lanes|=b,ml|=b;z=v.action,Ql&&l(u,z),u=v.hasEagerState?v.eagerState:l(u,z)}else b={lane:z,revertLane:v.revertLane,gesture:v.gesture,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},s===null?(c=s=b,i=u):s=s.next=b,k.lanes|=z,ml|=z;v=v.next}while(v!==null&&v!==e);if(s===null?i=u:s.next=c,!re(u,t.memoizedState)&&(Bt=!0,A&&(l=ha,l!==null)))throw l;t.memoizedState=u,t.baseState=i,t.baseQueue=s,a.lastRenderedState=u}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function bc(t){var e=Rt(),l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,u=e.memoizedState;if(n!==null){l.pending=null;var i=n=n.next;do u=t(u,i.action),i=i.next;while(i!==n);re(u,e.memoizedState)||(Bt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,a]}function _o(t,e,l){var a=k,n=Rt(),u=nt;if(u){if(l===void 0)throw Error(o(407));l=l()}else l=e();var i=!re((mt||n).memoizedState,l);if(i&&(n.memoizedState=l,Bt=!0),n=n.queue,Ac(Do.bind(null,a,n,t),[t]),n.getSnapshot!==e||i||Ht!==null&&Ht.memoizedState.tag&1){if(a.flags|=2048,ba(9,{destroy:void 0},Oo.bind(null,a,n,l,e),null),St===null)throw Error(o(349));u||(Ze&127)!==0||Co(a,e,l)}return l}function Co(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=k.updateQueue,e===null?(e=yu(),k.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function Oo(t,e,l,a){e.value=l,e.getSnapshot=a,Uo(e)&&jo(t)}function Do(t,e,l){return l(function(){Uo(e)&&jo(t)})}function Uo(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!re(t,l)}catch{return!0}}function jo(t){var e=Hl(t,2);e!==null&&ie(e,t,2)}function Sc(t){var e=It();if(typeof t=="function"){var l=t;if(t=l(),Ql){ll(!0);try{l()}finally{ll(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:t},e}function Ro(t,e,l,a){return t.baseState=l,pc(t,mt,typeof a=="function"?a:Ke)}function Ly(t,e,l,a,n){if(bu(t))throw Error(o(485));if(t=e.action,t!==null){var u={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};_.T!==null?l(!0):u.isTransition=!1,a(u),l=e.pending,l===null?(u.next=e.pending=u,No(e,u)):(u.next=l.next,e.pending=l.next=u)}}function No(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var u=_.T,i={};_.T=i;try{var c=l(n,a),s=_.S;s!==null&&s(i,c),Ho(t,e,c)}catch(v){xc(t,e,v)}finally{u!==null&&i.types!==null&&(u.types=i.types),_.T=u}}else try{u=l(n,a),Ho(t,e,u)}catch(v){xc(t,e,v)}}function Ho(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Bo(t,e,a)},function(a){return xc(t,e,a)}):Bo(t,e,l)}function Bo(t,e,l){e.status="fulfilled",e.value=l,qo(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,No(t,l)))}function xc(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,qo(e),e=e.next;while(e!==a)}t.action=null}function qo(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Go(t,e){return e}function Yo(t,e){if(nt){var l=St.formState;if(l!==null){t:{var a=k;if(nt){if(zt){e:{for(var n=zt,u=Ee;n.nodeType!==8;){if(!u){n=null;break e}if(n=_e(n.nextSibling),n===null){n=null;break e}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){zt=_e(n.nextSibling),a=n.data==="F!";break t}}cl(a)}a=!1}a&&(e=l[0])}}return l=It(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Go,lastRenderedState:e},l.queue=a,l=nr.bind(null,k,a),a.dispatch=l,a=Sc(!1),u=_c.bind(null,k,!1,a.queue),a=It(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=Ly.bind(null,k,n,u,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function wo(t){var e=Rt();return Lo(e,mt,t)}function Lo(t,e,l){if(e=pc(t,e,Go)[0],t=mu(Ke)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=rn(e)}catch(i){throw i===ya?iu:i}else a=e;e=Rt();var n=e.queue,u=n.dispatch;return l!==e.memoizedState&&(k.flags|=2048,ba(9,{destroy:void 0},Xy.bind(null,n,l),null)),[a,u,t]}function Xy(t,e){t.action=e}function Xo(t){var e=Rt(),l=mt;if(l!==null)return Lo(e,l,t);Rt(),e=e.memoizedState,l=Rt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function ba(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=k.updateQueue,e===null&&(e=yu(),k.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function Vo(){return Rt().memoizedState}function vu(t,e,l,a){var n=It();k.flags|=t,n.memoizedState=ba(1|e,{destroy:void 0},l,a===void 0?null:a)}function pu(t,e,l,a){var n=Rt();a=a===void 0?null:a;var u=n.memoizedState.inst;mt!==null&&a!==null&&dc(a,mt.memoizedState.deps)?n.memoizedState=ba(e,u,l,a):(k.flags|=t,n.memoizedState=ba(1|e,u,l,a))}function Qo(t,e){vu(8390656,8,t,e)}function Ac(t,e){pu(2048,8,t,e)}function Vy(t){k.flags|=4;var e=k.updateQueue;if(e===null)e=yu(),k.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Zo(t){var e=Rt().memoizedState;return Vy({ref:e,nextImpl:t}),function(){if((ot&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function Ko(t,e){return pu(4,2,t,e)}function Jo(t,e){return pu(4,4,t,e)}function ko(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Wo(t,e,l){l=l!=null?l.concat([t]):null,pu(4,4,ko.bind(null,e,t),l)}function Tc(){}function $o(t,e){var l=Rt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&dc(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function Fo(t,e){var l=Rt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&dc(e,a[1]))return a[0];if(a=t(),Ql){ll(!0);try{t()}finally{ll(!1)}}return l.memoizedState=[a,e],a}function zc(t,e,l){return l===void 0||(Ze&1073741824)!==0&&(lt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Ir(),k.lanes|=t,ml|=t,l)}function Io(t,e,l,a){return re(l,e)?l:ma.current!==null?(t=zc(t,l,a),re(t,e)||(Bt=!0),t):(Ze&42)===0||(Ze&1073741824)!==0&&(lt&261930)===0?(Bt=!0,t.memoizedState=l):(t=Ir(),k.lanes|=t,ml|=t,e)}function Po(t,e,l,a,n){var u=O.p;O.p=u!==0&&8>u?u:8;var i=_.T,c={};_.T=c,_c(t,!1,e,l);try{var s=n(),v=_.S;if(v!==null&&v(c,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var A=Gy(s,a);dn(t,e,A,ve(t))}else dn(t,e,a,ve(t))}catch(z){dn(t,e,{then:function(){},status:"rejected",reason:z},ve())}finally{O.p=u,i!==null&&c.types!==null&&(i.types=c.types),_.T=i}}function Qy(){}function Ec(t,e,l,a){if(t.tag!==5)throw Error(o(476));var n=tr(t).queue;Po(t,n,e,it,l===null?Qy:function(){return er(t),l(a)})}function tr(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:it,baseState:it,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:it},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function er(t){var e=tr(t);e.next===null&&(e=t.alternate.memoizedState),dn(t,e.next.queue,{},ve())}function Mc(){return Zt(On)}function lr(){return Rt().memoizedState}function ar(){return Rt().memoizedState}function Zy(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=ve();t=ol(l);var a=rl(e,t,l);a!==null&&(ie(a,e,l),cn(a,e,l)),e={cache:ec()},t.payload=e;return}e=e.return}}function Ky(t,e,l){var a=ve();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},bu(t)?ur(e,l):(l=Qi(t,e,l,a),l!==null&&(ie(l,t,a),ir(l,e,a)))}function nr(t,e,l){var a=ve();dn(t,e,l,a)}function dn(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(bu(t))ur(e,n);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var i=e.lastRenderedState,c=u(i,l);if(n.hasEagerState=!0,n.eagerState=c,re(c,i))return Pn(t,e,n,0),St===null&&In(),!1}catch{}if(l=Qi(t,e,n,a),l!==null)return ie(l,t,a),ir(l,e,a),!0}return!1}function _c(t,e,l,a){if(a={lane:2,revertLane:uf(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},bu(t)){if(e)throw Error(o(479))}else e=Qi(t,l,a,2),e!==null&&ie(e,t,2)}function bu(t){var e=t.alternate;return t===k||e!==null&&e===k}function ur(t,e){va=du=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function ir(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,os(t,l)}}var hn={readContext:Zt,use:gu,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useLayoutEffect:Ot,useInsertionEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useSyncExternalStore:Ot,useId:Ot,useHostTransitionStatus:Ot,useFormState:Ot,useActionState:Ot,useOptimistic:Ot,useMemoCache:Ot,useCacheRefresh:Ot};hn.useEffectEvent=Ot;var cr={readContext:Zt,use:gu,useCallback:function(t,e){return It().memoizedState=[t,e===void 0?null:e],t},useContext:Zt,useEffect:Qo,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,vu(4194308,4,ko.bind(null,e,t),l)},useLayoutEffect:function(t,e){return vu(4194308,4,t,e)},useInsertionEffect:function(t,e){vu(4,2,t,e)},useMemo:function(t,e){var l=It();e=e===void 0?null:e;var a=t();if(Ql){ll(!0);try{t()}finally{ll(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=It();if(l!==void 0){var n=l(e);if(Ql){ll(!0);try{l(e)}finally{ll(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=Ky.bind(null,k,t),[a.memoizedState,t]},useRef:function(t){var e=It();return t={current:t},e.memoizedState=t},useState:function(t){t=Sc(t);var e=t.queue,l=nr.bind(null,k,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Tc,useDeferredValue:function(t,e){var l=It();return zc(l,t,e)},useTransition:function(){var t=Sc(!1);return t=Po.bind(null,k,t.queue,!0,!1),It().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=k,n=It();if(nt){if(l===void 0)throw Error(o(407));l=l()}else{if(l=e(),St===null)throw Error(o(349));(lt&127)!==0||Co(a,e,l)}n.memoizedState=l;var u={value:l,getSnapshot:e};return n.queue=u,Qo(Do.bind(null,a,u,t),[t]),a.flags|=2048,ba(9,{destroy:void 0},Oo.bind(null,a,u,l,e),null),l},useId:function(){var t=It(),e=St.identifierPrefix;if(nt){var l=Ne,a=Re;l=(a&~(1<<32-oe(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=hu++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=Yy++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Mc,useFormState:Yo,useActionState:Yo,useOptimistic:function(t){var e=It();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=_c.bind(null,k,!0,l),l.dispatch=e,[t,e]},useMemoCache:vc,useCacheRefresh:function(){return It().memoizedState=Zy.bind(null,k)},useEffectEvent:function(t){var e=It(),l={impl:t};return e.memoizedState=l,function(){if((ot&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Cc={readContext:Zt,use:gu,useCallback:$o,useContext:Zt,useEffect:Ac,useImperativeHandle:Wo,useInsertionEffect:Ko,useLayoutEffect:Jo,useMemo:Fo,useReducer:mu,useRef:Vo,useState:function(){return mu(Ke)},useDebugValue:Tc,useDeferredValue:function(t,e){var l=Rt();return Io(l,mt.memoizedState,t,e)},useTransition:function(){var t=mu(Ke)[0],e=Rt().memoizedState;return[typeof t=="boolean"?t:rn(t),e]},useSyncExternalStore:_o,useId:lr,useHostTransitionStatus:Mc,useFormState:wo,useActionState:wo,useOptimistic:function(t,e){var l=Rt();return Ro(l,mt,t,e)},useMemoCache:vc,useCacheRefresh:ar};Cc.useEffectEvent=Zo;var fr={readContext:Zt,use:gu,useCallback:$o,useContext:Zt,useEffect:Ac,useImperativeHandle:Wo,useInsertionEffect:Ko,useLayoutEffect:Jo,useMemo:Fo,useReducer:bc,useRef:Vo,useState:function(){return bc(Ke)},useDebugValue:Tc,useDeferredValue:function(t,e){var l=Rt();return mt===null?zc(l,t,e):Io(l,mt.memoizedState,t,e)},useTransition:function(){var t=bc(Ke)[0],e=Rt().memoizedState;return[typeof t=="boolean"?t:rn(t),e]},useSyncExternalStore:_o,useId:lr,useHostTransitionStatus:Mc,useFormState:Xo,useActionState:Xo,useOptimistic:function(t,e){var l=Rt();return mt!==null?Ro(l,mt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:vc,useCacheRefresh:ar};fr.useEffectEvent=Zo;function Oc(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:R({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Dc={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=ve(),n=ol(a);n.payload=e,l!=null&&(n.callback=l),e=rl(t,n,a),e!==null&&(ie(e,t,a),cn(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=ve(),n=ol(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=rl(t,n,a),e!==null&&(ie(e,t,a),cn(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=ve(),a=ol(l);a.tag=2,e!=null&&(a.callback=e),e=rl(t,a,l),e!==null&&(ie(e,t,l),cn(e,t,l))}};function sr(t,e,l,a,n,u,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,u,i):e.prototype&&e.prototype.isPureReactComponent?!Ia(l,a)||!Ia(n,u):!0}function or(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&Dc.enqueueReplaceState(e,e.state,null)}function Zl(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=R({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function rr(t){Fn(t)}function dr(t){console.error(t)}function hr(t){Fn(t)}function Su(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function yr(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Uc(t,e,l){return l=ol(l),l.tag=3,l.payload={element:null},l.callback=function(){Su(t,e)},l}function gr(t){return t=ol(t),t.tag=3,t}function mr(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;t.payload=function(){return n(u)},t.callback=function(){yr(e,l,a)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){yr(e,l,a),typeof n!="function"&&(vl===null?vl=new Set([this]):vl.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function Jy(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&ra(e,l,n,!0),l=he.current,l!==null){switch(l.tag){case 31:case 13:return Me===null?ju():l.alternate===null&&Dt===0&&(Dt=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===cu?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),lf(t,a,n)),!1;case 22:return l.flags|=65536,a===cu?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),lf(t,a,n)),!1}throw Error(o(435,l.tag))}return lf(t,a,n),ju(),!1}if(nt)return e=he.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==$i&&(t=Error(o(422),{cause:a}),en(Ae(t,l)))):(a!==$i&&(e=Error(o(423),{cause:a}),en(Ae(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=Ae(a,l),n=Uc(t.stateNode,a,n),cc(t,n),Dt!==4&&(Dt=2)),!1;var u=Error(o(520),{cause:a});if(u=Ae(u,l),xn===null?xn=[u]:xn.push(u),Dt!==4&&(Dt=2),e===null)return!0;a=Ae(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=Uc(l.stateNode,a,t),cc(l,t),!1;case 1:if(e=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(vl===null||!vl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=gr(n),mr(n,t,l,a),cc(l,n),!1}l=l.return}while(l!==null);return!1}var jc=Error(o(461)),Bt=!1;function Kt(t,e,l,a){e.child=t===null?So(e,null,l,a):Vl(e,t.child,l,a)}function vr(t,e,l,a,n){l=l.render;var u=e.ref;if("ref"in a){var i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}else i=a;return Yl(e),a=hc(t,e,l,i,u,n),c=yc(),t!==null&&!Bt?(gc(t,e,n),Je(t,e,n)):(nt&&c&&ki(e),e.flags|=1,Kt(t,e,a,n),e.child)}function pr(t,e,l,a,n){if(t===null){var u=l.type;return typeof u=="function"&&!Zi(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,br(t,e,u,a,n)):(t=eu(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!wc(t,n)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:Ia,l(i,a)&&t.ref===e.ref)return Je(t,e,n)}return e.flags|=1,t=Le(u,a),t.ref=e.ref,t.return=e,e.child=t}function br(t,e,l,a,n){if(t!==null){var u=t.memoizedProps;if(Ia(u,a)&&t.ref===e.ref)if(Bt=!1,e.pendingProps=a=u,wc(t,n))(t.flags&131072)!==0&&(Bt=!0);else return e.lanes=t.lanes,Je(t,e,n)}return Rc(t,e,l,a,n)}function Sr(t,e,l,a){var n=a.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,e.child=null;return xr(t,e,u,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&uu(e,u!==null?u.cachePool:null),u!==null?To(e,u):sc(),zo(e);else return a=e.lanes=536870912,xr(t,e,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(uu(e,u.cachePool),To(e,u),hl(),e.memoizedState=null):(t!==null&&uu(e,null),sc(),hl());return Kt(t,e,n,l),e.child}function yn(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function xr(t,e,l,a,n){var u=ac();return u=u===null?null:{parent:Nt._currentValue,pool:u},e.memoizedState={baseLanes:l,cachePool:u},t!==null&&uu(e,null),sc(),zo(e),t!==null&&ra(t,e,a,!0),e.childLanes=n,null}function xu(t,e){return e=Tu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Ar(t,e,l){return Vl(e,t.child,null,l),t=xu(e,e.pendingProps),t.flags|=2,ye(e),e.memoizedState=null,t}function ky(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(nt){if(a.mode==="hidden")return t=xu(e,a),e.lanes=536870912,yn(null,t);if(rc(e),(t=zt)?(t=Nd(t,Ee),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ul!==null?{id:Re,overflow:Ne}:null,retryLane:536870912,hydrationErrors:null},l=no(t),l.return=e,e.child=l,Qt=e,zt=null)):t=null,t===null)throw cl(e);return e.lanes=536870912,null}return xu(e,a)}var u=t.memoizedState;if(u!==null){var i=u.dehydrated;if(rc(e),n)if(e.flags&256)e.flags&=-257,e=Ar(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Bt||ra(t,e,l,!1),n=(l&t.childLanes)!==0,Bt||n){if(a=St,a!==null&&(i=rs(a,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,Hl(t,i),ie(a,t,i),jc;ju(),e=Ar(t,e,l)}else t=u.treeContext,zt=_e(i.nextSibling),Qt=e,nt=!0,il=null,Ee=!1,t!==null&&co(e,t),e=xu(e,a),e.flags|=4096;return e}return t=Le(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Au(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Rc(t,e,l,a,n){return Yl(e),l=hc(t,e,l,a,void 0,n),a=yc(),t!==null&&!Bt?(gc(t,e,n),Je(t,e,n)):(nt&&a&&ki(e),e.flags|=1,Kt(t,e,l,n),e.child)}function Tr(t,e,l,a,n,u){return Yl(e),e.updateQueue=null,l=Mo(e,a,l,n),Eo(t),a=yc(),t!==null&&!Bt?(gc(t,e,u),Je(t,e,u)):(nt&&a&&ki(e),e.flags|=1,Kt(t,e,l,u),e.child)}function zr(t,e,l,a,n){if(Yl(e),e.stateNode===null){var u=ca,i=l.contextType;typeof i=="object"&&i!==null&&(u=Zt(i)),u=new l(a,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Dc,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=a,u.state=e.memoizedState,u.refs={},uc(e),i=l.contextType,u.context=typeof i=="object"&&i!==null?Zt(i):ca,u.state=e.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(Oc(e,l,i,a),u.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&Dc.enqueueReplaceState(u,u.state,null),sn(e,a,u,n),fn(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){u=e.stateNode;var c=e.memoizedProps,s=Zl(l,c);u.props=s;var v=u.context,A=l.contextType;i=ca,typeof A=="object"&&A!==null&&(i=Zt(A));var z=l.getDerivedStateFromProps;A=typeof z=="function"||typeof u.getSnapshotBeforeUpdate=="function",c=e.pendingProps!==c,A||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c||v!==i)&&or(e,u,a,i),sl=!1;var b=e.memoizedState;u.state=b,sn(e,a,u,n),fn(),v=e.memoizedState,c||b!==v||sl?(typeof z=="function"&&(Oc(e,l,z,a),v=e.memoizedState),(s=sl||sr(e,l,s,a,b,v,i))?(A||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=v),u.props=a,u.state=v,u.context=i,a=s):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{u=e.stateNode,ic(t,e),i=e.memoizedProps,A=Zl(l,i),u.props=A,z=e.pendingProps,b=u.context,v=l.contextType,s=ca,typeof v=="object"&&v!==null&&(s=Zt(v)),c=l.getDerivedStateFromProps,(v=typeof c=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==z||b!==s)&&or(e,u,a,s),sl=!1,b=e.memoizedState,u.state=b,sn(e,a,u,n),fn();var x=e.memoizedState;i!==z||b!==x||sl||t!==null&&t.dependencies!==null&&au(t.dependencies)?(typeof c=="function"&&(Oc(e,l,c,a),x=e.memoizedState),(A=sl||sr(e,l,A,a,b,x,s)||t!==null&&t.dependencies!==null&&au(t.dependencies))?(v||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,x,s),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,x,s)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&b===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&b===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=x),u.props=a,u.state=x,u.context=s,a=A):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&b===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&b===t.memoizedState||(e.flags|=1024),a=!1)}return u=a,Au(t,e),a=(e.flags&128)!==0,u||a?(u=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&a?(e.child=Vl(e,t.child,null,n),e.child=Vl(e,null,l,n)):Kt(t,e,l,n),e.memoizedState=u.state,t=e.child):t=Je(t,e,n),t}function Er(t,e,l,a){return ql(),e.flags|=256,Kt(t,e,l,a),e.child}var Nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hc(t){return{baseLanes:t,cachePool:yo()}}function Bc(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=me),t}function Mr(t,e,l){var a=e.pendingProps,n=!1,u=(e.flags&128)!==0,i;if((i=u)||(i=t!==null&&t.memoizedState===null?!1:(jt.current&2)!==0),i&&(n=!0,e.flags&=-129),i=(e.flags&32)!==0,e.flags&=-33,t===null){if(nt){if(n?dl(e):hl(),(t=zt)?(t=Nd(t,Ee),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ul!==null?{id:Re,overflow:Ne}:null,retryLane:536870912,hydrationErrors:null},l=no(t),l.return=e,e.child=l,Qt=e,zt=null)):t=null,t===null)throw cl(e);return bf(t)?e.lanes=32:e.lanes=536870912,null}var c=a.children;return a=a.fallback,n?(hl(),n=e.mode,c=Tu({mode:"hidden",children:c},n),a=Bl(a,n,l,null),c.return=e,a.return=e,c.sibling=a,e.child=c,a=e.child,a.memoizedState=Hc(l),a.childLanes=Bc(t,i,l),e.memoizedState=Nc,yn(null,a)):(dl(e),qc(e,c))}var s=t.memoizedState;if(s!==null&&(c=s.dehydrated,c!==null)){if(u)e.flags&256?(dl(e),e.flags&=-257,e=Gc(t,e,l)):e.memoizedState!==null?(hl(),e.child=t.child,e.flags|=128,e=null):(hl(),c=a.fallback,n=e.mode,a=Tu({mode:"visible",children:a.children},n),c=Bl(c,n,l,null),c.flags|=2,a.return=e,c.return=e,a.sibling=c,e.child=a,Vl(e,t.child,null,l),a=e.child,a.memoizedState=Hc(l),a.childLanes=Bc(t,i,l),e.memoizedState=Nc,e=yn(null,a));else if(dl(e),bf(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var v=i.dgst;i=v,a=Error(o(419)),a.stack="",a.digest=i,en({value:a,source:null,stack:null}),e=Gc(t,e,l)}else if(Bt||ra(t,e,l,!1),i=(l&t.childLanes)!==0,Bt||i){if(i=St,i!==null&&(a=rs(i,l),a!==0&&a!==s.retryLane))throw s.retryLane=a,Hl(t,a),ie(i,t,a),jc;pf(c)||ju(),e=Gc(t,e,l)}else pf(c)?(e.flags|=192,e.child=t.child,e=null):(t=s.treeContext,zt=_e(c.nextSibling),Qt=e,nt=!0,il=null,Ee=!1,t!==null&&co(e,t),e=qc(e,a.children),e.flags|=4096);return e}return n?(hl(),c=a.fallback,n=e.mode,s=t.child,v=s.sibling,a=Le(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&65011712,v!==null?c=Le(v,c):(c=Bl(c,n,l,null),c.flags|=2),c.return=e,a.return=e,a.sibling=c,e.child=a,yn(null,a),a=e.child,c=t.child.memoizedState,c===null?c=Hc(l):(n=c.cachePool,n!==null?(s=Nt._currentValue,n=n.parent!==s?{parent:s,pool:s}:n):n=yo(),c={baseLanes:c.baseLanes|l,cachePool:n}),a.memoizedState=c,a.childLanes=Bc(t,i,l),e.memoizedState=Nc,yn(t.child,a)):(dl(e),l=t.child,t=l.sibling,l=Le(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(i=e.deletions,i===null?(e.deletions=[t],e.flags|=16):i.push(t)),e.child=l,e.memoizedState=null,l)}function qc(t,e){return e=Tu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Tu(t,e){return t=de(22,t,null,e),t.lanes=0,t}function Gc(t,e,l){return Vl(e,t.child,null,l),t=qc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function _r(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Pi(t.return,e,l)}function Yc(t,e,l,a,n,u){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=l,i.tailMode=n,i.treeForkCount=u)}function Cr(t,e,l){var a=e.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=jt.current,c=(i&2)!==0;if(c?(i=i&1|2,e.flags|=128):i&=1,N(jt,i),Kt(t,e,a,l),a=nt?tn:0,!c&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&_r(t,l,e);else if(t.tag===19)_r(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&ru(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),Yc(e,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&ru(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}Yc(e,!0,l,null,u,a);break;case"together":Yc(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function Je(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),ml|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(ra(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,l=Le(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=Le(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function wc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&au(t)))}function Wy(t,e,l){switch(e.tag){case 3:Ft(e,e.stateNode.containerInfo),fl(e,Nt,t.memoizedState.cache),ql();break;case 27:case 5:Ya(e);break;case 4:Ft(e,e.stateNode.containerInfo);break;case 10:fl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,rc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(dl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?Mr(t,e,l):(dl(e),t=Je(t,e,l),t!==null?t.sibling:null);dl(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(ra(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return Cr(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),N(jt,jt.current),a)break;return null;case 22:return e.lanes=0,Sr(t,e,l,e.pendingProps);case 24:fl(e,Nt,t.memoizedState.cache)}return Je(t,e,l)}function Or(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Bt=!0;else{if(!wc(t,l)&&(e.flags&128)===0)return Bt=!1,Wy(t,e,l);Bt=(t.flags&131072)!==0}else Bt=!1,nt&&(e.flags&1048576)!==0&&io(e,tn,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=Ll(e.elementType),e.type=t,typeof t=="function")Zi(t)?(a=Zl(t,a),e.tag=1,e=zr(null,e,t,a,l)):(e.tag=0,e=Rc(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===V){e.tag=11,e=vr(null,e,t,a,l);break t}else if(n===et){e.tag=14,e=pr(null,e,t,a,l);break t}}throw e=Wt(t)||t,Error(o(306,e,""))}}return e;case 0:return Rc(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=Zl(a,e.pendingProps),zr(t,e,a,n,l);case 3:t:{if(Ft(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var u=e.memoizedState;n=u.element,ic(t,e),sn(e,a,null,l);var i=e.memoizedState;if(a=i.cache,fl(e,Nt,a),a!==u.cache&&tc(e,[Nt],l,!0),fn(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Er(t,e,a,l);break t}else if(a!==n){n=Ae(Error(o(424)),e),en(n),e=Er(t,e,a,l);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,zt=_e(t.firstChild),Qt=e,nt=!0,il=null,Ee=!0,l=So(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(ql(),a===n){e=Je(t,e,l);break t}Kt(t,e,a,l)}e=e.child}return e;case 26:return Au(t,e),t===null?(l=wd(e.type,null,e.pendingProps,null))?e.memoizedState=l:nt||(l=e.type,t=e.pendingProps,a=Yu(I.current).createElement(l),a[Vt]=e,a[te]=t,Jt(a,l,t),Lt(a),e.stateNode=a):e.memoizedState=wd(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Ya(e),t===null&&nt&&(a=e.stateNode=qd(e.type,e.pendingProps,I.current),Qt=e,Ee=!0,n=zt,xl(e.type)?(Sf=n,zt=_e(a.firstChild)):zt=n),Kt(t,e,e.pendingProps.children,l),Au(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&nt&&((n=a=zt)&&(a=Eg(a,e.type,e.pendingProps,Ee),a!==null?(e.stateNode=a,Qt=e,zt=_e(a.firstChild),Ee=!1,n=!0):n=!1),n||cl(e)),Ya(e),n=e.type,u=e.pendingProps,i=t!==null?t.memoizedProps:null,a=u.children,gf(n,u)?a=null:i!==null&&gf(n,i)&&(e.flags|=32),e.memoizedState!==null&&(n=hc(t,e,wy,null,null,l),On._currentValue=n),Au(t,e),Kt(t,e,a,l),e.child;case 6:return t===null&&nt&&((t=l=zt)&&(l=Mg(l,e.pendingProps,Ee),l!==null?(e.stateNode=l,Qt=e,zt=null,t=!0):t=!1),t||cl(e)),null;case 13:return Mr(t,e,l);case 4:return Ft(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=Vl(e,null,a,l):Kt(t,e,a,l),e.child;case 11:return vr(t,e,e.type,e.pendingProps,l);case 7:return Kt(t,e,e.pendingProps,l),e.child;case 8:return Kt(t,e,e.pendingProps.children,l),e.child;case 12:return Kt(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,fl(e,e.type,a.value),Kt(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,Yl(e),n=Zt(n),a=a(n),e.flags|=1,Kt(t,e,a,l),e.child;case 14:return pr(t,e,e.type,e.pendingProps,l);case 15:return br(t,e,e.type,e.pendingProps,l);case 19:return Cr(t,e,l);case 31:return ky(t,e,l);case 22:return Sr(t,e,l,e.pendingProps);case 24:return Yl(e),a=Zt(Nt),t===null?(n=ac(),n===null&&(n=St,u=ec(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),e.memoizedState={parent:a,cache:n},uc(e),fl(e,Nt,n)):((t.lanes&l)!==0&&(ic(t,e),sn(e,null,null,l),fn()),n=t.memoizedState,u=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),fl(e,Nt,a)):(a=u.cache,fl(e,Nt,a),a!==n.cache&&tc(e,[Nt],l,!0))),Kt(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function ke(t){t.flags|=4}function Lc(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(ld())t.flags|=8192;else throw Xl=cu,nc}else t.flags&=-16777217}function Dr(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Zd(e))if(ld())t.flags|=8192;else throw Xl=cu,nc}function zu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?fs():536870912,t.lanes|=e,Ta|=e)}function gn(t,e){if(!nt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Et(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function $y(t,e,l){var a=e.pendingProps;switch(Wi(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(e),null;case 1:return Et(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Qe(Nt),Ut(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(oa(e)?ke(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Fi())),Et(e),null;case 26:var n=e.type,u=e.memoizedState;return t===null?(ke(e),u!==null?(Et(e),Dr(e,u)):(Et(e),Lc(e,n,null,a,l))):u?u!==t.memoizedState?(ke(e),Et(e),Dr(e,u)):(Et(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&ke(e),Et(e),Lc(e,n,t,a,l)),null;case 27:if(Hn(e),l=I.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&ke(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Et(e),null}t=Y.current,oa(e)?fo(e):(t=qd(n,a,l),e.stateNode=t,ke(e))}return Et(e),null;case 5:if(Hn(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&ke(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Et(e),null}if(u=Y.current,oa(e))fo(e);else{var i=Yu(I.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[Vt]=e,u[te]=a;t:for(i=e.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break t;for(;i.sibling===null;){if(i.return===null||i.return===e)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}e.stateNode=u;t:switch(Jt(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&ke(e)}}return Et(e),Lc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&ke(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=I.current,oa(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=Qt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[Vt]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Md(t.nodeValue,l)),t||cl(e,!0)}else t=Yu(t).createTextNode(a),t[Vt]=e,e.stateNode=t}return Et(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=oa(e),l!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Vt]=e}else ql(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Et(e),t=!1}else l=Fi(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(ye(e),e):(ye(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Et(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=oa(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(o(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Vt]=e}else ql(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Et(e),n=!1}else n=Fi(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(ye(e),e):(ye(e),null)}return ye(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),zu(e,e.updateQueue),Et(e),null);case 4:return Ut(),t===null&&of(e.stateNode.containerInfo),Et(e),null;case 10:return Qe(e.type),Et(e),null;case 19:if(E(jt),a=e.memoizedState,a===null)return Et(e),null;if(n=(e.flags&128)!==0,u=a.rendering,u===null)if(n)gn(a,!1);else{if(Dt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=ru(t),u!==null){for(e.flags|=128,gn(a,!1),t=u.updateQueue,e.updateQueue=t,zu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)ao(l,t),l=l.sibling;return N(jt,jt.current&1|2),nt&&Xe(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&fe()>Ou&&(e.flags|=128,n=!0,gn(a,!1),e.lanes=4194304)}else{if(!n)if(t=ru(u),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,zu(e,t),gn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!nt)return Et(e),null}else 2*fe()-a.renderingStartTime>Ou&&l!==536870912&&(e.flags|=128,n=!0,gn(a,!1),e.lanes=4194304);a.isBackwards?(u.sibling=e.child,e.child=u):(t=a.last,t!==null?t.sibling=u:e.child=u,a.last=u)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=fe(),t.sibling=null,l=jt.current,N(jt,n?l&1|2:l&1),nt&&Xe(e,a.treeForkCount),t):(Et(e),null);case 22:case 23:return ye(e),oc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(Et(e),e.subtreeFlags&6&&(e.flags|=8192)):Et(e),l=e.updateQueue,l!==null&&zu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&E(wl),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Qe(Nt),Et(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function Fy(t,e){switch(Wi(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Qe(Nt),Ut(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Hn(e),null;case 31:if(e.memoizedState!==null){if(ye(e),e.alternate===null)throw Error(o(340));ql()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ye(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));ql()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return E(jt),null;case 4:return Ut(),null;case 10:return Qe(e.type),null;case 22:case 23:return ye(e),oc(),t!==null&&E(wl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Qe(Nt),null;case 25:return null;default:return null}}function Ur(t,e){switch(Wi(e),e.tag){case 3:Qe(Nt),Ut();break;case 26:case 27:case 5:Hn(e);break;case 4:Ut();break;case 31:e.memoizedState!==null&&ye(e);break;case 13:ye(e);break;case 19:E(jt);break;case 10:Qe(e.type);break;case 22:case 23:ye(e),oc(),t!==null&&E(wl);break;case 24:Qe(Nt)}}function mn(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var u=l.create,i=l.inst;a=u(),i.destroy=a}l=l.next}while(l!==n)}}catch(c){yt(e,e.return,c)}}function yl(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&t)===t){var i=a.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,n=e;var s=l,v=c;try{v()}catch(A){yt(n,s,A)}}}a=a.next}while(a!==u)}}catch(A){yt(e,e.return,A)}}function jr(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Ao(e,l)}catch(a){yt(t,t.return,a)}}}function Rr(t,e,l){l.props=Zl(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){yt(t,e,a)}}function vn(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){yt(t,e,n)}}function He(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){yt(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){yt(t,e,n)}else l.current=null}function Nr(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){yt(t,t.return,n)}}function Xc(t,e,l){try{var a=t.stateNode;bg(a,t.type,l,e),a[te]=e}catch(n){yt(t,t.return,n)}}function Hr(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&xl(t.type)||t.tag===4}function Vc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Hr(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&xl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Qc(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=Ye));else if(a!==4&&(a===27&&xl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Qc(t,e,l),t=t.sibling;t!==null;)Qc(t,e,l),t=t.sibling}function Eu(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&xl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Eu(t,e,l),t=t.sibling;t!==null;)Eu(t,e,l),t=t.sibling}function Br(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Jt(e,a,l),e[Vt]=t,e[te]=l}catch(u){yt(t,t.return,u)}}var We=!1,qt=!1,Zc=!1,qr=typeof WeakSet=="function"?WeakSet:Set,Xt=null;function Iy(t,e){if(t=t.containerInfo,hf=Ku,t=ks(t),Gi(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break t}var i=0,c=-1,s=-1,v=0,A=0,z=t,b=null;e:for(;;){for(var x;z!==l||n!==0&&z.nodeType!==3||(c=i+n),z!==u||a!==0&&z.nodeType!==3||(s=i+a),z.nodeType===3&&(i+=z.nodeValue.length),(x=z.firstChild)!==null;)b=z,z=x;for(;;){if(z===t)break e;if(b===l&&++v===n&&(c=i),b===u&&++A===a&&(s=i),(x=z.nextSibling)!==null)break;z=b,b=z.parentNode}z=x}l=c===-1||s===-1?null:{start:c,end:s}}else l=null}l=l||{start:0,end:0}}else l=null;for(yf={focusedElem:t,selectionRange:l},Ku=!1,Xt=e;Xt!==null;)if(e=Xt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Xt=t;else for(;Xt!==null;){switch(e=Xt,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,l=e,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var B=Zl(l.type,n);t=a.getSnapshotBeforeUpdate(B,u),a.__reactInternalSnapshotBeforeUpdate=t}catch(X){yt(l,l.return,X)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)vf(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":vf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,Xt=t;break}Xt=e.return}}function Gr(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Fe(t,l),a&4&&mn(5,l);break;case 1:if(Fe(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(i){yt(l,l.return,i)}else{var n=Zl(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(i){yt(l,l.return,i)}}a&64&&jr(l),a&512&&vn(l,l.return);break;case 3:if(Fe(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{Ao(t,e)}catch(i){yt(l,l.return,i)}}break;case 27:e===null&&a&4&&Br(l);case 26:case 5:Fe(t,l),e===null&&a&4&&Nr(l),a&512&&vn(l,l.return);break;case 12:Fe(t,l);break;case 31:Fe(t,l),a&4&&Lr(t,l);break;case 13:Fe(t,l),a&4&&Xr(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=cg.bind(null,l),_g(t,l))));break;case 22:if(a=l.memoizedState!==null||We,!a){e=e!==null&&e.memoizedState!==null||qt,n=We;var u=qt;We=a,(qt=e)&&!u?Ie(t,l,(l.subtreeFlags&8772)!==0):Fe(t,l),We=n,qt=u}break;case 30:break;default:Fe(t,l)}}function Yr(t){var e=t.alternate;e!==null&&(t.alternate=null,Yr(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&xi(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var _t=null,le=!1;function $e(t,e,l){for(l=l.child;l!==null;)wr(t,e,l),l=l.sibling}function wr(t,e,l){if(se&&typeof se.onCommitFiberUnmount=="function")try{se.onCommitFiberUnmount(wa,l)}catch{}switch(l.tag){case 26:qt||He(l,e),$e(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:qt||He(l,e);var a=_t,n=le;xl(l.type)&&(_t=l.stateNode,le=!1),$e(t,e,l),Mn(l.stateNode),_t=a,le=n;break;case 5:qt||He(l,e);case 6:if(a=_t,n=le,_t=null,$e(t,e,l),_t=a,le=n,_t!==null)if(le)try{(_t.nodeType===9?_t.body:_t.nodeName==="HTML"?_t.ownerDocument.body:_t).removeChild(l.stateNode)}catch(u){yt(l,e,u)}else try{_t.removeChild(l.stateNode)}catch(u){yt(l,e,u)}break;case 18:_t!==null&&(le?(t=_t,jd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Ua(t)):jd(_t,l.stateNode));break;case 4:a=_t,n=le,_t=l.stateNode.containerInfo,le=!0,$e(t,e,l),_t=a,le=n;break;case 0:case 11:case 14:case 15:yl(2,l,e),qt||yl(4,l,e),$e(t,e,l);break;case 1:qt||(He(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Rr(l,e,a)),$e(t,e,l);break;case 21:$e(t,e,l);break;case 22:qt=(a=qt)||l.memoizedState!==null,$e(t,e,l),qt=a;break;default:$e(t,e,l)}}function Lr(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ua(t)}catch(l){yt(e,e.return,l)}}}function Xr(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ua(t)}catch(l){yt(e,e.return,l)}}function Py(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new qr),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new qr),e;default:throw Error(o(435,t.tag))}}function Mu(t,e){var l=Py(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=fg.bind(null,t,a);a.then(n,n)}})}function ae(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=t,i=e,c=i;t:for(;c!==null;){switch(c.tag){case 27:if(xl(c.type)){_t=c.stateNode,le=!1;break t}break;case 5:_t=c.stateNode,le=!1;break t;case 3:case 4:_t=c.stateNode.containerInfo,le=!0;break t}c=c.return}if(_t===null)throw Error(o(160));wr(u,i,n),_t=null,le=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Vr(e,t),e=e.sibling}var De=null;function Vr(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ae(e,t),ne(t),a&4&&(yl(3,t,t.return),mn(3,t),yl(5,t,t.return));break;case 1:ae(e,t),ne(t),a&512&&(qt||l===null||He(l,l.return)),a&64&&We&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=De;if(ae(e,t),ne(t),a&512&&(qt||l===null||He(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Va]||u[Vt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Jt(u,a,l),u[Vt]=t,Lt(u),a=u;break t;case"link":var i=Vd("link","href",n).get(a+(l.href||""));if(i){for(var c=0;c<i.length;c++)if(u=i[c],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){i.splice(c,1);break e}}u=n.createElement(a),Jt(u,a,l),n.head.appendChild(u);break;case"meta":if(i=Vd("meta","content",n).get(a+(l.content||""))){for(c=0;c<i.length;c++)if(u=i[c],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){i.splice(c,1);break e}}u=n.createElement(a),Jt(u,a,l),n.head.appendChild(u);break;default:throw Error(o(468,a))}u[Vt]=t,Lt(u),a=u}t.stateNode=a}else Qd(n,t.type,t.stateNode);else t.stateNode=Xd(n,a,t.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Qd(n,t.type,t.stateNode):Xd(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Xc(t,t.memoizedProps,l.memoizedProps)}break;case 27:ae(e,t),ne(t),a&512&&(qt||l===null||He(l,l.return)),l!==null&&a&4&&Xc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(ae(e,t),ne(t),a&512&&(qt||l===null||He(l,l.return)),t.flags&32){n=t.stateNode;try{ta(n,"")}catch(B){yt(t,t.return,B)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,Xc(t,n,l!==null?l.memoizedProps:n)),a&1024&&(Zc=!0);break;case 6:if(ae(e,t),ne(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(B){yt(t,t.return,B)}}break;case 3:if(Xu=null,n=De,De=wu(e.containerInfo),ae(e,t),De=n,ne(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ua(e.containerInfo)}catch(B){yt(t,t.return,B)}Zc&&(Zc=!1,Qr(t));break;case 4:a=De,De=wu(t.stateNode.containerInfo),ae(e,t),ne(t),De=a;break;case 12:ae(e,t),ne(t);break;case 31:ae(e,t),ne(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Mu(t,a)));break;case 13:ae(e,t),ne(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Cu=fe()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Mu(t,a)));break;case 22:n=t.memoizedState!==null;var s=l!==null&&l.memoizedState!==null,v=We,A=qt;if(We=v||n,qt=A||s,ae(e,t),qt=A,We=v,ne(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||s||We||qt||Kl(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){s=l=e;try{if(u=s.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{c=s.stateNode;var z=s.memoizedProps.style,b=z!=null&&z.hasOwnProperty("display")?z.display:null;c.style.display=b==null||typeof b=="boolean"?"":(""+b).trim()}}catch(B){yt(s,s.return,B)}}}else if(e.tag===6){if(l===null){s=e;try{s.stateNode.nodeValue=n?"":s.memoizedProps}catch(B){yt(s,s.return,B)}}}else if(e.tag===18){if(l===null){s=e;try{var x=s.stateNode;n?Rd(x,!0):Rd(s.stateNode,!1)}catch(B){yt(s,s.return,B)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Mu(t,l))));break;case 19:ae(e,t),ne(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Mu(t,a)));break;case 30:break;case 21:break;default:ae(e,t),ne(t)}}function ne(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(Hr(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,u=Vc(t);Eu(t,u,n);break;case 5:var i=l.stateNode;l.flags&32&&(ta(i,""),l.flags&=-33);var c=Vc(t);Eu(t,c,i);break;case 3:case 4:var s=l.stateNode.containerInfo,v=Vc(t);Qc(t,v,s);break;default:throw Error(o(161))}}catch(A){yt(t,t.return,A)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Qr(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Qr(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Fe(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Gr(t,e.alternate,e),e=e.sibling}function Kl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:yl(4,e,e.return),Kl(e);break;case 1:He(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&Rr(e,e.return,l),Kl(e);break;case 27:Mn(e.stateNode);case 26:case 5:He(e,e.return),Kl(e);break;case 22:e.memoizedState===null&&Kl(e);break;case 30:Kl(e);break;default:Kl(e)}t=t.sibling}}function Ie(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,u=e,i=u.flags;switch(u.tag){case 0:case 11:case 15:Ie(n,u,l),mn(4,u);break;case 1:if(Ie(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(v){yt(a,a.return,v)}if(a=u,n=a.updateQueue,n!==null){var c=a.stateNode;try{var s=n.shared.hiddenCallbacks;if(s!==null)for(n.shared.hiddenCallbacks=null,n=0;n<s.length;n++)xo(s[n],c)}catch(v){yt(a,a.return,v)}}l&&i&64&&jr(u),vn(u,u.return);break;case 27:Br(u);case 26:case 5:Ie(n,u,l),l&&a===null&&i&4&&Nr(u),vn(u,u.return);break;case 12:Ie(n,u,l);break;case 31:Ie(n,u,l),l&&i&4&&Lr(n,u);break;case 13:Ie(n,u,l),l&&i&4&&Xr(n,u);break;case 22:u.memoizedState===null&&Ie(n,u,l),vn(u,u.return);break;case 30:break;default:Ie(n,u,l)}e=e.sibling}}function Kc(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&ln(l))}function Jc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ln(t))}function Ue(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zr(t,e,l,a),e=e.sibling}function Zr(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Ue(t,e,l,a),n&2048&&mn(9,e);break;case 1:Ue(t,e,l,a);break;case 3:Ue(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ln(t)));break;case 12:if(n&2048){Ue(t,e,l,a),t=e.stateNode;try{var u=e.memoizedProps,i=u.id,c=u.onPostCommit;typeof c=="function"&&c(i,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(s){yt(e,e.return,s)}}else Ue(t,e,l,a);break;case 31:Ue(t,e,l,a);break;case 13:Ue(t,e,l,a);break;case 23:break;case 22:u=e.stateNode,i=e.alternate,e.memoizedState!==null?u._visibility&2?Ue(t,e,l,a):pn(t,e):u._visibility&2?Ue(t,e,l,a):(u._visibility|=2,Sa(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&Kc(i,e);break;case 24:Ue(t,e,l,a),n&2048&&Jc(e.alternate,e);break;default:Ue(t,e,l,a)}}function Sa(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,i=e,c=l,s=a,v=i.flags;switch(i.tag){case 0:case 11:case 15:Sa(u,i,c,s,n),mn(8,i);break;case 23:break;case 22:var A=i.stateNode;i.memoizedState!==null?A._visibility&2?Sa(u,i,c,s,n):pn(u,i):(A._visibility|=2,Sa(u,i,c,s,n)),n&&v&2048&&Kc(i.alternate,i);break;case 24:Sa(u,i,c,s,n),n&&v&2048&&Jc(i.alternate,i);break;default:Sa(u,i,c,s,n)}e=e.sibling}}function pn(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:pn(l,a),n&2048&&Kc(a.alternate,a);break;case 24:pn(l,a),n&2048&&Jc(a.alternate,a);break;default:pn(l,a)}e=e.sibling}}var bn=8192;function xa(t,e,l){if(t.subtreeFlags&bn)for(t=t.child;t!==null;)Kr(t,e,l),t=t.sibling}function Kr(t,e,l){switch(t.tag){case 26:xa(t,e,l),t.flags&bn&&t.memoizedState!==null&&Yg(l,De,t.memoizedState,t.memoizedProps);break;case 5:xa(t,e,l);break;case 3:case 4:var a=De;De=wu(t.stateNode.containerInfo),xa(t,e,l),De=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=bn,bn=16777216,xa(t,e,l),bn=a):xa(t,e,l));break;default:xa(t,e,l)}}function Jr(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Sn(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Xt=a,Wr(a,t)}Jr(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kr(t),t=t.sibling}function kr(t){switch(t.tag){case 0:case 11:case 15:Sn(t),t.flags&2048&&yl(9,t,t.return);break;case 3:Sn(t);break;case 12:Sn(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,_u(t)):Sn(t);break;default:Sn(t)}}function _u(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Xt=a,Wr(a,t)}Jr(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:yl(8,e,e.return),_u(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,_u(e));break;default:_u(e)}t=t.sibling}}function Wr(t,e){for(;Xt!==null;){var l=Xt;switch(l.tag){case 0:case 11:case 15:yl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ln(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Xt=a;else t:for(l=t;Xt!==null;){a=Xt;var n=a.sibling,u=a.return;if(Yr(a),a===l){Xt=null;break t}if(n!==null){n.return=u,Xt=n;break t}Xt=u}}}var tg={getCacheForType:function(t){var e=Zt(Nt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return Zt(Nt).controller.signal}},eg=typeof WeakMap=="function"?WeakMap:Map,ot=0,St=null,P=null,lt=0,ht=0,ge=null,gl=!1,Aa=!1,kc=!1,Pe=0,Dt=0,ml=0,Jl=0,Wc=0,me=0,Ta=0,xn=null,ue=null,$c=!1,Cu=0,$r=0,Ou=1/0,Du=null,vl=null,wt=0,pl=null,za=null,tl=0,Fc=0,Ic=null,Fr=null,An=0,Pc=null;function ve(){return(ot&2)!==0&&lt!==0?lt&-lt:_.T!==null?uf():ds()}function Ir(){if(me===0)if((lt&536870912)===0||nt){var t=Gn;Gn<<=1,(Gn&3932160)===0&&(Gn=262144),me=t}else me=536870912;return t=he.current,t!==null&&(t.flags|=32),me}function ie(t,e,l){(t===St&&(ht===2||ht===9)||t.cancelPendingCommit!==null)&&(Ea(t,0),bl(t,lt,me,!1)),Xa(t,l),((ot&2)===0||t!==St)&&(t===St&&((ot&2)===0&&(Jl|=l),Dt===4&&bl(t,lt,me,!1)),Be(t))}function Pr(t,e,l){if((ot&6)!==0)throw Error(o(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||La(t,e),n=a?ng(t,e):ef(t,e,!0),u=a;do{if(n===0){Aa&&!a&&bl(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!lg(l)){n=ef(t,e,!1),u=!1;continue}if(n===2){if(u=e,t.errorRecoveryDisabledLanes&u)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){e=i;t:{var c=t;n=xn;var s=c.current.memoizedState.isDehydrated;if(s&&(Ea(c,i).flags|=256),i=ef(c,i,!1),i!==2){if(kc&&!s){c.errorRecoveryDisabledLanes|=u,Jl|=u,n=4;break t}u=ue,ue=n,u!==null&&(ue===null?ue=u:ue.push.apply(ue,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){Ea(t,0),bl(t,e,0,!0);break}t:{switch(a=t,u=n,u){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:bl(a,e,me,!gl);break t;case 2:ue=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(n=Cu+300-fe(),10<n)){if(bl(a,e,me,!gl),wn(a,0,!0)!==0)break t;tl=e,a.timeoutHandle=Dd(td.bind(null,a,l,ue,Du,$c,e,me,Jl,Ta,gl,u,"Throttled",-0,0),n);break t}td(a,l,ue,Du,$c,e,me,Jl,Ta,gl,u,null,-0,0)}}break}while(!0);Be(t)}function td(t,e,l,a,n,u,i,c,s,v,A,z,b,x){if(t.timeoutHandle=-1,z=e.subtreeFlags,z&8192||(z&16785408)===16785408){z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ye},Kr(e,u,z);var B=(u&62914560)===u?Cu-fe():(u&4194048)===u?$r-fe():0;if(B=wg(z,B),B!==null){tl=u,t.cancelPendingCommit=B(fd.bind(null,t,e,u,l,a,n,i,c,s,A,z,null,b,x)),bl(t,u,i,!v);return}}fd(t,e,u,l,a,n,i,c,s)}function lg(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!re(u(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function bl(t,e,l,a){e&=~Wc,e&=~Jl,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var u=31-oe(n),i=1<<u;a[u]=-1,n&=~i}l!==0&&ss(t,l,e)}function Uu(){return(ot&6)===0?(Tn(0),!1):!0}function tf(){if(P!==null){if(ht===0)var t=P.return;else t=P,Ve=Gl=null,mc(t),ga=null,nn=0,t=P;for(;t!==null;)Ur(t.alternate,t),t=t.return;P=null}}function Ea(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Ag(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),tl=0,tf(),St=t,P=l=Le(t.current,null),lt=e,ht=0,ge=null,gl=!1,Aa=La(t,e),kc=!1,Ta=me=Wc=Jl=ml=Dt=0,ue=xn=null,$c=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-oe(a),u=1<<n;e|=t[n],a&=~u}return Pe=e,In(),l}function ed(t,e){k=null,_.H=hn,e===ya||e===iu?(e=vo(),ht=3):e===nc?(e=vo(),ht=4):ht=e===jc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,ge=e,P===null&&(Dt=1,Su(t,Ae(e,t.current)))}function ld(){var t=he.current;return t===null?!0:(lt&4194048)===lt?Me===null:(lt&62914560)===lt||(lt&536870912)!==0?t===Me:!1}function ad(){var t=_.H;return _.H=hn,t===null?hn:t}function nd(){var t=_.A;return _.A=tg,t}function ju(){Dt=4,gl||(lt&4194048)!==lt&&he.current!==null||(Aa=!0),(ml&134217727)===0&&(Jl&134217727)===0||St===null||bl(St,lt,me,!1)}function ef(t,e,l){var a=ot;ot|=2;var n=ad(),u=nd();(St!==t||lt!==e)&&(Du=null,Ea(t,e)),e=!1;var i=Dt;t:do try{if(ht!==0&&P!==null){var c=P,s=ge;switch(ht){case 8:tf(),i=6;break t;case 3:case 2:case 9:case 6:he.current===null&&(e=!0);var v=ht;if(ht=0,ge=null,Ma(t,c,s,v),l&&Aa){i=0;break t}break;default:v=ht,ht=0,ge=null,Ma(t,c,s,v)}}ag(),i=Dt;break}catch(A){ed(t,A)}while(!0);return e&&t.shellSuspendCounter++,Ve=Gl=null,ot=a,_.H=n,_.A=u,P===null&&(St=null,lt=0,In()),i}function ag(){for(;P!==null;)ud(P)}function ng(t,e){var l=ot;ot|=2;var a=ad(),n=nd();St!==t||lt!==e?(Du=null,Ou=fe()+500,Ea(t,e)):Aa=La(t,e);t:do try{if(ht!==0&&P!==null){e=P;var u=ge;e:switch(ht){case 1:ht=0,ge=null,Ma(t,e,u,1);break;case 2:case 9:if(go(u)){ht=0,ge=null,id(e);break}e=function(){ht!==2&&ht!==9||St!==t||(ht=7),Be(t)},u.then(e,e);break t;case 3:ht=7;break t;case 4:ht=5;break t;case 7:go(u)?(ht=0,ge=null,id(e)):(ht=0,ge=null,Ma(t,e,u,7));break;case 5:var i=null;switch(P.tag){case 26:i=P.memoizedState;case 5:case 27:var c=P;if(i?Zd(i):c.stateNode.complete){ht=0,ge=null;var s=c.sibling;if(s!==null)P=s;else{var v=c.return;v!==null?(P=v,Ru(v)):P=null}break e}}ht=0,ge=null,Ma(t,e,u,5);break;case 6:ht=0,ge=null,Ma(t,e,u,6);break;case 8:tf(),Dt=6;break t;default:throw Error(o(462))}}ug();break}catch(A){ed(t,A)}while(!0);return Ve=Gl=null,_.H=a,_.A=n,ot=l,P!==null?0:(St=null,lt=0,In(),Dt)}function ug(){for(;P!==null&&!Ch();)ud(P)}function ud(t){var e=Or(t.alternate,t,Pe);t.memoizedProps=t.pendingProps,e===null?Ru(t):P=e}function id(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=Tr(l,e,e.pendingProps,e.type,void 0,lt);break;case 11:e=Tr(l,e,e.pendingProps,e.type.render,e.ref,lt);break;case 5:mc(e);default:Ur(l,e),e=P=ao(e,Pe),e=Or(l,e,Pe)}t.memoizedProps=t.pendingProps,e===null?Ru(t):P=e}function Ma(t,e,l,a){Ve=Gl=null,mc(e),ga=null,nn=0;var n=e.return;try{if(Jy(t,n,e,l,lt)){Dt=1,Su(t,Ae(l,t.current)),P=null;return}}catch(u){if(n!==null)throw P=n,u;Dt=1,Su(t,Ae(l,t.current)),P=null;return}e.flags&32768?(nt||a===1?t=!0:Aa||(lt&536870912)!==0?t=!1:(gl=t=!0,(a===2||a===9||a===3||a===6)&&(a=he.current,a!==null&&a.tag===13&&(a.flags|=16384))),cd(e,t)):Ru(e)}function Ru(t){var e=t;do{if((e.flags&32768)!==0){cd(e,gl);return}t=e.return;var l=$y(e.alternate,e,Pe);if(l!==null){P=l;return}if(e=e.sibling,e!==null){P=e;return}P=e=t}while(e!==null);Dt===0&&(Dt=5)}function cd(t,e){do{var l=Fy(t.alternate,t);if(l!==null){l.flags&=32767,P=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){P=t;return}P=t=l}while(t!==null);Dt=6,P=null}function fd(t,e,l,a,n,u,i,c,s){t.cancelPendingCommit=null;do Nu();while(wt!==0);if((ot&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(u=e.lanes|e.childLanes,u|=Vi,Gh(t,l,u,i,c,s),t===St&&(P=St=null,lt=0),za=e,pl=t,tl=l,Fc=u,Ic=n,Fr=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,sg(Bn,function(){return hd(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=_.T,_.T=null,n=O.p,O.p=2,i=ot,ot|=4;try{Iy(t,e,l)}finally{ot=i,O.p=n,_.T=a}}wt=1,sd(),od(),rd()}}function sd(){if(wt===1){wt=0;var t=pl,e=za,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=_.T,_.T=null;var a=O.p;O.p=2;var n=ot;ot|=4;try{Vr(e,t);var u=yf,i=ks(t.containerInfo),c=u.focusedElem,s=u.selectionRange;if(i!==c&&c&&c.ownerDocument&&Js(c.ownerDocument.documentElement,c)){if(s!==null&&Gi(c)){var v=s.start,A=s.end;if(A===void 0&&(A=v),"selectionStart"in c)c.selectionStart=v,c.selectionEnd=Math.min(A,c.value.length);else{var z=c.ownerDocument||document,b=z&&z.defaultView||window;if(b.getSelection){var x=b.getSelection(),B=c.textContent.length,X=Math.min(s.start,B),pt=s.end===void 0?X:Math.min(s.end,B);!x.extend&&X>pt&&(i=pt,pt=X,X=i);var h=Ks(c,X),r=Ks(c,pt);if(h&&r&&(x.rangeCount!==1||x.anchorNode!==h.node||x.anchorOffset!==h.offset||x.focusNode!==r.node||x.focusOffset!==r.offset)){var m=z.createRange();m.setStart(h.node,h.offset),x.removeAllRanges(),X>pt?(x.addRange(m),x.extend(r.node,r.offset)):(m.setEnd(r.node,r.offset),x.addRange(m))}}}}for(z=[],x=c;x=x.parentNode;)x.nodeType===1&&z.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<z.length;c++){var T=z[c];T.element.scrollLeft=T.left,T.element.scrollTop=T.top}}Ku=!!hf,yf=hf=null}finally{ot=n,O.p=a,_.T=l}}t.current=e,wt=2}}function od(){if(wt===2){wt=0;var t=pl,e=za,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=_.T,_.T=null;var a=O.p;O.p=2;var n=ot;ot|=4;try{Gr(t,e.alternate,e)}finally{ot=n,O.p=a,_.T=l}}wt=3}}function rd(){if(wt===4||wt===3){wt=0,Oh();var t=pl,e=za,l=tl,a=Fr;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?wt=5:(wt=0,za=pl=null,dd(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(vl=null),bi(l),e=e.stateNode,se&&typeof se.onCommitFiberRoot=="function")try{se.onCommitFiberRoot(wa,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=_.T,n=O.p,O.p=2,_.T=null;try{for(var u=t.onRecoverableError,i=0;i<a.length;i++){var c=a[i];u(c.value,{componentStack:c.stack})}}finally{_.T=e,O.p=n}}(tl&3)!==0&&Nu(),Be(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===Pc?An++:(An=0,Pc=t):An=0,Tn(0)}}function dd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ln(e)))}function Nu(){return sd(),od(),rd(),hd()}function hd(){if(wt!==5)return!1;var t=pl,e=Fc;Fc=0;var l=bi(tl),a=_.T,n=O.p;try{O.p=32>l?32:l,_.T=null,l=Ic,Ic=null;var u=pl,i=tl;if(wt=0,za=pl=null,tl=0,(ot&6)!==0)throw Error(o(331));var c=ot;if(ot|=4,kr(u.current),Zr(u,u.current,i,l),ot=c,Tn(0,!1),se&&typeof se.onPostCommitFiberRoot=="function")try{se.onPostCommitFiberRoot(wa,u)}catch{}return!0}finally{O.p=n,_.T=a,dd(t,e)}}function yd(t,e,l){e=Ae(l,e),e=Uc(t.stateNode,e,2),t=rl(t,e,2),t!==null&&(Xa(t,2),Be(t))}function yt(t,e,l){if(t.tag===3)yd(t,t,l);else for(;e!==null;){if(e.tag===3){yd(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(vl===null||!vl.has(a))){t=Ae(l,t),l=gr(2),a=rl(e,l,2),a!==null&&(mr(l,a,e,t),Xa(a,2),Be(a));break}}e=e.return}}function lf(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new eg;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(kc=!0,n.add(l),t=ig.bind(null,t,e,l),e.then(t,t))}function ig(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,St===t&&(lt&l)===l&&(Dt===4||Dt===3&&(lt&62914560)===lt&&300>fe()-Cu?(ot&2)===0&&Ea(t,0):Wc|=l,Ta===lt&&(Ta=0)),Be(t)}function gd(t,e){e===0&&(e=fs()),t=Hl(t,e),t!==null&&(Xa(t,e),Be(t))}function cg(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),gd(t,l)}function fg(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),gd(t,l)}function sg(t,e){return gi(t,e)}var Hu=null,_a=null,af=!1,Bu=!1,nf=!1,Sl=0;function Be(t){t!==_a&&t.next===null&&(_a===null?Hu=_a=t:_a=_a.next=t),Bu=!0,af||(af=!0,rg())}function Tn(t,e){if(!nf&&Bu){nf=!0;do for(var l=!1,a=Hu;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,c=a.pingedLanes;u=(1<<31-oe(42|t)+1)-1,u&=n&~(i&~c),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,bd(a,u))}else u=lt,u=wn(a,a===St?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||La(a,u)||(l=!0,bd(a,u));a=a.next}while(l);nf=!1}}function og(){md()}function md(){Bu=af=!1;var t=0;Sl!==0&&xg()&&(t=Sl);for(var e=fe(),l=null,a=Hu;a!==null;){var n=a.next,u=vd(a,e);u===0?(a.next=null,l===null?Hu=n:l.next=n,n===null&&(_a=l)):(l=a,(t!==0||(u&3)!==0)&&(Bu=!0)),a=n}wt!==0&&wt!==5||Tn(t),Sl!==0&&(Sl=0)}function vd(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var i=31-oe(u),c=1<<i,s=n[i];s===-1?((c&l)===0||(c&a)!==0)&&(n[i]=qh(c,e)):s<=e&&(t.expiredLanes|=c),u&=~c}if(e=St,l=lt,l=wn(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(ht===2||ht===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&mi(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||La(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&mi(a),bi(l)){case 2:case 8:l=is;break;case 32:l=Bn;break;case 268435456:l=cs;break;default:l=Bn}return a=pd.bind(null,t),l=gi(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&mi(a),t.callbackPriority=2,t.callbackNode=null,2}function pd(t,e){if(wt!==0&&wt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Nu()&&t.callbackNode!==l)return null;var a=lt;return a=wn(t,t===St?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(Pr(t,a,e),vd(t,fe()),t.callbackNode!=null&&t.callbackNode===l?pd.bind(null,t):null)}function bd(t,e){if(Nu())return null;Pr(t,e,!0)}function rg(){Tg(function(){(ot&6)!==0?gi(us,og):md()})}function uf(){if(Sl===0){var t=da;t===0&&(t=qn,qn<<=1,(qn&261888)===0&&(qn=256)),Sl=t}return Sl}function Sd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Qn(""+t)}function xd(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function dg(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var u=Sd((n[te]||null).action),i=a.submitter;i&&(e=(e=i[te]||null)?Sd(e.formAction):i.getAttribute("formAction"),e!==null&&(u=e,i=null));var c=new kn("action","action",null,a,n);t.push({event:c,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Sl!==0){var s=i?xd(n,i):new FormData(n);Ec(l,{pending:!0,data:s,method:n.method,action:u},null,s)}}else typeof u=="function"&&(c.preventDefault(),s=i?xd(n,i):new FormData(n),Ec(l,{pending:!0,data:s,method:n.method,action:u},u,s))},currentTarget:n}]})}}for(var cf=0;cf<Xi.length;cf++){var ff=Xi[cf],hg=ff.toLowerCase(),yg=ff[0].toUpperCase()+ff.slice(1);Oe(hg,"on"+yg)}Oe(Fs,"onAnimationEnd"),Oe(Is,"onAnimationIteration"),Oe(Ps,"onAnimationStart"),Oe("dblclick","onDoubleClick"),Oe("focusin","onFocus"),Oe("focusout","onBlur"),Oe(Dy,"onTransitionRun"),Oe(Uy,"onTransitionStart"),Oe(jy,"onTransitionCancel"),Oe(to,"onTransitionEnd"),Il("onMouseEnter",["mouseout","mouseover"]),Il("onMouseLeave",["mouseout","mouseover"]),Il("onPointerEnter",["pointerout","pointerover"]),Il("onPointerLeave",["pointerout","pointerover"]),Ul("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ul("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ul("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ul("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ul("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ul("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zn="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(" "),gg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zn));function Ad(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var u=void 0;if(e)for(var i=a.length-1;0<=i;i--){var c=a[i],s=c.instance,v=c.currentTarget;if(c=c.listener,s!==u&&n.isPropagationStopped())break t;u=c,n.currentTarget=v;try{u(n)}catch(A){Fn(A)}n.currentTarget=null,u=s}else for(i=0;i<a.length;i++){if(c=a[i],s=c.instance,v=c.currentTarget,c=c.listener,s!==u&&n.isPropagationStopped())break t;u=c,n.currentTarget=v;try{u(n)}catch(A){Fn(A)}n.currentTarget=null,u=s}}}}function tt(t,e){var l=e[Si];l===void 0&&(l=e[Si]=new Set);var a=t+"__bubble";l.has(a)||(Td(e,t,2,!1),l.add(a))}function sf(t,e,l){var a=0;e&&(a|=4),Td(l,t,a,e)}var qu="_reactListening"+Math.random().toString(36).slice(2);function of(t){if(!t[qu]){t[qu]=!0,gs.forEach(function(l){l!=="selectionchange"&&(gg.has(l)||sf(l,!1,t),sf(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[qu]||(e[qu]=!0,sf("selectionchange",!1,e))}}function Td(t,e,l,a){switch(Id(e)){case 2:var n=Vg;break;case 8:n=Qg;break;default:n=Ef}l=n.bind(null,e,l,t),n=void 0,!Oi||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function rf(t,e,l,a,n){var u=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var c=a.stateNode.containerInfo;if(c===n)break;if(i===4)for(i=a.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;c!==null;){if(i=Wl(c),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){a=u=i;continue t}c=c.parentNode}}a=a.return}_s(function(){var v=u,A=_i(l),z=[];t:{var b=eo.get(t);if(b!==void 0){var x=kn,B=t;switch(t){case"keypress":if(Kn(l)===0)break t;case"keydown":case"keyup":x=fy;break;case"focusin":B="focus",x=Ri;break;case"focusout":B="blur",x=Ri;break;case"beforeblur":case"afterblur":x=Ri;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=Ds;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=$h;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=ry;break;case Fs:case Is:case Ps:x=Ph;break;case to:x=hy;break;case"scroll":case"scrollend":x=kh;break;case"wheel":x=gy;break;case"copy":case"cut":case"paste":x=ey;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=js;break;case"toggle":case"beforetoggle":x=vy}var X=(e&4)!==0,pt=!X&&(t==="scroll"||t==="scrollend"),h=X?b!==null?b+"Capture":null:b;X=[];for(var r=v,m;r!==null;){var T=r;if(m=T.stateNode,T=T.tag,T!==5&&T!==26&&T!==27||m===null||h===null||(T=Za(r,h),T!=null&&X.push(En(r,T,m))),pt)break;r=r.return}0<X.length&&(b=new x(b,B,null,l,A),z.push({event:b,listeners:X}))}}if((e&7)===0){t:{if(b=t==="mouseover"||t==="pointerover",x=t==="mouseout"||t==="pointerout",b&&l!==Mi&&(B=l.relatedTarget||l.fromElement)&&(Wl(B)||B[kl]))break t;if((x||b)&&(b=A.window===A?A:(b=A.ownerDocument)?b.defaultView||b.parentWindow:window,x?(B=l.relatedTarget||l.toElement,x=v,B=B?Wl(B):null,B!==null&&(pt=H(B),X=B.tag,B!==pt||X!==5&&X!==27&&X!==6)&&(B=null)):(x=null,B=v),x!==B)){if(X=Ds,T="onMouseLeave",h="onMouseEnter",r="mouse",(t==="pointerout"||t==="pointerover")&&(X=js,T="onPointerLeave",h="onPointerEnter",r="pointer"),pt=x==null?b:Qa(x),m=B==null?b:Qa(B),b=new X(T,r+"leave",x,l,A),b.target=pt,b.relatedTarget=m,T=null,Wl(A)===v&&(X=new X(h,r+"enter",B,l,A),X.target=m,X.relatedTarget=pt,T=X),pt=T,x&&B)e:{for(X=mg,h=x,r=B,m=0,T=h;T;T=X(T))m++;T=0;for(var L=r;L;L=X(L))T++;for(;0<m-T;)h=X(h),m--;for(;0<T-m;)r=X(r),T--;for(;m--;){if(h===r||r!==null&&h===r.alternate){X=h;break e}h=X(h),r=X(r)}X=null}else X=null;x!==null&&zd(z,b,x,X,!1),B!==null&&pt!==null&&zd(z,pt,B,X,!0)}}t:{if(b=v?Qa(v):window,x=b.nodeName&&b.nodeName.toLowerCase(),x==="select"||x==="input"&&b.type==="file")var ct=ws;else if(Gs(b))if(Ls)ct=_y;else{ct=Ey;var q=zy}else x=b.nodeName,!x||x.toLowerCase()!=="input"||b.type!=="checkbox"&&b.type!=="radio"?v&&Ei(v.elementType)&&(ct=ws):ct=My;if(ct&&(ct=ct(t,v))){Ys(z,ct,l,A);break t}q&&q(t,b,v),t==="focusout"&&v&&b.type==="number"&&v.memoizedProps.value!=null&&zi(b,"number",b.value)}switch(q=v?Qa(v):window,t){case"focusin":(Gs(q)||q.contentEditable==="true")&&(na=q,Yi=v,Pa=null);break;case"focusout":Pa=Yi=na=null;break;case"mousedown":wi=!0;break;case"contextmenu":case"mouseup":case"dragend":wi=!1,Ws(z,l,A);break;case"selectionchange":if(Oy)break;case"keydown":case"keyup":Ws(z,l,A)}var W;if(Hi)t:{switch(t){case"compositionstart":var at="onCompositionStart";break t;case"compositionend":at="onCompositionEnd";break t;case"compositionupdate":at="onCompositionUpdate";break t}at=void 0}else aa?Bs(t,l)&&(at="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(at="onCompositionStart");at&&(Rs&&l.locale!=="ko"&&(aa||at!=="onCompositionStart"?at==="onCompositionEnd"&&aa&&(W=Cs()):(nl=A,Di="value"in nl?nl.value:nl.textContent,aa=!0)),q=Gu(v,at),0<q.length&&(at=new Us(at,t,null,l,A),z.push({event:at,listeners:q}),W?at.data=W:(W=qs(l),W!==null&&(at.data=W)))),(W=by?Sy(t,l):xy(t,l))&&(at=Gu(v,"onBeforeInput"),0<at.length&&(q=new Us("onBeforeInput","beforeinput",null,l,A),z.push({event:q,listeners:at}),q.data=W)),dg(z,t,v,l,A)}Ad(z,e)})}function En(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Gu(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Za(t,l),n!=null&&a.unshift(En(t,n,u)),n=Za(t,e),n!=null&&a.push(En(t,n,u))),t.tag===3)return a;t=t.return}return[]}function mg(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function zd(t,e,l,a,n){for(var u=e._reactName,i=[];l!==null&&l!==a;){var c=l,s=c.alternate,v=c.stateNode;if(c=c.tag,s!==null&&s===a)break;c!==5&&c!==26&&c!==27||v===null||(s=v,n?(v=Za(l,u),v!=null&&i.unshift(En(l,v,s))):n||(v=Za(l,u),v!=null&&i.push(En(l,v,s)))),l=l.return}i.length!==0&&t.push({event:e,listeners:i})}var vg=/\r\n?/g,pg=/\u0000|\uFFFD/g;function Ed(t){return(typeof t=="string"?t:""+t).replace(vg,`
294
- `).replace(pg,"")}function Md(t,e){return e=Ed(e),Ed(t)===e}function vt(t,e,l,a,n,u){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||ta(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&ta(t,""+a);break;case"className":Xn(t,"class",a);break;case"tabIndex":Xn(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Xn(t,l,a);break;case"style":Es(t,a,u);break;case"data":if(e!=="object"){Xn(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Qn(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.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 u=="function"&&(l==="formAction"?(e!=="input"&&vt(t,e,"name",n.name,n,null),vt(t,e,"formEncType",n.formEncType,n,null),vt(t,e,"formMethod",n.formMethod,n,null),vt(t,e,"formTarget",n.formTarget,n,null)):(vt(t,e,"encType",n.encType,n,null),vt(t,e,"method",n.method,n,null),vt(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Qn(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=Ye);break;case"onScroll":a!=null&&tt("scroll",t);break;case"onScrollEnd":a!=null&&tt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=Qn(""+a),t.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":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.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":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":tt("beforetoggle",t),tt("toggle",t),Ln(t,"popover",a);break;case"xlinkActuate":Ge(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ge(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ge(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ge(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ge(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ge(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ge(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ge(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ge(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ln(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Kh.get(l)||l,Ln(t,l,a))}}function df(t,e,l,a,n,u){switch(l){case"style":Es(t,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=l}}break;case"children":typeof a=="string"?ta(t,a):(typeof a=="number"||typeof a=="bigint")&&ta(t,""+a);break;case"onScroll":a!=null&&tt("scroll",t);break;case"onScrollEnd":a!=null&&tt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Ye);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ms.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),u=t[te]||null,u=u!=null?u[l]:null,typeof u=="function"&&t.removeEventListener(e,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):Ln(t,l,a)}}}function Jt(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":tt("error",t),tt("load",t);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:vt(t,e,u,i,l,null)}}n&&vt(t,e,"srcSet",l.srcSet,l,null),a&&vt(t,e,"src",l.src,l,null);return;case"input":tt("invalid",t);var c=u=i=n=null,s=null,v=null;for(a in l)if(l.hasOwnProperty(a)){var A=l[a];if(A!=null)switch(a){case"name":n=A;break;case"type":i=A;break;case"checked":s=A;break;case"defaultChecked":v=A;break;case"value":u=A;break;case"defaultValue":c=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,e));break;default:vt(t,e,a,A,l,null)}}xs(t,u,c,s,v,i,n,!1);return;case"select":tt("invalid",t),a=i=u=null;for(n in l)if(l.hasOwnProperty(n)&&(c=l[n],c!=null))switch(n){case"value":u=c;break;case"defaultValue":i=c;break;case"multiple":a=c;default:vt(t,e,n,c,l,null)}e=u,l=i,t.multiple=!!a,e!=null?Pl(t,!!a,e,!1):l!=null&&Pl(t,!!a,l,!0);return;case"textarea":tt("invalid",t),u=n=a=null;for(i in l)if(l.hasOwnProperty(i)&&(c=l[i],c!=null))switch(i){case"value":a=c;break;case"defaultValue":n=c;break;case"children":u=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:vt(t,e,i,c,l,null)}Ts(t,a,n,u);return;case"option":for(s in l)l.hasOwnProperty(s)&&(a=l[s],a!=null)&&(s==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":vt(t,e,s,a,l,null));return;case"dialog":tt("beforetoggle",t),tt("toggle",t),tt("cancel",t),tt("close",t);break;case"iframe":case"object":tt("load",t);break;case"video":case"audio":for(a=0;a<zn.length;a++)tt(zn[a],t);break;case"image":tt("error",t),tt("load",t);break;case"details":tt("toggle",t);break;case"embed":case"source":case"link":tt("error",t),tt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(v in l)if(l.hasOwnProperty(v)&&(a=l[v],a!=null))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:vt(t,e,v,a,l,null)}return;default:if(Ei(e)){for(A in l)l.hasOwnProperty(A)&&(a=l[A],a!==void 0&&df(t,e,A,a,l,void 0));return}}for(c in l)l.hasOwnProperty(c)&&(a=l[c],a!=null&&vt(t,e,c,a,l,null))}function bg(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,c=null,s=null,v=null,A=null;for(x in l){var z=l[x];if(l.hasOwnProperty(x)&&z!=null)switch(x){case"checked":break;case"value":break;case"defaultValue":s=z;default:a.hasOwnProperty(x)||vt(t,e,x,null,a,z)}}for(var b in a){var x=a[b];if(z=l[b],a.hasOwnProperty(b)&&(x!=null||z!=null))switch(b){case"type":u=x;break;case"name":n=x;break;case"checked":v=x;break;case"defaultChecked":A=x;break;case"value":i=x;break;case"defaultValue":c=x;break;case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(o(137,e));break;default:x!==z&&vt(t,e,b,x,a,z)}}Ti(t,i,c,s,v,A,u,n);return;case"select":x=i=c=b=null;for(u in l)if(s=l[u],l.hasOwnProperty(u)&&s!=null)switch(u){case"value":break;case"multiple":x=s;default:a.hasOwnProperty(u)||vt(t,e,u,null,a,s)}for(n in a)if(u=a[n],s=l[n],a.hasOwnProperty(n)&&(u!=null||s!=null))switch(n){case"value":b=u;break;case"defaultValue":c=u;break;case"multiple":i=u;default:u!==s&&vt(t,e,n,u,a,s)}e=c,l=i,a=x,b!=null?Pl(t,!!l,b,!1):!!a!=!!l&&(e!=null?Pl(t,!!l,e,!0):Pl(t,!!l,l?[]:"",!1));return;case"textarea":x=b=null;for(c in l)if(n=l[c],l.hasOwnProperty(c)&&n!=null&&!a.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:vt(t,e,c,null,a,n)}for(i in a)if(n=a[i],u=l[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":b=n;break;case"defaultValue":x=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&vt(t,e,i,n,a,u)}As(t,b,x);return;case"option":for(var B in l)b=l[B],l.hasOwnProperty(B)&&b!=null&&!a.hasOwnProperty(B)&&(B==="selected"?t.selected=!1:vt(t,e,B,null,a,b));for(s in a)b=a[s],x=l[s],a.hasOwnProperty(s)&&b!==x&&(b!=null||x!=null)&&(s==="selected"?t.selected=b&&typeof b!="function"&&typeof b!="symbol":vt(t,e,s,b,a,x));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 X in l)b=l[X],l.hasOwnProperty(X)&&b!=null&&!a.hasOwnProperty(X)&&vt(t,e,X,null,a,b);for(v in a)if(b=a[v],x=l[v],a.hasOwnProperty(v)&&b!==x&&(b!=null||x!=null))switch(v){case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(137,e));break;default:vt(t,e,v,b,a,x)}return;default:if(Ei(e)){for(var pt in l)b=l[pt],l.hasOwnProperty(pt)&&b!==void 0&&!a.hasOwnProperty(pt)&&df(t,e,pt,void 0,a,b);for(A in a)b=a[A],x=l[A],!a.hasOwnProperty(A)||b===x||b===void 0&&x===void 0||df(t,e,A,b,a,x);return}}for(var h in l)b=l[h],l.hasOwnProperty(h)&&b!=null&&!a.hasOwnProperty(h)&&vt(t,e,h,null,a,b);for(z in a)b=a[z],x=l[z],!a.hasOwnProperty(z)||b===x||b==null&&x==null||vt(t,e,z,b,a,x)}function _d(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Sg(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,i=n.initiatorType,c=n.duration;if(u&&c&&_d(i)){for(i=0,c=n.responseEnd,a+=1;a<l.length;a++){var s=l[a],v=s.startTime;if(v>c)break;var A=s.transferSize,z=s.initiatorType;A&&_d(z)&&(s=s.responseEnd,i+=A*(s<c?1:(c-v)/(s-v)))}if(--a,e+=8*(u+i)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var hf=null,yf=null;function Yu(t){return t.nodeType===9?t:t.ownerDocument}function Cd(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Od(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function gf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var mf=null;function xg(){var t=window.event;return t&&t.type==="popstate"?t===mf?!1:(mf=t,!0):(mf=null,!1)}var Dd=typeof setTimeout=="function"?setTimeout:void 0,Ag=typeof clearTimeout=="function"?clearTimeout:void 0,Ud=typeof Promise=="function"?Promise:void 0,Tg=typeof queueMicrotask=="function"?queueMicrotask:typeof Ud<"u"?function(t){return Ud.resolve(null).then(t).catch(zg)}:Dd;function zg(t){setTimeout(function(){throw t})}function xl(t){return t==="head"}function jd(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),Ua(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Mn(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Mn(l);for(var u=l.firstChild;u;){var i=u.nextSibling,c=u.nodeName;u[Va]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&Mn(t.ownerDocument.body);l=n}while(l);Ua(e)}function Rd(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function vf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":vf(l),xi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function Eg(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Va])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=_e(t.nextSibling),t===null)break}return null}function Mg(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=_e(t.nextSibling),t===null))return null;return t}function Nd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=_e(t.nextSibling),t===null))return null;return t}function pf(t){return t.data==="$?"||t.data==="$~"}function bf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function _g(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function _e(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Sf=null;function Hd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return _e(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function Bd(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function qd(t,e,l){switch(e=Yu(l),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function Mn(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);xi(t)}var Ce=new Map,Gd=new Set;function wu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var el=O.d;O.d={f:Cg,r:Og,D:Dg,C:Ug,L:jg,m:Rg,X:Hg,S:Ng,M:Bg};function Cg(){var t=el.f(),e=Uu();return t||e}function Og(t){var e=$l(t);e!==null&&e.tag===5&&e.type==="form"?er(e):el.r(t)}var Ca=typeof document>"u"?null:document;function Yd(t,e,l){var a=Ca;if(a&&typeof e=="string"&&e){var n=Se(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Gd.has(n)||(Gd.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),Jt(e,"link",t),Lt(e),a.head.appendChild(e)))}}function Dg(t){el.D(t),Yd("dns-prefetch",t,null)}function Ug(t,e){el.C(t,e),Yd("preconnect",t,e)}function jg(t,e,l){el.L(t,e,l);var a=Ca;if(a&&t&&e){var n='link[rel="preload"][as="'+Se(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Se(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Se(l.imageSizes)+'"]')):n+='[href="'+Se(t)+'"]';var u=n;switch(e){case"style":u=Oa(t);break;case"script":u=Da(t)}Ce.has(u)||(t=R({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Ce.set(u,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(_n(u))||e==="script"&&a.querySelector(Cn(u))||(e=a.createElement("link"),Jt(e,"link",t),Lt(e),a.head.appendChild(e)))}}function Rg(t,e){el.m(t,e);var l=Ca;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+Se(a)+'"][href="'+Se(t)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Da(t)}if(!Ce.has(u)&&(t=R({rel:"modulepreload",href:t},e),Ce.set(u,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Cn(u)))return}a=l.createElement("link"),Jt(a,"link",t),Lt(a),l.head.appendChild(a)}}}function Ng(t,e,l){el.S(t,e,l);var a=Ca;if(a&&t){var n=Fl(a).hoistableStyles,u=Oa(t);e=e||"default";var i=n.get(u);if(!i){var c={loading:0,preload:null};if(i=a.querySelector(_n(u)))c.loading=5;else{t=R({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Ce.get(u))&&xf(t,l);var s=i=a.createElement("link");Lt(s),Jt(s,"link",t),s._p=new Promise(function(v,A){s.onload=v,s.onerror=A}),s.addEventListener("load",function(){c.loading|=1}),s.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Lu(i,e,a)}i={type:"stylesheet",instance:i,count:1,state:c},n.set(u,i)}}}function Hg(t,e){el.X(t,e);var l=Ca;if(l&&t){var a=Fl(l).hoistableScripts,n=Da(t),u=a.get(n);u||(u=l.querySelector(Cn(n)),u||(t=R({src:t,async:!0},e),(e=Ce.get(n))&&Af(t,e),u=l.createElement("script"),Lt(u),Jt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Bg(t,e){el.M(t,e);var l=Ca;if(l&&t){var a=Fl(l).hoistableScripts,n=Da(t),u=a.get(n);u||(u=l.querySelector(Cn(n)),u||(t=R({src:t,async:!0,type:"module"},e),(e=Ce.get(n))&&Af(t,e),u=l.createElement("script"),Lt(u),Jt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function wd(t,e,l,a){var n=(n=I.current)?wu(n):null;if(!n)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Oa(l.href),l=Fl(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Oa(l.href);var u=Fl(n).hoistableStyles,i=u.get(t);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,i),(u=n.querySelector(_n(t)))&&!u._p&&(i.instance=u,i.state.loading=5),Ce.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ce.set(t,l),u||qg(n,t,l,i.state))),e&&a===null)throw Error(o(528,""));return i}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Da(l),l=Fl(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Oa(t){return'href="'+Se(t)+'"'}function _n(t){return'link[rel="stylesheet"]['+t+"]"}function Ld(t){return R({},t,{"data-precedence":t.precedence,precedence:null})}function qg(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Jt(e,"link",l),Lt(e),t.head.appendChild(e))}function Da(t){return'[src="'+Se(t)+'"]'}function Cn(t){return"script[async]"+t}function Xd(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Se(l.href)+'"]');if(a)return e.instance=a,Lt(a),a;var n=R({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Lt(a),Jt(a,"style",n),Lu(a,l.precedence,t),e.instance=a;case"stylesheet":n=Oa(l.href);var u=t.querySelector(_n(n));if(u)return e.state.loading|=4,e.instance=u,Lt(u),u;a=Ld(l),(n=Ce.get(n))&&xf(a,n),u=(t.ownerDocument||t).createElement("link"),Lt(u);var i=u;return i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),Jt(u,"link",a),e.state.loading|=4,Lu(u,l.precedence,t),e.instance=u;case"script":return u=Da(l.src),(n=t.querySelector(Cn(u)))?(e.instance=n,Lt(n),n):(a=l,(n=Ce.get(u))&&(a=R({},l),Af(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Lt(n),Jt(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Lu(a,l.precedence,t));return e.instance}function Lu(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var c=a[i];if(c.dataset.precedence===e)u=c;else if(u!==n)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function xf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Af(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Xu=null;function Vd(t,e,l){if(Xu===null){var a=new Map,n=Xu=new Map;n.set(l,a)}else n=Xu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var u=l[n];if(!(u[Va]||u[Vt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(e)||"";i=t+i;var c=a.get(i);c?c.push(u):a.set(i,[u])}}return a}function Qd(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function Gg(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Zd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Yg(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Oa(a.href),u=e.querySelector(_n(n));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Vu.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=u,Lt(u);return}u=e.ownerDocument||e,a=Ld(a),(n=Ce.get(n))&&xf(a,n),u=u.createElement("link"),Lt(u);var i=u;i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),Jt(u,"link",a),l.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Vu.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Tf=0;function wg(t,e){return t.stylesheets&&t.count===0&&Zu(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&Zu(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Tf===0&&(Tf=62500*Sg());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Zu(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Tf?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Vu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Qu=null;function Zu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Qu=new Map,e.forEach(Lg,t),Qu=null,Vu.call(t))}function Lg(t,e){if(!(e.state.loading&4)){var l=Qu.get(t);if(l)var a=l.get(null);else{l=new Map,Qu.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),a=i)}a&&l.set(null,a)}n=e.instance,i=n.getAttribute("data-precedence"),u=l.get(i)||a,u===a&&l.set(null,n),l.set(i,n),this.count++,a=Vu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var On={$$typeof:xt,Provider:null,Consumer:null,_currentValue:it,_currentValue2:it,_threadCount:0};function Xg(t,e,l,a,n,u,i,c,s){this.tag=1,this.containerInfo=t,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=vi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vi(0),this.hiddenUpdates=vi(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function Kd(t,e,l,a,n,u,i,c,s,v,A,z){return t=new Xg(t,e,l,i,s,v,A,z,c),e=1,u===!0&&(e|=24),u=de(3,null,null,e),t.current=u,u.stateNode=t,e=ec(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:e},uc(u),t}function Jd(t){return t?(t=ca,t):ca}function kd(t,e,l,a,n,u){n=Jd(n),a.context===null?a.context=n:a.pendingContext=n,a=ol(e),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=rl(t,a,e),l!==null&&(ie(l,t,e),cn(l,t,e))}function Wd(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function zf(t,e){Wd(t,e),(t=t.alternate)&&Wd(t,e)}function $d(t){if(t.tag===13||t.tag===31){var e=Hl(t,67108864);e!==null&&ie(e,t,67108864),zf(t,67108864)}}function Fd(t){if(t.tag===13||t.tag===31){var e=ve();e=pi(e);var l=Hl(t,e);l!==null&&ie(l,t,e),zf(t,e)}}var Ku=!0;function Vg(t,e,l,a){var n=_.T;_.T=null;var u=O.p;try{O.p=2,Ef(t,e,l,a)}finally{O.p=u,_.T=n}}function Qg(t,e,l,a){var n=_.T;_.T=null;var u=O.p;try{O.p=8,Ef(t,e,l,a)}finally{O.p=u,_.T=n}}function Ef(t,e,l,a){if(Ku){var n=Mf(a);if(n===null)rf(t,e,a,Ju,l),Pd(t,a);else if(Kg(n,t,e,l,a))a.stopPropagation();else if(Pd(t,a),e&4&&-1<Zg.indexOf(t)){for(;n!==null;){var u=$l(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Dl(u.pendingLanes);if(i!==0){var c=u;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var s=1<<31-oe(i);c.entanglements[1]|=s,i&=~s}Be(u),(ot&6)===0&&(Ou=fe()+500,Tn(0))}}break;case 31:case 13:c=Hl(u,2),c!==null&&ie(c,u,2),Uu(),zf(u,2)}if(u=Mf(a),u===null&&rf(t,e,a,Ju,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else rf(t,e,a,null,l)}}function Mf(t){return t=_i(t),_f(t)}var Ju=null;function _f(t){if(Ju=null,t=Wl(t),t!==null){var e=H(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=Q(e),t!==null)return t;t=null}else if(l===31){if(t=U(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Ju=t,null}function Id(t){switch(t){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(Dh()){case us:return 2;case is:return 8;case Bn:case Uh:return 32;case cs:return 268435456;default:return 32}default:return 32}}var Cf=!1,Al=null,Tl=null,zl=null,Dn=new Map,Un=new Map,El=[],Zg="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 Pd(t,e){switch(t){case"focusin":case"focusout":Al=null;break;case"dragenter":case"dragleave":Tl=null;break;case"mouseover":case"mouseout":zl=null;break;case"pointerover":case"pointerout":Dn.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Un.delete(e.pointerId)}}function jn(t,e,l,a,n,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},e!==null&&(e=$l(e),e!==null&&$d(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function Kg(t,e,l,a,n){switch(e){case"focusin":return Al=jn(Al,t,e,l,a,n),!0;case"dragenter":return Tl=jn(Tl,t,e,l,a,n),!0;case"mouseover":return zl=jn(zl,t,e,l,a,n),!0;case"pointerover":var u=n.pointerId;return Dn.set(u,jn(Dn.get(u)||null,t,e,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Un.set(u,jn(Un.get(u)||null,t,e,l,a,n)),!0}return!1}function th(t){var e=Wl(t.target);if(e!==null){var l=H(e);if(l!==null){if(e=l.tag,e===13){if(e=Q(l),e!==null){t.blockedOn=e,hs(t.priority,function(){Fd(l)});return}}else if(e===31){if(e=U(l),e!==null){t.blockedOn=e,hs(t.priority,function(){Fd(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ku(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Mf(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Mi=a,l.target.dispatchEvent(a),Mi=null}else return e=$l(l),e!==null&&$d(e),t.blockedOn=l,!1;e.shift()}return!0}function eh(t,e,l){ku(t)&&l.delete(e)}function Jg(){Cf=!1,Al!==null&&ku(Al)&&(Al=null),Tl!==null&&ku(Tl)&&(Tl=null),zl!==null&&ku(zl)&&(zl=null),Dn.forEach(eh),Un.forEach(eh)}function Wu(t,e){t.blockedOn===e&&(t.blockedOn=null,Cf||(Cf=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,Jg)))}var $u=null;function lh(t){$u!==t&&($u=t,f.unstable_scheduleCallback(f.unstable_NormalPriority,function(){$u===t&&($u=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(_f(a||l)===null)continue;break}var u=$l(l);u!==null&&(t.splice(e,3),e-=3,Ec(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ua(t){function e(s){return Wu(s,t)}Al!==null&&Wu(Al,t),Tl!==null&&Wu(Tl,t),zl!==null&&Wu(zl,t),Dn.forEach(e),Un.forEach(e);for(var l=0;l<El.length;l++){var a=El[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<El.length&&(l=El[0],l.blockedOn===null);)th(l),l.blockedOn===null&&El.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],i=n[te]||null;if(typeof u=="function")i||lh(l);else if(i){var c=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[te]||null)c=i.formAction;else if(_f(n)!==null)continue}else c=i.action;typeof c=="function"?l[a+1]=c:(l.splice(a,3),a-=3),lh(l)}}}function ah(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function Of(t){this._internalRoot=t}Fu.prototype.render=Of.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var l=e.current,a=ve();kd(l,a,t,e,null,null)},Fu.prototype.unmount=Of.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;kd(t.current,2,null,t,null,null),Uu(),e[kl]=null}};function Fu(t){this._internalRoot=t}Fu.prototype.unstable_scheduleHydration=function(t){if(t){var e=ds();t={blockedOn:null,target:t,priority:e};for(var l=0;l<El.length&&e!==0&&e<El[l].priority;l++);El.splice(l,0,t),l===0&&th(t)}};var nh=y.version;if(nh!=="19.2.4")throw Error(o(527,nh,"19.2.4"));O.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=G(e),t=t!==null?D(t):null,t=t===null?null:t.stateNode,t};var kg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Iu.isDisabled&&Iu.supportsFiber)try{wa=Iu.inject(kg),se=Iu}catch{}}return qa.createRoot=function(t,e){if(!C(t))throw Error(o(299));var l=!1,a="",n=rr,u=dr,i=hr;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=Kd(t,1,!1,null,null,l,a,null,n,u,i,ah),t[kl]=e.current,of(t),new Of(e)},qa.hydrateRoot=function(t,e,l){if(!C(t))throw Error(o(299));var a=!1,n="",u=rr,i=dr,c=hr,s=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(c=l.onRecoverableError),l.formState!==void 0&&(s=l.formState)),e=Kd(t,1,!0,e,l??null,a,n,s,u,i,c,ah),e.context=Jd(null),l=e.current,a=ve(),a=pi(a),n=ol(a),n.callback=null,rl(l,n,a),l=a,e.current.lanes=l,Xa(e,l),Be(e),t[kl]=e.current,of(t),new Fu(e)},qa.version="19.2.4",qa}var es;function Eh(){if(es)return ci.exports;es=1;function g(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(g)}catch(f){console.error(f)}}return g(),ci.exports=zh(),ci.exports}var ls=Eh();let qe=null,_l=null;const Cl=new Map,Ga={init(g){if(!g.publishableKey&&!g.apiKey&&!g.authToken)return console.error("[GlydeChat] Authentication required: provide publishableKey, apiKey, or authToken"),null;const f=g.theme==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":g.theme||"light";Ha(f),qe&&_l&&(qe.unmount(),_l.remove(),qe=null,_l=null);const y=document.createElement("div");y.id="glyde-chat-widget",y.className="glyde-widget-root",document.body.appendChild(y),_l=y;const M=ls.createRoot(y);return qe=M,M.render(Rn.createElement(Ba,{...g,initialExpanded:!1})),console.log("[GlydeChat] Widget initialized with unityBaseUrl:",g.unityBaseUrl),{destroy(){Ga.destroy()},update(o){qe&&qe.render(Rn.createElement(Ba,{...g,...o}))}}},destroy(){qe&&_l&&(qe.unmount(),_l.remove(),qe=null,_l=null,console.log("[GlydeChat] Widget destroyed")),Cl.forEach(({root:g},f)=>{g.unmount(),Cl.delete(f)})},render(g,f){const y=typeof g=="string"?document.querySelector(g):g;if(!y)return console.error("[GlydeChat] Container not found:",g),null;const M=typeof g=="string"?g:y.id||`glyde-render-${Date.now()}`;if(Cl.has(M)){const H=Cl.get(M);H&&(H.root.unmount(),Cl.delete(M))}const o=f.theme==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":f.theme||"light";Ha(o);const C=ls.createRoot(y);return Cl.set(M,{root:C,container:y}),C.render(Rn.createElement(Ba,{...f,container:y})),console.log("[GlydeChat] Widget rendered in container:",M),{destroy(){C.unmount(),Cl.delete(M),y.innerHTML="",console.log("[GlydeChat] Rendered widget destroyed")},update(H){C.render(Rn.createElement(Ba,{...f,...H,container:y}))}}},isReady(){return!0},get version(){return"__SDK_VERSION__"}};function Mh(){const g=document.querySelectorAll('script[src*="glyde-chat"]'),f=g[g.length-1];if(!f){console.log("[GlydeChat] No script tag found for auto-init");return}const y=f.getAttribute("data-auto-init");if(y==="false"){console.log('[GlydeChat] Auto-init disabled via data-auto-init="false"');return}const M=f.getAttribute("data-publishable-key")||void 0,o=f.getAttribute("data-api-key")||void 0,C=f.getAttribute("data-auth-token")||void 0,H=M||o||C;if(!H&&!(y==="true")){console.log("[GlydeChat] Auto-init skipped: no authentication data attributes found. Call GlydeChat.init() manually.");return}if(!H){console.warn("[GlydeChat] Auto-init skipped: no authentication provided (publishableKey, apiKey, or authToken required)");return}const U=f.getAttribute("data-width"),S=f.getAttribute("data-height"),G=f.getAttribute("data-max-width"),D=f.getAttribute("data-max-height"),R=U||S||G||D?{width:U?isNaN(Number(U))?U:Number(U):void 0,height:S?isNaN(Number(S))?S:Number(S):void 0,maxWidth:G?isNaN(Number(G))?G:Number(G):void 0,maxHeight:D?isNaN(Number(D))?D:Number(D):void 0}:void 0,w={publishableKey:M,apiKey:o,authToken:C,contextId:f.getAttribute("data-context-id")||void 0,unityBaseUrl:f.getAttribute("data-unity-url")||"https://api.glydeunity.com",contextType:f.getAttribute("data-context-type")||"screening",defaultMode:f.getAttribute("data-default-mode")||"voice",position:f.getAttribute("data-position")||"bottom-right",theme:f.getAttribute("data-theme")||"light",allowModeSwitch:f.getAttribute("data-allow-mode-switch")!=="false",displayMode:f.getAttribute("data-display-mode")||"floating",dimensions:R,showHeader:f.getAttribute("data-show-header")!=="false",allowClose:f.getAttribute("data-allow-close")!=="false"};console.log("[GlydeChat] Auto-initializing with config:",{hasPublishableKey:!!w.publishableKey,hasApiKey:!!w.apiKey,hasAuthToken:!!w.authToken,contextId:w.contextId,defaultMode:w.defaultMode,displayMode:w.displayMode,position:w.position,theme:w.theme,dimensions:w.dimensions}),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Ga.init(w)):Ga.init(w)}typeof window<"u"&&(window.GlydeChat=Ga,Mh()),ut.ActivityIcon=Xf,ut.BotIcon=Lf,ut.ChatWidget=Ba,ut.GlydeChat=Ga,ut.GlydeText=Uf,ut.GlydeVoice=Df,ut.LoaderIcon=dh,ut.MessageIcon=Nn,ut.MicIcon=Na,ut.MicOffIcon=oh,ut.MinimizeIcon=Zf,ut.PhoneIcon=rh,ut.PhoneOffIcon=Gf,ut.SendIcon=Yf,ut.TextChat=ui,ut.UserIcon=wf,ut.VoiceChat=ni,ut.VolumeXIcon=Vf,ut.XIcon=Qf,ut.componentStyles=Ct,ut.getPositionStyles=Jf,ut.getThemeCSSVariables=li,ut.globalStyles=ai,ut.injectGlobalStyles=Ha,ut.themeColors=Kf,ut.updateTheme=hh,ut.useTextChat=Hf,ut.useVoiceAgent=Nf,Object.defineProperty(ut,Symbol.toStringTag,{value:"Module"})}));
321
+ `+a.stack}}var yi=Object.prototype.hasOwnProperty,gi=f.unstable_scheduleCallback,mi=f.unstable_cancelCallback,Oh=f.unstable_shouldYield,Dh=f.unstable_requestPaint,fe=f.unstable_now,Uh=f.unstable_getCurrentPriorityLevel,us=f.unstable_ImmediatePriority,is=f.unstable_UserBlockingPriority,qn=f.unstable_NormalPriority,jh=f.unstable_LowPriority,cs=f.unstable_IdlePriority,Rh=f.log,Nh=f.unstable_setDisableYieldValue,wa=null,se=null;function ll(t){if(typeof Rh=="function"&&Nh(t),se&&typeof se.setStrictMode=="function")try{se.setStrictMode(wa,t)}catch{}}var oe=Math.clz32?Math.clz32:qh,Hh=Math.log,Bh=Math.LN2;function qh(t){return t>>>=0,t===0?32:31-(Hh(t)/Bh|0)|0}var Gn=256,Yn=262144,wn=4194304;function Dl(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Ln(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,u=t.suspendedLanes,i=t.pingedLanes;t=t.warmLanes;var c=a&134217727;return c!==0?(a=c&~u,a!==0?n=Dl(a):(i&=c,i!==0?n=Dl(i):l||(l=c&~t,l!==0&&(n=Dl(l))))):(c=a&~u,c!==0?n=Dl(c):i!==0?n=Dl(i):l||(l=a&~t,l!==0&&(n=Dl(l)))),n===0?0:e!==0&&e!==n&&(e&u)===0&&(u=n&-n,l=e&-e,u>=l||u===32&&(l&4194048)!==0)?e:n}function La(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Gh(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 fs(){var t=wn;return wn<<=1,(wn&62914560)===0&&(wn=4194304),t}function vi(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Xa(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Yh(t,e,l,a,n,u){var i=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var c=t.entanglements,s=t.expirationTimes,p=t.hiddenUpdates;for(l=i&~l;0<l;){var A=31-oe(l),z=1<<A;c[A]=0,s[A]=-1;var b=p[A];if(b!==null)for(p[A]=null,A=0;A<b.length;A++){var x=b[A];x!==null&&(x.lane&=-536870913)}l&=~z}a!==0&&ss(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(i&~e))}function ss(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-oe(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function os(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-oe(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function rs(t,e){var l=e&-e;return l=(l&42)!==0?1:pi(l),(l&(t.suspendedLanes|e))!==0?0:l}function pi(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function bi(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ds(){var t=j.p;return t!==0?t:(t=window.event,t===void 0?32:Id(t.type))}function hs(t,e){var l=j.p;try{return j.p=t,e()}finally{j.p=l}}var al=Math.random().toString(36).slice(2),Zt="__reactFiber$"+al,te="__reactProps$"+al,kl="__reactContainer$"+al,Si="__reactEvents$"+al,wh="__reactListeners$"+al,Lh="__reactHandles$"+al,ys="__reactResources$"+al,Va="__reactMarker$"+al;function xi(t){delete t[Zt],delete t[te],delete t[Si],delete t[wh],delete t[Lh]}function Wl(t){var e=t[Zt];if(e)return e;for(var l=t.parentNode;l;){if(e=l[kl]||l[Zt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=Bd(t);t!==null;){if(l=t[Zt])return l;t=Bd(t)}return e}t=l,l=t.parentNode}return null}function $l(t){if(t=t[Zt]||t[kl]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Qa(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function Fl(t){var e=t[ys];return e||(e=t[ys]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Xt(t){t[Va]=!0}var gs=new Set,ms={};function Ul(t,e){Il(t,e),Il(t+"Capture",e)}function Il(t,e){for(ms[t]=e,t=0;t<e.length;t++)gs.add(e[t])}var Xh=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]*$"),vs={},ps={};function Vh(t){return yi.call(ps,t)?!0:yi.call(vs,t)?!1:Xh.test(t)?ps[t]=!0:(vs[t]=!0,!1)}function Xn(t,e,l){if(Vh(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Vn(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function Ge(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function be(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function bs(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Qh(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(i){l=""+i,u.call(this,i)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(i){l=""+i},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ai(t){if(!t._valueTracker){var e=bs(t)?"checked":"value";t._valueTracker=Qh(t,e,""+t[e])}}function Ss(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=bs(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function Qn(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Zh=/[\n"\\]/g;function Se(t){return t.replace(Zh,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ti(t,e,l,a,n,u,i,c){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),e!=null?i==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+be(e)):t.value!==""+be(e)&&(t.value=""+be(e)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),e!=null?zi(t,i,be(e)):l!=null?zi(t,i,be(l)):a!=null&&t.removeAttribute("value"),n==null&&u!=null&&(t.defaultChecked=!!u),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?t.name=""+be(c):t.removeAttribute("name")}function xs(t,e,l,a,n,u,i,c){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Ai(t);return}l=l!=null?""+be(l):"",e=e!=null?""+be(e):l,c||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=c?t.checked:!!a,t.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i),Ai(t)}function zi(t,e,l){e==="number"&&Qn(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function Pl(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+be(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function As(t,e,l){if(e!=null&&(e=""+be(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+be(l):""}function Ts(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(o(92));if(U(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=be(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),Ai(t)}function ta(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Kh=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 zs(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||Kh.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function Es(t,e,l){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&zs(t,n,a)}else for(var u in e)e.hasOwnProperty(u)&&zs(t,u,e[u])}function Ei(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Jh=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"]]),kh=/^[\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 Zn(t){return kh.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ye(){}var Mi=null;function _i(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ea=null,la=null;function Ms(t){var e=$l(t);if(e&&(t=e.stateNode)){var l=t[te]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ti(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Se(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[te]||null;if(!n)throw Error(o(90));Ti(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&Ss(a)}break t;case"textarea":As(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&Pl(t,!!l.multiple,e,!1)}}}var Ci=!1;function _s(t,e,l){if(Ci)return t(e,l);Ci=!0;try{var a=t(e);return a}finally{if(Ci=!1,(ea!==null||la!==null)&&(ju(),ea&&(e=ea,t=la,la=ea=null,Ms(e),t)))for(e=0;e<t.length;e++)Ms(t[e])}}function Za(t,e){var l=t.stateNode;if(l===null)return null;var a=l[te]||null;if(a===null)return null;l=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(o(231,e,typeof l));return l}var we=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oi=!1;if(we)try{var Ka={};Object.defineProperty(Ka,"passive",{get:function(){Oi=!0}}),window.addEventListener("test",Ka,Ka),window.removeEventListener("test",Ka,Ka)}catch{Oi=!1}var nl=null,Di=null,Kn=null;function Cs(){if(Kn)return Kn;var t,e=Di,l=e.length,a,n="value"in nl?nl.value:nl.textContent,u=n.length;for(t=0;t<l&&e[t]===n[t];t++);var i=l-t;for(a=1;a<=i&&e[l-a]===n[u-a];a++);return Kn=n.slice(t,1<a?1-a:void 0)}function Jn(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function kn(){return!0}function Os(){return!1}function ee(t){function e(l,a,n,u,i){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var c in t)t.hasOwnProperty(c)&&(l=t[c],this[c]=l?l(u):u[c]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?kn:Os,this.isPropagationStopped=Os,this}return H(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=kn)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=kn)},persist:function(){},isPersistent:kn}),e}var jl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wn=ee(jl),Ja=H({},jl,{view:0,detail:0}),Wh=ee(Ja),Ui,ji,ka,$n=H({},Ja,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ni,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ka&&(ka&&t.type==="mousemove"?(Ui=t.screenX-ka.screenX,ji=t.screenY-ka.screenY):ji=Ui=0,ka=t),Ui)},movementY:function(t){return"movementY"in t?t.movementY:ji}}),Ds=ee($n),$h=H({},$n,{dataTransfer:0}),Fh=ee($h),Ih=H({},Ja,{relatedTarget:0}),Ri=ee(Ih),Ph=H({},jl,{animationName:0,elapsedTime:0,pseudoElement:0}),ty=ee(Ph),ey=H({},jl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ly=ee(ey),ay=H({},jl,{data:0}),Us=ee(ay),ny={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uy={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"},iy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cy(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=iy[t])?!!e[t]:!1}function Ni(){return cy}var fy=H({},Ja,{key:function(t){if(t.key){var e=ny[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Jn(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?uy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ni,charCode:function(t){return t.type==="keypress"?Jn(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Jn(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),sy=ee(fy),oy=H({},$n,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),js=ee(oy),ry=H({},Ja,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ni}),dy=ee(ry),hy=H({},jl,{propertyName:0,elapsedTime:0,pseudoElement:0}),yy=ee(hy),gy=H({},$n,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),my=ee(gy),vy=H({},jl,{newState:0,oldState:0}),py=ee(vy),by=[9,13,27,32],Hi=we&&"CompositionEvent"in window,Wa=null;we&&"documentMode"in document&&(Wa=document.documentMode);var Sy=we&&"TextEvent"in window&&!Wa,Rs=we&&(!Hi||Wa&&8<Wa&&11>=Wa),Ns=" ",Hs=!1;function Bs(t,e){switch(t){case"keyup":return by.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qs(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var aa=!1;function xy(t,e){switch(t){case"compositionend":return qs(e);case"keypress":return e.which!==32?null:(Hs=!0,Ns);case"textInput":return t=e.data,t===Ns&&Hs?null:t;default:return null}}function Ay(t,e){if(aa)return t==="compositionend"||!Hi&&Bs(t,e)?(t=Cs(),Kn=Di=nl=null,aa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Rs&&e.locale!=="ko"?null:e.data;default:return null}}var Ty={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 Gs(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Ty[t.type]:e==="textarea"}function Ys(t,e,l,a){ea?la?la.push(a):la=[a]:ea=a,e=Yu(e,"onChange"),0<e.length&&(l=new Wn("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var $a=null,Fa=null;function zy(t){Ad(t,0)}function Fn(t){var e=Qa(t);if(Ss(e))return t}function ws(t,e){if(t==="change")return e}var Ls=!1;if(we){var Bi;if(we){var qi="oninput"in document;if(!qi){var Xs=document.createElement("div");Xs.setAttribute("oninput","return;"),qi=typeof Xs.oninput=="function"}Bi=qi}else Bi=!1;Ls=Bi&&(!document.documentMode||9<document.documentMode)}function Vs(){$a&&($a.detachEvent("onpropertychange",Qs),Fa=$a=null)}function Qs(t){if(t.propertyName==="value"&&Fn(Fa)){var e=[];Ys(e,Fa,t,_i(t)),_s(zy,e)}}function Ey(t,e,l){t==="focusin"?(Vs(),$a=e,Fa=l,$a.attachEvent("onpropertychange",Qs)):t==="focusout"&&Vs()}function My(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Fn(Fa)}function _y(t,e){if(t==="click")return Fn(e)}function Cy(t,e){if(t==="input"||t==="change")return Fn(e)}function Oy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var re=typeof Object.is=="function"?Object.is:Oy;function Ia(t,e){if(re(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!yi.call(e,n)||!re(t[n],e[n]))return!1}return!0}function Zs(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ks(t,e){var l=Zs(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Zs(l)}}function Js(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Js(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function ks(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Qn(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=Qn(t.document)}return e}function Gi(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Dy=we&&"documentMode"in document&&11>=document.documentMode,na=null,Yi=null,Pa=null,wi=!1;function Ws(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;wi||na==null||na!==Qn(a)||(a=na,"selectionStart"in a&&Gi(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Pa&&Ia(Pa,a)||(Pa=a,a=Yu(Yi,"onSelect"),0<a.length&&(e=new Wn("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=na)))}function Rl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var ua={animationend:Rl("Animation","AnimationEnd"),animationiteration:Rl("Animation","AnimationIteration"),animationstart:Rl("Animation","AnimationStart"),transitionrun:Rl("Transition","TransitionRun"),transitionstart:Rl("Transition","TransitionStart"),transitioncancel:Rl("Transition","TransitionCancel"),transitionend:Rl("Transition","TransitionEnd")},Li={},$s={};we&&($s=document.createElement("div").style,"AnimationEvent"in window||(delete ua.animationend.animation,delete ua.animationiteration.animation,delete ua.animationstart.animation),"TransitionEvent"in window||delete ua.transitionend.transition);function Nl(t){if(Li[t])return Li[t];if(!ua[t])return t;var e=ua[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in $s)return Li[t]=e[l];return t}var Fs=Nl("animationend"),Is=Nl("animationiteration"),Ps=Nl("animationstart"),Uy=Nl("transitionrun"),jy=Nl("transitionstart"),Ry=Nl("transitioncancel"),to=Nl("transitionend"),eo=new Map,Xi="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(" ");Xi.push("scrollEnd");function De(t,e){eo.set(t,e),Ul(e,[t])}var In=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof g=="object"&&typeof g.emit=="function"){g.emit("uncaughtException",t);return}console.error(t)},xe=[],ia=0,Vi=0;function Pn(){for(var t=ia,e=Vi=ia=0;e<t;){var l=xe[e];xe[e++]=null;var a=xe[e];xe[e++]=null;var n=xe[e];xe[e++]=null;var u=xe[e];if(xe[e++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&lo(l,n,u)}}function tu(t,e,l,a){xe[ia++]=t,xe[ia++]=e,xe[ia++]=l,xe[ia++]=a,Vi|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Qi(t,e,l,a){return tu(t,e,l,a),eu(t)}function Hl(t,e){return tu(t,null,null,e),eu(t)}function lo(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=t.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(n=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,n&&e!==null&&(n=31-oe(l),t=u.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),u):null}function eu(t){if(50<An)throw An=0,Pc=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ca={};function Ny(t,e,l,a){this.tag=t,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=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function de(t,e,l,a){return new Ny(t,e,l,a)}function Zi(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Le(t,e){var l=t.alternate;return l===null?(l=de(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function ao(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function lu(t,e,l,a,n,u){var i=0;if(a=t,typeof t=="function")Zi(t)&&(i=1);else if(typeof t=="string")i=Yg(t,l,Y.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Ot:return t=de(31,l,e,n),t.elementType=Ot,t.lanes=u,t;case $:return Bl(l.children,n,u,e);case bt:i=8,n|=24;break;case dt:return t=de(12,l,e,n|2),t.elementType=dt,t.lanes=u,t;case _t:return t=de(13,l,e,n),t.elementType=_t,t.lanes=u,t;case Ct:return t=de(19,l,e,n),t.elementType=Ct,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case ct:i=10;break t;case zt:i=9;break t;case X:i=11;break t;case at:i=14;break t;case wt:i=16,a=null;break t}i=29,l=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=de(i,l,e,n),e.elementType=t,e.type=a,e.lanes=u,e}function Bl(t,e,l,a){return t=de(7,t,a,e),t.lanes=l,t}function Ki(t,e,l){return t=de(6,t,null,e),t.lanes=l,t}function no(t){var e=de(18,null,null,0);return e.stateNode=t,e}function Ji(t,e,l){return e=de(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var uo=new WeakMap;function Ae(t,e){if(typeof t=="object"&&t!==null){var l=uo.get(t);return l!==void 0?l:(e={value:t,source:e,stack:ns(e)},uo.set(t,e),e)}return{value:t,source:e,stack:ns(e)}}var fa=[],sa=0,au=null,tn=0,Te=[],ze=0,ul=null,Re=1,Ne="";function Xe(t,e){fa[sa++]=tn,fa[sa++]=au,au=t,tn=e}function io(t,e,l){Te[ze++]=Re,Te[ze++]=Ne,Te[ze++]=ul,ul=t;var a=Re;t=Ne;var n=32-oe(a)-1;a&=~(1<<n),l+=1;var u=32-oe(e)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,Re=1<<32-oe(e)+n|l<<n|a,Ne=u+t}else Re=1<<u|l<<n|a,Ne=t}function ki(t){t.return!==null&&(Xe(t,1),io(t,1,0))}function Wi(t){for(;t===au;)au=fa[--sa],fa[sa]=null,tn=fa[--sa],fa[sa]=null;for(;t===ul;)ul=Te[--ze],Te[ze]=null,Ne=Te[--ze],Te[ze]=null,Re=Te[--ze],Te[ze]=null}function co(t,e){Te[ze++]=Re,Te[ze++]=Ne,Te[ze++]=ul,Re=e.id,Ne=e.overflow,ul=t}var Kt=null,At=null,it=!1,il=null,Ee=!1,$i=Error(o(519));function cl(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw en(Ae(e,t)),$i}function fo(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[Zt]=t,e[te]=a,l){case"dialog":lt("cancel",e),lt("close",e);break;case"iframe":case"object":case"embed":lt("load",e);break;case"video":case"audio":for(l=0;l<zn.length;l++)lt(zn[l],e);break;case"source":lt("error",e);break;case"img":case"image":case"link":lt("error",e),lt("load",e);break;case"details":lt("toggle",e);break;case"input":lt("invalid",e),xs(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":lt("invalid",e);break;case"textarea":lt("invalid",e),Ts(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||Md(e.textContent,l)?(a.popover!=null&&(lt("beforetoggle",e),lt("toggle",e)),a.onScroll!=null&&lt("scroll",e),a.onScrollEnd!=null&&lt("scrollend",e),a.onClick!=null&&(e.onclick=Ye),e=!0):e=!1,e||cl(t,!0)}function so(t){for(Kt=t.return;Kt;)switch(Kt.tag){case 5:case 31:case 13:Ee=!1;return;case 27:case 3:Ee=!0;return;default:Kt=Kt.return}}function oa(t){if(t!==Kt)return!1;if(!it)return so(t),it=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||gf(t.type,t.memoizedProps)),l=!l),l&&At&&cl(t),so(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));At=Hd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));At=Hd(t)}else e===27?(e=At,xl(t.type)?(t=Sf,Sf=null,At=t):At=e):At=Kt?_e(t.stateNode.nextSibling):null;return!0}function ql(){At=Kt=null,it=!1}function Fi(){var t=il;return t!==null&&(ue===null?ue=t:ue.push.apply(ue,t),il=null),t}function en(t){il===null?il=[t]:il.push(t)}var Ii=d(null),Gl=null,Ve=null;function fl(t,e,l){R(Ii,e._currentValue),e._currentValue=l}function Qe(t){t._currentValue=Ii.current,E(Ii)}function Pi(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function tc(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;t:for(;u!==null;){var c=u;u=n;for(var s=0;s<e.length;s++)if(c.context===e[s]){u.lanes|=l,c=u.alternate,c!==null&&(c.lanes|=l),Pi(u.return,l,t),a||(i=null);break t}u=c.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(o(341));i.lanes|=l,u=i.alternate,u!==null&&(u.lanes|=l),Pi(i,l,t),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===t){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function ra(t,e,l,a){t=null;for(var n=e,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(o(387));if(i=i.memoizedProps,i!==null){var c=n.type;re(n.pendingProps.value,i.value)||(t!==null?t.push(c):t=[c])}}else if(n===ht.current){if(i=n.alternate,i===null)throw Error(o(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(On):t=[On])}n=n.return}t!==null&&tc(e,t,l,a),e.flags|=262144}function nu(t){for(t=t.firstContext;t!==null;){if(!re(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Yl(t){Gl=t,Ve=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Jt(t){return oo(Gl,t)}function uu(t,e){return Gl===null&&Yl(t),oo(t,e)}function oo(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},Ve===null){if(t===null)throw Error(o(308));Ve=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Ve=Ve.next=e;return l}var Hy=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},By=f.unstable_scheduleCallback,qy=f.unstable_NormalPriority,Ht={$$typeof:ct,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ec(){return{controller:new Hy,data:new Map,refCount:0}}function ln(t){t.refCount--,t.refCount===0&&By(qy,function(){t.controller.abort()})}var an=null,lc=0,da=0,ha=null;function Gy(t,e){if(an===null){var l=an=[];lc=0,da=uf(),ha={status:"pending",value:void 0,then:function(a){l.push(a)}}}return lc++,e.then(ro,ro),e}function ro(){if(--lc===0&&an!==null){ha!==null&&(ha.status="fulfilled");var t=an;an=null,da=0,ha=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Yy(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var ho=_.S;_.S=function(t,e){$r=fe(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Gy(t,e),ho!==null&&ho(t,e)};var wl=d(null);function ac(){var t=wl.current;return t!==null?t:xt.pooledCache}function iu(t,e){e===null?R(wl,wl.current):R(wl,e.pool)}function yo(){var t=ac();return t===null?null:{parent:Ht._currentValue,pool:t}}var ya=Error(o(460)),nc=Error(o(474)),cu=Error(o(542)),fu={then:function(){}};function go(t){return t=t.status,t==="fulfilled"||t==="rejected"}function mo(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(Ye,Ye),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,po(t),t;default:if(typeof e.status=="string")e.then(Ye,Ye);else{if(t=xt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,po(t),t}throw Xl=e,ya}}function Ll(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Xl=l,ya):l}}var Xl=null;function vo(){if(Xl===null)throw Error(o(459));var t=Xl;return Xl=null,t}function po(t){if(t===ya||t===cu)throw Error(o(483))}var ga=null,nn=0;function su(t){var e=nn;return nn+=1,ga===null&&(ga=[]),mo(ga,t,e)}function un(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ou(t,e){throw e.$$typeof===w?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function bo(t){function e(y,r){if(t){var m=y.deletions;m===null?(y.deletions=[r],y.flags|=16):m.push(r)}}function l(y,r){if(!t)return null;for(;r!==null;)e(y,r),r=r.sibling;return null}function a(y){for(var r=new Map;y!==null;)y.key!==null?r.set(y.key,y):r.set(y.index,y),y=y.sibling;return r}function n(y,r){return y=Le(y,r),y.index=0,y.sibling=null,y}function u(y,r,m){return y.index=m,t?(m=y.alternate,m!==null?(m=m.index,m<r?(y.flags|=67108866,r):m):(y.flags|=67108866,r)):(y.flags|=1048576,r)}function i(y){return t&&y.alternate===null&&(y.flags|=67108866),y}function c(y,r,m,T){return r===null||r.tag!==6?(r=Ki(m,y.mode,T),r.return=y,r):(r=n(r,m),r.return=y,r)}function s(y,r,m,T){var L=m.type;return L===$?A(y,r,m.props.children,T,m.key):r!==null&&(r.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===wt&&Ll(L)===r.type)?(r=n(r,m.props),un(r,m),r.return=y,r):(r=lu(m.type,m.key,m.props,null,y.mode,T),un(r,m),r.return=y,r)}function p(y,r,m,T){return r===null||r.tag!==4||r.stateNode.containerInfo!==m.containerInfo||r.stateNode.implementation!==m.implementation?(r=Ji(m,y.mode,T),r.return=y,r):(r=n(r,m.children||[]),r.return=y,r)}function A(y,r,m,T,L){return r===null||r.tag!==7?(r=Bl(m,y.mode,T,L),r.return=y,r):(r=n(r,m),r.return=y,r)}function z(y,r,m){if(typeof r=="string"&&r!==""||typeof r=="number"||typeof r=="bigint")return r=Ki(""+r,y.mode,m),r.return=y,r;if(typeof r=="object"&&r!==null){switch(r.$$typeof){case F:return m=lu(r.type,r.key,r.props,null,y.mode,m),un(m,r),m.return=y,m;case I:return r=Ji(r,y.mode,m),r.return=y,r;case wt:return r=Ll(r),z(y,r,m)}if(U(r)||Qt(r))return r=Bl(r,y.mode,m,null),r.return=y,r;if(typeof r.then=="function")return z(y,su(r),m);if(r.$$typeof===ct)return z(y,uu(y,r),m);ou(y,r)}return null}function b(y,r,m,T){var L=r!==null?r.key:null;if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return L!==null?null:c(y,r,""+m,T);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case F:return m.key===L?s(y,r,m,T):null;case I:return m.key===L?p(y,r,m,T):null;case wt:return m=Ll(m),b(y,r,m,T)}if(U(m)||Qt(m))return L!==null?null:A(y,r,m,T,null);if(typeof m.then=="function")return b(y,r,su(m),T);if(m.$$typeof===ct)return b(y,r,uu(y,m),T);ou(y,m)}return null}function x(y,r,m,T,L){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return y=y.get(m)||null,c(r,y,""+T,L);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case F:return y=y.get(T.key===null?m:T.key)||null,s(r,y,T,L);case I:return y=y.get(T.key===null?m:T.key)||null,p(r,y,T,L);case wt:return T=Ll(T),x(y,r,m,T,L)}if(U(T)||Qt(T))return y=y.get(m)||null,A(r,y,T,L,null);if(typeof T.then=="function")return x(y,r,m,su(T),L);if(T.$$typeof===ct)return x(y,r,m,uu(r,T),L);ou(r,T)}return null}function B(y,r,m,T){for(var L=null,st=null,q=r,W=r=0,ut=null;q!==null&&W<m.length;W++){q.index>W?(ut=q,q=null):ut=q.sibling;var ot=b(y,q,m[W],T);if(ot===null){q===null&&(q=ut);break}t&&q&&ot.alternate===null&&e(y,q),r=u(ot,r,W),st===null?L=ot:st.sibling=ot,st=ot,q=ut}if(W===m.length)return l(y,q),it&&Xe(y,W),L;if(q===null){for(;W<m.length;W++)q=z(y,m[W],T),q!==null&&(r=u(q,r,W),st===null?L=q:st.sibling=q,st=q);return it&&Xe(y,W),L}for(q=a(q);W<m.length;W++)ut=x(q,y,W,m[W],T),ut!==null&&(t&&ut.alternate!==null&&q.delete(ut.key===null?W:ut.key),r=u(ut,r,W),st===null?L=ut:st.sibling=ut,st=ut);return t&&q.forEach(function(Ml){return e(y,Ml)}),it&&Xe(y,W),L}function V(y,r,m,T){if(m==null)throw Error(o(151));for(var L=null,st=null,q=r,W=r=0,ut=null,ot=m.next();q!==null&&!ot.done;W++,ot=m.next()){q.index>W?(ut=q,q=null):ut=q.sibling;var Ml=b(y,q,ot.value,T);if(Ml===null){q===null&&(q=ut);break}t&&q&&Ml.alternate===null&&e(y,q),r=u(Ml,r,W),st===null?L=Ml:st.sibling=Ml,st=Ml,q=ut}if(ot.done)return l(y,q),it&&Xe(y,W),L;if(q===null){for(;!ot.done;W++,ot=m.next())ot=z(y,ot.value,T),ot!==null&&(r=u(ot,r,W),st===null?L=ot:st.sibling=ot,st=ot);return it&&Xe(y,W),L}for(q=a(q);!ot.done;W++,ot=m.next())ot=x(q,y,W,ot.value,T),ot!==null&&(t&&ot.alternate!==null&&q.delete(ot.key===null?W:ot.key),r=u(ot,r,W),st===null?L=ot:st.sibling=ot,st=ot);return t&&q.forEach(function($g){return e(y,$g)}),it&&Xe(y,W),L}function pt(y,r,m,T){if(typeof m=="object"&&m!==null&&m.type===$&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case F:t:{for(var L=m.key;r!==null;){if(r.key===L){if(L=m.type,L===$){if(r.tag===7){l(y,r.sibling),T=n(r,m.props.children),T.return=y,y=T;break t}}else if(r.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===wt&&Ll(L)===r.type){l(y,r.sibling),T=n(r,m.props),un(T,m),T.return=y,y=T;break t}l(y,r);break}else e(y,r);r=r.sibling}m.type===$?(T=Bl(m.props.children,y.mode,T,m.key),T.return=y,y=T):(T=lu(m.type,m.key,m.props,null,y.mode,T),un(T,m),T.return=y,y=T)}return i(y);case I:t:{for(L=m.key;r!==null;){if(r.key===L)if(r.tag===4&&r.stateNode.containerInfo===m.containerInfo&&r.stateNode.implementation===m.implementation){l(y,r.sibling),T=n(r,m.children||[]),T.return=y,y=T;break t}else{l(y,r);break}else e(y,r);r=r.sibling}T=Ji(m,y.mode,T),T.return=y,y=T}return i(y);case wt:return m=Ll(m),pt(y,r,m,T)}if(U(m))return B(y,r,m,T);if(Qt(m)){if(L=Qt(m),typeof L!="function")throw Error(o(150));return m=L.call(m),V(y,r,m,T)}if(typeof m.then=="function")return pt(y,r,su(m),T);if(m.$$typeof===ct)return pt(y,r,uu(y,m),T);ou(y,m)}return typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint"?(m=""+m,r!==null&&r.tag===6?(l(y,r.sibling),T=n(r,m),T.return=y,y=T):(l(y,r),T=Ki(m,y.mode,T),T.return=y,y=T),i(y)):l(y,r)}return function(y,r,m,T){try{nn=0;var L=pt(y,r,m,T);return ga=null,L}catch(q){if(q===ya||q===cu)throw q;var st=de(29,q,null,y.mode);return st.lanes=T,st.return=y,st}}}var Vl=bo(!0),So=bo(!1),sl=!1;function uc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ic(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ol(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function rl(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(rt&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=eu(t),lo(t,null,l),e}return tu(t,a,e,l),eu(t)}function cn(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,os(t,l)}}function cc(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,l=l.next}while(l!==null);u===null?n=u=e:u=u.next=e}else n=u=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var fc=!1;function fn(){if(fc){var t=ha;if(t!==null)throw t}}function sn(t,e,l,a){fc=!1;var n=t.updateQueue;sl=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,c=n.shared.pending;if(c!==null){n.shared.pending=null;var s=c,p=s.next;s.next=null,i===null?u=p:i.next=p,i=s;var A=t.alternate;A!==null&&(A=A.updateQueue,c=A.lastBaseUpdate,c!==i&&(c===null?A.firstBaseUpdate=p:c.next=p,A.lastBaseUpdate=s))}if(u!==null){var z=n.baseState;i=0,A=p=s=null,c=u;do{var b=c.lane&-536870913,x=b!==c.lane;if(x?(nt&b)===b:(a&b)===b){b!==0&&b===da&&(fc=!0),A!==null&&(A=A.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});t:{var B=t,V=c;b=e;var pt=l;switch(V.tag){case 1:if(B=V.payload,typeof B=="function"){z=B.call(pt,z,b);break t}z=B;break t;case 3:B.flags=B.flags&-65537|128;case 0:if(B=V.payload,b=typeof B=="function"?B.call(pt,z,b):B,b==null)break t;z=H({},z,b);break t;case 2:sl=!0}}b=c.callback,b!==null&&(t.flags|=64,x&&(t.flags|=8192),x=n.callbacks,x===null?n.callbacks=[b]:x.push(b))}else x={lane:b,tag:c.tag,payload:c.payload,callback:c.callback,next:null},A===null?(p=A=x,s=z):A=A.next=x,i|=b;if(c=c.next,c===null){if(c=n.shared.pending,c===null)break;x=c,c=x.next,x.next=null,n.lastBaseUpdate=x,n.shared.pending=null}}while(!0);A===null&&(s=z),n.baseState=s,n.firstBaseUpdate=p,n.lastBaseUpdate=A,u===null&&(n.shared.lanes=0),ml|=i,t.lanes=i,t.memoizedState=z}}function xo(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Ao(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)xo(l[t],e)}var ma=d(null),ru=d(0);function To(t,e){t=Pe,R(ru,t),R(ma,e),Pe=t|e.baseLanes}function sc(){R(ru,Pe),R(ma,ma.current)}function oc(){Pe=ru.current,E(ma),E(ru)}var he=d(null),Me=null;function dl(t){var e=t.alternate;R(Rt,Rt.current&1),R(he,t),Me===null&&(e===null||ma.current!==null||e.memoizedState!==null)&&(Me=t)}function rc(t){R(Rt,Rt.current),R(he,t),Me===null&&(Me=t)}function zo(t){t.tag===22?(R(Rt,Rt.current),R(he,t),Me===null&&(Me=t)):hl()}function hl(){R(Rt,Rt.current),R(he,he.current)}function ye(t){E(he),Me===t&&(Me=null),E(Rt)}var Rt=d(0);function du(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||pf(l)||bf(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ze=0,k=null,mt=null,Bt=null,hu=!1,va=!1,Ql=!1,yu=0,on=0,pa=null,wy=0;function Dt(){throw Error(o(321))}function dc(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!re(t[l],e[l]))return!1;return!0}function hc(t,e,l,a,n,u){return Ze=u,k=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,_.H=t===null||t.memoizedState===null?cr:Cc,Ql=!1,u=l(a,n),Ql=!1,va&&(u=Mo(e,l,a,n)),Eo(t),u}function Eo(t){_.H=hn;var e=mt!==null&&mt.next!==null;if(Ze=0,Bt=mt=k=null,hu=!1,on=0,pa=null,e)throw Error(o(300));t===null||qt||(t=t.dependencies,t!==null&&nu(t)&&(qt=!0))}function Mo(t,e,l,a){k=t;var n=0;do{if(va&&(pa=null),on=0,va=!1,25<=n)throw Error(o(301));if(n+=1,Bt=mt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}_.H=fr,u=e(l,a)}while(va);return u}function Ly(){var t=_.H,e=t.useState()[0];return e=typeof e.then=="function"?rn(e):e,t=t.useState()[0],(mt!==null?mt.memoizedState:null)!==t&&(k.flags|=1024),e}function yc(){var t=yu!==0;return yu=0,t}function gc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function mc(t){if(hu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}hu=!1}Ze=0,Bt=mt=k=null,va=!1,on=yu=0,pa=null}function Pt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bt===null?k.memoizedState=Bt=t:Bt=Bt.next=t,Bt}function Nt(){if(mt===null){var t=k.alternate;t=t!==null?t.memoizedState:null}else t=mt.next;var e=Bt===null?k.memoizedState:Bt.next;if(e!==null)Bt=e,mt=t;else{if(t===null)throw k.alternate===null?Error(o(467)):Error(o(310));mt=t,t={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},Bt===null?k.memoizedState=Bt=t:Bt=Bt.next=t}return Bt}function gu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rn(t){var e=on;return on+=1,pa===null&&(pa=[]),t=mo(pa,t,e),e=k,(Bt===null?e.memoizedState:Bt.next)===null&&(e=e.alternate,_.H=e===null||e.memoizedState===null?cr:Cc),t}function mu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return rn(t);if(t.$$typeof===ct)return Jt(t)}throw Error(o(438,String(t)))}function vc(t){var e=null,l=k.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=k.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=gu(),k.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=Oe;return e.index++,l}function Ke(t,e){return typeof e=="function"?e(t):e}function vu(t){var e=Nt();return pc(e,mt,t)}function pc(t,e,l){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=t.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}e.baseQueue=n=u,a.pending=null}if(u=t.baseState,n===null)t.memoizedState=u;else{e=n.next;var c=i=null,s=null,p=e,A=!1;do{var z=p.lane&-536870913;if(z!==p.lane?(nt&z)===z:(Ze&z)===z){var b=p.revertLane;if(b===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null}),z===da&&(A=!0);else if((Ze&b)===b){p=p.next,b===da&&(A=!0);continue}else z={lane:0,revertLane:p.revertLane,gesture:null,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null},s===null?(c=s=z,i=u):s=s.next=z,k.lanes|=b,ml|=b;z=p.action,Ql&&l(u,z),u=p.hasEagerState?p.eagerState:l(u,z)}else b={lane:z,revertLane:p.revertLane,gesture:p.gesture,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null},s===null?(c=s=b,i=u):s=s.next=b,k.lanes|=z,ml|=z;p=p.next}while(p!==null&&p!==e);if(s===null?i=u:s.next=c,!re(u,t.memoizedState)&&(qt=!0,A&&(l=ha,l!==null)))throw l;t.memoizedState=u,t.baseState=i,t.baseQueue=s,a.lastRenderedState=u}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function bc(t){var e=Nt(),l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,u=e.memoizedState;if(n!==null){l.pending=null;var i=n=n.next;do u=t(u,i.action),i=i.next;while(i!==n);re(u,e.memoizedState)||(qt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,a]}function _o(t,e,l){var a=k,n=Nt(),u=it;if(u){if(l===void 0)throw Error(o(407));l=l()}else l=e();var i=!re((mt||n).memoizedState,l);if(i&&(n.memoizedState=l,qt=!0),n=n.queue,Ac(Do.bind(null,a,n,t),[t]),n.getSnapshot!==e||i||Bt!==null&&Bt.memoizedState.tag&1){if(a.flags|=2048,ba(9,{destroy:void 0},Oo.bind(null,a,n,l,e),null),xt===null)throw Error(o(349));u||(Ze&127)!==0||Co(a,e,l)}return l}function Co(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=k.updateQueue,e===null?(e=gu(),k.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function Oo(t,e,l,a){e.value=l,e.getSnapshot=a,Uo(e)&&jo(t)}function Do(t,e,l){return l(function(){Uo(e)&&jo(t)})}function Uo(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!re(t,l)}catch{return!0}}function jo(t){var e=Hl(t,2);e!==null&&ie(e,t,2)}function Sc(t){var e=Pt();if(typeof t=="function"){var l=t;if(t=l(),Ql){ll(!0);try{l()}finally{ll(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:t},e}function Ro(t,e,l,a){return t.baseState=l,pc(t,mt,typeof a=="function"?a:Ke)}function Xy(t,e,l,a,n){if(Su(t))throw Error(o(485));if(t=e.action,t!==null){var u={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};_.T!==null?l(!0):u.isTransition=!1,a(u),l=e.pending,l===null?(u.next=e.pending=u,No(e,u)):(u.next=l.next,e.pending=l.next=u)}}function No(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var u=_.T,i={};_.T=i;try{var c=l(n,a),s=_.S;s!==null&&s(i,c),Ho(t,e,c)}catch(p){xc(t,e,p)}finally{u!==null&&i.types!==null&&(u.types=i.types),_.T=u}}else try{u=l(n,a),Ho(t,e,u)}catch(p){xc(t,e,p)}}function Ho(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Bo(t,e,a)},function(a){return xc(t,e,a)}):Bo(t,e,l)}function Bo(t,e,l){e.status="fulfilled",e.value=l,qo(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,No(t,l)))}function xc(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,qo(e),e=e.next;while(e!==a)}t.action=null}function qo(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Go(t,e){return e}function Yo(t,e){if(it){var l=xt.formState;if(l!==null){t:{var a=k;if(it){if(At){e:{for(var n=At,u=Ee;n.nodeType!==8;){if(!u){n=null;break e}if(n=_e(n.nextSibling),n===null){n=null;break e}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){At=_e(n.nextSibling),a=n.data==="F!";break t}}cl(a)}a=!1}a&&(e=l[0])}}return l=Pt(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Go,lastRenderedState:e},l.queue=a,l=nr.bind(null,k,a),a.dispatch=l,a=Sc(!1),u=_c.bind(null,k,!1,a.queue),a=Pt(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=Xy.bind(null,k,n,u,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function wo(t){var e=Nt();return Lo(e,mt,t)}function Lo(t,e,l){if(e=pc(t,e,Go)[0],t=vu(Ke)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=rn(e)}catch(i){throw i===ya?cu:i}else a=e;e=Nt();var n=e.queue,u=n.dispatch;return l!==e.memoizedState&&(k.flags|=2048,ba(9,{destroy:void 0},Vy.bind(null,n,l),null)),[a,u,t]}function Vy(t,e){t.action=e}function Xo(t){var e=Nt(),l=mt;if(l!==null)return Lo(e,l,t);Nt(),e=e.memoizedState,l=Nt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function ba(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=k.updateQueue,e===null&&(e=gu(),k.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function Vo(){return Nt().memoizedState}function pu(t,e,l,a){var n=Pt();k.flags|=t,n.memoizedState=ba(1|e,{destroy:void 0},l,a===void 0?null:a)}function bu(t,e,l,a){var n=Nt();a=a===void 0?null:a;var u=n.memoizedState.inst;mt!==null&&a!==null&&dc(a,mt.memoizedState.deps)?n.memoizedState=ba(e,u,l,a):(k.flags|=t,n.memoizedState=ba(1|e,u,l,a))}function Qo(t,e){pu(8390656,8,t,e)}function Ac(t,e){bu(2048,8,t,e)}function Qy(t){k.flags|=4;var e=k.updateQueue;if(e===null)e=gu(),k.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Zo(t){var e=Nt().memoizedState;return Qy({ref:e,nextImpl:t}),function(){if((rt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function Ko(t,e){return bu(4,2,t,e)}function Jo(t,e){return bu(4,4,t,e)}function ko(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Wo(t,e,l){l=l!=null?l.concat([t]):null,bu(4,4,ko.bind(null,e,t),l)}function Tc(){}function $o(t,e){var l=Nt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&dc(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function Fo(t,e){var l=Nt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&dc(e,a[1]))return a[0];if(a=t(),Ql){ll(!0);try{t()}finally{ll(!1)}}return l.memoizedState=[a,e],a}function zc(t,e,l){return l===void 0||(Ze&1073741824)!==0&&(nt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Ir(),k.lanes|=t,ml|=t,l)}function Io(t,e,l,a){return re(l,e)?l:ma.current!==null?(t=zc(t,l,a),re(t,e)||(qt=!0),t):(Ze&42)===0||(Ze&1073741824)!==0&&(nt&261930)===0?(qt=!0,t.memoizedState=l):(t=Ir(),k.lanes|=t,ml|=t,e)}function Po(t,e,l,a,n){var u=j.p;j.p=u!==0&&8>u?u:8;var i=_.T,c={};_.T=c,_c(t,!1,e,l);try{var s=n(),p=_.S;if(p!==null&&p(c,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var A=Yy(s,a);dn(t,e,A,ve(t))}else dn(t,e,a,ve(t))}catch(z){dn(t,e,{then:function(){},status:"rejected",reason:z},ve())}finally{j.p=u,i!==null&&c.types!==null&&(i.types=c.types),_.T=i}}function Zy(){}function Ec(t,e,l,a){if(t.tag!==5)throw Error(o(476));var n=tr(t).queue;Po(t,n,e,K,l===null?Zy:function(){return er(t),l(a)})}function tr(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:K},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function er(t){var e=tr(t);e.next===null&&(e=t.alternate.memoizedState),dn(t,e.next.queue,{},ve())}function Mc(){return Jt(On)}function lr(){return Nt().memoizedState}function ar(){return Nt().memoizedState}function Ky(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=ve();t=ol(l);var a=rl(e,t,l);a!==null&&(ie(a,e,l),cn(a,e,l)),e={cache:ec()},t.payload=e;return}e=e.return}}function Jy(t,e,l){var a=ve();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Su(t)?ur(e,l):(l=Qi(t,e,l,a),l!==null&&(ie(l,t,a),ir(l,e,a)))}function nr(t,e,l){var a=ve();dn(t,e,l,a)}function dn(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Su(t))ur(e,n);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var i=e.lastRenderedState,c=u(i,l);if(n.hasEagerState=!0,n.eagerState=c,re(c,i))return tu(t,e,n,0),xt===null&&Pn(),!1}catch{}if(l=Qi(t,e,n,a),l!==null)return ie(l,t,a),ir(l,e,a),!0}return!1}function _c(t,e,l,a){if(a={lane:2,revertLane:uf(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Su(t)){if(e)throw Error(o(479))}else e=Qi(t,l,a,2),e!==null&&ie(e,t,2)}function Su(t){var e=t.alternate;return t===k||e!==null&&e===k}function ur(t,e){va=hu=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function ir(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,os(t,l)}}var hn={readContext:Jt,use:mu,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useLayoutEffect:Dt,useInsertionEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useSyncExternalStore:Dt,useId:Dt,useHostTransitionStatus:Dt,useFormState:Dt,useActionState:Dt,useOptimistic:Dt,useMemoCache:Dt,useCacheRefresh:Dt};hn.useEffectEvent=Dt;var cr={readContext:Jt,use:mu,useCallback:function(t,e){return Pt().memoizedState=[t,e===void 0?null:e],t},useContext:Jt,useEffect:Qo,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,pu(4194308,4,ko.bind(null,e,t),l)},useLayoutEffect:function(t,e){return pu(4194308,4,t,e)},useInsertionEffect:function(t,e){pu(4,2,t,e)},useMemo:function(t,e){var l=Pt();e=e===void 0?null:e;var a=t();if(Ql){ll(!0);try{t()}finally{ll(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=Pt();if(l!==void 0){var n=l(e);if(Ql){ll(!0);try{l(e)}finally{ll(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=Jy.bind(null,k,t),[a.memoizedState,t]},useRef:function(t){var e=Pt();return t={current:t},e.memoizedState=t},useState:function(t){t=Sc(t);var e=t.queue,l=nr.bind(null,k,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Tc,useDeferredValue:function(t,e){var l=Pt();return zc(l,t,e)},useTransition:function(){var t=Sc(!1);return t=Po.bind(null,k,t.queue,!0,!1),Pt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=k,n=Pt();if(it){if(l===void 0)throw Error(o(407));l=l()}else{if(l=e(),xt===null)throw Error(o(349));(nt&127)!==0||Co(a,e,l)}n.memoizedState=l;var u={value:l,getSnapshot:e};return n.queue=u,Qo(Do.bind(null,a,u,t),[t]),a.flags|=2048,ba(9,{destroy:void 0},Oo.bind(null,a,u,l,e),null),l},useId:function(){var t=Pt(),e=xt.identifierPrefix;if(it){var l=Ne,a=Re;l=(a&~(1<<32-oe(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=yu++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=wy++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Mc,useFormState:Yo,useActionState:Yo,useOptimistic:function(t){var e=Pt();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=_c.bind(null,k,!0,l),l.dispatch=e,[t,e]},useMemoCache:vc,useCacheRefresh:function(){return Pt().memoizedState=Ky.bind(null,k)},useEffectEvent:function(t){var e=Pt(),l={impl:t};return e.memoizedState=l,function(){if((rt&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Cc={readContext:Jt,use:mu,useCallback:$o,useContext:Jt,useEffect:Ac,useImperativeHandle:Wo,useInsertionEffect:Ko,useLayoutEffect:Jo,useMemo:Fo,useReducer:vu,useRef:Vo,useState:function(){return vu(Ke)},useDebugValue:Tc,useDeferredValue:function(t,e){var l=Nt();return Io(l,mt.memoizedState,t,e)},useTransition:function(){var t=vu(Ke)[0],e=Nt().memoizedState;return[typeof t=="boolean"?t:rn(t),e]},useSyncExternalStore:_o,useId:lr,useHostTransitionStatus:Mc,useFormState:wo,useActionState:wo,useOptimistic:function(t,e){var l=Nt();return Ro(l,mt,t,e)},useMemoCache:vc,useCacheRefresh:ar};Cc.useEffectEvent=Zo;var fr={readContext:Jt,use:mu,useCallback:$o,useContext:Jt,useEffect:Ac,useImperativeHandle:Wo,useInsertionEffect:Ko,useLayoutEffect:Jo,useMemo:Fo,useReducer:bc,useRef:Vo,useState:function(){return bc(Ke)},useDebugValue:Tc,useDeferredValue:function(t,e){var l=Nt();return mt===null?zc(l,t,e):Io(l,mt.memoizedState,t,e)},useTransition:function(){var t=bc(Ke)[0],e=Nt().memoizedState;return[typeof t=="boolean"?t:rn(t),e]},useSyncExternalStore:_o,useId:lr,useHostTransitionStatus:Mc,useFormState:Xo,useActionState:Xo,useOptimistic:function(t,e){var l=Nt();return mt!==null?Ro(l,mt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:vc,useCacheRefresh:ar};fr.useEffectEvent=Zo;function Oc(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:H({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Dc={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=ve(),n=ol(a);n.payload=e,l!=null&&(n.callback=l),e=rl(t,n,a),e!==null&&(ie(e,t,a),cn(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=ve(),n=ol(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=rl(t,n,a),e!==null&&(ie(e,t,a),cn(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=ve(),a=ol(l);a.tag=2,e!=null&&(a.callback=e),e=rl(t,a,l),e!==null&&(ie(e,t,l),cn(e,t,l))}};function sr(t,e,l,a,n,u,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,u,i):e.prototype&&e.prototype.isPureReactComponent?!Ia(l,a)||!Ia(n,u):!0}function or(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&Dc.enqueueReplaceState(e,e.state,null)}function Zl(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=H({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function rr(t){In(t)}function dr(t){console.error(t)}function hr(t){In(t)}function xu(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function yr(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Uc(t,e,l){return l=ol(l),l.tag=3,l.payload={element:null},l.callback=function(){xu(t,e)},l}function gr(t){return t=ol(t),t.tag=3,t}function mr(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;t.payload=function(){return n(u)},t.callback=function(){yr(e,l,a)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){yr(e,l,a),typeof n!="function"&&(vl===null?vl=new Set([this]):vl.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function ky(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&ra(e,l,n,!0),l=he.current,l!==null){switch(l.tag){case 31:case 13:return Me===null?Ru():l.alternate===null&&Ut===0&&(Ut=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===fu?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),lf(t,a,n)),!1;case 22:return l.flags|=65536,a===fu?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),lf(t,a,n)),!1}throw Error(o(435,l.tag))}return lf(t,a,n),Ru(),!1}if(it)return e=he.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==$i&&(t=Error(o(422),{cause:a}),en(Ae(t,l)))):(a!==$i&&(e=Error(o(423),{cause:a}),en(Ae(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=Ae(a,l),n=Uc(t.stateNode,a,n),cc(t,n),Ut!==4&&(Ut=2)),!1;var u=Error(o(520),{cause:a});if(u=Ae(u,l),xn===null?xn=[u]:xn.push(u),Ut!==4&&(Ut=2),e===null)return!0;a=Ae(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=Uc(l.stateNode,a,t),cc(l,t),!1;case 1:if(e=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(vl===null||!vl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=gr(n),mr(n,t,l,a),cc(l,n),!1}l=l.return}while(l!==null);return!1}var jc=Error(o(461)),qt=!1;function kt(t,e,l,a){e.child=t===null?So(e,null,l,a):Vl(e,t.child,l,a)}function vr(t,e,l,a,n){l=l.render;var u=e.ref;if("ref"in a){var i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}else i=a;return Yl(e),a=hc(t,e,l,i,u,n),c=yc(),t!==null&&!qt?(gc(t,e,n),Je(t,e,n)):(it&&c&&ki(e),e.flags|=1,kt(t,e,a,n),e.child)}function pr(t,e,l,a,n){if(t===null){var u=l.type;return typeof u=="function"&&!Zi(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,br(t,e,u,a,n)):(t=lu(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!wc(t,n)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:Ia,l(i,a)&&t.ref===e.ref)return Je(t,e,n)}return e.flags|=1,t=Le(u,a),t.ref=e.ref,t.return=e,e.child=t}function br(t,e,l,a,n){if(t!==null){var u=t.memoizedProps;if(Ia(u,a)&&t.ref===e.ref)if(qt=!1,e.pendingProps=a=u,wc(t,n))(t.flags&131072)!==0&&(qt=!0);else return e.lanes=t.lanes,Je(t,e,n)}return Rc(t,e,l,a,n)}function Sr(t,e,l,a){var n=a.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,e.child=null;return xr(t,e,u,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&iu(e,u!==null?u.cachePool:null),u!==null?To(e,u):sc(),zo(e);else return a=e.lanes=536870912,xr(t,e,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(iu(e,u.cachePool),To(e,u),hl(),e.memoizedState=null):(t!==null&&iu(e,null),sc(),hl());return kt(t,e,n,l),e.child}function yn(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function xr(t,e,l,a,n){var u=ac();return u=u===null?null:{parent:Ht._currentValue,pool:u},e.memoizedState={baseLanes:l,cachePool:u},t!==null&&iu(e,null),sc(),zo(e),t!==null&&ra(t,e,a,!0),e.childLanes=n,null}function Au(t,e){return e=zu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Ar(t,e,l){return Vl(e,t.child,null,l),t=Au(e,e.pendingProps),t.flags|=2,ye(e),e.memoizedState=null,t}function Wy(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(it){if(a.mode==="hidden")return t=Au(e,a),e.lanes=536870912,yn(null,t);if(rc(e),(t=At)?(t=Nd(t,Ee),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ul!==null?{id:Re,overflow:Ne}:null,retryLane:536870912,hydrationErrors:null},l=no(t),l.return=e,e.child=l,Kt=e,At=null)):t=null,t===null)throw cl(e);return e.lanes=536870912,null}return Au(e,a)}var u=t.memoizedState;if(u!==null){var i=u.dehydrated;if(rc(e),n)if(e.flags&256)e.flags&=-257,e=Ar(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(qt||ra(t,e,l,!1),n=(l&t.childLanes)!==0,qt||n){if(a=xt,a!==null&&(i=rs(a,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,Hl(t,i),ie(a,t,i),jc;Ru(),e=Ar(t,e,l)}else t=u.treeContext,At=_e(i.nextSibling),Kt=e,it=!0,il=null,Ee=!1,t!==null&&co(e,t),e=Au(e,a),e.flags|=4096;return e}return t=Le(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Tu(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Rc(t,e,l,a,n){return Yl(e),l=hc(t,e,l,a,void 0,n),a=yc(),t!==null&&!qt?(gc(t,e,n),Je(t,e,n)):(it&&a&&ki(e),e.flags|=1,kt(t,e,l,n),e.child)}function Tr(t,e,l,a,n,u){return Yl(e),e.updateQueue=null,l=Mo(e,a,l,n),Eo(t),a=yc(),t!==null&&!qt?(gc(t,e,u),Je(t,e,u)):(it&&a&&ki(e),e.flags|=1,kt(t,e,l,u),e.child)}function zr(t,e,l,a,n){if(Yl(e),e.stateNode===null){var u=ca,i=l.contextType;typeof i=="object"&&i!==null&&(u=Jt(i)),u=new l(a,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Dc,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=a,u.state=e.memoizedState,u.refs={},uc(e),i=l.contextType,u.context=typeof i=="object"&&i!==null?Jt(i):ca,u.state=e.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(Oc(e,l,i,a),u.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&Dc.enqueueReplaceState(u,u.state,null),sn(e,a,u,n),fn(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){u=e.stateNode;var c=e.memoizedProps,s=Zl(l,c);u.props=s;var p=u.context,A=l.contextType;i=ca,typeof A=="object"&&A!==null&&(i=Jt(A));var z=l.getDerivedStateFromProps;A=typeof z=="function"||typeof u.getSnapshotBeforeUpdate=="function",c=e.pendingProps!==c,A||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c||p!==i)&&or(e,u,a,i),sl=!1;var b=e.memoizedState;u.state=b,sn(e,a,u,n),fn(),p=e.memoizedState,c||b!==p||sl?(typeof z=="function"&&(Oc(e,l,z,a),p=e.memoizedState),(s=sl||sr(e,l,s,a,b,p,i))?(A||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=p),u.props=a,u.state=p,u.context=i,a=s):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{u=e.stateNode,ic(t,e),i=e.memoizedProps,A=Zl(l,i),u.props=A,z=e.pendingProps,b=u.context,p=l.contextType,s=ca,typeof p=="object"&&p!==null&&(s=Jt(p)),c=l.getDerivedStateFromProps,(p=typeof c=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==z||b!==s)&&or(e,u,a,s),sl=!1,b=e.memoizedState,u.state=b,sn(e,a,u,n),fn();var x=e.memoizedState;i!==z||b!==x||sl||t!==null&&t.dependencies!==null&&nu(t.dependencies)?(typeof c=="function"&&(Oc(e,l,c,a),x=e.memoizedState),(A=sl||sr(e,l,A,a,b,x,s)||t!==null&&t.dependencies!==null&&nu(t.dependencies))?(p||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,x,s),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,x,s)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&b===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&b===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=x),u.props=a,u.state=x,u.context=s,a=A):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&b===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&b===t.memoizedState||(e.flags|=1024),a=!1)}return u=a,Tu(t,e),a=(e.flags&128)!==0,u||a?(u=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&a?(e.child=Vl(e,t.child,null,n),e.child=Vl(e,null,l,n)):kt(t,e,l,n),e.memoizedState=u.state,t=e.child):t=Je(t,e,n),t}function Er(t,e,l,a){return ql(),e.flags|=256,kt(t,e,l,a),e.child}var Nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hc(t){return{baseLanes:t,cachePool:yo()}}function Bc(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=me),t}function Mr(t,e,l){var a=e.pendingProps,n=!1,u=(e.flags&128)!==0,i;if((i=u)||(i=t!==null&&t.memoizedState===null?!1:(Rt.current&2)!==0),i&&(n=!0,e.flags&=-129),i=(e.flags&32)!==0,e.flags&=-33,t===null){if(it){if(n?dl(e):hl(),(t=At)?(t=Nd(t,Ee),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ul!==null?{id:Re,overflow:Ne}:null,retryLane:536870912,hydrationErrors:null},l=no(t),l.return=e,e.child=l,Kt=e,At=null)):t=null,t===null)throw cl(e);return bf(t)?e.lanes=32:e.lanes=536870912,null}var c=a.children;return a=a.fallback,n?(hl(),n=e.mode,c=zu({mode:"hidden",children:c},n),a=Bl(a,n,l,null),c.return=e,a.return=e,c.sibling=a,e.child=c,a=e.child,a.memoizedState=Hc(l),a.childLanes=Bc(t,i,l),e.memoizedState=Nc,yn(null,a)):(dl(e),qc(e,c))}var s=t.memoizedState;if(s!==null&&(c=s.dehydrated,c!==null)){if(u)e.flags&256?(dl(e),e.flags&=-257,e=Gc(t,e,l)):e.memoizedState!==null?(hl(),e.child=t.child,e.flags|=128,e=null):(hl(),c=a.fallback,n=e.mode,a=zu({mode:"visible",children:a.children},n),c=Bl(c,n,l,null),c.flags|=2,a.return=e,c.return=e,a.sibling=c,e.child=a,Vl(e,t.child,null,l),a=e.child,a.memoizedState=Hc(l),a.childLanes=Bc(t,i,l),e.memoizedState=Nc,e=yn(null,a));else if(dl(e),bf(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var p=i.dgst;i=p,a=Error(o(419)),a.stack="",a.digest=i,en({value:a,source:null,stack:null}),e=Gc(t,e,l)}else if(qt||ra(t,e,l,!1),i=(l&t.childLanes)!==0,qt||i){if(i=xt,i!==null&&(a=rs(i,l),a!==0&&a!==s.retryLane))throw s.retryLane=a,Hl(t,a),ie(i,t,a),jc;pf(c)||Ru(),e=Gc(t,e,l)}else pf(c)?(e.flags|=192,e.child=t.child,e=null):(t=s.treeContext,At=_e(c.nextSibling),Kt=e,it=!0,il=null,Ee=!1,t!==null&&co(e,t),e=qc(e,a.children),e.flags|=4096);return e}return n?(hl(),c=a.fallback,n=e.mode,s=t.child,p=s.sibling,a=Le(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&65011712,p!==null?c=Le(p,c):(c=Bl(c,n,l,null),c.flags|=2),c.return=e,a.return=e,a.sibling=c,e.child=a,yn(null,a),a=e.child,c=t.child.memoizedState,c===null?c=Hc(l):(n=c.cachePool,n!==null?(s=Ht._currentValue,n=n.parent!==s?{parent:s,pool:s}:n):n=yo(),c={baseLanes:c.baseLanes|l,cachePool:n}),a.memoizedState=c,a.childLanes=Bc(t,i,l),e.memoizedState=Nc,yn(t.child,a)):(dl(e),l=t.child,t=l.sibling,l=Le(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(i=e.deletions,i===null?(e.deletions=[t],e.flags|=16):i.push(t)),e.child=l,e.memoizedState=null,l)}function qc(t,e){return e=zu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function zu(t,e){return t=de(22,t,null,e),t.lanes=0,t}function Gc(t,e,l){return Vl(e,t.child,null,l),t=qc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function _r(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Pi(t.return,e,l)}function Yc(t,e,l,a,n,u){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=l,i.tailMode=n,i.treeForkCount=u)}function Cr(t,e,l){var a=e.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=Rt.current,c=(i&2)!==0;if(c?(i=i&1|2,e.flags|=128):i&=1,R(Rt,i),kt(t,e,a,l),a=it?tn:0,!c&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&_r(t,l,e);else if(t.tag===19)_r(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&du(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),Yc(e,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&du(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}Yc(e,!0,l,null,u,a);break;case"together":Yc(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function Je(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),ml|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(ra(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,l=Le(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=Le(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function wc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&nu(t)))}function $y(t,e,l){switch(e.tag){case 3:It(e,e.stateNode.containerInfo),fl(e,Ht,t.memoizedState.cache),ql();break;case 27:case 5:Ya(e);break;case 4:It(e,e.stateNode.containerInfo);break;case 10:fl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,rc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(dl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?Mr(t,e,l):(dl(e),t=Je(t,e,l),t!==null?t.sibling:null);dl(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(ra(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return Cr(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),R(Rt,Rt.current),a)break;return null;case 22:return e.lanes=0,Sr(t,e,l,e.pendingProps);case 24:fl(e,Ht,t.memoizedState.cache)}return Je(t,e,l)}function Or(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)qt=!0;else{if(!wc(t,l)&&(e.flags&128)===0)return qt=!1,$y(t,e,l);qt=(t.flags&131072)!==0}else qt=!1,it&&(e.flags&1048576)!==0&&io(e,tn,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=Ll(e.elementType),e.type=t,typeof t=="function")Zi(t)?(a=Zl(t,a),e.tag=1,e=zr(null,e,t,a,l)):(e.tag=0,e=Rc(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===X){e.tag=11,e=vr(null,e,t,a,l);break t}else if(n===at){e.tag=14,e=pr(null,e,t,a,l);break t}}throw e=Lt(t)||t,Error(o(306,e,""))}}return e;case 0:return Rc(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=Zl(a,e.pendingProps),zr(t,e,a,n,l);case 3:t:{if(It(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var u=e.memoizedState;n=u.element,ic(t,e),sn(e,a,null,l);var i=e.memoizedState;if(a=i.cache,fl(e,Ht,a),a!==u.cache&&tc(e,[Ht],l,!0),fn(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Er(t,e,a,l);break t}else if(a!==n){n=Ae(Error(o(424)),e),en(n),e=Er(t,e,a,l);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,At=_e(t.firstChild),Kt=e,it=!0,il=null,Ee=!0,l=So(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(ql(),a===n){e=Je(t,e,l);break t}kt(t,e,a,l)}e=e.child}return e;case 26:return Tu(t,e),t===null?(l=wd(e.type,null,e.pendingProps,null))?e.memoizedState=l:it||(l=e.type,t=e.pendingProps,a=wu(tt.current).createElement(l),a[Zt]=e,a[te]=t,Wt(a,l,t),Xt(a),e.stateNode=a):e.memoizedState=wd(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Ya(e),t===null&&it&&(a=e.stateNode=qd(e.type,e.pendingProps,tt.current),Kt=e,Ee=!0,n=At,xl(e.type)?(Sf=n,At=_e(a.firstChild)):At=n),kt(t,e,e.pendingProps.children,l),Tu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&it&&((n=a=At)&&(a=Mg(a,e.type,e.pendingProps,Ee),a!==null?(e.stateNode=a,Kt=e,At=_e(a.firstChild),Ee=!1,n=!0):n=!1),n||cl(e)),Ya(e),n=e.type,u=e.pendingProps,i=t!==null?t.memoizedProps:null,a=u.children,gf(n,u)?a=null:i!==null&&gf(n,i)&&(e.flags|=32),e.memoizedState!==null&&(n=hc(t,e,Ly,null,null,l),On._currentValue=n),Tu(t,e),kt(t,e,a,l),e.child;case 6:return t===null&&it&&((t=l=At)&&(l=_g(l,e.pendingProps,Ee),l!==null?(e.stateNode=l,Kt=e,At=null,t=!0):t=!1),t||cl(e)),null;case 13:return Mr(t,e,l);case 4:return It(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=Vl(e,null,a,l):kt(t,e,a,l),e.child;case 11:return vr(t,e,e.type,e.pendingProps,l);case 7:return kt(t,e,e.pendingProps,l),e.child;case 8:return kt(t,e,e.pendingProps.children,l),e.child;case 12:return kt(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,fl(e,e.type,a.value),kt(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,Yl(e),n=Jt(n),a=a(n),e.flags|=1,kt(t,e,a,l),e.child;case 14:return pr(t,e,e.type,e.pendingProps,l);case 15:return br(t,e,e.type,e.pendingProps,l);case 19:return Cr(t,e,l);case 31:return Wy(t,e,l);case 22:return Sr(t,e,l,e.pendingProps);case 24:return Yl(e),a=Jt(Ht),t===null?(n=ac(),n===null&&(n=xt,u=ec(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),e.memoizedState={parent:a,cache:n},uc(e),fl(e,Ht,n)):((t.lanes&l)!==0&&(ic(t,e),sn(e,null,null,l),fn()),n=t.memoizedState,u=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),fl(e,Ht,a)):(a=u.cache,fl(e,Ht,a),a!==n.cache&&tc(e,[Ht],l,!0))),kt(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function ke(t){t.flags|=4}function Lc(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(ld())t.flags|=8192;else throw Xl=fu,nc}else t.flags&=-16777217}function Dr(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Zd(e))if(ld())t.flags|=8192;else throw Xl=fu,nc}function Eu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?fs():536870912,t.lanes|=e,Ta|=e)}function gn(t,e){if(!it)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Tt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function Fy(t,e,l){var a=e.pendingProps;switch(Wi(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Tt(e),null;case 1:return Tt(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Qe(Ht),jt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(oa(e)?ke(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Fi())),Tt(e),null;case 26:var n=e.type,u=e.memoizedState;return t===null?(ke(e),u!==null?(Tt(e),Dr(e,u)):(Tt(e),Lc(e,n,null,a,l))):u?u!==t.memoizedState?(ke(e),Tt(e),Dr(e,u)):(Tt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&ke(e),Tt(e),Lc(e,n,t,a,l)),null;case 27:if(Bn(e),l=tt.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&ke(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Tt(e),null}t=Y.current,oa(e)?fo(e):(t=qd(n,a,l),e.stateNode=t,ke(e))}return Tt(e),null;case 5:if(Bn(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&ke(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Tt(e),null}if(u=Y.current,oa(e))fo(e);else{var i=wu(tt.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[Zt]=e,u[te]=a;t:for(i=e.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break t;for(;i.sibling===null;){if(i.return===null||i.return===e)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}e.stateNode=u;t:switch(Wt(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&ke(e)}}return Tt(e),Lc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&ke(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=tt.current,oa(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=Kt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[Zt]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Md(t.nodeValue,l)),t||cl(e,!0)}else t=wu(t).createTextNode(a),t[Zt]=e,e.stateNode=t}return Tt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=oa(e),l!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Zt]=e}else ql(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Tt(e),t=!1}else l=Fi(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(ye(e),e):(ye(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Tt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=oa(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(o(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Zt]=e}else ql(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Tt(e),n=!1}else n=Fi(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(ye(e),e):(ye(e),null)}return ye(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Eu(e,e.updateQueue),Tt(e),null);case 4:return jt(),t===null&&of(e.stateNode.containerInfo),Tt(e),null;case 10:return Qe(e.type),Tt(e),null;case 19:if(E(Rt),a=e.memoizedState,a===null)return Tt(e),null;if(n=(e.flags&128)!==0,u=a.rendering,u===null)if(n)gn(a,!1);else{if(Ut!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=du(t),u!==null){for(e.flags|=128,gn(a,!1),t=u.updateQueue,e.updateQueue=t,Eu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)ao(l,t),l=l.sibling;return R(Rt,Rt.current&1|2),it&&Xe(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&fe()>Du&&(e.flags|=128,n=!0,gn(a,!1),e.lanes=4194304)}else{if(!n)if(t=du(u),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Eu(e,t),gn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!it)return Tt(e),null}else 2*fe()-a.renderingStartTime>Du&&l!==536870912&&(e.flags|=128,n=!0,gn(a,!1),e.lanes=4194304);a.isBackwards?(u.sibling=e.child,e.child=u):(t=a.last,t!==null?t.sibling=u:e.child=u,a.last=u)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=fe(),t.sibling=null,l=Rt.current,R(Rt,n?l&1|2:l&1),it&&Xe(e,a.treeForkCount),t):(Tt(e),null);case 22:case 23:return ye(e),oc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(Tt(e),e.subtreeFlags&6&&(e.flags|=8192)):Tt(e),l=e.updateQueue,l!==null&&Eu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&E(wl),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Qe(Ht),Tt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function Iy(t,e){switch(Wi(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Qe(Ht),jt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Bn(e),null;case 31:if(e.memoizedState!==null){if(ye(e),e.alternate===null)throw Error(o(340));ql()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ye(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));ql()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return E(Rt),null;case 4:return jt(),null;case 10:return Qe(e.type),null;case 22:case 23:return ye(e),oc(),t!==null&&E(wl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Qe(Ht),null;case 25:return null;default:return null}}function Ur(t,e){switch(Wi(e),e.tag){case 3:Qe(Ht),jt();break;case 26:case 27:case 5:Bn(e);break;case 4:jt();break;case 31:e.memoizedState!==null&&ye(e);break;case 13:ye(e);break;case 19:E(Rt);break;case 10:Qe(e.type);break;case 22:case 23:ye(e),oc(),t!==null&&E(wl);break;case 24:Qe(Ht)}}function mn(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var u=l.create,i=l.inst;a=u(),i.destroy=a}l=l.next}while(l!==n)}}catch(c){gt(e,e.return,c)}}function yl(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&t)===t){var i=a.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,n=e;var s=l,p=c;try{p()}catch(A){gt(n,s,A)}}}a=a.next}while(a!==u)}}catch(A){gt(e,e.return,A)}}function jr(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Ao(e,l)}catch(a){gt(t,t.return,a)}}}function Rr(t,e,l){l.props=Zl(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){gt(t,e,a)}}function vn(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){gt(t,e,n)}}function He(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){gt(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){gt(t,e,n)}else l.current=null}function Nr(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){gt(t,t.return,n)}}function Xc(t,e,l){try{var a=t.stateNode;Sg(a,t.type,l,e),a[te]=e}catch(n){gt(t,t.return,n)}}function Hr(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&xl(t.type)||t.tag===4}function Vc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Hr(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&xl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Qc(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=Ye));else if(a!==4&&(a===27&&xl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Qc(t,e,l),t=t.sibling;t!==null;)Qc(t,e,l),t=t.sibling}function Mu(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&xl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Mu(t,e,l),t=t.sibling;t!==null;)Mu(t,e,l),t=t.sibling}function Br(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Wt(e,a,l),e[Zt]=t,e[te]=l}catch(u){gt(t,t.return,u)}}var We=!1,Gt=!1,Zc=!1,qr=typeof WeakSet=="function"?WeakSet:Set,Vt=null;function Py(t,e){if(t=t.containerInfo,hf=Ju,t=ks(t),Gi(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break t}var i=0,c=-1,s=-1,p=0,A=0,z=t,b=null;e:for(;;){for(var x;z!==l||n!==0&&z.nodeType!==3||(c=i+n),z!==u||a!==0&&z.nodeType!==3||(s=i+a),z.nodeType===3&&(i+=z.nodeValue.length),(x=z.firstChild)!==null;)b=z,z=x;for(;;){if(z===t)break e;if(b===l&&++p===n&&(c=i),b===u&&++A===a&&(s=i),(x=z.nextSibling)!==null)break;z=b,b=z.parentNode}z=x}l=c===-1||s===-1?null:{start:c,end:s}}else l=null}l=l||{start:0,end:0}}else l=null;for(yf={focusedElem:t,selectionRange:l},Ju=!1,Vt=e;Vt!==null;)if(e=Vt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Vt=t;else for(;Vt!==null;){switch(e=Vt,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,l=e,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var B=Zl(l.type,n);t=a.getSnapshotBeforeUpdate(B,u),a.__reactInternalSnapshotBeforeUpdate=t}catch(V){gt(l,l.return,V)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)vf(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":vf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,Vt=t;break}Vt=e.return}}function Gr(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Fe(t,l),a&4&&mn(5,l);break;case 1:if(Fe(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(i){gt(l,l.return,i)}else{var n=Zl(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(i){gt(l,l.return,i)}}a&64&&jr(l),a&512&&vn(l,l.return);break;case 3:if(Fe(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{Ao(t,e)}catch(i){gt(l,l.return,i)}}break;case 27:e===null&&a&4&&Br(l);case 26:case 5:Fe(t,l),e===null&&a&4&&Nr(l),a&512&&vn(l,l.return);break;case 12:Fe(t,l);break;case 31:Fe(t,l),a&4&&Lr(t,l);break;case 13:Fe(t,l),a&4&&Xr(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=fg.bind(null,l),Cg(t,l))));break;case 22:if(a=l.memoizedState!==null||We,!a){e=e!==null&&e.memoizedState!==null||Gt,n=We;var u=Gt;We=a,(Gt=e)&&!u?Ie(t,l,(l.subtreeFlags&8772)!==0):Fe(t,l),We=n,Gt=u}break;case 30:break;default:Fe(t,l)}}function Yr(t){var e=t.alternate;e!==null&&(t.alternate=null,Yr(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&xi(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Et=null,le=!1;function $e(t,e,l){for(l=l.child;l!==null;)wr(t,e,l),l=l.sibling}function wr(t,e,l){if(se&&typeof se.onCommitFiberUnmount=="function")try{se.onCommitFiberUnmount(wa,l)}catch{}switch(l.tag){case 26:Gt||He(l,e),$e(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Gt||He(l,e);var a=Et,n=le;xl(l.type)&&(Et=l.stateNode,le=!1),$e(t,e,l),Mn(l.stateNode),Et=a,le=n;break;case 5:Gt||He(l,e);case 6:if(a=Et,n=le,Et=null,$e(t,e,l),Et=a,le=n,Et!==null)if(le)try{(Et.nodeType===9?Et.body:Et.nodeName==="HTML"?Et.ownerDocument.body:Et).removeChild(l.stateNode)}catch(u){gt(l,e,u)}else try{Et.removeChild(l.stateNode)}catch(u){gt(l,e,u)}break;case 18:Et!==null&&(le?(t=Et,jd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Ua(t)):jd(Et,l.stateNode));break;case 4:a=Et,n=le,Et=l.stateNode.containerInfo,le=!0,$e(t,e,l),Et=a,le=n;break;case 0:case 11:case 14:case 15:yl(2,l,e),Gt||yl(4,l,e),$e(t,e,l);break;case 1:Gt||(He(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Rr(l,e,a)),$e(t,e,l);break;case 21:$e(t,e,l);break;case 22:Gt=(a=Gt)||l.memoizedState!==null,$e(t,e,l),Gt=a;break;default:$e(t,e,l)}}function Lr(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ua(t)}catch(l){gt(e,e.return,l)}}}function Xr(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ua(t)}catch(l){gt(e,e.return,l)}}function tg(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new qr),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new qr),e;default:throw Error(o(435,t.tag))}}function _u(t,e){var l=tg(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=sg.bind(null,t,a);a.then(n,n)}})}function ae(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=t,i=e,c=i;t:for(;c!==null;){switch(c.tag){case 27:if(xl(c.type)){Et=c.stateNode,le=!1;break t}break;case 5:Et=c.stateNode,le=!1;break t;case 3:case 4:Et=c.stateNode.containerInfo,le=!0;break t}c=c.return}if(Et===null)throw Error(o(160));wr(u,i,n),Et=null,le=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Vr(e,t),e=e.sibling}var Ue=null;function Vr(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ae(e,t),ne(t),a&4&&(yl(3,t,t.return),mn(3,t),yl(5,t,t.return));break;case 1:ae(e,t),ne(t),a&512&&(Gt||l===null||He(l,l.return)),a&64&&We&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ue;if(ae(e,t),ne(t),a&512&&(Gt||l===null||He(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Va]||u[Zt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Wt(u,a,l),u[Zt]=t,Xt(u),a=u;break t;case"link":var i=Vd("link","href",n).get(a+(l.href||""));if(i){for(var c=0;c<i.length;c++)if(u=i[c],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){i.splice(c,1);break e}}u=n.createElement(a),Wt(u,a,l),n.head.appendChild(u);break;case"meta":if(i=Vd("meta","content",n).get(a+(l.content||""))){for(c=0;c<i.length;c++)if(u=i[c],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){i.splice(c,1);break e}}u=n.createElement(a),Wt(u,a,l),n.head.appendChild(u);break;default:throw Error(o(468,a))}u[Zt]=t,Xt(u),a=u}t.stateNode=a}else Qd(n,t.type,t.stateNode);else t.stateNode=Xd(n,a,t.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Qd(n,t.type,t.stateNode):Xd(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Xc(t,t.memoizedProps,l.memoizedProps)}break;case 27:ae(e,t),ne(t),a&512&&(Gt||l===null||He(l,l.return)),l!==null&&a&4&&Xc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(ae(e,t),ne(t),a&512&&(Gt||l===null||He(l,l.return)),t.flags&32){n=t.stateNode;try{ta(n,"")}catch(B){gt(t,t.return,B)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,Xc(t,n,l!==null?l.memoizedProps:n)),a&1024&&(Zc=!0);break;case 6:if(ae(e,t),ne(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(B){gt(t,t.return,B)}}break;case 3:if(Vu=null,n=Ue,Ue=Lu(e.containerInfo),ae(e,t),Ue=n,ne(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ua(e.containerInfo)}catch(B){gt(t,t.return,B)}Zc&&(Zc=!1,Qr(t));break;case 4:a=Ue,Ue=Lu(t.stateNode.containerInfo),ae(e,t),ne(t),Ue=a;break;case 12:ae(e,t),ne(t);break;case 31:ae(e,t),ne(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,_u(t,a)));break;case 13:ae(e,t),ne(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ou=fe()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,_u(t,a)));break;case 22:n=t.memoizedState!==null;var s=l!==null&&l.memoizedState!==null,p=We,A=Gt;if(We=p||n,Gt=A||s,ae(e,t),Gt=A,We=p,ne(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||s||We||Gt||Kl(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){s=l=e;try{if(u=s.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{c=s.stateNode;var z=s.memoizedProps.style,b=z!=null&&z.hasOwnProperty("display")?z.display:null;c.style.display=b==null||typeof b=="boolean"?"":(""+b).trim()}}catch(B){gt(s,s.return,B)}}}else if(e.tag===6){if(l===null){s=e;try{s.stateNode.nodeValue=n?"":s.memoizedProps}catch(B){gt(s,s.return,B)}}}else if(e.tag===18){if(l===null){s=e;try{var x=s.stateNode;n?Rd(x,!0):Rd(s.stateNode,!1)}catch(B){gt(s,s.return,B)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,_u(t,l))));break;case 19:ae(e,t),ne(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,_u(t,a)));break;case 30:break;case 21:break;default:ae(e,t),ne(t)}}function ne(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(Hr(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,u=Vc(t);Mu(t,u,n);break;case 5:var i=l.stateNode;l.flags&32&&(ta(i,""),l.flags&=-33);var c=Vc(t);Mu(t,c,i);break;case 3:case 4:var s=l.stateNode.containerInfo,p=Vc(t);Qc(t,p,s);break;default:throw Error(o(161))}}catch(A){gt(t,t.return,A)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Qr(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Qr(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Fe(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Gr(t,e.alternate,e),e=e.sibling}function Kl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:yl(4,e,e.return),Kl(e);break;case 1:He(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&Rr(e,e.return,l),Kl(e);break;case 27:Mn(e.stateNode);case 26:case 5:He(e,e.return),Kl(e);break;case 22:e.memoizedState===null&&Kl(e);break;case 30:Kl(e);break;default:Kl(e)}t=t.sibling}}function Ie(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,u=e,i=u.flags;switch(u.tag){case 0:case 11:case 15:Ie(n,u,l),mn(4,u);break;case 1:if(Ie(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(p){gt(a,a.return,p)}if(a=u,n=a.updateQueue,n!==null){var c=a.stateNode;try{var s=n.shared.hiddenCallbacks;if(s!==null)for(n.shared.hiddenCallbacks=null,n=0;n<s.length;n++)xo(s[n],c)}catch(p){gt(a,a.return,p)}}l&&i&64&&jr(u),vn(u,u.return);break;case 27:Br(u);case 26:case 5:Ie(n,u,l),l&&a===null&&i&4&&Nr(u),vn(u,u.return);break;case 12:Ie(n,u,l);break;case 31:Ie(n,u,l),l&&i&4&&Lr(n,u);break;case 13:Ie(n,u,l),l&&i&4&&Xr(n,u);break;case 22:u.memoizedState===null&&Ie(n,u,l),vn(u,u.return);break;case 30:break;default:Ie(n,u,l)}e=e.sibling}}function Kc(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&ln(l))}function Jc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ln(t))}function je(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zr(t,e,l,a),e=e.sibling}function Zr(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:je(t,e,l,a),n&2048&&mn(9,e);break;case 1:je(t,e,l,a);break;case 3:je(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ln(t)));break;case 12:if(n&2048){je(t,e,l,a),t=e.stateNode;try{var u=e.memoizedProps,i=u.id,c=u.onPostCommit;typeof c=="function"&&c(i,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(s){gt(e,e.return,s)}}else je(t,e,l,a);break;case 31:je(t,e,l,a);break;case 13:je(t,e,l,a);break;case 23:break;case 22:u=e.stateNode,i=e.alternate,e.memoizedState!==null?u._visibility&2?je(t,e,l,a):pn(t,e):u._visibility&2?je(t,e,l,a):(u._visibility|=2,Sa(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&Kc(i,e);break;case 24:je(t,e,l,a),n&2048&&Jc(e.alternate,e);break;default:je(t,e,l,a)}}function Sa(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,i=e,c=l,s=a,p=i.flags;switch(i.tag){case 0:case 11:case 15:Sa(u,i,c,s,n),mn(8,i);break;case 23:break;case 22:var A=i.stateNode;i.memoizedState!==null?A._visibility&2?Sa(u,i,c,s,n):pn(u,i):(A._visibility|=2,Sa(u,i,c,s,n)),n&&p&2048&&Kc(i.alternate,i);break;case 24:Sa(u,i,c,s,n),n&&p&2048&&Jc(i.alternate,i);break;default:Sa(u,i,c,s,n)}e=e.sibling}}function pn(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:pn(l,a),n&2048&&Kc(a.alternate,a);break;case 24:pn(l,a),n&2048&&Jc(a.alternate,a);break;default:pn(l,a)}e=e.sibling}}var bn=8192;function xa(t,e,l){if(t.subtreeFlags&bn)for(t=t.child;t!==null;)Kr(t,e,l),t=t.sibling}function Kr(t,e,l){switch(t.tag){case 26:xa(t,e,l),t.flags&bn&&t.memoizedState!==null&&wg(l,Ue,t.memoizedState,t.memoizedProps);break;case 5:xa(t,e,l);break;case 3:case 4:var a=Ue;Ue=Lu(t.stateNode.containerInfo),xa(t,e,l),Ue=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=bn,bn=16777216,xa(t,e,l),bn=a):xa(t,e,l));break;default:xa(t,e,l)}}function Jr(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Sn(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Vt=a,Wr(a,t)}Jr(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kr(t),t=t.sibling}function kr(t){switch(t.tag){case 0:case 11:case 15:Sn(t),t.flags&2048&&yl(9,t,t.return);break;case 3:Sn(t);break;case 12:Sn(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Cu(t)):Sn(t);break;default:Sn(t)}}function Cu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Vt=a,Wr(a,t)}Jr(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:yl(8,e,e.return),Cu(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Cu(e));break;default:Cu(e)}t=t.sibling}}function Wr(t,e){for(;Vt!==null;){var l=Vt;switch(l.tag){case 0:case 11:case 15:yl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ln(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Vt=a;else t:for(l=t;Vt!==null;){a=Vt;var n=a.sibling,u=a.return;if(Yr(a),a===l){Vt=null;break t}if(n!==null){n.return=u,Vt=n;break t}Vt=u}}}var eg={getCacheForType:function(t){var e=Jt(Ht),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return Jt(Ht).controller.signal}},lg=typeof WeakMap=="function"?WeakMap:Map,rt=0,xt=null,et=null,nt=0,yt=0,ge=null,gl=!1,Aa=!1,kc=!1,Pe=0,Ut=0,ml=0,Jl=0,Wc=0,me=0,Ta=0,xn=null,ue=null,$c=!1,Ou=0,$r=0,Du=1/0,Uu=null,vl=null,Yt=0,pl=null,za=null,tl=0,Fc=0,Ic=null,Fr=null,An=0,Pc=null;function ve(){return(rt&2)!==0&&nt!==0?nt&-nt:_.T!==null?uf():ds()}function Ir(){if(me===0)if((nt&536870912)===0||it){var t=Yn;Yn<<=1,(Yn&3932160)===0&&(Yn=262144),me=t}else me=536870912;return t=he.current,t!==null&&(t.flags|=32),me}function ie(t,e,l){(t===xt&&(yt===2||yt===9)||t.cancelPendingCommit!==null)&&(Ea(t,0),bl(t,nt,me,!1)),Xa(t,l),((rt&2)===0||t!==xt)&&(t===xt&&((rt&2)===0&&(Jl|=l),Ut===4&&bl(t,nt,me,!1)),Be(t))}function Pr(t,e,l){if((rt&6)!==0)throw Error(o(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||La(t,e),n=a?ug(t,e):ef(t,e,!0),u=a;do{if(n===0){Aa&&!a&&bl(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!ag(l)){n=ef(t,e,!1),u=!1;continue}if(n===2){if(u=e,t.errorRecoveryDisabledLanes&u)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){e=i;t:{var c=t;n=xn;var s=c.current.memoizedState.isDehydrated;if(s&&(Ea(c,i).flags|=256),i=ef(c,i,!1),i!==2){if(kc&&!s){c.errorRecoveryDisabledLanes|=u,Jl|=u,n=4;break t}u=ue,ue=n,u!==null&&(ue===null?ue=u:ue.push.apply(ue,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){Ea(t,0),bl(t,e,0,!0);break}t:{switch(a=t,u=n,u){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:bl(a,e,me,!gl);break t;case 2:ue=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(n=Ou+300-fe(),10<n)){if(bl(a,e,me,!gl),Ln(a,0,!0)!==0)break t;tl=e,a.timeoutHandle=Dd(td.bind(null,a,l,ue,Uu,$c,e,me,Jl,Ta,gl,u,"Throttled",-0,0),n);break t}td(a,l,ue,Uu,$c,e,me,Jl,Ta,gl,u,null,-0,0)}}break}while(!0);Be(t)}function td(t,e,l,a,n,u,i,c,s,p,A,z,b,x){if(t.timeoutHandle=-1,z=e.subtreeFlags,z&8192||(z&16785408)===16785408){z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ye},Kr(e,u,z);var B=(u&62914560)===u?Ou-fe():(u&4194048)===u?$r-fe():0;if(B=Lg(z,B),B!==null){tl=u,t.cancelPendingCommit=B(fd.bind(null,t,e,u,l,a,n,i,c,s,A,z,null,b,x)),bl(t,u,i,!p);return}}fd(t,e,u,l,a,n,i,c,s)}function ag(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!re(u(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function bl(t,e,l,a){e&=~Wc,e&=~Jl,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var u=31-oe(n),i=1<<u;a[u]=-1,n&=~i}l!==0&&ss(t,l,e)}function ju(){return(rt&6)===0?(Tn(0),!1):!0}function tf(){if(et!==null){if(yt===0)var t=et.return;else t=et,Ve=Gl=null,mc(t),ga=null,nn=0,t=et;for(;t!==null;)Ur(t.alternate,t),t=t.return;et=null}}function Ea(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Tg(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),tl=0,tf(),xt=t,et=l=Le(t.current,null),nt=e,yt=0,ge=null,gl=!1,Aa=La(t,e),kc=!1,Ta=me=Wc=Jl=ml=Ut=0,ue=xn=null,$c=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-oe(a),u=1<<n;e|=t[n],a&=~u}return Pe=e,Pn(),l}function ed(t,e){k=null,_.H=hn,e===ya||e===cu?(e=vo(),yt=3):e===nc?(e=vo(),yt=4):yt=e===jc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,ge=e,et===null&&(Ut=1,xu(t,Ae(e,t.current)))}function ld(){var t=he.current;return t===null?!0:(nt&4194048)===nt?Me===null:(nt&62914560)===nt||(nt&536870912)!==0?t===Me:!1}function ad(){var t=_.H;return _.H=hn,t===null?hn:t}function nd(){var t=_.A;return _.A=eg,t}function Ru(){Ut=4,gl||(nt&4194048)!==nt&&he.current!==null||(Aa=!0),(ml&134217727)===0&&(Jl&134217727)===0||xt===null||bl(xt,nt,me,!1)}function ef(t,e,l){var a=rt;rt|=2;var n=ad(),u=nd();(xt!==t||nt!==e)&&(Uu=null,Ea(t,e)),e=!1;var i=Ut;t:do try{if(yt!==0&&et!==null){var c=et,s=ge;switch(yt){case 8:tf(),i=6;break t;case 3:case 2:case 9:case 6:he.current===null&&(e=!0);var p=yt;if(yt=0,ge=null,Ma(t,c,s,p),l&&Aa){i=0;break t}break;default:p=yt,yt=0,ge=null,Ma(t,c,s,p)}}ng(),i=Ut;break}catch(A){ed(t,A)}while(!0);return e&&t.shellSuspendCounter++,Ve=Gl=null,rt=a,_.H=n,_.A=u,et===null&&(xt=null,nt=0,Pn()),i}function ng(){for(;et!==null;)ud(et)}function ug(t,e){var l=rt;rt|=2;var a=ad(),n=nd();xt!==t||nt!==e?(Uu=null,Du=fe()+500,Ea(t,e)):Aa=La(t,e);t:do try{if(yt!==0&&et!==null){e=et;var u=ge;e:switch(yt){case 1:yt=0,ge=null,Ma(t,e,u,1);break;case 2:case 9:if(go(u)){yt=0,ge=null,id(e);break}e=function(){yt!==2&&yt!==9||xt!==t||(yt=7),Be(t)},u.then(e,e);break t;case 3:yt=7;break t;case 4:yt=5;break t;case 7:go(u)?(yt=0,ge=null,id(e)):(yt=0,ge=null,Ma(t,e,u,7));break;case 5:var i=null;switch(et.tag){case 26:i=et.memoizedState;case 5:case 27:var c=et;if(i?Zd(i):c.stateNode.complete){yt=0,ge=null;var s=c.sibling;if(s!==null)et=s;else{var p=c.return;p!==null?(et=p,Nu(p)):et=null}break e}}yt=0,ge=null,Ma(t,e,u,5);break;case 6:yt=0,ge=null,Ma(t,e,u,6);break;case 8:tf(),Ut=6;break t;default:throw Error(o(462))}}ig();break}catch(A){ed(t,A)}while(!0);return Ve=Gl=null,_.H=a,_.A=n,rt=l,et!==null?0:(xt=null,nt=0,Pn(),Ut)}function ig(){for(;et!==null&&!Oh();)ud(et)}function ud(t){var e=Or(t.alternate,t,Pe);t.memoizedProps=t.pendingProps,e===null?Nu(t):et=e}function id(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=Tr(l,e,e.pendingProps,e.type,void 0,nt);break;case 11:e=Tr(l,e,e.pendingProps,e.type.render,e.ref,nt);break;case 5:mc(e);default:Ur(l,e),e=et=ao(e,Pe),e=Or(l,e,Pe)}t.memoizedProps=t.pendingProps,e===null?Nu(t):et=e}function Ma(t,e,l,a){Ve=Gl=null,mc(e),ga=null,nn=0;var n=e.return;try{if(ky(t,n,e,l,nt)){Ut=1,xu(t,Ae(l,t.current)),et=null;return}}catch(u){if(n!==null)throw et=n,u;Ut=1,xu(t,Ae(l,t.current)),et=null;return}e.flags&32768?(it||a===1?t=!0:Aa||(nt&536870912)!==0?t=!1:(gl=t=!0,(a===2||a===9||a===3||a===6)&&(a=he.current,a!==null&&a.tag===13&&(a.flags|=16384))),cd(e,t)):Nu(e)}function Nu(t){var e=t;do{if((e.flags&32768)!==0){cd(e,gl);return}t=e.return;var l=Fy(e.alternate,e,Pe);if(l!==null){et=l;return}if(e=e.sibling,e!==null){et=e;return}et=e=t}while(e!==null);Ut===0&&(Ut=5)}function cd(t,e){do{var l=Iy(t.alternate,t);if(l!==null){l.flags&=32767,et=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){et=t;return}et=t=l}while(t!==null);Ut=6,et=null}function fd(t,e,l,a,n,u,i,c,s){t.cancelPendingCommit=null;do Hu();while(Yt!==0);if((rt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(u=e.lanes|e.childLanes,u|=Vi,Yh(t,l,u,i,c,s),t===xt&&(et=xt=null,nt=0),za=e,pl=t,tl=l,Fc=u,Ic=n,Fr=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,og(qn,function(){return hd(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=_.T,_.T=null,n=j.p,j.p=2,i=rt,rt|=4;try{Py(t,e,l)}finally{rt=i,j.p=n,_.T=a}}Yt=1,sd(),od(),rd()}}function sd(){if(Yt===1){Yt=0;var t=pl,e=za,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=_.T,_.T=null;var a=j.p;j.p=2;var n=rt;rt|=4;try{Vr(e,t);var u=yf,i=ks(t.containerInfo),c=u.focusedElem,s=u.selectionRange;if(i!==c&&c&&c.ownerDocument&&Js(c.ownerDocument.documentElement,c)){if(s!==null&&Gi(c)){var p=s.start,A=s.end;if(A===void 0&&(A=p),"selectionStart"in c)c.selectionStart=p,c.selectionEnd=Math.min(A,c.value.length);else{var z=c.ownerDocument||document,b=z&&z.defaultView||window;if(b.getSelection){var x=b.getSelection(),B=c.textContent.length,V=Math.min(s.start,B),pt=s.end===void 0?V:Math.min(s.end,B);!x.extend&&V>pt&&(i=pt,pt=V,V=i);var y=Ks(c,V),r=Ks(c,pt);if(y&&r&&(x.rangeCount!==1||x.anchorNode!==y.node||x.anchorOffset!==y.offset||x.focusNode!==r.node||x.focusOffset!==r.offset)){var m=z.createRange();m.setStart(y.node,y.offset),x.removeAllRanges(),V>pt?(x.addRange(m),x.extend(r.node,r.offset)):(m.setEnd(r.node,r.offset),x.addRange(m))}}}}for(z=[],x=c;x=x.parentNode;)x.nodeType===1&&z.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<z.length;c++){var T=z[c];T.element.scrollLeft=T.left,T.element.scrollTop=T.top}}Ju=!!hf,yf=hf=null}finally{rt=n,j.p=a,_.T=l}}t.current=e,Yt=2}}function od(){if(Yt===2){Yt=0;var t=pl,e=za,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=_.T,_.T=null;var a=j.p;j.p=2;var n=rt;rt|=4;try{Gr(t,e.alternate,e)}finally{rt=n,j.p=a,_.T=l}}Yt=3}}function rd(){if(Yt===4||Yt===3){Yt=0,Dh();var t=pl,e=za,l=tl,a=Fr;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Yt=5:(Yt=0,za=pl=null,dd(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(vl=null),bi(l),e=e.stateNode,se&&typeof se.onCommitFiberRoot=="function")try{se.onCommitFiberRoot(wa,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=_.T,n=j.p,j.p=2,_.T=null;try{for(var u=t.onRecoverableError,i=0;i<a.length;i++){var c=a[i];u(c.value,{componentStack:c.stack})}}finally{_.T=e,j.p=n}}(tl&3)!==0&&Hu(),Be(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===Pc?An++:(An=0,Pc=t):An=0,Tn(0)}}function dd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ln(e)))}function Hu(){return sd(),od(),rd(),hd()}function hd(){if(Yt!==5)return!1;var t=pl,e=Fc;Fc=0;var l=bi(tl),a=_.T,n=j.p;try{j.p=32>l?32:l,_.T=null,l=Ic,Ic=null;var u=pl,i=tl;if(Yt=0,za=pl=null,tl=0,(rt&6)!==0)throw Error(o(331));var c=rt;if(rt|=4,kr(u.current),Zr(u,u.current,i,l),rt=c,Tn(0,!1),se&&typeof se.onPostCommitFiberRoot=="function")try{se.onPostCommitFiberRoot(wa,u)}catch{}return!0}finally{j.p=n,_.T=a,dd(t,e)}}function yd(t,e,l){e=Ae(l,e),e=Uc(t.stateNode,e,2),t=rl(t,e,2),t!==null&&(Xa(t,2),Be(t))}function gt(t,e,l){if(t.tag===3)yd(t,t,l);else for(;e!==null;){if(e.tag===3){yd(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(vl===null||!vl.has(a))){t=Ae(l,t),l=gr(2),a=rl(e,l,2),a!==null&&(mr(l,a,e,t),Xa(a,2),Be(a));break}}e=e.return}}function lf(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new lg;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(kc=!0,n.add(l),t=cg.bind(null,t,e,l),e.then(t,t))}function cg(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,xt===t&&(nt&l)===l&&(Ut===4||Ut===3&&(nt&62914560)===nt&&300>fe()-Ou?(rt&2)===0&&Ea(t,0):Wc|=l,Ta===nt&&(Ta=0)),Be(t)}function gd(t,e){e===0&&(e=fs()),t=Hl(t,e),t!==null&&(Xa(t,e),Be(t))}function fg(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),gd(t,l)}function sg(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),gd(t,l)}function og(t,e){return gi(t,e)}var Bu=null,_a=null,af=!1,qu=!1,nf=!1,Sl=0;function Be(t){t!==_a&&t.next===null&&(_a===null?Bu=_a=t:_a=_a.next=t),qu=!0,af||(af=!0,dg())}function Tn(t,e){if(!nf&&qu){nf=!0;do for(var l=!1,a=Bu;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,c=a.pingedLanes;u=(1<<31-oe(42|t)+1)-1,u&=n&~(i&~c),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,bd(a,u))}else u=nt,u=Ln(a,a===xt?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||La(a,u)||(l=!0,bd(a,u));a=a.next}while(l);nf=!1}}function rg(){md()}function md(){qu=af=!1;var t=0;Sl!==0&&Ag()&&(t=Sl);for(var e=fe(),l=null,a=Bu;a!==null;){var n=a.next,u=vd(a,e);u===0?(a.next=null,l===null?Bu=n:l.next=n,n===null&&(_a=l)):(l=a,(t!==0||(u&3)!==0)&&(qu=!0)),a=n}Yt!==0&&Yt!==5||Tn(t),Sl!==0&&(Sl=0)}function vd(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var i=31-oe(u),c=1<<i,s=n[i];s===-1?((c&l)===0||(c&a)!==0)&&(n[i]=Gh(c,e)):s<=e&&(t.expiredLanes|=c),u&=~c}if(e=xt,l=nt,l=Ln(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(yt===2||yt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&mi(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||La(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&mi(a),bi(l)){case 2:case 8:l=is;break;case 32:l=qn;break;case 268435456:l=cs;break;default:l=qn}return a=pd.bind(null,t),l=gi(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&mi(a),t.callbackPriority=2,t.callbackNode=null,2}function pd(t,e){if(Yt!==0&&Yt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Hu()&&t.callbackNode!==l)return null;var a=nt;return a=Ln(t,t===xt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(Pr(t,a,e),vd(t,fe()),t.callbackNode!=null&&t.callbackNode===l?pd.bind(null,t):null)}function bd(t,e){if(Hu())return null;Pr(t,e,!0)}function dg(){zg(function(){(rt&6)!==0?gi(us,rg):md()})}function uf(){if(Sl===0){var t=da;t===0&&(t=Gn,Gn<<=1,(Gn&261888)===0&&(Gn=256)),Sl=t}return Sl}function Sd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Zn(""+t)}function xd(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function hg(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var u=Sd((n[te]||null).action),i=a.submitter;i&&(e=(e=i[te]||null)?Sd(e.formAction):i.getAttribute("formAction"),e!==null&&(u=e,i=null));var c=new Wn("action","action",null,a,n);t.push({event:c,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Sl!==0){var s=i?xd(n,i):new FormData(n);Ec(l,{pending:!0,data:s,method:n.method,action:u},null,s)}}else typeof u=="function"&&(c.preventDefault(),s=i?xd(n,i):new FormData(n),Ec(l,{pending:!0,data:s,method:n.method,action:u},u,s))},currentTarget:n}]})}}for(var cf=0;cf<Xi.length;cf++){var ff=Xi[cf],yg=ff.toLowerCase(),gg=ff[0].toUpperCase()+ff.slice(1);De(yg,"on"+gg)}De(Fs,"onAnimationEnd"),De(Is,"onAnimationIteration"),De(Ps,"onAnimationStart"),De("dblclick","onDoubleClick"),De("focusin","onFocus"),De("focusout","onBlur"),De(Uy,"onTransitionRun"),De(jy,"onTransitionStart"),De(Ry,"onTransitionCancel"),De(to,"onTransitionEnd"),Il("onMouseEnter",["mouseout","mouseover"]),Il("onMouseLeave",["mouseout","mouseover"]),Il("onPointerEnter",["pointerout","pointerover"]),Il("onPointerLeave",["pointerout","pointerover"]),Ul("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ul("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ul("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ul("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ul("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ul("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zn="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(" "),mg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zn));function Ad(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var u=void 0;if(e)for(var i=a.length-1;0<=i;i--){var c=a[i],s=c.instance,p=c.currentTarget;if(c=c.listener,s!==u&&n.isPropagationStopped())break t;u=c,n.currentTarget=p;try{u(n)}catch(A){In(A)}n.currentTarget=null,u=s}else for(i=0;i<a.length;i++){if(c=a[i],s=c.instance,p=c.currentTarget,c=c.listener,s!==u&&n.isPropagationStopped())break t;u=c,n.currentTarget=p;try{u(n)}catch(A){In(A)}n.currentTarget=null,u=s}}}}function lt(t,e){var l=e[Si];l===void 0&&(l=e[Si]=new Set);var a=t+"__bubble";l.has(a)||(Td(e,t,2,!1),l.add(a))}function sf(t,e,l){var a=0;e&&(a|=4),Td(l,t,a,e)}var Gu="_reactListening"+Math.random().toString(36).slice(2);function of(t){if(!t[Gu]){t[Gu]=!0,gs.forEach(function(l){l!=="selectionchange"&&(mg.has(l)||sf(l,!1,t),sf(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Gu]||(e[Gu]=!0,sf("selectionchange",!1,e))}}function Td(t,e,l,a){switch(Id(e)){case 2:var n=Qg;break;case 8:n=Zg;break;default:n=Ef}l=n.bind(null,e,l,t),n=void 0,!Oi||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function rf(t,e,l,a,n){var u=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var c=a.stateNode.containerInfo;if(c===n)break;if(i===4)for(i=a.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;c!==null;){if(i=Wl(c),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){a=u=i;continue t}c=c.parentNode}}a=a.return}_s(function(){var p=u,A=_i(l),z=[];t:{var b=eo.get(t);if(b!==void 0){var x=Wn,B=t;switch(t){case"keypress":if(Jn(l)===0)break t;case"keydown":case"keyup":x=sy;break;case"focusin":B="focus",x=Ri;break;case"focusout":B="blur",x=Ri;break;case"beforeblur":case"afterblur":x=Ri;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=Ds;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=Fh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=dy;break;case Fs:case Is:case Ps:x=ty;break;case to:x=yy;break;case"scroll":case"scrollend":x=Wh;break;case"wheel":x=my;break;case"copy":case"cut":case"paste":x=ly;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=js;break;case"toggle":case"beforetoggle":x=py}var V=(e&4)!==0,pt=!V&&(t==="scroll"||t==="scrollend"),y=V?b!==null?b+"Capture":null:b;V=[];for(var r=p,m;r!==null;){var T=r;if(m=T.stateNode,T=T.tag,T!==5&&T!==26&&T!==27||m===null||y===null||(T=Za(r,y),T!=null&&V.push(En(r,T,m))),pt)break;r=r.return}0<V.length&&(b=new x(b,B,null,l,A),z.push({event:b,listeners:V}))}}if((e&7)===0){t:{if(b=t==="mouseover"||t==="pointerover",x=t==="mouseout"||t==="pointerout",b&&l!==Mi&&(B=l.relatedTarget||l.fromElement)&&(Wl(B)||B[kl]))break t;if((x||b)&&(b=A.window===A?A:(b=A.ownerDocument)?b.defaultView||b.parentWindow:window,x?(B=l.relatedTarget||l.toElement,x=p,B=B?Wl(B):null,B!==null&&(pt=N(B),V=B.tag,B!==pt||V!==5&&V!==27&&V!==6)&&(B=null)):(x=null,B=p),x!==B)){if(V=Ds,T="onMouseLeave",y="onMouseEnter",r="mouse",(t==="pointerout"||t==="pointerover")&&(V=js,T="onPointerLeave",y="onPointerEnter",r="pointer"),pt=x==null?b:Qa(x),m=B==null?b:Qa(B),b=new V(T,r+"leave",x,l,A),b.target=pt,b.relatedTarget=m,T=null,Wl(A)===p&&(V=new V(y,r+"enter",B,l,A),V.target=m,V.relatedTarget=pt,T=V),pt=T,x&&B)e:{for(V=vg,y=x,r=B,m=0,T=y;T;T=V(T))m++;T=0;for(var L=r;L;L=V(L))T++;for(;0<m-T;)y=V(y),m--;for(;0<T-m;)r=V(r),T--;for(;m--;){if(y===r||r!==null&&y===r.alternate){V=y;break e}y=V(y),r=V(r)}V=null}else V=null;x!==null&&zd(z,b,x,V,!1),B!==null&&pt!==null&&zd(z,pt,B,V,!0)}}t:{if(b=p?Qa(p):window,x=b.nodeName&&b.nodeName.toLowerCase(),x==="select"||x==="input"&&b.type==="file")var st=ws;else if(Gs(b))if(Ls)st=Cy;else{st=My;var q=Ey}else x=b.nodeName,!x||x.toLowerCase()!=="input"||b.type!=="checkbox"&&b.type!=="radio"?p&&Ei(p.elementType)&&(st=ws):st=_y;if(st&&(st=st(t,p))){Ys(z,st,l,A);break t}q&&q(t,b,p),t==="focusout"&&p&&b.type==="number"&&p.memoizedProps.value!=null&&zi(b,"number",b.value)}switch(q=p?Qa(p):window,t){case"focusin":(Gs(q)||q.contentEditable==="true")&&(na=q,Yi=p,Pa=null);break;case"focusout":Pa=Yi=na=null;break;case"mousedown":wi=!0;break;case"contextmenu":case"mouseup":case"dragend":wi=!1,Ws(z,l,A);break;case"selectionchange":if(Dy)break;case"keydown":case"keyup":Ws(z,l,A)}var W;if(Hi)t:{switch(t){case"compositionstart":var ut="onCompositionStart";break t;case"compositionend":ut="onCompositionEnd";break t;case"compositionupdate":ut="onCompositionUpdate";break t}ut=void 0}else aa?Bs(t,l)&&(ut="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(ut="onCompositionStart");ut&&(Rs&&l.locale!=="ko"&&(aa||ut!=="onCompositionStart"?ut==="onCompositionEnd"&&aa&&(W=Cs()):(nl=A,Di="value"in nl?nl.value:nl.textContent,aa=!0)),q=Yu(p,ut),0<q.length&&(ut=new Us(ut,t,null,l,A),z.push({event:ut,listeners:q}),W?ut.data=W:(W=qs(l),W!==null&&(ut.data=W)))),(W=Sy?xy(t,l):Ay(t,l))&&(ut=Yu(p,"onBeforeInput"),0<ut.length&&(q=new Us("onBeforeInput","beforeinput",null,l,A),z.push({event:q,listeners:ut}),q.data=W)),hg(z,t,p,l,A)}Ad(z,e)})}function En(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Yu(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Za(t,l),n!=null&&a.unshift(En(t,n,u)),n=Za(t,e),n!=null&&a.push(En(t,n,u))),t.tag===3)return a;t=t.return}return[]}function vg(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function zd(t,e,l,a,n){for(var u=e._reactName,i=[];l!==null&&l!==a;){var c=l,s=c.alternate,p=c.stateNode;if(c=c.tag,s!==null&&s===a)break;c!==5&&c!==26&&c!==27||p===null||(s=p,n?(p=Za(l,u),p!=null&&i.unshift(En(l,p,s))):n||(p=Za(l,u),p!=null&&i.push(En(l,p,s)))),l=l.return}i.length!==0&&t.push({event:e,listeners:i})}var pg=/\r\n?/g,bg=/\u0000|\uFFFD/g;function Ed(t){return(typeof t=="string"?t:""+t).replace(pg,`
322
+ `).replace(bg,"")}function Md(t,e){return e=Ed(e),Ed(t)===e}function vt(t,e,l,a,n,u){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||ta(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&ta(t,""+a);break;case"className":Vn(t,"class",a);break;case"tabIndex":Vn(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Vn(t,l,a);break;case"style":Es(t,a,u);break;case"data":if(e!=="object"){Vn(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Zn(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.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 u=="function"&&(l==="formAction"?(e!=="input"&&vt(t,e,"name",n.name,n,null),vt(t,e,"formEncType",n.formEncType,n,null),vt(t,e,"formMethod",n.formMethod,n,null),vt(t,e,"formTarget",n.formTarget,n,null)):(vt(t,e,"encType",n.encType,n,null),vt(t,e,"method",n.method,n,null),vt(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Zn(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=Ye);break;case"onScroll":a!=null&&lt("scroll",t);break;case"onScrollEnd":a!=null&&lt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=Zn(""+a),t.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":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.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":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":lt("beforetoggle",t),lt("toggle",t),Xn(t,"popover",a);break;case"xlinkActuate":Ge(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ge(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ge(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ge(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ge(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ge(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ge(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ge(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ge(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Xn(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Jh.get(l)||l,Xn(t,l,a))}}function df(t,e,l,a,n,u){switch(l){case"style":Es(t,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=l}}break;case"children":typeof a=="string"?ta(t,a):(typeof a=="number"||typeof a=="bigint")&&ta(t,""+a);break;case"onScroll":a!=null&&lt("scroll",t);break;case"onScrollEnd":a!=null&&lt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Ye);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ms.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),u=t[te]||null,u=u!=null?u[l]:null,typeof u=="function"&&t.removeEventListener(e,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):Xn(t,l,a)}}}function Wt(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":lt("error",t),lt("load",t);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:vt(t,e,u,i,l,null)}}n&&vt(t,e,"srcSet",l.srcSet,l,null),a&&vt(t,e,"src",l.src,l,null);return;case"input":lt("invalid",t);var c=u=i=n=null,s=null,p=null;for(a in l)if(l.hasOwnProperty(a)){var A=l[a];if(A!=null)switch(a){case"name":n=A;break;case"type":i=A;break;case"checked":s=A;break;case"defaultChecked":p=A;break;case"value":u=A;break;case"defaultValue":c=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,e));break;default:vt(t,e,a,A,l,null)}}xs(t,u,c,s,p,i,n,!1);return;case"select":lt("invalid",t),a=i=u=null;for(n in l)if(l.hasOwnProperty(n)&&(c=l[n],c!=null))switch(n){case"value":u=c;break;case"defaultValue":i=c;break;case"multiple":a=c;default:vt(t,e,n,c,l,null)}e=u,l=i,t.multiple=!!a,e!=null?Pl(t,!!a,e,!1):l!=null&&Pl(t,!!a,l,!0);return;case"textarea":lt("invalid",t),u=n=a=null;for(i in l)if(l.hasOwnProperty(i)&&(c=l[i],c!=null))switch(i){case"value":a=c;break;case"defaultValue":n=c;break;case"children":u=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:vt(t,e,i,c,l,null)}Ts(t,a,n,u);return;case"option":for(s in l)l.hasOwnProperty(s)&&(a=l[s],a!=null)&&(s==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":vt(t,e,s,a,l,null));return;case"dialog":lt("beforetoggle",t),lt("toggle",t),lt("cancel",t),lt("close",t);break;case"iframe":case"object":lt("load",t);break;case"video":case"audio":for(a=0;a<zn.length;a++)lt(zn[a],t);break;case"image":lt("error",t),lt("load",t);break;case"details":lt("toggle",t);break;case"embed":case"source":case"link":lt("error",t),lt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(p in l)if(l.hasOwnProperty(p)&&(a=l[p],a!=null))switch(p){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:vt(t,e,p,a,l,null)}return;default:if(Ei(e)){for(A in l)l.hasOwnProperty(A)&&(a=l[A],a!==void 0&&df(t,e,A,a,l,void 0));return}}for(c in l)l.hasOwnProperty(c)&&(a=l[c],a!=null&&vt(t,e,c,a,l,null))}function Sg(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,c=null,s=null,p=null,A=null;for(x in l){var z=l[x];if(l.hasOwnProperty(x)&&z!=null)switch(x){case"checked":break;case"value":break;case"defaultValue":s=z;default:a.hasOwnProperty(x)||vt(t,e,x,null,a,z)}}for(var b in a){var x=a[b];if(z=l[b],a.hasOwnProperty(b)&&(x!=null||z!=null))switch(b){case"type":u=x;break;case"name":n=x;break;case"checked":p=x;break;case"defaultChecked":A=x;break;case"value":i=x;break;case"defaultValue":c=x;break;case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(o(137,e));break;default:x!==z&&vt(t,e,b,x,a,z)}}Ti(t,i,c,s,p,A,u,n);return;case"select":x=i=c=b=null;for(u in l)if(s=l[u],l.hasOwnProperty(u)&&s!=null)switch(u){case"value":break;case"multiple":x=s;default:a.hasOwnProperty(u)||vt(t,e,u,null,a,s)}for(n in a)if(u=a[n],s=l[n],a.hasOwnProperty(n)&&(u!=null||s!=null))switch(n){case"value":b=u;break;case"defaultValue":c=u;break;case"multiple":i=u;default:u!==s&&vt(t,e,n,u,a,s)}e=c,l=i,a=x,b!=null?Pl(t,!!l,b,!1):!!a!=!!l&&(e!=null?Pl(t,!!l,e,!0):Pl(t,!!l,l?[]:"",!1));return;case"textarea":x=b=null;for(c in l)if(n=l[c],l.hasOwnProperty(c)&&n!=null&&!a.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:vt(t,e,c,null,a,n)}for(i in a)if(n=a[i],u=l[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":b=n;break;case"defaultValue":x=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&vt(t,e,i,n,a,u)}As(t,b,x);return;case"option":for(var B in l)b=l[B],l.hasOwnProperty(B)&&b!=null&&!a.hasOwnProperty(B)&&(B==="selected"?t.selected=!1:vt(t,e,B,null,a,b));for(s in a)b=a[s],x=l[s],a.hasOwnProperty(s)&&b!==x&&(b!=null||x!=null)&&(s==="selected"?t.selected=b&&typeof b!="function"&&typeof b!="symbol":vt(t,e,s,b,a,x));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 V in l)b=l[V],l.hasOwnProperty(V)&&b!=null&&!a.hasOwnProperty(V)&&vt(t,e,V,null,a,b);for(p in a)if(b=a[p],x=l[p],a.hasOwnProperty(p)&&b!==x&&(b!=null||x!=null))switch(p){case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(137,e));break;default:vt(t,e,p,b,a,x)}return;default:if(Ei(e)){for(var pt in l)b=l[pt],l.hasOwnProperty(pt)&&b!==void 0&&!a.hasOwnProperty(pt)&&df(t,e,pt,void 0,a,b);for(A in a)b=a[A],x=l[A],!a.hasOwnProperty(A)||b===x||b===void 0&&x===void 0||df(t,e,A,b,a,x);return}}for(var y in l)b=l[y],l.hasOwnProperty(y)&&b!=null&&!a.hasOwnProperty(y)&&vt(t,e,y,null,a,b);for(z in a)b=a[z],x=l[z],!a.hasOwnProperty(z)||b===x||b==null&&x==null||vt(t,e,z,b,a,x)}function _d(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function xg(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,i=n.initiatorType,c=n.duration;if(u&&c&&_d(i)){for(i=0,c=n.responseEnd,a+=1;a<l.length;a++){var s=l[a],p=s.startTime;if(p>c)break;var A=s.transferSize,z=s.initiatorType;A&&_d(z)&&(s=s.responseEnd,i+=A*(s<c?1:(c-p)/(s-p)))}if(--a,e+=8*(u+i)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var hf=null,yf=null;function wu(t){return t.nodeType===9?t:t.ownerDocument}function Cd(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Od(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function gf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var mf=null;function Ag(){var t=window.event;return t&&t.type==="popstate"?t===mf?!1:(mf=t,!0):(mf=null,!1)}var Dd=typeof setTimeout=="function"?setTimeout:void 0,Tg=typeof clearTimeout=="function"?clearTimeout:void 0,Ud=typeof Promise=="function"?Promise:void 0,zg=typeof queueMicrotask=="function"?queueMicrotask:typeof Ud<"u"?function(t){return Ud.resolve(null).then(t).catch(Eg)}:Dd;function Eg(t){setTimeout(function(){throw t})}function xl(t){return t==="head"}function jd(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),Ua(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Mn(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Mn(l);for(var u=l.firstChild;u;){var i=u.nextSibling,c=u.nodeName;u[Va]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&Mn(t.ownerDocument.body);l=n}while(l);Ua(e)}function Rd(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function vf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":vf(l),xi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function Mg(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Va])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=_e(t.nextSibling),t===null)break}return null}function _g(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=_e(t.nextSibling),t===null))return null;return t}function Nd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=_e(t.nextSibling),t===null))return null;return t}function pf(t){return t.data==="$?"||t.data==="$~"}function bf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Cg(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function _e(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Sf=null;function Hd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return _e(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function Bd(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function qd(t,e,l){switch(e=wu(l),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function Mn(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);xi(t)}var Ce=new Map,Gd=new Set;function Lu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var el=j.d;j.d={f:Og,r:Dg,D:Ug,C:jg,L:Rg,m:Ng,X:Bg,S:Hg,M:qg};function Og(){var t=el.f(),e=ju();return t||e}function Dg(t){var e=$l(t);e!==null&&e.tag===5&&e.type==="form"?er(e):el.r(t)}var Ca=typeof document>"u"?null:document;function Yd(t,e,l){var a=Ca;if(a&&typeof e=="string"&&e){var n=Se(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Gd.has(n)||(Gd.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),Wt(e,"link",t),Xt(e),a.head.appendChild(e)))}}function Ug(t){el.D(t),Yd("dns-prefetch",t,null)}function jg(t,e){el.C(t,e),Yd("preconnect",t,e)}function Rg(t,e,l){el.L(t,e,l);var a=Ca;if(a&&t&&e){var n='link[rel="preload"][as="'+Se(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Se(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Se(l.imageSizes)+'"]')):n+='[href="'+Se(t)+'"]';var u=n;switch(e){case"style":u=Oa(t);break;case"script":u=Da(t)}Ce.has(u)||(t=H({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Ce.set(u,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(_n(u))||e==="script"&&a.querySelector(Cn(u))||(e=a.createElement("link"),Wt(e,"link",t),Xt(e),a.head.appendChild(e)))}}function Ng(t,e){el.m(t,e);var l=Ca;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+Se(a)+'"][href="'+Se(t)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Da(t)}if(!Ce.has(u)&&(t=H({rel:"modulepreload",href:t},e),Ce.set(u,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Cn(u)))return}a=l.createElement("link"),Wt(a,"link",t),Xt(a),l.head.appendChild(a)}}}function Hg(t,e,l){el.S(t,e,l);var a=Ca;if(a&&t){var n=Fl(a).hoistableStyles,u=Oa(t);e=e||"default";var i=n.get(u);if(!i){var c={loading:0,preload:null};if(i=a.querySelector(_n(u)))c.loading=5;else{t=H({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Ce.get(u))&&xf(t,l);var s=i=a.createElement("link");Xt(s),Wt(s,"link",t),s._p=new Promise(function(p,A){s.onload=p,s.onerror=A}),s.addEventListener("load",function(){c.loading|=1}),s.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Xu(i,e,a)}i={type:"stylesheet",instance:i,count:1,state:c},n.set(u,i)}}}function Bg(t,e){el.X(t,e);var l=Ca;if(l&&t){var a=Fl(l).hoistableScripts,n=Da(t),u=a.get(n);u||(u=l.querySelector(Cn(n)),u||(t=H({src:t,async:!0},e),(e=Ce.get(n))&&Af(t,e),u=l.createElement("script"),Xt(u),Wt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function qg(t,e){el.M(t,e);var l=Ca;if(l&&t){var a=Fl(l).hoistableScripts,n=Da(t),u=a.get(n);u||(u=l.querySelector(Cn(n)),u||(t=H({src:t,async:!0,type:"module"},e),(e=Ce.get(n))&&Af(t,e),u=l.createElement("script"),Xt(u),Wt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function wd(t,e,l,a){var n=(n=tt.current)?Lu(n):null;if(!n)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Oa(l.href),l=Fl(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Oa(l.href);var u=Fl(n).hoistableStyles,i=u.get(t);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,i),(u=n.querySelector(_n(t)))&&!u._p&&(i.instance=u,i.state.loading=5),Ce.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ce.set(t,l),u||Gg(n,t,l,i.state))),e&&a===null)throw Error(o(528,""));return i}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Da(l),l=Fl(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Oa(t){return'href="'+Se(t)+'"'}function _n(t){return'link[rel="stylesheet"]['+t+"]"}function Ld(t){return H({},t,{"data-precedence":t.precedence,precedence:null})}function Gg(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Wt(e,"link",l),Xt(e),t.head.appendChild(e))}function Da(t){return'[src="'+Se(t)+'"]'}function Cn(t){return"script[async]"+t}function Xd(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Se(l.href)+'"]');if(a)return e.instance=a,Xt(a),a;var n=H({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Xt(a),Wt(a,"style",n),Xu(a,l.precedence,t),e.instance=a;case"stylesheet":n=Oa(l.href);var u=t.querySelector(_n(n));if(u)return e.state.loading|=4,e.instance=u,Xt(u),u;a=Ld(l),(n=Ce.get(n))&&xf(a,n),u=(t.ownerDocument||t).createElement("link"),Xt(u);var i=u;return i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),Wt(u,"link",a),e.state.loading|=4,Xu(u,l.precedence,t),e.instance=u;case"script":return u=Da(l.src),(n=t.querySelector(Cn(u)))?(e.instance=n,Xt(n),n):(a=l,(n=Ce.get(u))&&(a=H({},l),Af(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Xt(n),Wt(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Xu(a,l.precedence,t));return e.instance}function Xu(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var c=a[i];if(c.dataset.precedence===e)u=c;else if(u!==n)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function xf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Af(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Vu=null;function Vd(t,e,l){if(Vu===null){var a=new Map,n=Vu=new Map;n.set(l,a)}else n=Vu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var u=l[n];if(!(u[Va]||u[Zt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(e)||"";i=t+i;var c=a.get(i);c?c.push(u):a.set(i,[u])}}return a}function Qd(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function Yg(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Zd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function wg(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Oa(a.href),u=e.querySelector(_n(n));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Qu.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=u,Xt(u);return}u=e.ownerDocument||e,a=Ld(a),(n=Ce.get(n))&&xf(a,n),u=u.createElement("link"),Xt(u);var i=u;i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),Wt(u,"link",a),l.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Qu.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Tf=0;function Lg(t,e){return t.stylesheets&&t.count===0&&Ku(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&Ku(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Tf===0&&(Tf=62500*xg());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ku(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Tf?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Qu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ku(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Zu=null;function Ku(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Zu=new Map,e.forEach(Xg,t),Zu=null,Qu.call(t))}function Xg(t,e){if(!(e.state.loading&4)){var l=Zu.get(t);if(l)var a=l.get(null);else{l=new Map,Zu.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),a=i)}a&&l.set(null,a)}n=e.instance,i=n.getAttribute("data-precedence"),u=l.get(i)||a,u===a&&l.set(null,n),l.set(i,n),this.count++,a=Qu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var On={$$typeof:ct,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function Vg(t,e,l,a,n,u,i,c,s){this.tag=1,this.containerInfo=t,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=vi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vi(0),this.hiddenUpdates=vi(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function Kd(t,e,l,a,n,u,i,c,s,p,A,z){return t=new Vg(t,e,l,i,s,p,A,z,c),e=1,u===!0&&(e|=24),u=de(3,null,null,e),t.current=u,u.stateNode=t,e=ec(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:e},uc(u),t}function Jd(t){return t?(t=ca,t):ca}function kd(t,e,l,a,n,u){n=Jd(n),a.context===null?a.context=n:a.pendingContext=n,a=ol(e),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=rl(t,a,e),l!==null&&(ie(l,t,e),cn(l,t,e))}function Wd(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function zf(t,e){Wd(t,e),(t=t.alternate)&&Wd(t,e)}function $d(t){if(t.tag===13||t.tag===31){var e=Hl(t,67108864);e!==null&&ie(e,t,67108864),zf(t,67108864)}}function Fd(t){if(t.tag===13||t.tag===31){var e=ve();e=pi(e);var l=Hl(t,e);l!==null&&ie(l,t,e),zf(t,e)}}var Ju=!0;function Qg(t,e,l,a){var n=_.T;_.T=null;var u=j.p;try{j.p=2,Ef(t,e,l,a)}finally{j.p=u,_.T=n}}function Zg(t,e,l,a){var n=_.T;_.T=null;var u=j.p;try{j.p=8,Ef(t,e,l,a)}finally{j.p=u,_.T=n}}function Ef(t,e,l,a){if(Ju){var n=Mf(a);if(n===null)rf(t,e,a,ku,l),Pd(t,a);else if(Jg(n,t,e,l,a))a.stopPropagation();else if(Pd(t,a),e&4&&-1<Kg.indexOf(t)){for(;n!==null;){var u=$l(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Dl(u.pendingLanes);if(i!==0){var c=u;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var s=1<<31-oe(i);c.entanglements[1]|=s,i&=~s}Be(u),(rt&6)===0&&(Du=fe()+500,Tn(0))}}break;case 31:case 13:c=Hl(u,2),c!==null&&ie(c,u,2),ju(),zf(u,2)}if(u=Mf(a),u===null&&rf(t,e,a,ku,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else rf(t,e,a,null,l)}}function Mf(t){return t=_i(t),_f(t)}var ku=null;function _f(t){if(ku=null,t=Wl(t),t!==null){var e=N(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=Q(e),t!==null)return t;t=null}else if(l===31){if(t=D(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return ku=t,null}function Id(t){switch(t){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(Uh()){case us:return 2;case is:return 8;case qn:case jh:return 32;case cs:return 268435456;default:return 32}default:return 32}}var Cf=!1,Al=null,Tl=null,zl=null,Dn=new Map,Un=new Map,El=[],Kg="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 Pd(t,e){switch(t){case"focusin":case"focusout":Al=null;break;case"dragenter":case"dragleave":Tl=null;break;case"mouseover":case"mouseout":zl=null;break;case"pointerover":case"pointerout":Dn.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Un.delete(e.pointerId)}}function jn(t,e,l,a,n,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},e!==null&&(e=$l(e),e!==null&&$d(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function Jg(t,e,l,a,n){switch(e){case"focusin":return Al=jn(Al,t,e,l,a,n),!0;case"dragenter":return Tl=jn(Tl,t,e,l,a,n),!0;case"mouseover":return zl=jn(zl,t,e,l,a,n),!0;case"pointerover":var u=n.pointerId;return Dn.set(u,jn(Dn.get(u)||null,t,e,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Un.set(u,jn(Un.get(u)||null,t,e,l,a,n)),!0}return!1}function th(t){var e=Wl(t.target);if(e!==null){var l=N(e);if(l!==null){if(e=l.tag,e===13){if(e=Q(l),e!==null){t.blockedOn=e,hs(t.priority,function(){Fd(l)});return}}else if(e===31){if(e=D(l),e!==null){t.blockedOn=e,hs(t.priority,function(){Fd(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Wu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Mf(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Mi=a,l.target.dispatchEvent(a),Mi=null}else return e=$l(l),e!==null&&$d(e),t.blockedOn=l,!1;e.shift()}return!0}function eh(t,e,l){Wu(t)&&l.delete(e)}function kg(){Cf=!1,Al!==null&&Wu(Al)&&(Al=null),Tl!==null&&Wu(Tl)&&(Tl=null),zl!==null&&Wu(zl)&&(zl=null),Dn.forEach(eh),Un.forEach(eh)}function $u(t,e){t.blockedOn===e&&(t.blockedOn=null,Cf||(Cf=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,kg)))}var Fu=null;function lh(t){Fu!==t&&(Fu=t,f.unstable_scheduleCallback(f.unstable_NormalPriority,function(){Fu===t&&(Fu=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(_f(a||l)===null)continue;break}var u=$l(l);u!==null&&(t.splice(e,3),e-=3,Ec(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ua(t){function e(s){return $u(s,t)}Al!==null&&$u(Al,t),Tl!==null&&$u(Tl,t),zl!==null&&$u(zl,t),Dn.forEach(e),Un.forEach(e);for(var l=0;l<El.length;l++){var a=El[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<El.length&&(l=El[0],l.blockedOn===null);)th(l),l.blockedOn===null&&El.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],i=n[te]||null;if(typeof u=="function")i||lh(l);else if(i){var c=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[te]||null)c=i.formAction;else if(_f(n)!==null)continue}else c=i.action;typeof c=="function"?l[a+1]=c:(l.splice(a,3),a-=3),lh(l)}}}function ah(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function Of(t){this._internalRoot=t}Iu.prototype.render=Of.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var l=e.current,a=ve();kd(l,a,t,e,null,null)},Iu.prototype.unmount=Of.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;kd(t.current,2,null,t,null,null),ju(),e[kl]=null}};function Iu(t){this._internalRoot=t}Iu.prototype.unstable_scheduleHydration=function(t){if(t){var e=ds();t={blockedOn:null,target:t,priority:e};for(var l=0;l<El.length&&e!==0&&e<El[l].priority;l++);El.splice(l,0,t),l===0&&th(t)}};var nh=h.version;if(nh!=="19.2.4")throw Error(o(527,nh,"19.2.4"));j.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=G(e),t=t!==null?O(t):null,t=t===null?null:t.stateNode,t};var Wg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pu.isDisabled&&Pu.supportsFiber)try{wa=Pu.inject(Wg),se=Pu}catch{}}return qa.createRoot=function(t,e){if(!C(t))throw Error(o(299));var l=!1,a="",n=rr,u=dr,i=hr;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=Kd(t,1,!1,null,null,l,a,null,n,u,i,ah),t[kl]=e.current,of(t),new Of(e)},qa.hydrateRoot=function(t,e,l){if(!C(t))throw Error(o(299));var a=!1,n="",u=rr,i=dr,c=hr,s=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(c=l.onRecoverableError),l.formState!==void 0&&(s=l.formState)),e=Kd(t,1,!0,e,l??null,a,n,s,u,i,c,ah),e.context=Jd(null),l=e.current,a=ve(),a=pi(a),n=ol(a),n.callback=null,rl(l,n,a),l=a,e.current.lanes=l,Xa(e,l),Be(e),t[kl]=e.current,of(t),new Iu(e)},qa.version="19.2.4",qa}var es;function Mh(){if(es)return ci.exports;es=1;function g(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(g)}catch(f){console.error(f)}}return g(),ci.exports=Eh(),ci.exports}var ls=Mh();let qe=null,_l=null;const Cl=new Map,Ga={init(g){if(!g.publishableKey&&!g.apiKey&&!g.authToken)return console.error("[GlydeChat] Authentication required: provide publishableKey, apiKey, or authToken"),null;const f=g.theme==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":g.theme||"light";Ha(f),qe&&_l&&(qe.unmount(),_l.remove(),qe=null,_l=null);const h=document.createElement("div");h.id="glyde-chat-widget",h.className="glyde-widget-root",document.body.appendChild(h),_l=h;const M=ls.createRoot(h);return qe=M,M.render(Rn.createElement(Ba,{...g,initialExpanded:!1})),console.log("[GlydeChat] Widget initialized with unityBaseUrl:",g.unityBaseUrl),{destroy(){Ga.destroy()},update(o){qe&&qe.render(Rn.createElement(Ba,{...g,...o}))}}},destroy(){qe&&_l&&(qe.unmount(),_l.remove(),qe=null,_l=null,console.log("[GlydeChat] Widget destroyed")),Cl.forEach(({root:g},f)=>{g.unmount(),Cl.delete(f)})},render(g,f){const h=typeof g=="string"?document.querySelector(g):g;if(!h)return console.error("[GlydeChat] Container not found:",g),null;const M=typeof g=="string"?g:h.id||`glyde-render-${Date.now()}`;if(Cl.has(M)){const N=Cl.get(M);N&&(N.root.unmount(),Cl.delete(M))}const o=f.theme==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":f.theme||"light";Ha(o);const C=ls.createRoot(h);return Cl.set(M,{root:C,container:h}),C.render(Rn.createElement(Ba,{...f,container:h})),console.log("[GlydeChat] Widget rendered in container:",M),{destroy(){C.unmount(),Cl.delete(M),h.innerHTML="",console.log("[GlydeChat] Rendered widget destroyed")},update(N){C.render(Rn.createElement(Ba,{...f,...N,container:h}))}}},isReady(){return!0},get version(){return"__SDK_VERSION__"}};function _h(){const g=document.querySelectorAll('script[src*="glyde-chat"]'),f=g[g.length-1];if(!f){console.log("[GlydeChat] No script tag found for auto-init");return}const h=f.getAttribute("data-auto-init");if(h==="false"){console.log('[GlydeChat] Auto-init disabled via data-auto-init="false"');return}const M=f.getAttribute("data-publishable-key")||void 0,o=f.getAttribute("data-api-key")||void 0,C=f.getAttribute("data-auth-token")||void 0,N=M||o||C;if(!N&&!(h==="true")){console.log("[GlydeChat] Auto-init skipped: no authentication data attributes found. Call GlydeChat.init() manually.");return}if(!N){console.warn("[GlydeChat] Auto-init skipped: no authentication provided (publishableKey, apiKey, or authToken required)");return}const D=f.getAttribute("data-width"),S=f.getAttribute("data-height"),G=f.getAttribute("data-max-width"),O=f.getAttribute("data-max-height"),H=D||S||G||O?{width:D?isNaN(Number(D))?D:Number(D):void 0,height:S?isNaN(Number(S))?S:Number(S):void 0,maxWidth:G?isNaN(Number(G))?G:Number(G):void 0,maxHeight:O?isNaN(Number(O))?O:Number(O):void 0}:void 0,w={publishableKey:M,apiKey:o,authToken:C,contextId:f.getAttribute("data-context-id")||void 0,unityBaseUrl:f.getAttribute("data-unity-url")||"https://api.glydeunity.com",contextType:f.getAttribute("data-context-type")||"screening",defaultMode:f.getAttribute("data-default-mode")||"voice",position:f.getAttribute("data-position")||"bottom-right",theme:f.getAttribute("data-theme")||"light",allowModeSwitch:f.getAttribute("data-allow-mode-switch")!=="false",displayMode:f.getAttribute("data-display-mode")||"floating",dimensions:H,showHeader:f.getAttribute("data-show-header")!=="false",allowClose:f.getAttribute("data-allow-close")!=="false"};console.log("[GlydeChat] Auto-initializing with config:",{hasPublishableKey:!!w.publishableKey,hasApiKey:!!w.apiKey,hasAuthToken:!!w.authToken,contextId:w.contextId,defaultMode:w.defaultMode,displayMode:w.displayMode,position:w.position,theme:w.theme,dimensions:w.dimensions}),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Ga.init(w)):Ga.init(w)}typeof window<"u"&&(window.GlydeChat=Ga,_h()),ft.ActivityIcon=Xf,ft.BotIcon=Lf,ft.ChatWidget=Ba,ft.GlydeChat=Ga,ft.GlydeText=Uf,ft.GlydeVoice=Df,ft.LoaderIcon=dh,ft.MessageIcon=Nn,ft.MicIcon=Na,ft.MicOffIcon=oh,ft.MinimizeIcon=Zf,ft.PhoneIcon=rh,ft.PhoneOffIcon=Gf,ft.SendIcon=Yf,ft.TextChat=ii,ft.UserIcon=wf,ft.VoiceChat=ui,ft.VolumeXIcon=Vf,ft.XIcon=Qf,ft.componentStyles=Mt,ft.getPositionStyles=Jf,ft.getThemeCSSVariables=ai,ft.globalStyles=ni,ft.injectGlobalStyles=Ha,ft.themeColors=Kf,ft.updateTheme=hh,ft.useTextChat=Hf,ft.useVoiceAgent=Nf,Object.defineProperty(ft,Symbol.toStringTag,{value:"Module"})}));
295
323
  //# sourceMappingURL=glyde-chat.umd.js.map